Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Discover how organizations are unlocking new revenue streams: Watch here
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Problem refreshing a component in palette

Hello everybody,
Here is my problem :
1 I create a component in the component designer, I write some code, and I push into the palette. all right, it appears.
2 I use in a Job, all right, it works fine.
3 I modify my component in the designer, push again, all right, still in the palette
4 I run again my Job using this component, and, oh... doesn't take my changes...
5 I check the code generated by the job, indeed, no changes
6 I check the Java Code generated by the palette (Ctrl + Shift + R), it's ok, the code seems to be generated with my changes.
7 I close my job, reopen it, no modifications of my component, I close TOS and reopen TOS and my job, no changes too.
Any idea ?...
Thanks for your help !
Labels (3)
13 Replies
Anonymous
Not applicable
Author

Good evening,
sorry for revmping an old thread but...i've exactly the same problem!
every time i push a component into the palette, the begin javajet becomes empty!
i've deleted all relevant files in JETemitters, both src and runtime...
_AnonymousUser
Specialist III
Specialist III

I'm having the problem too on 5.2.0r86684. Anyone got a solution?
Anonymous
Not applicable
Author

up
still having the same issue about unwanted begin file truncation
anyone got a solution to this issue?
Anonymous
Not applicable
Author

Same problem here with 5.5 - I created and used a component with only the main part. Then I added begin-file. No matter I publish, restart, delete job, create new job - the begin-file does not generate any code. I'm pretty sure the code of the begin file is no problem:
<%@ jet 
imports="
org.talend.core.model.process.INode 
    org.talend.core.model.process.ElementParameterParser
    org.talend.designer.codegen.config.CodeGeneratorArgument 
org.talend.core.model.metadata.IMetadataTable 
org.talend.core.model.metadata.IMetadataColumn
org.talend.core.model.metadata.types.JavaType
org.talend.core.model.process.IConnection
org.talend.core.model.process.IConnectionCategory
org.talend.core.model.metadata.types.JavaTypesManager
org.talend.core.model.utils.NodeUtil
java.util.List
java.util.Map
"
%>
<% 
    CodeGeneratorArgument codeGenArgument = (CodeGeneratorArgument) argument;
    INode node = (INode)codeGenArgument.getArgument();
    String cid = node.getUniqueName();
    String level = ElementParameterParser.getValue(node,"__LEVEL__");
%>
org.apache.log4j.Level level_<%=cid%> = org.apache.log4j.Level.INFO;
if(<%=level%>.equals("Info")) {
level_<%=cid%> = org.apache.log4j.Level.INFO;
} else if(<%=level%>.equals("Warn")) {
level_<%=cid%> = org.apache.log4j.Level.WARN;
} else if(<%=level%>.equals("Error")) {
level_<%=cid%> = org.apache.log4j.Level.ERROR;
} else if(<%=level%>.equals("Debug")) {
level_<%=cid%> = org.apache.log4j.Level.DEBUG;
}