chemistry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Derek Hulley (Created) (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CMIS-472) Document create reads content into memory
Date Fri, 18 Nov 2011 12:28:51 GMT
Document create reads content into memory
-----------------------------------------

                 Key: CMIS-472
                 URL: https://issues.apache.org/jira/browse/CMIS-472
             Project: Chemistry
          Issue Type: Bug
          Components: opencmis-server
    Affects Versions: OpenCMIS 0.5.0
            Reporter: Derek Hulley
            Priority: Critical
             Fix For: OpenCMIS 0.6.0


(from https://issues.alfresco.com/jira/browse/ALF-11565)
Steps to reproduce:
1. Connect to Alfresco through CMIS Workbench 0.5.0;
2. Click Create document;
3. Select Document (cmis:document) as type;
4. Attach file larger than VM memory size (alfresco installer was user as content stream ~500MB);
5. Click create document;

Actual result:
Error occurs

Caused by: java.lang.OutOfMemoryError: Java heap space
	at org.apache.chemistry.opencmis.server.impl.atompub.AtomEntryParser$LightByteArrayOutputStream.expand(AtomEntryParser.java:590)
	at org.apache.chemistry.opencmis.server.impl.atompub.AtomEntryParser$LightByteArrayOutputStream.write(AtomEntryParser.java:610)
	at org.apache.chemistry.opencmis.commons.impl.Base64$OutputStream.write(Base64.java:1963)
	at org.apache.chemistry.opencmis.commons.impl.Base64$OutputStream.write(Base64.java:1994)
	at java.io.FilterOutputStream.write(FilterOutputStream.java:80)
	at org.apache.chemistry.opencmis.server.impl.atompub.AtomEntryParser.readBase64(AtomEntryParser.java:392)
	at org.apache.chemistry.opencmis.server.impl.atompub.AtomEntryParser.parseCmisContent(AtomEntryParser.java:324)
	at org.apache.chemistry.opencmis.server.impl.atompub.AtomEntryParser.parseEntry(AtomEntryParser.java:217)
	at org.apache.chemistry.opencmis.server.impl.atompub.AtomEntryParser.parse(AtomEntryParser.java:184)
	at org.apache.chemistry.opencmis.server.impl.atompub.ObjectService.create(ObjectService.java:86)
...

	at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message