[InterMine Dev] error Unable to construct query

JD Wong jdmswong at gmail.com
Mon Nov 26 15:27:58 GMT 2012


Thanks Alex,

Those commands returned an error:

console.log($SERVICE.root);
http://www.wormbase.org/wormmine/service/
 undefined
$SERVICE.fetchVersion(_.bind(console.log, console, "success"));
 Object
 XMLHttpRequest cannot load
http://www.wormbase.org/wormmine/service/version?token=K1I3sbJ3tdE4zdY17bDe&format=json.
Origin http://wb-intermine:8080 <http://wb-intermine/> is not allowed by
Access-Control-Allow-Origin.
 Object {readyState: 0, responseText: "", status: 0, statusText: "error"}

   1. abort: function
   (statusText){statusText=statusText||"abort";if(transport){transport.abort(statusText);}done(0,statusText);return
   this;}
   2. always: function (){return
   deferred.done.apply(deferred,arguments).fail.apply(deferred,arguments);}
   3. complete: function (){if(list){var
   length=list.length;add(arguments);if(firing){firingLength=list.length;}else{if(memory&&memory!==true){firingStart=length;fire(memory[0],memory[1]);}}}return
   this;}
   4. done: function (){if(list){var
   length=list.length;add(arguments);if(firing){firingLength=list.length;}else{if(memory&&memory!==true){firingStart=length;fire(memory[0],memory[1]);}}}return
   this;}
   5. error: function (){if(list){var
   length=list.length;add(arguments);if(firing){firingLength=list.length;}else{if(memory&&memory!==true){firingStart=length;fire(memory[0],memory[1]);}}}return
   this;}
   6. fail: function (){if(list){var
   length=list.length;add(arguments);if(firing){firingLength=list.length;}else{if(memory&&memory!==true){firingStart=length;fire(memory[0],memory[1]);}}}return
   this;}
   7. getAllResponseHeaders: function (){return
   state===2?responseHeadersString:null;}
   8. getResponseHeader: function (key){var
   match;if(state===2){if(!responseHeaders){responseHeaders={};while((match=rheaders.exec(responseHeadersString))){responseHeaders[match[1].toLowerCase()]=match[2];}}match=responseHeaders[key.toLowerCase()];}return
   match===undefined?null:match;}
   9. isRejected: function (){return !!memory;}
   10. isResolved: function (){return !!memory;}
   11. overrideMimeType: function (type){if(!state){s.mimeType=type;}return
   this;}
   12. pipe: function (fnDone,fnFail,fnProgress){return
   jQuery.Deferred(function(newDefer){jQuery.each({done:[fnDone,"resolve"],fail:[fnFail,"reject"],progress:[fnProgress,"notify"]},function(handler,data){var
   fn=data[0],action=data[1],returned;if(jQuery.isFunction(fn)){deferred[handler](function(){returned=fn.apply(this,arguments);if(returned&&jQuery.isFunction(returned.promise)){returned.promise().then(newDefer.resolve,newDefer.reject,newDefer.notify);}else{newDefer[action+"With"](this===deferred?newDefer:this,[returned]);}});}else{deferred[handler](newDefer[action]);}});}).promise();}
   13. progress: function (){if(list){var
   length=list.length;add(arguments);if(firing){firingLength=list.length;}else{if(memory&&memory!==true){firingStart=length;fire(memory[0],memory[1]);}}}return
   this;}
   14. promise: function (obj){if(obj==null){obj=promise;}else{for(var key
   in promise){obj[key]=promise[key];}}return obj;}
   15. readyState: 0
   16. responseText: ""
   17. setRequestHeader: function (name,value){if(!state){var
   lname=name.toLowerCase();name=requestHeadersNames[lname]=requestHeadersNames[lname]||name;requestHeaders[name]=value;}return
   this;}
   18. state: function (){return state;}
   19. status: 0
   20. statusCode: function (map){if(map){var tmp;if(state<2){for(tmp in
   map){statusCode[tmp]=[statusCode[tmp],map[tmp]];}}else{tmp=map[jqXHR.status];jqXHR.then(tmp,tmp);}}return
   this;}
   21. statusText: "error"
   22. success: function (){if(list){var
   length=list.length;add(arguments);if(firing){firingLength=list.length;}else{if(memory&&memory!==true){firingStart=length;fire(memory[0],memory[1]);}}}return
   this;}
   23. then: function
   (doneCallbacks,failCallbacks,progressCallbacks){deferred.done(doneCallbacks).fail(failCallbacks).progress(progressCallbacks);return
   this;}
   24. __proto__: Object

imjs.js:1164<http://cdn.intermine.org/js/intermine/imjs/intermine-1.01.00/imjs.js>
 error


On Fri, Nov 23, 2012 at 6:04 PM, Alex Kalderimis <alex at intermine.org> wrote:

> Hey there JD,
>
> Sorry you are experiencing problems. It would help if you could run the
> following code in your browser console:
>
> console.log($SERVICE.root);
> $SERVICE.fetchVersion(_.bind(console.log, console, "success"));
>
> This will check that the underlying library is working correctly. It'd be
> useful to see the output.
>
> You can open the console by typing ctl-shift-j in chrome or right-clicking
> and choosing "inspect element" in any webkit browser.
>
> All best,
>
> Alex
>
>
> JD Wong <jdmswong at gmail.com> wrote:
>>
>>  Hi everyone,
>>
>> When I try to run queries on my 1.1 instance it tells me it can't
>> construct my query.  All my mine contains is a single gene record added by
>> a custom file converter.  Nothing gets added to tomcat or
>> webapp/intermine.log when this happens, postgres shows my record is there,
>> and I'm on the most recent version of master.
>>
>> Has anyone seen this before, or am I missing something really obvious?
>>
>> Thanks,
>> -JD
>>
>> ------------------------------
>>
>> dev mailing list
>> dev at intermine.org
>>
>> http://mail.intermine.org/cgi-bin/mailman/listinfo/dev
>>
>>
> --
> Sent from my Android phone with K-9 Mail. Please excuse my brevity.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.intermine.org/pipermail/dev/attachments/20121126/66a63966/attachment.html>


More information about the dev mailing list