Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Failed to generate code

Hi All,

I created a job and trying to perform a lookup from master data on excel sheet which is on shared drive but it failed to generate code. When I deactivate masterdata component the job works smoothly. Cant figure why. 

Best Regards,
Syed



0683p000009MHAj.jpg


!ENTRY org.talend.platform.logging 4 0 2016-03-22 10:44:41.453
!MESSAGE 2016-03-22 10:44:41,452 ERROR org.talend.commons.exception.CommonExceptionHandler  - Failed to generate code.

!STACK 0
org.talend.designer.runprocess.ProcessorException: Failed to generate code.
at org.talend.designer.runprocess.java.JavaProcessor.generateCode(JavaProcessor.java:399)
at org.talend.designer.runprocess.java.JavaProcessor.generateCode(JavaProcessor.java:330)
at org.talend.designer.runprocess.ProcessorUtilities.generateContextInfo(ProcessorUtilities.java:569)
at org.talend.designer.runprocess.ProcessorUtilities.generateCode(ProcessorUtilities.java:406)
at org.talend.designer.runprocess.ProcessorUtilities.generateCode(ProcessorUtilities.java:1121)
at org.talend.designer.runprocess.RunProcessContext$1.run(RunProcessContext.java:528)
at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:464)
at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372)
at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:507)
at org.eclipse.ui.internal.progress.ProgressMonitorJobsDialog.run(ProgressMonitorJobsDialog.java:275)
at org.eclipse.ui.internal.progress.ProgressManager.run(ProgressManager.java:1162)
at org.talend.designer.runprocess.RunProcessContext.exec(RunProcessContext.java:484)
at org.talend.designer.runprocess.ui.ProcessComposite.exec(ProcessComposite.java:1429)
at org.talend.designer.runprocess.ui.views.ProcessView$RunAction.run(ProcessView.java:650)
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:134)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4041)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3660)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2640)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438)
at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:664)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.talend.rcp.intro.Application.start(Application.java:145)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:619)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
at org.eclipse.equinox.launcher.Main.run(Main.java:1407)
at org.eclipse.equinox.launcher.Main.main(Main.java:1383)
Caused by: org.talend.designer.codegen.exception.CodeGeneratorException: org.eclipse.emf.codegen.jet.JETException: InvocationTargetException
at org.talend.designer.codegen.CodeGenerator.instantiateJetProxy(CodeGenerator.java:567)
at org.talend.designer.codegen.CodeGenerator.generateTypedComponentCode(CodeGenerator.java:555)
at org.talend.designer.codegen.CodeGenerator.generateTypedComponentCode(CodeGenerator.java:501)
at org.talend.designer.codegen.CodeGenerator.generateTypedComponentCode(CodeGenerator.java:487)
at org.talend.designer.codegen.CodeGenerator.generateProcessCode(CodeGenerator.java:324)
at org.talend.designer.runprocess.java.JavaProcessor.generateCode(JavaProcessor.java:373)
... 40 more
Caused by: org.eclipse.emf.codegen.jet.JETException: InvocationTargetException
at org.eclipse.emf.codegen.jet.JETEmitter.generate(JETEmitter.java:475)
at org.talend.designer.codegen.config.TalendJetEmitter.generate(TalendJetEmitter.java:684)
at org.eclipse.emf.codegen.jet.JETEmitter.generate(JETEmitter.java:447)
at org.eclipse.emf.codegen.jet.JETEmitter.generate(JETEmitter.java:438)
at org.talend.designer.codegen.proxy.JetProxy.generate(JetProxy.java:54)
at org.talend.designer.codegen.CodeGenerator.instantiateJetProxy(CodeGenerator.java:564)
... 45 more
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.emf.codegen.jet.JETEmitter.generate(JETEmitter.java:467)
... 50 more
Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: 1
at java.lang.String.substring(Unknown Source)
at org.talend.designer.codegen.translators.common.Subprocess_headerJava.generate(Subprocess_headerJava.java:502)
... 55 more
Labels (3)
9 Replies
Anonymous
Not applicable
Author

HiSyed,
Are you able to read your master data from shared drive successfully?
Best regards
Sabrina
Anonymous
Not applicable
Author

Hi Sabrina

From talend yes on other job the shared drive is retrieving data. but its not doing it with this master data.

Thanks for the reply
Anonymous
Not applicable
Author

Hi,
Would you mind retrieving your data from shared drive to local? After that, perform a lookup between main data from tfilelist and master data on excel sheet to see if it works? 
Best regards
Sabrina
Anonymous
Not applicable
Author

Hi Sabrina,

Tried retrieving data to local from that excel file. Couldn't do it. It shows same error. It seems talend is unable to perform any thing with this file. Although that file is working perfectly fine.

Regards,
Syed
Anonymous
Not applicable
Author

Hi,
We suppose your job is blocked on "look up" processing.
From your job design, tfilelist-->tfileinputexcel_1-->tmap-->tfileoutputexcel. There are serveral files are listed by tfilelist component 
                                            tfileinputexcel_2(mater data)
which cannot make "lookup" with your master data at a time. 
           

Could you please design a simple job, such as, tfileinputexcel_1-->tmap-->tfileoutputexcel to make sure that talend cannot perform any 
                                                        tfileinputexcel_2
thing with your master data retrieved from shared drive?
Best regards
Sabrina
Anonymous
Not applicable
Author

Hi,

Tried doing it. Still the same error.
Anonymous
Not applicable
Author

Hi,
On which build version you got this issue? V 6.1.1?
Best regards
Sabrina
Anonymous
Not applicable
Author

V 5.4.1
Anonymous
Not applicable
Author

Hi,
We cannot make a testing on our side.
Could you please tried to repro your issue on V 6.1 to see if it works? Or would you mind sending your job as .zip file to us so that we can test your job  to see if there is a bug.
Best regards
Sabrina