[JBoss Messaging] - HornetQ can't resolve class of ObjectMessage payload.
by Kevin Healy
Kevin Healy [http://community.jboss.org/people/kjh21] created the discussion
"HornetQ can't resolve class of ObjectMessage payload."
To view the discussion, visit: http://community.jboss.org/message/599052#599052
--------------------------------------------------------------
Following is my environment
JBossAS [6.0.0.Final "Neo"]
HornetQ Server version 2.1.2.Final (Colmeia, 120)
I'm getting the same error described here
http://community.jboss.org/message/517604#517604 http://community.jboss.org/message/517604#517604
and here
http://community.jboss.org/thread/162024 http://community.jboss.org/thread/162024
Specifically, HornetQ is unable to resolve the class of an object that serves as the payload of an ObjectMessage.
The exception and stack trace are as follows:
477 SEVERE [toplevel.services.push.ProxyMessageListener] Caught Exception processing incoming message: javax.jms.JMSException: toplevel.services.heartbeat.Heartbeat
01:18:36,477 ERROR [STDERR] javax.jms.JMSException: toplevel.services.heartbeat.Heartbeat
01:18:36,477 ERROR [STDERR] at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
01:18:36,477 ERROR [STDERR] at java.security.AccessController.doPrivileged(Native Method)
01:18:36,477 ERROR [STDERR] at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
01:18:36,477 ERROR [STDERR] at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
01:18:36,493 ERROR [STDERR] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
01:18:36,493 ERROR [STDERR] at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
01:18:36,493 ERROR [STDERR] at java.lang.Class.forName0(Native Method)
01:18:36,493 ERROR [STDERR] at java.lang.Class.forName(Class.java:247)
01:18:36,493 ERROR [STDERR] at org.jboss.classloader.spi.base.BaseClassLoaderDomain.loadClass(BaseClassLoaderDomain.java:284)
01:18:36,493 ERROR [STDERR] at org.jboss.classloader.spi.base.BaseClassLoaderDomain.loadClass(BaseClassLoaderDomain.java:1152)
01:18:36,493 ERROR [STDERR] at org.jboss.classloader.spi.base.BaseClassLoader.loadClassFromDomain(BaseClassLoader.java:886)
01:18:36,493 ERROR [STDERR] at org.jboss.classloader.spi.base.BaseClassLoader.doLoadClass(BaseClassLoader.java:505)
01:18:36,493 ERROR [STDERR] at org.jboss.classloader.spi.base.BaseClassLoader.loadClass(BaseClassLoader.java:450)
01:18:36,493 ERROR [STDERR] at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
01:18:36,493 ERROR [STDERR] at java.lang.Class.forName0(Native Method)
01:18:36,493 ERROR [STDERR] at java.lang.Class.forName(Class.java:247)
01:18:36,493 ERROR [STDERR] at java.io.ObjectInputStream.resolveClass(ObjectInputStream.java:603)
01:18:36,493 ERROR [STDERR] at org.hornetq.utils.ObjectInputStreamWithClassLoader.resolveClass(ObjectInputStreamWithClassLoader.java:69)
01:18:36,493 ERROR [STDERR] at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1574)
01:18:36,493 ERROR [STDERR] at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1495)
01:18:36,493 ERROR [STDERR] at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1731)
01:18:36,493 ERROR [STDERR] at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328)
01:18:36,493 ERROR [STDERR] at java.io.ObjectInputStream.readObject(ObjectInputStream.java:350)
01:18:36,493 ERROR [STDERR] at org.hornetq.jms.client.HornetQObjectMessage.getObject(HornetQObjectMessage.java:158)
01:18:36,493 ERROR [STDERR] at gov.dhs.st.bordernet.services.push.ProxyMessageListener.onMessage(ProxyMessageListener.java:71)
01:18:36,493 ERROR [STDERR] at org.hornetq.jms.client.JMSMessageListenerWrapper.onMessage(JMSMessageListenerWrapper.java:91)
01:18:36,493 ERROR [STDERR] at org.hornetq.core.client.impl.ClientConsumerImpl.callOnMessage(ClientConsumerImpl.java:822)
01:18:36,493 ERROR [STDERR] at org.hornetq.core.client.impl.ClientConsumerImpl.access$100(ClientConsumerImpl.java:46)
01:18:36,493 ERROR [STDERR] at org.hornetq.core.client.impl.ClientConsumerImpl$Runner.run(ClientConsumerImpl.java:940)
01:18:36,493 ERROR [STDERR] at org.hornetq.utils.OrderedExecutorFactory$OrderedExecutor$1.run(OrderedExecutorFactory.java:100)
01:18:36,493 ERROR [STDERR] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
01:18:36,493 ERROR [STDERR] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
01:18:36,493 ERROR [STDERR] at java.lang.Thread.run(Thread.java:662)
HornetQ is able to resolve the class of an ObjectMessage when my receiving client is an MDB but not when it is a client MessageListener that I have deployed as part of a JBoss system service.
Following is a representative view of the package structure of my deployment
my.ear
|
|
|--------> payload-objects.jar
| |
| |--------> class(es) used as payload of ObjectMessage located here (and below.)
|
|--------> my-ejb.jar
| |
| |--------> my-service.xml
| |
| |--------> toplevel
| | |
| | |--------> mdb
| | | |
| | | |--------> MDB's located here (and below.) *HornetQ references to classes in payload-objects.jar resolve fine.*
| | |
| | |--------> services
| | |
| | |--------> Other MessageListeners located here (and below.) *HornetQ references to classes in payload-objects.jar fail!*
|
|--------> my-war.war
|
|--------> WEB-INF
|
|--------> classes
| |
| |--------> no HornetQ MessageListeners here (or below) but other references to classes in payload-objects.jar here (and below) resolve fine.
|
|--------> lib
|
|--------> payload-objects.jar
Please advise.
Kevin H.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/599052#599052]
Start a new discussion in JBoss Messaging at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
15 years
[JBoss Web Services] - Exception in thread "main" javax.xml.ws.WebServiceException: No Content-type in the header
by Joseph Hwang
Joseph Hwang [http://community.jboss.org/people/aupres] created the discussion
"Exception in thread "main" javax.xml.ws.WebServiceException: No Content-type in the header"
To view the discussion, visit: http://community.jboss.org/message/599033#599033
--------------------------------------------------------------
I made JBossWS code and deloyed it. Deployment was successful.
In JbossWS environment, I generated SampleClient.java.
package com.aaa.ws.clientsample;
import com.aaa.ws.*;
public class ClientSample {
public static void main(String[] args) {
System.out.println("***********************");
System.out.println("Create Web Service Client...");
WSHelloWorldService service1 = new WSHelloWorldService();
System.out.println("Create Web Service...");
WSHelloWorld port1 = service1.getWSHelloWorldPort();
System.out.println("Call Web Service Operation..."); *// No Exception occurs until this line*
System.out.println("Server said: " + port1.sayHello("aaa")); *// Exception Occurs *
System.out.println("***********************");
System.out.println("Call Over!");
}
}
Exception is
***********************
Create Web Service Client...
Create Web Service...
Call Web Service Operation...
*Exception in thread "main" javax.xml.ws.WebServiceException : No Content-type in the header!*
....
Did I miss any process? Pls give me some advice.!!
Best Regard!
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/599033#599033]
Start a new discussion in JBoss Web Services at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
15 years
[jBPM] - TaskClient (Parameter mapping - Result mapping)
by Leandro René Giménez
Leandro René Giménez [http://community.jboss.org/people/lgimenez] created the discussion
"TaskClient (Parameter mapping - Result mapping)"
To view the discussion, visit: http://community.jboss.org/message/597672#597672
--------------------------------------------------------------
Hi! I'm new in jBPM5 and i have a problem with human tasks...
I need to know how to map between process variables and task parameters...
I get parameter mapping data with the next code:
+BlockingGetContentResponseHandler getContentResponseHandler = new BlockingGetContentResponseHandler();+
+taskClient.getContent(contentId, getContentResponseHandler);+
+ByteArrayInputStream bis = new ByteArrayInputStream(getContentResponseHandler.getContent().getContent());+
+Object data = null;+
+try {+
+ ObjectInputStream in = new ObjectInputStream(bis);+
+ data = in.readObject();+
+ System.out.println("====> User Task Data " + data);+
+ in.close();+
+ } catch (IOException e) {+
+ System.out.println("Error: " + e.getMessage());+
+ e.printStackTrace();+
+ return;+
+ } catch (ClassNotFoundException e) {+
+ System.out.println("Error: " + e.getMessage());+
+ e.printStackTrace();+
+ return;+
+ }+
In this code, data is always String type... Is it possible to transfer complex data types? How can I do it?
How to get parameter values from parameter mapping and set result mapping?
Regards
Leandro
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/597672#597672]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
15 years
[jBPM] - JBPM 4.4 timer will not fire
by Jim Hill
Jim Hill [http://community.jboss.org/people/jdh] created the discussion
"JBPM 4.4 timer will not fire"
To view the discussion, visit: http://community.jboss.org/message/593582#593582
--------------------------------------------------------------
I found and verified that the jbpm.cfg.xml file imports the resource="jbpm.jobexecutor.cfg.xml" resource. I am however still not seeing my timer kick off. I am using this inside a group comprised mostly of custom nodes. At what point do I write this up as a bug? I am running this inside Eclipse as a junit test. Am I missing something? In my junit test I verify that I am at the WaitForMessageActivity node and then have the thread sleep for 30 seconds. I am expecting the trigger to fire. Is this a flawed expectation? Any help would be appreciated.
<process key="TH" name="TH" version="1" xmlns="http://jbpm.org/4.4/jpdl">
<start name="start">
<transition name="to LaunchTHForm"
to="LaunchTHForm"/>
</start>
<java name="LaunchTHForm" class="mil.army.sc4.bpm.THthread.THSupport" method="launchTHForm">
<transition name="to SendTHGroup" to="SendTHGroup"/>
</java>
<group name="SendTHGroup">
<start>
<transition name="to WaitForTH" to="WaitForTH"/>
</start>
<custom name="WaitForTH" class="###.####.###.bpm.WaitForMessageActivity">
<transition name="to DidUserSendTH" to="DidUserSendTH"/>
</custom>
<decision name="DidUserSendTH">
<transition name="TH Sent" to="SendTHDone">
<condition expr="#{className=="THObject"}"/>
</transition>
<transition name="Keep waiting" to="WaitForTH"/>
</decision>
<end name="SendTHDone" />
<transition name="toLaunchEntityDataForm" to="LaunchEntityDataForm"/>
<!-- Nothing happens when I try this transition with embeded timer -->
<transition name="timeout1" to="NotifyUserOfTimeout">
<timer duedate="20 seconds" />
</transition>
<!-- This approach does not work either.
<timer name="timeout1" duedate="20 seconds" transition="NotifyUserOfTimeout"/>
-->
</group>
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/593582#593582]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
15 years
[jBPM] - jBPM 5 User Forms
by Juris De
Juris De [http://community.jboss.org/people/juris.de] created the discussion
"jBPM 5 User Forms"
To view the discussion, visit: http://community.jboss.org/message/598830#598830
--------------------------------------------------------------
Hello!
I am trying to understand the best possible method for working with User Forms in jBPM 5.
1. What is the best way to edit user forms (*.ftl files) in a graphical environment (something like Intalio does)?
I have managed to open them in Eclipse as html files. Are there better options?
2. Is there an automatic (user-oriented) way of linking together user form fields with corresponding User Task variables?
Currently it looks to me that all the variables' mappings with form fields (and variables in the ftl form) must be written manually in the code. Is it so or are there any better ways to automate it?
3. How to open, edit and deploy user forms (*.ftl files) in the jBMP engine (on the server) in a user-friendly manner?
So far I have discovered that in order to have your form running for the particular user task I need to do the following steps:
1) create a process;
2) create a user task, enter all necessary variables and parameters.
3) enter TaskName parameter (the name of the form that must be opened; e.g. UserTask1)
4) create HTML form with special syntax for dynamic contents and input fields so that they map to the task variables.
5) Name the HTML form file: <TaskName value>.ftl (e.g. UserTask1.ftl)
6) Add the form to
${install.home}/jboss-{version}.GA/server/default/jbpm-gwt-console-server.war -> /deploy/WEB-INF/lib/jbpm-gwt-form-5.1-SNAPSHOT.jar
7) Make a PNG file of the diagram, name it <processName>.png and add it to
${install.home}/jboss-{version}.GA/server/default/jbpm-gwt-console-server.war -> /WEB-INF/lib/jbpm-gwt-graph-5.1-SNAPSHOT.jar
3.1. Is the process correct (at least it works)?
3.2. Am I right that by default no user form is created in the jBPM project in Eclipse when I create a User Task?
3.3. Is there a solution, how to create a User Form automatically after a User Task is created?
3.4. Is there a solution for deploying a user form automatically on the server?
I think that the process is being installed automatically when I run the application in Eclipse but I have no idea regarding the forms.
Thank you in advance and sorry if some of the questions have been raised before; still I have not been able to find the right answers so far.
In case there are good resources describing these topics, I'll be happy to receive the links!!
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/598830#598830]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
15 years