aspose file tools*
The moose likes I/O and Streams and the fly likes IReport and InputStream Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of JavaScript Promises Essentials this week in the JavaScript forum!
JavaRanch » Java Forums » Java » I/O and Streams
Bookmark "IReport and InputStream" Watch "IReport and InputStream" New topic
Author

IReport and InputStream

R�mulo Handall De Oliveira
Greenhorn

Joined: Mar 20, 2007
Posts: 4
Hello Guys!

I'm trying make a report with JasperReport, but i doesn't compile the JRXML with "JasperCompileManager.compileReport" My libary "Jasper" don't undestanding may InputStream , because is show at the error: java.lang.reflect.InvocationTargetException .
Caused by: java.lang.VerifyError: (class: net/sf/jasperreports/engine/xml/JRXmlDigesterFactory, method: configureDigester signature: (Lorg/apache/commons/digester/Digester V) Incompatible argument to function

I think that object InputStram is unformat fot my libary Jasper.

This a part of my code:

try {
if (SUB_REL_SUPERINTENDENCIA_REGIONAL == null) {

InputStream in = this.getClass().getResourceAsStream("relatorio/eventoContabil/SubReportSuperintendeciaRegional.jrxml");

SUB_REL_SUPERINTENDENCIA_REGIONAL = (JasperReport) JasperCompileManager.compileReport(in);

}

this.subReportSuperintendenciaRegional = SUB_REL_SUPERINTENDENCIA_REGIONAL;

}
catch (JRException e) {
e.printStackTrace();
}

Somebody can help me?

Thanks,

R�mulo Handall.

[ March 20, 2007: Message edited by: R�mulo Handall De Oliveira ]
[ March 20, 2007: Message edited by: R�mulo Handall De Oliveira ]
R�mulo Handall De Oliveira
Greenhorn

Joined: Mar 20, 2007
Posts: 4
Guys,

The problem was the version of commons-digester.jar . After update that library, I am obtaining to compile the JRXML
[ March 20, 2007: Message edited by: R�mulo Handall De Oliveira ]
[ March 21, 2007: Message edited by: R�mulo Handall De Oliveira ]
Darya Akbari
Ranch Hand

Joined: Aug 21, 2004
Posts: 1855
Hi R�mulo,

Welcome to JavaRanch .

Was the previous version you used from the same jasperreports distribution or did you mix things up?

Regards,
Darya
[ March 20, 2007: Message edited by: Darya Akbari ]

SCJP, SCJD, SCWCD, SCBCD
R�mulo Handall De Oliveira
Greenhorn

Joined: Mar 20, 2007
Posts: 4
Hi Darya,

Thanks!

I'm using version jasperreports-1.0.1.

Can i help you?

Regards,
R�mulo Handall
Darya Akbari
Ranch Hand

Joined: Aug 21, 2004
Posts: 1855
Hi R�mulo,

I don't need help , I was just wondering because

Originally posted by R�mulo Handall De Oliveira:
The problem was the version of commons-digester.jar . After update that library, I'm go compile the JRXML.


I don't understand what you mean with after update that library. Didn't you use the original one that came with you jasperreports distribution ?

Regards,
Darya
[ March 21, 2007: Message edited by: Darya Akbari ]
R�mulo Handall De Oliveira
Greenhorn

Joined: Mar 20, 2007
Posts: 4
Hi Darya,

I was using a library called: "commons-digester.jar" of struts, therefore the JasperCompileManager class did not to compile the JRXML. What I made was to change this brought up to date class for other more of proper jasperReport.

Regards,
R�mulo.
[ March 21, 2007: Message edited by: R�mulo Handall De Oliveira ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: IReport and InputStream