Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[smila-user] Blackboard can't handle BIG attachments

Hi,

when testing SMILA with more and more big files, the following exception flew when adding attachments to a record:

2012-02-16 19:29:04,192 ERROR [ODEServerImpl-1 ] vpu.JacobVPU - Method "run" in class "org.apache.ode.bpel.rtrep.v2.EXTENSIONACTIVITY" threw an unexpected exception.
java.lang.OutOfMemoryError: Java heap space
at org.apache.commons.io.output.ByteArrayOutputStream.toByteArray(ByteArrayOutputStream.java:324)
        at org.apache.commons.io.IOUtils.toByteArray(IOUtils.java:361)
at org.eclipse.smila.blackboard.impl.BlackboardImpl.setAttachmentFromStream(BlackboardImpl.java:299) at org.eml.smila.ExtractWaveFromZipPipelet.process(ExtractWaveFromZipPipelet.java:53) at org.eclipse.smila.processing.bpel.activities.PipeletManager.doInvoke(PipeletManager.java:173) at org.eclipse.smila.processing.bpel.activities.PipeletManager.invokePipelet(PipeletManager.java:130) at org.eclipse.smila.processing.bpel.activities.PipeletManager.invokeActivity(PipeletManager.java:71) at org.eclipse.smila.processing.bpel.activities.PipeletExtensionBundle.invokeActivity(PipeletExtensionBundle.java:67)


This happened while adding the 5th Attachment to a Record, each roughly about 55 MB in size. As the work-around is quite straight-forward (use temp files and just use an attribute with the created filename), I can work around this issue easily. However, does this fit into the design of SMILA? Are there any other thoughts about it? As I will need to handle more data which in total is significantly bigger than this changing the heap size is not really an option.

Best,
Stephan

--
Stephan Mehlhase

European Media Laboratory GmbH
Schloss-Wolfsbrunnenweg 35
69118 Heidelberg

Amtsgericht Mannheim / HRB 335719
Managing Partner: Dr. h. c. Dr.-Ing. E. h. Klaus Tschira, Scientific and Managing
Director: Prof. Dr.-Ing. Andreas Reuter

http://www.eml-development.de

Testen Sie auch unsere neue Android Applikation zur Mediensteuerung:
http://market.android.com/search?q=pname:org.eml.upnp



Back to the top