<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic tJasperoutput in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tJasperoutput/m-p/2202222#M3997</link>
    <description>Hi,
&lt;BR /&gt;I am using tJasperoutput component in Talend Integration Suit 5.0 to generate report. If all the filelds of the Report are of string type, then I am getting perfect output but if the jrxml has an integer or float values then the tJasperoutput step throws error. The schema of input component and tJasperoutput component is same.
&lt;BR /&gt;The following is the error msg I am getting:-
&lt;BR /&gt;Starting job Report3 at 16:58 30/07/2012.
&lt;BR /&gt; connecting to socket on port 3724
&lt;BR /&gt; connected
&lt;BR /&gt;Exception in component tJasperOutput_1
&lt;BR /&gt;net.sf.jasperreports.engine.JRException: Errors were encountered when compiling report expressions class file:
&lt;BR /&gt;1. Cannot cast from Integer to String
&lt;BR /&gt; value = (java.lang.String)(((java.lang.Integer)field_emp_id.getValue())); //$JR_EXPR_ID=11$
&lt;BR /&gt; &amp;lt;--------------------------------------------------------------&amp;gt;
&lt;BR /&gt;2. Cannot cast from Float to String
&lt;BR /&gt; value = (java.lang.String)(((java.lang.Float)field_sales.getValue())); //$JR_EXPR_ID=14$
&lt;BR /&gt; &amp;lt;-----------------------------------------------------------&amp;gt;
&lt;BR /&gt;3. Cannot cast from Integer to String
&lt;BR /&gt; value = (java.lang.String)(((java.lang.Integer)field_emp_id.getOldValue())); //$JR_EXPR_ID=11$
&lt;BR /&gt; &amp;lt;-----------------------------------------------------------------&amp;gt;
&lt;BR /&gt;4. Cannot cast from Float to String
&lt;BR /&gt; value = (java.lang.String)(((java.lang.Float)field_sales.getOldValue())); //$JR_EXPR_ID=14$
&lt;BR /&gt; &amp;lt;--------------------------------------------------------------&amp;gt;
&lt;BR /&gt;5. Cannot cast from Integer to String
&lt;BR /&gt; value = (java.lang.String)(((java.lang.Integer)field_emp_id.getValue())); //$JR_EXPR_ID=11$
&lt;BR /&gt; &amp;lt;--------------------------------------------------------------&amp;gt;
&lt;BR /&gt;6. Cannot cast from Float to String
&lt;BR /&gt; value = (java.lang.String)(((java.lang.Float)field_sales.getValue())); //$JR_EXPR_ID=14$
&lt;BR /&gt; &amp;lt;-----------------------------------------------------------&amp;gt;
&lt;BR /&gt;6 errors
&lt;BR /&gt; at net.sf.jasperreports.engine.design.JRAbstractCompiler.compileReport(JRAbstractCompiler.java:191)
&lt;BR /&gt; at net.sf.jasperreports.engine.JasperCompileManager.compileReport(JasperCompileManager.java:215)
&lt;BR /&gt; at net.sf.jasperreports.engine.JasperCompileManager.compileReportToFile(JasperCompileManager.java:131)
&lt;BR /&gt; at client.report3_0_1.Report3.tFileInputDelimited_1Process(Report3.java:747)
&lt;BR /&gt; at client.report3_0_1.Report3.runJobInTOS(Report3.java:973)
&lt;BR /&gt; at client.report3_0_1.Report3.main(Report3.java:841)
&lt;BR /&gt; disconnected
&lt;BR /&gt;Job Report3 ended at 16:58 30/07/2012. 
&lt;BR /&gt;
&lt;BR /&gt;Thanks</description>
    <pubDate>Mon, 30 Jul 2012 12:31:50 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2012-07-30T12:31:50Z</dc:date>
    <item>
      <title>tJasperoutput</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tJasperoutput/m-p/2202222#M3997</link>
      <description>Hi,
&lt;BR /&gt;I am using tJasperoutput component in Talend Integration Suit 5.0 to generate report. If all the filelds of the Report are of string type, then I am getting perfect output but if the jrxml has an integer or float values then the tJasperoutput step throws error. The schema of input component and tJasperoutput component is same.
&lt;BR /&gt;The following is the error msg I am getting:-
&lt;BR /&gt;Starting job Report3 at 16:58 30/07/2012.
&lt;BR /&gt; connecting to socket on port 3724
&lt;BR /&gt; connected
&lt;BR /&gt;Exception in component tJasperOutput_1
&lt;BR /&gt;net.sf.jasperreports.engine.JRException: Errors were encountered when compiling report expressions class file:
&lt;BR /&gt;1. Cannot cast from Integer to String
&lt;BR /&gt; value = (java.lang.String)(((java.lang.Integer)field_emp_id.getValue())); //$JR_EXPR_ID=11$
&lt;BR /&gt; &amp;lt;--------------------------------------------------------------&amp;gt;
&lt;BR /&gt;2. Cannot cast from Float to String
&lt;BR /&gt; value = (java.lang.String)(((java.lang.Float)field_sales.getValue())); //$JR_EXPR_ID=14$
&lt;BR /&gt; &amp;lt;-----------------------------------------------------------&amp;gt;
&lt;BR /&gt;3. Cannot cast from Integer to String
&lt;BR /&gt; value = (java.lang.String)(((java.lang.Integer)field_emp_id.getOldValue())); //$JR_EXPR_ID=11$
&lt;BR /&gt; &amp;lt;-----------------------------------------------------------------&amp;gt;
&lt;BR /&gt;4. Cannot cast from Float to String
&lt;BR /&gt; value = (java.lang.String)(((java.lang.Float)field_sales.getOldValue())); //$JR_EXPR_ID=14$
&lt;BR /&gt; &amp;lt;--------------------------------------------------------------&amp;gt;
&lt;BR /&gt;5. Cannot cast from Integer to String
&lt;BR /&gt; value = (java.lang.String)(((java.lang.Integer)field_emp_id.getValue())); //$JR_EXPR_ID=11$
&lt;BR /&gt; &amp;lt;--------------------------------------------------------------&amp;gt;
&lt;BR /&gt;6. Cannot cast from Float to String
&lt;BR /&gt; value = (java.lang.String)(((java.lang.Float)field_sales.getValue())); //$JR_EXPR_ID=14$
&lt;BR /&gt; &amp;lt;-----------------------------------------------------------&amp;gt;
&lt;BR /&gt;6 errors
&lt;BR /&gt; at net.sf.jasperreports.engine.design.JRAbstractCompiler.compileReport(JRAbstractCompiler.java:191)
&lt;BR /&gt; at net.sf.jasperreports.engine.JasperCompileManager.compileReport(JasperCompileManager.java:215)
&lt;BR /&gt; at net.sf.jasperreports.engine.JasperCompileManager.compileReportToFile(JasperCompileManager.java:131)
&lt;BR /&gt; at client.report3_0_1.Report3.tFileInputDelimited_1Process(Report3.java:747)
&lt;BR /&gt; at client.report3_0_1.Report3.runJobInTOS(Report3.java:973)
&lt;BR /&gt; at client.report3_0_1.Report3.main(Report3.java:841)
&lt;BR /&gt; disconnected
&lt;BR /&gt;Job Report3 ended at 16:58 30/07/2012. 
&lt;BR /&gt;
&lt;BR /&gt;Thanks</description>
      <pubDate>Mon, 30 Jul 2012 12:31:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tJasperoutput/m-p/2202222#M3997</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-07-30T12:31:50Z</dc:date>
    </item>
    <item>
      <title>Re: tJasperoutput</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tJasperoutput/m-p/2202223#M3998</link>
      <description>Hi&lt;BR /&gt;The errors indicate that there are data type convertion issues.&lt;BR /&gt;Please make sure the data type of columns in the schema of the tJasperOutput are the same with the predefined jrxml file.&lt;BR /&gt;Regards,&lt;BR /&gt;Pedro</description>
      <pubDate>Tue, 31 Jul 2012 02:10:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tJasperoutput/m-p/2202223#M3998</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-07-31T02:10:50Z</dc:date>
    </item>
    <item>
      <title>Re: tJasperoutput</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tJasperoutput/m-p/2202224#M3999</link>
      <description>Hi,&lt;BR /&gt;I have checked the data type of columns in the schema of the tJasperOutput and the predefined jrxml file. Both the schemas are same. In the schema "id" column is an integer filed in tJasperoutput step and in jrxml also. But it is throwing same error. If I take "id" as string in tJasperoutput and in jrxml then it works fine.&lt;BR /&gt;The screenshot of schema in tJasperoutput and jrxml are attached with the post.&lt;BR /&gt;Thanks</description>
      <pubDate>Mon, 06 Aug 2012 06:56:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tJasperoutput/m-p/2202224#M3999</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-08-06T06:56:40Z</dc:date>
    </item>
    <item>
      <title>Re: tJasperoutput</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tJasperoutput/m-p/2202225#M4000</link>
      <description>Hi&lt;BR /&gt;Could you send me an email and attach the exported job and related files?&lt;BR /&gt;I try to reproduce this issue but failed.&lt;BR /&gt;Regards,&lt;BR /&gt;Pedro</description>
      <pubDate>Mon, 06 Aug 2012 07:24:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tJasperoutput/m-p/2202225#M4000</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-08-06T07:24:13Z</dc:date>
    </item>
    <item>
      <title>Re: tJasperoutput</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tJasperoutput/m-p/2202226#M4001</link>
      <description>Hi,&lt;BR /&gt;I have sent you a mail on your email-id "xhuo@talend.com". I have provided the exported job, jrxml file and database script. Please confirm if you have received my mail.&lt;BR /&gt;Thanks</description>
      <pubDate>Tue, 07 Aug 2012 05:42:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tJasperoutput/m-p/2202226#M4001</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-08-07T05:42:09Z</dc:date>
    </item>
    <item>
      <title>Re: tJasperoutput</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tJasperoutput/m-p/2202227#M4002</link>
      <description>Hi,&lt;BR /&gt;Did you find the solution, can you publish it ?&lt;BR /&gt;Regards,&lt;BR /&gt;Jérome</description>
      <pubDate>Mon, 18 Mar 2013 09:55:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tJasperoutput/m-p/2202227#M4002</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2013-03-18T09:55:06Z</dc:date>
    </item>
  </channel>
</rss>

