newchengse
-
Posts
4 -
Joined
-
Last visited
Content Type
Profiles
Forum
Events
Featured Visualizations
Knowledge Base
Documentation (PDF Downloads)
Blog
Documentation (Test Area)
Documentation
Dr. Jaspersoft Webinar Series
Security Advisories
Downloads
Posts posted by newchengse
-
-
anybody give me some advice?
-
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 more
Caused 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/21 03:17
-
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 more
Caused 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
fillReport wrong in Applet(but work well in JB)
in Products
Posted
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?;)