ktrinad Posted August 31, 2006 Share Posted August 31, 2006 By: Mats Ragnar Persson - ragn javabeans datasource 2003-11-09 01:14 "JavaBean datasource" don't work (for me) in 0.2.2. Anyone know if it IS working or if it work in some other version ? This is what I get when i try to add such a datasource in the : Connection /Datasources panel: iReport: [java] ConnectionDialog setIReportConnection KontaktBean [java] java.lang.NullPointerException [java] at it.businesslogic.ireport.gui.ReportQueryDialog.jButtonRegisterFieldsActionPerformed(ReportQueryDialog.java:265) [java] at it.businesslogic.ireport.gui.ReportQueryDialog.access$600(ReportQueryDialog.java:42) [java] at it.businesslogic.ireport.gui.ReportQueryDialog$8.actionPerformed(ReportQueryDialog.java:231) [java] at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1786) [java] at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1839) [java] at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420) [java] at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258) [java] at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:245) [java] at java.awt.Component.processMouseEvent(Component.java:5100) [java] at java.awt.Component.processEvent(Component.java:4897) [java] at java.awt.Container.processEvent(Container.java:1569) [java] at java.awt.Component.dispatchEventImpl(Component.java:3615) [java] at java.awt.Container.dispatchEventImpl(Container.java:1627) [java] at java.awt.Component.dispatchEvent(Component.java:3477) [java] at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483) [java] at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198) [java] at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128) [java] at java.awt.Container.dispatchEventImpl(Container.java:1613) [java] at java.awt.Window.dispatchEventImpl(Window.java:1606) [java] at java.awt.Component.dispatchEvent(Component.java:3477) [java] at java.awt.EventQueue.dispatchEvent(EventQueue.java:456) [java] at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201) [java] at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151) [java] at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145) [java] at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137) [java] at java.awt.EventDispatchThread.run(EventDispatchThread.java:100) By: Darren Hartford - binarymonk RE: javabeans datasource 2003-11-13 06:27 The JavaBean datasource does NOT work. However, you can write a JRCustomDataSource to access your beans for the data for your report. For designing the report (opposed to the connection for the actual data) you CAN use "Report Query - JavaBean Datasource" tool to register the fields for your Bean. Just make sure the Bean is in the classpath for iReport (and if you are utilizing EJB's, that your J2EE.jar is also in the classpath). Hope this helps! -D 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