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

One Star

[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? 
Seventeen Stars

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

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.
One Star

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

Thank you very much!
Moderator

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

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
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
One Star

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

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
One Star

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

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)
Moderator

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

Hicmendoza,
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
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
Highlighted
One Star

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

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.initializeEmittersPool(CodeGeneratorEmittersPoolFactory.java:528)
        at org.talend.designer.codegen.model.CodeGeneratorEmittersPoolFactory.access$6(CodeGeneratorEmittersPoolFactory.java:480)
        at org.talend.designer.codegen.model.CodeGeneratorEmittersPoolFactory$JobRunnable.doRun(CodeGeneratorEmittersPoolFactory.java:196)
        at org.talend.designer.codegen.model.CodeGeneratorEmittersPoolFactory$JobRunnable.run(CodeGeneratorEmittersPoolFactory.java:127)
Caused by: org.eclipse.emf.codegen.jet.JETException: The file 'platform:/plugin/org.talend.designer.camel.components.localprovider/components/cCXF/cCXF_uri.javajet' cannot be read in 'platform:/plugin/org.talend.designer.codegen_6.0.1.20150908_1633/resources/header_route.javajet' at line 1.049 column 5
        at org.eclipse.emf.codegen.jet.JETCompiler.handleDirective(JETCompiler.java:208)
        at org.talend.designer.codegen.config.TalendJETCompiler.handleDirective(TalendJETCompiler.java:89)
        at org.eclipse.emf.codegen.jet.JETParser$DelegatingListener.handleDirective(JETParser.java:127)
        at org.eclipse.emf.codegen.jet.JETParser$Directive.accept(JETParser.java:438)
        at org.eclipse.emf.codegen.jet.JETParser.parse(JETParser.java:506)
        at org.eclipse.emf.codegen.jet.JETCompiler.parse(JETCompiler.java:626)
        at org.eclipse.emf.codegen.jet.JETCompiler.parse(JETCompiler.java:619)
        at org.talend.designer.codegen.config.TalendJetEmitter$TalendEclipseHelper.initialize(TalendJetEmitter.java:271)
        ... 7 more
Caused by: org.eclipse.emf.codegen.jet.JETException: Unable to resolve plug-in "platform:/plugin/org.talend.designer.camel.components.localprovider/components/cCXF/cCXF_uri.javajet".
        at org.eclipse.emf.codegen.jet.JETCompiler.openStream(JETCompiler.java:753)
        at org.eclipse.emf.codegen.jet.JETCompiler.handleDirective(JETCompiler.java:179)
        ... 14 more
Caused by: java.io.IOException: Unable to resolve plug-in "platform:/plugin/org.talend.designer.camel.components.localprovider/components/cCXF/cCXF_uri.javajet".
        at org.eclipse.core.internal.runtime.PlatformURLPluginConnection.parse(PlatformURLPluginConnection.java:64)
        at org.eclipse.core.internal.runtime.PlatformURLPluginConnection.resolve(PlatformURLPluginConnection.java:75)
        at org.eclipse.core.internal.boot.PlatformURLHandler.openConnection(PlatformURLHandler.java:67)
        at org.eclipse.osgi.internal.url.URLStreamHandlerProxy.openConnection(URLStreamHandlerProxy.java:114)
        at java.net.URL.openConnection(URL.java:975)
        at java.net.URL.openStream(URL.java:1041)
        at org.eclipse.emf.codegen.jet.JETCompiler.openStream(JETCompiler.java:748)
        ... 15 more
!ENTRY org.talend.platform.logging 4 0 2016-01-21 17:50:04.397
!MESSAGE 2016-01-21 17:50:04,397 ERROR org.talend.designer.codegen.model.CodeGeneratorEmittersPoolFactory  - Error during JetEmitter initalization Exception on Spark_headerJava
!STACK 0
org.eclipse.emf.codegen.jet.JETException: Exception on Spark_headerJava
        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.initializeEmittersPool(CodeGeneratorEmittersPoolFactory.java:528)
        at org.talend.designer.codegen.model.CodeGeneratorEmittersPoolFactory.access$6(CodeGeneratorEmittersPoolFactory.java:480)
        at org.talend.designer.codegen.model.CodeGeneratorEmittersPoolFactory$JobRunnable.doRun(CodeGeneratorEmittersPoolFactory.java:196)
        at org.talend.designer.codegen.model.CodeGeneratorEmittersPoolFactory$JobRunnable.run(CodeGeneratorEmittersPoolFactory.java:127)
Caused by: org.eclipse.emf.codegen.jet.JETException: The file 'platform:/plugin/org.talend.designer.codegen_6.0.1.20150908_1633/resources/@{org.talend.designer.components.sparkprovider}/resources/utils/spark_listeners.javajet' cannot be read in 'platform:/plugin/org.talend.designer.codegen_6.0.1.20150908_1633/resources/spark_header.javajet' at line 353 column 7
        at org.eclipse.emf.codegen.jet.JETCompiler.handleDirective(JETCompiler.java:208)
        at org.talend.designer.codegen.config.TalendJETCompiler.handleDirective(TalendJETCompiler.java:89)
        at org.eclipse.emf.codegen.jet.JETParser$DelegatingListener.handleDirective(JETParser.java:127)
        at org.eclipse.emf.codegen.jet.JETParser$Directive.accept(JETParser.java:438)
        at org.eclipse.emf.codegen.jet.JETParser.parse(JETParser.java:506)
        at org.eclipse.emf.codegen.jet.JETCompiler.parse(JETCompiler.java:626)
        at org.eclipse.emf.codegen.jet.JETCompiler.parse(JETCompiler.java:619)
        at org.talend.designer.codegen.config.TalendJetEmitter$TalendEclipseHelper.initialize(TalendJetEmitter.java:271)
        ... 7 more
Caused by: org.eclipse.emf.codegen.jet.JETException: /resources/@{org.talend.designer.components.sparkprovider}/resources/utils/spark_listeners.javajet
        at org.eclipse.emf.codegen.jet.JETCompiler.openStream(JETCompiler.java:753)
        at org.eclipse.emf.codegen.jet.JETCompiler.handleDirective(JETCompiler.java:179)
        ... 14 more
Caused by: java.io.FileNotFoundException: /resources/@{org.talend.designer.components.sparkprovider}/resources/utils/spark_listeners.javajet
        at org.eclipse.osgi.storage.url.bundleentry.Handler.findBundleEntry(Handler.java:37)
        at org.eclipse.osgi.storage.url.BundleResourceHandler.openConnection(BundleResourceHandler.java:169)
        at java.net.URL.openConnection(URL.java:975)
        at org.eclipse.core.internal.boot.PlatformURLConnection.connect(PlatformURLConnection.java:110)
        at org.eclipse.core.internal.boot.PlatformURLConnection.connect(PlatformURLConnection.java:91)
        at org.eclipse.core.internal.boot.PlatformURLConnection.getInputStream(PlatformURLConnection.java:229)
        at java.net.URL.openStream(URL.java:1041)
        at org.eclipse.emf.codegen.jet.JETCompiler.openStream(JETCompiler.java:748)
        ... 15 more
!ENTRY org.talend.platform.logging 4 0 2016-01-21 17:50:04.403
!MESSAGE 2016-01-21 17:50:04,402 ERROR org.talend.designer.codegen.model.CodeGeneratorEmittersPoolFactory  - Error during JetEmitter initalization Exception on Spark_footerJava
!STACK 0
org.eclipse.emf.codegen.jet.JETException: Exception on Spark_footerJava
        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.initializeEmittersPool(CodeGeneratorEmittersPoolFactory.java:528)
        at org.talend.designer.codegen.model.CodeGeneratorEmittersPoolFactory.access$6(CodeGeneratorEmittersPoolFactory.java:480)
        at org.talend.designer.codegen.model.CodeGeneratorEmittersPoolFactory$JobRunnable.doRun(CodeGeneratorEmittersPoolFactory.java:196)
        at org.talend.designer.codegen.model.CodeGeneratorEmittersPoolFactory$JobRunnable.run(CodeGeneratorEmittersPoolFactory.java:127)
Caused by: org.eclipse.emf.codegen.jet.JETException: The file 'platform:/plugin/org.talend.designer.codegen_6.0.1.20150908_1633/resources/@{org.talend.designer.components.sparkprovider}/components/tCassandraConfiguration/CassandraConfiguration_Helper.javajet' cannot be read in 'platform:/plugin/org.talend.designer.codegen_6.0.1.20150908_1633/resources/spark_footer.javajet' at line 252 column 19
        at org.eclipse.emf.codegen.jet.JETCompiler.handleDirective(JETCompiler.java:208)
        at org.talend.designer.codegen.config.TalendJETCompiler.handleDirective(TalendJETCompiler.java:89)
        at org.eclipse.emf.codegen.jet.JETParser$DelegatingListener.handleDirective(JETParser.java:127)
        at org.eclipse.emf.codegen.jet.JETParser$Directive.accept(JETParser.java:438)
        at org.eclipse.emf.codegen.jet.JETParser.parse(JETParser.java:506)
        at org.eclipse.emf.codegen.jet.JETCompiler.parse(JETCompiler.java:626)
        at org.eclipse.emf.codegen.jet.JETCompiler.parse(JETCompiler.java:619)
        at org.talend.designer.codegen.config.TalendJetEmitter$TalendEclipseHelper.initialize(TalendJetEmitter.java:271)
        ... 7 more
Caused by: org.eclipse.emf.codegen.jet.JETException: /resources/@{org.talend.designer.components.sparkprovider}/components/tCassandraConfiguration/CassandraConfiguration_Helper.javajet
        at org.eclipse.emf.codegen.jet.JETCompiler.openStream(JETCompiler.java:753)
        at org.eclipse.emf.codegen.jet.JETCompiler.handleDirective(JETCompiler.java:179)
        ... 14 more
Caused by: java.io.FileNotFoundException: /resources/@{org.talend.designer.components.sparkprovider}/components/tCassandraConfiguration/CassandraConfiguration_Helper.javajet
        at org.eclipse.osgi.storage.url.bundleentry.Handler.findBundleEntry(Handler.java:37)
        at org.eclipse.osgi.storage.url.BundleResourceHandler.openConnection(BundleResourceHandler.java:169)
        at java.net.URL.openConnection(URL.java:975)
        at org.eclipse.core.internal.boot.PlatformURLConnection.connect(PlatformURLConnection.java:110)
        at org.eclipse.core.internal.boot.PlatformURLConnection.connect(PlatformURLConnection.java:91)
        at org.eclipse.core.internal.boot.PlatformURLConnection.getInputStream(PlatformURLConnection.java:229)
        at java.net.URL.openStream(URL.java:1041)
        at org.eclipse.emf.codegen.jet.JETCompiler.openStream(JETCompiler.java:748)
        ... 15 more
^C
jasper@ASISTORPPPROD:/opt/TalendTools-6.0.1/cmdline/studio/commandline-workspace/.metadata$ clear
jasper@ASISTORPPPROD:/opt/TalendTools-6.0.1/cmdline/studio/commandline-workspace/.metadata$ tail -f .log
Caused by: java.io.FileNotFoundException: /resources/@{org.talend.designer.components.sparkprovider}/components/tCassandraConfiguration/CassandraConfiguration_Helper.javajet
        at org.eclipse.osgi.storage.url.bundleentry.Handler.findBundleEntry(Handler.java:37)
        at org.eclipse.osgi.storage.url.BundleResourceHandler.openConnection(BundleResourceHandler.java:169)
        at java.net.URL.openConnection(URL.java:975)
        at org.eclipse.core.internal.boot.PlatformURLConnection.connect(PlatformURLConnection.java:110)
        at org.eclipse.core.internal.boot.PlatformURLConnection.connect(PlatformURLConnection.java:91)
        at org.eclipse.core.internal.boot.PlatformURLConnection.getInputStream(PlatformURLConnection.java:229)
        at java.net.URL.openStream(URL.java:1041)
        at org.eclipse.emf.codegen.jet.JETCompiler.openStream(JETCompiler.java:748)
        ... 15 more
!ENTRY org.talend.commandline 1 0 2016-01-21 17:59:15.525
!MESSAGE Initialized to successfully with user: mlatasa@grupoclece.com
!ENTRY org.talend.platform.logging 1 0 2016-01-21 17:59:21.618
!MESSAGE 2016-01-21 17:59:21,618 INFO  org.talend.core.repository.model.ProxyRepositoryFactory  - Latasa, Manuel logged on Test

!ENTRY org.talend.platform.logging 4 0 2016-01-21 17:59:23.052
!MESSAGE 2016-01-21 17:59:23,050 ERROR org.talend.designer.codegen.model.CodeGeneratorEmittersPoolFactory  - Error during JetEmitter initalization Exception on Header_routeJava
!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.initializeEmittersPool(CodeGeneratorEmittersPoolFactory.java:528)
        at org.talend.designer.codegen.model.CodeGeneratorEmittersPoolFactory.access$6(CodeGeneratorEmittersPoolFactory.java:480)
        at org.talend.designer.codegen.model.CodeGeneratorEmittersPoolFactory$JobRunnable.doRun(CodeGeneratorEmittersPoolFactory.java:196)
        at org.talend.designer.codegen.model.CodeGeneratorEmittersPoolFactory$JobRunnable.run(CodeGeneratorEmittersPoolFactory.java:127)
Caused by: org.eclipse.emf.codegen.jet.JETException: The file 'platform:/plugin/org.talend.designer.camel.components.localprovider/components/cCXF/cCXF_uri.javajet' cannot be read in 'platform:/plugin/org.talend.designer.codegen_6.0.1.20150908_1633/resources/header_route.javajet' at line 1.049 column 5
        at org.eclipse.emf.codegen.jet.JETCompiler.handleDirective(JETCompiler.java:208)
        at org.talend.designer.codegen.config.TalendJETCompiler.handleDirective(TalendJETCompiler.java:89)
        at org.eclipse.emf.codegen.jet.JETParser$DelegatingListener.handleDirective(JETParser.java:127)
        at org.eclipse.emf.codegen.jet.JETParser$Directive.accept(JETParser.java:438)
        at org.eclipse.emf.codegen.jet.JETParser.parse(JETParser.java:506)
        at org.eclipse.emf.codegen.jet.JETCompiler.parse(JETCompiler.java:626)
        at org.eclipse.emf.codegen.jet.JETCompiler.parse(JETCompiler.java:619)
        at org.talend.designer.codegen.config.TalendJetEmitter$TalendEclipseHelper.initialize(TalendJetEmitter.java:271)
        ... 7 more
Caused by: org.eclipse.emf.codegen.jet.JETException: Unable to resolve plug-in "platform:/plugin/org.talend.designer.camel.components.localprovider/components/cCXF/cCXF_uri.javajet".
        at org.eclipse.emf.codegen.jet.JETCompiler.openStream(JETCompiler.java:753)
        at org.eclipse.emf.codegen.jet.JETCompiler.handleDirective(JETCompiler.java:179)
        ... 14 more
Caused by: java.io.IOException: Unable to resolve plug-in "platform:/plugin/org.talend.designer.camel.components.localprovider/components/cCXF/cCXF_uri.javajet".
        at org.eclipse.core.internal.runtime.PlatformURLPluginConnection.parse(PlatformURLPluginConnection.java:64)
        at org.eclipse.core.internal.runtime.PlatformURLPluginConnection.resolve(PlatformURLPluginConnection.java:75)
        at org.eclipse.core.internal.boot.PlatformURLHandler.openConnection(PlatformURLHandler.java:67)
        at org.eclipse.osgi.internal.url.URLStreamHandlerProxy.openConnection(URLStreamHandlerProxy.java:114)
        at java.net.URL.openConnection(URL.java:975)
        at java.net.URL.openStream(URL.java:1041)
        at org.eclipse.emf.codegen.jet.JETCompiler.openStream(JETCompiler.java:748)
        ... 15 more
!ENTRY org.talend.platform.logging 4 0 2016-01-21 17:59:23.062
!MESSAGE 2016-01-21 17:59:23,061 ERROR org.talend.designer.codegen.model.CodeGeneratorEmittersPoolFactory  - Error during JetEmitter initalization Exception on Spark_headerJava
!STACK 0
org.eclipse.emf.codegen.jet.JETException: Exception on Spark_headerJava
        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.initializeEmittersPool(CodeGeneratorEmittersPoolFactory.java:528)
        at org.talend.designer.codegen.model.CodeGeneratorEmittersPoolFactory.access$6(CodeGeneratorEmittersPoolFactory.java:480)
        at org.talend.designer.codegen.model.CodeGeneratorEmittersPoolFactory$JobRunnable.doRun(CodeGeneratorEmittersPoolFactory.java:196)
        at org.talend.designer.codegen.model.CodeGeneratorEmittersPoolFactory$JobRunnable.run(CodeGeneratorEmittersPoolFactory.java:127)
Caused by: org.eclipse.emf.codegen.jet.JETException: The file 'platform:/plugin/org.talend.designer.codegen_6.0.1.20150908_1633/resources/@{org.talend.designer.components.sparkprovider}/resources/utils/spark_listeners.javajet' cannot be read in 'platform:/plugin/org.talend.designer.codegen_6.0.1.20150908_1633/resources/spark_header.javajet' at line 353 column 7
        at org.eclipse.emf.codegen.jet.JETCompiler.handleDirective(JETCompiler.java:208)
        at org.talend.designer.codegen.config.TalendJETCompiler.handleDirective(TalendJETCompiler.java:89)
        at org.eclipse.emf.codegen.jet.JETParser$DelegatingListener.handleDirective(JETParser.java:127)
        at org.eclipse.emf.codegen.jet.JETParser$Directive.accept(JETParser.java:438)
        at org.eclipse.emf.codegen.jet.JETParser.parse(JETParser.java:506)
        at org.eclipse.emf.codegen.jet.JETCompiler.parse(JETCompiler.java:626)
        at org.eclipse.emf.codegen.jet.JETCompiler.parse(JETCompiler.java:619)
        at org.talend.designer.codegen.config.TalendJetEmitter$TalendEclipseHelper.initialize(TalendJetEmitter.java:271)
        ... 7 more
Caused by: org.eclipse.emf.codegen.jet.JETException: /resources/@{org.talend.designer.components.sparkprovider}/resources/utils/spark_listeners.javajet
        at org.eclipse.emf.codegen.jet.JETCompiler.openStream(JETCompiler.java:753)
        at org.eclipse.emf.codegen.jet.JETCompiler.handleDirective(JETCompiler.java:179)
        ... 14 more
Caused by: java.io.FileNotFoundException: /resources/@{org.talend.designer.components.sparkprovider}/resources/utils/spark_listeners.javajet
        at org.eclipse.osgi.storage.url.bundleentry.Handler.findBundleEntry(Handler.java:37)
        at org.eclipse.osgi.storage.url.BundleResourceHandler.openConnection(BundleResourceHandler.java:169)
        at java.net.URL.openConnection(URL.java:975)
        at org.eclipse.core.internal.boot.PlatformURLConnection.connect(PlatformURLConnection.java:110)
        at org.eclipse.core.internal.boot.PlatformURLConnection.connect(PlatformURLConnection.java:91)
        at org.eclipse.core.internal.boot.PlatformURLConnection.getInputStream(PlatformURLConnection.java:229)
        at java.net.URL.openStream(URL.java:1041)
        at org.eclipse.emf.codegen.jet.JETCompiler.openStream(JETCompiler.java:748)
        ... 15 more
!ENTRY org.talend.platform.logging 4 0 2016-01-21 17:59:23.070
!MESSAGE 2016-01-21 17:59:23,069 ERROR org.talend.designer.codegen.model.CodeGeneratorEmittersPoolFactory  - Error during JetEmitter initalization Exception on Spark_footerJava
!STACK 0
org.eclipse.emf.codegen.jet.JETException: Exception on Spark_footerJava
        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.initializeEmittersPool(CodeGeneratorEmittersPoolFactory.java:528)
        at org.talend.designer.codegen.model.CodeGeneratorEmittersPoolFactory.access$6(CodeGeneratorEmittersPoolFactory.java:480)
        at org.talend.designer.codegen.model.CodeGeneratorEmittersPoolFactory$JobRunnable.doRun(CodeGeneratorEmittersPoolFactory.java:196)
        at org.talend.designer.codegen.model.CodeGeneratorEmittersPoolFactory$JobRunnable.run(CodeGeneratorEmittersPoolFactory.java:127)
Caused by: org.eclipse.emf.codegen.jet.JETException: The file 'platform:/plugin/org.talend.designer.codegen_6.0.1.20150908_1633/resources/@{org.talend.designer.components.sparkprovider}/components/tCassandraConfiguration/CassandraConfiguration_Helper.javajet' cannot be read in 'platform:/plugin/org.talend.designer.codegen_6.0.1.20150908_1633/resources/spark_footer.javajet' at line 252 column 19
        at org.eclipse.emf.codegen.jet.JETCompiler.handleDirective(JETCompiler.java:208)
        at org.talend.designer.codegen.config.TalendJETCompiler.handleDirective(TalendJETCompiler.java:89)
        at org.eclipse.emf.codegen.jet.JETParser$DelegatingListener.handleDirective(JETParser.java:127)
        at org.eclipse.emf.codegen.jet.JETParser$Directive.accept(JETParser.java:438)
        at org.eclipse.emf.codegen.jet.JETParser.parse(JETParser.java:506)
        at org.eclipse.emf.codegen.jet.JETCompiler.parse(JETCompiler.java:626)
        at org.eclipse.emf.codegen.jet.JETCompiler.parse(JETCompiler.java:619)
        at org.talend.designer.codegen.config.TalendJetEmitter$TalendEclipseHelper.initialize(TalendJetEmitter.java:271)
        ... 7 more
Caused by: org.eclipse.emf.codegen.jet.JETException: /resources/@{org.talend.designer.components.sparkprovider}/components/tCassandraConfiguration/CassandraConfiguration_Helper.javajet
        at org.eclipse.emf.codegen.jet.JETCompiler.openStream(JETCompiler.java:753)
        at org.eclipse.emf.codegen.jet.JETCompiler.handleDirective(JETCompiler.java:179)
        ... 14 more
Caused by: java.io.FileNotFoundException: /resources/@{org.talend.designer.components.sparkprovider}/components/tCassandraConfiguration/CassandraConfiguration_Helper.javajet
        at org.eclipse.osgi.storage.url.bundleentry.Handler.findBundleEntry(Handler.java:37)
        at org.eclipse.osgi.storage.url.BundleResourceHandler.openConnection(BundleResourceHandler.java:169)
        at java.net.URL.openConnection(URL.java:975)
        at org.eclipse.core.internal.boot.PlatformURLConnection.connect(PlatformURLConnection.java:110)
        at org.eclipse.core.internal.boot.PlatformURLConnection.connect(PlatformURLConnection.java:91)
        at org.eclipse.core.internal.boot.PlatformURLConnection.getInputStream(PlatformURLConnection.java:229)
        at java.net.URL.openStream(URL.java:1041)
        at org.eclipse.emf.codegen.jet.JETCompiler.openStream(JETCompiler.java:748)
        ... 15 more
Seventeen Stars

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

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.
One Star

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

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 entire linux filesystem. I did a clean setup and it is happening again.
Any clue of what is happening with this folder??
An attach the new log ouput.
!ENTRY org.talend.commandline 1 0 2016-01-25 11:19:34.012
!MESSAGE Initialized to successfully with user: mlatasa@grupoclece.com
!ENTRY org.talend.platform.logging 1 0 2016-01-25 11:19:36.215
!MESSAGE 2016-01-25 11:19:36,214 INFO  org.talend.core.repository.model.ProxyRepositoryFactory  - Latasa, Manuel logged on Test

!ENTRY org.talend.platform.logging 4 0 2016-01-25 11:19:38.804
!MESSAGE 2016-01-25 11:19:38,800 ERROR org.talend.designer.codegen.model.CodeGeneratorEmittersPoolFactory  - Error during JetEmitter initalization Exception on Header_routeJava
!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.initializeEmittersPool(CodeGeneratorEmittersPoolFactory.java:528)
        at org.talend.designer.codegen.model.CodeGeneratorEmittersPoolFactory.access$6(CodeGeneratorEmittersPoolFactory.java:480)
        at org.talend.designer.codegen.model.CodeGeneratorEmittersPoolFactory$JobRunnable.doRun(CodeGeneratorEmittersPoolFactory.java:196)
        at org.talend.designer.codegen.model.CodeGeneratorEmittersPoolFactory$JobRunnable.run(CodeGeneratorEmittersPoolFactory.java:127)
Caused by: org.eclipse.emf.codegen.jet.JETException: The file 'platform:/plugin/org.talend.designer.camel.components.localprovider/components/cCXF/cCXF_uri.javajet' cannot be read in 'platform:/plugin/org.talend.designer.codegen_6.0.1.20150908_1633/resources/header_route.javajet' at line 1.049 column 5
        at org.eclipse.emf.codegen.jet.JETCompiler.handleDirective(JETCompiler.java:208)
        at org.talend.designer.codegen.config.TalendJETCompiler.handleDirective(TalendJETCompiler.java:89)
        at org.eclipse.emf.codegen.jet.JETParser$DelegatingListener.handleDirective(JETParser.java:127)
        at org.eclipse.emf.codegen.jet.JETParser$Directive.accept(JETParser.java:438)
        at org.eclipse.emf.codegen.jet.JETParser.parse(JETParser.java:506)
        at org.eclipse.emf.codegen.jet.JETCompiler.parse(JETCompiler.java:626)
        at org.eclipse.emf.codegen.jet.JETCompiler.parse(JETCompiler.java:619)
        at org.talend.designer.codegen.config.TalendJetEmitter$TalendEclipseHelper.initialize(TalendJetEmitter.java:271)
        ... 7 more
Caused by: org.eclipse.emf.codegen.jet.JETException: Unable to resolve plug-in "platform:/plugin/org.talend.designer.camel.components.localprovider/components/cCXF/cCXF_uri.javajet".
        at org.eclipse.emf.codegen.jet.JETCompiler.openStream(JETCompiler.java:753)
        at org.eclipse.emf.codegen.jet.JETCompiler.handleDirective(JETCompiler.java:179)
        ... 14 more
Caused by: java.io.IOException: Unable to resolve plug-in "platform:/plugin/org.talend.designer.camel.components.localprovider/components/cCXF/cCXF_uri.javajet".
        at org.eclipse.core.internal.runtime.PlatformURLPluginConnection.parse(PlatformURLPluginConnection.java:64)
        at org.eclipse.core.internal.runtime.PlatformURLPluginConnection.resolve(PlatformURLPluginConnection.java:75)
        at org.eclipse.core.internal.boot.PlatformURLHandler.openConnection(PlatformURLHandler.java:67)
        at org.eclipse.osgi.internal.url.URLStreamHandlerProxy.openConnection(URLStreamHandlerProxy.java:114)
        at java.net.URL.openConnection(URL.java:975)
        at java.net.URL.openStream(URL.java:1041)
        at org.eclipse.emf.codegen.jet.JETCompiler.openStream(JETCompiler.java:748)
        ... 15 more
!ENTRY org.talend.platform.logging 4 0 2016-01-25 11:19:38.815
!MESSAGE 2016-01-25 11:19:38,814 ERROR org.talend.designer.codegen.model.CodeGeneratorEmittersPoolFactory  - Error during JetEmitter initalization Exception on Spark_headerJava
!STACK 0
org.eclipse.emf.codegen.jet.JETException: Exception on Spark_headerJava
        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.initializeEmittersPool(CodeGeneratorEmittersPoolFactory.java:528)
        at org.talend.designer.codegen.model.CodeGeneratorEmittersPoolFactory.access$6(CodeGeneratorEmittersPoolFactory.java:480)
        at org.talend.designer.codegen.model.CodeGeneratorEmittersPoolFactory$JobRunnable.doRun(CodeGeneratorEmittersPoolFactory.java:196)
        at org.talend.designer.codegen.model.CodeGeneratorEmittersPoolFactory$JobRunnable.run(CodeGeneratorEmittersPoolFactory.java:127)
Caused by: org.eclipse.emf.codegen.jet.JETException: The file 'platform:/plugin/org.talend.designer.codegen_6.0.1.20150908_1633/resources/@{org.talend.designer.components.sparkprovider}/resources/utils/spark_listeners.javajet' cannot be read in 'platform:/plugin/org.talend.designer.codegen_6.0.1.20150908_1633/resources/spark_header.javajet' at line 353 column 7
        at org.eclipse.emf.codegen.jet.JETCompiler.handleDirective(JETCompiler.java:208)
        at org.talend.designer.codegen.config.TalendJETCompiler.handleDirective(TalendJETCompiler.java:89)
        at org.eclipse.emf.codegen.jet.JETParser$DelegatingListener.handleDirective(JETParser.java:127)
        at org.eclipse.emf.codegen.jet.JETParser$Directive.accept(JETParser.java:438)
        at org.eclipse.emf.codegen.jet.JETParser.parse(JETParser.java:506)
        at org.eclipse.emf.codegen.jet.JETCompiler.parse(JETCompiler.java:626)
        at org.eclipse.emf.codegen.jet.JETCompiler.parse(JETCompiler.java:619)
        at org.talend.designer.codegen.config.TalendJetEmitter$TalendEclipseHelper.initialize(TalendJetEmitter.java:271)
        ... 7 more
Caused by: org.eclipse.emf.codegen.jet.JETException: /resources/@{org.talend.designer.components.sparkprovider}/resources/utils/spark_listeners.javajet
        at org.eclipse.emf.codegen.jet.JETCompiler.openStream(JETCompiler.java:753)
        at org.eclipse.emf.codegen.jet.JETCompiler.handleDirective(JETCompiler.java:179)
        ... 14 more
Caused by: java.io.FileNotFoundException: /resources/@{org.talend.designer.components.sparkprovider}/resources/utils/spark_listeners.javajet
        at org.eclipse.osgi.storage.url.bundleentry.Handler.findBundleEntry(Handler.java:37)
        at org.eclipse.osgi.storage.url.BundleResourceHandler.openConnection(BundleResourceHandler.java:169)
        at java.net.URL.openConnection(URL.java:975)
        at org.eclipse.core.internal.boot.PlatformURLConnection.connect(PlatformURLConnection.java:110)
        at org.eclipse.core.internal.boot.PlatformURLConnection.connect(PlatformURLConnection.java:91)
        at org.eclipse.core.internal.boot.PlatformURLConnection.getInputStream(PlatformURLConnection.java:229)
        at java.net.URL.openStream(URL.java:1041)
        at org.eclipse.emf.codegen.jet.JETCompiler.openStream(JETCompiler.java:748)
        ... 15 more
!ENTRY org.talend.platform.logging 4 0 2016-01-25 11:19:38.824
!MESSAGE 2016-01-25 11:19:38,823 ERROR org.talend.designer.codegen.model.CodeGeneratorEmittersPoolFactory  - Error during JetEmitter initalization Exception on Spark_footerJava
!STACK 0
org.eclipse.emf.codegen.jet.JETException: Exception on Spark_footerJava
        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.initializeEmittersPool(CodeGeneratorEmittersPoolFactory.java:528)
        at org.talend.designer.codegen.model.CodeGeneratorEmittersPoolFactory.access$6(CodeGeneratorEmittersPoolFactory.java:480)
        at org.talend.designer.codegen.model.CodeGeneratorEmittersPoolFactory$JobRunnable.doRun(CodeGeneratorEmittersPoolFactory.java:196)
        at org.talend.designer.codegen.model.CodeGeneratorEmittersPoolFactory$JobRunnable.run(CodeGeneratorEmittersPoolFactory.java:127)
Caused by: org.eclipse.emf.codegen.jet.JETException: The file 'platform:/plugin/org.talend.designer.codegen_6.0.1.20150908_1633/resources/@{org.talend.designer.components.sparkprovider}/components/tCassandraConfiguration/CassandraConfiguration_Helper.javajet' cannot be read in 'platform:/plugin/org.talend.designer.codegen_6.0.1.20150908_1633/resources/spark_footer.javajet' at line 252 column 19
        at org.eclipse.emf.codegen.jet.JETCompiler.handleDirective(JETCompiler.java:208)
        at org.talend.designer.codegen.config.TalendJETCompiler.handleDirective(TalendJETCompiler.java:89)
        at org.eclipse.emf.codegen.jet.JETParser$DelegatingListener.handleDirective(JETParser.java:127)
        at org.eclipse.emf.codegen.jet.JETParser$Directive.accept(JETParser.java:438)
        at org.eclipse.emf.codegen.jet.JETParser.parse(JETParser.java:506)
        at org.eclipse.emf.codegen.jet.JETCompiler.parse(JETCompiler.java:626)
        at org.eclipse.emf.codegen.jet.JETCompiler.parse(JETCompiler.java:619)
        at org.talend.designer.codegen.config.TalendJetEmitter$TalendEclipseHelper.initialize(TalendJetEmitter.java:271)
        ... 7 more
Caused by: org.eclipse.emf.codegen.jet.JETException: /resources/@{org.talend.designer.components.sparkprovider}/components/tCassandraConfiguration/CassandraConfiguration_Helper.javajet
        at org.eclipse.emf.codegen.jet.JETCompiler.openStream(JETCompiler.java:753)
        at org.eclipse.emf.codegen.jet.JETCompiler.handleDirective(JETCompiler.java:179)
        ... 14 more
Caused by: java.io.FileNotFoundException: /resources/@{org.talend.designer.components.sparkprovider}/components/tCassandraConfiguration/CassandraConfiguration_Helper.javajet
        at org.eclipse.osgi.storage.url.bundleentry.Handler.findBundleEntry(Handler.java:37)
        at org.eclipse.osgi.storage.url.BundleResourceHandler.openConnection(BundleResourceHandler.java:169)
        at java.net.URL.openConnection(URL.java:975)
        at org.eclipse.core.internal.boot.PlatformURLConnection.connect(PlatformURLConnection.java:110)
        at org.eclipse.core.internal.boot.PlatformURLConnection.connect(PlatformURLConnection.java:91)
        at org.eclipse.core.internal.boot.PlatformURLConnection.getInputStream(PlatformURLConnection.java:229)
        at java.net.URL.openStream(URL.java:1041)
        at org.eclipse.emf.codegen.jet.JETCompiler.openStream(JETCompiler.java:748)
        ... 15 more
One Star

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

Solved. Although same error keep arrising in the .log file, now the job gets generated.
This is what solved it.
In 6.0.1, even after :

stop your Studios / commandline
navigate to Talend-Studio-20141207_1530-V5.6.1/plugins/org.talend.designer.codegen_5.6.1.20141207_1530/resources/
delete the file named header_route.javajet
delete the commandline-workspace folder (le workspace du commandline )
re-start your commandline and / or Studios
The file gets recreated , 
the error still appears in the .log.
The generation seems to be ok

from 
Moderator

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

Hi,
Thanks for your feedback. Feel free to let us know if your issue repro again.
Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.