1 Reply Latest reply on Jan 9, 2004 1:51 PM by brozow

    NoSuchMethodEx: ... bcel..InstructionFactory.createNewArray

    brozow Newbie

      I am having difficulty using JBoss-3.2.3 on Windows 2000 using JDK 1.4.1_02. Whenever I attempt to deploy entity beans using CMP I get an exception like the above.

      I have unzipped the exact same distribution to Solaris and deployed the exact same jar file and all went well. I have even completely reinstalled the distribution onto my Windows2000 box but continually get errors.

      Has anyone seen this problem before? Is it some kind of JVM bug?


      Any advice on this matter or areas I could look to to resolve it would be greatly appreciated.

      I am including below the deployment section of the server log and then the ServerInfo section of boot.log in case that shed any light.

      If anyone would like to try to reproduce it I can the simple cmp entity bean that causes this for me. The bean is a port of the CMP example from the "Mastering Enterprise JavaBeans" book.


      Here is the attempted deployment from server.log:

      2004-01-09 11:29:48,805 INFO [org.jboss.system.server.Server] JBoss (MX MicroKernel) [3.2.3 (build: CVSTag=JBoss_3_2_3 date=200311301445)] Started in 45s:25ms
      2004-01-09 11:33:56,579 INFO [org.jboss.deployment.MainDeployer] Starting deployment of package: file:/C:/jboss-3.2.3/server/default/deploy/EJB.jar
      2004-01-09 11:33:57,290 INFO [org.jboss.ejb.EjbModule] Deploying Product
      2004-01-09 11:33:59,323 WARN [org.jboss.system.ServiceController] Problem starting service jboss.j2ee:jndiName=RemoteProductHome,service=EJB
      java.lang.NoSuchMethodError: org.apache.bcel.generic.InstructionFactory.createNewArray(Lorg/apache/bcel/generic/Type;S)Lorg/apache/bcel/generic/Instruction;
      at org.jboss.proxy.compiler.ProxyImplementationFactory.createProxyMethod(ProxyImplementationFactory.java:319)
      at org.jboss.proxy.compiler.ProxyCompiler.getCode(ProxyCompiler.java:167)
      at org.jboss.proxy.compiler.Runtime.makeProxyType(Runtime.java:66)
      at org.jboss.proxy.compiler.ProxyCompiler.(ProxyCompiler.java:76)
      at org.jboss.proxy.compiler.Proxies$Impl.newTarget(Proxies.java:603)
      at org.jboss.proxy.compiler.Proxies.newTarget(Proxies.java:78)
      at org.jboss.proxy.compiler.Proxy.newProxyInstance(Proxy.java:49)
      at org.jboss.ejb.plugins.cmp.jdbc.JDBCCreateBeanClassInstanceCommand.(JDBCCreateBeanClassInstanceCommand.java:62)
      at org.jboss.ejb.plugins.cmp.jdbc.JDBCCommandFactory.createCreateBeanClassInstanceCommand(JDBCCommandFactory.java:123)
      at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.startStoreManager(JDBCStoreManager.java:463)
      at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.start(JDBCStoreManager.java:388)
      at org.jboss.ejb.plugins.CMPPersistenceManager.start(CMPPersistenceManager.java:152)
      at org.jboss.ejb.EntityContainer.startService(EntityContainer.java:342)
      at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:192)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:976)
      at $Proxy14.start(Unknown Source)
      at org.jboss.system.ServiceController.start(ServiceController.java:394)
      at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
      at $Proxy31.start(Unknown Source)
      at org.jboss.ejb.EjbModule.startService(EjbModule.java:331)
      at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:192)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:976)
      at $Proxy14.start(Unknown Source)
      at org.jboss.system.ServiceController.start(ServiceController.java:394)
      at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
      at $Proxy12.start(Unknown Source)
      at org.jboss.ejb.EJBDeployer.start(EJBDeployer.java:544)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:832)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:642)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:605)
      at sun.reflect.GeneratedMethodAccessor42.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
      at $Proxy6.deploy(Unknown Source)
      at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:302)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:476)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:201)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:212)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:191)
      2004-01-09 11:33:59,573 INFO [org.jboss.ejb.EjbModule] Started jboss.j2ee:module=EJB.jar,service=EjbModule
      2004-01-09 11:33:59,573 INFO [org.jboss.ejb.EJBDeployer] Deployed: file:/C:/jboss-3.2.3/server/default/deploy/EJB.jar
      2004-01-09 11:33:59,683 INFO [org.jboss.deployment.MainDeployer] Deployed package: file:/C:/jboss-3.2.3/server/default/deploy/EJB.jar
      2004-01-09 11:33:59,683 ERROR [org.jboss.deployment.scanner.URLDeploymentScanner] MBeanException: Exception in MBean operation 'checkIncompleteDeployments()'
      Cause: Incomplete Deployment listing:
      Packages waiting for a deployer:
      
      Incompletely deployed packages:
      
      MBeans waiting for classes:
      
      MBeans waiting for other MBeans:
      [ObjectName: jboss.j2ee:jndiName=RemoteProductHome,service=EJB
      state: FAILED
      I Depend On:
      Depends On Me: java.lang.NoSuchMethodError: org.apache.bcel.generic.InstructionFactory.createNewArray(Lorg/apache/bcel/generic/Type;S)Lorg/apache/bcel/generic/Instruction;]

      Here is the ServerInfo section of boot.log:

      10:59:08,616 INFO [ServerInfo] Java version: 1.4.1_02,Sun Microsystems Inc.
      10:59:08,616 INFO [ServerInfo] Java VM: Java HotSpot(TM) Client VM 1.4.1_02-b06,Sun Microsystems Inc.
      10:59:08,626 INFO [ServerInfo] OS-System: Windows 2000 5.0,x86
      10:59:08,626 DEBUG [ServerInfo] Full System Properties Dump
      10:59:08,626 DEBUG [ServerInfo] java.runtime.name: Java(TM) 2 Runtime Environment, Standard Edition
      10:59:08,626 DEBUG [ServerInfo] jboss.server.base.dir: C:\jboss-3.2.3\server
      10:59:08,626 DEBUG [ServerInfo] java.protocol.handler.pkgs: org.jboss.net.protocol
      10:59:08,626 DEBUG [ServerInfo] sun.boot.library.path: C:\j2sdk1.4.1_02\jre\bin
      10:59:08,626 DEBUG [ServerInfo] jboss.server.lib.url: file:/C:/jboss-3.2.3/server/default/lib/
      10:59:08,626 DEBUG [ServerInfo] java.vm.version: 1.4.1_02-b06
      10:59:08,626 DEBUG [ServerInfo] java.vm.vendor: Sun Microsystems Inc.
      10:59:08,626 DEBUG [ServerInfo] java.vendor.url: http://java.sun.com/
      10:59:08,626 DEBUG [ServerInfo] path.separator: ;
      10:59:08,626 DEBUG [ServerInfo] java.vm.name: Java HotSpot(TM) Client VM
      10:59:08,626 DEBUG [ServerInfo] file.encoding.pkg: sun.io
      10:59:08,626 DEBUG [ServerInfo] user.country: US
      10:59:08,626 DEBUG [ServerInfo] sun.os.patch.level: Service Pack 2
      10:59:08,626 DEBUG [ServerInfo] program.name: run.bat
      10:59:08,626 DEBUG [ServerInfo] java.vm.specification.name: Java Virtual Machine Specification
      10:59:08,626 DEBUG [ServerInfo] user.dir: C:\jboss-3.2.3\bin
      10:59:08,626 DEBUG [ServerInfo] jboss.server.base.url: file:/C:/jboss-3.2.3/server/
      10:59:08,626 DEBUG [ServerInfo] java.runtime.version: 1.4.1_02-b06
      10:59:08,626 DEBUG [ServerInfo] java.awt.graphicsenv: sun.awt.Win32GraphicsEnvironment
      10:59:08,626 DEBUG [ServerInfo] java.endorsed.dirs: C:\j2sdk1.4.1_02\jre\lib\endorsed
      10:59:08,626 DEBUG [ServerInfo] os.arch: x86
      10:59:08,626 DEBUG [ServerInfo] java.io.tmpdir: C:\DOCUME~1\brozow\LOCALS~1\Temp\
      10:59:08,626 DEBUG [ServerInfo] line.separator:
      
      10:59:08,626 DEBUG [ServerInfo] jbossmx.loader.repository.class: org.jboss.mx.loading.UnifiedLoaderRepository3
      10:59:08,626 DEBUG [ServerInfo] java.vm.specification.vendor: Sun Microsystems Inc.
      10:59:08,626 DEBUG [ServerInfo] user.variant:
      10:59:08,636 DEBUG [ServerInfo] os.name: Windows 2000
      10:59:08,636 DEBUG [ServerInfo] sun.java2d.fontpath:
      10:59:08,636 DEBUG [ServerInfo] jboss.bind.address: 0.0.0.0
      10:59:08,636 DEBUG [ServerInfo] jboss.server.temp.dir: C:\jboss-3.2.3\server\default\tmp
      10:59:08,636 DEBUG [ServerInfo] jboss.home.dir: C:\jboss-3.2.3
      10:59:08,636 DEBUG [ServerInfo] java.library.path: C:\j2sdk1.4.1_02\bin;.;C:\WINDOWS\System32;C:\WINDOWS;c:\jdk1.3.1_01\bin;C:\Cygwin\bin;C:\PROGRA~1\THINKPAD\UTILIT~1;"c:\jdk1.3.1_01\bin;C:\Cygwin\bin;C:\PROGRA~1\THINKPAD\UTILIT~1;"c:\jdk1.3.1_01\bin;C:\Cygwin\bin;C:\PROGRA~1\THINKPAD\UTILIT~1;"C:\WINDOWS\System32";C:\WINDOWS;C:\WINDOWS\system32;C:\WINDOWS\system32\WBEM;C:\Progra~1\Rational\ClearCase\bin";C:\WINDOWS;C:\WINDOWS\system32;C:\WINDOWS\system32\WBEM;C:\Progra~1\Rational\ClearCase\bin";C:\WINDOWS;C:\WINDOWS\system32;C:\WINDOWS\system32\WBEM;C:\Progra~1\Rational\ClearCase\bin;C:\Docume~1\brozow\jwsdp-1.1\jwsdp-shared\bin;C:\Progra~1\PuTTY;C:\Cygwin\bin'c:\Cywing\usr\X11R6\bin
      10:59:08,636 DEBUG [ServerInfo] jboss.server.home.dir: C:\jboss-3.2.3\server\default
      10:59:08,636 DEBUG [ServerInfo] java.specification.name: Java Platform API Specification
      10:59:08,636 DEBUG [ServerInfo] java.class.version: 48.0
      10:59:08,636 DEBUG [ServerInfo] jboss.server.config.url: file:/C:/jboss-3.2.3/server/default/conf/
      10:59:08,636 DEBUG [ServerInfo] java.util.prefs.PreferencesFactory: java.util.prefs.WindowsPreferencesFactory
      10:59:08,636 DEBUG [ServerInfo] os.version: 5.0
      10:59:08,636 DEBUG [ServerInfo] jboss.home.url: file:/C:/jboss-3.2.3/
      10:59:08,636 DEBUG [ServerInfo] user.home: C:\Documents and Settings\brozow
      10:59:08,636 DEBUG [ServerInfo] user.timezone: America/New_York
      10:59:08,636 DEBUG [ServerInfo] java.awt.printerjob: sun.awt.windows.WPrinterJob
      10:59:08,636 DEBUG [ServerInfo] java.specification.version: 1.4
      10:59:08,636 DEBUG [ServerInfo] file.encoding: Cp1252
      10:59:08,636 DEBUG [ServerInfo] jboss.server.home.url: file:/C:/jboss-3.2.3/server/default/
      10:59:08,636 DEBUG [ServerInfo] user.name: brozow
      10:59:08,636 DEBUG [ServerInfo] java.class.path: ;C:\j2sdk1.4.1_02\lib\tools.jar;C:\jboss-3.2.3\bin\\run.jar
      10:59:08,636 DEBUG [ServerInfo] jboss.lib.url: file:/C:/jboss-3.2.3/lib/
      10:59:08,636 DEBUG [ServerInfo] jboss.server.name: default
      10:59:08,636 DEBUG [ServerInfo] java.vm.specification.version: 1.0
      10:59:08,636 DEBUG [ServerInfo] sun.arch.data.model: 32
      10:59:08,636 DEBUG [ServerInfo] java.home: C:\j2sdk1.4.1_02\jre
      10:59:08,636 DEBUG [ServerInfo] java.specification.vendor: Sun Microsystems Inc.
      10:59:08,636 DEBUG [ServerInfo] user.language: en
      10:59:08,636 DEBUG [ServerInfo] awt.toolkit: sun.awt.windows.WToolkit
      10:59:08,636 DEBUG [ServerInfo] java.vm.info: mixed mode
      10:59:08,636 DEBUG [ServerInfo] java.version: 1.4.1_02
      10:59:08,636 DEBUG [ServerInfo] java.ext.dirs: C:\j2sdk1.4.1_02\jre\lib\ext
      10:59:08,636 DEBUG [ServerInfo] jboss.server.data.dir: C:\jboss-3.2.3\server\default\data
      10:59:08,636 DEBUG [ServerInfo] sun.boot.class.path: C:\j2sdk1.4.1_02\jre\lib\endorsed\dom.jar;C:\j2sdk1.4.1_02\jre\lib\endorsed\sax.jar;C:\j2sdk1.4.1_02\jre\lib\endorsed\xalan.jar;C:\j2sdk1.4.1_02\jre\lib\endorsed\xercesImpl.jar;C:\j2sdk1.4.1_02\jre\lib\endorsed\xsltc.jar;C:\j2sdk1.4.1_02\jre\lib\rt.jar;C:\j2sdk1.4.1_02\jre\lib\i18n.jar;C:\j2sdk1.4.1_02\jre\lib\sunrsasign.jar;C:\j2sdk1.4.1_02\jre\lib\jsse.jar;C:\j2sdk1.4.1_02\jre\lib\jce.jar;C:\j2sdk1.4.1_02\jre\lib\charsets.jar;C:\j2sdk1.4.1_02\jre\classes
      10:59:08,636 DEBUG [ServerInfo] java.vendor: Sun Microsystems Inc.
      10:59:08,636 DEBUG [ServerInfo] file.separator: \
      10:59:08,636 DEBUG [ServerInfo] java.vendor.url.bug: http://java.sun.com/cgi-bin/bugreport.cgi
      10:59:08,636 DEBUG [ServerInfo] sun.cpu.endian: little
      10:59:08,636 DEBUG [ServerInfo] sun.io.unicode.encoding: UnicodeLittle
      10:59:08,636 DEBUG [ServerInfo] sun.cpu.isalist: pentium i486 i386