Uploaded image for project: 'EJBCA'
  1. EJBCA
  2. ECA-8538

Regression: exception clicking on "Clear caches" button

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: EJBCA 7.3.0
    • Component/s: None
    • Labels:
      None
    • Issue discovered during:
      Ad Hoc
    • Sprint:
      EJBCA Team Alice - 2019 w37

      Description

      I think this is a regression fro IPv6 work?

       

      Caused by: java.lang.RuntimeException: java.lang.StringIndexOutOfBoundsException: String index out of range: 0
      	at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1529)
      	at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1515)
      	at java.base/sun.net.www.protocol.http.HttpURLConnection.getHeaderField(HttpURLConnection.java:3126)
      	at java.base/java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:536)
      	at deployment.ejbca.ear.adminweb.war//org.ejbca.ui.web.admin.configuration.EjbcaWebBeanImpl.checkHost(EjbcaWebBeanImpl.java:1166)
      	at deployment.ejbca.ear.adminweb.war//org.ejbca.ui.web.admin.configuration.EjbcaWebBeanImpl.clearClusterCache(EjbcaWebBeanImpl.java:1120)
      	at deployment.ejbca.ear.adminweb.war//org.ejbca.ui.web.admin.configuration.SystemConfigMBean.clearAllCaches(SystemConfigMBean.java:512)
      	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
      	at org.glassfish.javax.el//com.sun.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:181)
      	at org.glassfish.javax.el//com.sun.el.parser.AstValue.invoke(AstValue.java:289)
      	at org.glassfish.javax.el//com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:304)
      	at org.jboss.weld.core//org.jboss.weld.util.el.ForwardingMethodExpression.invoke(ForwardingMethodExpression.java:40)
      	at org.jboss.weld.core//org.jboss.weld.el.WeldMethodExpression.invoke(WeldMethodExpression.java:50)
      	at org.jboss.weld.core//org.jboss.weld.util.el.ForwardingMethodExpression.invoke(ForwardingMethodExpression.java:40)
      	at org.jboss.weld.core//org.jboss.weld.el.WeldMethodExpression.invoke(WeldMethodExpression.java:50)
      	at com.sun.jsf-impl//com.sun.faces.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:105)
      	at javax.faces.api//javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:87)
      	... 64 more
      Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: 0
      	at java.base/java.lang.StringLatin1.charAt(StringLatin1.java:47)
      	at java.base/java.lang.String.charAt(String.java:693)
      	at java.base/sun.net.www.protocol.http.HttpURLConnection.stripIPv6ZoneId(HttpURLConnection.java:3376)
      	at java.base/sun.net.www.protocol.http.HttpURLConnection.writeRequests(HttpURLConnection.java:608)
      	at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1608)
      	at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1515)
      	at java.base/java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:527)
      
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              tomas Tomas Gustavsson
              Reporter:
              tomas Tomas Gustavsson
              Verified by:
              Henrik Sunmark
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 10 minutes
                  10m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 10 minutes
                  10m