[JBoss Web Services] - ClassCastException SOAPMessageImpl
by kranthi sanka
kranthi sanka [http://community.jboss.org/people/kumarsk39] created the discussion
"ClassCastException SOAPMessageImpl"
To view the discussion, visit: http://community.jboss.org/message/612361#612361
--------------------------------------------------------------
Hi,
I am getting below exception in Jboss when trying to connect a webservice. can someone suggest on this? i have used jars from axiom-1.2.7 and axiom-1.2.6. but both versions are throwing the same exception.
Caused by: java.lang.ClassCastException: org.apache.axiom.soap.impl.llom.SOAPMessageImpl
at org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.endElement(StAXSOAPModelBuilder.java:396)
at org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:200)
at org.apache.axiom.om.impl.llom.OMElementImpl.getNextOMSibling(OMElementImpl.java:307)
at org.apache.axiom.om.impl.traverse.OMChildrenQNameIterator.next(OMChildrenQNameIterator.java:118)
at org.apache.axiom.om.impl.llom.OMElementImpl.getFirstChildWithName(OMElementImpl.java:252)
at org.apache.axiom.soap.impl.llom.soap11.SOAP11FaultImpl.getReason(SOAP11FaultImpl.java:128)
at org.apache.axiom.soap.impl.llom.SOAPFaultImpl.internalSerialize(SOAPFaultImpl.java:169)
at org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize(OMElementImpl.java:889)
at org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize(OMElementImpl.java:905)
at org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize(OMElementImpl.java:889)
at org.apache.axiom.soap.impl.llom.SOAPEnvelopeImpl.internalSerialize(SOAPEnvelopeImpl.java:213)
at org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize(OMElementImpl.java:889)
at org.apache.axiom.om.impl.llom.OMNodeImpl.serialize(OMNodeImpl.java:375)
at org.apache.axiom.om.impl.llom.OMElementImpl.toString(OMElementImpl.java:1051)
at org.apache.axis2.jaxws.message.util.MessageUtils.getMessageFromMessageContext(MessageUtils.java:178)
at org.apache.axis2.jaxws.core.MessageContext.<init>(MessageContext.java:101)
at org.apache.axis2.jaxws.core.controller.impl.AxisInvocationController.doInvoke(AxisInvocationController.java:126)
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/612361#612361]
Start a new discussion in JBoss Web Services at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 9 months
[jBPM] - Re: How get completed/release time for a task?
by José Luis Granda
José Luis Granda [http://community.jboss.org/people/jlgranda81] created the discussion
"Re: How get completed/release time for a task?"
To view the discussion, visit: http://community.jboss.org/message/611985#611985
--------------------------------------------------------------
Thanks Nick for the idea, I will try it.
About retrieve content data, you can use JBPM BlockingGetContentResponseHandler pass contentId, that is useful for retrieve any content in the task. Then you can cast the byte array to object and cast to map for explore variables by one by.
protected Content getTaskContent(Long contentId) {
BlockingGetContentResponseHandler responseHandler = new BlockingGetContentResponseHandler();
client.getContent(contentId, responseHandler);
return responseHandler.getContent();
}
protected Object getTaskContentAsObject(Long contentId) {
Object objectReturn = null;
byte[] buf = getTaskContent(contentId).getContent();
// Do something with the data read here
ByteArrayInputStream bais = new ByteArrayInputStream(buf);
try {
ObjectInputStream is = new ObjectInputStream(bais);
boolean okRead = false;
// Map map = new LinkedHashMap<String, Object>();
while (!okRead && (objectReturn = is.readObject()) != null) {
okRead = true;
System.out.println("getTaskContentAsObject object: "
+ objectReturn);
}
} catch (Exception e) {
System.err
.print("There was an error reading content task input...");
e.printStackTrace();
}
return objectReturn;
}
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/611985#611985]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 9 months
[jBPM] - How to Start a Fire-and-Forget Process by another Process?
by Bruce Cui
Bruce Cui [http://community.jboss.org/people/brucecui] created the discussion
"How to Start a Fire-and-Forget Process by another Process?"
To view the discussion, visit: http://community.jboss.org/message/612102#612102
--------------------------------------------------------------
For the recent days I have been fighting with the 5.1 release for a solution of backend batch processes.
For multi-threading, I take an alternative that put the logic in a Thread instance, and start it in the work item handler. Further more, for time consuming tasks, even it's in main signle process, since I found the console was actually running all processes in one main thread, I put the logic in a Thread instance too, and put a signal event after the task. When the thread finishes, it sends back a signal to the process instance and the process will continue. This can make the main thread less occupied, so that other processes can have time to run. These are all alternatives since the framework itself cannot satisfy my expectation by default.
Now I'm thinking how to start one process by another in a fire-and-forget manner. I did some test. By default, even I set the sub-process's "wait for completion" to "false", the parent process would still wait for sub's completion. The exception seems to be that when the sub met some event node, say a timer, even with "delay" set to 0ms, the parent could take the running back.
So I'm thinking to put a timer at the beginning of the sub, right after the start node, which would be another alternative.
Could you kindly advise, whether there are any more appropriate means to fulfill the expected functionalities?
BTW, I see there is a "Timers" property in some task nodes. But there seems no corresponding content in the user guide. Could you advise on it's function as well?
Thanks,
Bruce
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/612102#612102]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 9 months