Exception when applying Auto Look and Feel
Platform Notice: Data Center Only - This article only applies to Atlassian apps on the Data Center platform.
Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Symptoms
Upload a Logo into JIRA
Attempt to apply the "Auto Look and Feel" feature
that is: Clicking on "To apply a color scheme that matches your logo, click here."
Browser exception
The following appears in the atlassian-jira.log:
2013-05-30 09:42:10,432 http-bio-127.0.0.1-18000-exec-16 ERROR [500ErrorPage.jsp] Exception caught in 500 page javax.imageio.IIOException: Can't get input stream from URL!
java.lang.RuntimeException: javax.imageio.IIOException: Can't get input stream from URL!
at com.atlassian.jira.lookandfeel.AutoLookAndFeelManager.getLogoInfo(AutoLookAndFeelManager.java:245)
at com.atlassian.jira.lookandfeel.AutoLookAndFeelManager.generateFromLogo(AutoLookAndFeelManager.java:53)
at com.atlassian.jira.lookandfeel.EditLookAndFeel.doAutoUpdateColors(EditLookAndFeel.java:368)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at webwork.util.InjectionUtils$DefaultInjectionImpl.invoke(InjectionUtils.java:70)
at webwork.util.InjectionUtils.invoke(InjectionUtils.java:56)
...
...
Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
at sun.security.validator.PKIXValidator.doBuild(Unknown Source)
at sun.security.validator.PKIXValidator.engineValidate(Unknown Source)
at sun.security.validator.Validator.validate(Unknown Source)
at sun.security.ssl.X509TrustManagerImpl.validate(Unknown Source)
at sun.security.ssl.X509TrustManagerImpl.checkTrusted(Unknown Source)
at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(Unknown Source)
... 208 more
Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
at sun.security.provider.certpath.SunCertPathBuilder.engineBuild(Unknown Source)
at java.security.cert.CertPathBuilder.build(Unknown Source)
... 214 moreor
2013-05-30 17:25:04,734 http-bio-8080-exec-16 ERROR [500ErrorPage.jsp] Exception caught in 500 page javax.imageio.IIOException: Can't get input stream from URL!
java.lang.RuntimeException: javax.imageio.IIOException: Can't get input stream from URL!
at com.atlassian.jira.lookandfeel.AutoLookAndFeelManager.getLogoInfo(AutoLookAndFeelManager.java:245)
at com.atlassian.jira.lookandfeel.AutoLookAndFeelManager.generateFromLogo(AutoLookAndFeelManager.java:53)
at com.atlassian.jira.lookandfeel.EditLookAndFeel.doAutoUpdateColors(EditLookAndFeel.java:368)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) <+1> (DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at webwork.util.InjectionUtils$DefaultInjectionImpl.invoke(InjectionUtils.java:70)
at webwork.util.InjectionUtils.invoke(InjectionUtils.java:56) <+2> (ActionSupport.java:433) (ActionSupport.java:157)
...
...
Caused by: java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:432)
at java.net.Socket.connect(Socket.java:529)
at java.net.Socket.connect(Socket.java:478)
at sun.net.NetworkClient.doConnect(NetworkClient.java:163)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:388)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:523)Cause
The "Auto Look and Feel" functionality uses the defined Base URL for reference. An invalid URL or an URL that cannot be access results in error. See bug report here:
Resolution
Check the Base URL
JIRA Administration > System > General Configuration > Base URL
Ensure that the defined URL is correct and valid
If not update it to the proper URL
If using SSL and Base URL is correct
In this case, you will be SSL related errors within the logs
Double check your SSL configurations and ensure that you have a certificate properly installed into the Java environment.
Was this helpful?