Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 21:06 Go to next message
Roger DN is currently offline Roger DNFriend
Messages: 9
Registered: January 2016
Junior Member
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
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 {}StardustBpmServices#{}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(
	at org.apache.cxf.jaxws.AbstractJAXWSMethodInvoker.createFault(
	at org.apache.cxf.service.invoker.AbstractInvoker.invoke(
Caused by: java.lang.UnsupportedOperationException: Unmarshaling of DataValue (InputXml) failed. Type not supported
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(
	at java.lang.reflect.Method.invoke(
	at org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(
	at org.apache.cxf.service.invoker.AbstractInvoker.invoke(
	... 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 07:28 Go to previous message
Ashish Khole is currently offline Ashish KholeFriend
Messages: 28
Registered: April 2015
Junior Member
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:

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.


[Updated on: Thu, 28 January 2016 07:29]

Report message to a moderator

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

Current Time: Fri Oct 07 15:52:58 GMT 2022

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

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

Back to the top