tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 22041] New: - Loading DynamicProxys from session
Date Fri, 01 Aug 2003 07:46:49 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22041>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22041

Loading DynamicProxys from session

           Summary: Loading DynamicProxys from session
           Product: Tomcat 4
           Version: 4.1.18
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Catalina
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: martin.harm@web.de


If you got a DynamicProxy inside the session, catalina fails to load this 
object.




Suggested fix: (tested just a little bit, not realy)


in: org.apache.catalina.util.CustomObjectInputStream 


overwrite the method 


protected Class resolveProxyClass(String[] interfaces)


with the implementation of java.io.ObjectInputStream except


the first line 


ClassLoader latestLoader = classLoader; 


  // instead of ClassLoader latestLoader = latestUserDefinedLoader();




this seams to work..

Mime
View raw message