Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Blocker Blocker
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: cdi
    • Labels:
      None
    • Environment:

      Windows 7

      Description

      My application fails due to a CDI deployment error. This is an application that was working fine on build 76. The application is available here: http://java.net/projects/cargotracker/downloads/download/cargo-tracker.zip
      Please advise.

      Here's how to build : (requires JDK 7)
      unzip the app
      cd cargo-tracker
      mvn install

      deploy the war file to GlassFish

      Here is the error I get:

      SEVERE: Exception while loading the app : CDI deployment failure:1
      java.lang.ArrayIndexOutOfBoundsException: 1
      at org.jboss.weld.util.reflection.HierarchyDiscovery.discoverFromClass(HierarchyDiscovery.java:99)
      at org.jboss.weld.util.reflection.HierarchyDiscovery.discoverTypes(HierarchyDiscovery.java:70)
      at org.jboss.weld.util.reflection.HierarchyDiscovery.<init>(HierarchyDiscovery.java:51)
      at org.jboss.weld.util.reflection.HierarchyDiscovery.<init>(HierarchyDiscovery.java:44)
      at org.jboss.weld.annotated.enhanced.TypeClosureLazyValueHolder.computeValue(TypeClosureLazyValueHolder.java:54)
      at org.jboss.weld.annotated.enhanced.TypeClosureLazyValueHolder.computeValue(TypeClosureLazyValueHolder.java:33)
      at org.jboss.weld.util.LazyValueHolder.get(LazyValueHolder.java:35)
      at org.jboss.weld.annotated.slim.backed.BackedAnnotated.getTypeClosure(BackedAnnotated.java:27)
      at org.jboss.weld.annotated.enhanced.jlr.AbstractEnhancedAnnotated.getTypeClosure(AbstractEnhancedAnnotated.java:202)
      at org.jboss.weld.util.Beans.getTypes(Beans.java:446)
      at org.jboss.weld.bean.attributes.BeanAttributesFactory$BeanAttributesBuilder.<init>(BeanAttributesFactory.java:107)
      at org.jboss.weld.bean.attributes.BeanAttributesFactory$BeanAttributesBuilder.<init>(BeanAttributesFactory.java:89)
      at org.jboss.weld.bean.attributes.BeanAttributesFactory.forBean(BeanAttributesFactory.java:66)
      at org.jboss.weld.bootstrap.AbstractBeanDeployer.createManagedBean(AbstractBeanDeployer.java:268)
      at org.jboss.weld.bootstrap.BeanDeployer.createClassBean(BeanDeployer.java:252)
      at org.jboss.weld.bootstrap.BeanDeployer.createClassBeans(BeanDeployer.java:216)
      at org.jboss.weld.bootstrap.BeanDeployment.createBeans(BeanDeployment.java:269)
      at org.jboss.weld.bootstrap.WeldBootstrap.deployBeans(WeldBootstrap.java:503)
      at org.glassfish.weld.WeldDeployer.event(WeldDeployer.java:209)
      at org.glassfish.kernel.event.EventsImpl.send(EventsImpl.java:131)
      at org.glassfish.internal.data.ApplicationInfo.load(ApplicationInfo.java:328)
      at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:493)
      at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:219)
      at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:491)
      at com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:527)
      at com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:523)
      at java.security.AccessController.doPrivileged(Native Method)
      at javax.security.auth.Subject.doAs(Subject.java:356)
      at com.sun.enterprise.v3.admin.CommandRunnerImpl$2.execute(CommandRunnerImpl.java:522)
      at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:546)
      at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1423)
      at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1500(CommandRunnerImpl.java:108)
      at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1762)
      at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1674)
      at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:534)
      at com.sun.enterprise.v3.admin.AdminAdapter.onMissingResource(AdminAdapter.java:224)
      at org.glassfish.grizzly.http.server.StaticHttpHandler.service(StaticHttpHandler.java:297)
      at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:246)
      at org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:191)
      at org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:168)
      at org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:189)
      at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119)
      at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:288)
      at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:206)
      at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:136)
      at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:114)
      at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77)
      at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:838)
      at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:113)
      at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:115)
      at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:55)
      at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:135)
      at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:564)
      at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:544)
      at java.lang.Thread.run(Thread.java:722)

        Issue Links

          Activity

          Hide
          TangYong added a comment -

          Rahman,

          So far, what I did is to justify the issue related to Weld and EclipseLink apart from my first suggestion(removing jersey related bundles from demo's WEB-INF/lib).

          However, It seemed that JBOSS Weld Team do not think this is a bug from weld.

          >BTW, your suggestion on the underlying Weld issue of turning off EclipseLink weaving got around the deployment issue, but I don't think that is a long-term solution.

          Yes, this is my experiment for investigating the issue.

          Thanks
          Tang

          Show
          TangYong added a comment - Rahman, So far, what I did is to justify the issue related to Weld and EclipseLink apart from my first suggestion(removing jersey related bundles from demo's WEB-INF/lib). However, It seemed that JBOSS Weld Team do not think this is a bug from weld. >BTW, your suggestion on the underlying Weld issue of turning off EclipseLink weaving got around the deployment issue, but I don't think that is a long-term solution. Yes, this is my experiment for investigating the issue. Thanks Tang
          Hide
          reza_rahman added a comment -

          Tang,

          I would be remiss not to say this - many thanks for the help on this! It is always great to have independent verification and clarification of issues.

          Cheers,
          Reza

          Show
          reza_rahman added a comment - Tang, I would be remiss not to say this - many thanks for the help on this! It is always great to have independent verification and clarification of issues. Cheers, Reza
          Hide
          jjsnyder83 added a comment -

          A fix was made in EclipseLink build. Reza will test with the next EclipseLink build.

          Show
          jjsnyder83 added a comment - A fix was made in EclipseLink build. Reza will test with the next EclipseLink build.
          Hide
          reza_rahman added a comment -

          I confirmed that this now works.

          Show
          reza_rahman added a comment - I confirmed that this now works.
          Hide
          TangYong added a comment -

          Good news!

          Show
          TangYong added a comment - Good news!

            People

            • Assignee:
              jjsnyder83
              Reporter:
              reza_rahman
            • Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: