Skip to main content



      Home
Home » Archived » Eclipse Process Manager (Stardust) » Starting a process model with an XML parameter fails with exception(Starting a process model with an XML parameter fails with exception)
Starting a process model with an XML parameter fails with exception [message #1721508] Wed, 27 January 2016 16:06 Go to next message
Eclipse UserFriend
Created a Process Model with a Data item of type 'XML Document' named 'InputXml'. Connected the type to an Application activity that writes the XML to the console.

Adapted Wen Service example Java application found in ws-example-java.zip:
http://help.eclipse.org/luna/topic/org.eclipse.stardust.docs.dev/html/examples/ws-client-java/readme.html?cp=61_10_1_0
to start the process with XML as a parameter.

Attached the Process Model and a Java class, modified from example mentioned above, see method startProcess(), to setup the parameters.

The server side fails with an exception:
15:46:25 ERROR [80-exec-33] DataFlowUtils             - Unmarshaling of DataValue (InputXml) failed. Type not supported
15:46:25 WARN  [80-exec-33] PhaseInterceptorChain     - Application {http://eclipse.org/stardust/ws/v2012a/api}StardustBpmServices#{http://eclipse.org/stardust/ws/v2012a/api}startProcess has thrown exception, unwinding now
org.apache.cxf.interceptor.Fault: Unmarshaling of DataValue (InputXml) failed. Type not supported
	at org.apache.cxf.service.invoker.AbstractInvoker.createFault(AbstractInvoker.java:170)
	at org.apache.cxf.jaxws.AbstractJAXWSMethodInvoker.createFault(AbstractJAXWSMethodInvoker.java:272)
	at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:136)
...
Caused by: java.lang.UnsupportedOperationException: Unmarshaling of DataValue (InputXml) failed. Type not supported
	at org.eclipse.stardust.engine.ws.DataFlowUtils.unmarshalDataValue(DataFlowUtils.java:997)
	at org.eclipse.stardust.engine.ws.DataFlowUtils.unmarshalInitialDataValues(DataFlowUtils.java:695)
	at org.eclipse.stardust.engine.ws.DataFlowUtils.unmarshalInitialDataValues(DataFlowUtils.java:674)
	at org.eclipse.stardust.engine.ws.WorkflowServiceFacade.startProcess(WorkflowServiceFacade.java:75)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:601)
	at org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractInvoker.java:188)
	at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:104)
	... 45 more


Stardust version 3.0.1 on Java 7.
Re: Starting a process model with an XML parameter fails with exception [message #1721534 is a reply to message #1721508] Thu, 28 January 2016 02:28 Go to previous message
Eclipse UserFriend
Hello Roger,

As the "XMLDocument" data is a depricated dataType, i would encourage to use the External Reference structured data type instead, which is equivalent to the XML Data type.

Please refer the "Using External XSD Types" section from following documentation link:
http://help.eclipse.org/mars/topic/org.eclipse.stardust.docs.dev/html/handbooks/modelling/data-integration/structured-data/struct-type-def.html?cp=72_7_0_1_1_0

If you would still like to make use of the XMLData type data, please try one of the following approaches to set the XMLData:

1. Use a Primitive Data Type with default value set to the XML String and map the data in the InData Mapping.
2. Use a Java Application and set out-datamapping which passes the xml content into the xml document data.

Attached are the models for the same.

-Regards
Ashish

[Updated on: Thu, 28 January 2016 02:29] by Moderator

Previous Topic:.NET Web Service example compile error
Next Topic:XML Document Data - Choosing the element name
Goto Forum:
  


Current Time: Sun Jun 15 08:20:05 EDT 2025

Powered by FUDForum. Page generated in 0.03284 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top