newchengse Posted September 21, 2007 Share Posted September 21, 2007 Hello, I think I have a problem with fillReport. It work very well on my JBuilder 2005 but when I load it in IE(my prorame is an Applet) , I got this error. Somebody have an hint for me? Exception in thread "AWT-EventQueue-2" java.lang.ExceptionInInitializerError at net.sf.jasperreports.engine.fill.JRFiller.createFiller(JRFiller.java:147) at net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:57) at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:402) at catalogtest.cataDialog.myInit(cataDialog.java:93) at catalogtest.cataDialog.jbInit(cataDialog.java:61) at catalogtest.cataDialog.<init>(cataDialog.java:49) at catalogtest.jasperTest.jButton1_actionPerformed(jasperTest.java:47) at catalogtest.jasperTest_jButton1_actionAdapter.actionPerformed(jasperTest.java:65) at javax.swing.AbstractButton.fireActionPerformed(Unknown Source) at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source) at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source) at javax.swing.DefaultButtonModel.setPressed(Unknown Source) at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source) at java.awt.Component.processMouseEvent(Unknown Source) at javax.swing.JComponent.processMouseEvent(Unknown Source) at java.awt.Component.processEvent(Unknown Source) at java.awt.Container.processEvent(Unknown Source) at java.awt.Component.dispatchEventImpl(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source) at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source) at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source)Caused by: org.apache.commons.logging.LogConfigurationException: java.lang.NullPointerException at org.apache.commons.logging.LogFactory.newFactory(LogFactory.java:558) at org.apache.commons.logging.LogFactory.getFactory(LogFactory.java:355) at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:390) at net.sf.jasperreports.engine.fill.JRBaseFiller.<clinit>(JRBaseFiller.java:94) ... 32 moreCaused by: java.lang.NullPointerException at org.apache.commons.logging.LogFactory.newFactory(LogFactory.java:554) ... 35 more My code:try{ System.out.println(jasperReport.getPrintOrder());//jasperReport have created exactly jasperPrint=JasperFillManager.fillReport(jasperReport,parameters,conn);//Wrong here!!! }catch (Exception ex){ database1.closeConnection(); ex.printStackTrace(); } I have putted the axe in the helve about how to use JDBC driver in an Applet.Post edited by: newchengse, at: 2007/09/24 01:29 Link to comment Share on other sites More sharing options...
newchengse Posted September 24, 2007 Author Share Posted September 24, 2007 anybody give me some advice? Link to comment Share on other sites More sharing options...
newchengse Posted September 26, 2007 Author Share Posted September 26, 2007 HaHa!I resolved this problem by myself!In JBuilder you make the jar with "include all" option,then the prolbem is gone! But annother problem is coming:the jar is very big!It is 36MB!My God!Who can tell me which jaseprReport's jar(s) must be compressed in the jar(s)?Which not?;) 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