File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

SpyJMSException in JBOSS

 
kala praveen
Greenhorn
Posts: 21
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Greetings!

I am using jboss-4.0.0 and SQL Server 2000. I have a session bean that generates some data rapidly and puts them into a Queue which later will be consumed by an MDB. But, after a while I can see some fatal exceptions at the JBoss side. The following is the stack. Please help me to solve this.

17:20:40,937 INFO [Server] JBoss (MX MicroKernel) [4.0.0 (build: CVSTag=JBoss_4_0_0 date=200409200418)] Started in 35s:250ms
19:41:53,687 INFO [STDOUT] java.lang.NullPointerException



19:41:53,812 INFO [STDOUT] org.jboss.mq.SpyJMSException: Could not store message: 209414
msg=209413 hard NOT_STORED PERSISTENT queue=QUEUE.LogQueue priority=4 lateClone=false hashCode=20676962;
- nested throwable: (java.sql.SQLException: S1000 General error java.lang.NullPointerException in
statement [INSERT INTO JMS_MESSAGES (MESSAGEID, DESTINATION, MESSAGEBLOB, TXID, TXOP) VALUES(?,?,?,?,?)])



19:41:53,812 INFO [STDOUT] at org.jboss.mq.pm.jdbc2.PersistenceManager.add(PersistenceManager.java:802)
19:41:53,812 INFO [STDOUT] at org.jboss.mq.server.PersistentQueue.addMessage(PersistentQueue.java:38)
19:41:53,812 INFO [STDOUT] at org.jboss.mq.server.JMSQueue.addMessage(JMSQueue.java:131)
19:41:53,812 INFO [STDOUT] at org.jboss.mq.server.JMSDestinationManager.addMessage(JMSDestinationManager.java:402)
19:41:53,812 INFO [STDOUT] at org.jboss.mq.server.JMSDestinationManager.addMessage(JMSDestinationManager.java:378)
19:41:53,812 INFO [STDOUT] at org.jboss.mq.server.JMSServerInterceptorSupport.addMessage(JMSServerInterceptorSupport.java:136)
19:41:53,812 INFO [STDOUT] at org.jboss.mq.security.ServerSecurityInterceptor.addMessage(ServerSecurityInterceptor.java:153)
19:41:53,812 INFO [STDOUT] at org.jboss.mq.server.TracingInterceptor.addMessage(TracingInterceptor.java:270)
19:41:53,812 INFO [STDOUT] at org.jboss.mq.server.JMSServerInvoker.addMessage(JMSServerInvoker.java:136)
19:41:53,812 INFO [STDOUT] at org.jboss.mq.il.jvm.JVMServerIL.addMessage(JVMServerIL.java:136)
19:41:53,812 INFO [STDOUT] at org.jboss.mq.Connection.sendToServer(Connection.java:1020)
19:41:53,812 INFO [STDOUT] at org.jboss.mq.SpySession.sendMessage(SpySession.java:1005)
19:41:53,812 INFO [STDOUT] at org.jboss.mq.SpyMessageProducer.send(SpyMessageProducer.java:265)
19:41:53,812 INFO [STDOUT] at org.jboss.mq.SpyMessageProducer.send(SpyMessageProducer.java:199)
19:41:53,812 INFO [STDOUT] at org.mirapoint.LogCollectorSessionBean.insertLog(Unknown Source)
19:41:53,812 INFO [STDOUT] at sun.reflect.GeneratedMethodAccessor77.invoke(Unknown Source)
19:41:53,812 INFO [STDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
19:41:53,812 INFO [STDOUT] at java.lang.reflect.Method.invoke(Method.java:324)
19:41:53,812 INFO [STDOUT] at org.jboss.invocation.Invocation.performCall(Invocation.java:345)
19:41:53,812 INFO [STDOUT] at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:214)
19:41:53,812 INFO [STDOUT] at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:185)
19:41:53,812 INFO [STDOUT] at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:113)
19:41:53,812 INFO [STDOUT] at org.jboss.webservice.server.ServiceEndpointInterceptor.invoke(ServiceEndpointInterceptor.java:51)
19:41:53,812 INFO [STDOUT] at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:48)
19:41:53,812 INFO [STDOUT] at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:105)
19:41:53,812 INFO [STDOUT] at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:316)
19:41:53,812 INFO [STDOUT] at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:149)
19:41:53,812 INFO [STDOUT] at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:128)
19:41:53,812 INFO [STDOUT] at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:191)
19:41:53,812 INFO [STDOUT] at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122)
19:41:53,812 INFO [STDOUT] at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:624)
19:41:53,812 INFO [STDOUT] at org.jboss.ejb.Container.invoke(Container.java:854)
19:41:53,812 INFO [STDOUT] at sun.reflect.GeneratedMethodAccessor73.invoke(Unknown Source)
19:41:53,812 INFO [STDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
19:41:53,812 INFO [STDOUT] at java.lang.reflect.Method.invoke(Method.java:324)
19:41:53,812 INFO [STDOUT] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
19:41:53,812 INFO [STDOUT] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
19:41:53,812 INFO [STDOUT] at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
19:41:53,812 INFO [STDOUT] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:242)
19:41:53,812 INFO [STDOUT] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
19:41:53,812 INFO [STDOUT] at org.jboss.invocation.jrmp.server.JRMPInvoker$MBeanServerAction.invoke(JRMPInvoker.java:775)
19:41:53,812 INFO [STDOUT] at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:382)
19:41:53,812 INFO [STDOUT] at sun.reflect.GeneratedMethodAccessor72.invoke(Unknown Source)
19:41:53,812 INFO [STDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
19:41:53,812 INFO [STDOUT] at java.lang.reflect.Method.invoke(Method.java:324)
19:41:53,812 INFO [STDOUT] at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:261)
19:41:53,812 INFO [STDOUT] at sun.rmi.transport.Transport$1.run(Transport.java:148)
19:41:53,812 INFO [STDOUT] at java.security.AccessController.doPrivileged(Native Method)
19:41:53,812 INFO [STDOUT] at sun.rmi.transport.Transport.serviceCall(Transport.java:144)
19:41:53,812 INFO [STDOUT] at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
19:41:53,812 INFO [STDOUT] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
19:41:53,812 INFO [STDOUT] at java.lang.Thread.run(Thread.java:534)
19:41:53,812 INFO [STDOUT] Caused by: java.sql.SQLException: S1000 General error java.lang.NullPointerException in statement [INSERT INTO JMS_MESSAGES (MESSAGEID, DESTINATION, MESSAGEBLOB, TXID, TXOP) VALUES(?,?,?,?,?)]
19:41:53,812 INFO [STDOUT] at org.hsqldb.jdbc.jdbcUtil.throwError(Unknown Source)
19:41:53,812 INFO [STDOUT] at org.hsqldb.jdbc.jdbcPreparedStatement.executeUpdate(Unknown Source)
19:41:53,812 INFO [STDOUT] at org.jboss.resource.adapter.jdbc.WrappedPreparedStatement.executeUpdate(WrappedPreparedStatement.java:316)
19:41:53,812 INFO [STDOUT] at org.jboss.mq.pm.jdbc2.PersistenceManager.add(PersistenceManager.java:840)
19:41:53,812 INFO [STDOUT] at org.jboss.mq.pm.jdbc2.PersistenceManager.add(PersistenceManager.java:787)
19:41:53,812 INFO [STDOUT] ... 51 more


This stack is generated one per each message thatis to be out into queue. Is it an internal error of JBoss?

Thank you,
kala.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic