5 Replies Latest reply on Feb 5, 2002 5:42 AM by ppetit

    new problem with RMIConnectionFactory

    ppetit Newbie

      I have a MDB that worked very fine before I download the JBoss 3.0.0 alpha following the tag on the main download page.
      with the new build of this 3.0.0 alpha release I get the following :
      javax.naming.NamingException: Invalid reference. Error: org.jboss.mq.GenericConnectionFactory; local class incompatible : stream classdesc serialVersionUID = -6897993188562554891, local class serialVersionUID = 7049717886891616346
      at org.jboss.mq.referenceable.ObjectRefAddr.extractObjectRefFrom(ObjectRefAddr.java:82)
      at org.jboss.mq.referenceable.SpyConnectionFactoryObjectFactory.getObjectInstance(SpyConnectionFactoryObjectFactory.java:44)
      at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:446)

      here is the code snippet that is reponsible for this error messahe :
      if( topicFactory == null )
      // Get the connection factory
      topicFactory = (TopicConnectionFactory)jndiContext.lookup("RMIConnectionFactory");

      catch( NamingException e )
      Saga_util.panicDialog( className +
      "TopicConnectionFactory Erreur de nommage : " + e );

      It looks like the RMIConnectionFactory returns a "local" interface instead of a remote one like before.
      Is that true? and do I have to modify the way I lookup the JNDIcontext or what?

      Help is welcomed !

      thanks, Philippe