Home » Language IDEs » Java Development Tools (JDT) » Debugging LinkageError (ClassLoader issue) (How to debug LinkageError: different class objects for interface)
Debugging LinkageError (ClassLoader issue) [message #495106] Tue, 03 November 2009 13:58
Andreas Hartmann  is currently offline Andreas Hartmann
Messages: 1
Registered: November 2009
Junior Member
Hi everyone,

I want to debug the following error:

java.lang.LinkageError: loader constraint violation in interface itable initialization: when resolving method " mypackage.BatchProcessManagerImpl.prepareListenerProcess(Lja va/lang/String;Lmypackage.Invoker;)Lmypackage.ListenerBatchP rocess; " the class loader (instance of org/apache/commons/jci/stores/ResourceStoreClassLoader) of the current class, mypackage/BatchProcessManagerImpl, and the class loader (instance of org/mortbay/jetty/webapp/WebAppClassLoader) for interface mypackage/BatchProcessManager have different Class objects for the type mypackage/Invoker used in the signature


First I'd like to find out where the Invoker interface class is loaded. Unfortunately Eclipse doesn't allow to set class load breakpoints for interfaces.

Any hints would be very much appreciated  thanks!

-- Andreas
Previous Topic:Markers disappear in project explorer
Next Topic:Java BuildPath Preference Page
Goto Forum: