You are not logged in.

Unanswered posts



Important! This site has been replaced. All content here is read-only. Please visit our brand-new community at https://community.talend.com/. We look forward to hearing from you there!



#1 2017-03-09 21:15:06

kongunattu.arasan
Member
2 posts

kongunattu.arasan said:

[resolved] NullPointer Exception on Reject Flow

Hello,
I am creating a custom component with begin, main and end. 
Currently the component xml looks something like this with 2 connectors (main and Reject) and have the schema defined 

<CONNECTORS>
   <CONNECTOR CTYPE="FLOW" MAX_INPUT="1" MAX_OUTPUT="1" />
   <CONNECTOR NAME="REJECT" CTYPE="FLOW" MAX_INPUT="0" MAX_OUTPUT="1" LINE_STYLE="2" COLOR="FF0000" BASE_SCHEMA="FLOW" />
</CONNECTORS>

...

<PARAMETER NAME="SCHEMA" FIELD="SCHEMA_TYPE" REQUIRED="true" NUM_ROW="1">
	<TABLE READONLY="true">
		<COLUMN NAME="statusCode" TYPE="id_String" LENGTH="255"
			READONLY="false" CUSTOM="true" />
		<COLUMN NAME="statusMessage" TYPE="id_String" LENGTH="255"
			READONLY="false" CUSTOM="true" />
	</TABLE>
</PARAMETER>

<PARAMETER NAME="SCHEMA_REJECT" FIELD="SCHEMA_TYPE"
	REQUIRED="true" NUM_ROW="2" CONTEXT="REJECT">
	<DEFAULT />
</PARAMETER>

Javajet of all three are empty, no custom code at all except this

<% 
    CodeGeneratorArgument codeGenArgument = (CodeGeneratorArgument) argument;
    INode node = (INode)codeGenArgument.getArgument();
    String cid = node.getUniqueName();	
   
%>

My job looks like

Read JSON ---> Custom Component  ----> LogRow

When i connect the reject flow to the LogRow, i get nullpointer exception, but the main works fine. When i say works fine, no errors and since i dont have the values set it display empty values.

Why am i getting the exception only during reject? 

Any help is greatly appreciated.
Thanks

Offline

#2 2017-03-09 21:23:38

kongunattu.arasan
Member
2 posts

kongunattu.arasan said:

Re: [resolved] NullPointer Exception on Reject Flow

This post helped me

https:// www .talendforge.org /forum/viewtopic.php ?id=36151

Last edited by kongunattu.arasan (2017-03-09 21:24:21)

Offline

Board footer

Talend Contributor Agreement - Talend Website Privacy Policy