I did but nothing seems to work. I tried setting protocol to 'SSLv3' still give the same error.
I wonder if Jetty is trying to apply the policy on the SSL httpendpoint. Jetty is supposed to apply policy only on the endpoints where we have http:policies enabled. Thanks Koti -----Original Message----- From: Guillaume Nodet [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 25, 2007 4:49 PM To: [email protected] Subject: Re: http: policies SSL Have you tried google: http://www.google.com/search?q=javax.net.ssl.SSLException%3A+Received+fatal+ alert%3A+bad_record_mac&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:officia l&client=firefox-a On 9/25/07, Reddy, Koti <[EMAIL PROTECTED]> wrote: > Hi, > > I am still getting the same error even with the 3.1.2 version. > > Please see below > <body> > <h2>HTTP ERROR: 500</h2> > <pre>javax.net.ssl.SSLException: Received fatal alert: > bad_record_mac</pre> > <p>RequestURI=/services/testProxy/</p> > <h3>Caused by:</h3> > <pre>java.lang.Exception: javax.net.ssl.SSLException: Received > fatal > alert: bad_record_mac > at > org.apache.servicemix.http.processors.ConsumerProcessor.process(Consum > erProc > essor.java:219) > at > org.apache.servicemix.http.HttpBridgeServlet.doPost(HttpBridgeServlet. > java:7 > 1) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) > at > org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:445) > at > org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:356) > at > org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:627) > at > org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandl > erColl > ection.java:149) > at > org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.j > ava:12 > 3) > at > org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:141) > at org.mortbay.jetty.Server.handle(Server.java:265) > at > org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:430) > at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:333) > at > org.mortbay.jetty.nio.HttpChannelEndPoint.run(HttpChannelEndPoint.java:270) > at > org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool. > java:4 > 75) > Caused by: javax.net.ssl.SSLException: Received fatal alert: bad_record_mac > at > com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.java:166) > at > com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.java:117) > at > com.sun.net.ssl.internal.ssl.SSLSocketImpl.recvAlert(SSLSocketImpl.jav > a:1584 > ) > at > com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.ja > va:866 > ) > at > com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SSL > Socket > Impl.java:1030) > at > com.sun.net.ssl.internal.ssl.SSLSocketImpl.writeRecord(SSLSocketImpl.j > ava:62 > 2) > at > com.sun.net.ssl.internal.ssl.AppOutputStream.write(AppOutputStream.java:59) > at > java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:65) > at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:123) > at java.io.FilterOutputStream.flush(FilterOutputStream.java:123) > at > org.apache.commons.httpclient.methods.EntityEnclosingMethod.writeReque > stBody > (EntityEnclosingMethod.java:502) > at > org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBa > se.jav > a:1973) > at > org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.ja > va:993 > ) > at > org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(Http > Method > Director.java:397) > at > org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMet > hodDir > ector.java:170) > at > org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396) > at > org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:346) > at > org.apache.servicemix.http.processors.ProviderProcessor.process(Provid > erProc > essor.java:169) > at > org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLif > eCycle > .java:489) > at > org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncB > aseLif > eCycle.java:441) > at > org.apache.servicemix.common.BaseLifeCycle.onMessageExchange(BaseLifeC > ycle.j > ava:46) > at > org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound > (Deliv > eryChannelImpl.java:593) > at > org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.java: > 174) > at > org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.ja > va:176 > ) > at > org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.java:134) > at > edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Work > er.run > Task(ThreadPoolExecutor.java:665) > at > edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Work > er.run > (ThreadPoolExecutor.java:690) > at java.lang.Thread.run(Thread.java:595)</pre> > <h3>Caused by:</h3> > <pre>javax.net.ssl.SSLException: Received fatal alert: bad_record_mac > at > com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.java:166) > at > com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.java:117) > at > com.sun.net.ssl.internal.ssl.SSLSocketImpl.recvAlert(SSLSocketImpl.jav > a:1584 > ) > at > com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.ja > va:866 > ) > at > com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SSL > Socket > Impl.java:1030) > at > com.sun.net.ssl.internal.ssl.SSLSocketImpl.writeRecord(SSLSocketImpl.j > ava:62 > 2) > at > com.sun.net.ssl.internal.ssl.AppOutputStream.write(AppOutputStream.java:59) > at > java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:65) > at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:123) > at java.io.FilterOutputStream.flush(FilterOutputStream.java:123) > at > org.apache.commons.httpclient.methods.EntityEnclosingMethod.writeReque > stBody > (EntityEnclosingMethod.java:502) > at > org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBa > se.jav > a:1973) > at > org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.ja > va:993 > ) > at > org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(Http > Method > Director.java:397) > at > org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMet > hodDir > ector.java:170) > at > org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396) > at > org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:346) > at > org.apache.servicemix.http.processors.ProviderProcessor.process(Provid > erProc > essor.java:169) > at > org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLif > eCycle > .java:489) > at > org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncB > aseLif > eCycle.java:441) > at > org.apache.servicemix.common.BaseLifeCycle.onMessageExchange(BaseLifeC > ycle.j > ava:46) > at > org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound > (Deliv > eryChannelImpl.java:593) > at > org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.java: > 174) > at > org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.ja > va:176 > ) > at > org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.java:134) > at > edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Work > er.run > Task(ThreadPoolExecutor.java:665) > at > edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Work > er.run > (ThreadPoolExecutor.java:690) > at java.lang.Thread.run(Thread.java:595)</pre> > <p> > > Thanks > Koti > > -----Original Message----- > From: Guillaume Nodet [mailto:[EMAIL PROTECTED] > Sent: Tuesday, September 25, 2007 11:21 AM > To: [email protected] > Subject: Re: http: policies SSL > > Not really. Can you try with servicemix 3.1.2 ? There is a bug that > has been fixed which may be related > (https://issues.apache.org/activemq/browse/SM-972) ... > > On 9/25/07, Reddy, Koti <[EMAIL PROTECTED]> wrote: > > Hi, > > We have a Http Endpoint where we are using http:policies and We > > have another Http Endpoint where we are using SSL. These two are > > different deployables. Our SSL httpendpoint always works if I don't > > deploy the other service where I am using the http:policies. > > > > SSL Httpendpoint always fails with the error below when I try to > > invoke it when the other service with http:policies is deployed. > > > > My Question is : Is there any relation between SSL and http:policies? > > > > > > <body> > > <h2>HTTP ERROR: 500</h2> > > <pre>javax.net.ssl.SSLException: Received fatal alert: > > bad_record_mac</pre> > > <p>RequestURI=/services/testProxy/</p> > > <h3>Caused by:</h3> > > <pre>java.lang.Exception: javax.net.ssl.SSLException: Received > > fatal > > alert: bad_record_mac > > at > > org.apache.servicemix.http.processors.ConsumerProcessor.process(Cons > > um > > erProc > > essor.java:195) > > at > > org.apache.servicemix.http.HttpBridgeServlet.doPost(HttpBridgeServlet. > > java:7 > > 1) > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) > > at > > org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:48 > > 7) > > at > > org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java: > > 36 > > 7) at > > org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java: > > 71 > > 2) > > at > > org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHan > > dl > > erColl > > ection.java:211) > > at > > org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection > > .j > > ava:11 > > 4) > > at > > org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java: > > 13 > > 9) at org.mortbay.jetty.Server.handle(Server.java:285) > > at > > org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:5 > > 02 > > ) at > > org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:372) > > at > > org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.j > > av > > a:368) > > at > > org.mortbay.jetty.nio.SelectChannelConnector$RetryContinuation.run(S > > el > > ectCha > > nnelConnector.java:489) > > at > > org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool. > > java:4 > > 42) > > Caused by: javax.net.ssl.SSLException: Received fatal alert: > > bad_record_mac at > > com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.java:166) > > at > > com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.java:117) > > at > > com.sun.net.ssl.internal.ssl.SSLSocketImpl.recvAlert(SSLSocketImpl.j > > av > > a:1584 > > ) > > at > > com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl. > > ja > > va:866 > > ) > > at > > com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(S > > SL > > Socket > > Impl.java:1030) > > at > > com.sun.net.ssl.internal.ssl.SSLSocketImpl.writeRecord(SSLSocketImpl > > .j > > ava:62 > > 2) > > at > > com.sun.net.ssl.internal.ssl.AppOutputStream.write(AppOutputStream.j > > av > > a:59) at > > java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:6 > > 5) at > > java.io.BufferedOutputStream.flush(BufferedOutputStream.java:123) > > at > > org.apache.commons.httpclient.methods.EntityEnclosingMethod.writeReq > > ue > > stBody > > (EntityEnclosingMethod.java:502) > > at > > org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethod > > Ba > > se.jav > > a:1973) > > at > > org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase. > > ja > > va:993 > > ) > > at > > org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(Ht > > tp > > Method > > Director.java:397) > > at > > org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpM > > et > > hodDir > > ector.java:170) > > at > > org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.ja > > va > > :396) > > at > > org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.ja > > va > > :346) > > at > > org.apache.servicemix.http.processors.ProviderProcessor.process(Prov > > id > > erProc > > essor.java:157) > > at > > org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseL > > if > > eCycle > > .java:489) > > at > > org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(Asyn > > cB > > aseLif > > eCycle.java:441) > > at > > org.apache.servicemix.common.BaseLifeCycle.onMessageExchange(BaseLif > > eC > > ycle.j > > ava:46) > > at > > org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBou > > nd > > (Deliv > > eryChannelImpl.java:593) > > at > > > org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.java: > > 174) > > at > > org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow. > > ja > > va:176 > > ) > > at > > org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.ja > > va > > :134) > > at > > edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Wo > > rk > > er.run > > Task(ThreadPoolExecutor.java:665) > > at > > edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Wo > > rk > > er.run > > (ThreadPoolExecutor.java:690) > > at java.lang.Thread.run(Thread.java:595)</pre> > > <h3>Caused by:</h3> > > <pre>javax.net.ssl.SSLException: Received fatal alert: > > bad_record_mac at > > com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.java:166) > > at > > com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.java:117) > > at > > com.sun.net.ssl.internal.ssl.SSLSocketImpl.recvAlert(SSLSocketImpl.j > > av > > a:1584 > > ) > > at > > com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl. > > ja > > va:866 > > ) > > at > > com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(S > > SL > > Socket > > Impl.java:1030) > > at > > com.sun.net.ssl.internal.ssl.SSLSocketImpl.writeRecord(SSLSocketImpl > > .j > > ava:62 > > 2) > > at > > com.sun.net.ssl.internal.ssl.AppOutputStream.write(AppOutputStream.j > > av > > a:59) at > > java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:6 > > 5) at > > java.io.BufferedOutputStream.flush(BufferedOutputStream.java:123) > > at > > org.apache.commons.httpclient.methods.EntityEnclosingMethod.writeReq > > ue > > stBody > > (EntityEnclosingMethod.java:502) > > at > > org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethod > > Ba > > se.jav > > a:1973) > > at > > org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase. > > ja > > va:993 > > ) > > at > > org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(Ht > > tp > > Method > > Director.java:397) > > at > > org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpM > > et > > hodDir > > ector.java:170) > > at > > org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.ja > > va > > :396) > > at > > org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.ja > > va > > :346) > > at > > org.apache.servicemix.http.processors.ProviderProcessor.process(Prov > > id > > erProc > > essor.java:157) > > at > > org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseL > > if > > eCycle > > .java:489) > > at > > org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(Asyn > > cB > > aseLif > > eCycle.java:441) > > at > > org.apache.servicemix.common.BaseLifeCycle.onMessageExchange(BaseLif > > eC > > ycle.j > > ava:46) > > at > > org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBou > > nd > > (Deliv > > eryChannelImpl.java:593) > > at > > > org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.java: > > 174) > > at > > org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow. > > ja > > va:176 > > ) > > at > > org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.ja > > va > > :134) > > at > > edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Wo > > rk > > er.run > > Task(ThreadPoolExecutor.java:665) > > at > > edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Wo > > rk > > er.run > > (ThreadPoolExecutor.java:690) > > at java.lang.Thread.run(Thread.java:595)</pre> > > <p> > > <i> > > <small> > > <a href="http://jetty.mortbay.org/" > > <http://jetty.mortbay.org/> >Powered by Jetty://</a> > > </small> > > </i> > > </p> > > <br/> > > <br/> > > <br/> > > <br/> > > <br/> > > <br/> > > <br/> > > <br/> > > <br/> > > <br/> > > <br/> > > <br/> > > <br/> > > <br/> > > <br/> > > <br/> > > <br/> > > <br/> > > <br/> > > <br/> > > </body> > > </html> > > > > Thanks > > Koti Reddy > > > > > > > -- > Cheers, > Guillaume Nodet > ------------------------ > Blog: http://gnodet.blogspot.com/ > -- Cheers, Guillaume Nodet ------------------------ Blog: http://gnodet.blogspot.com/
