• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

IReport and InputStream

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 ]
 
Ranch Hand
Posts: 1855
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 ]
 
R�mulo Handall De Oliveira
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Darya,

Thanks!

I'm using version jasperreports-1.0.1.

Can i help you?

Regards,
R�mulo Handall
 
Darya Akbari
Ranch Hand
Posts: 1855
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 ]
 
reply
    Bookmark Topic Watch Topic
  • New Topic