hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oleg Kalnichevski <ol...@apache.org>
Subject RE: NTLM Issues
Date Thu, 26 Jul 2007 13:03:46 GMT
On Tue, 2007-07-24 at 14:37 -0300, Ivan Nobre Vereiski wrote:

Ivan,

This exception occurs due to the HttpClient failure to initialize a
cypher required by the NTLM auth scheme, which in its turn caused by an
exception in the Bouncycastle JCE provider. What causes the problem with
Bouncycastle in the first place I cannot tell. Apparently it has
something to do with an X509 certificate failing verification.
...
 java.security.InvalidKeyException: Public key presented not for
certificate signature
  at

org.bouncycastle.jce.provider.X509CertificateObject.verify(X509CertificateObject.java:630)
...

This is all I can tell you. You may want to seek additional support with
Bouncycastle folks.

Oleg

> 
> HTTP Status 500 - 
> 
> ------------------------------------------------------------------------
> --------
> 
> type Exception report
> 
> message 
> 
> description The server encountered an internal error () that prevented
> it from fulfilling this request.
> 
> exception 
> 
> javax.servlet.ServletException: Servlet execution threw an exception
> 	at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
> tionFilterChain.java:269)
> 	at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
> erChain.java:193)
> 	at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
> e.java:256)
> 	at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
> nvokeNext(StandardPipeline.java:643)
> 	at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
> 80)
> 	at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> 	at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
> e.java:191)
> 	at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
> nvokeNext(StandardPipeline.java:643)
> 	at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
> 80)
> 	at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> 	at
> org.apache.catalina.core.StandardContext.invoke(StandardContext.java:241
> 7)
> 	at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
> :180)
> 	at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
> nvokeNext(StandardPipeline.java:643)
> 	at
> org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherVa
> lve.java:171)
> 	at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
> nvokeNext(StandardPipeline.java:641)
> 	at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
> :172)
> 	at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
> nvokeNext(StandardPipeline.java:641)
> 	at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
> 80)
> 	at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> 	at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
> java:174)
> 	at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
> nvokeNext(StandardPipeline.java:643)
> 	at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
> 80)
> 	at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> 	at
> org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:193)
> 	at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:78
> 1)
> 	at
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processC
> onnection(Http11Protocol.java:549)
> 	at
> org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:58
> 9)
> 	at
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
> .java:666)
> 	at java.lang.Thread.run(Thread.java:534)
> 
> 
> root cause 
> 
> java.lang.ExceptionInInitializerError
> 	at javax.crypto.Cipher.a(DashoA6275)
> 	at javax.crypto.Cipher.getInstance(DashoA6275)
> 	at
> org.apache.commons.httpclient.auth.NTLM.getCipher(NTLM.java:113)
> 	at
> org.apache.commons.httpclient.auth.NTLM.encrypt(NTLM.java:164)
> 	at
> org.apache.commons.httpclient.auth.NTLM.hashPassword(NTLM.java:466)
> 	at
> org.apache.commons.httpclient.auth.NTLM.getType3Message(NTLM.java:417)
> 	at
> org.apache.commons.httpclient.auth.NTLMScheme.authenticate(NTLMScheme.ja
> va:344)
> 	at
> org.apache.commons.httpclient.HttpMethodDirector.authenticateProxy(HttpM
> ethodDirector.java:319)
> 	at
> org.apache.commons.httpclient.HttpMethodDirector.authenticate(HttpMethod
> Director.java:231)
> 	at
> org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMetho
> dDirector.java:169)
> 	at
> org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:3
> 96)
> 	at
> org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:3
> 24)
> 	at
> br.com.scopus.ocsp.teste.ocspjar.OCSPQuery.post(OCSPQuery.java:244)
> 	at
> br.com.scopus.ocsp.teste.ocspjar.OCSPQuery.post(OCSPQuery.java:432)
> 	at
> br.com.scopus.ocsp.teste.ocspjar.OCSPQuery.execute(OCSPQuery.java:534)
> 	at
> br.com.scopus.ocsp.servlet.OCSPServlet.OCSPMain(OCSPServlet.java:217)
> 	at
> br.com.scopus.ocsp.servlet.OCSPServlet.doGet(OCSPServlet.java:31)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> 	at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
> tionFilterChain.java:247)
> 	at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
> erChain.java:193)
> 	at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
> e.java:256)
> 	at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
> nvokeNext(StandardPipeline.java:643)
> 	at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
> 80)
> 	at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> 	at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
> e.java:191)
> 	at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
> nvokeNext(StandardPipeline.java:643)
> 	at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
> 80)
> 	at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> 	at
> org.apache.catalina.core.StandardContext.invoke(StandardContext.java:241
> 7)
> 	at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
> :180)
> 	at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
> nvokeNext(StandardPipeline.java:643)
> 	at
> org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherVa
> lve.java:171)
> 	at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
> nvokeNext(StandardPipeline.java:641)
> 	at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
> :172)
> 	at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
> nvokeNext(StandardPipeline.java:641)
> 	at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
> 80)
> 	at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> 	at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
> java:174)
> 	at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
> nvokeNext(StandardPipeline.java:643)
> 	at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
> 80)
> 	at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> 	at
> org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:193)
> 	at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:78
> 1)
> 	at
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processC
> onnection(Http11Protocol.java:549)
> 	at
> org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:58
> 9)
> 	at
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
> .java:666)
> 	at java.lang.Thread.run(Thread.java:534)
> Caused by: java.lang.SecurityException: Cannot set up certs for trusted
> CAs
> 	at javax.crypto.SunJCE_b.(DashoA6275)
> 	... 48 more
> Caused by: java.security.PrivilegedActionException:
> java.security.InvalidKeyException: Public key presented not for
> certificate signature
> 	at java.security.AccessController.doPrivileged(Native Method)
> 	... 49 more
> Caused by: java.security.InvalidKeyException: Public key presented not
> for certificate signature
> 	at
> org.bouncycastle.jce.provider.X509CertificateObject.verify(X509Certifica
> teObject.java:630)
> 	at javax.crypto.SunJCE_b.c(DashoA6275)
> 	at javax.crypto.SunJCE_b.b(DashoA6275)
> 	at javax.crypto.SunJCE_s.run(DashoA6275)
> 	... 50 more
> 
> 
> 
> ------------------------------------------------------------------------
> --------
> 
> Apache Tomcat/4.1.29
> 
> 
> 
> AVISO LEGAL:
> Esta mensagem e destinada exclusivamente para a(s) pessoa(s) a quem e dirigida,podendo
conter informacao confidencial e/ou legalmente privilegiada. Se voce nao for destinatario
desta mensagem, desde ja fica notificado de abster-se a divulgar, copiar,distribuir, examinar
ou, de qualquer forma, utilizar a informacao contida nesta mensagem,por ser ilegal. Caso voce
tenha recebido esta mensagem por engano, pedimos que nos retorne este E-Mail, promovendo,
desde logo, a eliminacao do seu conteudo em sua base de dados, registros ou sistema de controle.
Fica desprovida de eficacia e validade a mensagem que contiver vinculos obrigacionais, expedida
por quem nao detenha poderes de representacao.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: httpclient-user-help@jakarta.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpclient-user-help@jakarta.apache.org


Mime
View raw message