I’ve been trying to access a jasper report through a domino agent and then open it on the screen for the user to see. Everything works good, i.e. it creates the report, saves it to a pdf, opens it on the screen to view, but when the user tries to close the report it wont let them close it and it spits out this error. Im sure I need to update a permission in the java security policy but dont have a clue as to what one it it. This is the error it shows.
Exception in thread “AWT-EventQueue-0” java.lang.SecurityException: Exit with code 0
at COM.ibm.JEmpower.applet.AppletSecurity.failSecurity(AppletSecurity.java:602)
at COM.ibm.JEmpower.applet.AppletSecurity.failSecurity(AppletSecurity.java:589)
at COM.ibm.JEmpower.applet.AppletSecurity.checkPermission(AppletSecurity.java:1487)
at COM.ibm.JEmpower.applet.AppletSecurity.checkPermission(AppletSecurity.java:1455)
at java.lang.SecurityManager.checkExit(SecurityManager.java:760)
at java.lang.Runtime.exit(Runtime.java:104)
at java.lang.System.exit(System.java:269)
at net.sf.jasperreports.view.JasperViewer.exitForm(JasperViewer.java:234)
at net.sf.jasperreports.view.JasperViewer$1.windowClosing(JasperViewer.java:198)
at java.awt.Window.processWindowEvent(Window.java:1226)
at javax.swing.JFrame.processWindowEvent(JFrame.java:296)
at java.awt.Window.processEvent(Window.java:1184)
at java.awt.Component.dispatchEventImpl(Component.java:3996)
at java.awt.Container.dispatchEventImpl(Container.java:2059)
at java.awt.Window.dispatchEventImpl(Window.java:1810)
at java.awt.Component.dispatchEvent(Component.java:3844)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:545)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:268)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:197)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:191)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:183)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:144)