java.lang.NullPointerException with Talend Open Studio 4.2.0M2
Can not run imported perl projects. Receive java error. Occurs also when creating new projects but not always. Opening the project after first run also creates error. Sometimes code is erased.
Installed on Windows 7 32 bit system with Perl 5.10 (Active State) and Sun Java 1.6
The Error log follows:
!ENTRY org.eclipse.ui.workbench 4 2 2011-01-19 12:56:40.579
!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.ui.workbench".
!STACK 0
java.lang.NullPointerException
at org.talend.designer.core.ui.editor.nodes.Node.checkSchema(Unknown Source)
at org.talend.designer.core.ui.editor.nodes.Node.checkNode(Unknown Source)
at org.talend.designer.core.ui.editor.process.Process.checkProblems(Unknown Source)
at org.talend.designer.core.ui.editor.process.Process.checkProcess(Unknown Source)
at org.talend.designer.core.ui.views.problems.Problems.initCurrentProblems(Unknown Source) at org.talen
More Errors in log:
eclipse.buildId=unknown
java.version=1.6.0_23
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Command-line arguments: -os win32 -ws win32 -arch x86
Error
Wed Jan 26 15:03:05 CST 2011
2011-01-26 15:03:05,346 ERROR org.talend.designer.codegen.model.CodeGeneratorEmittersPoolFactory - Error during JetEmitter initalization Exception on Camel_footerPerl
org.eclipse.emf.codegen.jet.JETException: Exception on Camel_footerPerl
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)
Caused by: org.eclipse.emf.codegen.jet.JETException: /resources/camel_footer.perljet
at org.eclipse.emf.codegen.jet.JETCompiler.openStream(JETCompiler.java:759)
at org.eclipse.emf.codegen.jet.JETCompiler.<init>(JETCompiler.java:118)
at org.eclipse.emf.codegen.jet.JETEmitter$MyBaseJETCompiler.<init>(JETEmitter.java:316)
... 8 more
Caused by: java.io.FileNotFoundException: /resources/camel_footer.perljet
at org.eclipse.osgi.framework.internal.protocol.bundleentry.Handler.findBundleEntry(Handler.java:44)
at org.eclipse.osgi.framework.internal.core.BundleResourceHandler.openConnection(BundleResourceHandler.java:175)
at java.net.URL.openConnection(Unknown Source)
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(Unknown Source)
at org.eclipse.emf.codegen.jet.JETCompiler.openStream(JETCompiler.java:754)
... 10 more
I will send the exported job from the 3.2 version
Some of the variables I have been able to incorporate into the SQL statements but there are a few that use values from 2 different databases that I can not incorporate.
More information...
If the expression builder is used in a tMap the code does not save and will not show in the Code tab. This not appear to be specific to the espression type. I have tried a very simple static value and it does the same thing. Once the code is wiped in this manner it is not recoverable. Imported jobs with the condition are never saved and can not be viewed in the Code tab. However, each component's code can be viewed in the Code Viewer tab.
I have noticed that in building a new job, as soon as I add a tMap component and output and run, I will get a Unhandled event loop exception in the error log. The job will continue to run with expected results.
I suspect I am having a Java issue with Windows7 and TOS version 4.2.0M2. When I imported the demo Java project and try to open a job I get the same errors generating the code. The Error Log contains lines such as:
An internal error occured during: Generatioon code". (repeats 4x)
Failed to retrieve default libraries of C:\Users\meldred\AppData\Local\Temp\OraInstall 2010-11-02_02-29-39PM\mre\1.4.2 (lists this 4 times with different PM)
Problems occurred when invoking code from plug-in: "org.eclipse.ui.workbench".
Unhandled event loop exception (4x)
To an unexperienced eye such as mine, it looks like it is trying to find java libraries from the installs I performed in setting up the new box in November. I cleaned out the temp file of all files and folders except those in use. I closed TOS and started the project again. I exported the log so I could clear out the old and start a new log.
When the Generation Engine runs it still produces the java.lang.NullPointerException error and indicates the problems with the plug-in: "org.eclipse.ui.workbench". I have several java version on the box but only the TOS eclipse.
As stated before I am seeing this error occur with both version 4.1.2 and 4.2.0M2. Version 3.2. will not run on Windows7. I can not see the project line on the dialogue so am unable to use this version.
Help! This has become a show-stopper.
I discovered a typo in my PATH variable. There was a blank in the JAVA path as well as Program Files spelled as Program files. Once corrected and reboot performed, I was able to create new projects with tMap variables without experiencing the errors. However, imported projects still generate the error and lose their code. Once I get this fixed, I will be able to use Talend Open Source again...until then I am stuck using an older box which can run the older version.