java.lang.IllegalArgumentException: badly encoded request

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via ejbca by plagri
, 1 year ago
java.lang.IllegalArgumentException: badly encoded request
at org.bouncycastle.jce.PKCS10CertificationRequest.toDERSequence(Unknown Source)
at org.ejbca.core.protocol.PKCS10RequestMessage.init(PKCS10RequestMessage.java:126)
at org.ejbca.core.protocol.PKCS10RequestMessage.(PKCS10RequestMessage.java:109)
at org.ejbca.ui.web.RequestHelper.genPKCS10RequestMessageFromPEM(RequestHelper.java:465)
at org.ejbca.ui.web.RequestHelper.pkcs10CertRequest(RequestHelper.java:165)
at org.ejbca.ui.web.RequestHelper.pkcs10CertRequest(RequestHelper.java:192)
at org.ejbca.ui.web.pub.CertReqServlet.doPost(CertReqServlet.java:296)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
at java.lang.Thread.run(Thread.java:595)

Users with the same issue

You are the first who have seen this exception.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.