Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [CDO]ClassRef unresolveable: CDOClassRef
[CDO]ClassRef unresolveable: CDOClassRef [message #426556] Tue, 13 January 2009 16:00 Go to next message
Oelerink is currently offline OelerinkFriend
Messages: 129
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------010509000100030303040106
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 8bit

Hello,

i tried to upload a simple Element. Created by this code:

UmaPackage umaPackage = UmaPackage.eINSTANCE;
UmaFactory umaFactory = UmaFactory.eINSTANCE;

org.eclipse.epf.xml.uma.Element model = umaFactory.createElement();

resource.getContents().add(model);

But i get allways this exception:

[ERROR] java.lang.IllegalStateException: ClassRef unresolveable:
CDOClassRef(http://www.eclipse.org/epf/uma/1.0.5, 29)

The model is really simple and i don't know why i get the exception.
Can somebody give me a solution?

Greetings
J
Re: [CDO]ClassRef unresolveable: CDOClassRef [message #426557 is a reply to message #426556] Tue, 13 January 2009 16:07 Go to previous messageGo to next message
Simon Mc Duff is currently offline Simon Mc DuffFriend
Messages: 596
Registered: July 2009
Senior Member
Hi Jörg,

You should register your model first. To achieved that you have many
options:

1- session.getPackageRegistry().putEPackage(umaPackage );

2- Use lazy package registry one

CDOSessionConfiguration configuration =
CDONet4jUtil.createSessionConfiguration();
configuration.setConnector(getConnector());
configuration.setRepositoryName(IRepositoryConfig.REPOSITORY _NAME);

>>> configuration.setLazyPackageRegistry(); <<<


CDOSession session = configuration.openSession();

I hope it will help you.


Jörg wrote:
> Hello,
>
> i tried to upload a simple Element. Created by this code:
>
> UmaPackage umaPackage = UmaPackage.eINSTANCE;
> UmaFactory umaFactory = UmaFactory.eINSTANCE;
>
> org.eclipse.epf.xml.uma.Element model = umaFactory.createElement();
>
> resource.getContents().add(model);
>
> But i get allways this exception:
>
> [ERROR] java.lang.IllegalStateException: ClassRef unresolveable:
> CDOClassRef(http://www.eclipse.org/epf/uma/1.0.5, 29)
>
> The model is really simple and i don't know why i get the exception.
> Can somebody give me a solution?
>
> Greetings
> Jörg
Re: [CDO]ClassRef unresolveable: CDOClassRef [message #426558 is a reply to message #426556] Tue, 13 January 2009 16:18 Go to previous messageGo to next message
Simon Mc Duff is currently offline Simon Mc DuffFriend
Messages: 596
Registered: July 2009
Senior Member
Hi Again,

We've created the following bugzilla to make LazyRegistry by default to
simplify the use of CDO.

https://bugs.eclipse.org/bugs/show_bug.cgi?id=260873

Simon

Jörg wrote:
> Hello,
>
> i tried to upload a simple Element. Created by this code:
>
> UmaPackage umaPackage = UmaPackage.eINSTANCE;
> UmaFactory umaFactory = UmaFactory.eINSTANCE;
>
> org.eclipse.epf.xml.uma.Element model = umaFactory.createElement();
>
> resource.getContents().add(model);
>
> But i get allways this exception:
>
> [ERROR] java.lang.IllegalStateException: ClassRef unresolveable:
> CDOClassRef(http://www.eclipse.org/epf/uma/1.0.5, 29)
>
> The model is really simple and i don't know why i get the exception.
> Can somebody give me a solution?
>
> Greetings
> Jörg
Re: [CDO]ClassRef unresolveable: CDOClassRef [message #426559 is a reply to message #426557] Tue, 13 January 2009 16:20 Go to previous messageGo to next message
Oelerink is currently offline OelerinkFriend
Messages: 129
Registered: July 2009
Senior Member
Thanks
this helps,but now i get another exception:

[ERROR] Rollback in DBStore: org.eclipse.net4j.util.ImplementationError:
Unrecognized CDOType: FEATURE_MAP_ENTRY

What does this mean? Can i fix it?

Greetings

Simon McDuff schrieb:
> Hi Jörg,
>
> You should register your model first. To achieved that you have many
> options:
>
> 1- session.getPackageRegistry().putEPackage(umaPackage );
>
> 2- Use lazy package registry one
>
> CDOSessionConfiguration configuration =
> CDONet4jUtil.createSessionConfiguration();
> configuration.setConnector(getConnector());
> configuration.setRepositoryName(IRepositoryConfig.REPOSITORY _NAME);
>
> >>> configuration.setLazyPackageRegistry(); <<<
>
>
> CDOSession session = configuration.openSession();
>
> I hope it will help you.
>
>
> Jörg wrote:
>> Hello,
>>
>> i tried to upload a simple Element. Created by this code:
>>
>> UmaPackage umaPackage = UmaPackage.eINSTANCE;
>> UmaFactory umaFactory = UmaFactory.eINSTANCE;
>> org.eclipse.epf.xml.uma.Element model =
>> umaFactory.createElement();
>> resource.getContents().add(model);
>>
>> But i get allways this exception:
>>
>> [ERROR] java.lang.IllegalStateException: ClassRef unresolveable:
>> CDOClassRef(http://www.eclipse.org/epf/uma/1.0.5, 29)
>>
>> The model is really simple and i don't know why i get the exception.
>> Can somebody give me a solution?
>>
>> Greetings
>> Jörg
Re: [CDO]ClassRef unresolveable: CDOClassRef [message #426560 is a reply to message #426559] Tue, 13 January 2009 16:35 Go to previous messageGo to next message
Simon Mc Duff is currently offline Simon Mc DuffFriend
Messages: 596
Registered: July 2009
Senior Member
CDO Supports FeatureMap at the moment :
see 249436: Support FeatureMap
https://bugs.eclipse.org/bugs/show_bug.cgi?id=249436


Unfortunately, DBStore do not support featuremap yet.

see 254455: [DB] Support FeatureMaps
https://bugs.eclipse.org/bugs/show_bug.cgi?id=254455 for more information.

Simon


Jörg wrote:
> Thanks
> this helps,but now i get another exception:
>
> [ERROR] Rollback in DBStore: org.eclipse.net4j.util.ImplementationError:
> Unrecognized CDOType: FEATURE_MAP_ENTRY
>
> What does this mean? Can i fix it?
>
> Greetings
>
> Simon McDuff schrieb:
>> Hi Jörg,
>>
>> You should register your model first. To achieved that you have many
>> options:
>>
>> 1- session.getPackageRegistry().putEPackage(umaPackage );
>>
>> 2- Use lazy package registry one
>>
>> CDOSessionConfiguration configuration =
>> CDONet4jUtil.createSessionConfiguration();
>> configuration.setConnector(getConnector());
>>
>> configuration.setRepositoryName(IRepositoryConfig.REPOSITORY _NAME);
>>
>> >>> configuration.setLazyPackageRegistry(); <<<
>>
>>
>> CDOSession session = configuration.openSession();
>>
>> I hope it will help you.
>>
>>
>> Jörg wrote:
>>> Hello,
>>>
>>> i tried to upload a simple Element. Created by this code:
>>>
>>> UmaPackage umaPackage = UmaPackage.eINSTANCE;
>>> UmaFactory umaFactory = UmaFactory.eINSTANCE;
>>> org.eclipse.epf.xml.uma.Element model =
>>> umaFactory.createElement();
>>> resource.getContents().add(model);
>>>
>>> But i get allways this exception:
>>>
>>> [ERROR] java.lang.IllegalStateException: ClassRef unresolveable:
>>> CDOClassRef(http://www.eclipse.org/epf/uma/1.0.5, 29)
>>>
>>> The model is really simple and i don't know why i get the exception.
>>> Can somebody give me a solution?
>>>
>>> Greetings
>>> Jörg
Re: [CDO]ClassRef unresolveable: CDOClassRef [message #426561 is a reply to message #426560] Tue, 13 January 2009 17:08 Go to previous messageGo to next message
Oelerink is currently offline OelerinkFriend
Messages: 129
Registered: July 2009
Senior Member
Ah thanks your help. So i have to change the storing to mem. Will the
dbstore be fixed in cdo 2.0m5?

Simon McDuff schrieb:
> CDO Supports FeatureMap at the moment :
> see 249436: Support FeatureMap
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=249436
>
>
> Unfortunately, DBStore do not support featuremap yet.
>
> see 254455: [DB] Support FeatureMaps
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=254455 for more information.
>
> Simon
>
>
> Jörg wrote:
>> Thanks
>> this helps,but now i get another exception:
>>
>> [ERROR] Rollback in DBStore:
>> org.eclipse.net4j.util.ImplementationError: Unrecognized CDOType:
>> FEATURE_MAP_ENTRY
>>
>> What does this mean? Can i fix it?
>>
>> Greetings
>>
>> Simon McDuff schrieb:
>>> Hi Jörg,
>>>
>>> You should register your model first. To achieved that you have many
>>> options:
>>>
>>> 1- session.getPackageRegistry().putEPackage(umaPackage );
>>>
>>> 2- Use lazy package registry one
>>>
>>> CDOSessionConfiguration configuration =
>>> CDONet4jUtil.createSessionConfiguration();
>>> configuration.setConnector(getConnector());
>>>
>>> configuration.setRepositoryName(IRepositoryConfig.REPOSITORY _NAME);
>>>
>>> >>> configuration.setLazyPackageRegistry(); <<<
>>>
>>>
>>> CDOSession session = configuration.openSession();
>>>
>>> I hope it will help you.
>>>
>>>
>>> Jörg wrote:
>>>> Hello,
>>>>
>>>> i tried to upload a simple Element. Created by this code:
>>>>
>>>> UmaPackage umaPackage = UmaPackage.eINSTANCE;
>>>> UmaFactory umaFactory = UmaFactory.eINSTANCE;
>>>> org.eclipse.epf.xml.uma.Element model =
>>>> umaFactory.createElement();
>>>> resource.getContents().add(model);
>>>>
>>>> But i get allways this exception:
>>>>
>>>> [ERROR] java.lang.IllegalStateException: ClassRef unresolveable:
>>>> CDOClassRef(http://www.eclipse.org/epf/uma/1.0.5, 29)
>>>>
>>>> The model is really simple and i don't know why i get the exception.
>>>> Can somebody give me a solution?
>>>>
>>>> Greetings
>>>> Jörg
>
>
Re: [CDO]ClassRef unresolveable: CDOClassRef [message #426562 is a reply to message #426561] Tue, 13 January 2009 17:14 Go to previous message
Simon Mc Duff is currently offline Simon Mc DuffFriend
Messages: 596
Registered: July 2009
Senior Member
It is hard to say!

You can vote for it so Stefan will have your Feedback!

Simon



Jörg wrote:
> Ah thanks your help. So i have to change the storing to mem. Will the
> dbstore be fixed in cdo 2.0m5?
>
> Simon McDuff schrieb:
>> CDO Supports FeatureMap at the moment :
>> see 249436: Support FeatureMap
>> https://bugs.eclipse.org/bugs/show_bug.cgi?id=249436
>>
>>
>> Unfortunately, DBStore do not support featuremap yet.
>>
>> see 254455: [DB] Support FeatureMaps
>> https://bugs.eclipse.org/bugs/show_bug.cgi?id=254455 for more
>> information.
>>
>> Simon
>>
>>
>> Jörg wrote:
>>> Thanks
>>> this helps,but now i get another exception:
>>>
>>> [ERROR] Rollback in DBStore:
>>> org.eclipse.net4j.util.ImplementationError: Unrecognized CDOType:
>>> FEATURE_MAP_ENTRY
>>>
>>> What does this mean? Can i fix it?
>>>
>>> Greetings
>>>
>>> Simon McDuff schrieb:
>>>> Hi Jörg,
>>>>
>>>> You should register your model first. To achieved that you have many
>>>> options:
>>>>
>>>> 1- session.getPackageRegistry().putEPackage(umaPackage );
>>>>
>>>> 2- Use lazy package registry one
>>>>
>>>> CDOSessionConfiguration configuration =
>>>> CDONet4jUtil.createSessionConfiguration();
>>>> configuration.setConnector(getConnector());
>>>>
>>>> configuration.setRepositoryName(IRepositoryConfig.REPOSITORY _NAME);
>>>>
>>>> >>> configuration.setLazyPackageRegistry(); <<<
>>>>
>>>>
>>>> CDOSession session = configuration.openSession();
>>>>
>>>> I hope it will help you.
>>>>
>>>>
>>>> Jörg wrote:
>>>>> Hello,
>>>>>
>>>>> i tried to upload a simple Element. Created by this code:
>>>>>
>>>>> UmaPackage umaPackage = UmaPackage.eINSTANCE;
>>>>> UmaFactory umaFactory = UmaFactory.eINSTANCE;
>>>>> org.eclipse.epf.xml.uma.Element model =
>>>>> umaFactory.createElement();
>>>>> resource.getContents().add(model);
>>>>>
>>>>> But i get allways this exception:
>>>>>
>>>>> [ERROR] java.lang.IllegalStateException: ClassRef unresolveable:
>>>>> CDOClassRef(http://www.eclipse.org/epf/uma/1.0.5, 29)
>>>>>
>>>>> The model is really simple and i don't know why i get the exception.
>>>>> Can somebody give me a solution?
>>>>>
>>>>> Greetings
>>>>> Jörg
>>
>>
Previous Topic:[Teneo] Generated code produces a ClassCastException
Next Topic:Ideas and tips on using EMF as a Preference store
Goto Forum:
  


Current Time: Fri Apr 26 07:59:24 GMT 2024

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

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

Back to the top