1 Reply Latest reply on Apr 11, 2006 11:29 AM by Damian Grela

    jdk1.4 client<--> jdk1.5 server communication

    shin sangho Newbie

      our dev env is following
      * jdk1.4 based eclipse platform
      * jdk1.5 based jboss4.03+ ejb3-beta

      we develope server, client separatly
      we thinked client server server communication has no problem..
      but problem happened

      our test is fellowing structure
      jdk1.4client/client/Client.java
      jdk1.4client/cli/Calculator.java
      jdk1.5server/bean/CalculatorBean

      we compile
      jdk1.4client/cli/Calculator.java in 1.4 and deploy in server/lib holder
      server successfully deployed

      but when client lookup session bean fellowing error occur.

      java.lang.UnsupportedClassVersionError: org/jboss/ejb3/JBossProxy (Unsupported major.minor version 49.0)
       at java.lang.ClassLoader.defineClass0(Native Method)
       at java.lang.ClassLoader.defineClass(ClassLoader.java:537)
       at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
       at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
       at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
       at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
      at java.rmi.server.RMIClassLoader$2.loadProxyClass(RMIClassLoader.java:639)
       at java.rmi.server.RMIClassLoader.loadProxyClass(RMIClassLoader.java:309)
       at sun.rmi.server.MarshalInputStream.resolveProxyClass(MarshalInputStream.java:241)
       at java.io.ObjectInputStream.readProxyDesc(ObjectInputStream.java:1469)
       at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1432)
       at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1626)
       at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
       at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
       at java.rmi.MarshalledObject.get(MarshalledObject.java:135)
       at org.jnp.interfaces.MarshalledValuePair.get(MarshalledValuePair.java:57)
       at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:637)
       at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:572)
       at javax.naming.InitialContext.lookup(InitialContext.java:347)
       at client.Client.main(Client.java:17)



      our constraints is fellowing
      * client must run under 1.4
      * server code use ejb3(session, entity bean)

      any idea including work around will be helpful to me.

      thx in advance