[CDO Hibernate Store] NPE running example unit tests against latest successful build [message #524655] |
Thu, 01 April 2010 16:51 |
Eclipse User |
|
|
|
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 #528629 is a reply to message #528366] |
Wed, 21 April 2010 10:24 |
Martin Taal 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
|
|
|
|
Powered by
FUDForum. Page generated in 0.02947 seconds