[JBoss Messaging] - Error for PERSISTENT delivery mode in JBoss Messaging
by ganaparthi
Hi All,
I have configured jboss-4.2.0.GA and jboss-messaging-1.3.0.GA. I successfully tested sample applications. When trying to use
QueueSender.send(bytesMessage, javax.jms.DeliveryMode.PERSISTENT, qpriority,javax.jms.Message.DEFAULT_TIME_TO_LIVE);
it is throwing the exception. But the same call working with javax.jms.DeliveryMode.NON_PERSISTENT option:
Any help appreciated.
Stack trace:
2007-08-13 19:36:26,859 ERROR [org.jboss.messaging.util.ExceptionUtil] SessionEndpoint[68] send [5c4o02z-hg70z6-f5b19n43-1-f5b1ha23-2t0]
java.sql.SQLException: operation not allowed: streams type cannot be used in batching
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179)
at oracle.jdbc.driver.OraclePreparedStatement.addBatch(OraclePreparedStatement.java:3775)
at org.jboss.resource.adapter.jdbc.WrappedPreparedStatement.addBatch(WrappedPreparedStatement.java:264)
at org.jboss.messaging.core.plugin.JDBCPersistenceManager.handleBeforeCommit1PC(JDBCPersistenceManager.java:1687)
at org.jboss.messaging.core.plugin.JDBCPersistenceManager$TransactionCallback.beforeCommit(JDBCPersistenceManager.java:3174)
at org.jboss.messaging.core.tx.Transaction.commit(Transaction.java:208)
at org.jboss.messaging.core.plugin.postoffice.cluster.DefaultClusteredPostOffice.route(DefaultClusteredPostOffice.java:1274)
at org.jboss.jms.server.endpoint.ServerConnectionEndpoint.sendMessage(ServerConnectionEndpoint.java:692)
at org.jboss.jms.server.endpoint.ServerSessionEndpoint.send(ServerSessionEndpoint.java:297)
at org.jboss.jms.server.endpoint.advised.SessionAdvised.org$jboss$jms$server$endpoint$advised$SessionAdvised$send$aop(SessionAdvised.java:80)
at org.jboss.jms.server.endpoint.advised.SessionAdvised$send_6145266547759487588.invokeNext(SessionAdvised$send_6145266547759487588.java)
at org.jboss.jms.server.container.SecurityAspect.handleSend(SecurityAspect.java:152)
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_6145266547759487588.invokeNext(SessionAdvised$send_6145266547759487588.java)
at org.jboss.jms.server.container.ServerLogInterceptor.invoke(ServerLogInterceptor.java:105)
at org.jboss.jms.server.endpoint.advised.SessionAdvised$send_6145266547759487588.invokeNext(SessionAdvised$send_6145266547759487588.java)
at org.jboss.jms.server.endpoint.advised.SessionAdvised.send(SessionAdvised.java)
at org.jboss.jms.wireformat.SessionSendRequest.serverInvoke(SessionSendRequest.java:85)
at org.jboss.jms.server.remoting.JMSServerInvocationHandler.invoke(JMSServerInvocationHandler.java:141)
at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:734)
at org.jboss.remoting.transport.local.LocalClientInvoker.invoke(LocalClientInvoker.java:101)
at org.jboss.remoting.Client.invoke(Client.java:1550)
at org.jboss.remoting.Client.invoke(Client.java:530)
at org.jboss.remoting.Client.invoke(Client.java:518)
at org.jboss.jms.client.delegate.DelegateSupport.doInvoke(DelegateSupport.java:186)
at org.jboss.jms.client.delegate.DelegateSupport.doInvoke(DelegateSupport.java:157)
at org.jboss.jms.client.delegate.ClientSessionDelegate.org$jboss$jms$client$delegate$ClientSessionDelegate$send$aop(ClientSessionDelegate.java:446)
at org.jboss.jms.client.delegate.ClientSessionDelegate$send_6145266547759487588.invokeNext(ClientSessionDelegate$send_6145266547759487588.java)
at org.jboss.jms.client.container.SessionAspect.handleSend(SessionAspect.java:634)
at org.jboss.aop.advice.org.jboss.jms.client.container.SessionAspect28.invoke(SessionAspect28.java)
at org.jboss.jms.client.delegate.ClientSessionDelegate$send_6145266547759487588.invokeNext(ClientSessionDelegate$send_6145266547759487588.java)
at org.jboss.jms.client.container.FailoverValveInterceptor.invoke(FailoverValveInterceptor.java:91)
at org.jboss.aop.advice.PerInstanceInterceptor.invoke(PerInstanceInterceptor.java:105)
at org.jboss.jms.client.delegate.ClientSessionDelegate$send_6145266547759487588.invokeNext(ClientSessionDelegate$send_6145266547759487588.java)
at org.jboss.jms.client.container.ClosedInterceptor.invoke(ClosedInterceptor.java:170)
at org.jboss.aop.advice.PerInstanceInterceptor.invoke(PerInstanceInterceptor.java:105)
at org.jboss.jms.client.delegate.ClientSessionDelegate$send_6145266547759487588.invokeNext(ClientSessionDelegate$send_6145266547759487588.java)
at org.jboss.jms.client.delegate.ClientSessionDelegate.send(ClientSessionDelegate.java)
at org.jboss.jms.client.container.ProducerAspect.handleSend(ProducerAspect.java:243)
at org.jboss.aop.advice.org.jboss.jms.client.container.ProducerAspect46.invoke(ProducerAspect46.java)
at org.jboss.jms.client.delegate.ClientProducerDelegate$send_3961598017717988886.invokeNext(ClientProducerDelegate$send_3961598017717988886.java)
at org.jboss.jms.client.container.ClosedInterceptor.invoke(ClosedInterceptor.java:170)
at org.jboss.aop.advice.PerInstanceInterceptor.invoke(PerInstanceInterceptor.java:105)
at org.jboss.jms.client.delegate.ClientProducerDelegate$send_3961598017717988886.invokeNext(ClientProducerDelegate$send_3961598017717988886.java)
at org.jboss.jms.client.delegate.ClientProducerDelegate.send(ClientProducerDelegate.java)
at org.jboss.jms.client.JBossMessageProducer.send(JBossMessageProducer.java:164)
at org.jboss.jms.client.JBossMessageProducer.send(JBossMessageProducer.java:207)
at org.jboss.jms.client.JBossMessageProducer.send(JBossMessageProducer.java:145)
at com.ecentives.em.qsend.SendQEJBBean.sendTo(SendQEJBBean.java:326)
at com.ecentives.em.qsend.SendQEJBBean.sendTo(SendQEJBBean.java:292)
at com.ecentives.em.qsend.SendQEJBBean.sendTo(SendQEJBBean.java:341)
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.invocation.Invocation.performCall(Invocation.java:359)
at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:237)
at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:158)
at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:169)
at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:63)
at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:121)
at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:350)
at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:181)
at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:168)
at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:205)
at org.jboss.ejb.plugins.CleanShutdownInterceptor.invoke(CleanShutdownInterceptor.java:278)
at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:138)
at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:648)
at org.jboss.ejb.Container.invoke(Container.java:960)
at sun.reflect.GeneratedMethodAccessor109.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.invocation.unified.server.UnifiedInvokerHA.invoke(UnifiedInvokerHA.java:146)
at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:734)
at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:560)
at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:383)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4075103#4075103
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4075103
18Â years, 11Â months
[JBoss Seam] - getting the TestNG seam tests working for the examples
by alanlynott
Hi,
I've been struggling with getting TestNG to work with anything but simple CRUD tests on my EJB layer. I wanted to start off by getting some simple authentication tests working as per the examples in the Booking example application so I tried to run those tests with the 2.0.0 Beta (which I have had previously working with the 1.2 GA release) but it keeps falling over with the same problems.
Has anyone got these tests working for the example applications with the 2.0.0 Beta, and if so could they tell me how please? The only way I have managed to get anything to work (and this is very hacky but I was running out of ideas) was to use the 1.2 GA jars in the test lib, and then the tests run but this is obviously not a way forward.
We are using the following configuration, and we are not using any other software apart from some Dojo libraries.
JBoss 4.2.1
Seam 2.0.0 Beta
Richfaces & Ajax4JSF
Any help would be greatly appreciated,
Thanks, Al.
FAILED CONFIGURATION: @BeforeClass init
[testng] org.jboss.deployers.spi.IncompleteDeploymentException: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):
[testng] *** CONTEXTS MISSING DEPENDENCIES: Name -> Dependency{Required State:Actual State}
[testng] jboss.jca:name=DefaultDS,service=DataSourceBinding
[testng] -> jboss.jca:name=DefaultDS,service=LocalTxCM{Create:Configured}
[testng] -> jboss.jca:name=DefaultDS,service=LocalTxCM{Start:Configured}
[testng] jboss.jca:name=DefaultDS,service=LocalTxCM
[testng] -> jboss.jca:name=DefaultDS,service=ManagedConnectionPool{Create:Configured}
[testng] -> jboss.jca:name=DefaultDS,service=ManagedConnectionPool{Start:Configured}
[testng] jboss.jca:name=DefaultDS,service=ManagedConnectionFactory
[testng] -> jboss.jca:name='jboss-local-jdbc.rar',service=RARDeployment{Start:** NOT FOUND **}
[testng] -> jboss.jca:name='jboss-local-jdbc.rar',service=RARDeployment{Create:** NOT FOUND **}
[testng] jboss.jca:name=DefaultDS,service=ManagedConnectionPool
[testng] -> jboss.jca:name=DefaultDS,service=ManagedConnectionFactory{Create:Configured}
[testng] -> jboss.jca:name=DefaultDS,service=ManagedConnectionFactory{Start:Configured}
[testng] jboss.messaging.connectionfactory:service=ConnectionFactory
[testng] -> jboss.messaging:service=ServerPeer{Create:Configured}
[testng] -> jboss.messaging:service=ServerPeer{Start:Configured}
[testng] -> jboss.messaging:service=PostOffice{Create:Configured}
[testng] -> jboss.messaging:service=PostOffice{Start:Configured}
[testng] jboss.messaging.destination:name=DLQ,service=Queue
[testng] -> jboss.messaging:service=ServerPeer{Start:Configured}
[testng] -> jboss.messaging:service=PostOffice{Create:Configured}
[testng] -> jboss.messaging:service=ServerPeer{Create:Configured}
[testng] -> jboss.messaging:service=PostOffice{Start:Configured}
[testng] jboss.messaging.destination:name=ExpiryQueue,service=Queue
[testng] -> jboss.messaging:service=ServerPeer{Start:Configured}
[testng] -> jboss.messaging:service=PostOffice{Create:Configured}
[testng] -> jboss.messaging:service=PostOffice{Start:Configured}
[testng] -> jboss.messaging:service=ServerPeer{Create:Configured}
[testng] jboss.messaging.destination:name=PrivateDLQ,service=Queue
[testng] -> jboss.messaging:service=ServerPeer{Start:Configured}
[testng] -> jboss.messaging:service=ServerPeer{Create:Configured}
[testng] -> jboss.messaging:service=PostOffice{Start:Configured}
[testng] -> jboss.messaging:service=PostOffice{Create:Configured}
[testng] jboss.messaging.destination:name=PrivateExpiryQueue,service=Queue
[testng] -> jboss.messaging:service=ServerPeer{Create:Configured}
[testng] -> jboss.messaging:service=ServerPeer{Start:Configured}
[testng] -> jboss.messaging:service=PostOffice{Create:Configured}
[testng] -> jboss.messaging:service=PostOffice{Start:Configured}
[testng] jboss.messaging.destination:name=QueueWithOwnDLQAndExpiryQueue,service=Queue
[testng] -> jboss.messaging:service=ServerPeer{Start:Configured}
[testng] -> jboss.messaging:service=PostOffice{Create:Configured}
[testng] -> jboss.messaging:service=PostOffice{Start:Configured}
[testng] -> jboss.messaging:service=ServerPeer{Create:Configured}
[testng] jboss.messaging.destination:name=QueueWithOwnRedeliveryDelay,service=Queue
[testng] -> jboss.messaging:service=ServerPeer{Create:Configured}
[testng] -> jboss.messaging:service=PostOffice{Create:Configured}
[testng] -> jboss.messaging:service=PostOffice{Start:Configured}
[testng] -> jboss.messaging:service=ServerPeer{Start:Configured}
[testng] jboss.messaging.destination:name=TopicWithOwnDLQAndExpiryQueue,service=Topic
[testng] -> jboss.messaging:service=ServerPeer{Start:Configured}
[testng] -> jboss.messaging:service=PostOffice{Start:Configured}
[testng] -> jboss.messaging:service=ServerPeer{Create:Configured}
[testng] -> jboss.messaging:service=PostOffice{Create:Configured}
[testng] jboss.messaging.destination:name=TopicWithOwnRedeliveryDelay,service=Topic
[testng] -> jboss.messaging:service=ServerPeer{Create:Configured}
[testng] -> jboss.messaging:service=PostOffice{Start:Configured}
[testng] -> jboss.messaging:service=ServerPeer{Start:Configured}
[testng] -> jboss.messaging:service=PostOffice{Create:Configured}
[testng] jboss.messaging:service=JMSUserManager
[testng] -> jboss.jca:name=DefaultDS,service=DataSourceBinding{Start:Configured}
[testng] -> jboss.jca:name=DefaultDS,service=DataSourceBinding{Create:Configured}
[testng] jboss.messaging:service=PersistenceManager
[testng] -> jboss.jca:name=DefaultDS,service=DataSourceBinding{Create:Configured}
[testng] -> jboss.jca:name=DefaultDS,service=DataSourceBinding{Start:Configured}
[testng] jboss.messaging:service=PostOffice
[testng] -> jboss.jca:name=DefaultDS,service=DataSourceBinding{Create:Configured}
[testng] -> jboss.jca:name=DefaultDS,service=DataSourceBinding{Start:Configured}
[testng] -> jboss.messaging:service=ServerPeer{Start:Configured}
[testng] -> jboss.messaging:service=ServerPeer{Create:Configured}
[testng] jboss.messaging:service=ServerPeer
[testng] -> jboss.messaging:service=PersistenceManager{Start:Configured}
[testng] -> jboss.messaging:service=PersistenceManager{Create:Configured}
[testng] -> jboss.messaging:service=JMSUserManager{Create:Configured}
[testng] -> jboss.messaging:service=JMSUserManager{Start:Configured}
[testng] jboss.mq:service=DestinationManager
[testng] -> jboss.messaging:service=ServerPeer{Start:Configured}
[testng] -> jboss.messaging:service=ServerPeer{Create:Configured}
[testng] *** CONTEXTS IN ERROR: Name -> Error
[testng] jboss.jca:name='jboss-local-jdbc.rar',service=RARDeployment -> ** NOT FOUND **
[testng] at org.jboss.embedded.Bootstrap.checkIncomplete(Bootstrap.java:144)
[testng] at org.jboss.embedded.Bootstrap.bootstrapURL(Bootstrap.java:169)
[testng] at org.jboss.embedded.Bootstrap.bootstrap(Bootstrap.java:201)
[testng] at org.jboss.embedded.Bootstrap.bootstrap(Bootstrap.java:214)
[testng] at org.jboss.seam.mock.BaseSeamTest.startJbossEmbeddedIfNecessary(BaseSeamTest.java:919)
[testng] at org.jboss.seam.mock.BaseSeamTest.init(BaseSeamTest.java:856)
[testng] at org.jboss.seam.mock.SeamTest.init(SeamTest.java:42)
[testng] ... Removed 22 stack frames
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4075099#4075099
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4075099
18Â years, 11Â months