Hitachi Vantara Pentaho Community Forums
Results 1 to 3 of 3

Thread: Error Sucks !! org.pentaho.di.trans.steps.userdefinedjavaclass.FieldHelper.setValue(F

  1. #1
    Join Date
    Mar 2013
    Posts
    66

    Default Error Sucks !! org.pentaho.di.trans.steps.userdefinedjavaclass.FieldHelper.setValue(F

    Hi,

    I am getting the following exception when setting the output fields in UDJC.

    2014/04/10 20:15:07 - Get SDP Range Value.0 - ERROR (version 4.4.0-stable, build 17588 from 2012-11-21 16.02.21 by buildguy) : 11
    2014/04/10 20:15:07 - Get SDP Range Value.0 - ERROR (version 4.4.0-stable, build 17588 from 2012-11-21 16.02.21 by buildguy) : java.lang.ArrayIndexOutOfBoundsException: 11
    2014/04/10 20:15:07 - Get SDP Range Value.0 - ERROR (version 4.4.0-stable, build 17588 from 2012-11-21 16.02.21 by buildguy) : at org.pentaho.di.trans.steps.userdefinedjavaclass.FieldHelper.setValue(FieldHelper.java:92)
    2014/04/10 20:15:07 - Get SDP Range Value.0 - ERROR (version 4.4.0-stable, build 17588 from 2012-11-21 16.02.21 by buildguy) : at Processor.processRow(Processor.java:75)
    2014/04/10 20:15:07 - Get SDP Range Value.0 - ERROR (version 4.4.0-stable, build 17588 from 2012-11-21 16.02.21 by buildguy) : at org.pentaho.di.trans.steps.userdefinedjavaclass.UserDefinedJavaClass.processRow(UserDefinedJavaClass.java:1181)
    2014/04/10 20:15:07 - Get SDP Range Value.0 - ERROR (version 4.4.0-stable, build 17588 from 2012-11-21 16.02.21 by buildguy) : at org.pentaho.di.trans.step.RunThread.run(RunThread.java:50)
    2014/04/10 20:15:07 - Get SDP Range Value.0 - ERROR (version 4.4.0-stable, build 17588 from 2012-11-21 16.02.21 by buildguy) : at java.lang.Thread.run(Thread.java:662)


    Please have a look in the image.

    If I remove the below line from UDJC, it works,

    get(Fields.Out, "DA").setValue(r, "1");

    Please advice.

    Name:  udjc_image.jpg
Views: 250
Size:  38.7 KB
    Last edited by harikumar_23; 04-10-2014 at 11:18 AM.

  2. #2
    Join Date
    Apr 2014
    Posts
    6

    Default

    I got the same thing, did you find a way to resolve that ?

  3. #3
    Join Date
    Jun 2012
    Posts
    5,534

    Default

    OP tries to access output field #11 in the input field array (r) which has only 10 fields.
    The size of r is adjusted by createOutputRow() when the party is already over.
    So long, and thanks for all the fish.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Privacy Policy | Legal Notices | Safe Harbor Privacy Policy

Copyright © 2005 - 2019 Hitachi Vantara Corporation. All Rights Reserved.