Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 3.1.2
    • Fix Version/s: None
    • Component/s: other
    • Labels:
      None

      Description

      JPA is started from a OSGi bundle using the context classloader work around.

      This NPE seems to be random, it does not always happen.

      In this example two bundles are loading two different persistence units are the same time, not sure if that contributes to the NPE or not.

      [#|2012-03-15T17:39:24.506-0400|INFO|glassfish3.1.2|org.eclipse.persistence.session.bundle://300.1:1/_proview|_ThreadID=112;_ThreadName=Thread-2;|EclipseLink, version: Eclipse Persistence Services - 2.3.2.v20111125-r10461|#]
      
      [#|2012-03-15T17:39:24.506-0400|INFO|glassfish3.1.2|org.eclipse.persistence.session.bundle://304.0:1/_subscription|_ThreadID=113;_ThreadName=Thread-2;|EclipseLink, version: Eclipse Persistence Services - 2.3.2.v20111125-r10461|#]
      
      [#|2012-03-15T17:39:24.680-0400|SEVERE|glassfish3.1.2|javax.enterprise.system.tools.deployment.org.glassfish.deployment.common|_ThreadID=117;_ThreadName=Thread-2;|Exception while visiting com/sun/gjc/common/DataSourceSpec.class of size 3267
      java.lang.NullPointerException
              at org.glassfish.hk2.classmodel.reflect.impl.TypesImpl.getType(TypesImpl.java:78)
              at org.glassfish.hk2.classmodel.reflect.impl.ModelClassVisitor.visit(ModelClassVisitor.java:119)
              at org.objectweb.asm.ClassReader.accept(Unknown Source)
              at org.objectweb.asm.ClassReader.accept(Unknown Source)
              at org.glassfish.hk2.classmodel.reflect.Parser$5.on(Parser.java:363)
              at org.glassfish.hk2.classmodel.reflect.util.JarArchive.onSelectedEntries(JarArchive.java:125)
              at org.glassfish.hk2.classmodel.reflect.Parser.doJob(Parser.java:348)
              at org.glassfish.hk2.classmodel.reflect.Parser.access$300(Parser.java:70)
              at org.glassfish.hk2.classmodel.reflect.Parser$3.call(Parser.java:307)
              at org.glassfish.hk2.classmodel.reflect.Parser$3.call(Parser.java:296)
              at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
              at java.util.concurrent.FutureTask.run(FutureTask.java:166)
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
              at java.lang.Thread.run(Thread.java:722)
      |#]
      

        Activity

        Hide
        zhouronghui added a comment -

        Hi, Mahesh Kannan

        I found that TypesCtr had been modified in Revision:4175.
        It seems the the revision:4175 modified this ISSUE.

        https://svn.java.net/svn/hk2~svn/trunk/hk2/class-model/src/main/java/org/glassfish/hk2/classmodel/reflect/impl/TypesCtr.java
        ==============
        Revision: 4175
        Author: mtaube
        Date: 4:43:16, 2012/12/14
        Message:
        forward port of change 4107
        ==============

        Could you please check it? If it is YES, I think that the Revision:4175
        should feed-back to the GF V3.1.2. Right?

        Thanks.

        Show
        zhouronghui added a comment - Hi, Mahesh Kannan I found that TypesCtr had been modified in Revision:4175. It seems the the revision:4175 modified this ISSUE. https://svn.java.net/svn/hk2~svn/trunk/hk2/class-model/src/main/java/org/glassfish/hk2/classmodel/reflect/impl/TypesCtr.java ============== Revision: 4175 Author: mtaube Date: 4:43:16, 2012/12/14 Message: forward port of change 4107 ============== Could you please check it? If it is YES, I think that the Revision:4175 should feed-back to the GF V3.1.2. Right? Thanks.
        Hide
        TangYong added a comment -

        +1 agree with Zhou!

        Show
        TangYong added a comment - +1 agree with Zhou!
        Hide
        flotho added a comment -

        Hy folks,

        If it could help, I also explained How I hav the same issue.
        Whatt is tsrange is that the problem is coming only on GF reboot.
        I installed archiva.apache.org with success and all the stuff....
        When I reboot I have the same problem.

        So I vote +1 for having a solution to this

        Show
        flotho added a comment - Hy folks, If it could help, I also explained How I hav the same issue. Whatt is tsrange is that the problem is coming only on GF reboot. I installed archiva.apache.org with success and all the stuff.... When I reboot I have the same problem. So I vote +1 for having a solution to this
        Hide
        gfuser9999 added a comment -

        I thought the fix made to 3.1.2.4 (available from Oracle)
        since many months now. See
        https://blogs.oracle.com/GlassFishForBusiness/entry/oracle_glassfish_server_ogfs_v3
        15884192 INTEGRATE NEW HK2
        14512884 EXCEPTION WHILE VISITING COM/SUN/GJC/COMMON/DATASOURCESPEC.CLASS OF SIZE 3267

        Show
        gfuser9999 added a comment - I thought the fix made to 3.1.2.4 (available from Oracle) since many months now. See https://blogs.oracle.com/GlassFishForBusiness/entry/oracle_glassfish_server_ogfs_v3 15884192 INTEGRATE NEW HK2 14512884 EXCEPTION WHILE VISITING COM/SUN/GJC/COMMON/DATASOURCESPEC.CLASS OF SIZE 3267
        Hide
        flotho added a comment -

        Hy,

        And do you know ho to integrate this in the community release?

        Regards

        Show
        flotho added a comment - Hy, And do you know ho to integrate this in the community release? Regards

          People

          • Assignee:
            Mahesh Kannan
            Reporter:
            aaronjwhiteside
          • Votes:
            43 Vote for this issue
            Watchers:
            46 Start watching this issue

            Dates

            • Created:
              Updated: