Saxon error "XPTY0019" reported when execute XPath expressions and machine is not connected to the Internet

Saxon error "XPTY0019" reported when execute XPath expressions and machine is not connected to the Internet

book

Article ID: KB0080145

calendar_today

Updated On:

Products Versions
TIBCO BusinessEvents Enterprise Edition 5.x

Description

Below error reported when BE application executes an XPath expression (eg: XPath.evalAsString()) and machine is not connected to the Internet.
Same project works, when the machines connected to the Internet).
Error:
<timestamp> <machine> Error [main] - [runtime.service] [inference-class] Got runtime exception while invoking Action com.tibco.cep.runtime.session.impl.RuleFunctionsExecAction@2cca7d3c Objects <>
org.genxdm.xpath.v20.err.ConcreteErrException: [XPTY0019] A step in a path expression (that is not the last step) is returning atomic values, which is not permitted.
   at org.genxdm.processor.xpath.v20.factories.QmExprAnalyzer.visit(QmExprAnalyzer.java:1299)
   at org.genxdm.processor.xpath.v20.sa.model.impl.AxisStepExpr.accept(AxisStepExpr.java:34)
   at org.genxdm.processor.xpath.v20.factories.QmExprAnalyzer.analyze(QmExprAnalyzer.java:198)
   at org.genxdm.processor.xpath.v20.factories.QmExprAnalyzer.visit(QmExprAnalyzer.java:1584)
   at org.genxdm.processor.xpath.v20.sa.model.impl.ApplyOrderingModeQmExpr.accept(ApplyOrderingModeQmExpr.java:26)
   at org.genxdm.processor.xpath.v20.factories.QmExprAnalyzer.analyze(QmExprAnalyzer.java:198)
   at org.genxdm.processor.xpath.v20.factories.QmExprAnalyzer.visit(QmExprAnalyzer.java:1059)
   at org.genxdm.processor.xpath.v20.sa.model.impl.RelativePathQmExpr.accept(RelativePathQmExpr.java:50)
   at org.genxdm.processor.xpath.v20.factories.QmExprAnalyzer.analyze(QmExprAnalyzer.java:198)
   at org.genxdm.processor.xpath.v20.factories.QmExprAnalyzer.visit(QmExprAnalyzer.java:1052)
   at org.genxdm.processor.xpath.v20.sa.model.impl.RelativePathQmExpr.accept(RelativePathQmExpr.java:50)
   at org.genxdm.processor.xpath.v20.factories.QmExprAnalyzer.analyze(QmExprAnalyzer.java:198)
   at org.genxdm.processor.xpath.v20.factories.QmExprAnalyzer.visit(QmExprAnalyzer.java:1052)
   at org.genxdm.processor.xpath.v20.sa.model.impl.RelativePathQmExpr.accept(RelativePathQmExpr.java:50)
   at org.genxdm.processor.xpath.v20.factories.QmExprAnalyzer.analyze(QmExprAnalyzer.java:198)
   at org.genxdm.processor.xpath.v20.factories.QmExprAnalyzer.visit(QmExprAnalyzer.java:1052)
   at org.genxdm.processor.xpath.v20.sa.model.impl.RelativePathQmExpr.accept(RelativePathQmExpr.java:50)

Issue/Introduction

Saxon error "XPTY0019" reported when execute XPath expressions and machine is not connected to the Internet

Environment

All Operating Systems

Resolution

There are external XSD's referenced in project XSD's or WSDL. The agent tries to load those XSD’s from referenced link. This fails when machine not connected to the Internet.

eg. (reference to encoding.xsd in xsd's or WSDL):
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/”

To avoid the error it is required to download the external xsd’s and add them to the project.
Finally rebuild the ear and restart the application with new created ear file.

Additional Information

XPath