Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [CDO] CDOServerExporter and DynamicValueHolder.NIL
[CDO] CDOServerExporter and DynamicValueHolder.NIL [message #1060295] Thu, 23 May 2013 21:21 Go to next message
Alex Mising name is currently offline Alex Mising name
Messages: 47
Registered: August 2009
Member
I am trying to track down a problem where CDOServerExporter throws

java.lang.IllegalArgumentException: Invalid type: java.lang.Object
at org.eclipse.emf.cdo.server.CDOServerExporter$XML.type(CDOServerExporter.java:718)
at org.eclipse.emf.cdo.server.CDOServerExporter$XML.exportFeature(CDOServerExporter.java:588)
...

It seems to be related to client-side storing (via eSet) a null value into EString attribute that has a non-empty default value. The eSet (via eDynamicSet and specifically InternalSettingDelegateSingleData.dynamicSet) appears to store EStructuralFeature.Internal.DynamicValueHolder.NIL instead of null for this case ("An object used to represent being set to nullĀ as opposed to having no value and hence being in the default state."), some flavor of this makes it to the CDO server side and CDOServerExporter appears to not recognize this as a special case.

Does this make sense or am I missing something?

[Testing on Kepler M7, but I think I saw this in the past as well]
Re: [CDO] CDOServerExporter and DynamicValueHolder.NIL [message #1060482 is a reply to message #1060295] Sat, 25 May 2013 03:13 Go to previous message
Eike Stepper is currently offline Eike Stepper
Messages: 5163
Registered: July 2009
Senior Member
Am 24.05.2013 03:21, schrieb Alex Mising name:
> I am trying to track down a problem where CDOServerExporter throws
> java.lang.IllegalArgumentException: Invalid type: java.lang.Object
> at org.eclipse.emf.cdo.server.CDOServerExporter$XML.type(CDOServerExporter.java:718)
> at org.eclipse.emf.cdo.server.CDOServerExporter$XML.exportFeature(CDOServerExporter.java:588)
> ..
>
> It seems to be related to client-side storing (via eSet) a null value into EString attribute that has a non-empty
> default value. The eSet (via eDynamicSet and specifically InternalSettingDelegateSingleData.dynamicSet) appears to
> store EStructuralFeature.Internal.DynamicValueHolder.NIL instead of null for this case ("An object used to represent
> being set to null as opposed to having no value and hence being in the default state."), some flavor of this makes it
> to the CDO server side and CDOServerExporter appears to not recognize this as a special case.
>
> Does this make sense or am I missing something?
It doesn't sound unreasonable. Please submit a bugzilla and attach the *full* (CDO-related) stack trace so that I can
look at it more deeply.

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper


>
> [Testing on Kepler M7, but I think I saw this in the past as well]
Previous Topic:[CDO] NPE from CDOResourceFolder conflict?
Next Topic:[Teneo] Default Value in DDL Generation
Goto Forum:
  


Current Time: Tue May 28 11:32:07 EDT 2013

Powered by FUDForum. Page generated in 0.01432 seconds