You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by bu...@apache.org on 2002/08/06 16:20:53 UTC

DO NOT REPLY [Bug 11500] New: - Exception while shutting down upload example app

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=11500>.
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=11500

Exception while shutting down upload example app

           Summary: Exception while shutting down upload example app
           Product: Struts
           Version: Nightly Build
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Minor
          Priority: Other
         Component: Example
        AssignedTo: struts-dev@jakarta.apache.org
        ReportedBy: jonboy@rocketmonkey.org


I fixed this by changing the struts config file for the example.  I just added the following line to 
the action element: 
 
scope="request" 
 
An alternate fix would be to make the CommonsFormFile class serializable.  I'm not sure whether this 
should be the case or not. 
   
2002-08-06 09:49:07 StandardManager[/upload] Cannot serialize session attribute uploadForm for   
session B9BD293E4B51F304DB8B6801BDF325D2   
java.io.NotSerializableException:   
org.apache.struts.upload.CommonsMultipartRequestHandler$CommonsFormFile   
        at java.io.ObjectOutputStream.outputObject(ObjectOutputStream.java:1205)   
        at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:383)   
        at java.io.ObjectOutputStream.outputClassFields(ObjectOutputStream.java:1888)   
        at java.io.ObjectOutputStream.defaultWriteObject(ObjectOutputStream.java:503)   
        at java.io.ObjectOutputStream.outputObject(ObjectOutputStream.java:1271)   
        at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:383)   
        at org.apache.catalina.session.StandardSession.writeObject(StandardSession.java:1338)   
        at org.apache.catalina.session.StandardSession.writeObjectData(StandardSession.java:827)   
        at org.apache.catalina.session.StandardManager.unload(StandardManager.java:507)   
        at org.apache.catalina.session.StandardManager.stop(StandardManager.java:654)   
        at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1184)   
        at org.apache.catalina.core.StandardContext.stop(StandardContext.java:3495)   
        at org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:984)   
        at org.apache.catalina.core.StandardHost.remove(StandardHost.java:815)   
        at org.apache.catalina.startup.HostConfig.undeployApps(HostConfig.java:422)   
        at org.apache.catalina.startup.HostConfig.stop(HostConfig.java:402)   
        at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:234)   
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:155)   
        at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1151)   
        at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1163)   
        at org.apache.catalina.core.StandardService.stop(StandardService.java:435)   
        at org.apache.catalina.core.StandardServer.stop(StandardServer.java:535)   
        at org.apache.catalina.startup.Catalina.start(Catalina.java:799)   
        at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)   
        at org.apache.catalina.startup.Catalina.process(Catalina.java:179)   
        at java.lang.reflect.Method.invoke(Native Method)   
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>