[CDO] why getCreationIme is Unsupported in HibernateStore [message #423669] |
Mon, 06 October 2008 12:38 |
Tristan Faure Messages: 460 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 #423775 is a reply to message #423771] |
Tue, 07 October 2008 09:39 |
|
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 ?
>>
>>
Cheers
/Eike
----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
|
|
|
Re: [CDO] why getCreationIme is Unsupported in HibernateStore [message #423779 is a reply to message #423775] |
Tue, 07 October 2008 09:41 |
|
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 ?
>>>
>>>
Cheers
/Eike
----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
|
|
|
Powered by
FUDForum. Page generated in 0.03331 seconds