geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From the666pack <mario.kof...@gmail.com>
Subject error writing tuple to database "the owning entity is not mapped" geronimo 2.1.1
Date Sat, 05 Jul 2008 09:19:28 GMT

hello,

i am back again and hope someone can help me out with my new error in
geronimo 2.1.1. 

my database scheme consists of a Person entity and a Director entity which
is inherited from the Person entity. 

so i want to write a Person first, to keep it simple. unfortunately i get an
error when i try to perform a write:

<openjpa-1.0.2-r420667:627158 fatal user error>
org.apache.openjpa.persistence.ArgumentException: Attempt to map
"vt.bean.entity.Person.id" failed: the owning entity is not mapped.

i was successfully writing tuples of my application to database with
geronimo version 2.0.2 and also did not change nothing in my .ear archive
and application. 

i found a jira on a similar topic:

https://issues.apache.org/jira/browse/OPENJPA-524

but i am not sure if this is the same problem, and the jira is in a
fixed-solved status.

the full debug view is:

  [exec] 10:51:04,196 INFO  [OpenEJB] invoking method create on
videothek.jar/WriteDataBean
     [exec] 10:51:04,268 INFO  [OpenEJB] finished invoking method create
     [exec] 10:51:04,300 INFO  [Transaction] TX Required: Started
transaction org.apache.geronimo.transaction.manager.TransactionImpl@1806022
     [exec] 10:51:04,304 INFO  [Transaction] TX Required: Committing
transaction org.apache.geronimo.transaction.manager.TransactionImpl@1806022
     [exec] 10:51:04,305 INFO  [Transaction] TX Required: Started
transaction org.apache.geronimo.transaction.manager.TransactionImpl@ae6e72
     [exec] 10:51:04,314 INFO  [Runtime] Starting OpenJPA 1.0.2
     [exec] 10:51:04,427 INFO  [JDBC] Using dictionary class
"org.apache.openjpa.jdbc.sql.PostgresDictionary".
     [exec] 10:51:05,734 INFO  [Transaction] TX Required: setRollbackOnly()
on transaction
org.apache.geronimo.transaction.manager.TransactionImpl@ae6e72
     [exec] 10:51:05,735 INFO  [Transaction] TX Required: Rolling back
transaction org.apache.geronimo.transaction.manager.TransactionImpl@ae6e72
     [exec] javax.ejb.EJBException: The bean encountered a non-application
exception.; nested exception is:
     [exec]     <openjpa-1.0.2-r420667:627158 fatal user error>
org.apache.openjpa.persistence.ArgumentException: Attempt to map
"vt.bean.entity.Person.id" failed: the owning entity is not mapped.
     [exec]     at
org.apache.openejb.core.ivm.BaseEjbProxyHandler.convertException(BaseEjbProxyHandler.java:366)
     [exec]     at
org.apache.openejb.core.ivm.BaseEjbProxyHandler.invoke(BaseEjbProxyHandler.java:251)
     [exec]     at
org.apache.openejb.util.proxy.Jdk13InvocationHandler.invoke(Jdk13InvocationHandler.java:49)
     [exec]     at $Proxy23.writeToDB(Unknown Source)
     [exec]     at vt.servlet.AddServlet.doGet(AddServlet.java:48)
     [exec]     at
javax.servlet.http.HttpServlet.service(HttpServlet.java:693)
     [exec]     at
javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
     [exec]     at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
     [exec]     at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
     [exec]     at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
     [exec]     at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
     [exec]     at
org.apache.geronimo.tomcat.valve.DefaultSubjectValve.invoke(DefaultSubjectValve.java:56)
     [exec]     at
org.apache.geronimo.tomcat.GeronimoStandardContext$SystemMethodValve.invoke(GeronimoStandardContext.java:406)
     [exec]     at
org.apache.geronimo.tomcat.valve.GeronimoBeforeAfterValve.invoke(GeronimoBeforeAfterValve.java:47)
     [exec]     at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
     [exec]     at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
     [exec]     at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
     [exec]     at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:563)
     [exec]     at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263)
     [exec]     at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
     [exec]     at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584)
     [exec]     at
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
     [exec]     at java.lang.Thread.run(Thread.java:619)
     [exec] Caused by: <openjpa-1.0.2-r420667:627158 fatal user error>
org.apache.openjpa.persistence.ArgumentException: Attempt to map
"vt.bean.entity.Person.id" failed: the owning entity is not mapped.
     [exec]     at
org.apache.openjpa.jdbc.meta.MappingInfo.assertTable(MappingInfo.java:544)
     [exec]     at
org.apache.openjpa.jdbc.meta.MappingInfo.createColumns(MappingInfo.java:496)
     [exec]     at
org.apache.openjpa.jdbc.meta.ValueMappingInfo.getColumns(ValueMappingInfo.java:143)
     [exec]     at
org.apache.openjpa.jdbc.meta.strats.PrimitiveFieldStrategy.map(PrimitiveFieldStrategy.java:83)
     [exec]     at
org.apache.openjpa.jdbc.meta.FieldMapping.setStrategy(FieldMapping.java:120)
     [exec]     at
org.apache.openjpa.jdbc.meta.RuntimeStrategyInstaller.installStrategy(RuntimeStrategyInstaller.java:80)
     [exec]     at
org.apache.openjpa.jdbc.meta.FieldMapping.resolveMapping(FieldMapping.java:438)
     [exec]     at
org.apache.openjpa.jdbc.meta.FieldMapping.resolve(FieldMapping.java:403)
     [exec]     at
org.apache.openjpa.jdbc.meta.ClassMapping.resolveNonRelationMappings(ClassMapping.java:841)
     [exec]     at
org.apache.openjpa.jdbc.meta.MappingRepository.prepareMapping(MappingRepository.java:322)
     [exec]     at
org.apache.openjpa.meta.MetaDataRepository.preMapping(MetaDataRepository.java:621)
     [exec]     at
org.apache.openjpa.meta.MetaDataRepository.resolve(MetaDataRepository.java:508)
     [exec]     at
org.apache.openjpa.meta.MetaDataRepository.getMetaData(MetaDataRepository.java:302)
     [exec]     at
org.apache.openjpa.jdbc.meta.MappingRepository.getMapping(MappingRepository.java:282)
     [exec]     at
org.apache.openjpa.jdbc.meta.MappingTool.getMapping(MappingTool.java:673)
     [exec]     at
org.apache.openjpa.jdbc.meta.MappingTool.buildSchema(MappingTool.java:745)
     [exec]     at
org.apache.openjpa.jdbc.meta.MappingTool.run(MappingTool.java:643)
     [exec]     at
org.apache.openjpa.jdbc.kernel.JDBCBrokerFactory.synchronizeMappings(JDBCBrokerFactory.java:164)
     [exec]     at
org.apache.openjpa.jdbc.kernel.JDBCBrokerFactory.newBrokerImpl(JDBCBrokerFactory.java:130)
     [exec]     at
org.apache.openjpa.kernel.AbstractBrokerFactory.newBroker(AbstractBrokerFactory.java:188)
     [exec]     at
org.apache.openjpa.kernel.DelegatingBrokerFactory.newBroker(DelegatingBrokerFactory.java:142)
     [exec]     at
org.apache.openjpa.persistence.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:192)
     [exec]     at
org.apache.openjpa.persistence.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:145)
     [exec]     at
org.apache.openjpa.persistence.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:56)
     [exec]     at
vt.bean.stateful.WriteDataBean.writeToDB(WriteDataBean.java:95)
     [exec]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
     [exec]     at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
     [exec]     at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     [exec]     at java.lang.reflect.Method.invoke(Method.java:597)
     [exec]     at
org.apache.openejb.core.interceptor.ReflectionInvocationContext$Invocation.invoke(ReflectionInvocationContext.java:158)
     [exec]     at
org.apache.openejb.core.interceptor.ReflectionInvocationContext.proceed(ReflectionInvocationContext.java:141)
     [exec]     at
org.apache.openejb.core.interceptor.InterceptorStack.invoke(InterceptorStack.java:67)
     [exec]     at
org.apache.openejb.core.stateful.StatefulContainer._invoke(StatefulContainer.java:451)
     [exec]     at
org.apache.openejb.core.stateful.StatefulContainer.businessMethod(StatefulContainer.java:413)
     [exec]     at
org.apache.openejb.core.stateful.StatefulContainer.invoke(StatefulContainer.java:271)
     [exec]     at
org.apache.openejb.core.ivm.EjbObjectProxyHandler.businessMethod(EjbObjectProxyHandler.java:217)
     [exec]     at
org.apache.openejb.core.ivm.EjbObjectProxyHandler._invoke(EjbObjectProxyHandler.java:77)
     [exec]     at
org.apache.openejb.core.ivm.BaseEjbProxyHandler.invoke(BaseEjbProxyHandler.java:245)
     [exec]     ... 21 more


any help is highly appreciated, 

thanks a lot!

mario.
 
-- 
View this message in context: http://www.nabble.com/error-writing-tuple-to-database-%22the-owning-entity-is-not-mapped%22-geronimo-2.1.1-tp18290344s134p18290344.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.


Mime
View raw message