I encountered the following error when attempting to view a request:
SSL_DIR=/etc/httpd/alias curl -v -k --cert ipaCert:$(cat /etc/httpd/alias/pwdfile.txt) \ https://$(hostname):8443/ca/rest/certrequests/9990005 ... (request) < HTTP/1.1 500 Internal Server Error < Server: Apache-Coyote/1.1 < Cache-Control: private < Expires: Thu, 01 Jan 1970 10:00:00 AEST < Set-Cookie: JSESSIONID=E18EFA5D760337EAB402ACF4B8B85A93; Path=/ca/; Secure; HttpOnly < Content-Type: text/html;charset=utf-8 < Content-Language: en < Content-Length: 7114 < Date: Thu, 17 Mar 2016 06:34:46 GMT < Connection: close < <!DOCTYPE html><html><head><title>Apache Tomcat/8.0.26 - Error report</title><style type="text/css">H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;col or:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-famil y:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}.line {height: 1px; background-color: #525D76; border: none;}</style> </head><body><h1>HTTP Status 500 - java.lang.ClassCastException: netscape.security.x509.Extension cannot be cast to netscape.security.x509.CRLDistributionPointsExtension</h1><div class="line"></div><p><b>type</b> E xception report</p><p><b>message</b> <u>java.lang.ClassCastException: netscape.security.x509.Extension cannot be cast to netscape.security.x509.CRLDistributionPointsExtension</u></p><p><b>description</b> <u>The server encountered an inte rnal error that prevented it from fulfilling this request.</u></p><p><b>exception</b></p><pre>org.jboss.resteasy.spi.UnhandledException: java.lang.ClassCastException: netscape.security.x509.Extension cannot be cast to netscape.security.x 509.CRLDistributionPointsExtension org.jboss.resteasy.core.ExceptionHandler.handleApplicationException(ExceptionHandler.java:76) org.jboss.resteasy.core.ExceptionHandler.handleException(ExceptionHandler.java:212) org.jboss.resteasy.core.SynchronousDispatcher.writeException(SynchronousDispatcher.java:149) org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:372) org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:179) org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:220) org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:56) ... </pre><p><b>root cause</b></p><pre>java.lang.ClassCastException: netscape.security.x509.Extension cannot be cast to netscape.security.x509.CRLDistributionPointsExtension com.netscape.cms.profile.def.CRLDistributionPointsExtDefault.getValue(CRLDistributionPointsExtDefault.java:403) com.netscape.cms.profile.def.EnrollDefault.getValue(EnrollDefault.java:286) com.netscape.cms.servlet.profile.PolicyDefaultFactory.create(PolicyDefaultFactory.java:46) com.netscape.cms.servlet.cert.CertReviewResponseFactory.create(CertReviewResponseFactory.java:112) com.netscape.cms.servlet.cert.CertRequestDAO.reviewRequest(CertRequestDAO.java:145) org.dogtagpki.server.ca.rest.CertRequestService.reviewRequest(CertRequestService.java:291) ...
The cause is that the static initialiser of the CRLDistributionPointsExtension class has not been invoked.
Fixed on master (93421622ce1ba1bf97d45bca8f346a112c4cf246)
Metadata Update from @ftweedal: - Issue assigned to ftweedal - Issue set to the milestone: 10.3.0.a2
Dogtag PKI is moving from Pagure issues to GitHub issues. This means that existing or new issues will be reported and tracked through Dogtag PKI's GitHub Issue tracker.
This issue has been cloned to GitHub and is available here: https://github.com/dogtagpki/pki/issues/2357
If you want to receive further updates on the issue, please navigate to the GitHub issue and click on Subscribe button.
Subscribe
Thank you for understanding, and we apologize for any inconvenience.
Login to comment on this ticket.