我们有CentOS 5,OpenJDK 1.6和Tomcat 6。
每两周我们的服务器在catalina.out中输出如下:
Exception while removing reference: java.lang.NullPointerException java.lang.NullPointerException at sun.font.FreetypeFontScaler.disposeNativeScaler(Native Method) at sun.font.FreetypeFontScaler.dispose(FreetypeFontScaler.java:167) at sun.java2d.Disposer.run(Disposer.java:146) at java.lang.Thread.run(Thread.java:636) Exception while removing reference: java.lang.NullPointerException java.lang.NullPointerException at sun.font.FreetypeFontScaler.disposeNativeScaler(Native Method) at sun.font.FreetypeFontScaler.dispose(FreetypeFontScaler.java:167) at sun.java2d.Disposer.run(Disposer.java:146) at java.lang.Thread.run(Thread.java:636) # # A fatal error has been detected by the Java Runtime Environment: # # SIGSEGV (0xb) at pc=0x00002aaaab621c28, pid=12911, tid=1158957376 # # JRE version: 6.0_17-b17 # Java VM: OpenJDK 64-Bit Server VM (14.0-b16 mixed mode linux-amd64 ) # Derivative: IcedTea6 1.7.5 # Distribution: Custom build (Wed Oct 13 13:04:40 EDT 2010) # Problematic frame: # J java.lang.String.getBytes(Ljava/lang/String;)[B # # An error report file with more information is saved as: # /tmp/hs_err_pid12911.log # # If you would like to submit a bug report, please include # instructions how to reproduce the bug and visit: # http://icedtea.classpath.org/bugzilla #
有人能告诉我们该如何解决这个问题?
提前致谢!
通常OpenJDK会带来很多问题。 我build议您安装Sun JDK。
如果您想使用替代方法将Oracle JDK添加为默认的Java程序:
替代scheme–install / usr / bin / java java /opt/jdk1.6.0_25/bin/java 2
选项–config java
selectOracle / SUN JDK
在你的tomcat中设置JAVA_HOME,编辑catalina.sh并添加:
导出JAVA_HOME = / opt / jdk1.6.0_25
OpenJDK错误跟踪器中最近有一些与此崩溃有关的活动: http : //icedtea.classpath.org/bugzilla/show_bug.cgi? id= 1326 http://icedtea.classpath.org/bugzilla/show_bug.cgi? ID = 2160
目标修复版本是icedtea-2.5.4,它应该映射到u71b14之后的OpenJDK7版本(因为u71b14对应于icedtea-2.5.3 )。