8 Replies Latest reply on Apr 6, 2010 9:24 AM by sunay

    mysql and JBPM Integration Problem

    sunay

      Hello All,

      I got following stack trace when i migrated from hsql to mysql

      java.lang.NullPointerException
      at org.jboss.jms.server.ServerPeer.getPostOfficeInstance(ServerPeer.java:1382)
      at org.jboss.jms.server.destination.DestinationServiceSupport.setMaxSizeForQueues(DestinationServiceSupport.java:273)
      at org.jboss.jms.server.destination.DestinationServiceSupport.startService(DestinationServiceSupport.java:110)
      at org.jboss.jms.server.destination.QueueService.startService(QueueService.java:65)
      at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:376)
      at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:269)
      at org.jboss.mq.server.jmx.Queue.start(Queue.java:303)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)


      Any Suggestions?

      Thanks
      Sunay Shah

        • 1. Re: mysql and JBPM Integration Problem
          ranjix

          Same issue here, although not after migrating, but with the original hsqldb. Anybody has any idea?

          Current JBoss version - 5.1.0 GA.

          Also, very strange, the error doesn't show up all the time. Restarting the "all" configuration 5 times will throw the error 3 times. 2 times will start ok. Found somewhere a suggestion about playing with the ...-persistence-settings.xml, but no real fix.

           

          thanks/Ranjix

           

          http://www.techienuggets.com/commentList.jsp?tx=95591&tx=95591&d-49653-p=3

          • 2. Re: mysql and JBPM Integration Problem
            kukeltje
            In what way is this jBPM related?
            • 3. Re: mysql and JBPM Integration Problem
              ranjix

              Ronald, it took you one month and a half to ask that question?

              In case this thread is completely in the wrong place, then you should be able to suggest a better place, like" clustering", "race conditions at startup", "general server issues" or "beginner's corner". More, in case you do have an idea what's going on, you could really write down what you have, and whoever interested will take it from there.

              If you really don't have ANY useful suggestion (as your seemingly annoyed answer shows), a more decent approach you could take would be to ignore this thread.

               

              Thanks.

              • 4. Re: mysql and JBPM Integration Problem
                kukeltje

                Sorry, no not annoyed at all... Just really wondering. Since the topic explicitly includes jBPM, and  jBPM in the latest release supports jms, but I could not make anything up about this.

                 

                The trigger was your new post (I do occasionally miss a post)

                 

                So if you have more info (kind of what I meant with 'what has this to do with jBPM' (not a native English speaker sorry), please post it here and we are more than willing to help. What was posted is just way to little (hope you can understand that)

                 

                Cheers,

                 

                Ronald

                • 5. Re: mysql and JBPM Integration Problem
                  ranjix

                  thanks Ronald, I can only assume that the original poster encountered the error while playing with the jBPM and then believing it was related. I personally ran into the issue while running the "all" configuration of the JBOSS AS and after I tried to configure some MDBs (so, as far as I know, unrelated to jBPM). Since the original post was in this section of forum, I put my question here as well...

                   

                  From the little debugging I was able to do and from the fact that the error is inconsistent, I tend to believe there is a race condition which delays - sometimes (when the clustering is "on"?) - the initialization of the "PostOffice" (not sure what that is). In any case, the

                           postOffice = (PostOffice)JMXAccessor.getJMXAttributeOverSecurity(getServer(), postOfficeObjectName, "Instance");

                  in the ServerPeer class (line 1377) returns null.
                  More debugging when I can get back to this, hopefully soon...
                  ranjix
                  • 6. Re: mysql and JBPM Integration Problem
                    kukeltje

                    Ranjix,

                     

                    If it is from what you can see not related to jBPM, you'll have a much bigger chance on succesful help posting in the JBoss Messaging forum

                     

                    Cheers,

                     

                    Ronald

                    • 7. Re: mysql and JBPM Integration Problem
                      ranjix

                      Obviously, regarding this error, is my fault. There is indeed a race condition, fixable by adding

                       

                            <depends>jboss.messaging:service=PostOffice</depends>

                       

                      into the definition of the topics (all/deploy/messaging/destinations-service.xml file). As soon as I put the line in, for each of my topics, the error disappeared. I assume something similar happened in the case of the original poster...

                       

                      all the best/ranjix

                      • 8. Re: mysql and JBPM Integration Problem
                        sunay

                        Sorry for not Updating the thread,

                         

                        null null , you are right , the problem was exactly that. by adding

                        <depends>jboss.messaging:service=PostOffice</depends>

                        will solves the problem

                         

                        Sorry for the wrong heading for the post .

                         

                        Thanks

                        sunay