Jump to content

Compilation Error Because of "ReportExecution"


ashish.anant

Recommended Posts

Hello Everybody,

 

I'm using iReports 2.0.3 to create some reports (.jrxml files) & uplaod it on to jasper server. My reports pages have some simple "drill-down" (Links which open up some other report). Now, as per new requirement, I'm compiling the jrxml files (using "jasperreports-maven-plugin" plugin) to embed the compiled file inside the war. But while compilation through maven, I'm getting follwoing error in the files which are having drill down.

 

 

Code:

[iNFO] Compiling report file: reportscustomer-service-reportscatalog-item-reportspurchase_order_by_userName.jrxml
org.xml.sax.SAXParseException: Attribute "hyperlinkType" with value "ReportExecution" must have a value from the list "None Reference LocalAnchor Loca
lPage RemoteAnchor RemotePage ".
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:195)
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:131)
at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:384)
at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:318)
at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.validateDTDattribute(XMLDTDValidator.java:1414)
at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.addDTDDefaultAttrsAndValidate(XMLDTDValidator.java:1333)
at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.handleStartElement(XMLDTDValidator.java:1940)
at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.startElement(XMLDTDValidator.java:764)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:1357)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2740)

at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:645)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:508)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:807)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:107)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522)
at org.apache.commons.digester.Digester.parse(Digester.java:1647)
at net.sf.jasperreports.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:238)
at net.sf.jasperreports.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:225)
at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:213)
at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:167)
at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:151)
at net.sf.jasperreports.engine.JasperCompileManager.compileReportToFile(JasperCompileManager.java:107)
at org.codehaus.mojo.jasperreports.JasperReportsMojo.compile(JasperReportsMojo.java:232)
at org.codehaus.mojo.jasperreports.JasperReportsMojo.execute(JasperReportsMojo.java:191)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:447)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:333)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:126)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:282)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
[ERROR] Digester - -Parse Error at line 358 column 159: Attribute "hyperlinkType" with value "ReportExecution" must have a value from the list "None R
eference LocalAnchor LocalPage RemoteAnchor RemotePage ". <org.xml.sax.SAXParseException: Attribute "hyperlinkType" with value "ReportExecution" must
have a value from the list "None Reference LocalAnchor LocalPage RemoteAnchor RemotePage ".>
[iNFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE

 

Since for drill down, I'm using <hyperlinkType="ReportExecution">, the compiler doesn't recognizing this "ReportExecution" as a hyperLinkType and its trying to look for anyone of the existing hyperlinkType (eg. None, Reference, LocalAnchor, LocalPage, RemoteAnchor, RemotePage).

 

Can Anyone please suggest me, how to compile files having drill down?

 

Thanks (in adv)

 

Ashish

(ashishanant@gmail.com)

Link to comment
Share on other sites

  • Replies 6
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Hello Lucianc,

 

Thanks for your reply. As I mentioned earlier, I'm using maven and using a plugin "jasperreports-maven-plugin" with version "1.0-beta-1". The plugin load the required jar files from site "http://repository.codehaus.org/org/codehaus/mojo/jasperreports-maven-plugin/1.0-beta-1/".

 

I found the following jars inside my repository.

Code:

jasperreports-1.2.0.jar
jasperreports-1.2.0.jar.sha1
jasperreports-1.2.0.pom
jasperreports-1.2.0.pom.sha1

So, using these jars, I'm trying to compile the jrxml files. I didn't get any other plugin which loads the latest jars like jasperreports-2.0.2.jar or others.

 

So, basically, if its because of version of jasperreport, then I need to use some plugin which load me the latest jar of jasperreport. Any idea about any such plugin?

 

Thanks,

 

Ashish

Link to comment
Share on other sites

Hello Lucian,

 

As per ur guidance, I tried putting dependency in project to JasperReports 2.0.2 (also tried with 2.0.3 & 2.0.4) as below

 

Code:

<dependency>
<groupId>jasperreports</groupId>
<artifactId>jasperreports</artifactId>
<scope>compile</scope>
<version>2.0.4</version>
</dependency>

 

I found while building the project, it downloaded the jar files from "http://repo1.maven.org/maven2/jasperreports/jasperreports/2.0.4/"

but even though I'm getting the same compilation error :(

 

Anything else I'm missing here to do?

 

 

Thanks,

 

Ashish

Link to comment
Share on other sites

  • 4 months later...

I did it like this:

 

Code:

<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>jasperreports-maven-plugin</artifactId>
<version>1.0-beta-1</version>
<executions>
<execution>
<goals>
<goal>compile-reports</goal>
</goals>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>jasperreports</groupId>
<artifactId>jasperreports</artifactId>
<version>3.0.0</version>
</dependency>
</dependencies>
</plugin>

Though I have another issue with the plugin that I 'll probably make a patch for.
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...