Four Stars

tParseRecordSet type cast error

Screenshot (1).png

 

we were trying to implement the above but tparserecordset doesnt work here well and gave the following error .

org.talend.designer.runprocess.ProcessorException: Job compile errors 
At least job "parse" has a compile errors, please fix and export again.
Error Line: 1945
Detail Message: Cannot cast from String to ResultSet
There may be some other errors caused by JVM compatibility. Make sure your JVM setup is similar to the studio.

	at org.talend.designer.runprocess.JobErrorsChecker.checkLastGenerationHasCompilationError(JobErrorsChecker.java:328)

	at org.talend.designer.runprocess.DefaultRunProcessService.checkLastGenerationHasCompilationError(DefaultRunProcessService.java:380)

	at org.talend.designer.runprocess.RunProcessService.checkLastGenerationHasCompilationError(RunProcessService.java:292)

	at org.talend.designer.runprocess.ProcessorUtilities.generateBuildInfo(ProcessorUtilities.java:656)

	at org.talend.designer.runprocess.ProcessorUtilities.generateCode(ProcessorUtilities.java:545)

	at org.talend.designer.runprocess.ProcessorUtilities.generateCode(ProcessorUtilities.java:1506)

	at org.talend.designer.runprocess.RunProcessContext$1.run(RunProcessContext.java:577)

	at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:466)

	at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:374)

	at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:527)

	at org.eclipse.ui.internal.progress.ProgressMonitorJobsDialog.run(ProgressMonitorJobsDialog.java:284)

	at org.eclipse.ui.internal.progress.ProgressManager.run(ProgressManager.java:1190)

	at org.talend.designer.runprocess.RunProcessContext.exec(RunProcessContext.java:532)

	at org.talend.designer.runprocess.remote.RunRemoteProcessContext.exec(RunRemoteProcessContext.java:86)

	at org.talend.designer.runprocess.ui.ProcessComposite.exec(ProcessComposite.java:1450)

	at org.talend.designer.runprocess.ui.views.ProcessView$RunAction.run(ProcessView.java:691)

	at org.talend.designer.runprocess.ui.actions.RunProcessAction.run(RunProcessAction.java:58)

	at org.talend.designer.core.debug.JobLaunchConfigurationDelegate$1.run(JobLaunchConfigurationDelegate.java:84)

	at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)

	at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:136)

	at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4147)

	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3764)

	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1151)

	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)

	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1032)

	at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:148)

Please help to resolve our error.

2 REPLIES
Ten Stars

Re: tParseRecordSet type cast error

did you have a look at the error line in code Tab?

Francois Denis

Don't forget to tag when it's "solved"!

Four Stars

Re: tParseRecordSet type cast error

@fdenis

java.sql.ResultSet re_tParseRecordSet_1 = (java.sql.ResultSet) row2.gender;
boolean hasNextRecord_tParseRecordSet_1 = false;
String res_str_tParseRecordSet_1 = null;
java.sql.Timestamp res_ts_tParseRecordSet_1 = null;