Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » SeMantic Information Logistics Architecture (SMILA) » Attribute Max Size?
Attribute Max Size? [message #758308] Tue, 22 November 2011 16:53 Go to next message
Stephan Mehlhase is currently offline Stephan MehlhaseFriend
Messages: 8
Registered: July 2009
Junior Member
Hi,

during testing I pushed a fairly large block of XML data into an
Attribute (~1.5 MB of text). And I got the following exception:

2011-11-22 17:30:12,115 ERROR [ODEServerImpl-5
] engine.Contexts - Commit failed.
javax.transaction.RollbackException: Transaction timout
at
org.apache.geronimo.transaction.manager.TransactionImpl.commit(TransactionImpl.java:269)
at
org.apache.geronimo.transaction.manager.TransactionManagerImpl.commit(TransactionManagerImpl.java:238)
at org.apache.ode.bpel.engine.Contexts.execTransaction(Contexts.java:114)
at
org.apache.ode.bpel.engine.BpelServerImpl$TransactedCallable.call(BpelServerImpl.java:968)
at
org.apache.ode.bpel.engine.BpelServerImpl$ServerCallable.call(BpelServerImpl.java:948)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:679)
2011-11-22 17:30:12,123 FATAL [ODEServerImpl-5
] engine.BpelServerImpl - Internal Error
org.apache.ode.bpel.iapi.BpelEngineException: Commit failed.
at org.apache.ode.bpel.engine.Contexts.execTransaction(Contexts.java:117)
at
org.apache.ode.bpel.engine.BpelServerImpl$TransactedCallable.call(BpelServerImpl.java:968)
at
org.apache.ode.bpel.engine.BpelServerImpl$ServerCallable.call(BpelServerImpl.java:948)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:679)
Caused by: javax.transaction.RollbackException: Transaction timout
at
org.apache.geronimo.transaction.manager.TransactionImpl.commit(TransactionImpl.java:269)
at
org.apache.geronimo.transaction.manager.TransactionManagerImpl.commit(TransactionManagerImpl.java:238)
at org.apache.ode.bpel.engine.Contexts.execTransaction(Contexts.java:114)
... 7 more

Did I just hit the limits of SMILA? Or has something else had a timeout
and not the Lucene Index that I suspect as cause of this message (I use
the default SMILA.application).

I suppose it's better to store such an amount of data in an attachment?
Can I create an attachment from my pipelet?

Best Regards,
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
Re: Attribute Max Size? [message #758416 is a reply to message #758308] Wed, 23 November 2011 08:17 Go to previous message
Juergen Schumacher is currently offline Juergen SchumacherFriend
Messages: 35
Registered: July 2009
Member
Hi,

Am 22.11.2011, 17:53 Uhr, schrieb Stephan Mehlhase
<stephan.mehlhase@eml.org>:
> Hi,
>
> during testing I pushed a fairly large block of XML data into an
> Attribute (~1.5 MB of text). And I got the following exception:
> [...]Did I just hit the limits of SMILA? Or has something else had a
> timeout and not the Lucene Index that I suspect as cause of this message
> (I use the default SMILA.application).

I don't know what caused this. Hard to say if there are no additional log
entries.

No, there should be no limit on the size of an attribute apart from the
java.lang.String limit (2 billion characters, I suppose). However, you
probably
shouldn't configure the BPEL processor such that it adds such attributes to
the XML records which are pushed through the BPEL engine. But by default,
only the _recordid, _source and MimeType attributes are used for this, and
I suppose you didn't put the text in one of these (;

> I suppose it's better to store such an amount of data in an attachment?

No, not necessarily. But you can try.

> Can I create an attachment from my pipelet?

Yes, of course: blackboard.setAttachment(String recordId, String
attachmentName, byte[] data)

Regards,
J├╝rgen
Previous Topic:Validate adding a new attribute works
Next Topic:Best Practise to include Webservice into Pipeline
Goto Forum:
  


Current Time: Fri Nov 28 13:46:56 GMT 2014

Powered by FUDForum. Page generated in 0.05378 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software