[JBoss jBPM] - Re: Integration problem of jBPM 4, Spring and Hibernate
by KeithWong123
I follow exactly as JBPM Developers Guide session "16.3 Usage" to setup related XML. However, still cannot find the Spring Bean (my case is "TestCon" ).
The following are the XML and result.
***process.jpdl.xml(JBPM flow definition)***
<?xml version="1.0" encoding="UTF-8"?>
|
| <process name="process" xmlns="http://jbpm.org/4.0/jpdl">
|
| <start g="29,189,48,48" name="start">
| <transition g="-74,-18" name="to doSomeThing" to="doSomeThing"/>
| </start>
|
| <java expr="#{TestCon}" method="createProduct" name="doSomeThing" g="178,89,80,40">
| <transition to="printSomeThing"/>
| </java>
|
| <state g="383,196,111,52" name="printSomeThing">
| <transition g="-23,-20" name="to end" to="end"/>
| </state>
|
| <end g="563,199,48,48" name="end"/>
|
| </process>
|
|
******ApplicationContent-test.xml**********
| <?xml version="1.0" encoding="UTF-8"?>
| <beans xmlns="http://www.springframework.org/schema/beans"
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
| xmlns:aop="http://www.springframework.org/schema/aop"
| xmlns:tx="http://www.springframework.org/schema/tx"
| xsi:schemaLocation="http://www.springframework.org/schema/beans
| http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
| http://www.springframework.org/schema/tx
| http://www.springframework.org/schema/tx/spring-tx-2.5.xsd
| http://www.springframework.org/schema/aop
| http://www.springframework.org/schema/aop/spring-aop-2.5.xsd">
|
| <bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource">
| <property name="driverClassName" value="com.mysql.jdbc.Driver"/>
| <property name="url" value="jdbc:mysql://localhost:3306/ig_loading"/>
| <property name="username" value="root"/>
| <property name="password" value="admin123"/>
| </bean>
|
| <bean id="sessionFactory" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
| <property name="dataSource">
| <ref bean="dataSource"/>
| </property>
| <property name="configLocation">
| <value>classpath:hibernate.cfg.xml</value>
| </property>
| </bean>
|
| <bean id="transactionManager" class="org.springframework.orm.hibernate3.HibernateTransactionManager">
| <property name="sessionFactory" ref="sessionFactory"/>
| </bean>
|
| <bean id="dbDAO" class="Dao.ProductDAO">
| <property name="sessionFactory" ref="sessionFactory"/>
| </bean>
|
| <bean id="productMan" class="Service.ProductManager">
| <property name="productDAO" ref="dbDAO"/>
| </bean>
|
| <bean id="TestCont" class="Test">
| <property name="managerProduct" ref="productMan"/>
| </bean>
|
| <bean id="jbpmConfiguration" class="org.jbpm.pvm.internal.cfg.SpringConfiguration">
| <constructor-arg value="jbpm.cfg.xml" />
| </bean>
|
| <bean id="processEngine" factory-bean="jbpmConfiguration" factory-method="buildProcessEngine" />
| <bean id="repositoryService" factory-bean="processEngine" factory-method="getRepositoryService" />
| <bean id="executionService" factory-bean="processEngine" factory-method="getExecutionService" />
|
| </beans>
|
*****Testing programe ****
| import org.jbpm.api.Configuration;
| import org.jbpm.api.ExecutionService;
| import org.jbpm.api.HistoryService;
| import org.jbpm.api.ManagementService;
| import org.jbpm.api.NewDeployment;
| import org.jbpm.api.ProcessEngine;
| import org.jbpm.api.ProcessInstance;
| import org.jbpm.api.RepositoryService;
| import org.jbpm.api.TaskService;
| import org.jbpm.pvm.internal.env.Environment;
| import org.jbpm.pvm.internal.env.SpringContext;
| import org.springframework.beans.BeansException;
| import org.springframework.context.ApplicationContext;
| import org.springframework.context.support.ClassPathXmlApplicationContext;
| import org.springframework.stereotype.Controller;
|
| import POJO.Product;
| import Service.ProductManager;
| @Controller
| public class Test{
| //implements ApplicationContextAware
| private ProductManager managerProduct;
| private static ApplicationContext ac =null;
|
| public static void main(String args[]){
| ac = new ClassPathXmlApplicationContext(new String[] {"applicationContext-test.xml"});
| Test test = new Test();
| test.startUpJBPM();
| }
|
| public void startUpJBPM(){
| ProcessEngine processEngine = new Configuration().buildProcessEngine();
| RepositoryService repositoryService = processEngine.getRepositoryService();
| ExecutionService executionService = processEngine.getExecutionService();
| TaskService taskService = processEngine.getTaskService();
| HistoryService historyService = processEngine.getHistoryService();
| ManagementService managementService = processEngine.getManagementService();
| NewDeployment nd = repositoryService.createDeployment();
| nd.addResourceFromClasspath("jpdl/process.jpdl.xml").deploy();
| ProcessInstance processInstance = executionService.startProcessInstanceByKey("process");
| }
|
| public void createProduct(){
| System.out.println("==== createProduct===");
| managerProduct= (ProductManager) ac.getBean("productMan");
| Product p = new Product();
| p.setSku("0605");
| p.setQuantity(04);
| p.setSupplierCode("0605");
| p.setIsMain(0);
| managerProduct.addProduct(p);
| }
| public ProductManager getManagerProduct() {
| return managerProduct;
| }
|
| public void setManagerProduct(ProductManager managerProduct) {
| this.managerProduct = managerProduct;
| }
|
| }
|
**** running result ****
| 19:21:31,046 INFO SettingsFactory:296 - Default entity-mode: pojo
| 19:21:31,046 INFO SessionFactoryImpl:161 - building session factory
| 19:21:31,531 INFO SessionFactoryObjectFactory:82 - Not binding factory to JNDI, no JNDI name configured
| 19:21:34,343 INFO DefaultCommandService:52 - exception while executing command org.jbpm.pvm.internal.cmd.StartProcessInstanceInLatestCmd@181c4eb
| org.jbpm.api.JbpmException: script evaluation error: Cannot find property TestCon
| at org.jbpm.pvm.internal.script.ScriptManager.evaluate(ScriptManager.java:118)
| at org.jbpm.pvm.internal.script.ScriptManager.evaluate(ScriptManager.java:106)
| at org.jbpm.pvm.internal.script.ScriptManager.evaluateExpression(ScriptManager.java:78)
| at org.jbpm.jpdl.internal.activity.JavaActivity.perform(JavaActivity.java:68)
| at org.jbpm.jpdl.internal.activity.JpdlAutomaticActivity.execute(JpdlAutomaticActivity.java:15)
| at org.jbpm.pvm.internal.model.op.ExecuteActivity.perform(ExecuteActivity.java:60)
| at org.jbpm.pvm.internal.model.ExecutionImpl.performAtomicOperationSync(ExecutionImpl.java:637)
| at org.jbpm.pvm.internal.model.ExecutionImpl.performAtomicOperation(ExecutionImpl.java:597)
| at org.jbpm.pvm.internal.model.ExecutionImpl.start(ExecutionImpl.java:201)
| at org.jbpm.pvm.internal.cmd.StartProcessInstanceInLatestCmd.execute(StartProcessInstanceInLatestCmd.java:64)
| at org.jbpm.pvm.internal.cmd.StartProcessInstanceInLatestCmd.execute(StartProcessInstanceInLatestCmd.java:37)
| at org.jbpm.pvm.internal.svc.DefaultCommandService.execute(DefaultCommandService.java:42)
| at org.jbpm.pvm.internal.tx.StandardTransactionInterceptor.execute(StandardTransactionInterceptor.java:54)
| at org.jbpm.pvm.internal.svc.EnvironmentInterceptor.execute(EnvironmentInterceptor.java:54)
| at org.jbpm.pvm.internal.svc.RetryInterceptor.execute(RetryInterceptor.java:55)
| at org.jbpm.pvm.internal.svc.ExecutionServiceImpl.startProcessInstanceByKey(ExecutionServiceImpl.java:66)
| at Test.startUpJBPM(Test.java:40)
| at Test.main(Test.java:28)
| Caused by: javax.script.ScriptException: Cannot find property TestCon
| at org.jbpm.pvm.internal.script.JuelScriptEngine.evalExpr(JuelScriptEngine.java:180)
| at org.jbpm.pvm.internal.script.JuelScriptEngine.eval(JuelScriptEngine.java:64)
| at javax.script.AbstractScriptEngine.eval(AbstractScriptEngine.java:84)
| at org.jbpm.pvm.internal.script.ScriptManager.evaluate(ScriptManager.java:114)
| ... 17 more
| Caused by: javax.el.PropertyNotFoundException: Cannot find property TestCon
| at de.odysseus.el.util.SimpleResolver.get(SimpleResolver.java:106)
| at de.odysseus.el.util.SimpleResolver.getValue(SimpleResolver.java:126)
| at de.odysseus.el.tree.impl.ast.AstIdentifier.eval(AstIdentifier.java:69)
| at de.odysseus.el.tree.impl.ast.AstEval.eval(AstEval.java:42)
| at de.odysseus.el.tree.impl.ast.AstNode.getValue(AstNode.java:29)
| at de.odysseus.el.TreeValueExpression.getValue(TreeValueExpression.java:120)
| at org.jbpm.pvm.internal.script.JuelScriptEngine.evalExpr(JuelScriptEngine.java:176)
| ... 20 more
| Exception in thread "main" org.jbpm.api.JbpmException: script evaluation error: Cannot find property TestCon
| at org.jbpm.pvm.internal.script.ScriptManager.evaluate(ScriptManager.java:118)
| at org.jbpm.pvm.internal.script.ScriptManager.evaluate(ScriptManager.java:106)
| at org.jbpm.pvm.internal.script.ScriptManager.evaluateExpression(ScriptManager.java:78)
| at org.jbpm.jpdl.internal.activity.JavaActivity.perform(JavaActivity.java:68)
| at org.jbpm.jpdl.internal.activity.JpdlAutomaticActivity.execute(JpdlAutomaticActivity.java:15)
| at org.jbpm.pvm.internal.model.op.ExecuteActivity.perform(ExecuteActivity.java:60)
| at org.jbpm.pvm.internal.model.ExecutionImpl.performAtomicOperationSync(ExecutionImpl.java:637)
| at org.jbpm.pvm.internal.model.ExecutionImpl.performAtomicOperation(ExecutionImpl.java:597)
| at org.jbpm.pvm.internal.model.ExecutionImpl.start(ExecutionImpl.java:201)
| at org.jbpm.pvm.internal.cmd.StartProcessInstanceInLatestCmd.execute(StartProcessInstanceInLatestCmd.java:64)
| at org.jbpm.pvm.internal.cmd.StartProcessInstanceInLatestCmd.execute(StartProcessInstanceInLatestCmd.java:37)
| at org.jbpm.pvm.internal.svc.DefaultCommandService.execute(DefaultCommandService.java:42)
| at org.jbpm.pvm.internal.tx.StandardTransactionInterceptor.execute(StandardTransactionInterceptor.java:54)
| at org.jbpm.pvm.internal.svc.EnvironmentInterceptor.execute(EnvironmentInterceptor.java:54)
| at org.jbpm.pvm.internal.svc.RetryInterceptor.execute(RetryInterceptor.java:55)
| at org.jbpm.pvm.internal.svc.ExecutionServiceImpl.startProcessInstanceByKey(ExecutionServiceImpl.java:66)
| at Test.startUpJBPM(Test.java:40)
| at Test.main(Test.java:28)
| Caused by: javax.script.ScriptException: Cannot find property TestCon
| at org.jbpm.pvm.internal.script.JuelScriptEngine.evalExpr(JuelScriptEngine.java:180)
| at org.jbpm.pvm.internal.script.JuelScriptEngine.eval(JuelScriptEngine.java:64)
| at javax.script.AbstractScriptEngine.eval(AbstractScriptEngine.java:84)
| at org.jbpm.pvm.internal.script.ScriptManager.evaluate(ScriptManager.java:114)
| ... 17 more
| Caused by: javax.el.PropertyNotFoundException: Cannot find property TestCon
| at de.odysseus.el.util.SimpleResolver.get(SimpleResolver.java:106)
| at de.odysseus.el.util.SimpleResolver.getValue(SimpleResolver.java:126)
| at de.odysseus.el.tree.impl.ast.AstIdentifier.eval(AstIdentifier.java:69)
| at de.odysseus.el.tree.impl.ast.AstEval.eval(AstEval.java:42)
| at de.odysseus.el.tree.impl.ast.AstNode.getValue(AstNode.java:29)
| at de.odysseus.el.TreeValueExpression.getValue(TreeValueExpression.java:120)
| at org.jbpm.pvm.internal.script.JuelScriptEngine.evalExpr(JuelScriptEngine.java:176)
| ... 20 more
|
Thanks again for your help.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4248089#4248089
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4248089
16 years, 8 months
[Beginners Corner] - Beginer EJB3 JPA JNDI
by kamikadze
Hello,
I'm developing app in EJB3
I've made remote inteface with method returning one of Entity bean.
After implement in Stateless bean, and try to use it from client through jndi I get error on client side:
Exception in thread "main" java.lang.reflect.UndeclaredThrowableException
at $Proxy2.getRandomUser(Unknown Source)
at com.comarch.mailing.client.UserClient.main(Unknown Source)
Caused by: java.lang.ClassNotFoundException: org.hibernate.collection.PersistentSet
at org.jboss.remoting.serialization.ClassLoaderUtility.loadClass(ClassLoaderUtility.java:103)
at org.jboss.remoting.loading.RemotingClassLoader.loadClass(RemotingClassLoader.java:86)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at org.jboss.remoting.loading.ObjectInputStreamWithClassLoader.resolveClass(ObjectInputStreamWithClassLoader.java:179)
at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source)
at java.io.ObjectInputStream.readClassDesc(Unknown Source)
at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
at java.io.ObjectInputStream.readObject0(Unknown Source)
at java.io.ObjectInputStream.defaultReadFields(Unknown Source)
at java.io.ObjectInputStream.readSerialData(Unknown Source)
at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
at java.io.ObjectInputStream.readObject0(Unknown Source)
at java.io.ObjectInputStream.readObject(Unknown Source)
at org.jboss.aop.joinpoint.InvocationResponse.readExternal(InvocationResponse.java:119)
at java.io.ObjectInputStream.readExternalData(Unknown Source)
at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
at java.io.ObjectInputStream.readObject0(Unknown Source)
at java.io.ObjectInputStream.defaultReadFields(Unknown Source)
at java.io.ObjectInputStream.readSerialData(Unknown Source)
at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
at java.io.ObjectInputStream.readObject0(Unknown Source)
at java.io.ObjectInputStream.readObject(Unknown Source)
at org.jboss.remoting.serialization.impl.java.JavaSerializationManager.receiveObjectVersion2_2(JavaSerializationManager.java:238)
at org.jboss.remoting.serialization.impl.java.JavaSerializationManager.receiveObject(JavaSerializationManager.java:138)
at org.jboss.remoting.marshal.serializable.SerializableUnMarshaller.read(SerializableUnMarshaller.java:123)
at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.versionedRead(MicroSocketClientInvoker.java:1220)
at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.transport(MicroSocketClientInvoker.java:850)
at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:165)
at org.jboss.remoting.Client.invoke(Client.java:1724)
at org.jboss.remoting.Client.invoke(Client.java:629)
at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:60)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.aspects.tx.ClientTxPropagationInterceptor.invoke(ClientTxPropagationInterceptor.java:61)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.ejb3.security.client.SecurityClientInterceptor.invoke(SecurityClientInterceptor.java:65)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:74)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.aspects.remoting.PojiProxy.invoke(PojiProxy.java:62)
at $Proxy3.invoke(Unknown Source)
at org.jboss.ejb3.proxy.impl.handler.session.SessionProxyInvocationHandlerBase.invoke(SessionProxyInvocationHandlerBase.java:207)
at org.jboss.ejb3.proxy.impl.handler.session.SessionProxyInvocationHandlerBase.invoke(SessionProxyInvocationHandlerBase.java:164)
at $Proxy2.getRandomUser(Unknown Source)
at com.comarch.mailing.client.UserClient.main(Unknown Source)
at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:72)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.aspects.tx.ClientTxPropagationInterceptor.invoke(ClientTxPropagationInterceptor.java:61)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.ejb3.security.client.SecurityClientInterceptor.invoke(SecurityClientInterceptor.java:65)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:74)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.aspects.remoting.PojiProxy.invoke(PojiProxy.java:62)
at $Proxy3.invoke(Unknown Source)
at org.jboss.ejb3.proxy.impl.handler.session.SessionProxyInvocationHandlerBase.invoke(SessionProxyInvocationHandlerBase.java:207)
at org.jboss.ejb3.proxy.impl.handler.session.SessionProxyInvocationHandlerBase.invoke(SessionProxyInvocationHandlerBase.java:164)
... 2 more
What can be wrong?
When I use simple type like int, boolean it's works.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4248082#4248082
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4248082
16 years, 8 months
[Remoting] - Re: Problem running with Maven
by eric.rotick
I've been doing some more digging around and I've discovered that the stack trace for the situation when the server is started, then the client is run up and then the server is killed is exactly the same as when the server is not running but the client is started.
In both case the error is connection refused. However, if I run the server up then the client and wait a second or two, then run netstat I get
tcp 0 0 ::ffff:192.168.254.19:2468 :::* LISTEN
| tcp 0 0 ::ffff:192.168.254.19:39607 ::ffff:192.168.254.19:2468 ESTABLISHED
| tcp 575 0 ::ffff:192.168.254.19:2468 ::ffff:192.168.254.19:39607 ESTABLISHED
|
which shows that the connection has been made and there is also data in the receive queue for the server process.
My conclusion is there is either something totally screwed or, and more likely, there is an additional connection which is being refused and not the link I expect to see.
The stack trace is
| org.jboss.remoting.CannotConnectException: Can not get connection to server. Problem establishing socket connection for InvokerLocator [socket://192.168.254.19:2468/]
| at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.transport(MicroSocketClientInvoker.java:776)
| at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:165)
| at org.jboss.remoting.Client.invoke(Client.java:1724)
| at org.jboss.remoting.Client.invoke(Client.java:629)
| at org.jboss.remoting.Client.invoke(Client.java:617)
| at org.jboss.remoting.transporter.TransporterClient.invoke(TransporterClient.java:321)
| at $Proxy0.getOne(Unknown Source)
| at example.SimpleClient.go(SimpleClient.java:21)
| at example.SimpleClient.main(SimpleClient.java:12)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:597)
| at org.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:283)
| at java.lang.Thread.run(Thread.java:619)
| Caused by: java.net.ConnectException: Connection refused
| at java.net.PlainSocketImpl.socketConnect(Native Method)
| at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
| at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
| at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
| at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
| at java.net.Socket.connect(Socket.java:519)
| at org.jboss.remoting.transport.socket.SocketClientInvoker.connect(SocketClientInvoker.java:289)
| at org.jboss.remoting.transport.socket.SocketClientInvoker.createSocket(SocketClientInvoker.java:206)
| at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.getConnection(MicroSocketClientInvoker.java:1089)
| at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.transport(MicroSocketClientInvoker.java:762)
| ... 14 more
|
I then saved the output from netstat before running the test and again while the test was running and the client was blocked and there are no additional listeners running so it could be that I'm not starting a listener which is expected.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4248070#4248070
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4248070
16 years, 8 months
[JCA/JBoss] - JCA connection error
by lovelyraji
ISSUE:1
---------------
[WorkManager(2)-1678] com.ibm.msg.client.jms.internal.JmsXASessionImpl
A message driven bean threw a runtime exception '
Message : java.lang.IllegalStateException:
Multiple message delivery between before and after delivery is not allowed
for message endpoint local/heartbeat@25330010@972
Class : class java.lang.IllegalStateException
Stack : org.jboss.ejb.plugins.inflow.MessageEndpointInterceptor.delivery(MessageEndpointInterceptor.java:246)
: org.jboss.ejb.plugins.inflow.MessageEndpointInterceptor.invoke(MessageEndpointInterceptor.java:140)
: org.jboss.proxy.ClientMethodInterceptor.invoke(ClientMethodInterceptor.java:74)
: org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:100)
: $Proxy165.onMessage(null:-1)
: com.ibm.mq.connector.inbound.MessageEndpointWrapper.onMessage(MessageEndpointWrapper.java:131)
: com.ibm.mq.jms.MQSession$FacadeMessageListener.onMessage(MQSession.java:147)
: com.ibm.msg.client.jms.internal.JmsSessionImpl.run(JmsSessionImpl.java:2558)
: com.ibm.mq.jms.MQSession.run(MQSession.java:860)
: com.ibm.mq.connector.inbound.WorkImpl.run(WorkImpl.java:172)
: org.jboss.resource.work.WorkWrapper.execute(WorkWrapper.java:204)
: org.jboss.util.threadpool.BasicTaskWrapper.run(BasicTaskWrapper.java:275)
: EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:756)
: java.lang.Thread.run(Thread.java:595)
'.
EXPLANATION:
This may indicate a problem in the message listener.
ACTION:
If the runtime exception was thrown unintentionally by the message listener, use the linked exception to determine the cause of the problem.
==============================
ISSUE:2
---------
[WorkManager(2)-778] com.ibm.msg.client.jms.internal.JmsXASessionImpl
An exception '
Message : java.lang.IllegalStateException: MQJMS0006: WebSphere MQ classes for JMS attempts to use a data type not supported by a message or attempts to read data in the wrong type.
Class : class java.lang.IllegalStateException
Stack : com.ibm.msg.client.wmq.v6.jms.internal.MQMessageReference.getMessage(MQMessageReference.java:705)
: com.ibm.msg.client.jms.internal.JmsMessageReferenceImpl.getMessage(JmsMessageReferenceImpl.java:131)
: com.ibm.msg.client.jms.internal.JmsSessionImpl.consume(JmsSessionImpl.java:2843)
: com.ibm.msg.client.jms.internal.JmsSessionImpl.run(JmsSessionImpl.java:2550)
: com.ibm.mq.jms.MQSession.run(MQSession.java:860)
: com.ibm.mq.connector.inbound.WorkImpl.run(WorkImpl.java:172)
: org.jboss.resource.work.WorkWrapper.execute(WorkWrapper.java:204)
: org.jboss.util.threadpool.BasicTaskWrapper.run(BasicTaskWrapper.java:275)
: EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:756)
: java.lang.Thread.run(Thread.java:595)
' was caught while processing a message for delivery to a message driven bean.
EXPLANATION:
null
ACTION:
Examine the linked exception for more information.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4248069#4248069
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4248069
16 years, 8 months
[JCA/JBoss] - Re: IBM MQ JCA Connector - error
by lovelyraji
[WorkManager(2)-1678] com.ibm.msg.client.jms.internal.JmsXASessionImpl
A message driven bean threw a runtime exception '
Message : java.lang.IllegalStateException:
Multiple message delivery between before and after delivery is not allowed
for message endpoint local/heartbeat@25330010@972
Class : class java.lang.IllegalStateException
Stack : org.jboss.ejb.plugins.inflow.MessageEndpointInterceptor.delivery(MessageEndpointInterceptor.java:246)
: org.jboss.ejb.plugins.inflow.MessageEndpointInterceptor.invoke(MessageEndpointInterceptor.java:140)
: org.jboss.proxy.ClientMethodInterceptor.invoke(ClientMethodInterceptor.java:74)
: org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:100)
: $Proxy165.onMessage(null:-1)
: com.ibm.mq.connector.inbound.MessageEndpointWrapper.onMessage(MessageEndpointWrapper.java:131)
: com.ibm.mq.jms.MQSession$FacadeMessageListener.onMessage(MQSession.java:147)
: com.ibm.msg.client.jms.internal.JmsSessionImpl.run(JmsSessionImpl.java:2558)
: com.ibm.mq.jms.MQSession.run(MQSession.java:860)
: com.ibm.mq.connector.inbound.WorkImpl.run(WorkImpl.java:172)
: org.jboss.resource.work.WorkWrapper.execute(WorkWrapper.java:204)
: org.jboss.util.threadpool.BasicTaskWrapper.run(BasicTaskWrapper.java:275)
: EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:756)
: java.lang.Thread.run(Thread.java:595)
'.
EXPLANATION:
This may indicate a problem in the message listener.
ACTION:
If the runtime exception was thrown unintentionally by the message listener, use the linked exception to determine the cause of the problem.
--------------------------------------------------------------------
1issue
heloo
this is 2issue
[WorkManager(2)-778] com.ibm.msg.client.jms.internal.JmsXASessionImpl
An exception '
Message : java.lang.IllegalStateException: MQJMS0006: WebSphere MQ classes for JMS attempts to use a data type not supported by a message or attempts to read data in the wrong type.
Class : class java.lang.IllegalStateException
Stack : com.ibm.msg.client.wmq.v6.jms.internal.MQMessageReference.getMessage(MQMessageReference.java:705)
: com.ibm.msg.client.jms.internal.JmsMessageReferenceImpl.getMessage(JmsMessageReferenceImpl.java:131)
: com.ibm.msg.client.jms.internal.JmsSessionImpl.consume(JmsSessionImpl.java:2843)
: com.ibm.msg.client.jms.internal.JmsSessionImpl.run(JmsSessionImpl.java:2550)
: com.ibm.mq.jms.MQSession.run(MQSession.java:860)
: com.ibm.mq.connector.inbound.WorkImpl.run(WorkImpl.java:172)
: org.jboss.resource.work.WorkWrapper.execute(WorkWrapper.java:204)
: org.jboss.util.threadpool.BasicTaskWrapper.run(BasicTaskWrapper.java:275)
: EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:756)
: java.lang.Thread.run(Thread.java:595)
' was caught while processing a message for delivery to a message driven bean.
EXPLANATION:
null
ACTION:
Examine the linked exception for more information.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4248066#4248066
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4248066
16 years, 8 months