<?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 Re: Strange Jasper Report error. in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Strange-Jasper-Report-error/m-p/2341030#M109011</link>
    <description>I now have the answer and am able to get it to work correctly. I will not be posting the answer instead I will give 10 points to anyone that has an answer that they think will work 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACJ.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/133049iD780B7DE0116E4D1/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACJ.png" alt="0683p000009MACJ.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;BR /&gt;Hint: 
&lt;BR /&gt;Its a casting error or a casting bug from talend. A cast needs to be made in jasper. But what is it? and how do you do it?</description>
    <pubDate>Mon, 25 Mar 2013 13:00:03 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2013-03-25T13:00:03Z</dc:date>
    <item>
      <title>Strange Jasper Report error.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Strange-Jasper-Report-error/m-p/2341029#M109010</link>
      <description>Hi, 
&lt;BR /&gt;I have been using jasper (iReport) to create a report. When I run the report through Ireport with the already created csv input source from talend the report works correctly and in the preview tab I can see the entire report with no errors. The problem occurs when I try to create the report through the jasper component in a talend job. It throws casting errors almost the same as this (cant post real log as its confidential information): 
&lt;BR /&gt; net.sf.jasperreports.engine.JRException: Errors were encountered when compiling report expressions class file: 
&lt;BR /&gt;1. Cannot cast from Date to String 
&lt;BR /&gt; value = (java.lang.String)(((java.util.Date)field_datum.getValue())); //$JR_EXPR_ID=10$ 
&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_netto.getValue())); //$JR_EXPR_ID=11$ 
&lt;BR /&gt; &amp;lt;-----------------------------------------------------------&amp;gt; 
&lt;BR /&gt;3. Cannot cast from Float to String 
&lt;BR /&gt; value = (java.lang.String)(((java.lang.Float)field_mwst.getValue())); //$JR_EXPR_ID=12$ 
&lt;BR /&gt; &amp;lt;----------------------------------------------------------&amp;gt; 
&lt;BR /&gt;4. Cannot cast from Integer to String 
&lt;BR /&gt; value = (java.lang.String)(((java.lang.Integer)field_rabatt.getValue())); //$JR_EXPR_ID=13$ 
&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_zbid.getValue())); //$JR_EXPR_ID=14$ 
&lt;BR /&gt; &amp;lt;------------------------------------------------------------&amp;gt; 
&lt;BR /&gt;6. Cannot cast from Integer to String 
&lt;BR /&gt; value = (java.lang.String)(((java.lang.Integer)field_ausgewaehlt.getValue())); //$JR_EXPR_ID=16$ 
&lt;BR /&gt; &amp;lt;-------------------------------------------------------------------&amp;gt; 
&lt;BR /&gt;7. Cannot cast from Float to String 
&lt;BR /&gt; value = (java.lang.String)(((java.lang.Float)field_bezahlt.getValue())); //$JR_EXPR_ID=17$ 
&lt;BR /&gt; &amp;lt;-------------------------------------------------------------&amp;gt; 
&lt;BR /&gt;8. Cannot cast from Date to String 
&lt;BR /&gt; value = (java.lang.String)(((java.util.Date)field_datum.getOldValue())); //$JR_EXPR_ID=10$ 
&lt;BR /&gt; &amp;lt;-------------------------------------------------------------&amp;gt; 
&lt;BR /&gt;9. Cannot cast from Float to String 
&lt;BR /&gt; value = (java.lang.String)(((java.lang.Float)field_netto.getOldValue())); //$JR_EXPR_ID=11$ 
&lt;BR /&gt; &amp;lt;--------------------------------------------------------------&amp;gt; 
&lt;BR /&gt;10. Cannot cast from Float to String 
&lt;BR /&gt; value = (java.lang.String)(((java.lang.Float)field_mwst.getOldValue())); //$JR_EXPR_ID=12$ 
&lt;BR /&gt; &amp;lt;-------------------------------------------------------------&amp;gt; 
&lt;BR /&gt;11. Cannot cast from Integer to String 
&lt;BR /&gt; value = (java.lang.String)(((java.lang.Integer)field_rabatt.getOldValue())); //$JR_EXPR_ID=13$ 
&lt;BR /&gt; &amp;lt;-----------------------------------------------------------------&amp;gt; 
&lt;BR /&gt;12. Cannot cast from Integer to String 
&lt;BR /&gt; value = (java.lang.String)(((java.lang.Integer)field_zbid.getOldValue())); //$JR_EXPR_ID=14$ 
&lt;BR /&gt; &amp;lt;---------------------------------------------------------------&amp;gt; 
&lt;BR /&gt;13. Cannot cast from Integer to String 
&lt;BR /&gt; value = (java.lang.String)(((java.lang.Integer)field_ausgewaehlt.getOldValue())); //$JR_EXPR_ID=16$ 
&lt;BR /&gt; &amp;lt;----------------------------------------------------------------------&amp;gt; 
&lt;BR /&gt;14. Cannot cast from Float to String 
&lt;BR /&gt; value = (java.lang.String)(((java.lang.Float)field_bezahlt.getOldValue())); //$JR_EXPR_ID=17$ 
&lt;BR /&gt; &amp;lt;----------------------------------------------------------------&amp;gt; 
&lt;BR /&gt;15. Cannot cast from Date to String 
&lt;BR /&gt; value = (java.lang.String)(((java.util.Date)field_datum.getValue())); //$JR_EXPR_ID=10$ 
&lt;BR /&gt; &amp;lt;----------------------------------------------------------&amp;gt; 
&lt;BR /&gt;16. Cannot cast from Float to String 
&lt;BR /&gt; value = (java.lang.String)(((java.lang.Float)field_netto.getValue())); //$JR_EXPR_ID=11$ 
&lt;BR /&gt; &amp;lt;-----------------------------------------------------------&amp;gt; 
&lt;BR /&gt;17. Cannot cast from Float to String 
&lt;BR /&gt; value = (java.lang.String)(((java.lang.Float)field_mwst.getValue())); //$JR_EXPR_ID=12$ 
&lt;BR /&gt; &amp;lt;----------------------------------------------------------&amp;gt; 
&lt;BR /&gt;18. Cannot cast from Integer to String 
&lt;BR /&gt; value = (java.lang.String)(((java.lang.Integer)field_rabatt.getValue())); //$JR_EXPR_ID=13$ 
&lt;BR /&gt; &amp;lt;--------------------------------------------------------------&amp;gt; 
&lt;BR /&gt;19. Cannot cast from Integer to String 
&lt;BR /&gt; value = (java.lang.String)(((java.lang.Integer)field_zbid.getValue())); //$JR_EXPR_ID=14$ 
&lt;BR /&gt; &amp;lt;------------------------------------------------------------&amp;gt; 
&lt;BR /&gt;20. Cannot cast from Integer to String 
&lt;BR /&gt; value = (java.lang.String)(((java.lang.Integer)field_ausgewaehlt.getValue())); //$JR_EXPR_ID=16$ 
&lt;BR /&gt; &amp;lt;-------------------------------------------------------------------&amp;gt; 
&lt;BR /&gt;21. Cannot cast from Float to String 
&lt;BR /&gt; value = (java.lang.String)(((java.lang.Float)field_bezahlt.getValue())); //$JR_EXPR_ID=17$ 
&lt;BR /&gt; &amp;lt;-------------------------------------------------------------&amp;gt; 
&lt;BR /&gt;Although while trying to convert Integer to String. I am using variables to create these fields so Im not sure why talend would even need to touch these fields? I would be happy if anyone has any suggestions of even a fix? 
&lt;BR /&gt;the log was taken from this guys error: 
&lt;A href="http://community.jaspersoft.com/questions/524190/problem-casting" target="_blank" rel="nofollow noopener noreferrer"&gt;http://community.jaspersoft.com/questions/524190/problem-casting&lt;/A&gt; 
&lt;BR /&gt;That solution does not seem to work in my case.</description>
      <pubDate>Mon, 25 Mar 2013 10:01:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Strange-Jasper-Report-error/m-p/2341029#M109010</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-03-25T10:01:48Z</dc:date>
    </item>
    <item>
      <title>Re: Strange Jasper Report error.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Strange-Jasper-Report-error/m-p/2341030#M109011</link>
      <description>I now have the answer and am able to get it to work correctly. I will not be posting the answer instead I will give 10 points to anyone that has an answer that they think will work 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACJ.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/133049iD780B7DE0116E4D1/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACJ.png" alt="0683p000009MACJ.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;BR /&gt;Hint: 
&lt;BR /&gt;Its a casting error or a casting bug from talend. A cast needs to be made in jasper. But what is it? and how do you do it?</description>
      <pubDate>Mon, 25 Mar 2013 13:00:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Strange-Jasper-Report-error/m-p/2341030#M109011</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-03-25T13:00:03Z</dc:date>
    </item>
    <item>
      <title>Re: Strange Jasper Report error.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Strange-Jasper-Report-error/m-p/2341031#M109012</link>
      <description>DeanWake , tell me please how did you solve this problem. i'm spending more than 2 days trying to fix it &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;</description>
      <pubDate>Fri, 26 Jul 2013 12:01:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Strange-Jasper-Report-error/m-p/2341031#M109012</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-07-26T12:01:48Z</dc:date>
    </item>
    <item>
      <title>Re: Strange Jasper Report error.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Strange-Jasper-Report-error/m-p/2341032#M109013</link>
      <description>You could use the component tJasperReportExec as clean alternative to the tJasperOutput component.&lt;BR /&gt;tJasperReportExec provides the possibilities like iReport to compile and fill a report based on a jrxml file and a database connection. There is no need to create an input flow and all of the problems with matching it to the internal field declaration of the report - this is what here causing the error.&lt;BR /&gt;&lt;A href="http://www.talendforge.org/exchange/index.php?eid=549&amp;amp;product=tos&amp;amp;action=view&amp;amp;nav=1,1,1" rel="nofollow noopener noreferrer"&gt;http://www.talendforge.org/exchange/index.php?eid=549&amp;amp;product=tos&amp;amp;action=view&amp;amp;nav=1,1,1&lt;/A&gt;</description>
      <pubDate>Wed, 31 Jul 2013 21:52:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Strange-Jasper-Report-error/m-p/2341032#M109013</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-07-31T21:52:57Z</dc:date>
    </item>
  </channel>
</rss>

