openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sebastian Souza <sso...@adinet.com.uy>
Subject org.apache.openjpa.util.GeneralException: null at org.apache.openjpa.kernel.BrokerImpl.embed(BrokerImpl.java:2645)
Date Sat, 24 Nov 2007 18:54:27 GMT

the exception is thrown when i do entityManager.getTransaction ().commit ();

i'm trying to persist an object that has a collection with an embbeded field
inside

239680  ITSM  TRACE  [main] openjpa.Runtime - An exception occurred while
ending the transaction.  This exception will be re-thrown.
<openjpa-1.0.0-r420667:568756 nonfatal general error>
org.apache.openjpa.util.GeneralException: null
	at org.apache.openjpa.kernel.BrokerImpl.embed(BrokerImpl.java:2645)
	at
org.apache.openjpa.kernel.SingleFieldManager.embed(SingleFieldManager.java:847)
	at
org.apache.openjpa.kernel.SingleFieldManager.preFlush(SingleFieldManager.java:588)
	at
org.apache.openjpa.kernel.SingleFieldManager.preFlush(SingleFieldManager.java:562)
	at
org.apache.openjpa.kernel.SingleFieldManager.preFlush(SingleFieldManager.java:478)
	at
org.apache.openjpa.kernel.StateManagerImpl.preFlush(StateManagerImpl.java:2775)
	at org.apache.openjpa.kernel.PNewState.beforeFlush(PNewState.java:39)
	at
org.apache.openjpa.kernel.StateManagerImpl.beforeFlush(StateManagerImpl.java:940)
	at org.apache.openjpa.kernel.BrokerImpl.flush(BrokerImpl.java:1884)
	at org.apache.openjpa.kernel.BrokerImpl.flushSafe(BrokerImpl.java:1844)
	at
org.apache.openjpa.kernel.BrokerImpl.beforeCompletion(BrokerImpl.java:1762)
	at
org.apache.openjpa.kernel.LocalManagedRuntime.commit(LocalManagedRuntime.java:81)
	at org.apache.openjpa.kernel.BrokerImpl.commit(BrokerImpl.java:1292)
	at
org.apache.openjpa.kernel.DelegatingBroker.commit(DelegatingBroker.java:861)
	at
org.apache.openjpa.persistence.EntityManagerImpl.commit(EntityManagerImpl.java:408)
	at
itsm.framework.persistence.business.PersistentObjectBusiness.insert(PersistentObjectBusiness.java:38)
	at
itsm.framework.persistence.mappers.PersistentObjectMapper.create(PersistentObjectMapper.java:38)
	at
itsm.configuration.mappers.ConfigurationItemVersionMapper.create(ConfigurationItemVersionMapper.java:33)
	at
itsm.configuration.business.ConfigurationItemVersionBusiness.create(ConfigurationItemVersionBusiness.java:52)
	at
itsm.configuration.facade.ConfigurationManagementFacade.createVersion(ConfigurationManagementFacade.java:711)
	at
itsm.configuration.test.TestConfigurationItemVersion.testCreateWithAttributesWithoutRelationships(TestConfigurationItemVersion.java:123)
	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(JUnit38ClassRunner.java:81)
	at
org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:38)
	at
org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
	at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
	at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
	at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
	at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
Caused by: java.lang.NullPointerException
	at org.apache.openjpa.kernel.BrokerImpl.embed(BrokerImpl.java:2623)
	... 39 more
-- 
View this message in context: http://www.nabble.com/org.apache.openjpa.util.GeneralException%3A-null-at-org.apache.openjpa.kernel.BrokerImpl.embed%28BrokerImpl.java%3A2645%29-tf4867049.html#a13927857
Sent from the OpenJPA Users mailing list archive at Nabble.com.


Mime
View raw message