[JBoss Messaging] - jms-jca provider
by Pulokesh Goswami
Pulokesh Goswami [http://community.jboss.org/people/pulokesh] created the discussion
"jms-jca provider"
To view the discussion, visit: http://community.jboss.org/message/596805#596805
--------------------------------------------------------------
I have asked this question in ESB forum( http://community.jboss.org/message/595549#595549 http://community.jboss.org/message/595549#595549). They have redirected me here saying its a messaging bug. So I am posting this here again.
I have to esb applications in to machines exchanging messages. I am using JMS router to route messages between the application. As long as I use JMS provider its works fine. But I change the providers to jms-jca-provider the JMSRouter throws a javax.transaction.RollbackException and the message is not recieved by the other application.
Heres is my configuration for the revieving queue
<jms-jca-provider connection-factory="ConnectionFactory" name="JMSProviderMPInboundRLIJMS">
<jms-bus busid="JMSChannelMPInboundRLIJMS">
<jms-message-filter dest-name="queue/JMSQueueMPInboundRLIJMS" dest-type="QUEUE"/>
</jms-bus>
</jms-jca-provider>
My JMS router configuration looks like this
ConfigTree jmsConfig = new ConfigTree("JmsRouter");
jmsConfig.setAttribute("jndiName", "queue/JMSQueueMPInboundRLIJMS");
jmsConfig.setAttribute(JMSEpr.JNDI_URL_TAG ,"10.11.200.163:1099");
jmsConfig.setAttribute(JMSEpr.CONNECTION_FACTORY_TAG , "ConnectionFactory");
jmsConfig.setAttribute("unwrap" , "false");
jmsConfig.setAttribute(JMSRouter.PERSISTENT_ATTR , "true");
jmsConfig.setAttribute(JMSRouter.SECURITY_PRINCIPAL , "guest");
jmsConfig.setAttribute(JMSRouter.SECURITY_CREDITIAL , "guest");
I am using jboss-5.1.0.GA.
What can be the problem?
Here is the exception Log
14:46:40,750 ERROR [ExceptionUtil] ConnectionEndpoint[xf-1mbefnlg-1-2qv5enlg-n2unr5-f6k5ba] sendTransaction [lr1-m68xgnlg-1-2qv5enlg-n2unr5-f6k5ba]
javax.jms.IllegalStateException: Cannot find session with id vj2-h58xgnlg-1-oovzdnlg-79hlxi-j4k5ba
at org.jboss.jms.server.endpoint.ServerConnectionEndpoint.processTransaction(ServerConnectionEndpoint.java:835)
at org.jboss.jms.server.endpoint.ServerConnectionEndpoint.sendTransaction(ServerConnectionEndpoint.java:489)
at org.jboss.jms.server.endpoint.advised.ConnectionAdvised.org$jboss$jms$server$endpoint$advised$ConnectionAdvised$sendTransaction$aop(ConnectionAdvised.java:101)
at org.jboss.jms.server.endpoint.advised.ConnectionAdvised$sendTransaction_N3268650789275322226.invokeTarget(ConnectionAdvised$sendTransaction_N3268650789275322226.java)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:111)
at org.jboss.jms.server.container.SecurityAspect.handleSendTransaction(SecurityAspect.java:195)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.jboss.aop.advice.PerInstanceAdvice.invoke(PerInstanceAdvice.java:122)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.jms.server.container.ServerLogInterceptor.invoke(ServerLogInterceptor.java:105)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.jms.server.endpoint.advised.ConnectionAdvised.sendTransaction(ConnectionAdvised.java)
at org.jboss.jms.wireformat.ConnectionSendTransactionRequest.serverInvoke(ConnectionSendTransactionRequest.java:82)
at org.jboss.jms.server.remoting.JMSServerInvocationHandler.invoke(JMSServerInvocationHandler.java:143)
at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:891)
at org.jboss.remoting.transport.local.LocalClientInvoker.invoke(LocalClientInvoker.java:106)
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.jms.client.delegate.DelegateSupport.doInvoke(DelegateSupport.java:189)
at org.jboss.jms.client.delegate.DelegateSupport.doInvoke(DelegateSupport.java:160)
at org.jboss.jms.client.delegate.ClientConnectionDelegate.org$jboss$jms$client$delegate$ClientConnectionDelegate$sendTransaction$aop(ClientConnectionDelegate.java:221)
at org.jboss.jms.client.delegate.ClientConnectionDelegate$sendTransaction_N3268650789275322226.invokeTarget(ClientConnectionDelegate$sendTransaction_N3268650789275322226.java)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:111)
at org.jboss.jms.client.container.FailoverValveInterceptor.invoke(FailoverValveInterceptor.java:92)
at org.jboss.aop.advice.PerInstanceInterceptor.invoke(PerInstanceInterceptor.java:86)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.jms.client.container.ClosedInterceptor.invoke(ClosedInterceptor.java:170)
at org.jboss.aop.advice.PerInstanceInterceptor.invoke(PerInstanceInterceptor.java:86)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.jms.client.delegate.ClientConnectionDelegate.sendTransaction(ClientConnectionDelegate.java)
at org.jboss.jms.tx.ResourceManager.sendTransactionXA(ResourceManager.java:667)
at org.jboss.jms.tx.ResourceManager.commit(ResourceManager.java:367)
at org.jboss.jms.tx.MessagingXAResource.commit(MessagingXAResource.java:255)
at com.arjuna.ats.internal.jta.resources.arjunacore.XAResourceRecord.topLevelOnePhaseCommit(XAResourceRecord.java:811)
at com.arjuna.ats.arjuna.coordinator.BasicAction.onePhaseCommit(BasicAction.java:2656)
at com.arjuna.ats.arjuna.coordinator.BasicAction.End(BasicAction.java:1784)
at com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator.end(TwoPhaseCoordinator.java:94)
at com.arjuna.ats.arjuna.AtomicAction.commit(AtomicAction.java:177)
at com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.commitAndDisassociate(TransactionImple.java:1423)
at com.arjuna.ats.internal.jta.transaction.arjunacore.BaseTransaction.commit(BaseTransaction.java:137)
at com.arjuna.ats.jbossatx.BaseTransactionManagerDelegate.commit(BaseTransactionManagerDelegate.java:75)
at org.jboss.resource.adapter.jms.inflow.JmsServerSession$XATransactionDemarcationStrategy.end(JmsServerSession.java:657)
at org.jboss.resource.adapter.jms.inflow.JmsServerSession.run(JmsServerSession.java:243)
at org.jboss.resource.work.WorkWrapper.execute(WorkWrapper.java:205)
at org.jboss.util.threadpool.BasicTaskWrapper.run(BasicTaskWrapper.java:260)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
14:46:40,754 ERROR [JmsServerSession] mailto:org.jboss.resource.adapter.jms.inflow.JmsServerSession@148226f org.jboss.resource.adapter.jms.inflow.JmsServerSession@148226f failed to commit/rollback
javax.transaction.RollbackException: [com.arjuna.ats.internal.jta.transaction.arjunacore.commitwhenaborted] [com.arjuna.ats.internal.jta.transaction.arjunacore.commitwhenaborted] Could not commit transaction.
at com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.commitAndDisassociate(TransactionImple.java:1435)
at com.arjuna.ats.internal.jta.transaction.arjunacore.BaseTransaction.commit(BaseTransaction.java:137)
at com.arjuna.ats.jbossatx.BaseTransactionManagerDelegate.commit(BaseTransactionManagerDelegate.java:75)
at org.jboss.resource.adapter.jms.inflow.JmsServerSession$XATransactionDemarcationStrategy.end(JmsServerSession.java:657)
at org.jboss.resource.adapter.jms.inflow.JmsServerSession.run(JmsServerSession.java:243)
at org.jboss.resource.work.WorkWrapper.execute(WorkWrapper.java:205)
at org.jboss.util.threadpool.BasicTaskWrapper.run(BasicTaskWrapper.java:260)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/596805#596805]
Start a new discussion in JBoss Messaging at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
15 years
[JBoss Messaging] - message passing through underlying db
by Tim Coninx
Tim Coninx [http://community.jboss.org/people/timconinxrvp] created the discussion
"message passing through underlying db"
To view the discussion, visit: http://community.jboss.org/message/588347#588347
--------------------------------------------------------------
Hello,
We are using a system where three jboss servers with the same application are connected to the same db. The servers are not clustered, but rather serve different audiences.
Currently we are having a problem with our jms subsystem because a queue fills up too fast because messages are causing exceptions. Normally each server will process its own messages, but because we sometimes have to restart all servers (while a queue is still filled), they suddenly all three start processing all messages that are (at that point) in the db at the same time, meaning that the number of messages failing triples.
Now we want to have a dedicated (fourth) server to handle all messages. That one will be the only one with activated message driven beans. The messages will still be published however by the three other servers.
My question: is this possible, and how ? Because normally a message published by one server will never be processed by another server on the same db (unless the message is left in the db and the server restarted). Passing the messages through the messagesucker seems a bit farfetched, as the messages are already in the correct tables.
We're also not (directly) looking for clustering the servers... although this might become the first step
I accept 'rtfm' answers, but I'd like a general chapter to read then :)
Thanks in advance
Tim
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/588347#588347]
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] - JBoss 5.1 Web Service Unable to create StAX reader or writer
by P P
P P [http://community.jboss.org/people/pushpak1981] created the discussion
"JBoss 5.1 Web Service Unable to create StAX reader or writer"
To view the discussion, visit: http://community.jboss.org/message/596853#596853
--------------------------------------------------------------
Hi All,
I am using jBoss 5.1. We are facing the following error while calling remote web service from our application which is deployed in JBoss 5.1 on Linux Machine.
javax.xml.ws.soap.SOAPFaultException: Couldn't create SOAP message due to exception: Unable to create StAX reader or writer
at org.jboss.ws.core.jaxws.SOAPFaultHelperJAXWS.getSOAPFaultException(SOAPFaultHelperJAXWS.java:84)
at org.jboss.ws.core.jaxws.binding.SOAP11BindingJAXWS.throwFaultException(SOAP11BindingJAXWS.java:107)
at org.jboss.ws.core.CommonSOAPBinding.unbindResponseMessage(CommonSOAPBinding.java:579)
at org.jboss.ws.core.CommonClient.invoke(CommonClient.java:381)
at org.jboss.ws.core.jaxws.client.ClientImpl.invoke(ClientImpl.java:290)
at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:170)
at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:150)
This issue is generated ramdomly when we call the remote web service many times.
Any help would be highly appreciated.
Thanks.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/596853#596853]
Start a new discussion in JBoss Web Services at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
15 years
[JBoss Tools] - Error after enabling m2eclipse
by Leandro Iriarte
Leandro Iriarte [http://community.jboss.org/people/liriarte] created the discussion
"Error after enabling m2eclipse"
To view the discussion, visit: http://community.jboss.org/message/595906#595906
--------------------------------------------------------------
I got the following error in JBoss Studio 3.0.1.GA after enabling m2eclipse dependency management in all the projects.
An internal error occurred during: "Initializing Java Tooling".
org.eclipse.jst.j2ee.application.internal.impl.ApplicationImpl cannot be cast to org.eclipse.jst.javaee.application.Application
In the log file I find the following:
!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.core.resources".
!STACK 0
java.lang.ClassCastException: org.eclipse.jst.j2ee.application.internal.impl.ApplicationImpl cannot be cast to org.eclipse.jst.javaee.application.Application
at org.eclipse.jst.j2ee.project.EarUtilities.getEARLibDir(EarUtilities.java:372)
at org.eclipse.jst.j2ee.internal.common.classpath.J2EEComponentClasspathContainer.getBaseEARLibRefs(J2EEComponentClasspathContainer.java:321)
at org.eclipse.jst.j2ee.internal.common.classpath.J2EEComponentClasspathContainer.update(J2EEComponentClasspathContainer.java:211)
at org.eclipse.jst.j2ee.internal.common.classpath.J2EEComponentClasspathContainer.install(J2EEComponentClasspathContainer.java:351)
at org.eclipse.jst.j2ee.internal.common.classpath.J2EEComponentClasspathInitializer.initialize(J2EEComponentClasspathInitializer.java:47)
at org.eclipse.jdt.internal.core.JavaModelManager.initializeContainer(JavaModelManager.java:2642)
at org.eclipse.jdt.internal.core.JavaModelManager.getClasspathContainer(JavaModelManager.java:1813)
at org.eclipse.jdt.core.JavaCore.getClasspathContainer(JavaCore.java:2652)
at org.eclipse.jdt.internal.core.JavaProject.resolveClasspath(JavaProject.java:2578)
at org.eclipse.jdt.internal.core.JavaProject.resolveClasspath(JavaProject.java:2679)
at org.eclipse.jdt.internal.core.JavaProject.getResolvedClasspath(JavaProject.java:1899)
at org.jboss.tools.common.model.util.EclipseResourceUtil.getClassPath(EclipseResourceUtil.java:676)
at org.jboss.tools.seam.internal.core.scanner.lib.ClassPath.update(ClassPath.java:95)
at org.jboss.tools.seam.core.SeamCoreBuilder.build(SeamCoreBuilder.java:95)
at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:627)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:170)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:201)
at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:253)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:256)
at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:309)
at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:341)
at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:140)
at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:238)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/595906#595906]
Start a new discussion in JBoss Tools at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
15 years
[Beginner's Corner] - Classloading issue for beginner. Make an isolation policy
by spulci
spulci [http://community.jboss.org/people/spulci] created the discussion
"Classloading issue for beginner. Make an isolation policy"
To view the discussion, visit: http://community.jboss.org/message/596745#596745
--------------------------------------------------------------
Hallo,
i've got a JBOSS 5.1 configuration (it's not the minimal one and I can't modify it). My web application (just a WAR, no EJB) uses for its own hibernate libraries as well as other jars used in common/lib dir by JBoss. Starting the app generate several coflict on methods on various jars (ClassNotFound Exception as well as MethodNotFound....).
I've started reading that I should add a descriptor in my web-inf dir (jboss-web.xml) to instruct jboss to apply an isolation policy to use the right classloader having no conflicts. I'm getting crazy because of lack of experience in configuring JBoss so I need some help.
My goal is to have JBOSS using my web-inf/lib to solve classloading issue using my jars with right versioning.
Can someone give me some example or a tutorial or even a brief xml snippet to achieve this?
Thanks a lot
Simon
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/596745#596745]
Start a new discussion in Beginner's Corner at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
15 years