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: dev@tomcat.apache.org
        ReportedBy: kelap...@gmail.com
    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: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to