title: Assigning an integer value to an output row, pentaho
body: <p>I'm using kettle in a very basic way. What I want to do is read from csv file, do some kind of transformation in User Defined Java Class step and write output to a text file.</p>
  
  <p><a href="http://imageshack.com/a/img34/1669/vo18.png" rel="nofollow noreferrer">a picture http://imageshack.com/a/img34/1669/vo18.png</a></p>
  
  <p>When I run this I essentially get this error:</p>
  
  <pre><code>value Integer&lt;binary-string&gt; : There was a data type error: the data type of java.lang.Long object [100] does not correspond to value meta [Integer&lt;binary-string&gt;]
  </code></pre>
  
  <p>This is the line in UDJC step that seems to make the problem (field "value" is of Integer type):</p>
  
  <pre><code>get(Fields.Out, "value").setValue(out_row,new Long(100));
  </code></pre>
  
  <p>How can I solve this?</p>