[JBoss Messaging] - Re: Queue client failover solution while jboss5.1 crashed
by glenwood
I have set <refresh-timeout>5000</refresh-timeout> for 5 secs ,and wait for at least 15 secs to start node but still throw up same WARN message,I also got below exceptions
02:49:59,627 SEVERE [ServerSessionImpl] Failed to send message
java.lang.NullPointerException
at java.nio.ByteBuffer.wrap(ByteBuffer.java:373)
at org.jboss.messaging.core.postoffice.impl.BindingsImpl.routeFromCluster(BindingsImpl.java:139)
at org.jboss.messaging.core.postoffice.impl.BindingsImpl.route(BindingsImpl.java:284)
at org.jboss.messaging.core.postoffice.impl.PostOfficeImpl.route(PostOfficeImpl.java:656)
at org.jboss.messaging.core.postoffice.impl.PostOfficeImpl.route(PostOfficeImpl.java:667)
at org.jboss.messaging.core.server.impl.ServerSessionImpl.send(ServerSessionImpl.java:2526)
at org.jboss.messaging.core.server.impl.ServerSessionImpl.doSend(ServerSessionImpl.java:2334)
at org.jboss.messaging.core.server.impl.ServerSessionImpl.handleSend(ServerSessionImpl.java:1038)
at org.jboss.messaging.core.server.impl.ServerSessionPacketHandler.handlePacket(ServerSessionPacketHandler.java:269)
at org.jboss.messaging.core.remoting.impl.ChannelImpl.handlePacket(ChannelImpl.java:621)
at org.jboss.messaging.core.remoting.impl.RemotingConnectionImpl.bufferReceived(RemotingConnectionImpl.java:399)
at org.jboss.messaging.core.remoting.server.impl.RemotingServiceImpl$DelegatingBufferHandler.bufferReceived(RemotingServiceImpl.java:483)
at org.jboss.messaging.integration.transports.netty.MessagingChannelHandler.messageReceived(MessagingChannelHandler.java:75)
at org.jboss.netty.channel.SimpleChannelHandler.handleUpstream(SimpleChannelHandler.java:105)
at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:567)
at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:803)
at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:387)
at org.jboss.netty.handler.codec.frame.FrameDecoder.fireMessageReceived(FrameDecoder.java:284)
at org.jboss.netty.handler.codec.frame.FrameDecoder.callDecode(FrameDecoder.java:261)
at org.jboss.netty.handler.codec.frame.FrameDecoder.messageReceived(FrameDecoder.java:182)
at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:87)
at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:567)
at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:562)
at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:344)
at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:331)
at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:303)
at org.jboss.netty.channel.socket.nio.NioWorker.processSelectedKeys(NioWorker.java:255)
at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:176)
at org.jboss.netty.util.internal.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:72)
at org.jboss.netty.util.internal.IoWorkerRunnable.run(IoWorkerRunnable.java:49)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)
Sometimes once I restarted the server been killed,I got following exceptions,
03:06:51,359 WARNING [ClientSessionImpl] 1670189749 Session not found on server when attempting to re-attach
03:06:51,370 SEVERE [BridgeImpl] Failed to stop
java.lang.IllegalStateException: Cannot find add info 121
at org.jboss.messaging.core.journal.impl.JournalImpl.appendUpdateRecord(JournalImpl.java:320)
at org.jboss.messaging.core.persistence.impl.journal.JournalStorageManager.updateDeliveryCount(JournalStorageManager.java:462)
at org.jboss.messaging.core.server.impl.QueueImpl.checkDLQ(QueueImpl.java:1077)
at org.jboss.messaging.core.server.impl.QueueImpl.cancel(QueueImpl.java:688)
at org.jboss.messaging.core.server.cluster.impl.BridgeImpl.cancelRefs(BridgeImpl.java:299)
at org.jboss.messaging.core.server.cluster.impl.BridgeImpl.access$800(BridgeImpl.java:79)
at org.jboss.messaging.core.server.cluster.impl.BridgeImpl$FailRunnable.run(BridgeImpl.java:756)
at org.jboss.messaging.utils.OrderedExecutorFactory$OrderedExecutor$1.run(OrderedExecutorFactory.java:105)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)
03:06:51,671 SEVERE [ServerSessionImpl] Failed to send message
java.lang.NullPointerException
at java.nio.ByteBuffer.wrap(ByteBuffer.java:373)
at org.jboss.messaging.core.postoffice.impl.BindingsImpl.routeFromCluster(BindingsImpl.java:139)
at org.jboss.messaging.core.postoffice.impl.BindingsImpl.route(BindingsImpl.java:284)
at org.jboss.messaging.core.postoffice.impl.PostOfficeImpl.route(PostOfficeImpl.java:656)
at org.jboss.messaging.core.postoffice.impl.PostOfficeImpl.route(PostOfficeImpl.java:667)
at org.jboss.messaging.core.server.impl.ServerSessionImpl.send(ServerSessionImpl.java:2526)
at org.jboss.messaging.core.server.impl.ServerSessionImpl.doSend(ServerSessionImpl.java:2334)
at org.jboss.messaging.core.server.impl.ServerSessionImpl.handleSend(ServerSessionImpl.java:1038)
at org.jboss.messaging.core.server.impl.ServerSessionPacketHandler.handlePacket(ServerSessionPacketHandler.java:269)
at org.jboss.messaging.core.remoting.impl.ChannelImpl.handlePacket(ChannelImpl.java:621)
at org.jboss.messaging.core.remoting.impl.RemotingConnectionImpl.bufferReceived(RemotingConnectionImpl.java:399)
at org.jboss.messaging.core.remoting.server.impl.RemotingServiceImpl$DelegatingBufferHandler.bufferReceived(RemotingServiceImpl.java:483)
at org.jboss.messaging.integration.transports.netty.MessagingChannelHandler.messageReceived(MessagingChannelHandler.java:75)
at org.jboss.netty.channel.SimpleChannelHandler.handleUpstream(SimpleChannelHandler.java:105)
at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:567)
at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:803)
at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:387)
at org.jboss.netty.handler.codec.frame.FrameDecoder.fireMessageReceived(FrameDecoder.java:284)
at org.jboss.netty.handler.codec.frame.FrameDecoder.callDecode(FrameDecoder.java:261)
at org.jboss.netty.handler.codec.frame.FrameDecoder.messageReceived(FrameDecoder.java:182)
at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:87)
at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:567)
at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:562)
at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:344)
at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:331)
at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:303)
at org.jboss.netty.channel.socket.nio.NioWorker.processSelectedKeys(NioWorker.java:255)
at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:176)
at org.jboss.netty.util.internal.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:72)
at org.jboss.netty.util.internal.IoWorkerRunnable.run(IoWorkerRunnable.java:49)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)
03:06:51,672 SEVERE [ServerSessionImpl] Failed to send message
java.lang.NullPointerException
at java.nio.ByteBuffer.wrap(ByteBuffer.java:373)
at org.jboss.messaging.core.postoffice.impl.BindingsImpl.routeFromCluster(BindingsImpl.java:139)
at org.jboss.messaging.core.postoffice.impl.BindingsImpl.route(BindingsImpl.java:284)
at org.jboss.messaging.core.postoffice.impl.PostOfficeImpl.route(PostOfficeImpl.java:656)
at org.jboss.messaging.core.postoffice.impl.PostOfficeImpl.route(PostOfficeImpl.java:667)
at org.jboss.messaging.core.server.impl.ServerSessionImpl.send(ServerSessionImpl.java:2526)
at org.jboss.messaging.core.server.impl.ServerSessionImpl.doSend(ServerSessionImpl.java:2334)
at org.jboss.messaging.core.server.impl.ServerSessionImpl.handleSend(ServerSessionImpl.java:1038)
at org.jboss.messaging.core.server.impl.ServerSessionPacketHandler.handlePacket(ServerSessionPacketHandler.java:269)
at org.jboss.messaging.core.remoting.impl.ChannelImpl.handlePacket(ChannelImpl.java:621)
at org.jboss.messaging.core.remoting.impl.RemotingConnectionImpl.bufferReceived(RemotingConnectionImpl.java:399)
at org.jboss.messaging.core.remoting.server.impl.RemotingServiceImpl$DelegatingBufferHandler.bufferReceived(RemotingServiceImpl.java:483)
at org.jboss.messaging.integration.transports.netty.MessagingChannelHandler.messageReceived(MessagingChannelHandler.java:75)
at org.jboss.netty.channel.SimpleChannelHandler.handleUpstream(SimpleChannelHandler.java:105)
at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:567)
at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:803)
at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:387)
at org.jboss.netty.handler.codec.frame.FrameDecoder.fireMessageReceived(FrameDecoder.java:284)
at org.jboss.netty.handler.codec.frame.FrameDecoder.callDecode(FrameDecoder.java:261)
at org.jboss.netty.handler.codec.frame.FrameDecoder.messageReceived(FrameDecoder.java:182)
at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:87)
at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:567)
at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:562)
at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:344)
at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:331)
at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:303)
at org.jboss.netty.channel.socket.nio.NioWorker.processSelectedKeys(NioWorker.java:255)
at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:176)
at org.jboss.netty.util.internal.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:72)
at org.jboss.netty.util.internal.IoWorkerRunnable.run(IoWorkerRunnable.java:49)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4245821#4245821
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4245821
16 years, 12 months
[JBoss Portal] - upgrade jbpm to 3.2.6: how to
by lpiccoli
jbossportal 2.7.2
hi all,
i am upgrading from jbpm3.2.2 to jbpm3.2.6 in jboss portal 2.7.2.
i made the following changes
1. changed the jbpm-identity.jar, jbpm-jpdl.jar
2. changed the conf/hibernate/workflow/hibernate.cfg.xml
3. modifed the jboss-portal.sar\portal-workflow.sar/jboss-service.xml
But the workflow doesnt deploy due to errors below.
| 21:10:42,843 ERROR [JobExecutorThread] exception in job executor thread. waiting
| 20000 milliseconds
| org.jbpm.JbpmException: transaction begin failed
| at org.jbpm.persistence.jta.JtaDbPersistenceService.beginTransaction(Jta
| DbPersistenceService.java:74)
| at org.jbpm.persistence.jta.JtaDbPersistenceService.<init>(JtaDbPersiste
| nceService.java:48)
| at org.jbpm.persistence.jta.JtaDbPersistenceServiceFactory.openService(J
| taDbPersistenceServiceFactory.java:66)
| at org.jbpm.svc.Services.getService(Services.java:156)
| at org.jbpm.svc.Services.getPersistenceService(Services.java:196)
| at org.jbpm.JbpmContext.getPersistenceService(JbpmContext.java:699)
| at org.jbpm.JbpmContext.getJobSession(JbpmContext.java:626)
| at org.jbpm.job.executor.JobExecutorThread.acquireJobs(JobExecutorThread
| .java:114)
| at org.jbpm.job.executor.JobExecutorThread.run(JobExecutorThread.java:58
| )
| Caused by: org.jbpm.JbpmException: could not retrieve user transaction with name
| java:comp/UserTransaction
| at org.jbpm.persistence.jta.JtaDbPersistenceServiceFactory.getUserTransa
| ction(JtaDbPersistenceServiceFactory.java:90)
|
any ideas are most appreciated.
-lp
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4245809#4245809
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4245809
16 years, 12 months
[JBoss Messaging] - Re: Message not re-delivered to Specified OR Default DLQ
by sjunejo
hmmm.... thats something new.Where do I have to change my config????
Following are my ejb-jar.xml and jboss.xml used in MDB.
ejb-jar.xml
| <?xml version="1.0" encoding="UTF-8"?>
| <ejb-jar id="EJBJar_OfsMessageMDB" version="2.1" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/ejb-jar_2_1.xsd">
| <display-name>OFSMessage</display-name>
| <enterprise-beans>
| <message-driven id="MessageDriven_OfsMessageMDB">
| <display-name>OFSMessage Bean</display-name>
| <ejb-name>OFSMessageMDB</ejb-name>
| <ejb-class>com.temenos.ofsmessage.mdb.OFSMessageMDB</ejb-class>
| <messaging-type>javax.jms.MessageListener</messaging-type>
| <transaction-type>Bean</transaction-type>
| <message-destination-type>javax.jms.Queue</message-destination-type>
| <activation-config>
| <activation-config-property>
| <activation-config-property-name>acknowledgeMode</activation-config-property-name>
| <activation-config-property-value>Auto-acknowledge</activation-config-property-value>
| </activation-config-property>
| </activation-config>
| <resource-ref id="ResourceRef_jmsQueueConnectionFactory">
| <description>T24 Queue Connection Factory</description>
| <res-ref-name>jms/jmsConnectionFactory</res-ref-name>
| <res-type>javax.jms.QueueConnectionFactory</res-type>
| <res-auth>Container</res-auth>
| </resource-ref>
| <resource-ref id="ResourceRef_t24ConnectionFactory">
| <description>T24 JCA Connection Factory</description>
| <res-ref-name>jca/t24ConnectionFactory</res-ref-name>
| <res-type>com.jbase.jremote.JConnectionFactory</res-type>
| <res-auth>Container</res-auth>
| </resource-ref>
| <resource-ref id="ResourceRef_t24OFSReplyQueue">
| <description>OFS reply queue</description>
| <res-ref-name>queue/t24OFSReplyQueue</res-ref-name>
| <res-type>javax.jms.Queue</res-type>
| <res-auth>Container</res-auth>
| </resource-ref>
| </message-driven>
|
| <message-driven id="MessageDriven_OfsMessageMDB_DLQ">
| <display-name>OFSMessage Bean DLQ</display-name>
| <ejb-name>OFSMessageMDB_DLQ</ejb-name>
| <ejb-class>com.temenos.ofsmessage.mdb.OFSMessageMDB</ejb-class>
| <messaging-type>javax.jms.MessageListener</messaging-type>
| <transaction-type>Bean</transaction-type>
| <message-destination-type>javax.jms.Queue</message-destination-type>
| <activation-config>
| <activation-config-property>
| <activation-config-property-name>acknowledgeMode</activation-config-property-name>
| <activation-config-property-value>Auto-acknowledge</activation-config-property-value>
| </activation-config-property>
| </activation-config>
| <resource-ref id="ResourceRef_jmsQueueConnectionFactory_DLQ">
| <description>T24 Queue Connection Factory</description>
| <res-ref-name>jms/jmsConnectionFactory</res-ref-name>
| <res-type>javax.jms.QueueConnectionFactory</res-type>
| <res-auth>Container</res-auth>
| </resource-ref>
| <resource-ref id="ResourceRef_t24ConnectionFactory_DLQ">
| <description>T24 JCA Connection Factory</description>
| <res-ref-name>jca/t24ConnectionFactory</res-ref-name>
| <res-type>com.jbase.jremote.JConnectionFactory</res-type>
| <res-auth>Container</res-auth>
| </resource-ref>
| <resource-ref id="ResourceRef_t24OFSReplyQueue_DLQ">
| <description>OFS reply queue</description>
| <res-ref-name>queue/t24OFSReplyQueue</res-ref-name>
| <res-type>javax.jms.Queue</res-type>
| <res-auth>Container</res-auth>
| </resource-ref>
| </message-driven>
| </enterprise-beans>
| </ejb-jar>
|
jboss.xml
| <?xml version="1.0" encoding="UTF-8"?>
|
| <!DOCTYPE jboss PUBLIC "-//JBoss//DTD JBOSS 4.0//EN"
| "http://www.jboss.org/j2ee/dtd/jboss_4_0.dtd">
|
| <jboss>
| <enterprise-beans>
| <message-driven>
| <ejb-name>OFSMessageMDB</ejb-name>
| <destination-jndi-name>queue/t24OFSQueue</destination-jndi-name>
| <resource-ref>
| <res-ref-name>jms/jmsConnectionFactory</res-ref-name>
| <jndi-name>java:/ConnectionFactory</jndi-name>
| </resource-ref>
| <resource-ref>
| <res-ref-name>queue/t24OFSReplyQueue</res-ref-name>
| <!-- <res-type>javax.jms.Queue</res-type>
| -->
| <jndi-name>queue/t24OFSReplyQueue</jndi-name>
| </resource-ref>
| <resource-ref>
| <res-ref-name>jca/t24ConnectionFactory</res-ref-name>
| <jndi-name>java:jca/t24ConnectionFactory</jndi-name>
| <!-- <res-type>com.jbase.jremote.JConnectionFactory</res-type>
| -->
| </resource-ref>
| </message-driven>
|
| <message-driven>
| <ejb-name>OFSMessageMDB_DLQ</ejb-name>
| <destination-jndi-name>queue/t24OFSDLQ</destination-jndi-name>
| <resource-ref>
| <res-ref-name>jms/jmsConnectionFactory</res-ref-name>
| <jndi-name>java:/ConnectionFactory</jndi-name>
| </resource-ref>
| <resource-ref>
| <res-ref-name>queue/t24OFSReplyQueue</res-ref-name>
| <!--<res-type>javax.jms.Queue</res-type>-->
| <jndi-name>queue/t24OFSReplyQueue</jndi-name>
| </resource-ref>
| <resource-ref>
| <res-ref-name>jca/t24ConnectionFactory</res-ref-name>
| <jndi-name>java:jca/t24ConnectionFactory_DLQ</jndi-name>
| <!--<res-type>com.jbase.jremote.JConnectionFactory</res-type>-->
| </resource-ref>
| </message-driven>
| </enterprise-beans>
| </jboss>
|
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4245802#4245802
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4245802
16 years, 12 months