Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 4.0_b56_ms5
    • Fix Version/s: 4.0_b56_ms5
    • Component/s: entity-persistence
    • Labels:
      None
    • Environment:

      RHL 5.0 and JDK1.7.0_03-64

      Description

      NoSuchFieldError in jpa 9539 se test

      glassfish-4.0-b56.zip

      appserver-sqe/pe/ejb/ejb30/issue/9539
      The test failed to insert data with image on se_j2db, b56
      http://javaweb.us.oracle.com/net/asqe-logs/export1/4.0/Results/build56/core/das/output/ejb30_issue_se_j2db.output
      [java] java.lang.NoSuchFieldError: TRACE

        Activity

        Hide
        sherryshen added a comment - - edited

        Attached 9539.zip has test source.

        The test is based on the issue in
        http://java.net/jira/browse/GLASSFISH-9539
        The test passed on b55
        http://javaweb.us.oracle.com/net/asqe-logs/export1/4.0/Results/build55/core/das/output/ejb30_issue_se_j2db.output

        To reproduce the issue in sqe core test env on das
        $ cd appserver-sqe/pe/ejb/ejb30/issue/9539
        $ ant all_se
        Please reference core instruction for env
        http://aseng-wiki.us.oracle.com/asengwiki/display/ASQA/4.0+Core+Test+Instructions

        Show
        sherryshen added a comment - - edited Attached 9539.zip has test source. The test is based on the issue in http://java.net/jira/browse/GLASSFISH-9539 The test passed on b55 http://javaweb.us.oracle.com/net/asqe-logs/export1/4.0/Results/build55/core/das/output/ejb30_issue_se_j2db.output To reproduce the issue in sqe core test env on das $ cd appserver-sqe/pe/ejb/ejb30/issue/9539 $ ant all_se Please reference core instruction for env http://aseng-wiki.us.oracle.com/asengwiki/display/ASQA/4.0+Core+Test+Instructions
        Hide
        mtaube added a comment -

        This target is picking up a log4j jar in the classpath. I don't know what's in db.root or SPS_HOME, but I suspect it is in one of those two places.

        The new version of hibernate-validator requires log4j if it is present to be version 1.2.12 or newer.

        <target name="run_se" depends="init-common">
        <java classname="ejb30.issue.TestClient" fork="true">
        <classpath>
        <pathelement location="classes/META-INF"/>
        <pathelement location="classes"/>
        <fileset dir="$

        {env.S1AS_HOME}

        /modules">
        <include name="*/.jar"/>
        </fileset>
        <fileset dir="$

        {db.root}

        /lib">
        <include name="*/.jar"/>
        </fileset>
        <fileset dir="$

        {env.SPS_HOME}

        /lib">
        <include name="*/.jar"/>
        </fileset>
        </classpath>
        <arg value="$

        {testsuite.id}

        SE-J2DB:"/>
        </java>
        </target>

        Show
        mtaube added a comment - This target is picking up a log4j jar in the classpath. I don't know what's in db.root or SPS_HOME, but I suspect it is in one of those two places. The new version of hibernate-validator requires log4j if it is present to be version 1.2.12 or newer. <target name="run_se" depends="init-common"> <java classname="ejb30.issue.TestClient" fork="true"> <classpath> <pathelement location="classes/META-INF"/> <pathelement location="classes"/> <fileset dir="$ {env.S1AS_HOME} /modules"> <include name="* / .jar"/> </fileset> <fileset dir="$ {db.root} /lib"> <include name="* / .jar"/> </fileset> <fileset dir="$ {env.SPS_HOME} /lib"> <include name="* / .jar"/> </fileset> </classpath> <arg value="$ {testsuite.id} SE-J2DB:"/> </java> </target>
        Hide
        sherryshen added a comment -

        Thank Mason and Mitesh for the analysis.
        The offending log4j is coming from appserver-sqe/lib/jalopy/log4j-1.2.6.jar.
        The test passed after build.xml is modified to exclude old version of log4j.

        Index: build.xml
        ===================================================================
        RCS file: /m/jws/appserver-sqe/pe/ejb/ejb30/issue/9539/build.xml,v
        retrieving revision 1.7
        retrieving revision 1.8
        diff -c -r1.7 -r1.8

            • build.xml 2010/01/27 17:40:11 1.7
            • build.xml 2012/10/03 23:45:40 1.8
              ***************
            • 122,129 ****
              <fileset dir="$ {db.root}/lib">
              <include name="*/.jar"/>
              </fileset>
              ! <fileset dir="${env.SPS_HOME}/lib">
              <include name="*/.jar"/>
              </fileset>
              </classpath>
              <arg value="${testsuite.id}SE-J2DB:"/>
              — 122,132 ----
              <fileset dir="${db.root}

              /lib">
              <include name="*/.jar"/>
              </fileset>
              ! <fileset dir="$

              {env.SPS_HOME}/lib/drivers">
              <include name="*/.jar"/>
              + </fileset>
              + <fileset dir="${env.SPS_HOME}

              /lib">
              + <include name="reporter.jar"/>
              </fileset>
              </classpath>
              <arg value="$

              {testsuite.id}

              SE-J2DB:"/>

        Show
        sherryshen added a comment - Thank Mason and Mitesh for the analysis. The offending log4j is coming from appserver-sqe/lib/jalopy/log4j-1.2.6.jar. The test passed after build.xml is modified to exclude old version of log4j. Index: build.xml =================================================================== RCS file: /m/jws/appserver-sqe/pe/ejb/ejb30/issue/9539/build.xml,v retrieving revision 1.7 retrieving revision 1.8 diff -c -r1.7 -r1.8 build.xml 2010/01/27 17:40:11 1.7 build.xml 2012/10/03 23:45:40 1.8 *************** 122,129 **** <fileset dir="$ {db.root}/lib"> <include name="* / .jar"/> </fileset> ! <fileset dir="${env.SPS_HOME}/lib"> <include name="* / .jar"/> </fileset> </classpath> <arg value="${testsuite.id}SE-J2DB:"/> — 122,132 ---- <fileset dir="${db.root} /lib"> <include name="* / .jar"/> </fileset> ! <fileset dir="$ {env.SPS_HOME}/lib/drivers"> <include name="* / .jar"/> + </fileset> + <fileset dir="${env.SPS_HOME} /lib"> + <include name="reporter.jar"/> </fileset> </classpath> <arg value="$ {testsuite.id} SE-J2DB:"/>

          People

          • Assignee:
            Mitesh Meswani
            Reporter:
            sherryshen
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: