Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [CDO Hibernate Store] NPE running example unit tests against latest successful build
[CDO Hibernate Store] NPE running example unit tests against latest successful build [message #524655] Thu, 01 April 2010 16:51 Go to next message
Eclipse UserFriend
Originally posted by: austin.teng.siemens.com

This is a multi-part message in MIME format.
--------------080802050200010207050901
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Are the examples still in sync with the latest build? Any configuration
changes that need to be made?

-Austin

--------------080802050200010207050901
Content-Type: text/plain;
name="QuickStartTestException.txt"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename="QuickStartTestException.txt"

java.lang.NullPointerException
at org.eclipse.emf.cdo.util.CDOUtil.isLegacyModeDefault(CDOUtil .java:420)
at org.eclipse.emf.internal.cdo.view.CDOViewImpl.<init>(CDOViewImpl.java:181)
at org.eclipse.emf.internal.cdo.transaction.CDOTransactionImpl. <init>(CDOTransactionImpl.java:189)
at org.eclipse.emf.internal.cdo.session.CDOSessionImpl.createTr ansaction(CDOSessionImpl.java:378)
at org.eclipse.emf.internal.cdo.session.CDOSessionImpl.openTran saction(CDOSessionImpl.java:350)
at org.eclipse.emf.internal.cdo.session.CDOSessionImpl.openTran saction(CDOSessionImpl.java:362)
at org.eclipse.emf.internal.cdo.session.CDOSessionImpl.openTran saction(CDOSessionImpl.java:370)
at org.eclipse.emf.internal.cdo.session.CDOSessionImpl.openTran saction(CDOSessionImpl.java:1)
at org.eclipse.emf.cdo.examples.hibernate.client.QuickStartTest .testCreatePersist(QuickStartTest.java:40)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at junit.framework.TestCase.runTest(TestCase.java:168)
at junit.framework.TestCase.runBare(TestCase.java:134)
at junit.framework.TestResult$1.protect(TestResult.java:110)
at junit.framework.TestResult.runProtected(TestResult.java:128)
at junit.framework.TestResult.run(TestResult.java:113)
at junit.framework.TestCase.run(TestCase.java:124)
at junit.framework.TestSuite.runTest(TestSuite.java:232)
at junit.framework.TestSuite.run(TestSuite.java:227)
at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38Cla ssRunner.java:83)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.r un(JUnit4TestReference.java:49)
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(Test Execution.java:38)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTe sts(RemoteTestRunner.java:467)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTe sts(RemoteTestRunner.java:683)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(R emoteTestRunner.java:390)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main( RemoteTestRunner.java:197)


--------------080802050200010207050901--
Re: [CDO Hibernate Store] NPE running example unit tests against latest successful build [message #524740 is a reply to message #524655] Fri, 02 April 2010 07:39 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi Austin,
The coming few days I will spend some time on checking/upgrading the example projects to the latest changes. The main
CDO code base has been dynamic it seems because of larger changes done by Eike related to branching support.

gr. Martin

Austin Teng wrote:
> Are the examples still in sync with the latest build? Any configuration
> changes that need to be made?
>
> -Austin


--

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 Hibernate Store] NPE running example unit tests against latest successful build [message #524898 is a reply to message #524740] Sat, 03 April 2010 19:05 Go to previous messageGo to next message
Martin Fluegge is currently offline Martin FlueggeFriend
Messages: 141
Registered: July 2009
Senior Member
Hi guys,

sorry, for replying that late. I just overread the post.

This exception occured due to an error in the recently released legacy
support for CDO (http://wiki.eclipse.org/CDO_Legacy_Mode).

It is fixed in the latest build.

Cheers,

Martin

Martin Taal schrieb:
> Hi Austin,
> The coming few days I will spend some time on checking/upgrading the
> example projects to the latest changes. The main CDO code base has been
> dynamic it seems because of larger changes done by Eike related to
> branching support.
>
> gr. Martin
>
> Austin Teng wrote:
>> Are the examples still in sync with the latest build? Any
>> configuration changes that need to be made?
>>
>> -Austin
>
>
Re: [CDO Hibernate Store] NPE running example unit tests against latest successful build [message #528366 is a reply to message #524740] Tue, 20 April 2010 09:29 Go to previous messageGo to next message
Gavin Crayk is currently offline Gavin CraykFriend
Messages: 13
Registered: February 2010
Junior Member
Martin taal wrote on Fri, 02 April 2010 03:39
Hi Austin,
The coming few days I will spend some time on checking/upgrading the example projects to the latest changes. The main
CDO code base has been dynamic it seems because of larger changes done by Eike related to branching support.

gr. Martin

Austin Teng wrote:
> Are the examples still in sync with the latest build? Any configuration
> changes that need to be made?
>
> -Austin



Did you end up having a chance to look into the example projects?
Cheers,
Gavin.
Re: [CDO Hibernate Store] NPE running example unit tests against latest successful build [message #528629 is a reply to message #528366] Wed, 21 April 2010 10:24 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi Gavin,
I spend a few hours yesterday and today on this. The example projects were hit by this issue (which we found this morning):
https://bugs.eclipse.org/bugs/show_bug.cgi?id=309920
CDO Store support new mode: delete removed/detached revisions from revision cache

This issue can occur when the object uses efeatures as the primary key, for example the name of a product is the primary
key. Often the primary key in the database is a generated id, in this case the above issue won't occur.

I have adapted the example project a bit to workaround the above issue for now. This was tested against CDO head and it
seemed to work fine.

gr. Martin

Gavin Crayk wrote:
> Martin taal wrote on Fri, 02 April 2010 03:39
>> Hi Austin,
>> The coming few days I will spend some time on checking/upgrading the
>> example projects to the latest changes. The main CDO code base has
>> been dynamic it seems because of larger changes done by Eike related
>> to branching support.
>>
>> gr. Martin
>>
>> Austin Teng wrote:
>> > Are the examples still in sync with the latest build? Any
>> configuration > changes that need to be made?
>> > > -Austin
>
>
> Did you end up having a chance to look into the example projects?
> Cheers,
> Gavin.


--

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 Hibernate Store] NPE running example unit tests against latest successful build [message #528792 is a reply to message #528629] Wed, 21 April 2010 18:51 Go to previous message
Gavin Crayk is currently offline Gavin CraykFriend
Messages: 13
Registered: February 2010
Junior Member
fantastic, thanks very much.
Cheers,
Gavin.
Previous Topic:Loading resource interception...
Next Topic:Model export retaining portable primitive types
Goto Forum:
  


Current Time: Sat Apr 27 03:49:00 GMT 2024

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

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

Back to the top