Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [CDO] why getCreationIme is Unsupported in HibernateStore
[CDO] why getCreationIme is Unsupported in HibernateStore [message #423669] Mon, 06 October 2008 12:38 Go to next message
Tristan Faure is currently offline Tristan FaureFriend
Messages: 443
Registered: July 2009
Senior Member
Hi I'm trying CDO with HibernateStore via Mapping file generated by Teneo

I have the org.eclipse.emf.cdo.server.hibernate version from CVS

my server is running

and when I try to connect to my CDO repository from CDO UI i have an
unsupportedOperationException from getCreationTime () method in
HibernateStore :

[ERROR] UnsupportedOperationException
java.lang.UnsupportedOperationException
at
org.eclipse.emf.cdo.server.internal.hibernate.HibernateStore .getCreationTime(HibernateStore.java:183)
at
org.eclipse.emf.cdo.internal.server.Repository.getCreationTi me(Repository.java:376)
at
org.eclipse.emf.cdo.internal.server.protocol.OpenSessionIndi cation.responding(OpenSessionIndication.java:114)
at
org.eclipse.emf.cdo.internal.server.protocol.CDOServerIndica tion.responding(CDOServerIndication.java:150)
at
org.eclipse.net4j.signal.IndicationWithResponse.execute(Indi cationWithResponse.java:48)
at org.eclipse.net4j.signal.Signal.runSync(Signal.java:186)
at org.eclipse.net4j.signal.Signal.run(Signal.java:167)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Threa dPoolExecutor.java:650)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoo lExecutor.java:675)
at java.lang.Thread.run(Thread.java:595)

In the HibernateStore code i Have

public long getCreationTime()
{
throw new UnsupportedOperationException();
}

so why this function is unsupported ?




Re: [CDO] why getCreationIme is Unsupported in HibernateStore [message #423764 is a reply to message #423669] Tue, 07 October 2008 08:25 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi Tristan,
Currently the hibernate store does not keep the time when the repository was created. I am not sure
if this is really required or that returning a default date should also work. I have sent a question
about this to Eike. If I know more I will let you know.
You can also enter a bugzilla for this, then I have something to attach a solution to it.

gr. Martin

Tristan FAURE wrote:
> Hi I'm trying CDO with HibernateStore via Mapping file generated by Teneo
>
> I have the org.eclipse.emf.cdo.server.hibernate version from CVS
>
> my server is running
>
> and when I try to connect to my CDO repository from CDO UI i have an
> unsupportedOperationException from getCreationTime () method in
> HibernateStore :
>
> [ERROR] UnsupportedOperationException
> java.lang.UnsupportedOperationException
> at
> org.eclipse.emf.cdo.server.internal.hibernate.HibernateStore .getCreationTime(HibernateStore.java:183)
>
> at
> org.eclipse.emf.cdo.internal.server.Repository.getCreationTi me(Repository.java:376)
>
> at
> org.eclipse.emf.cdo.internal.server.protocol.OpenSessionIndi cation.responding(OpenSessionIndication.java:114)
>
> at
> org.eclipse.emf.cdo.internal.server.protocol.CDOServerIndica tion.responding(CDOServerIndication.java:150)
>
> at
> org.eclipse.net4j.signal.IndicationWithResponse.execute(Indi cationWithResponse.java:48)
>
> at org.eclipse.net4j.signal.Signal.runSync(Signal.java:186)
> at org.eclipse.net4j.signal.Signal.run(Signal.java:167)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Threa dPoolExecutor.java:650)
>
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoo lExecutor.java:675)
>
> at java.lang.Thread.run(Thread.java:595)
>
> In the HibernateStore code i Have
>
> public long getCreationTime()
> {
> throw new UnsupportedOperationException();
> }
>
> so why this function is unsupported ?


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
Re: [CDO] why getCreationIme is Unsupported in HibernateStore [message #423771 is a reply to message #423764] Tue, 07 October 2008 09:25 Go to previous messageGo to next message
Tristan Faure is currently offline Tristan FaureFriend
Messages: 443
Registered: July 2009
Senior Member
Hi Martin
thank you for your answer

In fact it's not a problem for me I modify the code to return a default
value but it's a strange behaviour for a user who want to make a little
try of the techno and getting an unsupportingoperationexception.

An other thing is it normal to access to
org.eclipse.emf.cdo.server.hibernate just via CVS ? i didn't see a build
version

Martin Taal a écrit :
> Hi Tristan,
> Currently the hibernate store does not keep the time when the repository
> was created. I am not sure if this is really required or that returning
> a default date should also work. I have sent a question about this to
> Eike. If I know more I will let you know.
> You can also enter a bugzilla for this, then I have something to attach
> a solution to it.
>
> gr. Martin
>
> Tristan FAURE wrote:
>> Hi I'm trying CDO with HibernateStore via Mapping file generated by Teneo
>>
>> I have the org.eclipse.emf.cdo.server.hibernate version from CVS
>>
>> my server is running
>>
>> and when I try to connect to my CDO repository from CDO UI i have an
>> unsupportedOperationException from getCreationTime () method in
>> HibernateStore :
>>
>> [ERROR] UnsupportedOperationException
>> java.lang.UnsupportedOperationException
>> at
>> org.eclipse.emf.cdo.server.internal.hibernate.HibernateStore .getCreationTime(HibernateStore.java:183)
>>
>> at
>> org.eclipse.emf.cdo.internal.server.Repository.getCreationTi me(Repository.java:376)
>>
>> at
>> org.eclipse.emf.cdo.internal.server.protocol.OpenSessionIndi cation.responding(OpenSessionIndication.java:114)
>>
>> at
>> org.eclipse.emf.cdo.internal.server.protocol.CDOServerIndica tion.responding(CDOServerIndication.java:150)
>>
>> at
>> org.eclipse.net4j.signal.IndicationWithResponse.execute(Indi cationWithResponse.java:48)
>>
>> at org.eclipse.net4j.signal.Signal.runSync(Signal.java:186)
>> at org.eclipse.net4j.signal.Signal.run(Signal.java:167)
>> at
>> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Threa dPoolExecutor.java:650)
>>
>> at
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoo lExecutor.java:675)
>>
>> at java.lang.Thread.run(Thread.java:595)
>>
>> In the HibernateStore code i Have
>>
>> public long getCreationTime()
>> {
>> throw new UnsupportedOperationException();
>> }
>>
>> so why this function is unsupported ?
>
>




Re: [CDO] why getCreationIme is Unsupported in HibernateStore [message #423774 is a reply to message #423771] Tue, 07 October 2008 09:35 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi Tristan,
The cdo.server.hibernate is included in the cdo builds which are published regularly.
http://www.eclipse.org/modeling/emf/downloads/?project=cdo&a mp;showAll=1&hlbuild=S200809300511#S200809300511

gr. Martin

Tristan FAURE wrote:
> Hi Martin
> thank you for your answer
>
> In fact it's not a problem for me I modify the code to return a default
> value but it's a strange behaviour for a user who want to make a little
> try of the techno and getting an unsupportingoperationexception.
>
> An other thing is it normal to access to
> org.eclipse.emf.cdo.server.hibernate just via CVS ? i didn't see a build
> version
>
> Martin Taal a écrit :
>> Hi Tristan,
>> Currently the hibernate store does not keep the time when the
>> repository was created. I am not sure if this is really required or
>> that returning a default date should also work. I have sent a question
>> about this to Eike. If I know more I will let you know.
>> You can also enter a bugzilla for this, then I have something to
>> attach a solution to it.
>>
>> gr. Martin
>>
>> Tristan FAURE wrote:
>>> Hi I'm trying CDO with HibernateStore via Mapping file generated by
>>> Teneo
>>>
>>> I have the org.eclipse.emf.cdo.server.hibernate version from CVS
>>>
>>> my server is running
>>>
>>> and when I try to connect to my CDO repository from CDO UI i have an
>>> unsupportedOperationException from getCreationTime () method in
>>> HibernateStore :
>>>
>>> [ERROR] UnsupportedOperationException
>>> java.lang.UnsupportedOperationException
>>> at
>>> org.eclipse.emf.cdo.server.internal.hibernate.HibernateStore .getCreationTime(HibernateStore.java:183)
>>>
>>> at
>>> org.eclipse.emf.cdo.internal.server.Repository.getCreationTi me(Repository.java:376)
>>>
>>> at
>>> org.eclipse.emf.cdo.internal.server.protocol.OpenSessionIndi cation.responding(OpenSessionIndication.java:114)
>>>
>>> at
>>> org.eclipse.emf.cdo.internal.server.protocol.CDOServerIndica tion.responding(CDOServerIndication.java:150)
>>>
>>> at
>>> org.eclipse.net4j.signal.IndicationWithResponse.execute(Indi cationWithResponse.java:48)
>>>
>>> at org.eclipse.net4j.signal.Signal.runSync(Signal.java:186)
>>> at org.eclipse.net4j.signal.Signal.run(Signal.java:167)
>>> at
>>> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Threa dPoolExecutor.java:650)
>>>
>>> at
>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoo lExecutor.java:675)
>>>
>>> at java.lang.Thread.run(Thread.java:595)
>>>
>>> In the HibernateStore code i Have
>>>
>>> public long getCreationTime()
>>> {
>>> throw new UnsupportedOperationException();
>>> }
>>>
>>> so why this function is unsupported ?
>>
>>


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
Re: [CDO] why getCreationIme is Unsupported in HibernateStore [message #423775 is a reply to message #423771] Tue, 07 October 2008 09:39 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6464
Registered: July 2009
Senior Member
Tristan FAURE schrieb:
> Hi Martin
> thank you for your answer
>
> In fact it's not a problem for me I modify the code to return a
> default value but it's a strange behaviour for a user who want to make
> a little try of the techno and getting an unsupportingoperationexception.
Sorry, we're still working on including the HibernateStore into our
regular test suites so that such regressions don't happen anymore.

This method is mostly for setups that support auditing (historical
views) to constrain the "valid past". If it's not possible to detect the
time of the *first* creation of the store/repository then I think that
CDORevision.UNSPECIFIED_TIME is better than an exception. Martin told me
that this particular issue is fixed now (also by returning a the default
value CDORevision.UNSPECIFIED_TIME).

>
> An other thing is it normal to access to
> org.eclipse.emf.cdo.server.hibernate just via CVS ? i didn't see a
> build version
Can you please file a Bugzilla so that we can finally include the
hibernate feature into the regular distro?

Cheers
/Eike

>
> Martin Taal a écrit :
>> Hi Tristan,
>> Currently the hibernate store does not keep the time when the
>> repository was created. I am not sure if this is really required or
>> that returning a default date should also work. I have sent a
>> question about this to Eike. If I know more I will let you know.
>> You can also enter a bugzilla for this, then I have something to
>> attach a solution to it.
>>
>> gr. Martin
>>
>> Tristan FAURE wrote:
>>> Hi I'm trying CDO with HibernateStore via Mapping file generated by
>>> Teneo
>>>
>>> I have the org.eclipse.emf.cdo.server.hibernate version from CVS
>>>
>>> my server is running
>>>
>>> and when I try to connect to my CDO repository from CDO UI i have an
>>> unsupportedOperationException from getCreationTime () method in
>>> HibernateStore :
>>>
>>> [ERROR] UnsupportedOperationException
>>> java.lang.UnsupportedOperationException
>>> at
>>> org.eclipse.emf.cdo.server.internal.hibernate.HibernateStore .getCreationTime(HibernateStore.java:183)
>>>
>>> at
>>> org.eclipse.emf.cdo.internal.server.Repository.getCreationTi me(Repository.java:376)
>>>
>>> at
>>> org.eclipse.emf.cdo.internal.server.protocol.OpenSessionIndi cation.responding(OpenSessionIndication.java:114)
>>>
>>> at
>>> org.eclipse.emf.cdo.internal.server.protocol.CDOServerIndica tion.responding(CDOServerIndication.java:150)
>>>
>>> at
>>> org.eclipse.net4j.signal.IndicationWithResponse.execute(Indi cationWithResponse.java:48)
>>>
>>> at org.eclipse.net4j.signal.Signal.runSync(Signal.java:186)
>>> at org.eclipse.net4j.signal.Signal.run(Signal.java:167)
>>> at
>>> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Threa dPoolExecutor.java:650)
>>>
>>> at
>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoo lExecutor.java:675)
>>>
>>> at java.lang.Thread.run(Thread.java:595)
>>>
>>> In the HibernateStore code i Have
>>>
>>> public long getCreationTime()
>>> {
>>> throw new UnsupportedOperationException();
>>> }
>>>
>>> so why this function is unsupported ?
>>
>>


Re: [CDO] why getCreationIme is Unsupported in HibernateStore [message #423779 is a reply to message #423775] Tue, 07 October 2008 09:41 Go to previous message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6464
Registered: July 2009
Senior Member
Eike Stepper schrieb:
> Tristan FAURE schrieb:
>> Hi Martin
>> thank you for your answer
>>
>> In fact it's not a problem for me I modify the code to return a
>> default value but it's a strange behaviour for a user who want to
>> make a little try of the techno and getting an
>> unsupportingoperationexception.
> Sorry, we're still working on including the HibernateStore into our
> regular test suites so that such regressions don't happen anymore.
>
> This method is mostly for setups that support auditing (historical
> views) to constrain the "valid past". If it's not possible to detect
> the time of the *first* creation of the store/repository then I think
> that CDORevision.UNSPECIFIED_TIME is better than an exception. Martin
> told me that this particular issue is fixed now (also by returning a
> the default value CDORevision.UNSPECIFIED_TIME).
>
>>
>> An other thing is it normal to access to
>> org.eclipse.emf.cdo.server.hibernate just via CVS ? i didn't see a
>> build version
> Can you please file a Bugzilla so that we can finally include the
> hibernate feature into the regular distro?
Sorry, Martin is right: The hibernate feature is included in the CDO SDK!
With your Bugzilla we could include it into the cdo.server feature as
well...

Cheers
/Eike

>
> Cheers
> /Eike
>
>>
>> Martin Taal a écrit :
>>> Hi Tristan,
>>> Currently the hibernate store does not keep the time when the
>>> repository was created. I am not sure if this is really required or
>>> that returning a default date should also work. I have sent a
>>> question about this to Eike. If I know more I will let you know.
>>> You can also enter a bugzilla for this, then I have something to
>>> attach a solution to it.
>>>
>>> gr. Martin
>>>
>>> Tristan FAURE wrote:
>>>> Hi I'm trying CDO with HibernateStore via Mapping file generated by
>>>> Teneo
>>>>
>>>> I have the org.eclipse.emf.cdo.server.hibernate version from CVS
>>>>
>>>> my server is running
>>>>
>>>> and when I try to connect to my CDO repository from CDO UI i have
>>>> an unsupportedOperationException from getCreationTime () method in
>>>> HibernateStore :
>>>>
>>>> [ERROR] UnsupportedOperationException
>>>> java.lang.UnsupportedOperationException
>>>> at
>>>> org.eclipse.emf.cdo.server.internal.hibernate.HibernateStore .getCreationTime(HibernateStore.java:183)
>>>>
>>>> at
>>>> org.eclipse.emf.cdo.internal.server.Repository.getCreationTi me(Repository.java:376)
>>>>
>>>> at
>>>> org.eclipse.emf.cdo.internal.server.protocol.OpenSessionIndi cation.responding(OpenSessionIndication.java:114)
>>>>
>>>> at
>>>> org.eclipse.emf.cdo.internal.server.protocol.CDOServerIndica tion.responding(CDOServerIndication.java:150)
>>>>
>>>> at
>>>> org.eclipse.net4j.signal.IndicationWithResponse.execute(Indi cationWithResponse.java:48)
>>>>
>>>> at org.eclipse.net4j.signal.Signal.runSync(Signal.java:186)
>>>> at org.eclipse.net4j.signal.Signal.run(Signal.java:167)
>>>> at
>>>> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Threa dPoolExecutor.java:650)
>>>>
>>>> at
>>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoo lExecutor.java:675)
>>>>
>>>> at java.lang.Thread.run(Thread.java:595)
>>>>
>>>> In the HibernateStore code i Have
>>>>
>>>> public long getCreationTime()
>>>> {
>>>> throw new UnsupportedOperationException();
>>>> }
>>>>
>>>> so why this function is unsupported ?
>>>
>>>


Previous Topic:XSD ID -> EMF ID -> hibernate id
Next Topic:[CDO] Tutorial on writing org.eclipse.emf.cdo.server.IStore implementation?
Goto Forum:
  


Current Time: Tue Jan 21 08:09:32 GMT 2020

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

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

Back to the top