Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-16667

PGP+CamelJMS is facing issue while reading the encrypted msg

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Invalid
    • 2.25.1
    • None
    • camel-crypto, camel-amqp
    • None
    • Unknown

    Description

      Hi Team,
      I am using Camel 2.25.1 version of camel-amqp and camel-crypto ,
      While transferring openwire (tcp) message of size above 5 MB I am getting MessareNotWritable Exception .

      2021-05-27T06:01:25.541Z TRACE 6596 — [REA1.HMB01.FTS]] o.a.c.c.jms.EndpointMessageListener : onMessage END throwing exception: Failed to extract body due to: javax.jms.MessageNotWriteableException: Message properties are read-only. Message: JmsBytesMessage { org.apache.qpid.jms.provider.amqp.message.AmqpJmsBytesMessageFacade@5bd044c8 }
      2021-05-27T06:01:25.542Z WARN 6596 — [REA1.HMB01.FTS]] o.a.c.c.jms.EndpointMessageListener : Execution of JMS message listener failed. Caused by: [org.apache.camel.RuntimeCamelException - Failed to extract body due to: javax.jms.MessageNotWriteableException: Message properties are read-only. Message: JmsBytesMessage

      { org.apache.qpid.jms.provider.amqp.message.AmqpJmsBytesMessageFacade@5bd044c8 }

      ]

      org.apache.camel.RuntimeCamelException: Failed to extract body due to: javax.jms.MessageNotWriteableException: Message properties are read-only. Message: JmsBytesMessage { org.apache.qpid.jms.provider.amqp.message.AmqpJmsBytesMessageFacade@5bd044c8 }
      at org.apache.camel.component.jms.JmsBinding.extractBodyFromJms(JmsBinding.java:176) ~[camel-jms-2.25.1.jar:2.25.1]
      at org.apache.camel.component.jms.JmsMessage.createBody(JmsMessage.java:227) ~[camel-jms-2.25.1.jar:2.25.1]
      at org.apache.camel.impl.MessageSupport.getBody(MessageSupport.java:54) ~[camel-core-2.25.1.jar:2.25.1]
      at org.apache.camel.processor.CamelInternalProcessor$StreamCachingAdvice.before(CamelInternalProcessor.java:800) ~[camel-core-2.25.1.jar:2.25.1]
      at org.apache.camel.processor.CamelInternalProcessor$StreamCachingAdvice.before(CamelInternalProcessor.java:789) ~[camel-core-2.25.1.jar:2.25.1]
      at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:149) ~[camel-core-2.25.1.jar:2.25.1]
      at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:201) ~[camel-core-2.25.1.jar:2.25.1]
      at org.apache.camel.component.jms.EndpointMessageListener.onMessage(EndpointMessageListener.java:124) ~[camel-jms-2.25.1.jar:2.25.1]
      at org.springframework.jms.listener.AbstractMessageListenerContainer.doInvokeListener(AbstractMessageListenerContainer.java:736) ~[spring-jms-5.2.6.RELEASE.jar:5.2.6.RELEASE]
      at org.springframework.jms.listener.AbstractMessageListenerContainer.invokeListener(AbstractMessageListenerContainer.java:696) ~[spring-jms-5.2.6.RELEASE.jar:5.2.6.RELEASE]
      at org.springframework.jms.listener.AbstractMessageListenerContainer.doExecuteListener(AbstractMessageListenerContainer.java:674) ~[spring-jms-5.2.6.RELEASE.jar:5.2.6.RELEASE]
      at org.springframework.jms.listener.AbstractPollingMessageListenerContainer.doReceiveAndExecute(AbstractPollingMessageListenerContainer.java:318) ~[spring-jms-5.2.6.RELEASE.jar:5.2.6.RELEASE]
      at org.springframework.jms.listener.AbstractPollingMessageListenerContainer.receiveAndExecute(AbstractPollingMessageListenerContainer.java:257) ~[spring-jms-5.2.6.RELEASE.jar:5.2.6.RELEASE]
      at org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.invokeListener(DefaultMessageListenerContainer.java:1189) ~[spring-jms-5.2.6.RELEASE.jar:5.2.6.RELEASE]
      at org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.executeOngoingLoop(DefaultMessageListenerContainer.java:1179) ~[spring-jms-5.2.6.RELEASE.jar:5.2.6.RELEASE]
      at org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.run(DefaultMessageListenerContainer.java:1076) ~[spring-jms-5.2.6.RELEASE.jar:5.2.6.RELEASE]
      at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) ~[na:na]
      at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) ~[na:na]
      at java.base/java.lang.Thread.run(Thread.java:834) ~[na:na]
      Caused by: javax.jms.MessageNotWriteableException: Message properties are read-only
      at org.apache.qpid.jms.message.JmsMessage.checkReadOnlyProperties(JmsMessage.java:515) ~[qpid-jms-client-0.55.0.redhat-00005.jar:0.55.0.redhat-00005]
      at org.apache.qpid.jms.message.JmsMessagePropertyIntercepter.setProperty(JmsMessagePropertyIntercepter.java:722) ~[qpid-jms-client-0.55.0.redhat-00005.jar:0.55.0.redhat-00005]
      at org.apache.qpid.jms.message.JmsMessage.setObjectProperty(JmsMessage.java:348) ~[qpid-jms-client-0.55.0.redhat-00005.jar:0.55.0.redhat-00005]
      at org.apache.camel.component.jms.JmsBinding.createByteArrayFromBytesMessage(JmsBinding.java:255) ~[camel-jms-2.25.1.jar:2.25.1]
      at org.apache.camel.component.jms.JmsBinding.extractBodyFromJms(JmsBinding.java:167) ~[camel-jms-2.25.1.jar:2.25.1]

      Attachments

        1. camel-crypto-bug.zip
          18 kB
          Ramarajan R

        Activity

          People

            Unassigned Unassigned
            Ramarajan Ramarajan R
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: