[jboss-jira] [JBoss JIRA] Commented: (JBAS-9268) Deployment upload OOM Error
Jonathan Pearlin (JIRA)
jira-events at lists.jboss.org
Sun Apr 17 17:31:33 EDT 2011
[ https://issues.jboss.org/browse/JBAS-9268?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12596026#comment-12596026 ]
Jonathan Pearlin commented on JBAS-9268:
----------------------------------------
Proposed patch fix can be found here: https://github.com/jdpgrailsdev/jboss-as/commit/83f0d293e018a550562cd03819edfe071dafa0df
However, there is a larger issue regarding the content-type assigned to the file when uploaded. It appears that different browsers assign different content-type values for the same file (for instance, Firefox 3.x assigns "application/octet-stream" to a .war file, while IE 9 assigns "application/x-zip-compressed"). A decision needs to be made as to whether or not we still want to support multiple inputs in the upload request form POST and/or if we should find the deployment part by content-type instead of by the name of the input/parameter in the POST (something that we can define and publicize as part of the API).
> Deployment upload OOM Error
> ---------------------------
>
> Key: JBAS-9268
> URL: https://issues.jboss.org/browse/JBAS-9268
> Project: JBoss Application Server
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: Web Console
> Reporter: Heiko Braun
> Assignee: Jason Greene
> Fix For: 7.0.0.Beta4
>
>
> Uploading a 4.5kb sample.war file results in
> [Host Controller] 17:59:34,014 ERROR [org.jboss.as.domain.http.api] (pool-1-thread-20) Unexpected error executing deployment upload request: java.lang.OutOfMemoryError: Java heap space
> [Host Controller] at java.util.Arrays.copyOf(Arrays.java:2786) [:1.6.0_24]
> [Host Controller] at java.io.ByteArrayOutputStream.write(ByteArrayOutputStream.java:71) [:1.6.0_24]
> [Host Controller] at org.jboss.as.domain.http.server.DomainHttpServer.readHeader(DomainHttpServer.java:306)
> [Host Controller] at org.jboss.as.domain.http.server.DomainHttpServer.extractPostContent(DomainHttpServer.java:250)
> [Host Controller] at org.jboss.as.domain.http.server.DomainHttpServer.processUploadRequest(DomainHttpServer.java:120)
> [Host Controller] at org.jboss.as.domain.http.server.DomainHttpServer.handle(DomainHttpServer.java:102)
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list