Opened 4 years ago

Closed 4 years ago

#478 closed defect (fixed)

WCPS switch tests fail

Reported by: dmisev Owned by: vmerticariu
Priority: major Milestone: 9.0
Component: petascope Version: development
Keywords: Cc: mdumitru
Complexity: Medium


These tests fail in the WCPS test

for c in mr return encode(switch case c>20 return (char)2 case c>10 return (char)1 default return (char)0,"csv")
for c in mr return encode(switch case c>0 return c default return (char)0,"csv")
for c in mr return encode(switch case c>0 return log(c) default return (char)0,"csv")

with exception like

InternalComponentError: Error translating parsed abstract WCPS query to XML format.
	at petascope.util.ras.RasUtil.abstractWCPStoXML(
	at petascope.wcps.server.servlet.WcpsServlet.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.grammar.ProcessingExpr.toXML(
	at petascope.wcps.grammar.ReturnClause.toXML(
	at petascope.wcps.grammar.WCPSRequest.toXML(
	at petascope.util.ras.RasUtil.abstractWCPStoXML(
	... 15 more

Change History (2)

comment:1 Changed 4 years ago by vmerticariu

I can not replicate with the latest version. Maybe there was a bug in one of the previous versions that got fixed with the latest patches?

Can you please try again and let me know?

comment:2 Changed 4 years ago by dmisev

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

Indeed, seems like it's fixed now.

Note: See TracTickets for help on using tickets.