https://issues.apache.org/bugzilla/show_bug.cgi?id=52919

             Bug #: 52919
           Summary: WebappClassLoader.clearReferencesJdbc is not loading
                    the exact content of the JdbcLeakPrevention.class file
           Product: Tomcat 7
           Version: trunk
          Platform: PC
        OS/Version: Windows Server 2003
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Catalina
        AssignedTo: [email protected]
        ReportedBy: [email protected]
    Classification: Unclassified


org.apache.catalina.loader.WebappClassLoader.clearReferencesJdbc() is
incorrectly reading org/apache/catalina/loader/JdbcLeakPrevention.class file
from disk causing extra bytes in the byte[] passed to
java.lang.ClassLoader.defineClass(String, byte[], int, int, ProtectionDomain).

Having extra bytes at the end of a .class file has always been illegal.  This
did NOT cause any issues in the past because in previous JDK releases, the test
for this condition rarely active. 

Oracle change their behaviour in java 6 to mark this as an error consequently
any extra bytes leads to errors like these

Caused by: java.lang.ClassFormatError: JVMCFRE118 extra bytes after EOF;
class=com/ibm/ws/runtime/component/JdbcLeakPrevention, offset=2499

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to