One Star

java heap space error

i have a large xml file (120mb) that i want to transform to an excel or csv spreadsheet. however when i try to add the file to the meta data, i get
"Unhandled event loop exception
Java heap space"
i have tried to increase memory as suggested in the following topic, but the error still persists.
http://www.talendforge.org/forum/viewtopic.php?id=9133

the log file entry looks like this
!SESSION 2010-04-12 12:24:55.703 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.6.0_19
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=de_DE
Command-line arguments: -os win32 -ws win32 -arch x86
!ENTRY org.talend.libraries 1 0 2010-04-12 12:25:09.312
!MESSAGE 2010-04-12 12:25:09,296 INFO org.talend.repository.model.ProxyRepositoryFactory - ********* gelogged nach tr

!ENTRY org.eclipse.ui 4 0 2010-04-12 12:48:43.171
!MESSAGE Unhandled event loop exception
!STACK 0
java.lang.OutOfMemoryError: Java heap space
at org.apache.xerces.dom.DeferredDocumentImpl.getNodeObject(Unknown Source)
at org.apache.xerces.dom.DeferredDocumentImpl.synchronizeChildren(Unknown Source)
at org.apache.xerces.dom.DeferredElementNSImpl.synchronizeChildren(Unknown Source)
at org.apache.xerces.dom.ParentNode.getChildNodes(Unknown Source)
at org.talend.commons.xml.XmlNodeRetriever.initLastNodes(Unknown Source)
at org.talend.commons.xml.XmlNodeRetriever.initLastNodes(Unknown Source)
at org.talend.commons.xml.XmlNodeRetriever.initLastNodes(Unknown Source)
at org.talend.commons.xml.XmlNodeRetriever.initSource(Unknown Source)
at org.talend.commons.xml.XmlNodeRetriever.<init>(Unknown Source)
at org.talend.repository.ui.wizards.metadata.connection.files.xml.extraction.XmlToXPathLinker.init(Unknown Source)
at org.talend.repository.ui.wizards.metadata.connection.files.xml.XmlFileStep2Form.setVisible(Unknown Source)
at org.eclipse.jface.dialogs.DialogPage.setVisible(DialogPage.java:470)
at org.eclipse.jface.wizard.WizardDialog.updateForPage(WizardDialog.java:1171)
at org.eclipse.jface.wizard.WizardDialog.access$2(WizardDialog.java:1149)
at org.eclipse.jface.wizard.WizardDialog$5.run(WizardDialog.java:1138)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
at org.eclipse.jface.wizard.WizardDialog.showPage(WizardDialog.java:1136)
at org.eclipse.jface.wizard.WizardDialog.nextPressed(WizardDialog.java:830)
at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:369)
at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:624)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:228)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3880)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3473)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
at org.eclipse.jface.window.Window.open(Window.java:801)
at org.talend.repository.ui.actions.metadata.CreateFileXmlAction.doRun(Unknown Source)
at org.talend.repository.ui.actions.AContextualAction$2.run(Unknown Source)
at org.talend.repository.RepositoryWorkUnit.executeRun(Unknown Source)
at org.talend.repository.model.AbstractRepositoryFactory.executeRepositoryWorkUnit(Unknown Source)
at org.talend.repository.model.ProxyRepositoryFactory.executeRepositoryWorkUnit(Unknown Source)


what else can i try to do?

regards,
Helge
3 REPLIES
One Star

Re: java heap space error

bump
Moderator

Re: java heap space error

hi,
try declaring metadata with a smaller xml file or an xsd
Then in tXMLinput component switch to built in mode and swithch the path to your original xml file
benjamin
Employee

Re: java heap space error

I have encountered this issue. The XSD approach does not work. After selecting the XSD file, it diaplsys in the Schema viewer correctly. Hitting the Next button does nothing. Hitting the Next button a seconf time (after wiating a few minutes) makes the wizard referesh to Step 5 of 5 with the error 'At least one item must exist on Schema' and the Finish button now becomes active, but not possible to finish.
What happend to step 4?