Jump to content
We've recently updated our Privacy Statement, available here ×

Error loading the report template


sionut1984

Recommended Posts

  • Replies 5
  • Created
  • Last Reply

Top Posters In This Topic

or...i move the xml code of this raport in a new raport. But not  "copy- paste" of the entire xml.

I have done "copy - paste" to small sections of my xml code in the new raport.

And...it works ! in 10 minuts the new raport was created successfully.

 

i dont know the "logic" of this phenomen, but...it seems works...

 

have a nice day!

 

Link to comment
Share on other sites

  • 1 month later...

Abrir el archivo jrxml con el notepad++ u otro editor.

y cambiar el texto:

<?xml version="1.0" encoding="UTF-8"?>
<jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="report name" pageWidth="595" pageHeight="842" columnWidth="535" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20">

por:

<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE jasperReport PUBLIC "-//JasperReports//DTD JasperReport//EN" "http://jasperreports.sourceforge.net/dtds/jasperreport.dtd">

<jasperReport name="report name" pageWidth="595" pageHeight="842" columnWidth="535" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20">

 
 


Post Edited by jaider ariza at 12/16/08 15:46
Link to comment
Share on other sites

  • 2 months later...

Hello, I tried this, but it does nt change anything. I still get NullPointerException even I don't have any "null" in the jrxml. The line it say the error is : Another big problems I got is the modification of the evaluationTime to null everytime i make a modification using the XML view. I seems the version 3.1.2 is not stable at all, using the same jrxml file with 3.0.0 (without netbeans) is more stable. I tried to find the resolution for these issues and found nothing using google nor the jasperforge search tool.

Thanks if somebody can help. 

Link to comment
Share on other sites

  • 4 months later...

Hi,

I had the same problem. What I did is I edited the xml code for the chart.

This is my error message :

net.sf.jasperreports.engine.JRException: org.xml.sax.SAXParseException: cvc-enumeration-valid: Value '4' is not facet-valid with respect to enumeration '[Top, Bottom, Left, Right]'. It must be a value from the enumeration.
 

I edited the XML codes from

<chartLegend backgroundColor="#FFFFFF" position="1"/>

to

<chartLegend backgroundColor="#FFFFFF" position="Top"/>

like the error message suggested and it works.

Regards

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...