1 2 Previous Next 15 Replies Latest reply on Jul 28, 2008 9:24 AM by Ravshan Kosimov

    NPE in JBossMessage#propertyExists(String) call

    Ravshan Kosimov Newbie

      Our application works with ActiveMQ message broker, but we need to check it works with other brokers. When I've setuped application to work with JBM, application failed on sending message. It caused by NPE:

      Caused by: java.lang.NullPointerException
      at org.jboss.messaging.util.TypedProperties.containsProperty(TypedProperties.java:151)
      at org.jboss.messaging.core.message.impl.MessageImpl.containsProperty(MessageImpl.java:285)
      at org.jboss.messaging.jms.client.JBossMessage.propertyExists(JBossMessage.java:506)

      I think it's a bug. Is there a workaround of it?
      Version of JBM - 2.0.0.alpha1

        • 1. Re: NPE in JBossMessage#propertyExists(String) call
          Andy Taylor Master

          It probably is a bug, I've looked at the current code base and it looks like its been fixed. You can build from SVN to get the latest version.

          This is just an alpha release so there may be some bugs!

          • 2. Re: NPE in JBossMessage#propertyExists(String) call
            Ravshan Kosimov Newbie

             

            "ataylor" wrote:
            It probably is a bug, I've looked at the current code base and it looks like its been fixed. You can build from SVN to get the latest version.

            Thank you! I will try this.

            ps: Can I get latest build with Maven2?

            • 3. Re: NPE in JBossMessage#propertyExists(String) call
              Ravshan Kosimov Newbie

               

              "RavshanKos" wrote:
              ps: Can I get latest build with Maven2?

              I'm sorry! Of course not "latest build". I meant latest jboss-messaging-client.jar

              • 4. Re: NPE in JBossMessage#propertyExists(String) call
                Andy Taylor Master

                we dont use maven. check it out using svn from http://anonsvn.jboss.org/repos/messaging/trunk/ and you can build it using ant,

                either 'ant distro' to build a distribution or you can run the server from source via 'ant runServer';

                • 5. Re: NPE in JBossMessage#propertyExists(String) call
                  Ravshan Kosimov Newbie

                   

                  "ataylor" wrote:

                  either 'ant distro' to build a distribution or you can run the server from source via 'ant runServer';

                  I've build a distribution, but it didn't work:

                  *** DEPLOYMENTS IN ERROR: Name -> Error
                  Configuration -> java.lang.IllegalArgumentException: Invalid journal type asyncio
                  RemotingService -> java.lang.ClassNotFoundException: org.jboss.messaging.core.remoting.impl.mina.MinaService
                  MessagingServerManagement -> org.jboss.joinpoint.spi.JoinpointException: Constructor not found org.jboss.messaging.core.management.impl.MessagingServerManagementImpl[] in [ReflectConstructorInfoImpl@278e83{[ReflectClassInfoImpl@fd66a5{name=org.jboss.messaging.core.postoffice.PostOffice}, ReflectClassInfoImpl@5dfaf1{name=org.jboss.messaging.core.persistence.StorageManager}, ReflectClassInfoImpl@61cd2{name=org.jboss.messaging.core.config.Configuration}, ReflectClassInfoImpl@14e4e31{name=org.jboss.messaging.core.server.ConnectionManager}, ParameterizedClassInfo@1ef7de4{org.jboss.messaging.core.settings.HierarchicalRepository<java.util.Set<org.jboss.messaging.core.security.Role>>}, ParameterizedClassInfo@3228a1{org.jboss.messaging.core.settings.HierarchicalRepository<org.jboss.messaging.core.settings.impl.QueueSettings>}, ReflectClassInfoImpl@10980e7{name=org.jboss.messaging.core.server.MessagingServer}]}]
                  JMSServerManager -> org.jboss.joinpoint.spi.JoinpointException: Constructor not found org.jboss.messaging.jms.server.impl.JMSServerManagerImpl[] in [ReflectConstructorInfoImpl@146e381{[ReflectClassInfoImpl@1024994{name=org.jboss.messaging.core.management.MessagingServerManagement}]}]
                  JMSServerDeployer -> org.jboss.joinpoint.spi.JoinpointException: Constructor not found org.jboss.messaging.jms.server.impl.JMSServerDeployer[] in [ReflectConstructorInfoImpl@1be8711{[ReflectClassInfoImpl@1958cc2{name=org.jboss.messaging.core.deployers.DeploymentManager}]}]
                  SecurityManagerDeployer -> java.lang.ClassNotFoundException: org.jboss.messaging.core.deployers.impl.SecurityManagerDeployer

                  *** DEPLOYMENTS MISSING DEPENDENCIES: Name -> Dependency{Required State:Actual State}
                  Main -> Configuration{Configured:**ERROR**}, Configuration{Configured:**ERROR**}, Naming{Configured:Installed}
                  StorageManager -> Configuration{Instantiated:**ERROR**}
                  MessagingServer -> RemotingService{Configured:**ERROR**}, StorageManager{Configured:Described}, JBMSecurityManager{Configured:Installed}, Configuration{Configured:**ERROR**}, RemotingService{Configured:**ERROR**}

                  at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.internalValidate(AbstractKernelDeployer.java:260)
                  at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.validate(AbstractKernelDeployer.java:174)
                  at org.jboss.messaging.microcontainer.JBMBootstrapServer.bootstrap(JBMBootstrapServer.java:113)
                  at org.jboss.kernel.plugins.bootstrap.AbstractBootstrap.run(AbstractBootstrap.java:89)
                  at org.jboss.messaging.microcontainer.JBMBootstrapServer.run(JBMBootstrapServer.java:76)
                  at org.jboss.messaging.microcontainer.JBMBootstrapServer.main(JBMBootstrapServer.java:71)
                  14:57:31,750 INFO @Thread-0 [JBMBootstrapServer] Shutting down



                  org.jboss.messaging.core.remoting.impl.mina.MinaService

                  • 6. Re: NPE in JBossMessage#propertyExists(String) call
                    Ravshan Kosimov Newbie

                    org.jboss.messaging.core.remoting.impl.mina.MinaService class is absent in SVN, but exists in distibution that I got from JBoss.org.

                    • 7. Re: NPE in JBossMessage#propertyExists(String) call
                      Andy Taylor Master

                      Looks like you're using the old config file, make sure you use everything from the new distro, not just the jars.

                      • 8. Re: NPE in JBossMessage#propertyExists(String) call
                        Ravshan Kosimov Newbie

                         

                        "RavshanKos" wrote:
                        "ataylor" wrote:

                        either 'ant distro' to build a distribution or you can run the server from source via 'ant runServer';

                        I've build a distribution, but it didn't work:

                        This one I've run with "bin/run.sh"
                        'ant runServer' not works too:

                        [java] *** DEPLOYMENTS IN ERROR: Name -> Error
                        [java] SecurityManagerDeployer -> java.lang.ClassNotFoundException: org.jboss.messaging.core.deployers.impl.SecurityManagerDeployer
                        [java] Configuration -> java.lang.IllegalArgumentException: Invalid journal type asyncio
                        [java] MessagingServerManagement -> org.jboss.joinpoint.spi.JoinpointException: Constructor not found org.jboss.messaging.core.management.impl.MessagingServerManagementImpl[] in [ReflectConstructorInfoImpl@10a5c21{[ReflectClassInfoImpl@12696c2{name=org.jboss.messaging.core.postoffice.PostOffice}, ReflectClassInfoImpl@739f3f{name=org.jboss.messaging.core.persistence.StorageManager}, ReflectClassInfoImpl@dc0435{name=org.jboss.messaging.core.config.Configuration}, ReflectClassInfoImpl@98350a{name=org.jboss.messaging.core.server.ConnectionManager}, ParameterizedClassInfo@c24193{org.jboss.messaging.core.settings.HierarchicalRepository<java.util.Set<org.jboss.messaging.core.security.Role>>}, ParameterizedClassInfo@15f4a7f{org.jboss.messaging.core.settings.HierarchicalRepository<org.jboss.messaging.core.settings.impl.QueueSettings>}, ReflectClassInfoImpl@113e9fd{name=org.jboss.messaging.core.server.MessagingServer}]}]
                        [java] JMSServerDeployer -> org.jboss.joinpoint.spi.JoinpointException: Constructor not found org.jboss.messaging.jms.server.impl.JMSServerDeployer[] in [ReflectConstructorInfoImpl@a68fd8{[ReflectClassInfoImpl@12dd538{name=org.jboss.messaging.core.deployers.DeploymentManager}]}]
                        [java] JMSServerManager -> org.jboss.joinpoint.spi.JoinpointException: Constructor not found org.jboss.messaging.jms.server.impl.JMSServerManagerImpl[] in [ReflectConstructorInfoImpl@1958cc2{[ReflectClassInfoImpl@14c28db{name=org.jboss.messaging.core.management.MessagingServerManagement}]}]
                        [java] RemotingService -> java.lang.ClassNotFoundException: org.jboss.messaging.core.remoting.impl.mina.MinaService
                        [java]
                        [java] *** DEPLOYMENTS MISSING DEPENDENCIES: Name -> Dependency{Required State:Actual State}
                        [java] StorageManager -> Configuration{Instantiated:**ERROR**}
                        [java] MessagingServer -> RemotingService{Configured:**ERROR**}, Configuration{Configured:**ERROR**}, JBMSecurityManager{Configured:Installed}, RemotingService{Configured:**ERROR**}, StorageManager{Configured:Described}
                        [java] Main -> Naming{Configured:Installed}, Configuration{Configured:**ERROR**}, Configuration{Configured:**ERROR**}
                        [java]
                        [java] at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.internalValidate(AbstractKernelDeployer.java:260)
                        [java] at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.validate(AbstractKernelDeployer.java:174)
                        [java] at org.jboss.messaging.microcontainer.JBMBootstrapServer.bootstrap(JBMBootstrapServer.java:113)
                        [java] at org.jboss.kernel.plugins.bootstrap.AbstractBootstrap.run(AbstractBootstrap.java:89)
                        [java] at org.jboss.messaging.microcontainer.JBMBootstrapServer.run(JBMBootstrapServer.java:76)
                        [java] at org.jboss.messaging.microcontainer.JBMBootstrapServer.main(JBMBootstrapServer.java:71)
                        [java] 15:18:01,038 INFO @Thread-0 [JBMBootstrapServer] Shutting down
                        [java] Java Result: 1



                        • 9. Re: NPE in JBossMessage#propertyExists(String) call
                          Ravshan Kosimov Newbie

                           

                          "ataylor" wrote:
                          Looks like you're using the old config file, make sure you use everything from the new distro, not just the jars.

                          Yes, I've using old configs. :)
                          Thank, you!

                          • 10. Re: NPE in JBossMessage#propertyExists(String) call
                            Ravshan Kosimov Newbie

                             

                            "RavshanKos" wrote:
                            "ataylor" wrote:
                            Looks like you're using the old config file, make sure you use everything from the new distro, not just the jars.

                            Yes, I've using old configs. :)
                            Thank, you!

                            Can you give me some advise?
                            How can I get info about runned broker, about its queue, topics, and other information?
                            I've trying to do it thru 'jconsole'. Connected jconsole to local process 'org.jboss.messaging.microcontainer.JBMBootstrapServer jbm-standalone-beans.xml", shows nothing about broker.
                            Maybe it is again configuration problems?


                            • 11. Re: NPE in JBossMessage#propertyExists(String) call
                              Andy Taylor Master

                              If you are talking about an exposed management interface, which i think you are, then this is currently being developed. This will be available sometime in the near future.

                              What information are you looking for?

                              • 12. Re: NPE in JBossMessage#propertyExists(String) call
                                Ravshan Kosimov Newbie

                                 

                                "ataylor" wrote:
                                If you are talking about an exposed management interface, which i think you are, then this is currently being developed. This will be available sometime in the near future.

                                https://jira.jboss.org/jira/browse/JBMESSAGING-1303
                                this issue?

                                "ataylor" wrote:
                                What information are you looking for?

                                How many messages in queues, what messages in queue, what properties of messages and so on.


                                • 13. Re: NPE in JBossMessage#propertyExists(String) call
                                  Andy Taylor Master

                                  Yes, thats the Jira and will be available in Beta

                                  • 14. Re: NPE in JBossMessage#propertyExists(String) call
                                    Jeff Mesnil Master

                                     

                                    "RavshanKos" wrote:

                                    "ataylor" wrote:
                                    What information are you looking for?

                                    How many messages in queues, what messages in queue, what properties of messages and so on.


                                    The management interfaces for JBM 2.0 is currently developed in a branch https://svn.jboss.org/repos/messaging/branches/Branch_JBMESSAGING-1303 and should be merger into the trunk soon.

                                    Fyi, the expected management attributes and operation is described in our wiki: http://wiki.jboss.org/wiki/JBM2Management

                                    1 2 Previous Next