tAddLocationFromIP exception

Five Stars

tAddLocationFromIP exception

I am using tAddLocationFromIP and loading is going along smoothly until I get a record with IP="190.97.116.139".
Then I get following exception:
Exception in component tAddLocationFromIP_1
java.lang.ArrayIndexOutOfBoundsException: 253
at com.maxmind.geoip.LookupService.getCountry(LookupService.java:436)
at com.maxmind.geoip.LookupService.getCountry(LookupService.java:408)
I tried downloading the latest GeoIp database and that doesn't fix the problem. Attached image of the job showing the point where the error occurred.
Community Manager

Re: tAddLocationFromIP exception

Hi
It seems like a bug of geoip library, see this jira issue:
https://jira.talendforge.org/browse/TDI-25906
The geoip.jar file under <Talend Studio install dir>\plugins\org.talend.designer.components.localprovider_x.x.x.rxxxxxx\components\tAddLocationFromIP directory need to be updated.
Shong
----------------------------------------------------------
Talend | Data Agility for Modern Business

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

Migrate Data from one Database to another with one Job using the Dynamic Schema

Find out how to migrate from one database to another using the Dynamic schema

Blog