myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bernd Bohmann <bernd.bohm...@atanion.com>
Subject Re: [Tobago] NotSerializableException in file uplaod
Date Tue, 23 Jan 2007 21:21:43 GMT
Hello Helmut,

I didn't know your managed bean. Can you declare the field in the 
managed bean transient. Maybe the managed bean is a tabChangedListener?

Regards

Bernd

H. Swaczinna wrote:
> What do you mean exactly with statesaving tags? Any JSF or Tabago with a state 
> attribute?
> 
> Helmut
> 
>  	No, the question was for removing these tags
> 
> 
> H. Swaczinna escribió:
> 
>     Adding Serializable doesn't help.
>     I don't know any savestate or keepalive tags.
> 
>     Helmut
> 
>       	AnlagenController implements the Serializable Class??
> 
> 
>     Is there any savestate or keepalive tag in your jsp?
> 
> 
>     H. Swaczinna escribió:
> 
>         Hi,
> 
>         I want to do a file uplaod with Tobago, but I always get an exception
>         when submitting the page:
> 
>         2007-01-23 15:40:44 http-8080-Processor23 ERROR - org.apache.myfaces.application.jsp.JspStateManagerImpl:599
- Exiting s
>         erializeView - Could not serialize state: org.apache.commons.fileupload.DeferredFileOutputStream
>         java.io.NotSerializableException: org.apache.commons.fileupload.DeferredFileOutputStream
>                 at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1081)
>                 at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
>                 at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
>         ...
> 
>         JSP:
> 
>         <tc:file id="dateiname" value="#{anlagenController.file}"/>
> 
>         AnlagenController.java:
> 
>           public void setFile(FileItem file) {
>             LOG.error("Setting fileItem " + file.getName());
>             this.filename = file.getName();
>           }
> 
>         web.xml:
> 
>           <filter>
>             <filter-name>multipartFormdataFilter</filter-name>
>             <filter-class>org.apache.myfaces.tobago.webapp.TobagoMultipartFormdataFilter</filter-class>
>           </filter>
> 
>         classpath:
> 
>         tobago-fileupload-1.0.10-SNAPSHOT.jar
>         commons-fileupload-1.0.jar
> 
> 
>         I've no idea what's wrong or missing. And there's no documentation,
>         except the simple example in the source...
> 
>         Regards
>         Helmut
>           
> 
> 
> 
>     -- 
> 
>      
> 
>     *Carlos López Rodríguez*
>     R&D Department
>     Carlos.Lopez@infinity.es <mailto:Carlos.Lopez@infinity.es>
>     Tel. +34 93 556 52 00
> 
>     <http://www.infinity.es>
> 
>     ________________________________________________________________________
> 
>     Disclaimer: The content of this message (and of all the files attached) is
>     confidential, and is forwarded exclusively to the specified addresses. The
>     message may contain privileged information and/or be legally protected. You
>     can only reproduce or distribute this material if you are specifically
>     authorized to do so.
> 
>     If you are not the intended recipient, any use, disclosure or copying of
>     this e-mail (and any attachments) is unauthorized. If you have received this
>     e-mail in error, please immediately delete it and any copies of it from your
>     system and notify us via e-mail at info@infinity.es
>     <mailto:info@infinity.es>. Thank you.
> 
>     ________________________________________________________________________
> 
> 
> 
> -- 
> 
>  
> 
> *Carlos López Rodríguez*
> R&D Department
> Carlos.Lopez@infinity.es <mailto:Carlos.Lopez@infinity.es>
> Tel. +34 93 556 52 00
> 
> <http://www.infinity.es>
> 
> ________________________________________________________________________
> 
> Disclaimer: The content of this message (and of all the files attached) is 
> confidential, and is forwarded exclusively to the specified addresses. The 
> message may contain privileged information and/or be legally protected. You can 
> only reproduce or distribute this material if you are specifically authorized to 
> do so.
> 
> If you are not the intended recipient, any use, disclosure or copying of this 
> e-mail (and any attachments) is unauthorized. If you have received this e-mail 
> in error, please immediately delete it and any copies of it from your system and 
> notify us via e-mail at info@infinity.es <mailto:info@infinity.es>. Thank you.
> 
> ________________________________________________________________________
> 

Mime
View raw message