linuxmant / fiehnlab-cts

Automatically exported from code.google.com/p/fiehnlab-cts
0 stars 0 forks source link

Error 500 for particular InChI Key via web service #32

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
http://cts.fiehnlab.ucdavis.edu/service/compound/QVBOTMGSBYXVJQ-LLVKDONJSA-O
yields
Error 500: Internal Server Error 
URI    /service/compound/QVBOTMGSBYXVJQ-LLVKDONJSA-O
Class    java.lang.NullPointerException
Message    Cannot invoke method toJson() on null object
and a whole lot of stuff under Trace.

The InChI Key from the neutral version of this molecule works:
http://cts.fiehnlab.ucdavis.edu/service/compound/QVBOTMGSBYXVJQ-UHFFFAOYSA-N

What version of the product are you using? On what operating system?
First discovered 4.9.13, reproduced today, via web directly and RMassBank 
retrieval (which just choked until we used the neutral smiles to yield the 
neutral InChI Key). Operating system independent.

Original issue reported on code.google.com by schym...@gmail.com on 5 Sep 2013 at 6:17

GoogleCodeExporter commented 9 years ago
Thanks for reporting the issue,
There was a missing check for when the inchikey is not found in the db.
I fixed this already, and I'll deploy it as soon as I have another little fix 
done, I'm expecting to have this out tomorrow (PDT).

You should expect to recieve a JSON string like so (in case of a valid inchi 
that we don't have in the db): 
"Sorry, we couldn't find any matching results"

Diego

Original comment by linuxm...@gmail.com on 5 Sep 2013 at 7:23

GoogleCodeExporter commented 9 years ago
This issue was closed by revision f374a226ef91.

Original comment by linuxm...@gmail.com on 5 Sep 2013 at 8:55