-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Error executing jasper report
PostPosted: Tue Feb 22, 2005 9:33 am 
Newbie

Joined: Tue Feb 22, 2005 9:14 am
Posts: 1
Hibernate version:2.1.6

Hi I try to run a jasper report but when I do it i receive this error


07:46:04,304 ERROR HibernateInterceptor:47 - Exception in execute()
org.apache.jasper.JasperException: org/eclipse/jdt/internal/compiler/env/INameEnvironment

my jsp code look like this

HibernateQueryResultDataSource ds = (HibernateQueryResultDataSource) session.getAttribute("ds");

File reportFile = new File(application.getRealPath("/reports/unrestricted.jasper"));
Map parameters = new HashMap();
parameters.put("BaseDir", reportFile.getParentFile());
byte[] bytes = JasperRunManager.runReportToPdf(
reportFile.getPath(),
parameters,
ds);
response.setContentType("application/pdf");
response.setContentLength(bytes.length);
ServletOutputStream ouputStream = response.getOutputStream();
ouputStream.write(bytes, 0, bytes.length);
ouputStream.flush();
ouputStream.close();
}

The ds object implements a JRDataSource interface.

Can tell wht´s wrong or where I found information.

Thanks


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.