[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.tools.emf] Re: [CDO] Importing a UML model
|
- From: Eike Stepper <stepper@xxxxxxxxxx>
- Date: Thu, 07 May 2009 18:09:46 +0200
- Newsgroups: eclipse.tools.emf
- Organization: EclipseCorner
- User-agent: Thunderbird 2.0.0.21 (Windows/20090302)
Maurice O'Connor schrieb:
> Thanks for the advice Eike. Is UML 3.0 functioning?
I'm not sure what you mean. UML for itself is certainly functioning. But
currently not with CDO, as I said.
Cheers
/Eike
----
http://thegordian.blogspot.com
> I've tried to commit a UML 3.0 model and got a nullpointer, with this
> stack trace:
>
> !ENTRY org.eclipse.net4j.util.ui 4 0 2009-05-07 16:42:42.407
> !MESSAGE NullPointerException
> !STACK 0
> java.lang.NullPointerException
> at
> org.eclipse.emf.cdo.eresource.impl.CDOResourceImpl$ContentsCDOList.inverseAdd(CDOResourceImpl.java:1006)
>
> at
> org.eclipse.emf.common.notify.impl.DelegatingNotifyingListImpl.addUnique(DelegatingNotifyingListImpl.java:285)
>
> at
> org.eclipse.emf.common.util.AbstractEList.add(AbstractEList.java:307)
> at
> org.eclipse.emf.cdo.internal.ui.actions.ImportResourceAction.doRun(ImportResourceAction.java:99)
>
> at
> org.eclipse.net4j.util.ui.actions.LongRunningAction$1.run(LongRunningAction.java:164)
>
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
>
> !ENTRY org.eclipse.net4j.util.ui 4 0 2009-05-07 16:42:42.410
> !MESSAGE !STACK 0
> java.lang.NullPointerException
> at
> org.eclipse.emf.cdo.eresource.impl.CDOResourceImpl$ContentsCDOList.inverseAdd(CDOResourceImpl.java:1006)
>
> at
> org.eclipse.emf.common.notify.impl.DelegatingNotifyingListImpl.addUnique(DelegatingNotifyingListImpl.java:285)
>
> at
> org.eclipse.emf.common.util.AbstractEList.add(AbstractEList.java:307)
> at
> org.eclipse.emf.cdo.internal.ui.actions.ImportResourceAction.doRun(ImportResourceAction.java:99)
>
> at
> org.eclipse.net4j.util.ui.actions.LongRunningAction$1.run(LongRunningAction.java:164)
>
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
>
>
> Maurice
>
> Eike Stepper wrote:
>> Maurice,
>
>> Comments below...
>
>
>> Maurice schrieb:
>>> Hi,
>>>
>>> I want to import a UML 2.1 model into my CDO Server.
>> Unfortunately that's not possible as of now.
>> The UML2 not only is a "legacy model" from the perspective of CDO (i.e.
>> not generated for CDO).
>> It (like OCL and the GMF notational model) is even very naughty because
>> it *extends* Ecore, which is an official no-no.
>
>> While I'm just at this moment working on general legacy model support in
>> CDO,
>> Kenn Hussey (CC'ed) from the UML2 project indicated that he might come
>> up this week with an initial patch of UML2,
>> so that it becomes a CDO native model.
>
>> Please stay tuned ;-)
>
>
>>> I'm under the impression that this involves:
>>>
>>> 1. Registering the package on the server using the client's package
>>> manager
>>> 2. Importing the resource from a transaction (finding my .uml file and
>>> opening it)
>>>
>>> When I follow these steps I get this error:
>>>
>>> org.eclipse.emf.ecore.xmi.PackageNotFoundException: Package with uri
>>> 'http://www.eclipse.org/uml2/2.1.0/UML' not found.
>>> (file:/C:/myfile.uml, 2, 178)
>> Generally stack traces are welcome.
>> But in this case all the explanantion is above...
>
>> Cheers
>> /Eike
>
>> ----
>> http://thegordian.blogspot.com
>
>