Jump to content
Changes to the Jaspersoft community edition download ×

Report is not displayed in Windows 2003


2004 IR Help

Recommended Posts

By: mspadmanabhan - mspadmanabhan

Report is not displayed in Windows 2003

2005-06-11 11:02

From an ASP, I am calling the 'Shell' command through a VB dll file for launching reports from Jasper from the server.

 

This was working fine under Windows 2000 server. Now when I switch over to Windows 2003 Enterprise server, the report is not launched at all and no error also is coming. Is there any specific way to call 'Shell' in Windows 2003 or any specific settings to be made at the server side. Please help me in resolving this.

 

 

 

 

By: mraees - mraees_vk

Unable run jasperreports using java applicati

2005-06-11 00:24

I have created a report using jasperassistant.

 

But i could'nt run the report using my java

application.below given is the code sgment to call the

report.

_______________________________________________

 

try{

String rFile="/root/Production.jasper";

HashMap rptHash=null;

FileInputStream fs=new FileInputStream(rFile);

System.out.println("loading report file , read " +

fs.available());

JasperReport

template=(JasperReport)JRLoader.loadObject(fs);

System.out.println("Successfully created the report");

JasperPrint

report=JasperFillManager.fillReport(template,rptHash,conn);

System.out.println("Report filled with data");

}catch(JRException jex)

{System.out.println("Jasper Exception

:"+jex.getMessage());

System.out.println("Jasper Exception

:"+jex.fillnStackTrace());

System.out.println("Jasper Exception

:"+jex.getStackTrace());

System.out.println("Jasper Exception

:"+jex.getLocalizedMessage());

}

 

 

___________________________________________________

 

 

While running this application ,it throws into the

exception section.

Out put of the program is

 

Loading report file ,read 15275

Jasper Exception : Error loading object from

InputStream

Jasper Exception

:net.sf.jasperreports.engine.JRException :Error

loading object from InputStream

Jasper Exception

:[Ljava.lang.StackTraceElement;@e7b241

Jasper Exception :Error loading object from

InputStream

 

I request you to go through my code give me the asap.

thanking you

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