9 Replies Latest reply on Oct 28, 2010 5:44 AM by rahul123wagh

    Deployment exception while deploying scheduler xml file

    rahul123wagh

      I have an problem while deploying my schedule-serivce.xml file. I am getting deployment exception, here i am posting the logs of my local server so please tell me what i can do ..................please reply ASAP

       

      17:36:26,984 ERROR [MainDeployer] Could not create deployment: file:/D:/jboss-eap-phase3/server/production/deploy/scheduler-serv
      ice.xml
      org.jboss.deployment.DeploymentException: - nested throwable: (java.lang.NullPointerException)
              at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:196)
              at org.jboss.system.ServiceController.install(ServiceController.java:226)
              at sun.reflect.GeneratedMethodAccessor25.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.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
              at $Proxy4.install(Unknown Source)
              at org.jboss.deployment.SARDeployer.create(SARDeployer.java:249)
              at org.jboss.deployment.MainDeployer.create(MainDeployer.java:969)
              at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:818)
              at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
              at sun.reflect.GeneratedMethodAccessor23.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.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
              at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
              at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
              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:659)
              at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
              at $Proxy9.deploy(Unknown Source)
              at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
              at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:610)
              at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
              at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:274)
              at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:225)
      Caused by: java.lang.NullPointerException
              at EDU.oswego.cs.dl.util.concurrent.ConcurrentReaderHashMap.hash(ConcurrentReaderHashMap.java:299)
              at EDU.oswego.cs.dl.util.concurrent.ConcurrentReaderHashMap.get(ConcurrentReaderHashMap.java:411)
              at org.jboss.mx.server.registry.BasicMBeanRegistry.getMBeanMap(BasicMBeanRegistry.java:959)
              at org.jboss.mx.server.registry.BasicMBeanRegistry.contains(BasicMBeanRegistry.java:577)
              at org.jboss.mx.server.MBeanServerImpl.isRegistered(MBeanServerImpl.java:539)
              at org.jboss.system.ServiceCreator.install(ServiceCreator.java:101)
              at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:455)
              at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:171)
              ... 33 more

        • 1. Re: Deployment exception while deploying scheduler xml file
          wdfink

          What jboss version it is?

          Do you have changed the production configuration?

          • 2. Re: Deployment exception while deploying scheduler xml file
            rahul123wagh

            I am using using jboss-eap-4.3 and there is no production configuration changes which i have done . But still getting the same error. Need help    

            • 3. Re: Deployment exception while deploying scheduler xml file
              wdfink

              Mmmh,

              I suppose you running on Windows, what version XP / Vista / 7 ?

              What JVM do you use?

              how do you start the server?

              Do you have changed run.bat?

               

              I haven't a environment yet, check tomorrow whether I can start production 'out of the box'.

              • 4. Re: Deployment exception while deploying scheduler xml file
                rahul123wagh

                Thanks Wolf-Dieter Fink for your concern  please see the details which i posted below....

                 

                I am using windows XP SP3

                JDK - 1.5.0_07

                Server start up process - in debug mode

                 

                D:\jboss-eap-phase3\bin>debug.bat -g bbbb
                ===============================================================================

                 

                  JBoss Bootstrap Environment

                 

                  JBOSS_HOME: D:\jboss-eap-phase3

                 

                  JAVA: C:\Program Files\Java\jdk1.5.0_07\bin\java

                 

                  JAVA_OPTS: -Xdebug -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=y -Xms512m -Xmx768m -XX:MaxPermSize=512m -Djbos
                s.platform.mbeanserver -Dprogram.name=debug.bat -server -Xms128m -Xmx512m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.
                server.gcInterval=3600000 -Dsolr.solr.home=D:\jboss-eap-phase3\solr\production

                 

                  CLASSPATH: C:\Program Files\Java\jdk1.5.0_07\lib\tools.jar;D:\jboss-eap-phase3\bin\run.jar

                 

                ===============================================================================

                 

                Listening for transport dt_socket at address: 8787

                 

                after the start up i get the deployment exception which i meniton in my first post.

                • 5. Re: Deployment exception while deploying scheduler xml file
                  wdfink

                  I'm using XP SP3, Java 1.5 or 1.6, the fresh server start without any problem for production if I use run.bat (also with uncomment the debug option).

                   

                  Do you have checked with an new unzipped JBoss?

                  Do you check the download with MD5 or SHA checksum, maybe your download is destroyed.

                  • 6. Re: Deployment exception while deploying scheduler xml file
                    jaikiran

                    By the way, did you uncomment the contents of that scheduler-service.xml? I don't have the EAP version, but the community 4.2.3 version has the MBeans commented out in that file.

                     

                    If you have the contents uncommented, then I know why you are running into this exception. For some reason, the "domain" part of the MBean ObjectNames isn't set for those MBeans:

                     

                    <mbean code="org.jboss.varia.scheduler.Scheduler"          name=":service=Scheduler">

                     

                     

                    Notice the value of the name attribute. There's nothing before the :. Try changing it to:

                     

                    <mbean code="org.jboss.varia.scheduler.Scheduler"          name="jboss:service=Scheduler">

                     

                    You'll have to do similar change to other such MBeans (which don't have the domain part) in that file.

                    • 7. Re: Deployment exception while deploying scheduler xml file
                      rahul123wagh

                      Thanks for your reply jaikiran pai.....

                       

                      I am getting this exception after uncommenting the

                       

                      <mbean code="org.jboss.varia.scheduler.Scheduler"        name=":service=AutoBidScheduler">

                       

                      Please see the scheduler-service.xml which i have attached with this post. Please reply soon i need to get it solve ASAP.

                      • 8. Re: Deployment exception while deploying scheduler xml file
                        jaikiran

                        Rahul ............ wrote:

                         

                        Please reply soon i need to get it solve ASAP.

                        In my previous reply, I already told you what needs to be done.

                        • 9. Re: Deployment exception while deploying scheduler xml file
                          rahul123wagh

                          Thanks a lot jaikiran pai,

                          <mbean code="org.jboss.varia.scheduler.Scheduler"          name=":service=Scheduler"> 
                          <mbean code="org.jboss.varia.scheduler.Scheduler"          name="jboss:service=Scheduler">

                          as i was missing the name "jboss" before the ":service=Scheduler".
                          Now its working fine

                          Once again thanks a lot. Cheers