ideaconsult / Toxtree.js

http://ideaconsult.github.io/Toxtree.js/
2 stars 3 forks source link

Toxtree JS works unstable #54

Closed vedina closed 10 years ago

vedina commented 10 years ago

http://apps.ideaconsult.net:8080/data/ui/toxtree

Searching for 50-00-0

Uncaught TypeError: Cannot read property 'aoData' of null jquery.dataTables-1.9.4.min.js:31
Failed to load resource: the server responded with a status of 500 (Internal Server Error) http://apps.ideaconsult.net:8080/data/model?algorithm=http%3A%2F%2Fapps.ideaconsult.net%3A8080%2Fdata%2Falgorithm%2Ftoxtreecramer
Uncaught TypeError: undefined is not a function colResizable-1.3.min.js:2

Searching similarity for c1ccccc1O , threshold 0.9, similar errors.

It seems if there is no model found for at least one algorithm, everything fails. The model? query above returns HTTP code 404 (not found), may be it is not handled properly.

JSConsole log:

GET http://apps.ideaconsult.net:8080/data/model?algorithm=http%3A%2F%2Fapps.ideaconsult.net%3A8080%2Fdata%2Falgorithm%2Ftoxtreecramer2 500 (Internal Server Error) jquery-1.10.2.js:8706
send jquery-1.10.2.js:8706
jQuery.extend.ajax jquery-1.10.2.js:8136
window.jT.window.jToxKit.call jtoxkit.js:668
cls.getModel jtoxkit.js:2684
makeModel ui-toxtree.js:64
runPredict ui-toxtree.js:110
config_toxtree.handlers.runPredict ui-toxtree.js:39
ccLib.fireCallback jtoxkit.js:61
fireHandler jtoxkit.js:1087
jQuery.event.dispatch jquery-1.10.2.js:5095
thejonan commented 10 years ago

Unfortunately, I can't reproduce the above behavior. Yes, indeed, several models fail to retrieve from server, but that does not influence other's and all predictions from good models are shown, both in the one-by-one part of the UI and in the table.

All given console error messages are normal, given that the server just fails to retrieve certain models. All but this:

Uncaught TypeError: Cannot read property 'aoData' of null jquery.dataTables-1.9.4.min.js:31

But I can't reproduce it - what is the OS/browser/version used for this testing?