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
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)
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!
Hello there! Thanks for sharing with the Community.
First thing, I would like to ask you a few questions:
- Is this your production instance?
- What kind of problems does this error bring?
- If there is any on-screen error, does it affect all users?
- Is this present in any page that you visit?
- Is your instance currently up and running?
- Are you able to normally create and edit content within Confluence?
- 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!
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Great to hear that the issue is gone!
This new excerpt you provided us with is most likely related to a third-party plugin:
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!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.