Expand my Community achievements bar.

Radically easy to access on brand approved content for distribution and omnichannel performant delivery. AEM Assets Content Hub and Dynamic Media with OpenAPI capabilities is now GA.

XPathSyntaxException

Avatar

Former Community Member
Hi, <br /><br /> We have here a simple workflow , which recieves an email , does a sysout ,<br />and sends another email without any attachment.<br /><br />-----------------------------------------------------------------------<br /><br />Qpac structure of the workflow is as follows :<br /><br />(Email Reciver) ---- > Script( "Hello World" ) ------> (Email with attachment) <br /><br />--------------------------------------------------------------------<br />The XDP has been made exactly as told in the tutorials. The xml schema has been embedded inside the xdp file :<br /><br />(copied from the xdp file) :<br /><br />---------------------------------------------------------------------------<br /> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" id="XFASchemaXSD10"><br /> <xs:element name="LeaveForm"><br /> <xs:complexType><br /> <xs:sequence><br /> <xs:element name="name" type="xs:string" minOccurs="1" maxOccurs="1"/><br /> <xs:element name="AWS_ACTION" type="xs:string" minOccurs="1" maxOccurs="1"/><br /> <xs:element name="AWS_CHOICE" type="xs:string" minOccurs="1" maxOccurs="1"/><br /> <xs:element name="AWS_PROCESSTYPE" type="xs:string" minOccurs="1" maxOccurs="1"/><br /> <xs:element name="AWS_MAILTO" type="xs:string" minOccurs="1" maxOccurs="1"/><br /> </xs:sequence><br /> </xs:complexType><br /> </xs:element><br /> </xs:schema><br /><br />------------------------------------------------------------------<br /><br />The form is filled and send via email is as follows : <br /><br /><?xml version="1.0" encoding="UTF-8"?><br /><?xfa generator="XFA2_4" APIVersion="2.4.5292.0"?><br /><xdp:xdp xmlns:xdp="http://ns.adobe.com/xdp/"><br /> <xfa:datasets xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/"><br /> <xfa:data><br /> <LeaveForm><br /> <name>radhas</name><br /> <AWS_ACTION>Submit</AWS_ACTION><br /> <AWS_CHOICE>Submit</AWS_CHOICE><br /> <AWS_PROCESSTYPE>LeaveApplicationType</AWS_PROCESSTYPE><br /> <AWS_MAILTO>workflow1@contata.co.in</AWS_MAILTO><br /> </LeaveForm><br /> </xfa:data><br /> <dd:dataDescription xmlns:dd="http://ns.adobe.com/data-description/" dd:name="LeaveForm"><br /> <LeaveForm><br /> <name/><br /> <AWS_ACTION/><br /> <AWS_CHOICE/><br /> <AWS_PROCESSTYPE/><br /> <AWS_MAILTO/><br /> </LeaveForm><br /> </dd:dataDescription><br /> </xfa:datasets><br /> <pdf href="https://forums.adobe.com/D/Downloads/writeToThisFolder/LeaveForms/LeaveApplicationForm.pdf"<br /> xmlns="http://ns.adobe.com/xdp/pdf/"/><br /> <xfdf xmlns="http://ns.adobe.com/xfdf/" xml:space="preserve"><annots/></xfdf><br /></xdp:xdp><br /><br />--------------------------------------------------------------------------<br /><br />and on the server console (JBOSS console) : we get :<br /><br />20:36:33,508 INFO [STDOUT] ContentType:text/plain;<br /> charset="iso-8859-1"<br />20:36:33,508 INFO [STDOUT] Plain body found<br />20:36:33,508 INFO [STDOUT] ContentType:text/html;<br /> charset="iso-8859-1"<br />20:36:33,508 INFO [STDOUT] HTML body found<br />20:36:33,508 INFO [STDOUT] Found attachment:LeaveApplicationForm_data.xdp<br />20:36:33,508 ERROR [AWS] stalling action-instance: 614 with message: Exception o<br />ccurred - explicitly stalling action. Exception:org.jaxen.XPathSyntaxException:<br />Unexpected ''<br />20:36:33,587 INFO [STDOUT] org.jaxen.XPathSyntaxException: Unexpected ''<br />20:36:33,587 INFO [STDOUT] at org.jaxen.BaseXPath.<init>(BaseXPath.java:136<br />)<br />20:36:33,587 INFO [STDOUT] at org.jaxen.BaseXPath.<init>(BaseXPath.java:159<br />)<br />20:36:33,587 INFO [STDOUT] at org.jaxen.dom.DOMXPath.<init>(DOMXPath.java:9<br />9)<br />20:36:33,587 INFO [STDOUT] at com.adobe.workflow.jaxen.dom.DefaultDOMXPath.<br /><init>(DefaultDOMXPath.java:43)<br />20:36:33,587 INFO [STDOUT] at com.adobe.workflow.tools.qde.utils.XpathExpre<br />ssionParser.process(XpathExpressionParser.java:45)<br />20:36:33,587 INFO [STDOUT] at com.adobe.workflow.tools.qde.utils.XpathExpre<br />ssionParser.setXpathExpression(Xpat
4 Replies

Avatar

Former Community Member
Hello -



I think if you look further down the stack trace you sent you will see that this error is actually coming from the EmailRecieverService class -> is this true?



Assuming this is true, it looks like it could simply be something incorrect in the settings you have put in your QPac. What kind of variables are you trying to set with this XDP data which has been recieved by the EmailReciever QPac?



If you provide some details here it may help. Also Howard may chime in with some suggestions.



Will@Adobe

Avatar

Former Community Member
This is a known bug, happens because of wrong version of dom4j.jar.This has been fixed but do not know if it has been released or not.It used to work in workflow 7.0.1.Will post some more details on monday

thanks

Avatar

Former Community Member
To Mr Stytes,



Yes, i'm kinda get that, but you see , the Emailreciever is working fine.. ( as tested via the test tab ) + its working fine if no xml schema is given to it , in which case it takes default fields and continues.



The problem occurs when we're using a schema. and (maybe) its trying to fill in the init form using the XSD and form data using xpath. Thats probabaly where its giving an exception. But any case... if its a known bug. We're in the clear. Will post any issues .



Thanx



To workflow user,



I replaced all the dom4j jars with the latest 1.6.1 dom4j but , the same error is repeating itself



Please tell me proper workaround.



If no workaround is possible... please tell me how to change my workflow so that i can retrieve the form data properly ( or atleast get the workflow working)



Thanx

Avatar

Former Community Member
Hi Mr Radhas

Can you please export your workflow along with the xdp and xml schema.I will take a look and let you know asap

Sorry for late reply

my e-mail is frequentbuyer2003@yahoo.com