9 Replies Latest reply on May 13, 2010 10:13 AM by geoharp

    invalid stream header: 4B000000 with version 2.1.0.BETA3

      javax.jms.JMSException: invalid stream header: 4B000000
          at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:783) [na:1.6.0_16]
          at java.io.ObjectInputStream.<init>(ObjectInputStream.java:280) [na:1.6.0_16]
          at org.hornetq.utils.ObjectInputStreamWithClassLoader.<init>(ObjectInputStreamWithClassLoader.java:40) [hornetq-core-2.1.0.BETA3.jar:na]
          at org.hornetq.jms.client.HornetQObjectMessage.getObject(HornetQObjectMessage.java:157) [hornetq-jms-2.1.0.BETA3.jar:na]
          at org.gridgain.grid.spi.communication.jms.GridJmsCommunicationSpi$1.onMessage(GridJmsCommunicationSpi.java:541) [gridgain-2.1.1.jar:na]
          at org.hornetq.jms.client.JMSMessageListenerWrapper.onMessage(JMSMessageListenerWrapper.java:91) [hornetq-jms-2.1.0.BETA3.jar:na]
          at org.hornetq.core.client.impl.ClientConsumerImpl.callOnMessage(ClientConsumerImpl.java:809) [hornetq-core-2.1.0.BETA3.jar:na]
          at org.hornetq.core.client.impl.ClientConsumerImpl.access$100(ClientConsumerImpl.java:46) [hornetq-core-2.1.0.BETA3.jar:na]
          at org.hornetq.core.client.impl.ClientConsumerImpl$Runner.run(ClientConsumerImpl.java:927) [hornetq-core-2.1.0.BETA3.jar:na]
          at org.hornetq.utils.OrderedExecutorFactory$OrderedExecutor$1.run(OrderedExecutorFactory.java:96) [hornetq-core-2.1.0.BETA3.jar:na]
          at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [na:1.6.0_16]
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [na:1.6.0_16]
          at java.lang.Thread.run(Thread.java:619) [na:1.6.0_16]

       

      What would cause this?

       

      What configuration files do you need from me to answer this?

        • 1. Re: invalid stream header: 4B000000 with version 2.1.0.BETA3
          clebert.suconic

          it seems  you are doing some mess with your upgrade there.

           

          It's impossible for us to tell...

           

          you should create some small program replicating your issue.. you may figure out what you did wrong on the process.

           

          Most likely you didn't upgrade some library.

           

          The same applies to all your messages where you were putting stack traces for them. When you figure out what you did wrong you will probably fix all of them.

          • 2. Re: invalid stream header: 4B000000 with version 2.1.0.BETA3

            How would I find out the correct versions as I am using maven.

             

            Also, where would I download the source code for version 2.1.0.BETA3

            • 3. Re: invalid stream header: 4B000000 with version 2.1.0.BETA3
              clebert.suconic

              I already gave you the link to our pom.. you can figure out yourself..

               

              Also.. keep in mind we are here to help you.. not to debug your config for you.

               

              When you find an issue, please look at this wiki:

               

              http://community.jboss.org/wiki/Howtoreportabugissue

               

               

               

              so far it seems you are firing a message to the forum whenever you get an issue without trying to understand or figure out yourself what it was happening.

               

               

              We always help users with a collaborative attitude.. but we don't have the resources to investigate everybody's mistakes on their configurations.

               

              You will agree with me that you wouldn't have the level of free support offered by hornetq in any other software out there. I'm just asking you to do some debug yourself and provide us some information, so we can help you better.

              • 4. Re: invalid stream header: 4B000000 with version 2.1.0.BETA3

                The url I was given did not have teh correct versions for the jars.

                In fact I had to ask in the forums and 2 people gave me the answer to what version of netty.jar to use.

                 

                Is there a place to download the sources for 2.1.0.BETA3?

                 

                And since the url with the pom.xml is not up to date how do I figure out which jars are now required?

                • 5. Re: invalid stream header: 4B000000 with version 2.1.0.BETA3
                  clebert.suconic

                  The url I was given did not have teh correct versions for the jars.

                  In fact I had to ask in the forums and 2 people gave me the answer to what version of netty.jar to use.


                   

                   

                  You've got to be kidding me?

                   

                  http://anonsvn.jboss.org/repos/hornetq/tags/HornetQ_2_1_0_Beta3/pom.xml

                   

                   

                  I gave you the link to where 2.1.0.Beta3 was built from. ^^^ Nothing is going to be more accurate than that!

                   

                   

                  as a matter of fact, we are using :

                           <version>3.2.0.BETA1</version>


                  as you could see on the pom:


                  and to get the sources, as any good SVN client:


                  svn co http://anonsvn.jboss.org/repos/hornetq/tags/HornetQ_2_1_0_Beta3 hornetq-beta3.


                  The sources should be on maven also.

                  • 6. Re: invalid stream header: 4B000000 with version 2.1.0.BETA3

                    I apologize I messed up copying the version for netty and it was not until you pointed out the version to me that I was able to correct this.

                    AZnd yes it was in the pom.xml url you gave me

                    • 7. Re: invalid stream header: 4B000000 with version 2.1.0.BETA3
                      timfox

                      If you'd looked on the HornetQ wiki you'd have found all the info on where the source is, how to build HornetQ, how to report an issue there.

                      • 8. Re: invalid stream header: 4B000000 with version 2.1.0.BETA3
                        timfox

                        Also, bear in mind, if you don't use JCA you won't have caching of connections - i.e you'll be creating a new one every time you send your management message.

                        • 9. Re: invalid stream header: 4B000000 with version 2.1.0.BETA3

                          How does caching of connections relate to the exception I am getting?

                           

                          javax.jms.JMSException: invalid stream header: 4B000000
                              at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:783) [na:1.6.0_16]
                              at java.io.ObjectInputStream.<init>(ObjectInputStream.java:280) [na:1.6.0_16]
                              at org.hornetq.utils.ObjectInputStreamWithClassLoader.<init>(ObjectInputStreamWithClassLoader.java:40) [hornetq-core-2.1.0.BETA3.jar:na]
                              at org.hornetq.jms.client.HornetQObjectMessage.getObject(HornetQObjectMessage.java:157) [hornetq-jms-2.1.0.BETA3.jar:na]
                              at org.gridgain.grid.spi.communication.jms.GridJmsCommunicationSpi$1.onMessage(GridJmsCommunicationSpi.java:541) [gridgain-2.1.1.jar:na]
                              at org.hornetq.jms.client.JMSMessageListenerWrapper.onMessage(JMSMessageListenerWrapper.java:91) [hornetq-jms-2.1.0.BETA3.jar:na]
                              at org.hornetq.core.client.impl.ClientConsumerImpl.callOnMessage(ClientConsumerImpl.java:809) [hornetq-core-2.1.0.BETA3.jar:na]
                              at org.hornetq.core.client.impl.ClientConsumerImpl.access$100(ClientConsumerImpl.java:46) [hornetq-core-2.1.0.BETA3.jar:na]
                              at org.hornetq.core.client.impl.ClientConsumerImpl$Runner.run(ClientConsumerImpl.java:927) [hornetq-core-2.1.0.BETA3.jar:na]
                              at org.hornetq.utils.OrderedExecutorFactory$OrderedExecutor$1.run(OrderedExecutorFactory.java:96) [hornetq-core-2.1.0.BETA3.jar:na]
                              at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [na:1.6.0_16]
                              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [na:1.6.0_16]
                              at java.lang.Thread.run(Thread.java:619) [na:1.6.0_16]

                           

                          I get this periodically not all the time