• Index
  •  » Talend Open Studio for Data Integration » Component creation
  •  » Component compilation failed, where can I get detailed error message?

#1 2012-08-01 12:04:21

Koji Kawamura
Guest

Component compilation failed, where can I get detailed error message?

Hi everyone,

I am really new to Talend yet developing a custom component.
When I write a javajet file (tXXXX_main.javajet) and publish it from the Component Designer by clicking "Push Components to Palette" context menu, I get an error message pop up:
"'Generation Engine Initialization in progress...'has encountered a problem.
Compnents compile fail: components/ext/user/tXXXX_main.javajet"

After that, I went back to the Integration perspective and looked at a generated job source code, there was an error message in it.
"The main part of tXXXX compile with error, it can't generate any code, please check and correct it."

Is there any other information I can get like log files or something like that?

The cause of the problem I encountered was a simple lack of an import statement of a class.
Since I don't get any error indication while writing javajet code, it's hard to find out the cause of problems.
Would anyone tell me a better practice to build a custom component?

My developing environment info:
Talend Open Studio for Data Integration (5.1.1.r84309)
Windows 7

Thank you,
Koji Kawamura

#2 2012-08-03 10:09:39

ijokarumawak
New member
Registered: 2012-08-01
Posts: 3

Re: Component compilation failed, where can I get detailed error message?

I found that the JSP editor in Eclipse provides more useful feature than the default ComponentJetEditor.
It can detect syntax errors and provide auto completion of code within <% %> blocks.

To use JSP editor, I just needed to add the dependencies like org.talend.core*.jar to build path of a java project and change import statement syntax between JET and JSP like below:

<%@ jet
imports="
org.talend.core.model.process.INode
...
org.talend.core.model.metadata.types.JavaType
"
%>


<%@ page import="
org.talend.core.model.process.INode,
...
org.talend.core.model.metadata.types.JavaType
"
%>

After writing a JET template as a JSP file,
change its file extension from .jsp to .javajet
and change the import statement syntax into JET's way.


Thank you,
Koji Kawamura

Offline

  • Index
  •  » Talend Open Studio for Data Integration » Component creation
  •  » Component compilation failed, where can I get detailed error message?

Board footer

Powered by FluxBB