Skip to main content



      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
Eclipse UserFriend
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 messageGo to next message
Eclipse UserFriend
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]
Re: [CDO] CDOServerExporter and DynamicValueHolder.NIL [message #1061245 is a reply to message #1060482] Thu, 30 May 2013 14:13 Go to previous message
Eclipse UserFriend
Done: https://bugs.eclipse.org/bugs/show_bug.cgi?id=409351
Previous Topic:Binding details table to validation
Next Topic:[CDO] CDOObject equality.
Goto Forum:
  


Current Time: Wed Jul 30 15:58:43 EDT 2025

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

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

Back to the top