Hi,
Are you using Oracle’s JDK?
Thanks
-Vincent
On 15 Apr 2015 at 11:22:12, D R (rir.ceg(a)gmail.com) wrote:
Hi everybody,
I recently migrated our XWiki Windows Server installation to an Ubuntu
Server 14.10 (x64) setup with XWiki 7, Tomcat 8, Java 8 and Nginx proxy.
All issues that occurred were fixed and everything is running smoothly now
except for one thing.
JPG images don't show up on XWiki, I get the error output appended below.
The crucial line seems to be: "Could not initialize class
com.sun.imageio.plugins.jpeg.JPEGImageReader". I searched on google and
downgraded to JRE 7 but that didn't fix the issue so I re-installed JRE-8
and purged JRE-7 again.
Could someone please point me in the right direction how to fix this?
---[CATALINA LOG OUTPUT]---
WARN c.x.x.w.XWikiAction - Uncaught exception: Error number 0
in 11: Uncaught exception
com.xpn.xwiki.XWikiException: Error number 0 in 11: Uncaught exception
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:368)
[XWikiAction.class:na]
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:146)
[XWikiAction.class:na]
at
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:425)
[RequestProcessor.class:1.3.10]
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:228)
[RequestProcessor.class:1.3.10]
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
[ActionServlet.class:1.3.10]
at
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449)
[ActionServlet.class:1.3.10]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:618)
[tomcat8-servlet-api-8.0.9.jar:na]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:725)
[tomcat8-servlet-api-8.0.9.jar:na]
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)
[tomcat8-catalina-8.0.9.jar:8.0.9]
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
[tomcat8-catalina-8.0.9.jar:8.0.9]
at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:115)
[ActionFilter.class:na]
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
[tomcat8-catalina-8.0.9.jar:8.0.9]
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
[tomcat8-catalina-8.0.9.jar:8.0.9]
at
org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:127)
[ConversionFilter.class:na]
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
[tomcat8-catalina-8.0.9.jar:8.0.9]
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
[tomcat8-catalina-8.0.9.jar:8.0.9]
at
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
[tomcat8-websocket-8.0.9.jar:8.0.9]
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
[tomcat8-catalina-8.0.9.jar:8.0.9]
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
[tomcat8-catalina-8.0.9.jar:8.0.9]
at
org.xwiki.container.servlet.filters.internal.SetHTTPHeaderFilter.doFilter(SetHTTPHeaderFilter.java:63)
[SetHTTPHeaderFilter.class:na]
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
[tomcat8-catalina-8.0.9.jar:8.0.9]
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
[tomcat8-catalina-8.0.9.jar:8.0.9]
at
com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:66)
[XWikiDavFilter.class:na]
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
[tomcat8-catalina-8.0.9.jar:8.0.9]
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
[tomcat8-catalina-8.0.9.jar:8.0.9]
at
org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:208)
[SavedRequestRestorerFilter.class:na]
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
[tomcat8-catalina-8.0.9.jar:8.0.9]
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
[tomcat8-catalina-8.0.9.jar:8.0.9]
at
org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:111)
[SetCharacterEncodingFilter.class:na]
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
[tomcat8-catalina-8.0.9.jar:8.0.9]
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
[tomcat8-catalina-8.0.9.jar:8.0.9]
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)
[tomcat8-catalina-8.0.9.jar:8.0.9]
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
[tomcat8-catalina-8.0.9.jar:8.0.9]
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:503)
[tomcat8-catalina-8.0.9.jar:8.0.9]
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:136)
[tomcat8-catalina-8.0.9.jar:8.0.9]
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
[tomcat8-catalina-8.0.9.jar:8.0.9]
at
org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:610)
[tomcat8-catalina-8.0.9.jar:8.0.9]
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
[tomcat8-catalina-8.0.9.jar:8.0.9]
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:526)
[tomcat8-catalina-8.0.9.jar:8.0.9]
at
org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1078)
[tomcat8-coyote-8.0.9.jar:8.0.9]
at
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:655)
[tomcat8-coyote-8.0.9.jar:8.0.9]
at
org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:222)
[tomcat8-coyote-8.0.9.jar:8.0.9]
at
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1566)
[tomcat8-coyote-8.0.9.jar:8.0.9]
at
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1523)
[tomcat8-coyote-8.0.9.jar:8.0.9]
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
[na:1.8.0_40-internal]
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
[na:1.8.0_40-internal]
at
org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
[tomcat8-util-8.0.9.jar:8.0.9]
at java.lang.Thread.run(Thread.java:745) [na:1.8.0_40-internal]
Caused by: java.lang.NoClassDefFoundError: Could not initialize class
com.sun.imageio.plugins.jpeg.JPEGImageReader
at
com.sun.imageio.plugins.jpeg.JPEGImageReaderSpi.createReaderInstance(JPEGImageReaderSpi.java:85)
~[na:1.8.0_40-internal]
at
javax.imageio.spi.ImageReaderSpi.createReaderInstance(ImageReaderSpi.java:320)
~[na:1.8.0_40-internal]
at javax.imageio.ImageIO$ImageReaderIterator.next(ImageIO.java:529)
~[na:1.8.0_40-internal]
at javax.imageio.ImageIO$ImageReaderIterator.next(ImageIO.java:513)
~[na:1.8.0_40-internal]
at javax.imageio.ImageIO.read(ImageIO.java:1443)
~[na:1.8.0_40-internal]
at javax.imageio.ImageIO.read(ImageIO.java:1352)
~[na:1.8.0_40-internal]
at
com.xpn.xwiki.internal.plugin.image.DefaultImageProcessor.readImage(DefaultImageProcessor.java:58)
~[DefaultImageProcessor.class:na]
at
com.xpn.xwiki.plugin.image.ImagePlugin.shrinkImage(ImagePlugin.java:311)
~[ImagePlugin.class:na]
at
com.xpn.xwiki.plugin.image.ImagePlugin.downloadImageFromCache(ImagePlugin.java:285)
~[ImagePlugin.class:na]
at
com.xpn.xwiki.plugin.image.ImagePlugin.downloadImage(ImagePlugin.java:248)
~[ImagePlugin.class:na]
at
com.xpn.xwiki.plugin.image.ImagePlugin.downloadAttachment(ImagePlugin.java:221)
~[ImagePlugin.class:na]
at
com.xpn.xwiki.plugin.XWikiPluginManager.downloadAttachment(XWikiPluginManager.java:287)
~[XWikiPluginManager.class:na]
at com.xpn.xwiki.web.DownloadAction.render(DownloadAction.java:111)
~[DownloadAction.class:na]
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:345)
[XWikiAction.class:na]
... 47 common frames omitted
Thanks in advance,
Dennis
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users