Jump to content
Changes to the Jaspersoft community edition download ×

Help! Compile problem


Recommended Posts

By: Simon Yang - ashy_jc

Help! Compile problem

2002-06-21 10:21

Hi, there

 

I just about to use the Jasper Report. when I try to compile my first simple .xml file, I got an error I really have no idea. code is like this:

public static void main(java.lang.String[] args) {

try {

long start = System.currentTimeMillis();

JasperCompileManager.compileReportToFile("first.xml");

System.err.println("Compile time : " + (System.currentTimeMillis() - start));

System.exit(0);

} catch (JRException jre) {

jre.printStackTrace();

}

}

 

and error said:

End event threw exception

java.lang.reflect.InvocationTargetException: dori.jasper.engine.JRException: Duplicate declaration of parameter : REPORT_PARAMETERS_MAP

java.lang.Throwable(java.lang.String)

java.lang.Exception(java.lang.String)

dori.jasper.engine.JRException(java.lang.String)

void dori.jasper.engine.design.JasperDesign.addParameter(dori.jasper.engine.JRParameter)

java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object [])

void org.apache.commons.digester.SetNextRule.end()

void org.apache.commons.digester.Digester.endElement(java.lang.String, java.lang.String, java.lang.String)

void org.apache.xerces.parsers.AbstractSAXParser.endElement(org.apache.xerces.xni.QName)

void org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(org.apache.xerces.xni.QName, org.apache.xerces.xni.XMLAttributes)

void org.apache.xerces.impl.xs.XMLSchemaValidator.emptyElement(org.apache.xerces.xni.QName, org.apache.xerces.xni.XMLAttributes)

void org.apache.xerces.impl.XMLNamespaceBinder.handleStartElement(org.apache.xerces.xni.QName, org.apache.xerces.xni.XMLAttributes, boolean)

void org.apache.xerces.impl.XMLNamespaceBinder.emptyElement(org.apache.xerces.xni.QName, org.apache.xerces.xni.XMLAttributes)

void org.apache.xerces.impl.dtd.XMLDTDValidator.handleStartElement(org.apache.xerces.xni.QName, org.apache.xerces.xni.XMLAttributes, boolean)

void org.apache.xerces.impl.dtd.XMLDTDValidator.emptyElement(org.apache.xerces.xni.QName, org.apache.xerces.xni.XMLAttributes)

boolean org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement()

boolean org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(boolean)

boolean org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(boolean)

boolean org.apache.xerces.parsers.StandardParserConfiguration.parse(boolean)

void org.apache.xerces.parsers.StandardParserConfiguration.parse(org.apache.xerces.xni.parser.XMLInputSource)

void org.apache.xerces.parsers.XMLParser.parse(org.apache.xerces.xni.parser.XMLInputSource)

void org.apache.xerces.parsers.AbstractSAXParser.parse(org.xml.sax.InputSource)

java.lang.Object org.apache.commons.digester.Digester.parse(java.io.InputStream)

dori.jasper.engine.design.JasperDesign dori.jasper.engine.xml.JRXmlLoader.loadXML(java.io.InputStream)

dori.jasper.engine.design.JasperDesign dori.jasper.engine.xml.JRXmlLoader.load(java.lang.String)

java.lang.String dori.jasper.engine.JasperCompileManager.compileReportToFile(java.lang.String)

void com.elite.report.TestJasper.main(java.lang.String [])

 

java.lang.reflect.InvocationTargetException

java.lang.Throwable(java.lang.String)

java.lang.Exception(java.lang.String)

org.xml.sax.SAXException(java.lang.String, java.lang.Exception)

org.xml.sax.SAXParseException(java.lang.String, org.xml.sax.Locator, java.lang.Exception)

org.xml.sax.SAXException org.apache.commons.digester.Digester.createSAXException(java.lang.String, java.lang.Exception)

org.xml.sax.SAXException org.apache.commons.digester.Digester.createSAXException(java.lang.Exception)

void org.apache.commons.digester.Digester.endElement(java.lang.String, java.lang.String, java.lang.String)

void org.apache.xerces.parsers.AbstractSAXParser.endElement(org.apache.xerces.xni.QName)

void org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(org.apache.xerces.xni.QName, org.apache.xerces.xni.XMLAttributes)

void org.apache.xerces.impl.xs.XMLSchemaValidator.emptyElement(org.apache.xerces.xni.QName, org.apache.xerces.xni.XMLAttributes)

void org.apache.xerces.impl.XMLNamespaceBinder.handleStartElement(org.apache.xerces.xni.QName, org.apache.xerces.xni.XMLAttributes, boolean)

void org.apache.xerces.impl.XMLNamespaceBinder.emptyElement(org.apache.xerces.xni.QName, org.apache.xerces.xni.XMLAttributes)

void org.apache.xerces.impl.dtd.XMLDTDValidator.handleStartElement(org.apache.xerces.xni.QName, org.apache.xerces.xni.XMLAttributes, boolean)

void org.apache.xerces.impl.dtd.XMLDTDValidator.emptyElement(org.apache.xerces.xni.QName, org.apache.xerces.xni.XMLAttributes)

boolean org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement()

boolean org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(boolean)

boolean org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(boolean)

boolean org.apache.xerces.parsers.StandardParserConfiguration.parse(boolean)

void org.apache.xerces.parsers.StandardParserConfiguration.parse(org.apache.xerces.xni.parser.XMLInputSource)

void org.apache.xerces.parsers.XMLParser.parse(org.apache.xerces.xni.parser.XMLInputSource)

void org.apache.xerces.parsers.AbstractSAXParser.parse(org.xml.sax.InputSource)

java.lang.Object org.apache.commons.digester.Digester.parse(java.io.InputStream)

dori.jasper.engine.design.JasperDesign dori.jasper.engine.xml.JRXmlLoader.loadXML(java.io.InputStream)

dori.jasper.engine.design.JasperDesign dori.jasper.engine.xml.JRXmlLoader.load(java.lang.String)

java.lang.String dori.jasper.engine.JasperCompileManager.compileReportToFile(java.lang.String)

void com.elite.report.TestJasper.main(java.lang.String [])

 

 

NESTED BY :

dori.jasper.engine.JRException: Error at (-1, -1: null

java.lang.Throwable(java.lang.String)

java.lang.Exception(java.lang.String)

dori.jasper.engine.JRException(java.lang.Exception)

dori.jasper.engine.design.JasperDesign dori.jasper.engine.xml.JRXmlLoader.loadXML(java.io.InputStream)

dori.jasper.engine.design.JasperDesign dori.jasper.engine.xml.JRXmlLoader.load(java.lang.String)

java.lang.String dori.jasper.engine.JasperCompileManager.compileReportToFile(java.lang.String)

void com.elite.report.TestJasper.main(java.lang.String [])

 

does anybody ever meet this before?

 

Simon

 

 

By: eric zhang - topcheer

RE: Help! Compile problem

2002-06-23 19:29

remove the REPORT_PARAMETERS_MAP parameter definition in your XML files,it will works

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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...