[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.rt.eclipselink] Re: loader constraint violation
|
- From: tbee <tbee@xxxxxxxx>
- Date: Wed, 12 Aug 2009 09:58:59 +0200
- Newsgroups: eclipse.rt.eclipselink
- Organization: EclipseCorner
- User-agent: Thunderbird 2.0.0.19 (Windows/20081209)
java.lang.LinkageError: loader constraint violation: loader (instance of
sun/misc/Launcher$AppClassLoader) previously initiated loading for a
different type with name "nl/reinders/bm/Batch"
Ugh. So I have an entity called a "batch" representing an amount of the same article in a certain form. Such a batch has "amount providers", these are entities that either add to or remove an amount from the batch.
These amount providers all implement the BatchAmountProvider interface:
public interface BatchAmountProvider
{
public java.math.BigInteger getAmount() ;
public void setAmount(java.math.BigInteger value);
}
This has worked fine, until I needed to add two methods to the interface allowing me to access the batch they are part of. These methods were already present in all of the implementing classes, I only formalized that by adding them to the interface:
public interface BatchAmountProvider
{
public nl.reinders.bm.Batch getBatch();
public void setBatch(nl.reinders.bm.Batch value);
public java.math.BigInteger getAmount() ;
public void setAmount(java.math.BigInteger value);
}
Either of these two lines are the culprit and cause the loader constraint violation. I still don't understand why.
Tom