Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

[resolved] An internal error occurred during: java.lang.NullPointerException

I am receiving the following error, which is preventing me from running my jobs (errors encountered during build):
An internal error occurred during: "Generation Engine Initialization in progress...".
java.lang.NullPointerException

I checked the environment variable and all my other Java-based applications work.  Any ideas? 
Labels (3)
11 Replies
Anonymous
Not applicable
Author

The problem is a component which code generator fails under certain conditions.
Please take a look into the studio log file in the workspace/.metadata/.log. Here you should find the same exception but with a complete stack trace. Could you please post the stack trace here.
At first you have to find out which component causes the error.
To do this disable all components and enable them step by step and check after every step the Code view or try to run (but this would probably not possible). It does not matter if the job cannot actually work we only focused on the code generator and this generator fails anyway if we hit the "bad" component.
Now we have to change the settings of a component but this could hardly be explained for all, we have to know which component fails.
Come back if you know more please.
Anonymous
Not applicable
Author

Thank you very much!
Anonymous
Not applicable
Author

Hi hmendoza,

An internal error occurred during: "Generation Engine Initialization in progress...".
java.lang.NullPointerException

Did you resolve your issue? Any update for it? Can we consider this topic as resolved?
Best regards
Sabrina
_AnonymousUser
Specialist III
Specialist III

I am experiencing same problem and as new user do not have any components.
Here is the stack:
!ENTRY org.talend.platform.logging 2 0 2015-08-17 11:18:08.128
!MESSAGE 2015-08-17 11:18:08,128 WARN  org.talend.commons.exception.CommonExceptionHandler  - org.eclipse.emf.codegen.jet.JETException: InvocationTargetException
!STACK 0
org.talend.designer.codegen.exception.CodeGeneratorException: org.eclipse.emf.codegen.jet.JETException: InvocationTargetException
at org.talend.designer.codegen.CodeGenerator.instantiateJetProxy(Unknown Source)
at org.talend.designer.codegen.CodeGenerator.generateTypedComponentCode(Unknown Source)
at org.talend.designer.codegen.CodeGenerator.generateTypedComponentCode(Unknown Source)
at org.talend.designer.codegen.CodeGenerator.generateComponentCode(Unknown Source)
at org.talend.designer.core.ui.views.CodeView.refresh(Unknown Source)
at org.talend.designer.core.ui.views.CodeView.refresh(Unknown Source)
at org.talend.designer.core.ui.views.CodeView.access$2(Unknown Source)
at org.talend.designer.core.ui.views.CodeView$6.run(Unknown Source)
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:3515)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3164)
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(Unknown Source)
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(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
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.eclipse.emf.codegen.jet.JETException: InvocationTargetException
at org.eclipse.emf.codegen.jet.JETEmitter.generate(JETEmitter.java:475)
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(Unknown Source)
... 33 more
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.eclipse.emf.codegen.jet.JETEmitter.generate(JETEmitter.java:467)
... 36 more
Caused by: java.lang.Error: Unresolved compilation problems: 
The method replace(char, char) in the type String is not applicable for the arguments (String, String)
The method replace(char, char) in the type String is not applicable for the arguments (String, String)
The method replace(char, char) in the type String is not applicable for the arguments (String, String)
The method replace(char, char) in the type String is not applicable for the arguments (String, String)
The method replace(char, char) in the type String is not applicable for the arguments (String, String)
at org.talend.designer.codegen.translators.common.Component_part_footerJava.generate(Component_part_footerJava.java:354)
... 41 more
Anonymous
Not applicable
Author

More stack from beginning:
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=512m; support was removed in 8.0
ERROR: The internal web browser can not be access,the starting page won't be displayed
java.lang.Exception: The internal web browser can not be access,the starting page won't be displayed
at org.talend.rcp.intro.starting.StartingBrowser.createPartControl(Unknown Source)
at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:670)
at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:465)
at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:595)
at org.eclipse.ui.internal.PartPane.setVisible(PartPane.java:313)
at org.eclipse.ui.internal.presentations.PresentablePart.setVisible(PresentablePart.java:180)
at org.eclipse.ui.internal.presentations.util.PresentablePartFolder.select(PresentablePartFolder.java:270)
at org.eclipse.ui.internal.presentations.util.LeftToRightTabOrder.select(LeftToRightTabOrder.java:65)
at org.eclipse.ui.internal.presentations.util.TabbedStackPresentation.selectPart(TabbedStackPresentation.java:473)
at org.eclipse.ui.internal.PartStack.refreshPresentationSelection(PartStack.java:1254)
at org.eclipse.ui.internal.PartStack.setSelection(PartStack.java:1207)
at org.eclipse.ui.internal.PartStack.showPart(PartStack.java:1606)
at org.eclipse.ui.internal.PartStack.add(PartStack.java:497)
at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:103)
at org.eclipse.ui.internal.PartStack.add(PartStack.java:483)
at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:112)
at org.eclipse.ui.internal.EditorSashContainer.addEditor(EditorSashContainer.java:63)
at org.eclipse.ui.internal.EditorAreaHelper.addToLayout(EditorAreaHelper.java:225)
at org.eclipse.ui.internal.EditorAreaHelper.addEditor(EditorAreaHelper.java:213)
at org.eclipse.ui.internal.EditorManager.createEditorTab(EditorManager.java:778)
at org.eclipse.ui.internal.EditorManager.openEditorFromDescriptor(EditorManager.java:677)
at org.eclipse.ui.internal.EditorManager.openEditor(EditorManager.java:638)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2860)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2768)
at org.eclipse.ui.internal.WorkbenchPage.access$11(WorkbenchPage.java:2760)
at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:2711)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2707)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2691)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2674)
at org.talend.rcp.intro.ApplicationWorkbenchWindowAdvisor.showStarting(Unknown Source)
at org.talend.rcp.intro.ApplicationWorkbenchWindowAdvisor.postWindowOpen(Unknown Source)
at org.eclipse.ui.internal.WorkbenchWindow.fireWindowOpened(WorkbenchWindow.java:1332)
at org.eclipse.ui.internal.WorkbenchWindow.open(WorkbenchWindow.java:798)
at org.eclipse.ui.internal.Workbench$66.runWithException(Workbench.java:3660)
at org.eclipse.ui.internal.StartupThreading$StartupRunnable.run(StartupThreading.java:31)
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:3515)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3164)
at org.eclipse.ui.application.WorkbenchAdvisor.openWindows(WorkbenchAdvisor.java:803)
at org.eclipse.ui.internal.Workbench$31.runWithException(Workbench.java:1567)
at org.eclipse.ui.internal.StartupThreading$StartupRunnable.run(StartupThreading.java:31)
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:3515)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3164)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2548)
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(Unknown Source)
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(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
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)
Exception in thread "Code generation background thread" java.lang.Error: Unresolved compilation problems: 
The type java.util.Comparator cannot be resolved. It is indirectly referenced from required .class files
The method replace(char, char) in the type String is not applicable for the arguments (String, String)
The method contains(CharSequence) from the type String refers to the missing type CharSequence
at org.talend.designer.codegen.translators.common.Header_routeJava.<init>(Header_routeJava.java:97)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:422)
at java.lang.Class.newInstance(Class.java:442)
at org.eclipse.emf.codegen.jet.JETEmitter.setMethod(JETEmitter.java:291)
at org.talend.designer.codegen.config.TalendJetEmitter$TalendEclipseHelper.initialize(Unknown Source)
at org.talend.designer.codegen.config.TalendJetEmitter.initialize(Unknown Source)
at org.talend.designer.codegen.config.TalendJetEmitter.initialize(Unknown Source)
at org.talend.designer.codegen.model.CodeGeneratorEmittersPoolFactory.synchronizedComponent(Unknown Source)
at org.talend.designer.codegen.model.CodeGeneratorEmittersPoolFactory.initializeEmittersPool(Unknown Source)
at org.talend.designer.codegen.model.CodeGeneratorEmittersPoolFactory.access$7(Unknown Source)
at org.talend.designer.codegen.model.CodeGeneratorEmittersPoolFactory$JobRunnable.doRun(Unknown Source)
at org.talend.designer.codegen.model.CodeGeneratorEmittersPoolFactory$JobRunnable.run(Unknown Source)
Anonymous
Not applicable
Author

Hi cmendoza,
What's JDK version? Are you using Linux OS?  If so, have you already installed xulrunner package?
TalendHelpCenter:Installing the XULRunner package (for Linux users)
Best regards
Sabrina
mlatasa
Contributor II
Contributor II

I did all the steps indicated in this topic, but no success.
I am using Linux 64 and xulrunner is installed and referenced.
What could i possibly be missing (I use  6.0.1.20150908_1633 version)

!STACK 0
org.eclipse.emf.codegen.jet.JETException: Exception on Header_routeJava
        at org.talend.designer.codegen.config.TalendJetEmitter$TalendEclipseHelper.initialize(TalendJetEmitter.java:390)
        at org.talend.designer.codegen.config.TalendJetEmitter.initialize(TalendJetEmitter.java:151)
        at org.talend.designer.codegen.config.TalendJetEmitter.initialize(TalendJetEmitter.java:140)
        at org.talend.designer.codegen.model.CodeGeneratorEmittersPoolFactory.synchronizedComponent(CodeGeneratorEmittersPoolFactory.java:565)         at org.talend.designer.codegen.model.CodeGeneratorEmittersPoolFactory.init

To see the whole post, download it here
OriginalPost.pdf
Anonymous
Not applicable
Author

There are some file which cannot be read. I guess it has something to do with a wrong start by a different user.
Reset the file permissions with the chown command.
mlatasa
Contributor II
Contributor II

Having a closer look I found out that the log says cmdline is trying to find the path
/plugin/org.talend.designer.codegen_6.0.1.20150908_1633/resources/
and using the find command in linux I figured that the  org.talend.designer.codegen_6.0.1.20150908_1633   is under the plugins folder not plugin. So i made a copy of the plugins folder and named it plugin. 
From then on the  /plugin/org.talend.designer.codegen_6.0.1.20150908_1633/resources/ dissapeard but now it cant find the utils folder under resources  org.talend.designer.codegen_6.0.1.20150908_1633/resources/@{org.talend.designer.components.sparkprovider}/resources/utils/spark_listeners.javajet , it simply does not exist, it is not permission problem. Also another error one keeps coming up. 
It is the  org.talend.designer.camel.components.localprovider one. I try to do the same thing and search it in the filesystem but no folder is found in the enti

To see the whole post, download it here
OriginalPost.pdf