Thanks for your response Dave.
We have placed the reportmill jar in the application bundle with other jars like: mysql connector and so on and deployed it... Our app is able to connect to database and does CRUD operations well enough!!!
*Problem is with reports only.*
-------------------------------------
However, I wonder from the below line i.e., WO runtime/ reportmill is able to find RMDocument class but not RMFont class, why?
Caused by: java.lang.NoClassDefFoundError: Could not initialize class
com.reportmill.text.RMFont
at com.reportmill.shape.RMDocument.<init>(RMDocument.java:39)
-------------------------------------
However, looking at the other exception log as shown below - it looks like WO runtime/ reportmill is able to find RMFont class as well, but problem is with instantiating it and it says - "Probable fatal error:No fonts found" - we are using basic fonts which should be available by default in any OS, right???
Caused by: com.reportmill.base.RMException: Probable fatal error:No fonts found.
at com.reportmill.text.RMFont.<clinit>(RMFont.java:58)
-------------------------------------
Right now we are planning to install fonts to Ubuntu server (VM instance), but not sure if that helps!!!
Any other clues???
Regards,
Shravan
From: David Avendasora <email@hidden>
To: Shravan Kumar. M <email@hidden>
Cc: WO Dev Group
<email@hidden>
Sent: Wednesday, June 1, 2011 12:27 PM
Subject: Re: com.reportmill.base.RMException: Probable fatal error:No fonts found.
Hi Shravan,
It appears to be having a problem finding the com.reportmill.text.RMFont class.
Where do you have the ReportMillxx.jar installed? I see by some of ReportMill's documentation that they suggest installing it in the Local/Library/WebObjects/Extensions directory.
Don't put it there.
Just don't.
If it's already there on the server, get it out of there.
Put it in your Application's Libraries directory, then right click on it and add it to your build path. That way the .jar will always be available to the App.
Dave Avendasora
On Jun 1, 2011, at 12:43 AM, Shravan Kumar. M wrote:
Hi Group,
Any clues to this exception with a new WO app deployed to the Ubuntu:
---------------------------------------------------------------------------------------------------
Following exception occurs when we generate a ReportMill report from our app:
---------------------------------------------------------------------------------------------------
Caused by: java.lang.NoClassDefFoundError: Could not initialize class com.reportmill.text.RMFont
at com.reportmill.shape.RMDocument.<init>(RMDocument.java:39)
at org.bmjrft.cds.components.PatientDetailsPage.generateIDCard(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at com.webobjects.foundation.NSKeyValueCoding$ValueAccessor$1.methodValue(NSKeyValueCoding.java:636)
at com.webobjects.foundation.NSKeyValueCoding$_MethodBinding.valueInObject(NSKeyValueCoding.java:1134)
---------------------------------------------------------------------------------------------------
Following exception occurs with call to "new RMFont()" in Application constructor:
---------------------------------------------------------------------------------------------------
May 31 04:44:55 CDS[2002] (ERXNSLogLog4jBridge.java:43) WARN NSLog - A fatal exception occurred: null
[2011-5-31 4:44:55 PDT] <main> java.lang.
ExceptionInInitializerError
at org.bmjrft.cds.Application.<init>(Application.java:15)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:532)
at java.lang.Class.newInstance0(Class.java:372)
at java.lang.Class.newInstance(Class.java:325)
at com.webobjects.appserver.WOApplication.main(WOApplication.java:547)
at er.extensions.appserver.ERXApplication.main(ERXApplication.java:631)
at org.bmjrft.cds.Application.main(Application.java:9)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at com.webobjects._bootstrap.WOBootstrap.main(WOBootstrap.java:87)
Caused by: com.reportmill.base.RMException: Probable fatal error:No fonts found.
at com.reportmill.text.RMFont.<clinit>(RMFont.java:58)
... 15 more
Let me know if need more info.
Thank You,
Shravan Kumar. M
-------------------------------
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