0 Replies Latest reply on Jan 15, 2003 9:42 AM by Klaus Koenig

    NullpointerException in SAXParser

    Klaus Koenig Newbie

      Hi,

      we are experiencing problems using a pool of MDB registered on a JBoss Queue.

      The implementation of the onMessage method, basically takes the message and passes it to a SAXParser which parse the message and insert the data parsed to the database.

      If we configure a pool with maximum 1 instance it works prefectly, in that all the messages are consumed, parsed and inserted in the database, but as we try to use a pool of MDB (grater than 1) with get the following error.

      Any help would be appreciated.

      Thanks

      Klaus Koenig

      - 09/01/2003 14:38:53 [ERROR 85329] (ItmConsumerBean.java:131 in onMessage)<Thread Pool Worker-2> #### Exception ####
      java.lang.NullPointerException
      at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:524)
      at org.apache.crimson.parser.Parser2.parse(Parser2.java:305)
      at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:433)
      at javax.xml.parsers.SAXParser.parse(SAXParser.java:357)
      at javax.xml.parsers.SAXParser.parse(SAXParser.java:183)
      at com.thera.thermfw.xml.THERMImporter.importXML(THERMImporter.java:736)
      at fsc.connectors.common.GeneralImport.importMessage(GeneralImport.java:99)
      at connectors.genericConnector.rl.ItmConsumerBean.onMessage(ItmConsumerBean.java:125)
      at java.lang.reflect.Method.invoke(Native Method)
      at org.jboss.ejb.MessageDrivenContainer$ContainerInterceptor.invoke(MessageDrivenContainer.java:406)
      at org.jboss.ejb.plugins.MessageDrivenInstanceInterceptor.invoke(MessageDrivenInstanceInterceptor.java:81)
      at org.jboss.ejb.plugins.TxInterceptorCMT.invokeNext(TxInterceptorCMT.java:138)
      at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:347)
      at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:100)
      at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:127)
      at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:170)
      at org.jboss.ejb.MessageDrivenContainer.invoke(MessageDrivenContainer.java:281)
      at org.jboss.ejb.plugins.jms.JMSContainerInvoker.invoke(JMSContainerInvoker.java:584)
      at org.jboss.ejb.plugins.jms.JMSContainerInvoker$MessageListenerImpl.onMessage(JMSContainerInvoker.java:930)
      at org.jboss.jms.asf.StdServerSession.onMessage(StdServerSession.java:233)
      at org.jboss.mq.SpyMessageConsumer.sessionConsumerProcessMessage(SpyMessageConsumer.java:565)
      at org.jboss.mq.SpyMessageConsumer.addMessage(SpyMessageConsumer.java:376)
      at org.jboss.mq.SpySession.run(SpySession.java:248)
      at org.jboss.jms.asf.StdServerSession.run(StdServerSession.java:172)
      at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:725)
      at java.lang.Thread.run(Thread.java:484)