5 Replies Latest reply on Aug 19, 2010 4:23 PM by Nick Belaevski

    org.ajax4jsf.....getImage,NullPointerException at sun.awt.Fontconfiguration.getVersion

    Bernd Seidler Newbie

      Hello,

       

      I get NullpointerException when I deploy my RichFaces web app on my customers window server and ajax4jsf tries to render a standard RichFaces image.

       

      I am using RF 3.3.3 .

       

      The app runs on a windows server with Apache web server in front.

      I don't have this problem on other windows machines and also deployed it on a linux server without problems.

       

      Any help appreciated for solving this problem !!!

       

      I start the application and see the start page with the login rich:panel.

      After login, the next page should be rendered with tab panels and extended data tables.

      But I get this :

       

       

      SEVERE: Servlet.service() for servlet Faces Servlet threw exception
      java.lang.NullPointerException
          at sun.awt.FontConfiguration.getVersion(FontConfiguration.java:1173)
          at sun.awt.FontConfiguration.readFontConfigFile(FontConfiguration.java:146)
          at sun.awt.FontConfiguration.<init>(FontConfiguration.java:71)
          at sun.awt.windows.WFontConfiguration.<init>(WFontConfiguration.java:23)
          at sun.awt.Win32GraphicsEnvironment.createFontConfiguration(Win32GraphicsEnvironment.java:423)
          at sun.java2d.SunGraphicsEnvironment$2.run(SunGraphicsEnvironment.java:238)
          at java.security.AccessController.doPrivileged(Native Method)
          at sun.java2d.SunGraphicsEnvironment.<init>(SunGraphicsEnvironment.java:129)
          at sun.awt.Win32GraphicsEnvironment.<init>(Win32GraphicsEnvironment.java:79)
          at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
          at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
          at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
          at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
          at java.lang.Class.newInstance0(Class.java:355)
          at java.lang.Class.newInstance(Class.java:308)
          at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:68)
          at java.awt.image.BufferedImage.createGraphics(BufferedImage.java:1135)
          at org.ajax4jsf.resource.Java2Dresource.getImage(Java2Dresource.java:115)
          at org.ajax4jsf.resource.Java2Dresource.send(Java2Dresource.java:89)
          at org.ajax4jsf.resource.ResourceLifecycle.sendResource(ResourceLifecycle.java:221)
          at org.ajax4jsf.resource.ResourceLifecycle.send(ResourceLifecycle.java:160)
          at org.ajax4jsf.resource.InternetResourceService.load(InternetResourceService.java:335)
          at org.ajax4jsf.cache.LRUMapCache.load(LRUMapCache.java:116)
          at org.ajax4jsf.cache.LRUMapCache.get(LRUMapCache.java:87)
          at org.ajax4jsf.resource.InternetResourceService.serviceResource(InternetResourceService.java:195)
          at org.ajax4jsf.resource.InternetResourceService.serviceResource(InternetResourceService.java:141)
          at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:508)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
          at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
          at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
          at com.ocpsoft.pretty.PrettyFilter.doFilter(PrettyFilter.java:112)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
          at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:343)
          at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:109)
          at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83)
          at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355)
          at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:97)
          at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355)
          at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:100)
          at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355)
          at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:78)
          at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355)
          at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:54)
          at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355)
          at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:35)
          at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355)
          at org.springframework.security.web.authentication.www.BasicAuthenticationFilter.doFilter(BasicAuthenticationFilter.java:177)
          at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355)
          at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:187)
          at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355)
          at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:105)
          at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355)
          at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:79)
          at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355)
          at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:149)
          at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:237)
          at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
          at com.cheil.sfo.jsf.ViewStateFilter.doFilter(ViewStateFilter.java:51)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
          at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
          at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
          at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
          at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
          at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
          at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
          at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190)
          at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:291)
          at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:774)
          at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:703)
          at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:896)
          at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690)
          at java.lang.Thread.run(Thread.java:619)