This error doesn't look like it is obviously JiBX-related. It is happening
when you are reading data from your database via Hibernate, if I understand
it right. If the way you do that is OK (ie, you're not loading a lot of
stuff that you don't need into memory), then you could try by simply
increasing the heap space available to the VM using the -Xmx VM parameter.

Cheers,

Petter

On Mon, Dec 1, 2008 at 2:20 PM, Alberto Ivo <[EMAIL PROTECTED]> wrote:

> Only one collection in my binding file is ArrayList, all the rest is a
> HashSet. And the error, as I'm seeing, is in the ArrayList. is that right?
> Anyone here passed through this?
>
> I appreciated any kind of help.
>
> thanks in advance!
>
>
> On Mon, Dec 1, 2008 at 11:14 AM, Alberto Ivo <[EMAIL PROTECTED]> wrote:
>
>> [ConditionalEventPump] Exception occurred during event dispatching:
>> java.lang.OutOfMemoryError: Java heap space
>>     at java.util.Arrays.copyOf(Arrays.java:2760)
>>     at java.util.Arrays.copyOf(Arrays.java:2734)
>>     at java.util.ArrayList.ensureCapacity(ArrayList.java:167)
>>     at java.util.ArrayList.add(ArrayList.java:351)
>>     at
>> org.hibernate.collection.PersistentSet.readFrom(PersistentSet.java:319)
>>     at org.hibernate.loader.Loader.readCollectionElement(Loader.java:1008)
>>     at org.hibernate.loader.Loader.readCollectionElements(Loader.java:646)
>>     at org.hibernate.loader.Loader.getRowFromResultSet(Loader.java:591)
>>     at org.hibernate.loader.Loader.doQuery(Loader.java:701)
>>     at
>> org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:236)
>>     at org.hibernate.loader.Loader.doList(Loader.java:2220)
>>     at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2104)
>>     at org.hibernate.loader.Loader.list(Loader.java:2099)
>>     at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:378)
>>     at
>> org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:338)
>>     at
>> org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:172)
>>     at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1121)
>>     at org.hibernate.impl.QueryImpl.list(QueryImpl.java:79)
>>     at
>> br.com.petrobras.fwjw.dao.query.QueryHibernateHQL.listar(QueryHibernateHQL.java:64)
>>     at
>> br.com.petrobras.fwjw.dao.query.QueryHibernateHQL.listar(QueryHibernateHQL.java:1)
>>     at
>> br.com.petrobras.fwjw.dao.DaoHibernateAbst.consultar(DaoHibernateAbst.java:189)
>>     at
>> br.com.petrobras.fwjw.controlador.ControladorEntidadeHibernate.processarConsulta(ControladorEntidadeHibernate.java:174)
>>     at
>> br.com.petrobras.itp.view.forms.JdListaTestesExportarXML.executaExportacao(JdListaTestesExportarXML.java:74)
>>     at
>> br.com.petrobras.itp.view.forms.JdListaTestesExportarXML.access$0(JdListaTestesExportarXML.java:67)
>>     at
>> br.com.petrobras.itp.view.forms.JdListaTestesExportarXML$1.run(JdListaTestesExportarXML.java:59)
>>     at foxtrot.AbstractWorkerThread$1.run(AbstractWorkerThread.java:39)
>>     at java.security.AccessController.doPrivileged(Native Method)
>>     at foxtrot.AbstractWorkerThread.runTask(AbstractWorkerThread.java:35)
>>     at foxtrot.workers.SingleWorkerThread.run(SingleWorkerThread.java:196)
>>     at foxtrot.workers.SingleWorkerThread.run(SingleWorkerThread.java:179)
>>     at java.lang.Thread.run(Thread.java:619)
>>
>>
>>
>> On Mon, Dec 1, 2008 at 8:46 AM, Alberto Ivo <[EMAIL PROTECTED]> wrote:
>>
>>> Hello,
>>>
>>> I'm here again to ask some help. I can now generate my XML file, very
>>> nice, but when the file becomes very big, I got the error: 
>>> *java.lang.OutOfMemoryError:
>>> Java heap space*. How can I fix this? There is a limit for the XML File
>>> size?
>>>
>>> Thanks a lot.
>>>
>>>
>>> --
>>> Alberto Ivo Vieira
>>
>>
>>
>>
>> --
>> Alberto Ivo Vieira
>>
>
>
>
> --
> Alberto Ivo Vieira
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> jibx-users mailing list
> jibx-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jibx-users
>
>
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
jibx-users mailing list
jibx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-users

Reply via email to