• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: [SOLVED] com.reportmill.base.RMException: Probable fatal error:No fonts found.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [SOLVED] com.reportmill.base.RMException: Probable fatal error:No fonts found.


  • Subject: Re: [SOLVED] com.reportmill.base.RMException: Probable fatal error:No fonts found.
  • From: "Shravan Kumar. M" <email@hidden>
  • Date: Sun, 05 Jun 2011 21:42:15 -0700 (PDT)

Hi David/ Mike,

Thanks for your time and suggestions.

We have tried Mike's suggestions, but that did not help fix this issue, so we went on doing more investigation... (sorry for the delay in response, we were banging our heads to figure the solution... and lost in the herd ;) )

Finally, we got this issue (fonts problem) fixed by running the following *simple* command:

--------------------------

sudo apt-get install msttcorefonts

--------------------------

This command installed all the fonts and we're able to get the reports! Hurray!!!

For more info, please checkout this article from my friend Kamal - http://www.kamaldshah.com/2011/06/linux-not-for-faint-hearted.html#links

Thank You,
Shravan Kumar. M
-----------------------


From: David Avendasora <email@hidden>
To: Shravan Kumar. M <email@hidden>
Cc: email@hidden; WebObjects-Dev Mailing List List <email@hidden>
Sent: Friday, June 3, 2011 10:26 AM
Subject: Re: com.reportmill.base.RMException: Probable fatal error:No fonts found.

Hi Shravan,

Did you see Mike's response:

On Jun 1, 2011, at 7:21 AM, Mike Schrag wrote:

If it's using AWT to access those fonts you might need to run with -Djava.awt.headless=true. This might be a bogus error from a root awt exception.

This is from the ReportMill website: http://www.reportmill.com/support/Headless.html

This really sounds like it is what is happening.

Dave


On Jun 1, 2011, at 5:10 AM, Shravan Kumar. M wrote:

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
References: 
 >Re: com.reportmill.base.RMException: Probable fatal error:No fonts found. (From: David Avendasora <email@hidden>)

  • Prev by Date: Re: update a WOComponentContent from my code?
  • Next by Date: Re: Session Persistence (Database)
  • Previous by thread: Re: com.reportmill.base.RMException: Probable fatal error:No fonts found.
  • Next by thread: Re: It's alive!
  • Index(es):
    • Date
    • Thread