Buttons aren't displayed

Use this forum for questions regarding adoption and functionality of OpenEMM

Moderator: moderator

normsteel
Posts: 3
Joined: Wed Feb 13, 2008 2:12 am

Buttons aren't displayed

Post 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)
normsteel
Posts: 3
Joined: Wed Feb 13, 2008 2:12 am

fixed!

Post by normsteel »

Code: Select all

 yum install xorg-x11-fonts-truetype.noarch freetype1.i386
fixed this problem.
maschoff
Site Admin
Posts: 2628
Joined: Thu Aug 03, 2006 10:20 am
Location: Munich, Germany
Contact:

Post by maschoff »

Just for the record: What linux distribution and version do you use?
OpenEMM Maintainer
balltongu
Posts: 4
Joined: Thu Sep 03, 2009 6:00 pm

Post 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?
maschoff
Site Admin
Posts: 2628
Joined: Thu Aug 03, 2006 10:20 am
Location: Munich, Germany
Contact:

Post by maschoff »

balltongu, I do not understand, what exactly is your problem?
OpenEMM Maintainer
balltongu
Posts: 4
Joined: Thu Sep 03, 2009 6:00 pm

Post 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
maschoff
Site Admin
Posts: 2628
Joined: Thu Aug 03, 2006 10:20 am
Location: Munich, Germany
Contact:

Post by maschoff »

But normsteel posted a solution!?
OpenEMM Maintainer
balltongu
Posts: 4
Joined: Thu Sep 03, 2009 6:00 pm

Post by balltongu »

Sorry, I thought I mentioned that, looks like I didn't. Unfortunately his solution didn't work.
balltongu
Posts: 4
Joined: Thu Sep 03, 2009 6:00 pm

Post 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?
vlenzen
Posts: 1
Joined: Wed Nov 04, 2009 11:18 am

Post 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
In theory, practice and theory are the same, but in practice they are different -- Larry McVoy

http://vlenzen.wordpress.com/
maschoff
Site Admin
Posts: 2628
Joined: Thu Aug 03, 2006 10:20 am
Location: Munich, Germany
Contact:

Post 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.
OpenEMM Maintainer
Post Reply