You are not logged in.
Announcement
Unanswered posts
|
Pages: 1

When running the wizard against a large Salesforce table the preview errors out and generates the error below. The system memory spikes during the preview process. If I stop the preview and go to the Guess Schema step it errors out also with the same error. How can I correct this?
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
at java.io.ByteArrayOutputStream.<init>(Unknown Source)
at com.sun.net.ssl.internal.ssl.OutputRecord.<init>(Unknown Source)
at com.sun.net.ssl.internal.ssl.OutputRecord.<init>(Unknown Source)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.sendAlert(Unknown Source)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.warning(Unknown Source)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.closeInternal(Unknown Source)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.close(Unknown Source)
at com.sun.net.ssl.internal.ssl.AppInputStream.close(Unknown Source)
at java.io.BufferedInputStream.close(Unknown Source)
at org.apache.axis.transport.http.SocketInputStream.close(SocketInputStream.java:52)
at org.apache.xerces.impl.XMLEntityManager$RewindableInputStream.close(Unknown Source)
at org.apache.xerces.impl.io.UTF8Reader.close(Unknown Source)
at org.apache.xerces.impl.XMLEntityManager.closeReaders(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.cleanup(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
at javax.xml.parsers.SAXParser.parse(Unknown Source)
at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)
at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
at org.apache.axis.client.Call.invoke(Call.java:2767)
at org.apache.axis.client.Call.invoke(Call.java:2443)
at org.apache.axis.client.Call.invoke(Call.java:2366)
at org.apache.axis.client.Call.invoke(Call.java:1812)
at com.sforce.soap.partner.SoapBindingStub.queryMore(SoapBindingStub.java:2912)
at org.talend.salesforce.SforceManagementImpl.query(SforceManagementImpl.java:634)
at sftestprod.shadowfileinputtodelimitedoutput_0_1.ShadowFileInputToDelimitedOutput.tSalesforceInputProcess(ShadowFileInputToDelimitedOutput.java:4428)
Preview error. Some settings must be changed.
org.talend.designer.runprocess.shadow.ShadowFilePreview.preview(ShadowFilePreview.java:88)
org.talend.repository.ui.utils.ShadowProcessHelper.getCsvArray(ShadowProcessHelper.java:326)
org.talend.repository.ui.wizards.metadata.connection.files.salesforce.SalesforceStep2Form$PreviewProcessor.nonUIProcessInThread(SalesforceStep2Form.java:408)
org.talend.commons.ui.swt.thread.SWTUIThreadProcessor$1.run(SWTUIThreadProcessor.java:74)
Offline

Hello, could you please paste the contents of your TISEE-win32-x86.ini file located in the root directory of your TOS folder.
Note:
Depending on the .exe you are running TOS with ini file could be: TISEE-win32.wpf OR TISEE-win32-x84_64. Please paste the correct one! ![]()
Thanks.
Offline

Hi,
I think you should increase -Xmx (for example to 768m). I feel -XX:MaxPermSize is too high and could be reduced.
Bye
Volker
Offline

Hi,
you could try tor raise -Xmx768m some more and do not use MaxPermSize. Example:
-vmargs -Xms256m -Xmx1536m
Additional it looks like your job needs much memory at all. We could give some more advice if you can give us more information concerning your job design and your data.
Bye
Volker
Offline

Thanks all I am doing is running the Salesforce Metadata setup wizard to pull Case data from our Salesforce production environment. I have not even started to build a job.
The Wizard crashes on Step 3 when it tries to retrieve the preview data. My guess is that it is trying to pull our entire Case database in the preview instead of limiting it to a few hundred rows.
It works fine when I try it against a test database that has only a couple of dozen records in it.
Offline

Hi,
could you please open a bug in the BugTracker. In meantime modifying -Xmx would be the only solution if there is no option to limit data. I never used Salesforce so I'm not sure if it is possible to limit.
Bye
Volker
Offline

Bugtracker thread is here
http://www.talendforge.org/bugs/view.php?id=6747
Offline

I increased the Java memory values as indicated below.
-Xmx3800m -Xms3800m
Now I do not receive an out of memory error I get the error below at Step 3 in the Metadata wizard.
Exception in component tSalesforceInput
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: java.net.SocketException: Connection reset
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}stackTrace:java.net.SocketException: Connection reset
at java.net.SocketInputStream.read(Unknown Source)
at com.sun.net.ssl.internal.ssl.InputRecord.readFully(Unknown Source)
at com.sun.net.ssl.internal.ssl.InputRecord.read(Unknown Source)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(Unknown Source)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readDataRecord(Unknown Source)
at com.sun.net.ssl.internal.ssl.AppInputStream.read(Unknown Source)
at java.io.BufferedInputStream.fill(Unknown Source)
at java.io.BufferedInputStream.read1(Unknown Source)
at java.io.BufferedInputStream.read(Unknown Source)
at java.io.FilterInputStream.read(Unknown Source)
at org.apache.xerces.impl.XMLEntityManager$RewindableInputStream.read(Unknown Source)
at org.apache.xerces.impl.io.UTF8Reader.read(Unknown Source)
at org.apache.xerces.impl.XMLEntityScanner.load(Unknown Source)
at org.apache.xerces.impl.XMLEntityScanner.skipString(Unknown Source)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
at javax.xml.parsers.SAXParser.parse(Unknown Source)
at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)
at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
at org.apache.axis.client.Call.invoke(Call.java:2767)
at org.apache.axis.client.Call.invoke(Call.java:2443)
at org.apache.axis.client.Call.invoke(Call.java:2366)
at org.apache.axis.client.Call.invoke(Call.java:1812)
at com.sforce.soap.partner.SoapBindingStub.queryMore(SoapBindingStub.java:2912)
at org.talend.salesforce.SforceManagementImpl.query(SforceManagementImpl.java:634)
at sftestprod.shadowfileinputtodelimitedoutput_0_1.ShadowFileInputToDelimitedOutput.tSalesforceInputProcess(ShadowFileInputToDelimitedOutput.java:4469)
at sftestprod.shadowfileinputtodelimitedoutput_0_1.ShadowFileInputToDelimitedOutput.runJobInTOS(ShadowFileInputToDelimitedOutput.java:6624)
at sftestprod.shadowfileinputtodelimitedoutput_0_1.ShadowFileInputToDelimitedOutput.main(ShadowFileInputToDelimitedOutput.java:6540)
{http://xml.apache.org/axis/}hostname:TALEND-DEV
java.net.SocketException: Connection reset
at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:701)
at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)
at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
at org.apache.axis.client.Call.invoke(Call.java:2767)
at org.apache.axis.client.Call.invoke(Call.java:2443)
at org.apache.axis.client.Call.invoke(Call.java:2366)
at org.apache.axis.client.Call.invoke(Call.java:1812)
at com.sforce.soap.partner.SoapBindingStub.queryMore(SoapBindingStub.java:2912)
at org.talend.salesforce.SforceManagementImpl.query(SforceManagementImpl.java:634)
at sftestprod.shadowfileinputtodelimitedoutput_0_1.ShadowFileInputToDelimitedOutput.tSalesforceInputProcess(ShadowFileInputToDelimitedOutput.java:4469)
at sftestprod.shadowfileinputtodelimitedoutput_0_1.ShadowFileInputToDelimitedOutput.runJobInTOS(ShadowFileInputToDelimitedOutput.java:6624)
at sftestprod.shadowfileinputtodelimitedoutput_0_1.ShadowFileInputToDelimitedOutput.main(ShadowFileInputToDelimitedOutput.java:6540)
Caused by: java.net.SocketException: Connection reset
at java.net.SocketInputStream.read(Unknown Source)
at com.sun.net.ssl.internal.ssl.InputRecord.readFully(Unknown Source)
at com.sun.net.ssl.internal.ssl.InputRecord.read(Unknown Source)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(Unknown Source)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readDataRecord(Unknown Source)
at com.sun.net.ssl.internal.ssl.AppInputStream.read(Unknown Source)
at java.io.BufferedInputStream.fill(Unknown Source)
at java.io.BufferedInputStream.read1(Unknown Source)
at java.io.BufferedInputStream.read(Unknown Source)
at java.io.FilterInputStream.read(Unknown Source)
at org.apache.xerces.impl.XMLEntityManager$RewindableInputStream.read(Unknown Source)
at org.apache.xerces.impl.io.UTF8Reader.read(Unknown Source)
at org.apache.xerces.impl.XMLEntityScanner.load(Unknown Source)
at org.apache.xerces.impl.XMLEntityScanner.skipString(Unknown Source)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
at javax.xml.parsers.SAXParser.parse(Unknown Source)
at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
... 13 more
Preview error. Some settings must be changed.
org.talend.designer.runprocess.shadow.ShadowFilePreview.preview(ShadowFilePreview.java:88)
org.talend.repository.ui.utils.ShadowProcessHelper.getCsvArray(ShadowProcessHelper.java:326)
org.talend.repository.ui.wizards.metadata.connection.files.salesforce.SalesforceStep2Form$PreviewProcessor.nonUIProcessInThread(SalesforceStep2Form.java:408)
org.talend.commons.ui.swt.thread.SWTUIThreadProcessor$1.run(SWTUIThreadProcessor.java:74)
Offline

I think this should be handled together with your memory problem. I just want to say add a note to the Bug as I see that it is closed...
I do not have any deeper knowledge concerning Salesforce. So I have to pass :-(
Maybe a timeout happens?
Bye
Volker
By the way: I could understand the reason why the last problem had been closed but from my point of view some more analyzing should had been done.
Offline
Pages: 1