javax.crypto.AEADBadTagException: Tag mismatch!

Solution Verified - Updated -

Issue

  • JBOSS Fuse is throwing below error while calling an internal back end application. Through soapUI, a valid response is being returned from backend service.
  • Logs
15:03:35,109 | ERROR | saction.request] | LogTransaction                   | 370 - SomeTransactionManager - 1.0.2.1 | service="SomeTransactionManager" isPCI="false" operationName="someOperation" transactionId="xxx-yyy-zzz" creationDateTime="2016-08-10T09:30:44Z" overallDuration="10534ms" state="FAILED" error="javax.net.ssl.SSLException: Tag mismatch!" stackTrace="javax.net.ssl.SSLException: Tag mismatch!
n  |    at sun.security.ssl.Alerts.getSSLException(Alerts.java:208)
n  |    at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1937)
n  |    at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1008)
n  |    at sun.security.ssl.SSLSocketImpl.readDataRecord(SSLSocketImpl.java:918)
n  |    at sun.security.ssl.AppInputStream.read(AppInputStream.java:105)
n  |    at org.apache.http.impl.conn.LoggingInputStream.read(LoggingInputStream.java:87)
n  |    at org.apache.http.impl.io.SessionInputBufferImpl.streamRead(SessionInputBufferImpl.java:139)
n  |    at org.apache.http.impl.io.SessionInputBufferImpl.read(SessionInputBufferImpl.java:200)
n  |    at org.apache.http.impl.io.ContentLengthInputStream.read(ContentLengthInputStream.java:178)
n  |    at org.apache.http.conn.EofSensorInputStream.read(EofSensorInputStream.java:137)
n  |    at org.apache.http.conn.EofSensorInputStream.read(EofSensorInputStream.java:150)
n  |    at org.apache.camel.util.IOHelper.copy(IOHelper.java:204)
n  |    at org.apache.camel.util.IOHelper.copy(IOHelper.java:169)
n  |    at org.apache.camel.util.IOHelper.copy(IOHelper.java:165)
n  |    at org.apache.camel.component.http4.HttpProducer.doExtractResponseBodyAsStream(HttpProducer.java:372)
n  |    at org.apache.camel.component.http4.HttpProducer.extractResponseBody(HttpProducer.java:355)
n  |    at org.apache.camel.component.http4.HttpProducer.populateResponse(HttpProducer.java:213)
n  |    at org.apache.camel.component.http4.HttpProducer.process(HttpProducer.java:183)
n  |    at org.apache.camel.util.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:61)
n  |    at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:145)
n  |    at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:77)
n  |    at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:468)
n  |    at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:196)
n  |    at org.apache.camel.processor.Pipeline.process(Pipeline.java:121)
n  |    at org.apache.camel.processor.Pipeline.process(Pipeline.java:83)
n  |    at org.apache.camel.processor.ChoiceProcessor.process(ChoiceProcessor.java:117)
n  |    at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:77)
n  |    at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:468)
n  |    at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:196)
n  |    at org.apache.camel.processor.Pipeline.process(Pipeline.java:121)
n  |    at org.apache.camel.processor.Pipeline.process(Pipeline.java:83)
n  |    at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:196)
n  |    at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:109)
n  |    at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:91)
n  |    at org.apache.camel.component.jms.EndpointMessageListener.onMessage(EndpointMessageListener.java:112)
n  |    at org.springframework.jms.listener.AbstractMessageListenerContainer.doInvokeListener(AbstractMessageListenerContainer.java:555)
n  |    at org.springframework.jms.listener.AbstractMessageListenerContainer.invokeListener(AbstractMessageListenerContainer.java:515)
n  |    at org.springframework.jms.listener.AbstractMessageListenerContainer.doExecuteListener(AbstractMessageListenerContainer.java:485)
n  |    at org.springframework.jms.listener.AbstractPollingMessageListenerContainer.doReceiveAndExecute(AbstractPollingMessageListenerContainer.java:325)
n  |    at org.springframework.jms.listener.AbstractPollingMessageListenerContainer.receiveAndExecute(AbstractPollingMessageListenerContainer.java:263)
n  |    at org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.invokeListener(DefaultMessageListenerContainer.java:1103)
n  |    at org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.executeOngoingLoop(DefaultMessageListenerContainer.java:1095)
n  |    at org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.run(DefaultMessageListenerContainer.java:992)
n  |    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
n  |    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
n  |    at java.lang.Thread.run(Thread.java:745)
n  | Caused by: javax.crypto.AEADBadTagException: Tag mismatch!
n  |    at com.sun.crypto.provider.GaloisCounterMode.decryptFinal(GaloisCounterMode.java:524)
n  |    at com.sun.crypto.provider.CipherCore.finalNoPadding(CipherCore.java:1023)
n  |    at com.sun.crypto.provider.CipherCore.doFinal(CipherCore.java:960)
n  |    at com.sun.crypto.provider.AESCipher.engineDoFinal(AESCipher.java:479)
n  |    at javax.crypto.Cipher.doFinal(Cipher.java:2377)
n  |    at sun.security.ssl.CipherBox.decrypt(CipherBox.java:461)
n  |    at sun.security.ssl.InputRecord.decrypt(InputRecord.java:172)
n  |    at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1003)
n  |    ... 43 more
n  | "

Environment

  • Red Hat JBoss Fuse
    • 6.3.0

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content