On 13 Mar 2007, at 4:50 PM, Chuck Hill wrote:

So, when you updated to the latest of everything, did anything end up in /Libaray/Java/Extensions? That is the sort of error that can happen if your have things in the Java Extensions that ought not be there.

Chuck


Thanks Chuck,

I just copied in the "lib" folder from the latest version of JasperReports (containing all the dependant jars I assume) into the "lib" folder in the WOCodeJasperSample project, then added the contents of the "lib" folder to the project's build path. There was definitely some overlap in the /Libaray/Java/Extensions folder from previous installations, I guess. I moved all the extensions aside (emptied the folder) and restarted Eclipse. I am now getting this error:

Deleting this line <defaultValueExpression ><![CDATA[All Categories]] ></defaultValueExpression> in the xml file got rid of the error. I'll have to have a closer look at how Jasper (iReport) creates the report templates. Thanks for your help, Chuck.



[2007-03-13 17:05:03 PDT] <WorkerThread0> Error printing SampleReport:
[2007-03-13 17:05:03 PDT] <WorkerThread0> net.sf.jasperreports.engine.JRException: Errors were encountered when compiling report expressions class file:
1. Syntax error on token "Categories", delete this token
                value = (java.lang.String)(All Categories);
                                               <-------->
2. Syntax error on token "Categories", delete this token
                value = (java.lang.String)(All Categories);
                                               <-------->
3. Syntax error on token "Categories", delete this token
                value = (java.lang.String)(All Categories);
                                               <-------->
3 errors

at net.sf.jasperreports.engine.design.JRAbstractCompiler.compileReport (JRAbstractCompiler.java:193) at net.sf.jasperreports.engine.design.JRDefaultCompiler.compileReport (JRDefaultCompiler.java:105) at net.sf.jasperreports.engine.JasperCompileManager.compileReport (JasperCompileManager.java:211) at net.sf.jasperreports.engine.JasperCompileManager.compileReport (JasperCompileManager.java:144)
        at com.wocode.jasper.WCJRUtils.compileReport(WCJRUtils.java:40)
        at com.wocode.jasper.WCJRUtils.printReport(WCJRUtils.java:86)
        at Main.printReport(Main.java:39)
        at Main.printReport(Main.java:58)
        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:585)
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:613)
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to