Plugins (1059)


Training and Consulting (44)



EPIC Poll

What is your favourite developer portal?

[ Results | Polls ]

Votes: 541
Comments: 0

Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
Guest
21 Post subject: bug in XML for calculated variables  PostPosted: Apr 29, 2004 - 03:54 PM






Hi,

When using calculated variables, the editor dialog ends up wrapping the variable in a CData section when it puts it into the .xml file.

Example:

<variable name="jasperReviewCount" class="java.lang.Integer" calculation="Count">
<variableExpression><![CDATA[$F{review_cid}]]></variableExpression>
</variable>


This results in one of 2 errors

- Can not cast from String to Integer
Or
- several duplicate case errors

This data needs to be written and saved as:



<variable name="jasperReviewCount" class="java.lang.Integer" calculation="Count">
<variableExpression>$F{review_cid}</variableExpression>
</variable>

to avoid these errors.

Any way to get a fix for this - or at least get it into the bug list so it won't be in the next release - this is sort of holding up my approval for purchase.

Thanks,

kenneth.chenis(at)mckesson.com
 
   
Reply with quote Back to top
Guest
Post subject:   PostPosted: Apr 29, 2004 - 04:46 PM






Hi. We are not sure about your problem. The two xml fragments are actually equivalent and represent the same data. Perhaps you could send us the xml file that causes the compilation problems so we can take a closer look at what's happening.

Best regards,
- JasperAssistant Team.
 
   
Reply with quote Back to top
Guest
Post subject:   PostPosted: Apr 30, 2004 - 09:38 AM






Easy enough to create - new report - add 1 text field, add 1 integer counter to count the field ... generates the casting error (note - this error is generated when you switch to the preview window).

<?xml version="1.0" encoding="UTF-8"?>
<!-- Created using an evaluation version of JasperAssistant (http://www.jasperassistant.com) -->
<!DOCTYPE jasperReport PUBLIC "-//JasperReports//DTD Report Design//EN" "http://jasperreports.sourceforge.net/dtds/jasperreport.dtd">

<jasperReport name="Unnamed" pageWidth="595" pageHeight="842" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="30" bottomMargin="30">
<field name="Field_1" class="java.lang.String">
</field>
<variable name="Variable_1" class="java.lang.Integer" calculation="Count">
<variableExpression><![CDATA[$F{Field_1}]]></variableExpression>
</variable>
<detail>
<band height="100">
</band>
</detail>
</jasperReport>


Change the file to this, and it works fine in preview mode:

<?xml version="1.0" encoding="UTF-8"?>
<!-- Created using an evaluation version of JasperAssistant (http://www.jasperassistant.com) -->
<!DOCTYPE jasperReport PUBLIC "-//JasperReports//DTD Report Design//EN" "http://jasperreports.sourceforge.net/dtds/jasperreport.dtd">

<jasperReport name="Unnamed" pageWidth="595" pageHeight="842" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="30" bottomMargin="30">
<field name="Field_1" class="java.lang.String">
</field>
<variable name="Variable_1" class="java.lang.Integer" calculation="Count">
<variableExpression>$F{Field_1}</variableExpression>
</variable>
<detail>
<band height="100">
</band>
</detail>
</jasperReport>
 
   
Reply with quote Back to top
Guest
Post subject:   PostPosted: Apr 30, 2004 - 11:02 AM






Although it is not xml related there is certainly a problem and we were able to reproduce it successfully. We will release a bugfix 1.1.3 version later today.

Best regards,
- JasperAssistant Team.
 
   
Reply with quote Back to top
Guest
Post subject:   PostPosted: Apr 30, 2004 - 11:21 AM






Great!
thanks.
 
   
Reply with quote Back to top
amir55
Post subject: error in opening the class diagram editor  PostPosted: Dec 17, 2007 - 02:45 PM



Joined: Nov 13, 2007
Posts: 2

hi all

1 - I have the same problem when I clsoe the diagram and eclipse then back next tiime to launch eclipse and my uml example

I got the error saying

Error opening the editor.
java.lang.Integer cannot be cast to java.lang.String

I do not know which file causing this error.

I have not edited

I use this version
eclipseUML_E330_2007_freeEdition_3.3.0.v20071030

2 - also if I like to buy the studio one then what difference is then between the two.

3 - which one is the full version and if jee or java one

4 - can I pay anual subscribtion like MyEclipse or one full payment knowing that I am student no a company

thanls a lot
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits