Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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:
What can I do?
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.