Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.1
    • Component/s: hk2
    • Labels:
      None

      Description

      When I try to deploy a WAR that only contains a REST Handler that uses a lambda expression, deploying fails:

      [2014-02-06T21:00:18.522+0100] [glassfish 4.0] [SEVERE] [] [javax.enterprise.system.tools.deployment.common] [tid: _ThreadID=49 _ThreadName=deployment-jar-scanner] [timeMillis: 1391716818522] [levelValue: 1000] [[
      Exception while visiting WEB-INF/classes/com/lodgon/lambdawar/RestHandler.class of size 2394
      java.lang.ArrayIndexOutOfBoundsException: 52264
      at org.objectweb.asm.ClassReader.readClass(ClassReader.java:2015)
      at org.objectweb.asm.ClassReader.accept(ClassReader.java:469)
      at org.objectweb.asm.ClassReader.accept(ClassReader.java:425)
      at org.glassfish.hk2.classmodel.reflect.Parser$5.on(Parser.java:359)
      at com.sun.enterprise.v3.server.ReadableArchiveScannerAdapter.handleEntry(ReadableArchiveScannerAdapter.java:165)
      at com.sun.enterprise.v3.server.ReadableArchiveScannerAdapter.onSelectedEntries(ReadableArchiveScannerAdapter.java:127)
      at org.glassfish.hk2.classmodel.reflect.Parser.doJob(Parser.java:344)
      at org.glassfish.hk2.classmodel.reflect.Parser.access$300(Parser.java:67)
      at org.glassfish.hk2.classmodel.reflect.Parser$3.call(Parser.java:303)
      at org.glassfish.hk2.classmodel.reflect.Parser$3.call(Parser.java:292)
      at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      at java.lang.Thread.run(Thread.java:744)

        Issue Links

          Activity

          Hide
          johanvos added a comment -

          I noticed the latest GF nightly build is using hk2 2.2.0-b26.
          That version has a dependency on asm 3.3
          The head version of hk2 (2.3.0-b02-SNAPSHOT) has a dependency on asm 5-beta, so I guess it will be solved in hk2 2.3.0 (assuming asm-all-repackaged.jar is updated as well).

          Can anyone working on HK2 comment on this?

          Show
          johanvos added a comment - I noticed the latest GF nightly build is using hk2 2.2.0-b26. That version has a dependency on asm 3.3 The head version of hk2 (2.3.0-b02-SNAPSHOT) has a dependency on asm 5-beta, so I guess it will be solved in hk2 2.3.0 (assuming asm-all-repackaged.jar is updated as well). Can anyone working on HK2 comment on this?
          Hide
          johanvos added a comment -

          As of hk2 2.2.0b27, the dependency on asm is raised to 5-beta.
          I can confirm this issue is fixed in the nightly snapshot of GlassFish 2013-03-13

          Show
          johanvos added a comment - As of hk2 2.2.0b27, the dependency on asm is raised to 5-beta. I can confirm this issue is fixed in the nightly snapshot of GlassFish 2013-03-13
          Hide
          Romain Grécourt added a comment -

          hk2 2.3.0-bX has been intergrated in glassfish recently.
          Closing the issue according the previous comment.

          Show
          Romain Grécourt added a comment - hk2 2.3.0-bX has been intergrated in glassfish recently. Closing the issue according the previous comment.

            People

            • Assignee:
              jwells
              Reporter:
              johanvos
            • Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: