[resolved] NullPointerException using tExtractRegexFields

One Star

[resolved] NullPointerException using tExtractRegexFields

using a simple Regex String:
"\\w+-(\\d{8}).*\\.csv"
Throws a null pointer exception when having a match:
Exception in component tExtractRegexFields_2
java.lang.NullPointerException
at java.util.regex.Matcher.getTextLength(Unknown Source)
at java.util.regex.Matcher.reset(Unknown Source)
at java.util.regex.Matcher.<init>(Unknown Source)
at java.util.regex.Pattern.matcher(Unknown Source)
at
Any Suggestions would be helpful.

Accepted Solutions
Ten Stars

Re: [resolved] NullPointerException using tExtractRegexFields

This happens when you attempt to perform an operation on a null value.  Check your variables and incoming strings for null. 

All Replies
Six Stars

Re: [resolved] NullPointerException using tExtractRegexFields

Provide source data and job description
One Star

Re: [resolved] NullPointerException using tExtractRegexFields

While collecting source data and job description the problem got solved. The incoming data was NULL.
One Star

Re: [resolved] NullPointerException using tExtractRegexFields

Hi,
I got the below error message in Talend
Exception in component tJava_1
java.lang.NullPointerException
at java.util.regex.Matcher.getTextLength(Unknown Source)
at java.util.regex.Matcher.reset(Unknown Source)
at java.util.regex.Matcher.<init>(Unknown Source)
at java.util.regex.Pattern.matcher(Unknown Source)
Please help me to get rid out of the problems and make my job to run as expected.
Thanks,
Vanitha
Ten Stars

Re: [resolved] NullPointerException using tExtractRegexFields

This happens when you attempt to perform an operation on a null value.  Check your variables and incoming strings for null. 

Calling Talend Open Studio Users

The first 100 community members completing the Open Studio survey win a $10 gift voucher.

Start the survey

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 4

Pick up some tips and tricks with Context Variables

Blog

How Media Organizations Achieved Success with Data Integration

Learn how media organizations have achieved success with Data Integration

Read

Why Companies Move to the Cloud: 7 Success Stories

Learn how and why companies are moving to the Cloud

Read Now