Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [CDO] DBException
[CDO] DBException [message #428423] Fri, 20 March 2009 17:03 Go to next message
Stephane  fournier is currently offline Stephane fournierFriend
Messages: 340
Registered: July 2009
Senior Member
Hi,

I'm back to CDO (2.0.0 M5) and the integration of a CDO Resource in a
generated EMF-based editor running against a TED. :)

I wrote this post some weeks ago :
http://dev.eclipse.org/newslists/news.eclipse.tools.emf/msg3 8951.html.
I got a DBException.

I've tested again and the problem is linked to an EContentAdapter
registration.
In a generated EMF-based editor in the createModel() method you find that
code:

editingDomain.getResourceSet().eAdapters().add(problemIndica tionAdapter);

at the end of the method.

If I comment out this code, I do not have the exception.
The problemIndicationAdapter is an EContentAdapter listens to EMF
notifications
to analyze resource problems and warnings...

Does anyone have an idea to fix that ? A part from that, it runs smoothly
with TED.

Stephane.
Re: [CDO] DBException [message #428425 is a reply to message #428423] Fri, 20 March 2009 17:37 Go to previous messageGo to next message
Simon Mc Duff is currently offline Simon Mc DuffFriend
Messages: 596
Registered: July 2009
Senior Member
Hi Stephane,


I think I fixed something with Vik lately that is related to this.

265114: Attaching adapters to resources does not load them?
https://bugs.eclipse.org/bugs/show_bug.cgi?id=265114

Did you try M6 so far ?

Basically TED was using a resourceset and CDOTransaction was using
another one.

Let me know if it is now working !!

Simon

Stéphane Fournier wrote:
> Hi,
>
> I'm back to CDO (2.0.0 M5) and the integration of a CDO Resource in a
> generated EMF-based editor running against a TED. :)
>
> I wrote this post some weeks ago :
> http://dev.eclipse.org/newslists/news.eclipse.tools.emf/msg3 8951.html.
> I got a DBException.
>
> I've tested again and the problem is linked to an EContentAdapter
> registration.
> In a generated EMF-based editor in the createModel() method you find
> that code:
>
> editingDomain.getResourceSet().eAdapters().add(problemIndica tionAdapter);
>
> at the end of the method.
>
> If I comment out this code, I do not have the exception.
> The problemIndicationAdapter is an EContentAdapter listens to EMF
> notifications
> to analyze resource problems and warnings...
>
> Does anyone have an idea to fix that ? A part from that, it runs
> smoothly with TED.
>
> Stephane.
>
Re: [CDO] DBException [message #428632 is a reply to message #428425] Wed, 25 March 2009 15:35 Go to previous messageGo to next message
Stephane  fournier is currently offline Stephane fournierFriend
Messages: 340
Registered: July 2009
Senior Member
I don't reproduce the bug with CDO 2.0.0M6 :)

Stephane.
Simon McDuff wrote:

> Hi Stephane,


> I think I fixed something with Vik lately that is related to this.

> 265114: Attaching adapters to resources does not load them?
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=265114

> Did you try M6 so far ?

> Basically TED was using a resourceset and CDOTransaction was using
> another one.

> Let me know if it is now working !!

> Simon

> Stéphane Fournier wrote:
>> Hi,
>>
>> I'm back to CDO (2.0.0 M5) and the integration of a CDO Resource in a
>> generated EMF-based editor running against a TED. :)
>>
>> I wrote this post some weeks ago :
>> http://dev.eclipse.org/newslists/news.eclipse.tools.emf/msg3 8951.html.
>> I got a DBException.
>>
>> I've tested again and the problem is linked to an EContentAdapter
>> registration.
>> In a generated EMF-based editor in the createModel() method you find
>> that code:
>>
>> editingDomain.getResourceSet().eAdapters().add(problemIndica tionAdapter);
>>
>> at the end of the method.
>>
>> If I comment out this code, I do not have the exception.
>> The problemIndicationAdapter is an EContentAdapter listens to EMF
>> notifications
>> to analyze resource problems and warnings...
>>
>> Does anyone have an idea to fix that ? A part from that, it runs
>> smoothly with TED.
>>
>> Stephane.
>>
Re: [CDO] DBException [message #428634 is a reply to message #428632] Wed, 25 March 2009 15:45 Go to previous message
Simon Mc Duff is currently offline Simon Mc DuffFriend
Messages: 596
Registered: July 2009
Senior Member
Hi Stephane!

This is a really good news!
We will try to fix the others problems you had as quick as possible!!


Simon




Stéphane Fournier wrote:

> I don't reproduce the bug with CDO 2.0.0M6 :)

> Stephane.
> Simon McDuff wrote:

>> Hi Stephane,


>> I think I fixed something with Vik lately that is related to this.

>> 265114: Attaching adapters to resources does not load them?
>> https://bugs.eclipse.org/bugs/show_bug.cgi?id=265114

>> Did you try M6 so far ?

>> Basically TED was using a resourceset and CDOTransaction was using
>> another one.

>> Let me know if it is now working !!

>> Simon

>> Stéphane Fournier wrote:
>>> Hi,
>>>
>>> I'm back to CDO (2.0.0 M5) and the integration of a CDO Resource in a
>>> generated EMF-based editor running against a TED. :)
>>>
>>> I wrote this post some weeks ago :
>>> http://dev.eclipse.org/newslists/news.eclipse.tools.emf/msg3 8951.html.
>>> I got a DBException.
>>>
>>> I've tested again and the problem is linked to an EContentAdapter
>>> registration.
>>> In a generated EMF-based editor in the createModel() method you find
>>> that code:
>>>
>>> editingDomain.getResourceSet().eAdapters().add(problemIndica tionAdapter);
>>>
>>> at the end of the method.
>>>
>>> If I comment out this code, I do not have the exception.
>>> The problemIndicationAdapter is an EContentAdapter listens to EMF
>>> notifications
>>> to analyze resource problems and warnings...
>>>
>>> Does anyone have an idea to fix that ? A part from that, it runs
>>> smoothly with TED.
>>>
>>> Stephane.
>>>
Previous Topic:Re: Mix-Ins in EMF
Next Topic:EMF Error Log
Goto Forum:
  


Current Time: Sat Apr 20 00:53:47 GMT 2024

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

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

Back to the top