rbojja Posted July 10, 2009 Share Posted July 10, 2009 Hi All,When i try to open the pdf in jasper viewer the below expection is seen and the jviewer hangs/doesnt respond? Can any one tell me where the issue is?code:JasperPrint jasperPrint = JasperFillManager.fillReport(masterreport, parameters, conn); JasperViewer.viewReport(jasperPrint,false);Error log:09/07/10 14:56:14 java.lang.NullPointerException09/07/10 14:56:14 at net.sf.jasperreports.view.JasperViewer.exitForm(JasperViewer.java:239)09/07/10 14:56:14 at net.sf.jasperreports.view.JasperViewer$1.windowClosing(JasperViewer.java:198)09/07/10 14:56:14 at java.awt.Window.processWindowEvent(Window.java:1121)09/07/10 14:56:14 at javax.swing.JFrame.processWindowEvent(JFrame.java:266)09/07/10 14:56:14 at java.awt.Window.processEvent(Window.java:1079)09/07/10 14:56:14 at java.awt.Component.dispatchEventImpl(Component.java:3615)09/07/10 14:56:14 at java.awt.Container.dispatchEventImpl(Container.java:1627)09/07/10 14:56:14 at java.awt.Window.dispatchEventImpl(Window.java)09/07/10 14:56:14 at java.awt.Component.dispatchEvent(Component.java)09/07/10 14:56:14 at java.awt.EventQueue.dispatchEvent(EventQueue.java:458)09/07/10 14:56:14 at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)09/07/10 14:56:14 at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)09/07/10 14:56:14 at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)09/07/10 14:56:14 at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)09/07/10 14:56:14 at java.awt.EventDispatchThread.run(EventDispatchThread.java:100) Link to comment Share on other sites More sharing options...
dayana Posted July 13, 2009 Share Posted July 13, 2009 you are not clear.... please attach the jrxml...... Link to comment Share on other sites More sharing options...
Teodor Danciu Posted July 13, 2009 Share Posted July 13, 2009 Hi, What version of JasperReports are you using and how do you use it? I mean, where did you embed the JasperViewer?We do not see the entire stack trace so we are not sure what triggers the viewer to close.How do you run your application and what kind of application is it? If it is a Swing desktop application, you should consider embedding the JRViewer component, which is a JPanel, instead of the JasperViewer. Thank you,Teodor Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now