[JBoss Messaging] - Failed to remove delivery Delivery
by pradeepbhat
Steps
1. Created 5 Topics
2. Registered 5 subscribers for each of the above topic and disconnect
3. Run a producer program which sents messages to the above topic
4. Bring up all the subscribers to consume the messages.
I got this exception
2006-08-18 17:16:08,289 ERROR [org.jboss.messaging.core.ChannelSupport] Failed to remove delivery Delivery[Reference[219615]:RELIABLE](active) from state
| org.jboss.util.NestedSQLException: You are trying to use a connection factory that has been shut down: ManagedConnectionFactory is null.; - nested throwable: (javax.resource.ResourceException: You are trying to use a connection factory that has been shut down: ManagedConnectionFactory is null.)
| at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:79)
| at org.jboss.messaging.core.plugin.JDBCPersistenceManager.removeReference(JDBCPersistenceManager.java:1726)
| at org.jboss.messaging.core.ChannelState.acknowledge(ChannelState.java:312)
| at org.jboss.messaging.core.ChannelSupport.acknowledge(ChannelSupport.java:182)
| at org.jboss.messaging.core.SimpleDelivery.acknowledge(SimpleDelivery.java:136)
| at org.jboss.jms.server.endpoint.ServerConsumerEndpoint.acknowledgeAll(ServerConsumerEndpoint.java:500)
| at org.jboss.jms.server.endpoint.ServerSessionEndpoint.acknowledge(ServerSessionEndpoint.java:411)
| at org.jboss.jms.server.endpoint.advised.SessionAdvised.org$jboss$jms$server$endpoint$advised$SessionAdvised$acknowledge$aop(SessionAdvised.java:103)
| at sun.reflect.GeneratedMethodAccessor120.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:112)
| at org.jboss.aop.Advisor.dynamicInvoke(Advisor.java:723)
| at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:101)
| at org.jboss.jms.server.remoting.JMSServerInvocationHandler.invoke(JMSServerInvocationHandler.java:126)
| at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:842)
| at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:691)
| at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:443)
| at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:530)
| at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:253)
| Caused by: javax.resource.ResourceException: You are trying to use a connection factory that has been shut down: ManagedConnectionFactory is null.
| at org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:454)
| at org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseConnectionManager2.java:894)
| at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:73)
| ... 19 more
The code hasn't closed the connection factory. Why is the error coming ?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3966043#3966043
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3966043
19 years, 8 months
[JBoss Messaging] - SQL Server Image types won't map
by chipschoch
I am attempting to use SQL Server as my DB for messaging. I have setup the default mapping to the MS SQLSERVER2000 mapping and have changed the persistence service file to one that works. I start my server and it builds the tables correctly and I am able to run the examples. Everything seems to works fine until I restart my server with messages persistent in jms_message table. I get an exception dump and an error that reads:
[Microsoft][SQLServer 2000 Driver for JDBC]ResultSet can not re-read row data for column 7.
This is an image column in jms_message. It is acting like it is disregarding the datasource-mapping for SQL Server that I specified in standardjbosscmp-jdbc.xml.
<java-type>java.lang.Object</java-type>
<jdbc-type>LONGVARBINARY</jdbc-type>
<sql-type>IMAGE</sql-type>
The docs I found say that this fileis for Container Managed Persistence. Is there a similiar file that has datasource-mapping for jboss messaging?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3966042#3966042
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3966042
19 years, 8 months