[
http://jira.jboss.com/jira/browse/JBMESSAGING-1381?page=comments#action_1... ]
Naveen Malik commented on JBMESSAGING-1381:
-------------------------------------------
Setup:
1. Install JBossAS
2. Deploy a MessagingDS pointing to the MySQL server. Database can be empty, JBM will
create tables on startup.
3. Delete deploy/jboss-messaging.sar/clustered-hsqldb-persistence-service.xml
3. Copy the mysql-persistence-service.xml from the JBM release to
deploy/jboss-messaging.sar
4. Edit persistence service to use MessagingDS.
5. Edit conf/login-config.xml to use MessagingDS for messaging.
6. Deploy mysql-connector-java-5.0.7-bin.jar in server lib.
Attaching configuration files used.
This happens when sending a message to the queue only. Startup occurs successfully. I can
successfully send a message to a queue if I do not change the setup to use MySQL for
message persistence. That is, do a base install of JBoss AS and it works out of the box
with hsqldb and I can send a message to queue/testQueue. I did not use the process in the
user guide to test this.
SVN info for where I got the mysql-persistence-service.xml file:
URL:
http://anonsvn.jboss.org/repos/messaging/tags/JBossMessaging_1_4_0_SP3_CP02
Repository Root:
http://anonsvn.jboss.org/repos/messaging
Repository UUID: b6fe21fe-e719-0410-baf4-a14e395396c4
Revision: 4519
Node Kind: directory
Schedule: normal
Last Changed Author: timfox
Last Changed Rev: 4012
Last Changed Date: 2008-04-04 12:10:19 -0400 (Fri, 04 Apr 2008)
Exception seen:
java.lang.NullPointerException
at java.util.concurrent.ConcurrentHashMap.put(ConcurrentHashMap.java:846)
at
org.jboss.messaging.core.impl.JDBCPersistenceManager.cacheID(JDBCPersistenceManager.java:
1632)
at
org.jboss.messaging.core.impl.JDBCPersistenceManager$1AddReferenceRunner.doTransaction(JD
BCPersistenceManager.java:1358)
at
org.jboss.messaging.core.impl.JDBCSupport$JDBCTxRunner2.execute(JDBCSupport.java:474)
at
org.jboss.messaging.core.impl.JDBCSupport$JDBCTxRunner2.executeWithRetry(JDBCSupport.java
:512)
at
org.jboss.messaging.core.impl.JDBCPersistenceManager.addReference(JDBCPersistenceManager.
java:1396)
at org.jboss.messaging.core.impl.ChannelSupport.handle(ChannelSupport.java:226)
at
org.jboss.messaging.core.impl.postoffice.MessagingPostOffice.routeInternal(MessagingPostO
ffice.java:2208)
at
org.jboss.messaging.core.impl.postoffice.MessagingPostOffice.route(MessagingPostOffice.ja
va:494)
at
org.jboss.jms.server.endpoint.ServerConnectionEndpoint.sendMessage(ServerConnectionEndpoi
nt.java:755)
at
org.jboss.jms.server.endpoint.ServerSessionEndpoint.send(ServerSessionEndpoint.java:391)
at
org.jboss.jms.server.endpoint.advised.SessionAdvised.org$jboss$jms$server$endpoint$advise
d$SessionAdvised$send$aop(SessionAdvised.java:87)
at
org.jboss.jms.server.endpoint.advised.SessionAdvised$send_7280680627620114891.invokeNext(
SessionAdvised$send_7280680627620114891.java)
at
org.jboss.jms.server.container.SecurityAspect.handleSend(SecurityAspect.java:157)
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:585)
at org.jboss.aop.advice.PerInstanceAdvice.invoke(PerInstanceAdvice.java:121)
at
org.jboss.jms.server.endpoint.advised.SessionAdvised$send_7280680627620114891.invokeNext(
SessionAdvised$send_7280680627620114891.java)
at org.jboss.jms.server.endpoint.advised.SessionAdvised.send(SessionAdvised.java)
at
org.jboss.jms.wireformat.SessionSendRequest.serverInvoke(SessionSendRequest.java:95)
at
org.jboss.jms.server.remoting.JMSServerInvocationHandler.invoke(JMSServerInvocationHandle
r.java:143)
at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:809)
at
org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:572)
at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:387)
at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:166)
2008-06-20 11:01:10,092 ERROR [org.jboss.messaging.util.ExceptionUtil]
SessionEndpoint[i-8yetwohf-1-
6k8swohf-c909sv-z1a6ba] send [j-0fftwohf-1-6k8swohf-c909sv-z1a6ba]
javax.jms.JMSException: Failed to route Reference[19889751164256256]:RELIABLE to
testQueue
at
org.jboss.jms.server.endpoint.ServerConnectionEndpoint.sendMessage(ServerConnectionEndpoi
nt.java:757)
at
org.jboss.jms.server.endpoint.ServerSessionEndpoint.send(ServerSessionEndpoint.java:391)
at
org.jboss.jms.server.endpoint.advised.SessionAdvised.org$jboss$jms$server$endpoint$advise
d$SessionAdvised$send$aop(SessionAdvised.java:87)
at
org.jboss.jms.server.endpoint.advised.SessionAdvised$send_7280680627620114891.invokeNext(
SessionAdvised$send_7280680627620114891.java)
at
org.jboss.jms.server.container.SecurityAspect.handleSend(SecurityAspect.java:157)
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:585)
at org.jboss.aop.advice.PerInstanceAdvice.invoke(PerInstanceAdvice.java:121)
at
org.jboss.jms.server.endpoint.advised.SessionAdvised$send_7280680627620114891.invokeNext(
SessionAdvised$send_7280680627620114891.java)
at org.jboss.jms.server.endpoint.advised.SessionAdvised.send(SessionAdvised.java)
at
org.jboss.jms.wireformat.SessionSendRequest.serverInvoke(SessionSendRequest.java:95)
at
org.jboss.jms.server.remoting.JMSServerInvocationHandler.invoke(JMSServerInvocationHandle
r.java:143)
at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:809)
at
org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:572)
at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:387)
at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:166)
JBM SP3 CP02 with MySQL persistence not working
-----------------------------------------------
Key: JBMESSAGING-1381
URL:
http://jira.jboss.com/jira/browse/JBMESSAGING-1381
Project: JBoss Messaging
Issue Type: Bug
Affects Versions: 1.4.0.SP3.CP02
Environment: kernel-2.6.25.4-10.fc8
4.3.0-2.GA_CP01.ep1.7.el4
jboss-messaging-1.4.0-1.SP3_CP02.0jpp.ep1.6.el4
Reporter: Naveen Malik
Assigned To: Tim Fox
Recently switched from JBM SP3 CP01 to CP02. I am using MySQL for persistence and am
unable to send a message to a queue successfully. The app server starts up without error,
but fails when attempting to send a message to a queue. JBM is creating the tables on
startup.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira