myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tomas Havelka (JIRA)" <...@myfaces.apache.org>
Subject [jira] Commented: (TRINIDAD-1169) inputfile: no feedback when file is too big (like 30mb)
Date Thu, 28 Aug 2008 14:28:44 GMT

    [ https://issues.apache.org/jira/browse/TRINIDAD-1169?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12626595#action_12626595
] 

Tomas Havelka commented on TRINIDAD-1169:
-----------------------------------------

Fine. Now I got another error when trying to upload bigger file (with 1.0.10-SNAPSHOT):

500 Internal Server Error
java.io.NotSerializableException: org.apache.myfaces.trinidadinternal.config.upload.ErrorFile

at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1081)	
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)	
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)	
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)	
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)	
at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1251)	
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1075)	
at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1251)	
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1075)	
at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1251)	
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1075)	
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:302)	
at org.apache.myfaces.trinidad.component.TreeState.writeExternal(TreeState.java:240)	
at java.io.ObjectOutputStream.writeExternalData(ObjectOutputStream.java:1310)	
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1288)	
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)	
at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1251)	
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1075)	
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:302)	
at org.apache.myfaces.trinidad.component.TreeState.writeExternal(TreeState.java:241)	
at java.io.ObjectOutputStream.writeExternalData(ObjectOutputStream.java:1310)	
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1288)	
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)	
at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1251)	
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1075)	
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:302)	
at org.apache.myfaces.trinidad.component.TreeState.writeExternal(TreeState.java:241)	
at java.io.ObjectOutputStream.writeExternalData(ObjectOutputStream.java:1310)	
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1288)	
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)	
at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1251)	
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1075)	
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:302)	
at org.apache.myfaces.trinidad.component.TreeState.writeExternal(TreeState.java:241)	
at java.io.ObjectOutputStream.writeExternalData(ObjectOutputStream.java:1310)	
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1288)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)	
at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1251)	
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1075)	
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:302)	
at org.apache.myfaces.trinidad.component.TreeState.writeExternal(TreeState.java:241)	
at java.io.ObjectOutputStream.writeExternalData(ObjectOutputStream.java:1310)	
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1288)	
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)	
at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1251)	
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1075)	
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:302)	
at org.apache.myfaces.trinidad.component.TreeState.writeExternal(TreeState.java:241)	
at java.io.ObjectOutputStream.writeExternalData(ObjectOutputStream.java:1310)	
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1288)	
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)	
at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1251)	
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1075)	
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:302)	
at org.apache.myfaces.trinidad.component.TreeState.writeExternal(TreeState.java:241)	
at java.io.ObjectOutputStream.writeExternalData(ObjectOutputStream.java:1310)	
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1288)	
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)	
at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1251)	
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1075)	
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:302)	
at org.apache.myfaces.trinidad.component.TreeState.writeExternal(TreeState.java:241)	
at java.io.ObjectOutputStream.writeExternalData(ObjectOutputStream.java:1310)	
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1288)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)	
at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1251)	
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1075)	
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:302)	
at org.apache.myfaces.trinidad.component.TreeState.writeExternal(TreeState.java:241)	
at java.io.ObjectOutputStream.writeExternalData(ObjectOutputStream.java:1310)	
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1288)	
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)	
at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1251)	
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1075)	
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:302)	
at org.apache.myfaces.trinidad.component.TreeState.writeExternal(TreeState.java:241)	
at java.io.ObjectOutputStream.writeExternalData(ObjectOutputStream.java:1310)	
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1288)	
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)	
at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1251)	
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1075)	
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:302)	
at org.apache.myfaces.trinidad.component.TreeState.writeExternal(TreeState.java:241)	
at java.io.ObjectOutputStream.writeExternalData(ObjectOutputStream.java:1310)	
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1288)	
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)	
at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1251)	
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1075)	
at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1251)	
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1075)	
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:302)	
at org.apache.myfaces.trinidadinternal.renderkit.core.CoreResponseStateManager.encodeSerializedViewAsString(CoreResponseStateManager.java:98)

at org.apache.myfaces.trinidadinternal.renderkit.core.CoreResponseStateManager.writeState(CoreResponseStateManager.java:77)

at com.sun.faces.application.StateManagerImpl.writeState(StateManagerImpl.java:388)	
at org.apache.myfaces.trinidadinternal.application.StateManagerImpl.writeState(StateManagerImpl.java:453)

at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:620)	
at org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:182)

at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:107)	
at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:245)
at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:137)	
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:214)

... and More

> inputfile: no feedback when file is too big (like 30mb)
> -------------------------------------------------------
>
>                 Key: TRINIDAD-1169
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-1169
>             Project: MyFaces Trinidad
>          Issue Type: Bug
>    Affects Versions:  1.0.8-core,  1.2.8-core
>            Reporter: Matthias We├čendorf
>            Assignee: Matthias We├čendorf
>             Fix For: 1.2.10-core, 1.0.10-core
>
>
> Trinidad has an upload restriction. Default is ~2 MB
> I see the error message correctly for a 5MB file but not for a 30MB file. This should
work for any size....
> Stack in the "wrong" scenario is:
> java.io.EOFException: Per-request disk space limits exceeded.
>         at org.apache.myfaces.trinidadinternal.config.upload.UploadedFileImpl.loadFile(UploadedFileImpl.java:242)
>         at org.apache.myfaces.trinidadinternal.config.upload.UploadedFileProcessorImpl.processFile(UploadedFileProcessorImpl.java:129)
>         at org.apache.myfaces.trinidadinternal.config.upload.FileUploadConfiguratorImpl._doUploadFile(FileUploadConfiguratorImpl.java:193)
>         at org.apache.myfaces.trinidadinternal.config.upload.FileUploadConfiguratorImpl.beginRequest(FileUploadConfiguratorImpl.java:143)
>         at org.apache.myfaces.trinidadinternal.config.GlobalConfiguratorImpl._startConfiguratorServiceRequest(GlobalConfiguratorImpl.java:469)
>         at org.apache.myfaces.trinidadinternal.config.GlobalConfiguratorImpl.beginRequest(GlobalConfiguratorImpl.java:206)
>         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:124)
>         at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
>         at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
>         at org.apache.myfaces.trinidaddemo.webapp.RedirectFilter.doFilter(RedirectFilter.java:97)
>         at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
>         at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360)
>         at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
>         at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
>         at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:726)
>         at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
>         at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:206)
>         at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
>         at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
>         at org.mortbay.jetty.Server.handle(Server.java:324)
>         at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)
>         at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:842)
>         at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:648)
>         at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
>         at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
>         at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)
>         at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:450)
> 01.08.2008 12:09:32 org.apache.myfaces.trinidadinternal.config.upload.FileUploadConfiguratorImpl
beginRequest
> SCHWERWIEGEND:
> java.lang.IllegalArgumentException
>         at org.apache.myfaces.trinidadinternal.share.util.MultipartFormHandler$Disposition.<init>(MultipartFormHandler.java:811)
>         at org.apache.myfaces.trinidadinternal.share.util.MultipartFormHandler.getNextPart(MultipartFormHandler.java:188)
>         at org.apache.myfaces.trinidadinternal.config.upload.FileUploadConfiguratorImpl.beginRequest(FileUploadConfiguratorImpl.java:118)
>         at org.apache.myfaces.trinidadinternal.config.GlobalConfiguratorImpl._startConfiguratorServiceRequest(GlobalConfiguratorImpl.java:469)
>         at org.apache.myfaces.trinidadinternal.config.GlobalConfiguratorImpl.beginRequest(GlobalConfiguratorImpl.java:206)
>         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:124)
>         at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
>         at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
>         at org.apache.myfaces.trinidaddemo.webapp.RedirectFilter.doFilter(RedirectFilter.java:97)
>         at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
>         at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360)
>         at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
>         at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
>         at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:726)
>         at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
>         at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:206)
>         at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
>         at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
>         at org.mortbay.jetty.Server.handle(Server.java:324)
>         at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)
>         at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:842)
>         at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:648)
>         at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
>         at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
>         at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)
>         at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:450)
> the first is expected, but not the second exception, the Illegal args exception...

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message