Opened 5 years ago

Closed 5 years ago

#285 closed defect (fixed)

WCPS going through PetascopeInterface fails

Reported by: dmisev Owned by: arezaeim
Priority: critical Milestone: 8.4
Component: petascope Version: 8.3
Keywords: Cc: pcampalani, abeccati

Description (last modified by dmisev)

WCPS requests going through the general petascope servlet fail, it seems that the coverages are not loaded from the database.

 TRACE [14:36:22] CoverageIterator@64:   coverage reference : NN3_1
 ERROR [14:36:22] PetascopeInterface@389: Runtime error : null
 ERROR [14:36:22] PetascopeInterface@435: Error stack trace:
RuntimeError: Runtime error while processing request
        at petascope.PetascopeInterface.doGet(
        at petascope.PetascopeInterface.doPost(
        at javax.servlet.http.HttpServlet.service(
        at javax.servlet.http.HttpServlet.service(
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(
        at org.apache.catalina.core.StandardWrapperValve.invoke(
        at org.apache.catalina.core.StandardContextValve.invoke(
        at org.apache.catalina.core.StandardHostValve.invoke(
        at org.apache.catalina.valves.ErrorReportValve.invoke(
        at org.apache.catalina.core.StandardEngineValve.invoke(
        at org.apache.catalina.connector.CoyoteAdapter.service(
        at org.apache.coyote.http11.Http11Processor.process(
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(
Caused by: java.lang.NullPointerException
        at petascope.wcps.server.core.CoverageIterator.<init>(
        at petascope.wcps.server.core.XmlQuery.startParsing(
        at petascope.wcps.server.core.ProcessCoveragesRequest.<init>(
        at petascope.wcps.server.core.Wcps.pcPrepare(
        at petascope.wcps.server.core.Wcps.pcPrepare(
        at petascope.PetascopeInterface.handleProcessCoverages(
        at petascope.PetascopeInterface.doGet(
        ... 15 more

It works fine sending WCPS requests to the dedicated WCPS servlet, e.g. http://localhost:8080/petascope/wcps

To reproduce try:

wget --post-data='query=for c in (mr) return AvG(c)' http://localhost:8080/petascope


wget --post-data='query=for c in (mr) return AvG(c)' http://localhost:8080/petascope/wcps

Change History (3)

comment:1 Changed 5 years ago by dmisev

  • Description modified (diff)

comment:2 Changed 5 years ago by dmisev

The WCPS tests are executed on http://localhost:8080/petascope/wcps that's why we haven't noticed this.

comment:3 Changed 5 years ago by dmisev

  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.