You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xmlrpc-dev@ws.apache.org by Dietmar Abts <ab...@hs-niederrhein.de> on 2006/08/13 16:12:30 UTC
IncompatibleClassChangeError using Java 6 Beta
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: xmlrpc-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: xmlrpc-dev-help@ws.apache.org
Re: IncompatibleClassChangeError using Java 6 Beta
Posted by Jochen Wiedmann <jo...@gmail.com>.
Dietmar Abts wrote:
> 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.
Dietmar, I am sorry, but your description isn't sufficient for
reproducing a problem.
I am using 1.6 myself and never had such problems. It is most possibly a
problem with your local setup, for example different classes floating
around or something like that. If not, I need a more concise description
like "compile this class with JDK x and the following command ..."
Jochen
---------------------------------------------------------------------
To unsubscribe, e-mail: xmlrpc-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: xmlrpc-dev-help@ws.apache.org