After upgrade confluence 6.9.0 to 6.14.1 I see problem with class javax.imageio.ImageTypeSpecifier

Andrew I March 4, 2019

Hello!

I upgraded confluence from 6.9.0 to 6.14.1.  I am getting 500 code in browser for links like this: https://wiki.mycompany.com/plugins/servlet/confluence/placeholder/macro?definition=e211bHRpZXhjZXJwdC1pbmNsdWRlOlNwYWNlV2l0aEV4Y2VycHQ9REV8TXVsdGlFeGNlcnB0TmFtZT1NZWRpYXRpb24gQUIgdGVzdGluZ3xQYWdlV2l0aEV4Y2VycHQ9QW5kcm9pZCBTREsuIEludGVncmF0aW9uIEd1aWRlfQ&locale=en_GB&version=2

Screen Shot 2019-03-04 at 6.08.19 PM.png

Cause

javax.servlet.ServletException: Servlet execution threw an exception
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:238)

caused by: java.lang.NoClassDefFoundError: Could not initialize class javax.imageio.ImageTypeSpecifier
    at com.sun.imageio.plugins.png.PNGImageReader.getImageTypes(PNGImageReader.java:1508)

Stack Trace:[hide]




javax.servlet.ServletException: Servlet execution threw an exception at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:238) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at com.atlassian.confluence.web.filter.DebugFilter.doFilter(DebugFilter.java:46) at com.atlassian.core.filters.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:32) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:39) at com.atlassian.plugin.servlet.filter.DelegatingPluginFilter$1.doFilter(DelegatingPluginFilter.java:58) at com.atlassian.confluence.extra.webdav.servlet.filter.ReverseProxyCopyAndMoveDestinationFix.doFilter(ReverseProxyCopyAndMoveDestinationFix.java:53) ... Caused by: java.lang.NoClassDefFoundError: Could not initialize class javax.imageio.ImageTypeSpecifier at com.sun.imageio.plugins.png.PNGImageReader.getImageTypes(PNGImageReader.java:1508) at com.sun.imageio.plugins.png.PNGImageReader.readImage(PNGImageReader.java:1318) at com.sun.imageio.plugins.png.PNGImageReader.read(PNGImageReader.java:1614) at javax.imageio.ImageIO.read(ImageIO.java:1448) at javax.imageio.ImageIO.read(ImageIO.java:1352) at com.atlassian.confluence.tinymceplugin.placeholder.DefaultPlaceholderImageFactory.getIcon(DefaultPlaceholderImageFactory.java:190) at com.atlassian.confluence.tinymceplugin.placeholder.DefaultPlaceholderImageFactory.getPlaceholderImage(DefaultPlaceholderImageFactory.java:87) at com.atlassian.confluence.tinymceplugin.placeholder.DefaultPlaceholderImageFactory.getPlaceholderImage(DefaultPlaceholderImageFactory.java:49) at com.atlassian.confluence.tinymceplugin.placeholder.MacroPlaceholderServlet.getPlaceholderImage(MacroPlaceholderServlet.java:117) at com.atlassian.confluence.tinymceplugin.placeholder.MacroPlaceholderServlet.doGet(MacroPlaceholderServlet.java:93) at javax.servlet.http.HttpServlet.service(HttpServlet.java:634) at javax.servlet.http.HttpServlet.service(HttpServlet.java:741) at com.atlassian.plugin.servlet.DelegatingPluginServlet.service(DelegatingPluginServlet.java:37) at javax.servlet.http.HttpServlet.service(HttpServlet.java:741) at com.atlassian.plugin.servlet.ServletModuleContainerServlet.service(ServletModuleContainerServlet.java:46) at javax.servlet.http.HttpServlet.service(HttpServlet.java:741) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231) ... 313 more

 

Help me please resolve this problem! 

1 answer

0 votes
Diego
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 5, 2019

Hello there! Thanks for sharing with the Community.

First thing, I would like to ask you a few questions:

  1. Is this your production instance?
  2. What kind of problems does this error bring?
  3. If there is any on-screen error, does it affect all users?
  4. Is this present in any page that you visit?
  5. Is your instance currently up and running?
  6. Are you able to normally create and edit content within Confluence?
  7. Which version of Java do you have installed?

Also, looking through Stackoverflow, I was able to find a similar issue:

Could not initialize class javax.imageio.ImageIO

The issue was related to the use of OpenJDK. Is that your case?

Let us know!

Andrew I March 6, 2019

Problem has been resolved after reboot server =)

I have one more type of error in log file:

2019-03-06 09:09:20,669 ERROR [http-nio-8091-exec-130] [link.preview.rest.LicenseManager] validateKey ERROR LICENSE IS EMPTY
-- referer: https://wiki.mycompany.com/display/PS/Documentation | url: /rest/link-preview/1.0/licenseManager/validate | traceId: 21ccd9f29fec260e | userName: andrew

Answers for your questions for new errors:

1. Production

2. I didn't see any visual problems, only errors in log

3. -

4. This present only when I visit any pages in spaces.

5. Instance currently up and running.

6. I can edit and create content.

Diego
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 6, 2019

Great to hear that the issue is gone!

This new excerpt you provided us with is most likely related to a third-party plugin:

Link Preview For Confluence

This is telling us that there is a problem with the license for this plugin. If you were running a trial you may need to update it. Or if you did not insert a license, you will need to do so.

Let us know!

Andrew I March 7, 2019

Thanks for the quick response!
But this plugin is free.
I use confluence instance paid version (250 users)

Screen Shot 2019-03-07 at 1.51.40 PM.png

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events