6 Replies Latest reply on Jan 18, 2013 6:02 AM by ffang

    ActiveMQ tcp to http - AbstractHttpMessage class not found

    milanmilas

      I am getting error message while trying to go from tcp to http:

       

      Caused by: java.lang.ClassNotFoundException: org.apache.http.message.AbstractHttpMessage not found by org.apache.activemq.activemq-core

              at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1467)

              at org.apache.felix.framework.BundleWiringImpl.access$400(BundleWiringImpl.java:73)

              at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:1850)

              at java.lang.ClassLoader.loadClass(ClassLoader.java:247)[:1.6.0_37]

       

      I know that there are already questions about this, but solutions doesn't work in my case.

      I can see in my Maven dependencies org.apache.http.message.AbstractHttpMessage class in the httpcore-4.2.1.jar this class, so not sure why error message is there?

       

      Part of my pom file:

         

       

       

      Edited by: milanmilas on Jan 17, 2013 6:12 PM

        • 1. Re: ActiveMQ tcp to http - AbstractHttpMessage class not found
          milanmilas

          Have installed manually to Fuse ESB:

          httpclient-osgi

          httpcore-osgi

          4.2.1

          and error has gone.

           

          Just to mention that activemq-optional feature has been installed as well.

           

          Now I am getting:

          Exhausted after delivery attempt: 1 caught: org.springframework.jms.UncategorizedJmsException: Uncategorized exception occured during JMS processing; nested exception is javax.jms.JMSException: Could not con

          nect to broker URL: http://localhost:61616. Reason: java.io.IOException: Failed to perform GET on: http://localhost:61616 as response was: null

          org.springframework.jms.UncategorizedJmsException: Uncategorized exception occured during JMS processing; nested exception is javax.jms.JMSException: Could not connect to broker URL: http://localhost:61616. Reason: java.io.IOException: Fail

          ed to perform GET on: http://localhost:61616 as response was: null

                  at org.springframework.jms.support.JmsUtils.convertJmsAccessException(JmsUtils.java:316)[145:org.springframework.jms:3.0.7.RELEASE]

                  at org.springframework.jms.support.JmsAccessor.convertJmsAccessException(JmsAccessor.java:168)[145:org.springframework.jms:3.0.7.RELEASE]

                  at org.springframework.jms.core.JmsTemplate.execute(JmsTemplate.java:469)[145:org.springframework.jms:3.0.7.RELEASE]

                  at org.apache.camel.component.jms.JmsConfiguration$CamelJmsTemplate.send(JmsConfiguration.java:187)[146:org.apache.camel.camel-jms:2.9.0.fuse-70-097]

                  at org.apache.camel.component.jms.JmsProducer.doSend(JmsProducer.java:398)[146:org.apache.camel.camel-jms:2.9.0.fuse-70-097]

           

          -


          2013-01-17 18:29:53,110 | WARN  | .0.1:49636@61616 | Transport                        | 120 - org.apache.activemq.activemq-core - 5.5.1.fuse-70-097 | Transport Connection to: tcp://127.0.0.1:49636 failed: java.io.IOException: Frame size of

          1156 MB larger than max allowed 100 MB

          2013-01-17 18:29:53,111 | WARN  | nsumer[Producer] | faultJmsMessageListenerContainer | 145 - org.springframework.jms - 3.0.7.RELEASE | Could not refresh JMS Connection for destination 'Producer' - retrying in 5000 ms. Cause: Could not conn

          ect to broker URL: http://localhost:61616. Reason: java.io.IOException: Failed to perform GET on: http://localhost:61616 as response was: null

          2013-01-17 18:29:58,118 | WARN  | .0.1:49641@61616 | Transport                        | 120 - org.apache.activemq.activemq-core - 5.5.1.fuse-70-097 | Transport Connection to: tcp://127.0.0.1:49641 failed: java.io.IOException: Frame size of

          1156 MB larger than max allowed 100 MB

          2013-01-17 18:29:58,119 | WARN  | nsumer[Producer] | faultJmsMessageListenerContainer | 145 - org.springframework.jms - 3.0.7.RELEASE | Could not refresh JMS Connection for destination 'Producer' - retrying in 5000 ms. Cause: Could not conn

          ect to broker URL: http://localhost:61616. Reason: java.io.IOException: Failed to perform GET on: http://localhost:61616 as response was: null

           

          but this is for tomorrow investigation.

          • 2. Re: ActiveMQ tcp to http - AbstractHttpMessage class not found
            ffang

            Hi,

             

            This

            org.apache.activemq.activemq-core - 5.5.1.fuse-70-097 | Transport Connection to: tcp://127.0.0.1:49641 failed: java.io.IOException: Frame size of

            1156 MB larger than max allowed 100 MB

            is interesting. Are you trying to transfer some big file?

             

             

            Freeman

            • 3. Re: ActiveMQ tcp to http - AbstractHttpMessage class not found
              milanmilas

              This is the message I am sending to ActiveMQ, it was POJO that has been

              marshaled using JAXB:

              <;ns2:Person xmlns:ns2="http://pocesb.xxxxxxxxx.com" Name="Milan" Surname="Milas"/>

               

              -


              2013-01-18 09:51:06,401 | INFO | qtp7124168-32327 | producerCxf | 139 - org.apache.camel.camel-core - 2.9.0.fuse-70-097 | Converted body to Person using convertBodyTo

              2013-01-18 09:51:06,401 | INFO | qtp7124168-32327 | producerCxf | 139 - org.apache.camel.camel-core - 2.9.0.fuse-70-097 | Converted body to string

              2013-01-18 09:51:06,401 | INFO | qtp7124168-32327 | producerCxf | 139 - org.apache.camel.camel-core - 2.9.0.fuse-70-097 | <ns2:Person xmlns:ns2="http://pocesb.xxxxxxxx.com" Name="Adam" Surname="Boult"/>

              2013-01-18 09:51:06,469 | WARN | .0.1:61249@61616 | Transport | 120 - org.apache.activemq.activemq-core - 5.5.1.fuse-70-097 | Transport Connection to: tcp://127.0.0.1:61249 failed: java.io.IOException: Frame size of

              1156 MB larger than max allowed 100 MB

              2013-01-18 09:51:06,470 | ERROR | qtp7124168-32327 | DefaultErrorHandler | 139 - org.apache.camel.camel-core - 2.9.0.fuse-70-097 | Failed delivery for (MessageId: ID-LON-DEV-MIMI-61034-1358446034028-9-3 on ExchangeId: ID-LON-DE

              V-MIMI-61034-1358446034028-9-4). Exhausted after delivery attempt: 1 caught: org.springframework.jms.UncategorizedJmsException: Uncategorized exception occured during JMS processing; nested exception is javax.jms.JMSException: Could not con

              nect to broker URL: http://localhost:61616. Reason: java.io.IOException: Failed to perform GET on: http://localhost:61616 as response was: null

              org.springframework.jms.UncategorizedJmsException: Uncategorized exception occured during JMS processing; nested exception is javax.jms.JMSException: Could not connect to broker URL: http://localhost:61616. Reason: java.io.IOException: Fail

              ed to perform GET on: http://localhost:61616 as response was: null

              at org.springframework.jms.support.JmsUtils.convertJmsAccessException(JmsUtils.java:316)145:org.springframework.jms:3.0.7.RELEASE

               

              Edited by: milanmilas on Jan 18, 2013 10:13 AM

              • 4. Re: ActiveMQ tcp to http - AbstractHttpMessage class not found
                milanmilas

                The issues was that I havent changed broker url:

                 

                • 5. Re: ActiveMQ tcp to http - AbstractHttpMessage class not found
                  milanmilas

                  Fuse ESB - need to install

                  feature activemq-optional

                  httpclient-osgi-4.2.1.jar

                  httpcore-osgi-4.2.1.jar

                  • 6. Re: ActiveMQ tcp to http - AbstractHttpMessage class not found
                    ffang

                    Hi,

                     

                    Thanks for sharing your investigation.

                     

                    Freeman