PFI XML Node error with jar file

 5 Replies
 0 Subscribed to this topic
 52 Subscribed to this forum
Sort:
Author
Messages
Michael T
New Member Send Private Message
Posts: 0
New Member

I am trying to implement PFI for the first time but before doing so I an testing out all functionality in a test environment.  We are on an i-Series (AS/400) system and I would like to use PFI to build an XML string to send to MQ.  The problem is the XML node keeps giving an error with a specific jar file, see below.

I have an open call with Lawson LIS but am not getting very far.  Anyone got any ideas?

ErrorLog in Process : DesignerTest Workunit : 591, ActivityType=null, ActivityName=null, ActivityId=null Date:02/26/2010 Time:14:23:11
Error processing configuration: org.mozilla.javascript.EcmaError: TypeError: XML Builder Node is not a function, it is com.lawson.bpm.processflow.workFlow.flowGraph.FgaXMLBuilder. (initJavaScriptContext#1)
ErrorLog in Process : DesignerTest Workunit : 591, ActivityType=XMLB, ActivityName=XML, ActivityId=XMLB4 Date:02/26/2010 Time:14:23:20
Error while executing XML Builder activity
org.mozilla.javascript.EcmaError: TypeError: XML Builder Node is not a function, it is com.lawson.bpm.processflow.workFlow.flowGraph.FgaXMLBuilder. (FgaXmlBuilder#2)
 at java.lang.Throwable.(Throwable.java:180)
 at java.lang.Exception.(Exception.java:29)
 at java.lang.RuntimeException.(RuntimeException.java:32)
 at org.mozilla.javascript.RhinoException.(RhinoException.java:50)
 at org.mozilla.javascript.EcmaError.(EcmaError.java:67)
 at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3226)
 at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3216)
 at org.mozilla.javascript.ScriptRuntime.typeError(ScriptRuntime.java:3232)
 at org.mozilla.javascript.ScriptRuntime.typeError2(ScriptRuntime.java:3251)
 at org.mozilla.javascript.ScriptRuntime.notFunctionError(ScriptRuntime.java:3306)
 at org.mozilla.javascript.ScriptRuntime.notFunctionError(ScriptRuntime.java:3294)
 at org.mozilla.javascript.ScriptRuntime.newObject(ScriptRuntime.java:2064)
 at org.mozilla.javascript.gen.c46._c0(FgaXmlBuilder:2)
 at org.mozilla.javascript.gen.c46.call(FgaXmlBuilder:0)
 at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:337)
 at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:2755)
 at org.mozilla.javascript.gen.c46.call(FgaXmlBuilder:0)
 at org.mozilla.javascript.gen.c46.exec(FgaXmlBuilder:0)
 at org.mozilla.javascript.Context.evaluateString(Context.java:1132)
 at com.lawson.bpm.processflow.workFlow.flowGraph.FgaXMLBuilder.startActivity(Unknown Source)
 at com.lawson.bpm.processflow.workFlow.flowGraph.FgActivity.execute(Unknown Source)
 at com.lawson.bpm.processflow.workFlow.flowGraph.FgProcess.run(Unknown Source)
 at com.lawson.bpm.pfengine.ProcessFlowEngine.execute(Unknown Source)
 at com.lawson.bpm.pfengine.ProcessFlowEngine.startProcessAt(Unknown Source)
 at com.lawson.bpm.eprocessserver.KBConnection.startProcess(Unknown Source)
 at com.lawson.bpm.eprocessserver.KBConnection.startProcessDesigner(Unknown Source)
 at com.lawson.bpm.eprocessserver.KBConnection.execute(Unknown Source)
 at com.lawson.bpm.eprocessserver.KBConnection.run(Unknown Source)
 at com.lawson.bpm.eprocessserver.util.ThreadPool$PooledThread.run(Unknown Source)

ErrorLog in Process : DesignerTest Workunit : 591, ActivityType=XMLB, ActivityName=XML, ActivityId=XMLB4 Date:02/26/2010 Time:14:23:20
Expression being evaluated was: XML_output=
   
       
        1
        0
        0
   

   
        {EM_COMPANY}
        {EM_EMPLOYEE}
        {EM_LAST_NAME}
        {EM_FIRST_NAME}
       
            {EM_EMP_STATUS}
       

       
            {EM_PROCESS_LEVEL}
       

       
            {EM_DEPARTMENT}
       

       
            {EM_JOB_CODE}
       

       
            {EM_UNION_CODE}
       

        {EM_ADJ_HIRE_DATE}
        {EM_TERM_DATE}
   

 

 

David Williams
Veteran Member Send Private Message
Posts: 1127
Veteran Member
What does your XSD file look like?
David Williams
Michael T
New Member Send Private Message
Posts: 0
New Member

Here is a simple xsd that I created just to get it working.  Once I get the functionality working I was planning to build on it, this is just a simple xsd.

See attached, rename the file from .txt to .xsd.  I had to change the extention to upload because .xsd is not allowed.

 

Attachments
David Williams
Veteran Member Send Private Message
Posts: 1127
Veteran Member

Here's a simple XSD schema file I used at a client. Maybe this will help.

Attachments
David Williams
David Williams
Veteran Member Send Private Message
Posts: 1127
Veteran Member
By the way, I had another PFI consultant suggest that I create my XML file (out from Lawson) using the MsgBuilder and writing it out with the FileAccess node. I did that and got it to work correctly without using the XSD schema file.
David Williams
Michael T
New Member Send Private Message
Posts: 0
New Member

LIS figured it out, found that the name cannot be 'XML' as it is a reserved keyword.  So we got past this error to get a new one, a serialization error so now we are trying to figure this one out.