You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by sateesh <sk...@yahoo.com> on 2006/11/07 17:44:40 UTC

Invalid version: 2, could not load org.apache.activemq.openwire.v2.MarshallerFactory

Hi All,

  I am trying to connect to ActiveMQ4.1 ( I took the SNAPSHOT Version
apache-activemq-4.1-incubator-20060831.071006-20.zip) and when i try to
connet to it from Mule i am getting the following Error:

 INFO: Starting Connector: org.mule.providers.jms.JmsConnector
Exception in thread "ActiveMQ Transport: tcp://localhost/127.0.0.1:61616"
java.lang.IllegalArgumentException: Invalid version: 2, could not load
org.apache.activemq.openwire.v2.MarshallerFactory
	at
org.apache.activemq.openwire.OpenWireFormat.setVersion(OpenWireFormat.java:329)
	at
org.apache.activemq.openwire.OpenWireFormat.renegociatWireFormat(OpenWireFormat.java:569)
	at
org.apache.activemq.transport.WireFormatNegotiator.onCommand(WireFormatNegotiator.java:100)
	at
org.apache.activemq.transport.InactivityMonitor.onCommand(InactivityMonitor.java:122)
	at
org.apache.activemq.transport.TransportSupport.doConsume(TransportSupport.java:87)
	at
org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:143)
	at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.ClassNotFoundException:
org.apache.activemq.openwire.v2.MarshallerFactory
	at org.apache.activemq.util.ClassLoading.loadClass(ClassLoading.java:104)
	at
org.apache.activemq.openwire.OpenWireFormat.setVersion(OpenWireFormat.java:327)
	... 6 more

  I have left the default settings as is.

How can i resolve this one..

Thanks
sateesh
-- 
View this message in context: http://www.nabble.com/Invalid-version%3A-2%2C-could-not-load-org.apache.activemq.openwire.v2.MarshallerFactory-tf2589891.html#a7221879
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: Invalid version: 2, could not load org.apache.activemq.openwire.v2.MarshallerFactory

Posted by Hiram Chirino <hi...@hiramchirino.com>.
On 11/9/06, robottaway <ro...@musiciansfriend.com> wrote:
>
> I was using the 'binary for Unix' download, which I dl'd a month or more ago
> from this page:
>
> http://www.activemq.org/site/activemq-402-release.html
>
> I just downloaded the RC6 4.0.2 from the link in the box at the top of the
> page. It works perfect when bridging to the Amq instance in Servicemix 3.0.
> I'm guessing something was broken in the earlier 4.0.2 release candidate?

correct.

> --
> View this message in context: http://www.nabble.com/Invalid-version%3A-2%2C-could-not-load-org.apache.activemq.openwire.v2.MarshallerFactory-tf2589891.html#a7266147
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>
>


-- 
Regards,
Hiram

Blog: http://hiramchirino.com

Re: Invalid version: 2, could not load org.apache.activemq.openwire.v2.MarshallerFactory

Posted by robottaway <ro...@musiciansfriend.com>.
I was using the 'binary for Unix' download, which I dl'd a month or more ago
from this page:

http://www.activemq.org/site/activemq-402-release.html

I just downloaded the RC6 4.0.2 from the link in the box at the top of the
page. It works perfect when bridging to the Amq instance in Servicemix 3.0.
I'm guessing something was broken in the earlier 4.0.2 release candidate?
-- 
View this message in context: http://www.nabble.com/Invalid-version%3A-2%2C-could-not-load-org.apache.activemq.openwire.v2.MarshallerFactory-tf2589891.html#a7266147
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: Invalid version: 2, could not load org.apache.activemq.openwire.v2.MarshallerFactory

Posted by robottaway <ro...@musiciansfriend.com>.
This was occurring in the 4.0.1 'stable' release. When I use the 4.0.2
release I do not have this problem.
-- 
View this message in context: http://www.nabble.com/Invalid-version%3A-2%2C-could-not-load-org.apache.activemq.openwire.v2.MarshallerFactory-tf2589891.html#a7260317
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: Invalid version: 2, could not load org.apache.activemq.openwire.v2.MarshallerFactory

Posted by James Strachan <ja...@gmail.com>.
Which version are you using? Its working fine for 4.1-SNAPSHOT and trunk of svn

On 11/8/06, robottaway <ro...@musiciansfriend.com> wrote:
>
> This is also a problem for me when connecting from the .NET Openwire API:
>
> Exception in thread "ActiveMQ Transport: tcp:///172.16.11.229:2497"
> java.lang.IllegalArgumentException: Invalid version: 2, could not load
> org.apache.activemq.openwire.v2.MarshallerFactory
>         at
> org.apache.activemq.openwire.OpenWireFormat.setVersion(OpenWireFormat.java:329)
>         at
> org.apache.activemq.openwire.OpenWireFormat.renegociatWireFormat(OpenWireFormat.java:569)
>         at
> org.apache.activemq.transport.WireFormatNegotiator.onCommand(WireFormatNegotiator.java:100)
>         at
> org.apache.activemq.transport.InactivityMonitor.onCommand(InactivityMonitor.java:122)
>         at
> org.apache.activemq.transport.TransportSupport.doConsume(TransportSupport.java:87)
>         at
> org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:143)
>         at java.lang.Thread.run(Thread.java:613)
> Caused by: java.lang.ClassNotFoundException:
> org.apache.activemq.openwire.v2.MarshallerFactory
>         at
> org.apache.activemq.util.ClassLoading.loadClass(ClassLoading.java:104)
>         at
> org.apache.activemq.openwire.OpenWireFormat.setVersion(OpenWireFormat.java:327)
>         ... 6 more
> --
> View this message in context: http://www.nabble.com/Invalid-version%3A-2%2C-could-not-load-org.apache.activemq.openwire.v2.MarshallerFactory-tf2589891.html#a7248045
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>
>


-- 

James
-------
http://radio.weblogs.com/0112098/

Re: Invalid version: 2, could not load org.apache.activemq.openwire.v2.MarshallerFactory

Posted by robottaway <ro...@musiciansfriend.com>.
This is also a problem for me when connecting from the .NET Openwire API:

Exception in thread "ActiveMQ Transport: tcp:///172.16.11.229:2497"
java.lang.IllegalArgumentException: Invalid version: 2, could not load
org.apache.activemq.openwire.v2.MarshallerFactory
        at
org.apache.activemq.openwire.OpenWireFormat.setVersion(OpenWireFormat.java:329)
        at
org.apache.activemq.openwire.OpenWireFormat.renegociatWireFormat(OpenWireFormat.java:569)
        at
org.apache.activemq.transport.WireFormatNegotiator.onCommand(WireFormatNegotiator.java:100)
        at
org.apache.activemq.transport.InactivityMonitor.onCommand(InactivityMonitor.java:122)
        at
org.apache.activemq.transport.TransportSupport.doConsume(TransportSupport.java:87)
        at
org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:143)
        at java.lang.Thread.run(Thread.java:613)
Caused by: java.lang.ClassNotFoundException:
org.apache.activemq.openwire.v2.MarshallerFactory
        at
org.apache.activemq.util.ClassLoading.loadClass(ClassLoading.java:104)
        at
org.apache.activemq.openwire.OpenWireFormat.setVersion(OpenWireFormat.java:327)
        ... 6 more
-- 
View this message in context: http://www.nabble.com/Invalid-version%3A-2%2C-could-not-load-org.apache.activemq.openwire.v2.MarshallerFactory-tf2589891.html#a7248045
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: Invalid version: 2, could not load org.apache.activemq.openwire.v2.MarshallerFactory

Posted by Rob Davies <ra...@gmail.com>.
On 23 Jan 2007, at 14:09, kennywest wrote:

>
> I have the same issue. Connecting Mule to an ActiveMQ 4.1.
> Any hints?
use servicemix ? ;)
> --  
> View this message in context: http://www.nabble.com/Invalid-version% 
> 3A-2%2C-could-not-load- 
> org.apache.activemq.openwire.v2.MarshallerFactory- 
> tf2589891.html#a8522312
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>


Re: Invalid version: 2, could not load org.apache.activemq.openwire.v2.MarshallerFactory

Posted by kennywest <ke...@telenet.be>.
I have the same issue. Connecting Mule to an ActiveMQ 4.1.
Any hints?
-- 
View this message in context: http://www.nabble.com/Invalid-version%3A-2%2C-could-not-load-org.apache.activemq.openwire.v2.MarshallerFactory-tf2589891.html#a8522312
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: Invalid version: 2, could not load org.apache.activemq.openwire.v2.MarshallerFactory

Posted by James Strachan <ja...@gmail.com>.
BTW you might wanna try use a more recent version of 4.1

On 11/7/06, James Strachan <ja...@gmail.com> wrote:
> Sounds like you have a mismatch of versions on your classpaths with
> the broker you are connecting to?
>
> On 11/7/06, sateesh <sk...@yahoo.com> wrote:
> >
> > Hi All,
> >
> >   I am trying to connect to ActiveMQ4.1 ( I took the SNAPSHOT Version
> > apache-activemq-4.1-incubator-20060831.071006-20.zip) and when i try to
> > connet to it from Mule i am getting the following Error:
> >
> >  INFO: Starting Connector: org.mule.providers.jms.JmsConnector
> > Exception in thread "ActiveMQ Transport: tcp://localhost/127.0.0.1:61616"
> > java.lang.IllegalArgumentException: Invalid version: 2, could not load
> > org.apache.activemq.openwire.v2.MarshallerFactory
> >         at
> > org.apache.activemq.openwire.OpenWireFormat.setVersion(OpenWireFormat.java:329)
> >         at
> > org.apache.activemq.openwire.OpenWireFormat.renegociatWireFormat(OpenWireFormat.java:569)
> >         at
> > org.apache.activemq.transport.WireFormatNegotiator.onCommand(WireFormatNegotiator.java:100)
> >         at
> > org.apache.activemq.transport.InactivityMonitor.onCommand(InactivityMonitor.java:122)
> >         at
> > org.apache.activemq.transport.TransportSupport.doConsume(TransportSupport.java:87)
> >         at
> > org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:143)
> >         at java.lang.Thread.run(Thread.java:619)
> > Caused by: java.lang.ClassNotFoundException:
> > org.apache.activemq.openwire.v2.MarshallerFactory
> >         at org.apache.activemq.util.ClassLoading.loadClass(ClassLoading.java:104)
> >         at
> > org.apache.activemq.openwire.OpenWireFormat.setVersion(OpenWireFormat.java:327)
> >         ... 6 more
> >
> >   I have left the default settings as is.
> >
> > How can i resolve this one..
> >
> > Thanks
> > sateesh
> > --
> > View this message in context: http://www.nabble.com/Invalid-version%3A-2%2C-could-not-load-org.apache.activemq.openwire.v2.MarshallerFactory-tf2589891.html#a7221879
> > Sent from the ActiveMQ - User mailing list archive at Nabble.com.
> >
> >
>
>
> --
>
> James
> -------
> http://radio.weblogs.com/0112098/
>


-- 

James
-------
http://radio.weblogs.com/0112098/

Re: Invalid version: 2, could not load org.apache.activemq.openwire.v2.MarshallerFactory

Posted by James Strachan <ja...@gmail.com>.
Sounds like you have a mismatch of versions on your classpaths with
the broker you are connecting to?

On 11/7/06, sateesh <sk...@yahoo.com> wrote:
>
> Hi All,
>
>   I am trying to connect to ActiveMQ4.1 ( I took the SNAPSHOT Version
> apache-activemq-4.1-incubator-20060831.071006-20.zip) and when i try to
> connet to it from Mule i am getting the following Error:
>
>  INFO: Starting Connector: org.mule.providers.jms.JmsConnector
> Exception in thread "ActiveMQ Transport: tcp://localhost/127.0.0.1:61616"
> java.lang.IllegalArgumentException: Invalid version: 2, could not load
> org.apache.activemq.openwire.v2.MarshallerFactory
>         at
> org.apache.activemq.openwire.OpenWireFormat.setVersion(OpenWireFormat.java:329)
>         at
> org.apache.activemq.openwire.OpenWireFormat.renegociatWireFormat(OpenWireFormat.java:569)
>         at
> org.apache.activemq.transport.WireFormatNegotiator.onCommand(WireFormatNegotiator.java:100)
>         at
> org.apache.activemq.transport.InactivityMonitor.onCommand(InactivityMonitor.java:122)
>         at
> org.apache.activemq.transport.TransportSupport.doConsume(TransportSupport.java:87)
>         at
> org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:143)
>         at java.lang.Thread.run(Thread.java:619)
> Caused by: java.lang.ClassNotFoundException:
> org.apache.activemq.openwire.v2.MarshallerFactory
>         at org.apache.activemq.util.ClassLoading.loadClass(ClassLoading.java:104)
>         at
> org.apache.activemq.openwire.OpenWireFormat.setVersion(OpenWireFormat.java:327)
>         ... 6 more
>
>   I have left the default settings as is.
>
> How can i resolve this one..
>
> Thanks
> sateesh
> --
> View this message in context: http://www.nabble.com/Invalid-version%3A-2%2C-could-not-load-org.apache.activemq.openwire.v2.MarshallerFactory-tf2589891.html#a7221879
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>
>


-- 

James
-------
http://radio.weblogs.com/0112098/

Re: Invalid version: 2, could not load org.apache.activemq.openwire.v2.MarshallerFactory

Posted by Rob Davies <ra...@gmail.com>.
could you post a stack trace generated by the exception ?

On 25 Jan 2007, at 07:59, Julian Exenberger wrote:

>
> Hi I suddenly receive this error as well and I am definitely using  
> activemq
> 4.1
>
>
>
>
> rajdavies wrote:
>>
>> np -kenneth,
>> using Mule has that affect on people (sry - couldn't resist!)
>>
>> cheers,
>>
>> Rob
>>
>> On 24 Jan 2007, at 07:48, kennywest wrote:
>>
>>>
>>> I feel so stupid. Seems that my ACTIVEMQ_HOME environment variable
>>> was still
>>> pointing to an older version of ActiveMQ. Sorry for the disturbance.
>>> -- 
>>> View this message in context: http://www.nabble.com/Invalid-version%
>>> 3A-2%2C-could-not-load-
>>> org.apache.activemq.openwire.v2.MarshallerFactory-
>>> tf2589891.html#a8556221
>>> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>>>
>>
>>
>>
>
> -- 
> View this message in context: http://www.nabble.com/Invalid-version% 
> 3A-2%2C-could-not-load- 
> org.apache.activemq.openwire.v2.MarshallerFactory- 
> tf2589891.html#a8597736
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>


Re: Invalid version: 2, could not load org.apache.activemq.openwire.v2.MarshallerFactory

Posted by Julian Exenberger <je...@gmail.com>.
Hi I suddenly receive this error as well and I am definitely using activemq
4.1




rajdavies wrote:
> 
> np -kenneth,
> using Mule has that affect on people (sry - couldn't resist!)
> 
> cheers,
> 
> Rob
> 
> On 24 Jan 2007, at 07:48, kennywest wrote:
> 
>>
>> I feel so stupid. Seems that my ACTIVEMQ_HOME environment variable  
>> was still
>> pointing to an older version of ActiveMQ. Sorry for the disturbance.
>> -- 
>> View this message in context: http://www.nabble.com/Invalid-version% 
>> 3A-2%2C-could-not-load- 
>> org.apache.activemq.openwire.v2.MarshallerFactory- 
>> tf2589891.html#a8556221
>> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>>
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Invalid-version%3A-2%2C-could-not-load-org.apache.activemq.openwire.v2.MarshallerFactory-tf2589891.html#a8597736
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: Invalid version: 2, could not load org.apache.activemq.openwire.v2.MarshallerFactory

Posted by Rob Davies <ra...@gmail.com>.
np -kenneth,
using Mule has that affect on people (sry - couldn't resist!)

cheers,

Rob

On 24 Jan 2007, at 07:48, kennywest wrote:

>
> I feel so stupid. Seems that my ACTIVEMQ_HOME environment variable  
> was still
> pointing to an older version of ActiveMQ. Sorry for the disturbance.
> -- 
> View this message in context: http://www.nabble.com/Invalid-version% 
> 3A-2%2C-could-not-load- 
> org.apache.activemq.openwire.v2.MarshallerFactory- 
> tf2589891.html#a8556221
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>


Re: Invalid version: 2, could not load org.apache.activemq.openwire.v2.MarshallerFactory

Posted by kennywest <ke...@telenet.be>.
I feel so stupid. Seems that my ACTIVEMQ_HOME environment variable was still
pointing to an older version of ActiveMQ. Sorry for the disturbance.
-- 
View this message in context: http://www.nabble.com/Invalid-version%3A-2%2C-could-not-load-org.apache.activemq.openwire.v2.MarshallerFactory-tf2589891.html#a8556221
Sent from the ActiveMQ - User mailing list archive at Nabble.com.