alphaville / jaqpot3

A brand new version of jaqpot - fully OpenTox API (1.2) compliant (see http://opentox.ntua.gr ) - lots of new features
http://opentox.ntua.gr
2 stars 1 forks source link

Error 500 when applying model #6

Closed vedina closed 13 years ago

vedina commented 13 years ago

An error when applying jaqpot3 model. Note it does not occur always.

Applying the model

 curl -X POST -d "dataset_uri=http://apps.ideaconsult.net:8080/ambit2/dataset/SOME_DATASET" -d "model_uri=http://opentox.ntua.gr:8080/model/536ce048-b78b-4fb3-8f0f-1c85447bfb41" -d "dataset_uri=http://apps.ideaconsult.net:8080/ambit2/dataset" http://apps.ideaconsult.net:8080/ambit2/algorithm/superservice -iv -H "Accept:text/uri-list" -H "subjectid:SOME_TOKEN"

Querying the superservice task status

 curl http://apps.ideaconsult.net:8080/ambit2/task/d721985d-8f56-4fce-a299-261979ab7d23 -i
HTTP/1.1 502 Bad Gateway


  
  
  
  
  
  
  
  
  
  
  
    http://apps.ideaconsult.net:8080/ambit2/task/d721985d-8f56-4fce-a299-261979ab7d23
    
      
        java.io.IOException: Server returned HTTP response code: 500 for URL: http://opentox.ntua.gr:8080/task/dc20d666-fa36-4d7a-a46f-bfda35b412e9
        http://opentox.ntua.gr:8080/task/dc20d666-fa36-4d7a-a46f-bfda35b412e9 Server returned HTTP response code: 500 for URL: http://opentox.ntua.gr:8080/task/dc20d666-fa36-4d7a-a46f-bfda35b412e9
        http://opentox.ntua.gr:8080/task/dc20d666-fa36-4d7a-a46f-bfda35b412e9 Server returned HTTP response code: 500 for URL: http://opentox.ntua.gr:8080/task/dc20d666-fa36-4d7a-a46f-bfda35b412e9
        502
      
    
    0.0
    Error
    1302680588251
    Apply Calls a remote service  
  
  
  

Querying the Jaqpot3 task

curl http://opentox.ntua.gr:8080/task/dc20d666-fa36-4d7a-a46f-bfda35b412e9 -i
HTTP/1.1 500 Internal Server Error


  
    
    Provides access to chemical compounds and their features (e.g. structural, physical-chemical, biological, toxicological properties)
    
  
  
    
  
  
    HTTP status
    
    
    
  
  
    
    Generic OpenTox Resource
    
  
  
    has status
    
    
    
  
  
    
    
  
  
    URI of the peer that produces the exception.
    error actor
    
    
    
  
  
    
    Provides access to OpenTox algorithms
    
  
  
    
    
    
    
    
    
  
  
    
    Instances of the class ErrorReport appear in ontological models to report some exceptional event that happened during the transaction of data from one server to another, request errors or internal server errors. An error report is characterized by its actor, the corresponding status code, some unique identifier for the exceptional event and possibly another error report that triggered its creation.
    
  
  
    
  
  
    Asynchronous task created for a background job initiated by the model: 536ce048-b78b-4fb3-8f0f-1c85447bfb41
    ERROR
    
    nina@opensso.in-silico.ch
    0.0
    
    Asynchronous Task for Prediction
    500.0
    Failed task. 
    0
    
  
  
    Estimated percentage of completion of a running task.
    
    
    
  
  
    500
    http://opentox.ntua.gr:8080/
    org.opentox.jaqpot3.qsar.InstancesUtil.sortByFeatureAttrList(InstancesUtil.java:72)
org.opentox.jaqpot3.qsar.InstancesUtil.sortByFeatureList(InstancesUtil.java:35)
org.opentox.jaqpot3.qsar.InstancesUtil.sortForModel(InstancesUtil.java:27)
org.opentox.jaqpot3.qsar.regression.WekaPredictor.predict(WekaPredictor.java:57)
org.opentox.jaqpot3.www.services.PredictionService.run(PredictionService.java:81)
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
java.util.concurrent.FutureTask.run(FutureTask.java:138)
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
java.lang.Thread.run(Thread.java:662)

    The Dataset you provided does not contain feature:http://apps.ideaconsult.net:8080/ambit2/feature/22137
    Error report produced by 'http://opentox.ntua.gr:8080/'
    http://opentox.ntua.gr:8080/error/f88736f6-3fc0-4ac8-99ba-6946b541ac9a
    
  
  
    
  
  
    
    
  
  
    For example: 'Prediction feature not provided'
    A simple message providing some simple description of the exceptional event.
    error message
    
    
    
  
  
    
  
  
    
    
  
  
    
    
  
  
    
    
    
  
  
    
  
  
    
    
    
  
  
    
  
  
    Detailed message including technical information about the exceptional event. Can be used to help both peers in the debugging.
    error details
    
    
    
  
  
    
    
  
  
    errorReport: Task --> ErrorReport
    Assigns an error report generated by a failed task.
    
    
    
  

The message imply some features are missing, but the superservice does calculate the required features and these should be present.

Sorry for the lack of formatting , can't find how to represent RDF.XML markup via GitHub markup.

alphaville commented 13 years ago

I checked that. It's because the received dataset is empty. This raises a minor issue not related to jaqpot and it mainly affects the error message which should be "The dataset is empty". Check out https://github.com/alphaville/ToxOtis/issues/39.