Error "Exception in handleJPG: null" - WADO requests

103 views
Skip to first unread message

Clédio Paiva

unread,
Sep 24, 2018, 12:13:40 AM9/24/18
to dcm4che

Hello, im getting this error when i try to see jpg images in the dcm4chee-web3.

I'm using Dcm4chee 2.18.3, mysql on Centos 7.
I have more than 10 dcm4chee servers running in production. And this error occour only in one new server..

I just tried to reinstall the entire S.O. and software. But without success..

I aprecciate any sugesttions.. thanks.

2018-09-24 00:57:28,156 INFO  -> (http-0.0.0.0-8080-4) [org.dcm4chex.wado.web.WADOServlet] 155.155.1.10 - WADO URL:/wado?requestType=WADO&studyUID=1.2.840.113745.101000.1008000.38307.6602.6719543&seriesUID=1.3.12.2.1107.5.2.30.25016.30000004111915485560900008852&objectUID=1.3.12.2.1107.5.2.30.25016.30000004111915485560900008853&columns=128
2018-09-24 00:57:28,157 INFO  -> (http-0.0.0.0-8080-4) [org.dcm4chex.wado.mbean.WADOSupport] Get WADO object for 1.3.12.2.1107.5.2.30.25016.30000004111915485560900008853
2018-09-24 00:57:28,191 INFO  -> (http-0.0.0.0-8080-4) [org.dcm4chex.wado.mbean.WADOSupport] start decompression of image: 256x240 (current codec tasks: compress&decompress:1 compress:1)
2018-09-24 00:57:28,209 INFO  -> (http-0.0.0.0-8080-4) [org.dcm4chex.wado.mbean.WADOSupport] finished decompression. (remaining codec tasks: compress&decompress:0 decompress:0)
2018-09-24 00:57:28,209 ERROR -> (http-0.0.0.0-8080-4) [org.dcm4chex.wado.mbean.WADOSupport] Exception in handleJpg: null
java
.lang.NullPointerException
        at sun
.font.FontManager.getDefaultPlatformFont(FontManager.java:3409)
        at sun
.java2d.SunGraphicsEnvironment$2.run(SunGraphicsEnvironment.java:263)
        at java
.security.AccessController.doPrivileged(Native Method)
        at sun
.java2d.SunGraphicsEnvironment.<init>(SunGraphicsEnvironment.java:164)
        at sun
.awt.X11GraphicsEnvironment.<init>(X11GraphicsEnvironment.java:254)
        at sun
.reflect.GeneratedConstructorAccessor121.newInstance(Unknown Source)
        at sun
.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java
.lang.reflect.Constructor.newInstance(Constructor.java:534)
        at java
.lang.Class.newInstance(Class.java:379)
        at java
.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:82)
        at java
.awt.image.BufferedImage.createGraphics(BufferedImage.java:1181)
        at org
.dcm4chex.wado.mbean.WADOSupport.resize(WADOSupport.java:1478)
        at org
.dcm4chex.wado.mbean.WADOSupport.getImage(WADOSupport.java:1390)
        at org
.dcm4chex.wado.mbean.WADOSupport.getBufferedImage(WADOSupport.java:892)
        at org
.dcm4chex.wado.mbean.WADOSupport.getImage(WADOSupport.java:858)
        at org
.dcm4chex.wado.mbean.WADOSupport.handleImage(WADOSupport.java:782)
        at org
.dcm4chex.wado.mbean.WADOSupport.getWADOObject(WADOSupport.java:385)
        at org
.dcm4chex.wado.mbean.WADOService.getWADOObject(WADOService.java:511)
        at sun
.reflect.GeneratedMethodAccessor153.invoke(Unknown Source)
        at sun
.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java
.lang.reflect.Method.invoke(Method.java:622)
        at org
.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
        at org
.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
        at org
.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
        at org
.jboss.mx.server.Invocation.invoke(Invocation.java:88)
        at org
.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
        at org
.jboss.mx.server.Invocation.invoke(Invocation.java:88)
        at org
.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
        at org
.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
        at org
.dcm4chex.wado.web.WADOServiceDelegate.getWADOObject(WADOServiceDelegate.java:124)
        at org
.dcm4chex.wado.web.WADOServlet.doGet(WADOServlet.java:114)
        at javax
.servlet.http.HttpServlet.service(HttpServlet.java:690)
        at javax
.servlet.http.HttpServlet.service(HttpServlet.java:803)
        at org
.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
        at org
.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org
.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
        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:230)
        at org
.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
        at org
.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)
        at org
.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
        at org
.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
        at org
.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
        at org
.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
        at org
.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:420)
        at org
.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at org
.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
        at org
.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
        at org
.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
        at org
.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
        at java
.lang.Thread.run(Thread.java:701)


Jon Ander Zuccaro

unread,
Sep 25, 2018, 12:45:58 AM9/25/18
to dcm4che
Are you using OpenJDK or the Orcale one? What version?

What's the output of "java --version"?

Did you updated Java recently?

Clédio Paiva

unread,
Sep 25, 2018, 4:17:32 PM9/25/18
to dcm4che
Hello, i'm using openjdk from EPEL repo on linux centos 7.

the output is:
java version "1.6.0_41"
OpenJDK Runtime Environment (IcedTea6 1.13.13) (rhel-1.13.13.1.el7_3-x86_64)
OpenJDK 64-Bit Server VM (build 23.41-b41, mixed mode)

This machine has a clean installation of the CentOS 7.

Thanks

Jon Ander Zuccaro

unread,
Sep 25, 2018, 5:25:59 PM9/25/18
to dcm4che
Please take a look at this:


Something broke after OpenJDK 1.6.0_39

Can you confirm that all your previous installations are also running 1.6.0_41?

There is a possibility that this is not dcm4chee related. Could you try downgrading to something previous to 1.6.0_39 or perhaps try the Oracle JDK?

Clédio Paiva

unread,
Sep 25, 2018, 5:52:37 PM9/25/18
to dcm4che
yes, i've just done another installation, on another hardware today, using the same "1.6.0_41" and works fine ! (maybe it can be an hardware related issue).

I will try your suggestion, changing openJDK version, also trying Oracle JDK.  

Thanks !

Jon Ander Zuccaro

unread,
Sep 25, 2018, 6:04:55 PM9/25/18
to dcm4che
I know this sounds weird, but this problem appears to be related to some fonts that are missing from your system.

Are you running a headless server?

You could also try something like this:

yum install dejavu
*

That will install the Dejavu Font.

Make sure you restart JBoss afterwards
Message has been deleted

Clédio Moreira Paiva

unread,
Sep 28, 2018, 10:52:49 PM9/28/18
to dcm4che
it's just amazing, you really hit the bulls eye ..i could never imagine that the issue was just missing fonts...
I've installed the fonts, and it just worked ... 
Do you work for NASA or something like that?  thank you so much..
Voce é o cara.
Reply all
Reply to author
Forward
0 new messages