Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » AbstractEnumeratorExternalizeable; no valid constructor
AbstractEnumeratorExternalizeable; no valid constructor [message #1535669] Mon, 29 December 2014 21:24 Go to next message
Alain Picard is currently offline Alain PicardFriend
Messages: 266
Registered: July 2009
Senior Member
Hi,

I'm getting this error when my EMFStore server is attempting to de-serialize some data (more than likely some GMF notation classes which seems to be the only candidate here, but I don't have a set to reproduce).

It seems that AbstractEnumeratorExternalizeable has no default no-arg constructor and that is what would cause this error. But it seems strange that I find no reference to this issue elsewhere for code that has been around for ages.

Please advise
Alain

Caused by: java.lang.RuntimeException: java.io.InvalidClassException: org.eclipse.emf.common.util.AbstractEnumerator$AbstractEnumeratorExternalizeable; no valid constructor
at org.eclipse.emf.ecore.impl.EFactoryImpl.createFromString(EFactoryImpl.java:664)
at org.eclipse.emf.ecore.impl.EcoreFactoryImpl.createEJavaObjectFromString(EcoreFactoryImpl.java:927)
at org.eclipse.emf.ecore.impl.EcoreFactoryImpl.createFromString(EcoreFactoryImpl.java:148)
at org.eclipse.emf.ecore.xmi.impl.XMLHelperImpl.createFromString(XMLHelperImpl.java:1615)
at org.eclipse.emf.ecore.xmi.impl.XMLHelperImpl.setValue(XMLHelperImpl.java:1156)
at org.eclipse.emf.ecore.xmi.impl.XMLHandler.setFeatureValue(XMLHandler.java:2692)
... 46 more
Caused by: java.io.InvalidClassException: org.eclipse.emf.common.util.AbstractEnumerator$AbstractEnumeratorExternalizeable; no valid constructor
at java.io.ObjectStreamClass$ExceptionInfo.newInvalidClassException(Unknown Source)
at java.io.ObjectStreamClass.checkDeserialize(Unknown Source)
at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
at java.io.ObjectInputStream.readObject0(Unknown Source)
at java.io.ObjectInputStream.readObject(Unknown Source)
at org.eclipse.emf.ecore.impl.EFactoryImpl.createFromString(EFactoryImpl.java:660)
... 51 more
Re: AbstractEnumeratorExternalizeable; no valid constructor [message #1536646 is a reply to message #1535669] Tue, 30 December 2014 10:33 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33140
Registered: July 2009
Senior Member
Alain,

That seems strange. I'd expect
org.eclipse.emf.common.util.AbstractEnumerator.AbstractEnumeratorExternalizeable.readExternal(ObjectInput)
should be called... But it doesn't appear there is a proper test case
for this... Please open a bugzilla preferably with a test case of some
sort...


On 29/12/2014 10:24 PM, Alain Picard wrote:
> Hi,
>
> I'm getting this error when my EMFStore server is attempting to
> de-serialize some data (more than likely some GMF notation classes
> which seems to be the only candidate here, but I don't have a set to
> reproduce).
>
> It seems that AbstractEnumeratorExternalizeable has no default no-arg
> constructor and that is what would cause this error. But it seems
> strange that I find no reference to this issue elsewhere for code that
> has been around for ages.
>
> Please advise
> Alain
>
> Caused by: java.lang.RuntimeException: java.io.InvalidClassException:
> org.eclipse.emf.common.util.AbstractEnumerator$AbstractEnumeratorExternalizeable;
> no valid constructor
> at
> org.eclipse.emf.ecore.impl.EFactoryImpl.createFromString(EFactoryImpl.java:664)
> at
> org.eclipse.emf.ecore.impl.EcoreFactoryImpl.createEJavaObjectFromString(EcoreFactoryImpl.java:927)
> at
> org.eclipse.emf.ecore.impl.EcoreFactoryImpl.createFromString(EcoreFactoryImpl.java:148)
> at
> org.eclipse.emf.ecore.xmi.impl.XMLHelperImpl.createFromString(XMLHelperImpl.java:1615)
> at
> org.eclipse.emf.ecore.xmi.impl.XMLHelperImpl.setValue(XMLHelperImpl.java:1156)
> at
> org.eclipse.emf.ecore.xmi.impl.XMLHandler.setFeatureValue(XMLHandler.java:2692)
> ... 46 more
> Caused by: java.io.InvalidClassException:
> org.eclipse.emf.common.util.AbstractEnumerator$AbstractEnumeratorExternalizeable;
> no valid constructor
> at
> java.io.ObjectStreamClass$ExceptionInfo.newInvalidClassException(Unknown
> Source)
> at java.io.ObjectStreamClass.checkDeserialize(Unknown Source)
> at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
> at java.io.ObjectInputStream.readObject0(Unknown Source)
> at java.io.ObjectInputStream.readObject(Unknown Source)
> at
> org.eclipse.emf.ecore.impl.EFactoryImpl.createFromString(EFactoryImpl.java:660)
> ... 51 more


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: AbstractEnumeratorExternalizeable; no valid constructor [message #1539029 is a reply to message #1536646] Wed, 31 December 2014 18:29 Go to previous messageGo to next message
Alain Picard is currently offline Alain PicardFriend
Messages: 266
Registered: July 2009
Senior Member
Ed,

It appears that the error is caused by the missing no-arg constructor, which would need to be invoked before.

As said, I'm trying to reproduce but that needs a specific diagram operation to be done which I'm not sure how it was created. When I do, I'll post a bugzilla.

Alain

Re: AbstractEnumeratorExternalizeable; no valid constructor [message #1562322 is a reply to message #1539029] Tue, 13 January 2015 16:40 Go to previous message
Louis-Frederic Huppe-St-Hilaire is currently offline Louis-Frederic Huppe-St-HilaireFriend
Messages: 2
Registered: January 2015
Junior Member
I'm a colleague of Alain's facing the same issue.
I've created a formal bug report: bugs.eclipse.org/bugs/show_bug.cgi?id=457348
Previous Topic:[CDO] How to avoid LocalCommitConflictException
Next Topic:ResourceUndoContext has default Undo limit in DefaultOperationHistory
Goto Forum:
  


Current Time: Thu Apr 25 00:01:26 GMT 2024

Powered by FUDForum. Page generated in 0.02918 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top