1 2 Previous Next 15 Replies Latest reply on Dec 11, 2008 4:43 PM by glm

    HDScanner deployment error

    glm Newbie

      Hi I am attempting to use parts of the demo code in a project I have that deploys JMX beans in the MC. I am getting a error during kernel deployer validation for the HDScanner. The error is as follows :


      java.lang.IllegalStateException: Incompletely deployed:

      *** DEPLOYMENTS IN ERROR: Name -> Error
      HDScanner -> java.lang.NoSuchFieldError: factoryFinder

      at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.internalValidate(AbstractKernelDeployer.java:290)
      at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.validate(AbstractKernelDeployer.java:174)
      at com.nichpro.jmx.bootstrap.Main.configure(Main.java:81)
      at com.nichpro.jmx.bootstrap.Main.main(Main.java:45)
      at com.nichpro.jmx.server.config.JMXMain.main(JMXMain.java:33)
      at com.nichpro.jmx.server.DataManagementServer.main(DataManagementServer.java:265)

      Sure enough the HDScanner code does not have a field called factoryFinder yet since this is the demo code I should expect it to compile, deploy and validate without any errors. Does anyone know why this error is occurring?

      Regards,
      GMarsh

        • 1. Re: HDScanner deployment error
          jaikiran pai Master

          Is there any other errors/exception stacktrace before this?

          • 2. Re: HDScanner deployment error
            Ales Justin Master

            Which demo are you talking about?

            • 3. Re: HDScanner deployment error
              glm Newbie

              I took the HDScanner.java, Main.java, JMXMain.java, MainDeployerHelper.java and their corresponding .xml configuration files from the DZone_1_0 demo. It was the demo code referenced in your article "A Look Inside the JBoss Microcontainer, Part I -- Component Models" authored by Alesj....

              • 4. Re: HDScanner deployment error
                glm Newbie

                The Error message in my first Post was the first error message. There is subsequent message which seems to be a further cascade from the first. The second message says :

                java.lang.IllegalStateException: Incompletely deployed:

                *** DEPLOYMENTS IN ERROR: Name -> Error
                HDScanner -> java.lang.NoSuchFieldError: factoryFinder
                DMServer -> java.lang.ClassNotFoundException: com.nichpro.jxm.server.DataManagementServer

                at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.internalValidate(AbstractKernelDeployer.java:290)
                at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.validate(AbstractKernelDeployer.java:174)
                at com.nichpro.jmx.bootstrap.Main.validate(Main.java:123)
                at com.nichpro.jmx.server.config.JMXMain.main(JMXMain.java:43)
                at com.nichpro.jmx.server.DataManagementServer.main(DataManagementServer.java:295)

                Where DataManagementServer is the code that calls JMXMain.main().

                Regards,

                GMarsh

                • 5. Re: HDScanner deployment error
                  Ales Justin Master

                   

                  "Gary Marsh" wrote:

                  HDScanner -> java.lang.NoSuchFieldError: factoryFinder

                  Where does this come from?
                  I searched for this 'factoryFinder' in demos, MC, AS, CL, Deployer w/o success.

                  • 6. Re: HDScanner deployment error
                    Ales Justin Master

                    I just fixed aop-beans.xml.
                    Can you check if it works now?

                    ps: don't forget to set demos.home system property if the code is not in \projects\demos

                    • 7. Re: HDScanner deployment error
                      glm Newbie

                      Was there something else besides the aop-beans.xml I needed? I snagged the source for this file and put it into my resource directory, refreshed the project and rebuilt it and ran with these error messages :

                      Using bootstrap: file:/C:/Nichpro/MicrocontainerDirectoryScanner/src/META-INF/bootstrap-beans.xml
                      java.lang.IllegalStateException: Incompletely deployed:

                      *** DEPLOYMENTS IN ERROR: Name -> Error
                      HDScanner -> java.lang.NoSuchFieldError: factoryFinder

                      at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.internalValidate(AbstractKernelDeployer.java:290)
                      at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.validate(AbstractKernelDeployer.java:174)
                      at com.nichpro.jmx.bootstrap.Main.configure(Main.java:81)
                      at com.nichpro.jmx.bootstrap.Main.main(Main.java:45)
                      at com.nichpro.jmx.server.config.JMXMain.main(JMXMain.java:33)
                      at com.nichpro.jmx.server.DataManagementServer.main(DataManagementServer.java:291)
                      Deployed URL: file:/C:/Nichpro/MicrocontainerDirectoryScanner/src/META-INF/system-jmx-beans.xml
                      Deployed URL: file:/C:/Nichpro/MicrocontainerDirectoryScanner/src/META-INF/aop-beans.xml
                      I am monitoring /NichPro/NP_ScanDirectory/Data directory.
                      Deployed URL: file:/C:/Nichpro/MicrocontainerDirectoryScanner/src/META-INF/nichpro-beans.xml
                      Data Directory is empty....
                      Going to sleep for 15 minutes now....
                      java.lang.IllegalStateException: Incompletely deployed:

                      *** DEPLOYMENTS IN ERROR: Name -> Error
                      DMServer -> java.lang.ClassNotFoundException: com.nichpro.jxm.server.DataManagementServer
                      HDScanner -> java.lang.NoSuchFieldError: factoryFinder
                      AOPJBossIntegration -> java.lang.NullPointerException

                      *** DEPLOYMENTS MISSING DEPENDENCIES: Name -> Dependency{Required State:Actual State}
                      JMXStartStopAdvice$AspectBinding -> AspectManager{Installed:Described}
                      JMXCreateDestroyAdvice$AspectBinding -> AspectManager{Installed:Described}
                      AspectManagerJDK5 -> AOPJBossIntegration{Installed:**ERROR**}
                      AspectManager -> AspectManagerJDK5{Installed:Instantiated}
                      JMXRegistrationAdvice$AspectBinding -> AspectManager{Installed:Described}

                      at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.internalValidate(AbstractKernelDeployer.java:290)
                      at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.validate(AbstractKernelDeployer.java:174)
                      at com.nichpro.jmx.bootstrap.Main.validate(Main.java:123)
                      at com.nichpro.jmx.server.config.JMXMain.main(JMXMain.java:43)
                      at com.nichpro.jmx.server.DataManagementServer.main(DataManagementServer.java:291)


                      Same problem with a few more additions.....

                      Regards,

                      GMarsh

                      • 8. Re: HDScanner deployment error
                        glm Newbie

                        By the way I am using JRE 6 the latest release from Sun. I don't know if this might be adding an element of difference that is confusing us or not.

                        Regards,
                        GMarsh

                        • 9. Re: HDScanner deployment error
                          Ales Justin Master

                           

                          "Gary Marsh" wrote:
                          Was there something else besides the aop-beans.xml I needed?

                          I just copied the aop-beans.xml from trunk.
                          But I updated the libs a few days ago - see top pom.xml.

                          I did a clean checkout, ran 'mvn idea:idea' to build up project files for IntelliJ.
                          Adding JMXMain with models classpath, works w/o any problems.

                          • 10. Re: HDScanner deployment error
                            Ales Justin Master

                             

                            "Gary Marsh" wrote:
                            By the way I am using JRE 6 the latest release from Sun. I don't know if this might be adding an element of difference that is confusing us or not.

                            Nope.
                            Works fine:
                            C:\Java\jdk1.6.0\bin\java -Didea.launcher.port=7532 -Didea.launcher.bin.path=C:\JetBrains\IDEA8.0.1\bin -Dfile.encoding=windows-1250 -classpath "C:\Java\jdk1.6.0\jre\lib\charsets.jar;C:\Java\jdk1.6.0\jre\lib\deploy.jar;C:\Java\jdk1.6.0\jre\lib\javaws.jar;C:\Java\jdk1.6.0\jre\lib\jce.jar;C:\Java\jdk1.6.0\jre\lib\jsse.jar;C:\Java\jdk1.6.0\jre\lib\management-agent.jar;C:\Java\jdk1.6.0\jre\lib\plugin.jar;C:\Java\jdk1.6.0\jre\lib\resources.jar;C:\Java\jdk1.6.0\jre\lib\rt.jar;C:\Java\jdk1.6.0\jre\lib\ext\dnsns.jar;C:\Java\jdk1.6.0\jre\lib\ext\localedata.jar;C:\Java\jdk1.6.0\jre\lib\ext\sunjce_provider.jar;C:\Java\jdk1.6.0\jre\lib\ext\sunmscapi.jar;C:\Java\jdk1.6.0\jre\lib\ext\sunpkcs11.jar;
                            ...
                            Deployed URL: file:/C:/projects/demos/jmx/src/main/resources/META-INF/varia-deployers-beans.xml
                            


                            • 11. Re: HDScanner deployment error
                              glm Newbie

                              Ok.... I have narrowed the error down to line 82 in Main.java where the kernel.validate() is called after it deploys the bootstrap.xml. I found a little more detail in the log file which is as follows:

                              2008-12-11 11:00:04,133 DEBUG (DeployersImpl.java: addDeployer :269) - Added deployer org.jboss.deployers.plugins.classloading.AbstractLevelClassLoaderSystemDeployer@16a5bcb for stage ClassLoader
                              org.jboss.deployers.plugins.classloading.AbstractLevelClassLoaderSystemDeployer@16a5bcb{inputs=[org.jboss.deployers.structure.spi.ClassLoaderFactory] outputs=[]}

                              2008-12-11 11:00:04,180 ERROR (AbstractController.java: incrementState :955) - Error installing to Instantiated: name=HDScanner state=Described
                              java.lang.NoSuchFieldError: factoryFinder
                              at org.jboss.virtual.VFS.init(VFS.java:71)
                              at org.jboss.virtual.VFS.(VFS.java:51)
                              at com.nichpro.jmx.bootstrap.HDScanner.(HDScanner.java:64)
                              at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
                              at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
                              at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
                              at java.lang.reflect.Constructor.newInstance(Unknown Source)
                              at org.jboss.reflect.plugins.introspection.ReflectionUtils.newInstance(ReflectionUtils.java:149)
                              at org.jboss.reflect.plugins.introspection.ReflectConstructorInfoImpl.newInstance(ReflectConstructorInfoImpl.java:106)
                              at org.jboss.joinpoint.plugins.BasicConstructorJoinPoint.dispatch(BasicConstructorJoinPoint.java:80)
                              at org.jboss.aop.microcontainer.integration.AOPConstructorJoinpoint.createTarget(AOPConstructorJoinpoint.java:276)
                              at org.jboss.aop.microcontainer.integration.AOPConstructorJoinpoint.dispatch(AOPConstructorJoinpoint.java:97)
                              at org.jboss.kernel.plugins.dependency.KernelControllerContextAction$JoinpointDispatchWrapper.execute(KernelControllerContextAction.java:241)
                              at org.jboss.kernel.plugins.dependency.ExecutionWrapper.execute(ExecutionWrapper.java:47)
                              at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchExecutionWrapper(KernelControllerContextAction.java:109)
                              at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchJoinPoint(KernelControllerContextAction.java:70)
                              at org.jboss.kernel.plugins.dependency.InstantiateAction.installActionInternal(InstantiateAction.java:66)
                              at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:54)
                              at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:42)
                              at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
                              at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
                              at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
                              at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
                              at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)
                              at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
                              at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
                              at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
                              at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:774)
                              at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:540)
                              at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deployBean(AbstractKernelDeployer.java:331)
                              at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deployBeans(AbstractKernelDeployer.java:309)
                              at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deploy(AbstractKernelDeployer.java:130)
                              at org.jboss.kernel.plugins.deployment.BasicKernelDeployer.deploy(BasicKernelDeployer.java:76)
                              at org.jboss.kernel.plugins.deployment.xml.BasicXMLDeployer.deploy(BasicXMLDeployer.java:88)
                              at org.jboss.kernel.plugins.deployment.xml.BasicXMLDeployer.deploy(BasicXMLDeployer.java:158)
                              at com.nichpro.jmx.bootstrap.Main.configure(Main.java:81)
                              at com.nichpro.jmx.bootstrap.Main.main(Main.java:45)
                              at com.nichpro.jmx.server.config.JMXMain.main(JMXMain.java:33)
                              at com.nichpro.jmx.server.DataManagementServer.main(DataManagementServer.java:291)

                              I don't know if this helps narrow down what might be happening or not.

                              Regards,
                              GMarsh

                              • 12. Re: HDScanner deployment error
                                Ales Justin Master

                                It's this code:

                                 org.jboss.virtual.plugins.context.VfsArchiveBrowserFactory factory = org.jboss.virtual.plugins.context.VfsArchiveBrowserFactory.INSTANCE;
                                 org.jboss.util.file.ArchiveBrowser.factoryFinder.put("vfsfile", factory);
                                 org.jboss.util.file.ArchiveBrowser.factoryFinder.put("vfszip", factory);
                                 org.jboss.util.file.ArchiveBrowser.factoryFinder.put("vfsjar", factory);
                                 org.jboss.util.file.ArchiveBrowser.factoryFinder.put("vfs", factory);
                                

                                but I can still see the field in common-core-2.2.10
                                public abstract class ArchiveBrowser
                                {
                                 public interface Filter
                                 {
                                 boolean accept(String filename);
                                 }
                                
                                 //use concurrent hashmap since a protocol can be added on the fly through the public attribute
                                 public static Map factoryFinder = new ConcurrentHashMap();
                                


                                Check if you have up-to-date jboss-common-core.

                                • 13. Re: HDScanner deployment error
                                  glm Newbie

                                  I am using the jboss-common-core dated 9/17/2008 from the JBoss-5.0.0.CR2 build. Is there a more recent release? I downloaded this on 12/04/2008.

                                  Humm... looks like you have a 5.0.0GA release on 12/05/2008. I'll download this and see if that doesn't help.

                                  GMarsh

                                  • 14. Re: HDScanner deployment error
                                    glm Newbie

                                    Ok... Now I am getting a different error message which occurs when executing line 75 in Main.java

                                    BasicBootstrap bootstrap = new BasicBootstrap();


                                    The error message reads as follows :

                                    Using bootstrap: file:/C:/NichPro/MicrocontainerDirectoryScanner/src/META-INF/bootstrap-beans.xml

                                    java.lang.NoSuchFieldError: TRACE
                                    at org.jboss.logging.log4j.Log4jLoggerPlugin.isTraceEnabled(Log4jLoggerPlugin.java:94)
                                    at org.jboss.logging.Logger.isTraceEnabled(Logger.java:150)
                                    at org.jboss.kernel.plugins.config.property.PropertyKernelConfig.initializeProperties(PropertyKernelConfig.java:74)
                                    at org.jboss.kernel.plugins.config.property.PropertyKernelConfig.(PropertyKernelConfig.java:61)
                                    at org.jboss.kernel.plugins.bootstrap.basic.BasicBootstrap.(BasicBootstrap.java:62)
                                    at com.nichpro.jmx.bootstrap.Main.configure(Main.java:75)
                                    at com.nichpro.jmx.bootstrap.Main.main(Main.java:45)
                                    at com.nichpro.jmx.server.config.JMXMain.main(JMXMain.java:33)
                                    at com.nichpro.jmx.server.DataManagementServer.main(DataManagementServer.java:291)
                                    java.lang.NullPointerException
                                    at com.nichpro.jmx.bootstrap.Main.deploy(Main.java:116)
                                    at com.nichpro.jmx.server.config.JMXMain.main(JMXMain.java:40)
                                    at com.nichpro.jmx.server.DataManagementServer.main(DataManagementServer.java:291)

                                    I have inclued all of the .jar files from the current JBoss 5.0.0.GA release so all the libraries should be there.
                                    The only exception is I have not included the endorsed directory contents.

                                    Regards,
                                    GMarsh


                                    1 2 Previous Next