Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » Problem with Property and eDerivedStructuralFeatureID()
Problem with Property and eDerivedStructuralFeatureID() [message #478274] Tue, 31 March 2009 18:47 Go to next message
Lazar Codrut-Lucian is currently offline Lazar Codrut-LucianFriend
Messages: 91
Registered: July 2009
Member
Hello,

I am using UML as my metamodel for an XText grammar.
If my grammar is using Model, Package, Class and Operation, all is fine.

As soon as I use Property or Parameter, I get an error.
Part of the stack trace is below.
In that case I used Property.

There must be some property or some operation that is not supported and
that XText uses, but I don't know what to look for.

Thank you,
Lucian

--------------------
java.lang.NullPointerException
at
org.eclipse.emf.ecore.impl.BasicEObjectImpl.eDerivedStructur alFeatureID(BasicEObjectImpl.java:1495)
at
org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjec tImpl.java:1010)
at
org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjec tImpl.java:1005)
at
org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjec tImpl.java:1000)
at
org.eclipse.emf.ecore.impl.BasicEObjectImpl.eOpenUnset(Basic EObjectImpl.java:1225)
at
org.eclipse.emf.ecore.impl.BasicEObjectImpl.eDynamicUnset(Ba sicEObjectImpl.java:1204)
at
org.eclipse.emf.ecore.impl.BasicEObjectImpl.eDynamicUnset(Ba sicEObjectImpl.java:1197)
at
org.eclipse.uml2.uml.internal.impl.PropertyImpl.eUnset(Prope rtyImpl.java:2271)
at
org.eclipse.emf.ecore.impl.BasicEObjectImpl.eUnset(BasicEObj ectImpl.java:1156)
at org.eclipse.xtext.crossref.impl.Linker.clearReference(Linker .java:73)
at org.eclipse.xtext.crossref.impl.Linker.clearReferences(Linke r.java:68)
at
org.eclipse.xtext.crossref.impl.Linker.clearAllReferences(Li nker.java:188)
at org.eclipse.xtext.crossref.impl.Linker.linkModel(Linker.java :173)
at
org.eclipse.xtext.resource.XtextResource.doLinking(XtextReso urce.java:139)
at org.eclipse.xtext.resource.XtextResource.doLoad(XtextResourc e.java:159)
at
org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:1494)
....
------------------------------------
Re: Problem with Property and eDerivedStructuralFeatureID() [message #478276 is a reply to message #478274] Wed, 01 April 2009 21:27 Go to previous messageGo to next message
Lazar Codrut-Lucian is currently offline Lazar Codrut-LucianFriend
Messages: 91
Registered: July 2009
Member
I think I found the problem to this.
XText Linker tries to unset an unsetable==false reference (the "class"
reference of the Property, for instance).

Lucian

Lazar Codrut-Lucian wrote:
> Hello,
>
> I am using UML as my metamodel for an XText grammar.
> If my grammar is using Model, Package, Class and Operation, all is fine.
>
> As soon as I use Property or Parameter, I get an error.
> Part of the stack trace is below.
> In that case I used Property.
>
> There must be some property or some operation that is not supported and
> that XText uses, but I don't know what to look for.
>
> Thank you,
> Lucian
>
> --------------------
> java.lang.NullPointerException
> at
> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eDerivedStructur alFeatureID(BasicEObjectImpl.java:1495)
> at
> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjec tImpl.java:1010)
> at
> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjec tImpl.java:1005)
> at
> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjec tImpl.java:1000)
> at
> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eOpenUnset(Basic EObjectImpl.java:1225)
> at
> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eDynamicUnset(Ba sicEObjectImpl.java:1204)
> at
> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eDynamicUnset(Ba sicEObjectImpl.java:1197)
> at
> org.eclipse.uml2.uml.internal.impl.PropertyImpl.eUnset(Prope rtyImpl.java:2271)
> at
> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eUnset(BasicEObj ectImpl.java:1156)
> at org.eclipse.xtext.crossref.impl.Linker.clearReference(Linker .java:73)
> at org.eclipse.xtext.crossref.impl.Linker.clearReferences(Linke r.java:68)
> at
> org.eclipse.xtext.crossref.impl.Linker.clearAllReferences(Li nker.java:188)
> at org.eclipse.xtext.crossref.impl.Linker.linkModel(Linker.java :173)
> at
> org.eclipse.xtext.resource.XtextResource.doLinking(XtextReso urce.java:139)
> at org.eclipse.xtext.resource.XtextResource.doLoad(XtextResourc e.java:159)
> at
> org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:1494)
> ...
> ------------------------------------
Re: Problem with Property and eDerivedStructuralFeatureID() [message #478277 is a reply to message #478276] Thu, 02 April 2009 13:02 Go to previous messageGo to next message
Lazar Codrut-Lucian is currently offline Lazar Codrut-LucianFriend
Messages: 91
Registered: July 2009
Member
From my debugging I tracked down 2 references with problems.
Property.class and Parameter.operation.

Also, I noticed that for these references with problems,
in BasicEObjectImpl.eOpenUnset(EStructuralFeature),
the condition "(!FeatureMapUtil.isFeatureMap(openFeature))" is true.
Next, ExtendedMetaData.INSTANCE.getGroup(openFeature) returns null.
And on this null I get the NPE later on.

Calling unset on any other reference causes no problems, only the two
references above. Why does this happen?

Thanks,
Lucian

Lazar Codrut-Lucian wrote:
> I think I found the problem to this.
> XText Linker tries to unset an unsetable==false reference (the "class"
> reference of the Property, for instance).
>
> Lucian
>
> Lazar Codrut-Lucian wrote:
>> Hello,
>>
>> I am using UML as my metamodel for an XText grammar.
>> If my grammar is using Model, Package, Class and Operation, all is fine.
>>
>> As soon as I use Property or Parameter, I get an error.
>> Part of the stack trace is below.
>> In that case I used Property.
>>
>> There must be some property or some operation that is not supported and
>> that XText uses, but I don't know what to look for.
>>
>> Thank you,
>> Lucian
>>
>> --------------------
>> java.lang.NullPointerException
>> at
>> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eDerivedStructur alFeatureID(BasicEObjectImpl.java:1495)
>> at
>> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjec tImpl.java:1010)
>> at
>> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjec tImpl.java:1005)
>> at
>> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjec tImpl.java:1000)
>> at
>> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eOpenUnset(Basic EObjectImpl.java:1225)
>> at
>> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eDynamicUnset(Ba sicEObjectImpl.java:1204)
>> at
>> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eDynamicUnset(Ba sicEObjectImpl.java:1197)
>> at
>> org.eclipse.uml2.uml.internal.impl.PropertyImpl.eUnset(Prope rtyImpl.java:2271)
>> at
>> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eUnset(BasicEObj ectImpl.java:1156)
>> at org.eclipse.xtext.crossref.impl.Linker.clearReference(Linker .java:73)
>> at org.eclipse.xtext.crossref.impl.Linker.clearReferences(Linke r.java:68)
>> at
>> org.eclipse.xtext.crossref.impl.Linker.clearAllReferences(Li nker.java:188)
>> at org.eclipse.xtext.crossref.impl.Linker.linkModel(Linker.java :173)
>> at
>> org.eclipse.xtext.resource.XtextResource.doLinking(XtextReso urce.java:139)
>> at org.eclipse.xtext.resource.XtextResource.doLoad(XtextResourc e.java:159)
>> at
>> org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:1494)
>> ...
>> ------------------------------------
Re: Problem with Property and eDerivedStructuralFeatureID() [message #478278 is a reply to message #478277] Thu, 02 April 2009 13:12 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 29122
Registered: July 2009
Senior Member
Lucian,

Without understanding all the details, my sense is that you've passed in
a feature that's not properly a feature of the class to which you're
applying it. If that's the case, if you run with assertions enabled
(the -ea JVM flag) and are using the Galileo stream, I think you'd see
assertion failures...



Lazar Codrut-Lucian wrote:
> From my debugging I tracked down 2 references with problems.
> Property.class and Parameter.operation.
>
> Also, I noticed that for these references with problems,
> in BasicEObjectImpl.eOpenUnset(EStructuralFeature),
> the condition "(!FeatureMapUtil.isFeatureMap(openFeature))" is true.
> Next, ExtendedMetaData.INSTANCE.getGroup(openFeature) returns null.
> And on this null I get the NPE later on.
>
> Calling unset on any other reference causes no problems, only the two
> references above. Why does this happen?
>
> Thanks,
> Lucian
>
> Lazar Codrut-Lucian wrote:
>
>> I think I found the problem to this.
>> XText Linker tries to unset an unsetable==false reference (the "class"
>> reference of the Property, for instance).
>>
>> Lucian
>>
>> Lazar Codrut-Lucian wrote:
>>
>>> Hello,
>>>
>>> I am using UML as my metamodel for an XText grammar.
>>> If my grammar is using Model, Package, Class and Operation, all is fine.
>>>
>>> As soon as I use Property or Parameter, I get an error.
>>> Part of the stack trace is below.
>>> In that case I used Property.
>>>
>>> There must be some property or some operation that is not supported and
>>> that XText uses, but I don't know what to look for.
>>>
>>> Thank you,
>>> Lucian
>>>
>>> --------------------
>>> java.lang.NullPointerException
>>> at
>>> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eDerivedStructur alFeatureID(BasicEObjectImpl.java:1495)
>>> at
>>> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjec tImpl.java:1010)
>>> at
>>> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjec tImpl.java:1005)
>>> at
>>> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjec tImpl.java:1000)
>>> at
>>> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eOpenUnset(Basic EObjectImpl.java:1225)
>>> at
>>> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eDynamicUnset(Ba sicEObjectImpl.java:1204)
>>> at
>>> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eDynamicUnset(Ba sicEObjectImpl.java:1197)
>>> at
>>> org.eclipse.uml2.uml.internal.impl.PropertyImpl.eUnset(Prope rtyImpl.java:2271)
>>> at
>>> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eUnset(BasicEObj ectImpl.java:1156)
>>> at org.eclipse.xtext.crossref.impl.Linker.clearReference(Linker .java:73)
>>> at org.eclipse.xtext.crossref.impl.Linker.clearReferences(Linke r.java:68)
>>> at
>>> org.eclipse.xtext.crossref.impl.Linker.clearAllReferences(Li nker.java:188)
>>> at org.eclipse.xtext.crossref.impl.Linker.linkModel(Linker.java :173)
>>> at
>>> org.eclipse.xtext.resource.XtextResource.doLinking(XtextReso urce.java:139)
>>> at org.eclipse.xtext.resource.XtextResource.doLoad(XtextResourc e.java:159)
>>> at
>>> org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:1494)
>>> ...
>>> ------------------------------------
>>>
Re: Problem with Property and eDerivedStructuralFeatureID() [message #478279 is a reply to message #478278] Thu, 02 April 2009 17:51 Go to previous messageGo to next message
Lazar Codrut-Lucian is currently offline Lazar Codrut-LucianFriend
Messages: 91
Registered: July 2009
Member
Here is a simple example that you could execute:
----------
public class Test {
public static void main(String[] args) {
UMLFactory factory = UMLPackage.eINSTANCE.getUMLFactory();
Property prop = factory.createProperty();
EReference classFeature = UMLPackage.Literals.PROPERTY__CLASS;
prop.eUnset(classFeature);
}
}
----------

It throws this exception:
----------
Exception in thread "main" java.lang.NullPointerException
at
org.eclipse.emf.ecore.impl.BasicEObjectImpl.eDerivedStructur alFeatureID(BasicEObjectImpl.java:1495)
at
org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjec tImpl.java:1010)
at
org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjec tImpl.java:1005)
at
org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjec tImpl.java:1000)
at
org.eclipse.emf.ecore.impl.BasicEObjectImpl.eOpenUnset(Basic EObjectImpl.java:1225)
at
org.eclipse.emf.ecore.impl.BasicEObjectImpl.eDynamicUnset(Ba sicEObjectImpl.java:1204)
at
org.eclipse.emf.ecore.impl.BasicEObjectImpl.eDynamicUnset(Ba sicEObjectImpl.java:1197)
at
org.eclipse.uml2.uml.internal.impl.PropertyImpl.eUnset(Prope rtyImpl.java:2271)
at
org.eclipse.emf.ecore.impl.BasicEObjectImpl.eUnset(BasicEObj ectImpl.java:1156)
at org.xtext.example.Test.main(Test.java:15)
----------

Lucian

Ed Merks wrote:
> Lucian,
>
> Without understanding all the details, my sense is that you've passed in
> a feature that's not properly a feature of the class to which you're
> applying it. If that's the case, if you run with assertions enabled
> (the -ea JVM flag) and are using the Galileo stream, I think you'd see
> assertion failures...
>
>
>
> Lazar Codrut-Lucian wrote:
>> From my debugging I tracked down 2 references with problems.
>> Property.class and Parameter.operation.
>>
>> Also, I noticed that for these references with problems,
>> in BasicEObjectImpl.eOpenUnset(EStructuralFeature),
>> the condition "(!FeatureMapUtil.isFeatureMap(openFeature))" is true.
>> Next, ExtendedMetaData.INSTANCE.getGroup(openFeature) returns null.
>> And on this null I get the NPE later on.
>>
>> Calling unset on any other reference causes no problems, only the two
>> references above. Why does this happen?
>>
>> Thanks,
>> Lucian
>>
>> Lazar Codrut-Lucian wrote:
>>
>>> I think I found the problem to this.
>>> XText Linker tries to unset an unsetable==false reference (the "class"
>>> reference of the Property, for instance).
>>>
>>> Lucian
>>>
>>> Lazar Codrut-Lucian wrote:
>>>
>>>> Hello,
>>>>
>>>> I am using UML as my metamodel for an XText grammar.
>>>> If my grammar is using Model, Package, Class and Operation, all is
>>>> fine.
>>>>
>>>> As soon as I use Property or Parameter, I get an error.
>>>> Part of the stack trace is below.
>>>> In that case I used Property.
>>>>
>>>> There must be some property or some operation that is not supported and
>>>> that XText uses, but I don't know what to look for.
>>>>
>>>> Thank you,
>>>> Lucian
>>>>
>>>> --------------------
>>>> java.lang.NullPointerException
>>>> at
>>>> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eDerivedStructur alFeatureID(BasicEObjectImpl.java:1495)
>>>>
>>>> at
>>>> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjec tImpl.java:1010)
>>>>
>>>> at
>>>> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjec tImpl.java:1005)
>>>>
>>>> at
>>>> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjec tImpl.java:1000)
>>>>
>>>> at
>>>> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eOpenUnset(Basic EObjectImpl.java:1225)
>>>>
>>>> at
>>>> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eDynamicUnset(Ba sicEObjectImpl.java:1204)
>>>>
>>>> at
>>>> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eDynamicUnset(Ba sicEObjectImpl.java:1197)
>>>>
>>>> at
>>>> org.eclipse.uml2.uml.internal.impl.PropertyImpl.eUnset(Prope rtyImpl.java:2271)
>>>>
>>>> at
>>>> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eUnset(BasicEObj ectImpl.java:1156)
>>>>
>>>> at
>>>> org.eclipse.xtext.crossref.impl.Linker.clearReference(Linker .java:73)
>>>> at
>>>> org.eclipse.xtext.crossref.impl.Linker.clearReferences(Linke r.java:68)
>>>> at
>>>> org.eclipse.xtext.crossref.impl.Linker.clearAllReferences(Li nker.java:188)
>>>>
>>>> at
>>>> org.eclipse.xtext.crossref.impl.Linker.linkModel(Linker.java :173)
>>>> at
>>>> org.eclipse.xtext.resource.XtextResource.doLinking(XtextReso urce.java:139)
>>>>
>>>> at
>>>> org.eclipse.xtext.resource.XtextResource.doLoad(XtextResourc e.java:159)
>>>> at
>>>> org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:1494)
>>>>
>>>> ...
>>>> ------------------------------------
>>>>
Re: Problem with Property and eDerivedStructuralFeatureID() [message #478280 is a reply to message #478279] Thu, 02 April 2009 18:00 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 29122
Registered: July 2009
Senior Member
Lucian,

There is some odd stuff associated with this particular feature. I'm
not sure why it's like this. For example, I see

@Override
public void eDynamicSet(int featureID, Object newValue) {

if (featureID == UMLPackage.PROPERTY__CLASS) {
setClass_((org.eclipse.uml2.uml.Class) newValue);
return;
}

super.eDynamicSet(featureID, newValue);
}

But there's no corresponding eDynamicUnset for that feature, so likely
that's the problem. Some UML expert needs to comment...



Lazar Codrut-Lucian wrote:
> Here is a simple example that you could execute:
> ----------
> public class Test {
> public static void main(String[] args) {
> UMLFactory factory = UMLPackage.eINSTANCE.getUMLFactory();
> Property prop = factory.createProperty();
> EReference classFeature = UMLPackage.Literals.PROPERTY__CLASS;
> prop.eUnset(classFeature);
> }
> }
> ----------
>
> It throws this exception:
> ----------
> Exception in thread "main" java.lang.NullPointerException
> at
> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eDerivedStructur alFeatureID(BasicEObjectImpl.java:1495)
> at
> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjec tImpl.java:1010)
> at
> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjec tImpl.java:1005)
> at
> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjec tImpl.java:1000)
> at
> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eOpenUnset(Basic EObjectImpl.java:1225)
> at
> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eDynamicUnset(Ba sicEObjectImpl.java:1204)
> at
> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eDynamicUnset(Ba sicEObjectImpl.java:1197)
> at
> org.eclipse.uml2.uml.internal.impl.PropertyImpl.eUnset(Prope rtyImpl.java:2271)
> at
> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eUnset(BasicEObj ectImpl.java:1156)
> at org.xtext.example.Test.main(Test.java:15)
> ----------
>
> Lucian
>
> Ed Merks wrote:
>
>> Lucian,
>>
>> Without understanding all the details, my sense is that you've passed in
>> a feature that's not properly a feature of the class to which you're
>> applying it. If that's the case, if you run with assertions enabled
>> (the -ea JVM flag) and are using the Galileo stream, I think you'd see
>> assertion failures...
>>
>>
>>
>> Lazar Codrut-Lucian wrote:
>>
>>> From my debugging I tracked down 2 references with problems.
>>> Property.class and Parameter.operation.
>>>
>>> Also, I noticed that for these references with problems,
>>> in BasicEObjectImpl.eOpenUnset(EStructuralFeature),
>>> the condition "(!FeatureMapUtil.isFeatureMap(openFeature))" is true.
>>> Next, ExtendedMetaData.INSTANCE.getGroup(openFeature) returns null.
>>> And on this null I get the NPE later on.
>>>
>>> Calling unset on any other reference causes no problems, only the two
>>> references above. Why does this happen?
>>>
>>> Thanks,
>>> Lucian
>>>
>>> Lazar Codrut-Lucian wrote:
>>>
>>>
>>>> I think I found the problem to this.
>>>> XText Linker tries to unset an unsetable==false reference (the "class"
>>>> reference of the Property, for instance).
>>>>
>>>> Lucian
>>>>
>>>> Lazar Codrut-Lucian wrote:
>>>>
>>>>
>>>>> Hello,
>>>>>
>>>>> I am using UML as my metamodel for an XText grammar.
>>>>> If my grammar is using Model, Package, Class and Operation, all is
>>>>> fine.
>>>>>
>>>>> As soon as I use Property or Parameter, I get an error.
>>>>> Part of the stack trace is below.
>>>>> In that case I used Property.
>>>>>
>>>>> There must be some property or some operation that is not supported and
>>>>> that XText uses, but I don't know what to look for.
>>>>>
>>>>> Thank you,
>>>>> Lucian
>>>>>
>>>>> --------------------
>>>>> java.lang.NullPointerException
>>>>> at
>>>>> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eDerivedStructur alFeatureID(BasicEObjectImpl.java:1495)
>>>>>
>>>>> at
>>>>> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjec tImpl.java:1010)
>>>>>
>>>>> at
>>>>> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjec tImpl.java:1005)
>>>>>
>>>>> at
>>>>> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjec tImpl.java:1000)
>>>>>
>>>>> at
>>>>> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eOpenUnset(Basic EObjectImpl.java:1225)
>>>>>
>>>>> at
>>>>> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eDynamicUnset(Ba sicEObjectImpl.java:1204)
>>>>>
>>>>> at
>>>>> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eDynamicUnset(Ba sicEObjectImpl.java:1197)
>>>>>
>>>>> at
>>>>> org.eclipse.uml2.uml.internal.impl.PropertyImpl.eUnset(Prope rtyImpl.java:2271)
>>>>>
>>>>> at
>>>>> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eUnset(BasicEObj ectImpl.java:1156)
>>>>>
>>>>> at
>>>>> org.eclipse.xtext.crossref.impl.Linker.clearReference(Linker .java:73)
>>>>> at
>>>>> org.eclipse.xtext.crossref.impl.Linker.clearReferences(Linke r.java:68)
>>>>> at
>>>>> org.eclipse.xtext.crossref.impl.Linker.clearAllReferences(Li nker.java:188)
>>>>>
>>>>> at
>>>>> org.eclipse.xtext.crossref.impl.Linker.linkModel(Linker.java :173)
>>>>> at
>>>>> org.eclipse.xtext.resource.XtextResource.doLinking(XtextReso urce.java:139)
>>>>>
>>>>> at
>>>>> org.eclipse.xtext.resource.XtextResource.doLoad(XtextResourc e.java:159)
>>>>> at
>>>>> org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:1494)
>>>>>
>>>>> ...
>>>>> ------------------------------------
>>>>>
>>>>>
Re: Problem with Property and eDerivedStructuralFeatureID() [message #478283 is a reply to message #478280] Fri, 03 April 2009 19:09 Go to previous messageGo to next message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
Ed, Lucian,

Although the 'class' feature of Property is unsettable, you should probably
not be getting a null pointer exception.
I'm getting a slightly different stack trace using the latest version of
UML2/EMF.

Ed, we seem to be getting into some trouble in
BasicEObjectImpl.eOpenUnset(). The call to getGroup() returns null and it's
all downhill from there.

Lucian, please raise a defect on UML2 and I'll have a closer look.

Cheers,
- James.


"Ed Merks" <Ed.Merks@gmail.com> wrote in message
news:gr2ufn$9kq$1@build.eclipse.org...
> Lucian,
>
> There is some odd stuff associated with this particular feature. I'm not
> sure why it's like this. For example, I see
>
> @Override
> public void eDynamicSet(int featureID, Object newValue) {
>
> if (featureID == UMLPackage.PROPERTY__CLASS) {
> setClass_((org.eclipse.uml2.uml.Class) newValue);
> return;
> }
>
> super.eDynamicSet(featureID, newValue);
> }
>
> But there's no corresponding eDynamicUnset for that feature, so likely
> that's the problem. Some UML expert needs to comment...
>
>
>
> Lazar Codrut-Lucian wrote:
>> Here is a simple example that you could execute:
>> ----------
>> public class Test {
>> public static void main(String[] args) {
>> UMLFactory factory = UMLPackage.eINSTANCE.getUMLFactory();
>> Property prop = factory.createProperty();
>> EReference classFeature = UMLPackage.Literals.PROPERTY__CLASS;
>> prop.eUnset(classFeature);
>> }
>> }
>> ----------
>>
>> It throws this exception:
>> ----------
>> Exception in thread "main" java.lang.NullPointerException
>> at
>> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eDerivedStructur alFeatureID(BasicEObjectImpl.java:1495)
>> at
>> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjec tImpl.java:1010)
>> at
>> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjec tImpl.java:1005)
>> at
>> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjec tImpl.java:1000)
>> at
>> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eOpenUnset(Basic EObjectImpl.java:1225)
>> at
>> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eDynamicUnset(Ba sicEObjectImpl.java:1204)
>> at
>> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eDynamicUnset(Ba sicEObjectImpl.java:1197)
>> at
>> org.eclipse.uml2.uml.internal.impl.PropertyImpl.eUnset(Prope rtyImpl.java:2271)
>> at
>> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eUnset(BasicEObj ectImpl.java:1156)
>> at org.xtext.example.Test.main(Test.java:15)
>> ----------
>>
>> Lucian
>>
>> Ed Merks wrote:
>>
>>> Lucian,
>>>
>>> Without understanding all the details, my sense is that you've passed in
>>> a feature that's not properly a feature of the class to which you're
>>> applying it. If that's the case, if you run with assertions enabled
>>> (the -ea JVM flag) and are using the Galileo stream, I think you'd see
>>> assertion failures...
>>>
>>>
>>>
>>> Lazar Codrut-Lucian wrote:
>>>
>>>> From my debugging I tracked down 2 references with problems.
>>>> Property.class and Parameter.operation.
>>>>
>>>> Also, I noticed that for these references with problems,
>>>> in BasicEObjectImpl.eOpenUnset(EStructuralFeature),
>>>> the condition "(!FeatureMapUtil.isFeatureMap(openFeature))" is true.
>>>> Next, ExtendedMetaData.INSTANCE.getGroup(openFeature) returns null.
>>>> And on this null I get the NPE later on.
>>>>
>>>> Calling unset on any other reference causes no problems, only the two
>>>> references above. Why does this happen?
>>>>
>>>> Thanks,
>>>> Lucian
>>>>
>>>> Lazar Codrut-Lucian wrote:
>>>>
>>>>> I think I found the problem to this.
>>>>> XText Linker tries to unset an unsetable==false reference (the "class"
>>>>> reference of the Property, for instance).
>>>>>
>>>>> Lucian
>>>>>
>>>>> Lazar Codrut-Lucian wrote:
>>>>>
>>>>>> Hello,
>>>>>>
>>>>>> I am using UML as my metamodel for an XText grammar.
>>>>>> If my grammar is using Model, Package, Class and Operation, all is
>>>>>> fine.
>>>>>>
>>>>>> As soon as I use Property or Parameter, I get an error.
>>>>>> Part of the stack trace is below.
>>>>>> In that case I used Property.
>>>>>>
>>>>>> There must be some property or some operation that is not supported
>>>>>> and
>>>>>> that XText uses, but I don't know what to look for.
>>>>>>
>>>>>> Thank you,
>>>>>> Lucian
>>>>>>
>>>>>> --------------------
>>>>>> java.lang.NullPointerException
>>>>>> at
>>>>>> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eDerivedStructur alFeatureID(BasicEObjectImpl.java:1495)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjec tImpl.java:1010)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjec tImpl.java:1005)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjec tImpl.java:1000)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eOpenUnset(Basic EObjectImpl.java:1225)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eDynamicUnset(Ba sicEObjectImpl.java:1204)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eDynamicUnset(Ba sicEObjectImpl.java:1197)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.uml2.uml.internal.impl.PropertyImpl.eUnset(Prope rtyImpl.java:2271)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eUnset(BasicEObj ectImpl.java:1156)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.xtext.crossref.impl.Linker.clearReference(Linker .java:73)
>>>>>> at
>>>>>> org.eclipse.xtext.crossref.impl.Linker.clearReferences(Linke r.java:68)
>>>>>> at
>>>>>> org.eclipse.xtext.crossref.impl.Linker.clearAllReferences(Li nker.java:188)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.xtext.crossref.impl.Linker.linkModel(Linker.java :173)
>>>>>> at
>>>>>> org.eclipse.xtext.resource.XtextResource.doLinking(XtextReso urce.java:139)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.xtext.resource.XtextResource.doLoad(XtextResourc e.java:159)
>>>>>> at
>>>>>> org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:1494)
>>>>>>
>>>>>> ...
>>>>>> ------------------------------------
>>>>>>
Re: Problem with Property and eDerivedStructuralFeatureID() [message #478285 is a reply to message #478283] Fri, 03 April 2009 19:33 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 29122
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------030007060001060501030602
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

James,

The problem seems to be that the generated eSet and eUnset both don't
handle the PROPERTY__CLASS case, although eSet and eIsSet do, though in
a way I don't recognize from the basic templates. Then eSet has a
special eDynamicSet override be eUnset doesn't. Therein I would think
lies the problem. Why the code is generated like this isn't familiar to
me...


James Bruck wrote:
> Ed, Lucian,
>
> Although the 'class' feature of Property is unsettable, you should probably
> not be getting a null pointer exception.
> I'm getting a slightly different stack trace using the latest version of
> UML2/EMF.
>
> Ed, we seem to be getting into some trouble in
> BasicEObjectImpl.eOpenUnset(). The call to getGroup() returns null and it's
> all downhill from there.
>
> Lucian, please raise a defect on UML2 and I'll have a closer look.
>
> Cheers,
> - James.
>
>
> "Ed Merks" <Ed.Merks@gmail.com> wrote in message
> news:gr2ufn$9kq$1@build.eclipse.org...
>
>> Lucian,
>>
>> There is some odd stuff associated with this particular feature. I'm not
>> sure why it's like this. For example, I see
>>
>> @Override
>> public void eDynamicSet(int featureID, Object newValue) {
>>
>> if (featureID == UMLPackage.PROPERTY__CLASS) {
>> setClass_((org.eclipse.uml2.uml.Class) newValue);
>> return;
>> }
>>
>> super.eDynamicSet(featureID, newValue);
>> }
>>
>> But there's no corresponding eDynamicUnset for that feature, so likely
>> that's the problem. Some UML expert needs to comment...
>>
>>
>>
>> Lazar Codrut-Lucian wrote:
>>
>>> Here is a simple example that you could execute:
>>> ----------
>>> public class Test {
>>> public static void main(String[] args) {
>>> UMLFactory factory = UMLPackage.eINSTANCE.getUMLFactory();
>>> Property prop = factory.createProperty();
>>> EReference classFeature = UMLPackage.Literals.PROPERTY__CLASS;
>>> prop.eUnset(classFeature);
>>> }
>>> }
>>> ----------
>>>
>>> It throws this exception:
>>> ----------
>>> Exception in thread "main" java.lang.NullPointerException
>>> at
>>> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eDerivedStructur alFeatureID(BasicEObjectImpl.java:1495)
>>> at
>>> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjec tImpl.java:1010)
>>> at
>>> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjec tImpl.java:1005)
>>> at
>>> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjec tImpl.java:1000)
>>> at
>>> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eOpenUnset(Basic EObjectImpl.java:1225)
>>> at
>>> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eDynamicUnset(Ba sicEObjectImpl.java:1204)
>>> at
>>> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eDynamicUnset(Ba sicEObjectImpl.java:1197)
>>> at
>>> org.eclipse.uml2.uml.internal.impl.PropertyImpl.eUnset(Prope rtyImpl.java:2271)
>>> at
>>> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eUnset(BasicEObj ectImpl.java:1156)
>>> at org.xtext.example.Test.main(Test.java:15)
>>> ----------
>>>
>>> Lucian
>>>
>>> Ed Merks wrote:
>>>
>>>
>>>> Lucian,
>>>>
>>>> Without understanding all the details, my sense is that you've passed in
>>>> a feature that's not properly a feature of the class to which you're
>>>> applying it. If that's the case, if you run with assertions enabled
>>>> (the -ea JVM flag) and are using the Galileo stream, I think you'd see
>>>> assertion failures...
>>>>
>>>>
>>>>
>>>> Lazar Codrut-Lucian wrote:
>>>>
>>>>
>>>>> From my debugging I tracked down 2 references with problems.
>>>>> Property.class and Parameter.operation.
>>>>>
>>>>> Also, I noticed that for these references with problems,
>>>>> in BasicEObjectImpl.eOpenUnset(EStructuralFeature),
>>>>> the condition "(!FeatureMapUtil.isFeatureMap(openFeature))" is true.
>>>>> Next, ExtendedMetaData.INSTANCE.getGroup(openFeature) returns null.
>>>>> And on this null I get the NPE later on.
>>>>>
>>>>> Calling unset on any other reference causes no problems, only the two
>>>>> references above. Why does this happen?
>>>>>
>>>>> Thanks,
>>>>> Lucian
>>>>>
>>>>> Lazar Codrut-Lucian wrote:
>>>>>
>>>>>
>>>>>> I think I found the problem to this.
>>>>>> XText Linker tries to unset an unsetable==false reference (the "class"
>>>>>> reference of the Property, for instance).
>>>>>>
>>>>>> Lucian
>>>>>>
>>>>>> Lazar Codrut-Lucian wrote:
>>>>>>
>>>>>>
>>>>>>> Hello,
>>>>>>>
>>>>>>> I am using UML as my metamodel for an XText grammar.
>>>>>>> If my grammar is using Model, Package, Class and Operation, all is
>>>>>>> fine.
>>>>>>>
>>>>>>> As soon as I use Property or Parameter, I get an error.
>>>>>>> Part of the stack trace is below.
>>>>>>> In that case I used Property.
>>>>>>>
>>>>>>> There must be some property or some operation that is not supported
>>>>>>> and
>>>>>>> that XText uses, but I don't know what to look for.
>>>>>>>
>>>>>>> Thank you,
>>>>>>> Lucian
>>>>>>>
>>>>>>> --------------------
>>>>>>> java.lang.NullPointerException
>>>>>>> at
>>>>>>> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eDerivedStructur alFeatureID(BasicEObjectImpl.java:1495)
>>>>>>>
>>>>>>> at
>>>>>>> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjec tImpl.java:1010)
>>>>>>>
>>>>>>> at
>>>>>>> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjec tImpl.java:1005)
>>>>>>>
>>>>>>> at
>>>>>>> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjec tImpl.java:1000)
>>>>>>>
>>>>>>> at
>>>>>>> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eOpenUnset(Basic EObjectImpl.java:1225)
>>>>>>>
>>>>>>> at
>>>>>>> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eDynamicUnset(Ba sicEObjectImpl.java:1204)
>>>>>>>
>>>>>>> at
>>>>>>> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eDynamicUnset(Ba sicEObjectImpl.java:1197)
>>>>>>>
>>>>>>> at
>>>>>>> org.eclipse.uml2.uml.internal.impl.PropertyImpl.eUnset(Prope rtyImpl.java:2271)
>>>>>>>
>>>>>>> at
>>>>>>> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eUnset(BasicEObj ectImpl.java:1156)
>>>>>>>
>>>>>>> at
>>>>>>> org.eclipse.xtext.crossref.impl.Linker.clearReference(Linker .java:73)
>>>>>>> at
>>>>>>> org.eclipse.xtext.crossref.impl.Linker.clearReferences(Linke r.java:68)
>>>>>>> at
>>>>>>> org.eclipse.xtext.crossref.impl.Linker.clearAllReferences(Li nker.java:188)
>>>>>>>
>>>>>>> at
>>>>>>> org.eclipse.xtext.crossref.impl.Linker.linkModel(Linker.java :173)
>>>>>>> at
>>>>>>> org.eclipse.xtext.resource.XtextResource.doLinking(XtextReso urce.java:139)
>>>>>>>
>>>>>>> at
>>>>>>> org.eclipse.xtext.resource.XtextResource.doLoad(XtextResourc e.java:159)
>>>>>>> at
>>>>>>> org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:1494)
>>>>>>>
>>>>>>> ...
>>>>>>> ------------------------------------
>>>>>>>
>>>>>>>
>
>
>

--------------030007060001060501030602
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
James,<br>
<br>
The problem seems to be that the generated eSet and eUnset both don't
handle the PROPERTY__CLASS case, although eSet and eIsSet do, though in
a way I don't recognize from the basic templates.&nbsp; Then eSet has a
special eDynamicSet override be eUnset doesn't.&nbsp;&nbsp; Therein I would think
lies the problem.&nbsp; Why the code is generated like this isn't familiar
to me...<br>
<br>
<br>
James Bruck wrote:
<blockquote cite="mid:gr5mna$e0u$1@build.eclipse.org" type="cite">
<pre wrap="">Ed, Lucian,

Although the 'class' feature of Property is unsettable, you should probably
not be getting a null pointer exception.
I'm getting a slightly different stack trace using the latest version of
UML2/EMF.

Ed, we seem to be getting into some trouble in
BasicEObjectImpl.eOpenUnset(). The call to getGroup() returns null and it's
all downhill from there.

Lucian, please raise a defect on UML2 and I'll have a closer look.

Cheers,
- James.


"Ed Merks" <a class="moz-txt-link-rfc2396E" href="mailto:Ed.Merks@gmail.com">&lt;Ed.Merks@gmail.com&gt;</a> wrote in message
<a class="moz-txt-link-freetext" href="news:gr2ufn$9kq$1@build.eclipse.org">news:gr2ufn$9kq$1@build.eclipse.org</a>...
</pre>
<blockquote type="cite">
<pre wrap="">Lucian,

There is some odd stuff associated with this particular feature. I'm not
sure why it's like this. For example, I see

@Override
public void eDynamicSet(int featureID, Object newValue) {

if (featureID == UMLPackage.PROPERTY__CLASS) {
setClass_((org.eclipse.uml2.uml.Class) newValue);
return;
}

super.eDynamicSet(featureID, newValue);
}

But there's no corresponding eDynamicUnset for that feature, so likely
that's the problem. Some UML expert needs to comment...



Lazar Codrut-Lucian wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Here is a simple example that you could execute:
----------
public class Test {
public static void main(String[] args) {
UMLFactory factory = UMLPackage.eINSTANCE.getUMLFactory();
Property prop = factory.createProperty();
EReference classFeature = UMLPackage.Literals.PROPERTY__CLASS;
prop.eUnset(classFeature);
}
}
----------

It throws this exception:
----------
Exception in thread "main" java.lang.NullPointerException
at
org.eclipse.emf.ecore.impl.BasicEObjectImpl.eDerivedStructur alFeatureID(BasicEObjectImpl.java:1495)
at
org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjec tImpl.java:1010)
at
org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjec tImpl.java:1005)
at
org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjec tImpl.java:1000)
at
org.eclipse.emf.ecore.impl.BasicEObjectImpl.eOpenUnset(Basic EObjectImpl.java:1225)
at
org.eclipse.emf.ecore.impl.BasicEObjectImpl.eDynamicUnset(Ba sicEObjectImpl.java:1204)
at
org.eclipse.emf.ecore.impl.BasicEObjectImpl.eDynamicUnset(Ba sicEObjectImpl.java:1197)
at
org.eclipse.uml2.uml.internal.impl.PropertyImpl.eUnset(Prope rtyImpl.java:2271)
at
org.eclipse.emf.ecore.impl.BasicEObjectImpl.eUnset(BasicEObj ectImpl.java:1156)
at org.xtext.example.Test.main(Test.java:15)
----------

Lucian

Ed Merks wrote:

</pre>
<blockquote type="cite">
<pre wrap="">Lucian,

Without understanding all the details, my sense is that you've passed in
a feature that's not properly a feature of the class to which you're
applying it. If that's the case, if you run with assertions enabled
(the -ea JVM flag) and are using the Galileo stream, I think you'd see
assertion failures...



Lazar Codrut-Lucian wrote:

</pre>
<blockquote type="cite">
<pre wrap="">From my debugging I tracked down 2 references with problems.
Property.class and Parameter.operation.

Also, I noticed that for these references with problems,
in BasicEObjectImpl.eOpenUnset(EStructuralFeature),
the condition "(!FeatureMapUtil.isFeatureMap(openFeature))" is true.
Next, ExtendedMetaData.INSTANCE.getGroup(openFeature) returns null.
And on this null I get the NPE later on.

Calling unset on any other reference causes no problems, only the two
references above. Why does this happen?

Thanks,
Lucian

Lazar Codrut-Lucian wrote:

</pre>
<blockquote type="cite">
<pre wrap="">I think I found the problem to this.
XText Linker tries to unset an unsetable==false reference (the "class"
reference of the Property, for instance).

Lucian

Lazar Codrut-Lucian wrote:

</pre>
<blockquote type="cite">
<pre wrap="">Hello,

I am using UML as my metamodel for an XText grammar.
If my grammar is using Model, Package, Class and Operation, all is
fine.

As soon as I use Property or Parameter, I get an error.
Part of the stack trace is below.
In that case I used Property.

There must be some property or some operation that is not supported
and
that XText uses, but I don't know what to look for.

Thank you,
Lucian

--------------------
java.lang.NullPointerException
at
org.eclipse.emf.ecore.impl.BasicEObjectImpl.eDerivedStructur alFeatureID(BasicEObjectImpl.java:1495)

at
org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjec tImpl.java:1010)

at
org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjec tImpl.java:1005)

at
org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjec tImpl.java:1000)

at
org.eclipse.emf.ecore.impl.BasicEObjectImpl.eOpenUnset(Basic EObjectImpl.java:1225)

at
org.eclipse.emf.ecore.impl.BasicEObjectImpl.eDynamicUnset(Ba sicEObjectImpl.java:1204)

at
org.eclipse.emf.ecore.impl.BasicEObjectImpl.eDynamicUnset(Ba sicEObjectImpl.java:1197)

at
org.eclipse.uml2.uml.internal.impl.PropertyImpl.eUnset(Prope rtyImpl.java:2271)

at
org.eclipse.emf.ecore.impl.BasicEObjectImpl.eUnset(BasicEObj ectImpl.java:1156)

at
org.eclipse.xtext.crossref.impl.Linker.clearReference(Linker .java:73)
at
org.eclipse.xtext.crossref.impl.Linker.clearReferences(Linke r.java:68)
at
org.eclipse.xtext.crossref.impl.Linker.clearAllReferences(Li nker.java:188)

at
org.eclipse.xtext.crossref.impl.Linker.linkModel(Linker.java :173)
at
org.eclipse.xtext.resource.XtextResource.doLinking(XtextReso urce.java:139)

at
org.eclipse.xtext.resource.XtextResource.doLoad(XtextResourc e.java:159)
at
org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:1494)

....
------------------------------------

</pre>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
<pre wrap=""><!---->

</pre>
</blockquote>
</body>
</html>

--------------030007060001060501030602--
Re: Problem with Property and eDerivedStructuralFeatureID() [message #627465 is a reply to message #478274] Wed, 01 April 2009 21:27 Go to previous message
Lazar Codrut-Lucian is currently offline Lazar Codrut-LucianFriend
Messages: 91
Registered: July 2009
Member
I think I found the problem to this.
XText Linker tries to unset an unsetable==false reference (the "class"
reference of the Property, for instance).

Lucian

Lazar Codrut-Lucian wrote:
> Hello,
>
> I am using UML as my metamodel for an XText grammar.
> If my grammar is using Model, Package, Class and Operation, all is fine.
>
> As soon as I use Property or Parameter, I get an error.
> Part of the stack trace is below.
> In that case I used Property.
>
> There must be some property or some operation that is not supported and
> that XText uses, but I don't know what to look for.
>
> Thank you,
> Lucian
>
> --------------------
> java.lang.NullPointerException
> at
> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eDerivedStructur alFeatureID(BasicEObjectImpl.java:1495)
> at
> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjec tImpl.java:1010)
> at
> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjec tImpl.java:1005)
> at
> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjec tImpl.java:1000)
> at
> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eOpenUnset(Basic EObjectImpl.java:1225)
> at
> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eDynamicUnset(Ba sicEObjectImpl.java:1204)
> at
> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eDynamicUnset(Ba sicEObjectImpl.java:1197)
> at
> org.eclipse.uml2.uml.internal.impl.PropertyImpl.eUnset(Prope rtyImpl.java:2271)
> at
> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eUnset(BasicEObj ectImpl.java:1156)
> at org.eclipse.xtext.crossref.impl.Linker.clearReference(Linker .java:73)
> at org.eclipse.xtext.crossref.impl.Linker.clearReferences(Linke r.java:68)
> at
> org.eclipse.xtext.crossref.impl.Linker.clearAllReferences(Li nker.java:188)
> at org.eclipse.xtext.crossref.impl.Linker.linkModel(Linker.java :173)
> at
> org.eclipse.xtext.resource.XtextResource.doLinking(XtextReso urce.java:139)
> at org.eclipse.xtext.resource.XtextResource.doLoad(XtextResourc e.java:159)
> at
> org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:1494)
> ...
> ------------------------------------
Re: Problem with Property and eDerivedStructuralFeatureID() [message #627467 is a reply to message #478276] Thu, 02 April 2009 13:02 Go to previous message
Lazar Codrut-Lucian is currently offline Lazar Codrut-LucianFriend
Messages: 91
Registered: July 2009
Member
From my debugging I tracked down 2 references with problems.
Property.class and Parameter.operation.

Also, I noticed that for these references with problems,
in BasicEObjectImpl.eOpenUnset(EStructuralFeature),
the condition "(!FeatureMapUtil.isFeatureMap(openFeature))" is true.
Next, ExtendedMetaData.INSTANCE.getGroup(openFeature) returns null.
And on this null I get the NPE later on.

Calling unset on any other reference causes no problems, only the two
references above. Why does this happen?

Thanks,
Lucian

Lazar Codrut-Lucian wrote:
> I think I found the problem to this.
> XText Linker tries to unset an unsetable==false reference (the "class"
> reference of the Property, for instance).
>
> Lucian
>
> Lazar Codrut-Lucian wrote:
>> Hello,
>>
>> I am using UML as my metamodel for an XText grammar.
>> If my grammar is using Model, Package, Class and Operation, all is fine.
>>
>> As soon as I use Property or Parameter, I get an error.
>> Part of the stack trace is below.
>> In that case I used Property.
>>
>> There must be some property or some operation that is not supported and
>> that XText uses, but I don't know what to look for.
>>
>> Thank you,
>> Lucian
>>
>> --------------------
>> java.lang.NullPointerException
>> at
>> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eDerivedStructur alFeatureID(BasicEObjectImpl.java:1495)
>> at
>> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjec tImpl.java:1010)
>> at
>> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjec tImpl.java:1005)
>> at
>> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjec tImpl.java:1000)
>> at
>> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eOpenUnset(Basic EObjectImpl.java:1225)
>> at
>> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eDynamicUnset(Ba sicEObjectImpl.java:1204)
>> at
>> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eDynamicUnset(Ba sicEObjectImpl.java:1197)
>> at
>> org.eclipse.uml2.uml.internal.impl.PropertyImpl.eUnset(Prope rtyImpl.java:2271)
>> at
>> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eUnset(BasicEObj ectImpl.java:1156)
>> at org.eclipse.xtext.crossref.impl.Linker.clearReference(Linker .java:73)
>> at org.eclipse.xtext.crossref.impl.Linker.clearReferences(Linke r.java:68)
>> at
>> org.eclipse.xtext.crossref.impl.Linker.clearAllReferences(Li nker.java:188)
>> at org.eclipse.xtext.crossref.impl.Linker.linkModel(Linker.java :173)
>> at
>> org.eclipse.xtext.resource.XtextResource.doLinking(XtextReso urce.java:139)
>> at org.eclipse.xtext.resource.XtextResource.doLoad(XtextResourc e.java:159)
>> at
>> org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:1494)
>> ...
>> ------------------------------------
Re: Problem with Property and eDerivedStructuralFeatureID() [message #627468 is a reply to message #478277] Thu, 02 April 2009 13:12 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 29122
Registered: July 2009
Senior Member
Lucian,

Without understanding all the details, my sense is that you've passed in
a feature that's not properly a feature of the class to which you're
applying it. If that's the case, if you run with assertions enabled
(the -ea JVM flag) and are using the Galileo stream, I think you'd see
assertion failures...



Lazar Codrut-Lucian wrote:
> From my debugging I tracked down 2 references with problems.
> Property.class and Parameter.operation.
>
> Also, I noticed that for these references with problems,
> in BasicEObjectImpl.eOpenUnset(EStructuralFeature),
> the condition "(!FeatureMapUtil.isFeatureMap(openFeature))" is true.
> Next, ExtendedMetaData.INSTANCE.getGroup(openFeature) returns null.
> And on this null I get the NPE later on.
>
> Calling unset on any other reference causes no problems, only the two
> references above. Why does this happen?
>
> Thanks,
> Lucian
>
> Lazar Codrut-Lucian wrote:
>
>> I think I found the problem to this.
>> XText Linker tries to unset an unsetable==false reference (the "class"
>> reference of the Property, for instance).
>>
>> Lucian
>>
>> Lazar Codrut-Lucian wrote:
>>
>>> Hello,
>>>
>>> I am using UML as my metamodel for an XText grammar.
>>> If my grammar is using Model, Package, Class and Operation, all is fine.
>>>
>>> As soon as I use Property or Parameter, I get an error.
>>> Part of the stack trace is below.
>>> In that case I used Property.
>>>
>>> There must be some property or some operation that is not supported and
>>> that XText uses, but I don't know what to look for.
>>>
>>> Thank you,
>>> Lucian
>>>
>>> --------------------
>>> java.lang.NullPointerException
>>> at
>>> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eDerivedStructur alFeatureID(BasicEObjectImpl.java:1495)
>>> at
>>> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjec tImpl.java:1010)
>>> at
>>> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjec tImpl.java:1005)
>>> at
>>> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjec tImpl.java:1000)
>>> at
>>> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eOpenUnset(Basic EObjectImpl.java:1225)
>>> at
>>> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eDynamicUnset(Ba sicEObjectImpl.java:1204)
>>> at
>>> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eDynamicUnset(Ba sicEObjectImpl.java:1197)
>>> at
>>> org.eclipse.uml2.uml.internal.impl.PropertyImpl.eUnset(Prope rtyImpl.java:2271)
>>> at
>>> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eUnset(BasicEObj ectImpl.java:1156)
>>> at org.eclipse.xtext.crossref.impl.Linker.clearReference(Linker .java:73)
>>> at org.eclipse.xtext.crossref.impl.Linker.clearReferences(Linke r.java:68)
>>> at
>>> org.eclipse.xtext.crossref.impl.Linker.clearAllReferences(Li nker.java:188)
>>> at org.eclipse.xtext.crossref.impl.Linker.linkModel(Linker.java :173)
>>> at
>>> org.eclipse.xtext.resource.XtextResource.doLinking(XtextReso urce.java:139)
>>> at org.eclipse.xtext.resource.XtextResource.doLoad(XtextResourc e.java:159)
>>> at
>>> org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:1494)
>>> ...
>>> ------------------------------------
>>>
Re: Problem with Property and eDerivedStructuralFeatureID() [message #627469 is a reply to message #478278] Thu, 02 April 2009 17:51 Go to previous message
Lazar Codrut-Lucian is currently offline Lazar Codrut-LucianFriend
Messages: 91
Registered: July 2009
Member
Here is a simple example that you could execute:
----------
public class Test {
public static void main(String[] args) {
UMLFactory factory = UMLPackage.eINSTANCE.getUMLFactory();
Property prop = factory.createProperty();
EReference classFeature = UMLPackage.Literals.PROPERTY__CLASS;
prop.eUnset(classFeature);
}
}
----------

It throws this exception:
----------
Exception in thread "main" java.lang.NullPointerException
at
org.eclipse.emf.ecore.impl.BasicEObjectImpl.eDerivedStructur alFeatureID(BasicEObjectImpl.java:1495)
at
org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjec tImpl.java:1010)
at
org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjec tImpl.java:1005)
at
org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjec tImpl.java:1000)
at
org.eclipse.emf.ecore.impl.BasicEObjectImpl.eOpenUnset(Basic EObjectImpl.java:1225)
at
org.eclipse.emf.ecore.impl.BasicEObjectImpl.eDynamicUnset(Ba sicEObjectImpl.java:1204)
at
org.eclipse.emf.ecore.impl.BasicEObjectImpl.eDynamicUnset(Ba sicEObjectImpl.java:1197)
at
org.eclipse.uml2.uml.internal.impl.PropertyImpl.eUnset(Prope rtyImpl.java:2271)
at
org.eclipse.emf.ecore.impl.BasicEObjectImpl.eUnset(BasicEObj ectImpl.java:1156)
at org.xtext.example.Test.main(Test.java:15)
----------

Lucian

Ed Merks wrote:
> Lucian,
>
> Without understanding all the details, my sense is that you've passed in
> a feature that's not properly a feature of the class to which you're
> applying it. If that's the case, if you run with assertions enabled
> (the -ea JVM flag) and are using the Galileo stream, I think you'd see
> assertion failures...
>
>
>
> Lazar Codrut-Lucian wrote:
>> From my debugging I tracked down 2 references with problems.
>> Property.class and Parameter.operation.
>>
>> Also, I noticed that for these references with problems,
>> in BasicEObjectImpl.eOpenUnset(EStructuralFeature),
>> the condition "(!FeatureMapUtil.isFeatureMap(openFeature))" is true.
>> Next, ExtendedMetaData.INSTANCE.getGroup(openFeature) returns null.
>> And on this null I get the NPE later on.
>>
>> Calling unset on any other reference causes no problems, only the two
>> references above. Why does this happen?
>>
>> Thanks,
>> Lucian
>>
>> Lazar Codrut-Lucian wrote:
>>
>>> I think I found the problem to this.
>>> XText Linker tries to unset an unsetable==false reference (the "class"
>>> reference of the Property, for instance).
>>>
>>> Lucian
>>>
>>> Lazar Codrut-Lucian wrote:
>>>
>>>> Hello,
>>>>
>>>> I am using UML as my metamodel for an XText grammar.
>>>> If my grammar is using Model, Package, Class and Operation, all is
>>>> fine.
>>>>
>>>> As soon as I use Property or Parameter, I get an error.
>>>> Part of the stack trace is below.
>>>> In that case I used Property.
>>>>
>>>> There must be some property or some operation that is not supported and
>>>> that XText uses, but I don't know what to look for.
>>>>
>>>> Thank you,
>>>> Lucian
>>>>
>>>> --------------------
>>>> java.lang.NullPointerException
>>>> at
>>>> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eDerivedStructur alFeatureID(BasicEObjectImpl.java:1495)
>>>>
>>>> at
>>>> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjec tImpl.java:1010)
>>>>
>>>> at
>>>> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjec tImpl.java:1005)
>>>>
>>>> at
>>>> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjec tImpl.java:1000)
>>>>
>>>> at
>>>> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eOpenUnset(Basic EObjectImpl.java:1225)
>>>>
>>>> at
>>>> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eDynamicUnset(Ba sicEObjectImpl.java:1204)
>>>>
>>>> at
>>>> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eDynamicUnset(Ba sicEObjectImpl.java:1197)
>>>>
>>>> at
>>>> org.eclipse.uml2.uml.internal.impl.PropertyImpl.eUnset(Prope rtyImpl.java:2271)
>>>>
>>>> at
>>>> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eUnset(BasicEObj ectImpl.java:1156)
>>>>
>>>> at
>>>> org.eclipse.xtext.crossref.impl.Linker.clearReference(Linker .java:73)
>>>> at
>>>> org.eclipse.xtext.crossref.impl.Linker.clearReferences(Linke r.java:68)
>>>> at
>>>> org.eclipse.xtext.crossref.impl.Linker.clearAllReferences(Li nker.java:188)
>>>>
>>>> at
>>>> org.eclipse.xtext.crossref.impl.Linker.linkModel(Linker.java :173)
>>>> at
>>>> org.eclipse.xtext.resource.XtextResource.doLinking(XtextReso urce.java:139)
>>>>
>>>> at
>>>> org.eclipse.xtext.resource.XtextResource.doLoad(XtextResourc e.java:159)
>>>> at
>>>> org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:1494)
>>>>
>>>> ...
>>>> ------------------------------------
>>>>
Re: Problem with Property and eDerivedStructuralFeatureID() [message #627470 is a reply to message #478279] Thu, 02 April 2009 18:00 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 29122
Registered: July 2009
Senior Member
Lucian,

There is some odd stuff associated with this particular feature. I'm
not sure why it's like this. For example, I see

@Override
public void eDynamicSet(int featureID, Object newValue) {

if (featureID == UMLPackage.PROPERTY__CLASS) {
setClass_((org.eclipse.uml2.uml.Class) newValue);
return;
}

super.eDynamicSet(featureID, newValue);
}

But there's no corresponding eDynamicUnset for that feature, so likely
that's the problem. Some UML expert needs to comment...



Lazar Codrut-Lucian wrote:
> Here is a simple example that you could execute:
> ----------
> public class Test {
> public static void main(String[] args) {
> UMLFactory factory = UMLPackage.eINSTANCE.getUMLFactory();
> Property prop = factory.createProperty();
> EReference classFeature = UMLPackage.Literals.PROPERTY__CLASS;
> prop.eUnset(classFeature);
> }
> }
> ----------
>
> It throws this exception:
> ----------
> Exception in thread "main" java.lang.NullPointerException
> at
> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eDerivedStructur alFeatureID(BasicEObjectImpl.java:1495)
> at
> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjec tImpl.java:1010)
> at
> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjec tImpl.java:1005)
> at
> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjec tImpl.java:1000)
> at
> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eOpenUnset(Basic EObjectImpl.java:1225)
> at
> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eDynamicUnset(Ba sicEObjectImpl.java:1204)
> at
> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eDynamicUnset(Ba sicEObjectImpl.java:1197)
> at
> org.eclipse.uml2.uml.internal.impl.PropertyImpl.eUnset(Prope rtyImpl.java:2271)
> at
> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eUnset(BasicEObj ectImpl.java:1156)
> at org.xtext.example.Test.main(Test.java:15)
> ----------
>
> Lucian
>
> Ed Merks wrote:
>
>> Lucian,
>>
>> Without understanding all the details, my sense is that you've passed in
>> a feature that's not properly a feature of the class to which you're
>> applying it. If that's the case, if you run with assertions enabled
>> (the -ea JVM flag) and are using the Galileo stream, I think you'd see
>> assertion failures...
>>
>>
>>
>> Lazar Codrut-Lucian wrote:
>>
>>> From my debugging I tracked down 2 references with problems.
>>> Property.class and Parameter.operation.
>>>
>>> Also, I noticed that for these references with problems,
>>> in BasicEObjectImpl.eOpenUnset(EStructuralFeature),
>>> the condition "(!FeatureMapUtil.isFeatureMap(openFeature))" is true.
>>> Next, ExtendedMetaData.INSTANCE.getGroup(openFeature) returns null.
>>> And on this null I get the NPE later on.
>>>
>>> Calling unset on any other reference causes no problems, only the two
>>> references above. Why does this happen?
>>>
>>> Thanks,
>>> Lucian
>>>
>>> Lazar Codrut-Lucian wrote:
>>>
>>>
>>>> I think I found the problem to this.
>>>> XText Linker tries to unset an unsetable==false reference (the "class"
>>>> reference of the Property, for instance).
>>>>
>>>> Lucian
>>>>
>>>> Lazar Codrut-Lucian wrote:
>>>>
>>>>
>>>>> Hello,
>>>>>
>>>>> I am using UML as my metamodel for an XText grammar.
>>>>> If my grammar is using Model, Package, Class and Operation, all is
>>>>> fine.
>>>>>
>>>>> As soon as I use Property or Parameter, I get an error.
>>>>> Part of the stack trace is below.
>>>>> In that case I used Property.
>>>>>
>>>>> There must be some property or some operation that is not supported and
>>>>> that XText uses, but I don't know what to look for.
>>>>>
>>>>> Thank you,
>>>>> Lucian
>>>>>
>>>>> --------------------
>>>>> java.lang.NullPointerException
>>>>> at
>>>>> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eDerivedStructur alFeatureID(BasicEObjectImpl.java:1495)
>>>>>
>>>>> at
>>>>> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjec tImpl.java:1010)
>>>>>
>>>>> at
>>>>> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjec tImpl.java:1005)
>>>>>
>>>>> at
>>>>> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjec tImpl.java:1000)
>>>>>
>>>>> at
>>>>> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eOpenUnset(Basic EObjectImpl.java:1225)
>>>>>
>>>>> at
>>>>> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eDynamicUnset(Ba sicEObjectImpl.java:1204)
>>>>>
>>>>> at
>>>>> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eDynamicUnset(Ba sicEObjectImpl.java:1197)
>>>>>
>>>>> at
>>>>> org.eclipse.uml2.uml.internal.impl.PropertyImpl.eUnset(Prope rtyImpl.java:2271)
>>>>>
>>>>> at
>>>>> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eUnset(BasicEObj ectImpl.java:1156)
>>>>>
>>>>> at
>>>>> org.eclipse.xtext.crossref.impl.Linker.clearReference(Linker .java:73)
>>>>> at
>>>>> org.eclipse.xtext.crossref.impl.Linker.clearReferences(Linke r.java:68)
>>>>> at
>>>>> org.eclipse.xtext.crossref.impl.Linker.clearAllReferences(Li nker.java:188)
>>>>>
>>>>> at
>>>>> org.eclipse.xtext.crossref.impl.Linker.linkModel(Linker.java :173)
>>>>> at
>>>>> org.eclipse.xtext.resource.XtextResource.doLinking(XtextReso urce.java:139)
>>>>>
>>>>> at
>>>>> org.eclipse.xtext.resource.XtextResource.doLoad(XtextResourc e.java:159)
>>>>> at
>>>>> org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:1494)
>>>>>
>>>>> ...
>>>>> ------------------------------------
>>>>>
>>>>>
Re: Problem with Property and eDerivedStructuralFeatureID() [message #627473 is a reply to message #478280] Fri, 03 April 2009 19:09 Go to previous message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
Ed, Lucian,

Although the 'class' feature of Property is unsettable, you should probably
not be getting a null pointer exception.
I'm getting a slightly different stack trace using the latest version of
UML2/EMF.

Ed, we seem to be getting into some trouble in
BasicEObjectImpl.eOpenUnset(). The call to getGroup() returns null and it's
all downhill from there.

Lucian, please raise a defect on UML2 and I'll have a closer look.

Cheers,
- James.


"Ed Merks" <Ed.Merks@gmail.com> wrote in message
news:gr2ufn$9kq$1@build.eclipse.org...
> Lucian,
>
> There is some odd stuff associated with this particular feature. I'm not
> sure why it's like this. For example, I see
>
> @Override
> public void eDynamicSet(int featureID, Object newValue) {
>
> if (featureID == UMLPackage.PROPERTY__CLASS) {
> setClass_((org.eclipse.uml2.uml.Class) newValue);
> return;
> }
>
> super.eDynamicSet(featureID, newValue);
> }
>
> But there's no corresponding eDynamicUnset for that feature, so likely
> that's the problem. Some UML expert needs to comment...
>
>
>
> Lazar Codrut-Lucian wrote:
>> Here is a simple example that you could execute:
>> ----------
>> public class Test {
>> public static void main(String[] args) {
>> UMLFactory factory = UMLPackage.eINSTANCE.getUMLFactory();
>> Property prop = factory.createProperty();
>> EReference classFeature = UMLPackage.Literals.PROPERTY__CLASS;
>> prop.eUnset(classFeature);
>> }
>> }
>> ----------
>>
>> It throws this exception:
>> ----------
>> Exception in thread "main" java.lang.NullPointerException
>> at
>> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eDerivedStructur alFeatureID(BasicEObjectImpl.java:1495)
>> at
>> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjec tImpl.java:1010)
>> at
>> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjec tImpl.java:1005)
>> at
>> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjec tImpl.java:1000)
>> at
>> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eOpenUnset(Basic EObjectImpl.java:1225)
>> at
>> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eDynamicUnset(Ba sicEObjectImpl.java:1204)
>> at
>> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eDynamicUnset(Ba sicEObjectImpl.java:1197)
>> at
>> org.eclipse.uml2.uml.internal.impl.PropertyImpl.eUnset(Prope rtyImpl.java:2271)
>> at
>> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eUnset(BasicEObj ectImpl.java:1156)
>> at org.xtext.example.Test.main(Test.java:15)
>> ----------
>>
>> Lucian
>>
>> Ed Merks wrote:
>>
>>> Lucian,
>>>
>>> Without understanding all the details, my sense is that you've passed in
>>> a feature that's not properly a feature of the class to which you're
>>> applying it. If that's the case, if you run with assertions enabled
>>> (the -ea JVM flag) and are using the Galileo stream, I think you'd see
>>> assertion failures...
>>>
>>>
>>>
>>> Lazar Codrut-Lucian wrote:
>>>
>>>> From my debugging I tracked down 2 references with problems.
>>>> Property.class and Parameter.operation.
>>>>
>>>> Also, I noticed that for these references with problems,
>>>> in BasicEObjectImpl.eOpenUnset(EStructuralFeature),
>>>> the condition "(!FeatureMapUtil.isFeatureMap(openFeature))" is true.
>>>> Next, ExtendedMetaData.INSTANCE.getGroup(openFeature) returns null.
>>>> And on this null I get the NPE later on.
>>>>
>>>> Calling unset on any other reference causes no problems, only the two
>>>> references above. Why does this happen?
>>>>
>>>> Thanks,
>>>> Lucian
>>>>
>>>> Lazar Codrut-Lucian wrote:
>>>>
>>>>> I think I found the problem to this.
>>>>> XText Linker tries to unset an unsetable==false reference (the "class"
>>>>> reference of the Property, for instance).
>>>>>
>>>>> Lucian
>>>>>
>>>>> Lazar Codrut-Lucian wrote:
>>>>>
>>>>>> Hello,
>>>>>>
>>>>>> I am using UML as my metamodel for an XText grammar.
>>>>>> If my grammar is using Model, Package, Class and Operation, all is
>>>>>> fine.
>>>>>>
>>>>>> As soon as I use Property or Parameter, I get an error.
>>>>>> Part of the stack trace is below.
>>>>>> In that case I used Property.
>>>>>>
>>>>>> There must be some property or some operation that is not supported
>>>>>> and
>>>>>> that XText uses, but I don't know what to look for.
>>>>>>
>>>>>> Thank you,
>>>>>> Lucian
>>>>>>
>>>>>> --------------------
>>>>>> java.lang.NullPointerException
>>>>>> at
>>>>>> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eDerivedStructur alFeatureID(BasicEObjectImpl.java:1495)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjec tImpl.java:1010)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjec tImpl.java:1005)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjec tImpl.java:1000)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eOpenUnset(Basic EObjectImpl.java:1225)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eDynamicUnset(Ba sicEObjectImpl.java:1204)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eDynamicUnset(Ba sicEObjectImpl.java:1197)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.uml2.uml.internal.impl.PropertyImpl.eUnset(Prope rtyImpl.java:2271)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eUnset(BasicEObj ectImpl.java:1156)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.xtext.crossref.impl.Linker.clearReference(Linker .java:73)
>>>>>> at
>>>>>> org.eclipse.xtext.crossref.impl.Linker.clearReferences(Linke r.java:68)
>>>>>> at
>>>>>> org.eclipse.xtext.crossref.impl.Linker.clearAllReferences(Li nker.java:188)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.xtext.crossref.impl.Linker.linkModel(Linker.java :173)
>>>>>> at
>>>>>> org.eclipse.xtext.resource.XtextResource.doLinking(XtextReso urce.java:139)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.xtext.resource.XtextResource.doLoad(XtextResourc e.java:159)
>>>>>> at
>>>>>> org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:1494)
>>>>>>
>>>>>> ...
>>>>>> ------------------------------------
>>>>>>
Re: Problem with Property and eDerivedStructuralFeatureID() [message #627475 is a reply to message #478283] Fri, 03 April 2009 19:33 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 29122
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------030007060001060501030602
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

James,

The problem seems to be that the generated eSet and eUnset both don't
handle the PROPERTY__CLASS case, although eSet and eIsSet do, though in
a way I don't recognize from the basic templates. Then eSet has a
special eDynamicSet override be eUnset doesn't. Therein I would think
lies the problem. Why the code is generated like this isn't familiar to
me...


James Bruck wrote:
> Ed, Lucian,
>
> Although the 'class' feature of Property is unsettable, you should probably
> not be getting a null pointer exception.
> I'm getting a slightly different stack trace using the latest version of
> UML2/EMF.
>
> Ed, we seem to be getting into some trouble in
> BasicEObjectImpl.eOpenUnset(). The call to getGroup() returns null and it's
> all downhill from there.
>
> Lucian, please raise a defect on UML2 and I'll have a closer look.
>
> Cheers,
> - James.
>
>
> "Ed Merks" <Ed.Merks@gmail.com> wrote in message
> news:gr2ufn$9kq$1@build.eclipse.org...
>
>> Lucian,
>>
>> There is some odd stuff associated with this particular feature. I'm not
>> sure why it's like this. For example, I see
>>
>> @Override
>> public void eDynamicSet(int featureID, Object newValue) {
>>
>> if (featureID == UMLPackage.PROPERTY__CLASS) {
>> setClass_((org.eclipse.uml2.uml.Class) newValue);
>> return;
>> }
>>
>> super.eDynamicSet(featureID, newValue);
>> }
>>
>> But there's no corresponding eDynamicUnset for that feature, so likely
>> that's the problem. Some UML expert needs to comment...
>>
>>
>>
>> Lazar Codrut-Lucian wrote:
>>
>>> Here is a simple example that you could execute:
>>> ----------
>>> public class Test {
>>> public static void main(String[] args) {
>>> UMLFactory factory = UMLPackage.eINSTANCE.getUMLFactory();
>>> Property prop = factory.createProperty();
>>> EReference classFeature = UMLPackage.Literals.PROPERTY__CLASS;
>>> prop.eUnset(classFeature);
>>> }
>>> }
>>> ----------
>>>
>>> It throws this exception:
>>> ----------
>>> Exception in thread "main" java.lang.NullPointerException
>>> at
>>> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eDerivedStructur alFeatureID(BasicEObjectImpl.java:1495)
>>> at
>>> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjec tImpl.java:1010)
>>> at
>>> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjec tImpl.java:1005)
>>> at
>>> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjec tImpl.java:1000)
>>> at
>>> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eOpenUnset(Basic EObjectImpl.java:1225)
>>> at
>>> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eDynamicUnset(Ba sicEObjectImpl.java:1204)
>>> at
>>> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eDynamicUnset(Ba sicEObjectImpl.java:1197)
>>> at
>>> org.eclipse.uml2.uml.internal.impl.PropertyImpl.eUnset(Prope rtyImpl.java:2271)
>>> at
>>> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eUnset(BasicEObj ectImpl.java:1156)
>>> at org.xtext.example.Test.main(Test.java:15)
>>> ----------
>>>
>>> Lucian
>>>
>>> Ed Merks wrote:
>>>
>>>
>>>> Lucian,
>>>>
>>>> Without understanding all the details, my sense is that you've passed in
>>>> a feature that's not properly a feature of the class to which you're
>>>> applying it. If that's the case, if you run with assertions enabled
>>>> (the -ea JVM flag) and are using the Galileo stream, I think you'd see
>>>> assertion failures...
>>>>
>>>>
>>>>
>>>> Lazar Codrut-Lucian wrote:
>>>>
>>>>
>>>>> From my debugging I tracked down 2 references with problems.
>>>>> Property.class and Parameter.operation.
>>>>>
>>>>> Also, I noticed that for these references with problems,
>>>>> in BasicEObjectImpl.eOpenUnset(EStructuralFeature),
>>>>> the condition "(!FeatureMapUtil.isFeatureMap(openFeature))" is true.
>>>>> Next, ExtendedMetaData.INSTANCE.getGroup(openFeature) returns null.
>>>>> And on this null I get the NPE later on.
>>>>>
>>>>> Calling unset on any other reference causes no problems, only the two
>>>>> references above. Why does this happen?
>>>>>
>>>>> Thanks,
>>>>> Lucian
>>>>>
>>>>> Lazar Codrut-Lucian wrote:
>>>>>
>>>>>
>>>>>> I think I found the problem to this.
>>>>>> XText Linker tries to unset an unsetable==false reference (the "class"
>>>>>> reference of the Property, for instance).
>>>>>>
>>>>>> Lucian
>>>>>>
>>>>>> Lazar Codrut-Lucian wrote:
>>>>>>
>>>>>>
>>>>>>> Hello,
>>>>>>>
>>>>>>> I am using UML as my metamodel for an XText grammar.
>>>>>>> If my grammar is using Model, Package, Class and Operation, all is
>>>>>>> fine.
>>>>>>>
>>>>>>> As soon as I use Property or Parameter, I get an error.
>>>>>>> Part of the stack trace is below.
>>>>>>> In that case I used Property.
>>>>>>>
>>>>>>> There must be some property or some operation that is not supported
>>>>>>> and
>>>>>>> that XText uses, but I don't know what to look for.
>>>>>>>
>>>>>>> Thank you,
>>>>>>> Lucian
>>>>>>>
>>>>>>> --------------------
>>>>>>> java.lang.NullPointerException
>>>>>>> at
>>>>>>> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eDerivedStructur alFeatureID(BasicEObjectImpl.java:1495)
>>>>>>>
>>>>>>> at
>>>>>>> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjec tImpl.java:1010)
>>>>>>>
>>>>>>> at
>>>>>>> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjec tImpl.java:1005)
>>>>>>>
>>>>>>> at
>>>>>>> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjec tImpl.java:1000)
>>>>>>>
>>>>>>> at
>>>>>>> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eOpenUnset(Basic EObjectImpl.java:1225)
>>>>>>>
>>>>>>> at
>>>>>>> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eDynamicUnset(Ba sicEObjectImpl.java:1204)
>>>>>>>
>>>>>>> at
>>>>>>> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eDynamicUnset(Ba sicEObjectImpl.java:1197)
>>>>>>>
>>>>>>> at
>>>>>>> org.eclipse.uml2.uml.internal.impl.PropertyImpl.eUnset(Prope rtyImpl.java:2271)
>>>>>>>
>>>>>>> at
>>>>>>> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eUnset(BasicEObj ectImpl.java:1156)
>>>>>>>
>>>>>>> at
>>>>>>> org.eclipse.xtext.crossref.impl.Linker.clearReference(Linker .java:73)
>>>>>>> at
>>>>>>> org.eclipse.xtext.crossref.impl.Linker.clearReferences(Linke r.java:68)
>>>>>>> at
>>>>>>> org.eclipse.xtext.crossref.impl.Linker.clearAllReferences(Li nker.java:188)
>>>>>>>
>>>>>>> at
>>>>>>> org.eclipse.xtext.crossref.impl.Linker.linkModel(Linker.java :173)
>>>>>>> at
>>>>>>> org.eclipse.xtext.resource.XtextResource.doLinking(XtextReso urce.java:139)
>>>>>>>
>>>>>>> at
>>>>>>> org.eclipse.xtext.resource.XtextResource.doLoad(XtextResourc e.java:159)
>>>>>>> at
>>>>>>> org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:1494)
>>>>>>>
>>>>>>> ...
>>>>>>> ------------------------------------
>>>>>>>
>>>>>>>
>
>
>

--------------030007060001060501030602
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
James,<br>
<br>
The problem seems to be that the generated eSet and eUnset both don't
handle the PROPERTY__CLASS case, although eSet and eIsSet do, though in
a way I don't recognize from the basic templates.&nbsp; Then eSet has a
special eDynamicSet override be eUnset doesn't.&nbsp;&nbsp; Therein I would think
lies the problem.&nbsp; Why the code is generated like this isn't familiar
to me...<br>
<br>
<br>
James Bruck wrote:
<blockquote cite="mid:gr5mna$e0u$1@build.eclipse.org" type="cite">
<pre wrap="">Ed, Lucian,

Although the 'class' feature of Property is unsettable, you should probably
not be getting a null pointer exception.
I'm getting a slightly different stack trace using the latest version of
UML2/EMF.

Ed, we seem to be getting into some trouble in
BasicEObjectImpl.eOpenUnset(). The call to getGroup() returns null and it's
all downhill from there.

Lucian, please raise a defect on UML2 and I'll have a closer look.

Cheers,
- James.


"Ed Merks" <a class="moz-txt-link-rfc2396E" href="mailto:Ed.Merks@gmail.com">&lt;Ed.Merks@gmail.com&gt;</a> wrote in message
<a class="moz-txt-link-freetext" href="news:gr2ufn$9kq$1@build.eclipse.org">news:gr2ufn$9kq$1@build.eclipse.org</a>...
</pre>
<blockquote type="cite">
<pre wrap="">Lucian,

There is some odd stuff associated with this particular feature. I'm not
sure why it's like this. For example, I see

@Override
public void eDynamicSet(int featureID, Object newValue) {

if (featureID == UMLPackage.PROPERTY__CLASS) {
setClass_((org.eclipse.uml2.uml.Class) newValue);
return;
}

super.eDynamicSet(featureID, newValue);
}

But there's no corresponding eDynamicUnset for that feature, so likely
that's the problem. Some UML expert needs to comment...



Lazar Codrut-Lucian wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Here is a simple example that you could execute:
----------
public class Test {
public static void main(String[] args) {
UMLFactory factory = UMLPackage.eINSTANCE.getUMLFactory();
Property prop = factory.createProperty();
EReference classFeature = UMLPackage.Literals.PROPERTY__CLASS;
prop.eUnset(classFeature);
}
}
----------

It throws this exception:
----------
Exception in thread "main" java.lang.NullPointerException
at
org.eclipse.emf.ecore.impl.BasicEObjectImpl.eDerivedStructur alFeatureID(BasicEObjectImpl.java:1495)
at
org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjec tImpl.java:1010)
at
org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjec tImpl.java:1005)
at
org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjec tImpl.java:1000)
at
org.eclipse.emf.ecore.impl.BasicEObjectImpl.eOpenUnset(Basic EObjectImpl.java:1225)
at
org.eclipse.emf.ecore.impl.BasicEObjectImpl.eDynamicUnset(Ba sicEObjectImpl.java:1204)
at
org.eclipse.emf.ecore.impl.BasicEObjectImpl.eDynamicUnset(Ba sicEObjectImpl.java:1197)
at
org.eclipse.uml2.uml.internal.impl.PropertyImpl.eUnset(Prope rtyImpl.java:2271)
at
org.eclipse.emf.ecore.impl.BasicEObjectImpl.eUnset(BasicEObj ectImpl.java:1156)
at org.xtext.example.Test.main(Test.java:15)
----------

Lucian

Ed Merks wrote:

</pre>
<blockquote type="cite">
<pre wrap="">Lucian,

Without understanding all the details, my sense is that you've passed in
a feature that's not properly a feature of the class to which you're
applying it. If that's the case, if you run with assertions enabled
(the -ea JVM flag) and are using the Galileo stream, I think you'd see
assertion failures...



Lazar Codrut-Lucian wrote:

</pre>
<blockquote type="cite">
<pre wrap="">From my debugging I tracked down 2 references with problems.
Property.class and Parameter.operation.

Also, I noticed that for these references with problems,
in BasicEObjectImpl.eOpenUnset(EStructuralFeature),
the condition "(!FeatureMapUtil.isFeatureMap(openFeature))" is true.
Next, ExtendedMetaData.INSTANCE.getGroup(openFeature) returns null.
And on this null I get the NPE later on.

Calling unset on any other reference causes no problems, only the two
references above. Why does this happen?

Thanks,
Lucian

Lazar Codrut-Lucian wrote:

</pre>
<blockquote type="cite">
<pre wrap="">I think I found the problem to this.
XText Linker tries to unset an unsetable==false reference (the "class"
reference of the Property, for instance).

Lucian

Lazar Codrut-Lucian wrote:

</pre>
<blockquote type="cite">
<pre wrap="">Hello,

I am using UML as my metamodel for an XText grammar.
If my grammar is using Model, Package, Class and Operation, all is
fine.

As soon as I use Property or Parameter, I get an error.
Part of the stack trace is below.
In that case I used Property.

There must be some property or some operation that is not supported
and
that XText uses, but I don't know what to look for.

Thank you,
Lucian

--------------------
java.lang.NullPointerException
at
org.eclipse.emf.ecore.impl.BasicEObjectImpl.eDerivedStructur alFeatureID(BasicEObjectImpl.java:1495)

at
org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjec tImpl.java:1010)

at
org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjec tImpl.java:1005)

at
org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjec tImpl.java:1000)

at
org.eclipse.emf.ecore.impl.BasicEObjectImpl.eOpenUnset(Basic EObjectImpl.java:1225)

at
org.eclipse.emf.ecore.impl.BasicEObjectImpl.eDynamicUnset(Ba sicEObjectImpl.java:1204)

at
org.eclipse.emf.ecore.impl.BasicEObjectImpl.eDynamicUnset(Ba sicEObjectImpl.java:1197)

at
org.eclipse.uml2.uml.internal.impl.PropertyImpl.eUnset(Prope rtyImpl.java:2271)

at
org.eclipse.emf.ecore.impl.BasicEObjectImpl.eUnset(BasicEObj ectImpl.java:1156)

at
org.eclipse.xtext.crossref.impl.Linker.clearReference(Linker .java:73)
at
org.eclipse.xtext.crossref.impl.Linker.clearReferences(Linke r.java:68)
at
org.eclipse.xtext.crossref.impl.Linker.clearAllReferences(Li nker.java:188)

at
org.eclipse.xtext.crossref.impl.Linker.linkModel(Linker.java :173)
at
org.eclipse.xtext.resource.XtextResource.doLinking(XtextReso urce.java:139)

at
org.eclipse.xtext.resource.XtextResource.doLoad(XtextResourc e.java:159)
at
org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:1494)

....
------------------------------------

</pre>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
<pre wrap=""><!---->

</pre>
</blockquote>
</body>
</html>

--------------030007060001060501030602--
Previous Topic:xsi:schemaLocation
Next Topic:How to use user defined class within profile?
Goto Forum:
  


Current Time: Fri Jan 19 09:53:57 GMT 2018

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

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