3 Replies Latest reply on May 15, 2009 4:14 AM by jaikiran pai

    invalid constant type: 101

    Benito Juarez Newbie

      Hello,

      i ve got a problem with the deployment of my app OssConfigurationServer.ear:

      10:11:28,335 ERROR [AbstractKernelController] Error installing to Real: name=vfszip:/C:/Program%20Files/jboss-5.0.1.GA/server/default/deploy/OssConfigurationServer.ear/ state=PreReal mode=Manual requiredState=Real
      org.jboss.deployers.spi.DeploymentException: Error deploying OssConfigurationServer.ear.ear: invalid constant type: 101
      at org.jboss.ejb3.deployers.Ejb3Deployer.deploy(Ejb3Deployer.java:201)
      at org.jboss.ejb3.deployers.Ejb3Deployer.deploy(Ejb3Deployer.java:103)
      at org.jboss.deployers.vfs.spi.deployer.AbstractVFSRealDeployer.internalDeploy(AbstractVFSRealDeployer.java:45)
      at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
      at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
      at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
      at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
      at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
      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.change(AbstractController.java:822)
      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
      at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
      at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:698)
      at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:304)
      at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:205)
      at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:405)
      at org.jboss.Main.boot(Main.java:209)
      at org.jboss.Main$1.run(Main.java:547)
      at java.lang.Thread.run(Thread.java:619)


      can anyone tell me what "invalid constant type" means?

      grz
      BJ

        • 1. Re: invalid constant type: 101
          jaikiran pai Master

           

          org.jboss.deployers.spi.DeploymentException: Error deploying OssConfigurationServer.ear.ear: invalid constant type: 101
          at org.jboss.ejb3.deployers.Ejb3Deployer.deploy(Ejb3Deployer.java:201)


          Is this an EJB3 application? Also, i guess this is just a part of the exception stacktrace, can you post the entire exception stacktrace?

          • 2. Re: invalid constant type: 101
            Benito Juarez Newbie

            11:56:10,760 ERROR [AbstractKernelController] Error installing to Real: name=vfszip:/C:/Program%20Files/jboss-5.0.1.GA/server/default/deploy/OssConfigurationServer.ear/ state=PreReal mode=Manual requiredState=Real
            org.jboss.deployers.spi.DeploymentException: Error deploying OssConfigurationServer.ear: invalid constant type: 101
            at org.jboss.ejb3.deployers.Ejb3Deployer.deploy(Ejb3Deployer.java:201)
            at org.jboss.ejb3.deployers.Ejb3Deployer.deploy(Ejb3Deployer.java:103)
            at org.jboss.deployers.vfs.spi.deployer.AbstractVFSRealDeployer.internalDeploy(AbstractVFSRealDeployer.java:45)
            at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
            at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
            at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
            at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
            at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
            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.change(AbstractController.java:822)
            at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
            at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
            at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:698)
            at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:304)
            at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:205)
            at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:405)
            at org.jboss.Main.boot(Main.java:209)
            at org.jboss.Main$1.run(Main.java:547)
            at java.lang.Thread.run(Thread.java:619)
            Caused by: java.io.IOException: invalid constant type: 101
            at javassist.bytecode.ConstPool.readOne(ConstPool.java:1027)
            at javassist.bytecode.ConstPool.read(ConstPool.java:970)
            at javassist.bytecode.ConstPool.(ConstPool.java:127)
            at javassist.bytecode.ClassFile.read(ClassFile.java:693)
            at javassist.bytecode.ClassFile.(ClassFile.java:85)
            at org.jboss.ejb3.Ejb3Deployment.deployElement(Ejb3Deployment.java:620)
            at org.jboss.ejb3.Ejb3Deployment.deployUrl(Ejb3Deployment.java:610)
            at org.jboss.ejb3.Ejb3Deployment.deploy(Ejb3Deployment.java:573)
            at org.jboss.ejb3.Ejb3Deployment.create(Ejb3Deployment.java:488)
            at org.jboss.ejb3.deployers.Ejb3Deployer.deploy(Ejb3Deployer.java:187)
            ... 22 more
            11:56:10,776 ERROR [ProfileServiceBootstrap] Failed to load profile: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):

            DEPLOYMENTS IN ERROR:
            Deployment "vfszip:/C:/Program%20Files/jboss-5.0.1.GA/server/default/deploy/OssConfigurationServer.ear/" is in error due to the following reason(s): java.io.IOException: invalid constant type: 101

            • 3. Re: invalid constant type: 101
              jaikiran pai Master

               

              Caused by: java.io.IOException: invalid constant type: 101
              at javassist.bytecode.ConstPool.readOne(ConstPool.java:1027)
              at javassist.bytecode.ConstPool.read(ConstPool.java:970)
              at javassist.bytecode.ConstPool.(ConstPool.java:127)
              at javassist.bytecode.ClassFile.read(ClassFile.java:693)


              Looks like some problem when Javassist is trying to read a .class file. Can you narrow down to the class file which is causing this issue?