Re: Somewhere a short howto for using JasperReports with WO?
Re: Somewhere a short howto for using JasperReports with WO?
- Subject: Re: Somewhere a short howto for using JasperReports with WO?
- From: Mike Bobkiewicz <email@hidden>
- Date: Thu, 9 Nov 2006 10:21:32 +0100
Am 07.11.2006 um 16:45 schrieb RedBugz Software:
On 11/6/06, Mike Bobkiewicz <email@hidden> wrote:
Hi,
I´m looking for a short howto on how to use JasperReports to print
from a WO WebApplication. I´ve downloaded the latest sources of
Jasper from sourceforge and from within the Report Designer
everything works fine on my OS X 10.4.7 / XCode 2.4 system. But the
demo source I´ve downloaded from wocode.com crashes when it tries to
compile the report. I´m pretty unsure if it´s because on some errors
within the project, my newer version of Jasper (installed 1.2.7, demo
cames with 1.0.0). Somebody on the list mentioned WOJasperAccess
which I can´t find via Google.
Any advice is welcome.
What do you mean by "crashes". Is there a stack trace? Does it kill
the WebObjects application or just take you to an error screen?
Everything wents fine until you hit the print button. At this point a
null pointer exception occured:
[2006-11-09 10:10:36 CET] <WorkerThread0> java.lang.NullPointerException
at com.wocode.jasper.WCJRUtils.compileReport(WCJRUtils.java:40)
at com.wocode.jasper.WCJRUtils.printReport(WCJRUtils.java:86)
at Main.printReport(Main.java:45)
at Main.printReport(Main.java:67)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at KeyValueCodingProtectedAccessor.methodValue
(KeyValueCodingProtectedAccessor.java:54)
at com.webobjects.foundation.NSKeyValueCoding
$_MethodBinding.valueInObject(NSKeyValueCoding.java:1160)
at com.webobjects.foundation.NSKeyValueCoding
$DefaultImplementation.valueForKey(NSKeyValueCoding.java:1268)
at com.webobjects.appserver.WOComponent.valueForKey(WOComponent.java:
1539)
at com.webobjects.foundation.NSKeyValueCoding$Utility.valueForKey
(NSKeyValueCoding.java:498)
at com.webobjects.foundation.NSKeyValueCodingAdditions
$DefaultImplementation.valueForKeyPath(NSKeyValueCodingAdditions.java:
212)
at com.webobjects.appserver.WOComponent.valueForKeyPath
(WOComponent.java:1600)
at
com.webobjects.appserver._private.WOKeyValueAssociation.valueInComponent
(WOKeyValueAssociation.java:46)
at com.webobjects.appserver._private.WOSubmitButton.invokeAction
(WOSubmitButton.java:70)
at
com.webobjects.appserver._private.WODynamicGroup.invokeChildrenAction
(WODynamicGroup.java:101)
at com.webobjects.appserver._private.WODynamicGroup.invokeAction
(WODynamicGroup.java:110)
at com.webobjects.appserver._private.WOForm.invokeAction(WOForm.java:
82)
at
com.webobjects.appserver._private.WODynamicGroup.invokeChildrenAction
(WODynamicGroup.java:101)
at com.webobjects.appserver._private.WODynamicGroup.invokeAction
(WODynamicGroup.java:110)
at com.webobjects.appserver.WOComponent.invokeAction
(WOComponent.java:945)
at com.webobjects.appserver.WOSession.invokeAction(WOSession.java:1168)
at com.webobjects.appserver.WOApplication.invokeAction
(WOApplication.java:1375)
at
com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWit
hPreparedPage(WOComponentRequestHandler.java:196)
at
com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWit
hPreparedSession(WOComponentRequestHandler.java:287)
at
com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWit
hPreparedApplication(WOComponentRequestHandler.java:322)
at
com.webobjects.appserver._private.WOComponentRequestHandler._handleReque
st(WOComponentRequestHandler.java:358)
at
com.webobjects.appserver._private.WOComponentRequestHandler.handleReques
t(WOComponentRequestHandler.java:432)
at com.webobjects.appserver.WOApplication.dispatchRequest
(WOApplication.java:1306)
at com.webobjects.appserver._private.WOWorkerThread.runOnce
(WOWorkerThread.java:173)
at com.webobjects.appserver._private.WOWorkerThread.run
(WOWorkerThread.java:254)
at java.lang.Thread.run(Thread.java:552)
I´ve filled the database with some movies, actors... so there is data
which can be printed. Any ideas what might happen?
Regards,
Mike
Logan
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden