Hitachi Vantara Pentaho Community Forums
Results 1 to 2 of 2

Thread: User Defined Java Class: data type of java.lang.Integer : possibly bug?

  1. #1
    Join Date
    Sep 2011
    Posts
    3

    Question User Defined Java Class: data type of java.lang.Integer : possibly bug?

    Good day,

    having a strange issue with User Defined Java Class. I can not set the new field as Integer.

    Even if I specify a resulting field as Integer, the next step complains that :

    jde_date Integer(10) : There was a data type error: the data type of java.lang.Integer object [112229] does not correspond to value meta [Integer]

    The code:

    r = createOutputRow(r, data.outputRowMeta.size());
    get(Fields.Out, "jde_date").setValue(r, 11111 );

    jde_date defined as Integer field.

    What do I miss or it is a bug?

  2. #2
    Join Date
    Nov 1999
    Posts
    9,729

    Default

    You need to pass a Long, so:

    get(Fields.Out, "jde_date").setValue(r, 11111L );

    or

    get(Fields.Out, "jde_date").setValue(r, Long.valueOf(11111) );

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.