Hello,

testing Apache XML-RPC 3.0rc1 and Java 1.6.0-beta the exception "IncompatibleClassChangeError" was thrown.
Using Java 1.5 the program runs well.

import java.net.*;
import org.apache.xmlrpc.client.*;

public class EchoClient {
 public static void main(String args[]) throws Exception {
   URL url = new URL(args[0]);
   XmlRpcClientConfigImpl config = new XmlRpcClientConfigImpl();
   config.setServerURL(url);
   XmlRpcClient client = new XmlRpcClient();
   client.setConfig(config);

   Object[] params = {"Hallo"};
   String s = (String) client.execute("echo.getEcho", params);
   System.out.println(s);

   String t = (String) client.execute("echo.getEchoWithDate", params);
   System.out.println(t);
 }
}

java -cp build;%XMLRPC_LIB% EchoClient http://localhost:50000

Exception in thread "main" java.lang.IncompatibleClassChangeError: Implementing class
       at java.lang.ClassLoader.defineClass1(Native Method)
       at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
       at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
       at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
       at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
       at java.security.AccessController.doPrivileged(Native Method)
       at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
       at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
       at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
       at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
       at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
       at EchoClient.main(Unknown Source)

Java SE 6 should be upwards binary-compatible with J2SE 5.0 except for only a few incompatibilities.

With kind regards
Dietmar Abts



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to