Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#262 closed defect (fixed)

Petascope can't handle curly brackets in an extendExpr query

Reported by: dirk.daems@… Owned by: abeccati
Priority: minor Milestone: 8.4
Component: petascope Version: 8.3
Keywords: extendExpr Cc:


The following abstract WCPS query fails. It is a valid query according to the WCPS specification. This coverage has an associated null value: in the ps_nullset table there is a record for this coverage (nullvalue = 0). Apparently, Petascope can't handle the curly brackets in the following WCPS query:

for msa in (mean_summer_airtemp)
return encode(
          {x : "" (110:160),
           y : "" (-45:8)}

Error message in log file:

TRACE [14:53:22] RasUtil@211: Parsing abstract WCPS query...
line 4:10 mismatched input '{' expecting set null
ERROR [14:53:23] PetascopeInterface@353: Runtime error : null
ERROR [14:53:23] PetascopeInterface@379: 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 java.lang.String.<init>(
                at petascope.wcps.grammar.wcpsParser.axisName(
                at petascope.wcps.grammar.wcpsParser.dimensionIntervalElement(
                at petascope.wcps.grammar.wcpsParser.dimensionIntervalList(
                at petascope.wcps.grammar.wcpsParser.extendExpr(
                at petascope.wcps.grammar.wcpsParser.subsetExpr(
                at petascope.wcps.grammar.wcpsParser.coverageValue(
                at petascope.wcps.grammar.wcpsParser.coverageArithmeticFactor(
                at petascope.wcps.grammar.wcpsParser.coverageArithmeticTerm(
                at petascope.wcps.grammar.wcpsParser.coverageArithmeticExpr(
                at petascope.wcps.grammar.wcpsParser.coverageLogicFactor(
                at petascope.wcps.grammar.wcpsParser.coverageLogicTerm(
                at petascope.wcps.grammar.wcpsParser.coverageExpr(
                at petascope.wcps.grammar.wcpsParser.encodedCoverageExpr(
                at petascope.wcps.grammar.wcpsParser.processingExpr(
                at petascope.wcps.grammar.wcpsParser.returnClause(
                at petascope.wcps.grammar.wcpsParser.wcpsRequest(
                at petascope.util.ras.RasUtil.abstractWCPStoXML(
                at petascope.PetascopeInterface.doGet(
                ... 15 more
DEBUG [14:53:23] PetascopeInterface@430: Done marshalling Error Report.

Change History (5)

comment:1 Changed 5 years ago by abeccati

  • Milestone set to 8.4
  • Priority changed from major to minor

comment:2 Changed 5 years ago by dmisev

  • Owner changed from dmisev to arezaeim
  • Status changed from new to assigned

comment:3 Changed 5 years ago by pbaumann

  • Owner changed from arezaeim to abeccati

comment:4 Changed 5 years ago by dmisev

  • Resolution set to fixed
  • Status changed from assigned to closed

Fixed in changeset:eabf21f453e91d5ecfdf6fe1ad4592e4064a1208

Please reopen ticket if bug persists.

Note: See TracTickets for help on using tickets.