how to read list return from method in dll using tDotNETRow

Five Stars

how to read list return from method in dll using tDotNETRow

I am trying to read list<String> return from method in dll ,but got error in transforming datatype. Stacktrace is

Exception in component tDotNETRow_1 (DllUtility)
java.lang.NullPointerException
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at org.talend.net.Object$Helper.convert(Object.java:141)
at org.talend.net.Object.invokeGeneric(Object.java:517)
at talend_poc.dllutility_0_1.DllUtility.tDotNETRow_1Process(DllUtility.java:721)
at talend_poc.dllutility_0_1.DllUtility.tDotNETInstantiate_1Process(DllUtility.java:403)
at talend_poc.dllutility_0_1.DllUtility.runJobInTOS(DllUtility.java:1096)
at talend_poc.dllutility_0_1.DllUtility.main(DllUtility.java:946)

 

Please let me know how we can display this list or export in file. 

Twelve Stars

Re: how to read list return from method in dll using tDotNETRow

for nullpointer run your job step by step to isolate error on java code.

Francois Denis

Tag as "solved" for others! Kudos to thanks!

Five Stars

Re: how to read list return from method in dll using tDotNETRow

Hi @fdenis

Have you tried tdotnetcomponent in which method returns list type. could not able to find any example like that. 

Thanks,

Abhinav

Twelve Stars

Re: how to read list return from method in dll using tDotNETRow

no I do not test this component but java.lang.NullPointerException is a typique java error when a variables are not initialised.
variable are sometime due to a non closed string.

Francois Denis

Tag as "solved" for others! Kudos to thanks!

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Best Practices for Using Context Variables with Talend – Part 2

Part 2 of a series on Context Variables

Blog

Best Practices for Using Context Variables with Talend – Part 1

Learn how to do cool things with Context Variables

Blog

Best Practices for Using Context Variables with Talend – Part 3

Read about some useful Context Variable ideas

Blog