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

Announcements
Talend Cloud AWS EU Scheduled Outage: Starting Tues 26 May 21:00 CEST with expected completion Wed 27 May 01:00 CEST
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

two custom components cannot run one job

Hello,

 

I have develop two custom components (name: Producer and Register) in the same family (name: IBIT) and category (big data)  with version component-api 1.1.4 and talend-component-maven-plugin 1.1.5. The two components run single in the job but not together. I get the error:

 

Exception in component IBITProducer_1 (test)
java.lang.IllegalArgumentException: Can't find IBIT#Producer
at project.test_0_1.test$1tWaitForFile_1Thread.lambda$0(test.java:1277)
at java.util.Optional.orElseThrow(Optional.java:290)

 

My job look like:

 

0683p000009M2Gq.png

 

What can I do?

Labels (4)
13 Replies
Anonymous
Not applicable
Author

Hi rmannibucau,
I am new in custom component creation. Can you tell me ,how to store parameters into string variables directly.it possible means tell me ,how can approach this scenario.
Thanks,
Venkat
Anonymous
Not applicable
Author

You just need to edit the configuration through a Talend application (Talend Open Source Studio for instance).
If you want to write a test you get the doc generated in target/classes/TALEND-INF and it gives you the keys to use.
Anonymous
Not applicable
Author

Hi Romain,

 

@DynamicValues("valuesProvider")
public Values action()
{
ArrayList<Item> a10=new ArrayList<>();



VtigercrmComponentsDataStore data= new VtigercrmComponentsDataStore();

WSClient client = new WSClient(data.getVtigerCRM_URL());
boolean result = client.doLogin(data.getUsername(),data.getAccessKey());

if(result == false)
{
System.out.println("Login failed!");
System.out.println(client.lastError());
return new Values(a10);
}
else {


Map types = client.doListTypes();
Iterator iterator = types.keySet().iterator();
while(iterator.hasNext()) {
Object key = iterator.next();
Map moduleInfo = (Map) types.get(key);
String s1= moduleInfo.get("name").toString();
a10.add(new Item(s1,s1));

}
}
return new Values(a10);
}

  I have run this method using three parameters and its give dynamic module list for module parameter . but i am facing null point Exception as like below 

An internal error occurred during: "Retrieve values".
MESSAGE
status: 520
Content-Type: application/json
Date: Fri, 08 Mar 2019 08:54:38 GMT

{"code":"ACTION_ERROR","description":"Action execution failed with: unexpected null"}^@

please help me out this scenario.

thanks,

venkat. 

Anonymous
Not applicable
Author

Issue is you are creating yourself a datadtore without initialising the properties so you get a null error which is normal.

Dynamic values are for environment related completion and not datastore/configuration related completion. Please refer to suggestions action type part in the doc, it is what you are trying to do.