Page 1 of 1

Buttons aren't displayed

Posted: Wed Feb 13, 2008 2:24 am
by normsteel
All the images in OpenEMM seem to show up fine for me, just the "Save", "Copy", "Delete"... buttons don't show up. When I try to view them directly I get the 500 error @ the bottom of the post. Am I missing a package or setting somewhere?

Image

Code: Select all

500 Servlet Exception

java.lang.Error: Probable fatal error:No fonts found.
	at sun.font.FontManager.getDefaultPhysicalFont(FontManager.java:1088)
	at sun.font.FontManager.initialiseDeferredFont(FontManager.java:967)
	at sun.font.CompositeFont.doDeferredInitialisation(CompositeFont.java:254)
	at sun.font.CompositeFont.getSlotFont(CompositeFont.java:334)
	at sun.font.CompositeStrike.getStrikeForSlot(CompositeStrike.java:77)
	at sun.font.CompositeStrike.getFontMetrics(CompositeStrike.java:93)
	at sun.font.FontDesignMetrics.initMatrixAndMetrics(FontDesignMetrics.java:358)
	at sun.font.FontDesignMetrics.<init>(FontDesignMetrics.java:349)
	at sun.font.FontDesignMetrics.getMetrics(FontDesignMetrics.java:301)
	at sun.java2d.SunGraphics2D.getFontMetrics(SunGraphics2D.java:795)
	at org.agnitas.web.ButtonRender.doGet(ButtonRender.java:187)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:115)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:92)
	at com.caucho.server.dispatch.ServletFilterChain.doFilter(ServletFilterChain.java:106)
	at org.agnitas.web.filter.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:51)
	at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:70)
	at com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:178)
	at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:229)
	at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:268)
	at com.caucho.server.port.TcpConnection.run(TcpConnection.java:389)
	at com.caucho.util.ThreadPool.runTasks(ThreadPool.java:507)
	at com.caucho.util.ThreadPool.run(ThreadPool.java:433)
	at java.lang.Thread.run(Thread.java:675)

fixed!

Posted: Wed Feb 13, 2008 8:13 pm
by normsteel

Code: Select all

 yum install xorg-x11-fonts-truetype.noarch freetype1.i386
fixed this problem.

Posted: Thu Feb 14, 2008 9:35 am
by maschoff
Just for the record: What linux distribution and version do you use?

Posted: Thu Sep 03, 2009 6:04 pm
by balltongu
I was going to write a new post, but it seems this one fits me exactly. I'm running OpenEMM 5.5.1 on CentOS 5.3. I have the .bash_profile $JAVA_HOME value set as such:

JAVA_HOME=/opt/java1.6/jre1.6.0_16

I'm not anything of a java guy at all, so that's about the most I can think of to provide right now. What other information might you need to be able to further troubleshoot this?

Posted: Thu Sep 03, 2009 8:22 pm
by maschoff
balltongu, I do not understand, what exactly is your problem?

Posted: Thu Sep 03, 2009 8:42 pm
by balltongu
My problem is exactly as normsteel described. In many places throughout the admin area, I do not see the buttons, but instead see the Alt text or value for the image. When I right click on that text and click on view image, I get as normsteel did with a 500 Servlet Exception and then:

java.lang.Error: Probabl fatal error:No fonts found.

An easy example to show you is like so:

http://emm.jcc.ca:8080/logon.do?action=0

As you'll see, the Login "button" is just text.

Thanks

Posted: Thu Sep 03, 2009 8:44 pm
by maschoff
But normsteel posted a solution!?

Posted: Thu Sep 03, 2009 8:55 pm
by balltongu
Sorry, I thought I mentioned that, looks like I didn't. Unfortunately his solution didn't work.

Posted: Fri Sep 11, 2009 3:31 pm
by balltongu
*bumping* - since the packages mentioned previously are installed, what more can I do to ensure the packages are being utilized by java, or any other suggestions?

Posted: Wed Nov 04, 2009 11:26 am
by vlenzen
I had the same problem running OpenEMM 5.5.1 on RHEL 5.3 and OpenJDK 1.6.0.

Looks like in some configuration no system-font can be found.

System:
Red Hat Enterprise Linux Server release 5.3 (Tikanga)

Java:
java version "1.6.0"
OpenJDK Runtime Environment (build 1.6.0-b09)
OpenJDK 64-Bit Server VM (build 1.6.0-b09, mixed mode)

What I had to do is install the package 'liberation-fonts' like described here: https://bugzilla.redhat.com/show_bug.cgi?id=478480

Posted: Wed Nov 04, 2009 11:51 am
by maschoff
In release 6.0 we use in class ButtonRender the more universal font "SansSerif" instead of "Tahoma" to be more compatible with different configurations.