geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From the666pack <mario.kof...@gmail.com>
Subject Re: Geronimo 2.0/openejb/postgresql
Date Tue, 15 Jan 2008 12:06:22 GMT

ok,

it seems to me that the only reason i got the "no No registered metadata for
type "class vt.bean.entity.Director"" error was because in my
persistence.xml file the following property was set:

<property name="openjpa.jdbc.SynchronizeMappings" value="false"/>

can you tell me what this property is good for?

as soon as i dont set this property or set it to some other value (like in
your mdb-tutorial to
value="buildSchema(SchemaAction='add,deleteTableContents')")i get an error
again as soon as i call "emf.createEntityManager()":

 [exec] WAITING... to see if entitymanager is created successfully
     [exec] 12:47:49,858 ERROR [OpenEJB] The bean instances business method
encountered a system exception: null
     [exec] <1.0.0-r561970-r561970 nonfatal general error>
org.apache.openjpa.persistence.PersistenceException: null
     [exec]     at
org.apache.openjpa.kernel.AbstractBrokerFactory.newBroker(AbstractBrokerFactory.java:204)
     [exec]     at
org.apache.openjpa.kernel.DelegatingBrokerFactory.newBroker(DelegatingBrokerFactory.java:142)
     [exec]     at
org.apache.openjpa.persistence.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:190)
     [exec]     at
org.apache.openjpa.persistence.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:143)
     [exec]     at
org.apache.openjpa.persistence.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:55)
     [exec]     at
vt.bean.stateful.WriteDataBean.writeToDB(WriteDataBean.java:89)
     [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:146)
     [exec]     at
org.apache.openejb.core.interceptor.ReflectionInvocationContext.proceed(ReflectionInvocationContext.java:129)
     [exec]     at
org.apache.openejb.core.interceptor.InterceptorStack.invoke(InterceptorStack.java:67)
     [exec]     at
org.apache.openejb.core.stateful.StatefulContainer._invoke(StatefulContainer.java:427)
     [exec]     at
org.apache.openejb.core.stateful.StatefulContainer.businessMethod(StatefulContainer.java:389)
     [exec]     at
org.apache.openejb.core.stateful.StatefulContainer.invoke(StatefulContainer.java:246)
     [exec]     at
org.apache.openejb.core.ivm.EjbObjectProxyHandler.businessMethod(EjbObjectProxyHandler.java:211)
     [exec]     at
org.apache.openejb.core.ivm.EjbObjectProxyHandler._invoke(EjbObjectProxyHandler.java:65)
     [exec]     at
org.apache.openejb.core.ivm.BaseEjbProxyHandler.invoke(BaseEjbProxyHandler.java:244)
     [exec]     at
org.apache.openejb.util.proxy.Jdk13InvocationHandler.invoke(Jdk13InvocationHandler.java:49)
     [exec]     at $Proxy57.writeToDB(Unknown Source)
     [exec]     at
org.apache.jsp.addTool_jsp._jspService(addTool_jsp.java:108)
     [exec]     at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
     [exec]     at
javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
     [exec]     at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:388)
     [exec]     at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
     [exec]     at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
     [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:230)
     [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:351)
     [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:104)
     [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:261)
     [exec]     at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
     [exec]     at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:581)
     [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: java.lang.NullPointerException
     [exec]     at
org.tranql.connector.jdbc.JDBCDriverMCF.getPhysicalConnection(JDBCDriverMCF.java:79)
     [exec]     at
org.tranql.connector.jdbc.JDBCDriverMCF.createManagedConnection(JDBCDriverMCF.java:73)
     [exec]     at
org.apache.geronimo.connector.outbound.MCFConnectionInterceptor.getConnection(MCFConnectionInterceptor.java:48)
     [exec]     at
org.apache.geronimo.connector.outbound.LocalXAResourceInsertionInterceptor.getConnection(LocalXAResourceInsertionInterceptor.java:41)
     [exec]     at
org.apache.geronimo.connector.outbound.SinglePoolConnectionInterceptor.internalGetConnection(SinglePoolConnectionInterceptor.java:67)
     [exec]     at
org.apache.geronimo.connector.outbound.AbstractSinglePoolConnectionInterceptor.getConnection(AbstractSinglePoolConnectionInterceptor.java:78)
     [exec]     at
org.apache.geronimo.connector.outbound.TransactionEnlistingInterceptor.getConnection(TransactionEnlistingInterceptor.java:46)
     [exec]     at
org.apache.geronimo.connector.outbound.TransactionCachingInterceptor.getConnection(TransactionCachingInterceptor.java:88)
     [exec]     at
org.apache.geronimo.connector.outbound.ConnectionHandleInterceptor.getConnection(ConnectionHandleInterceptor.java:43)
     [exec]     at
org.apache.geronimo.connector.outbound.TCCLInterceptor.getConnection(TCCLInterceptor.java:39)
     [exec]     at
org.apache.geronimo.connector.outbound.ConnectionTrackingInterceptor.getConnection(ConnectionTrackingInterceptor.java:66)
     [exec]     at
org.apache.geronimo.connector.outbound.AbstractConnectionManager.allocateConnection(AbstractConnectionManager.java:87)
     [exec]     at
org.tranql.connector.jdbc.DataSource.getConnection(DataSource.java:56)
     [exec]     at
org.apache.openjpa.lib.jdbc.DelegatingDataSource.getConnection(DelegatingDataSource.java:106)
     [exec]     at
org.apache.openjpa.lib.jdbc.DecoratingDataSource.getConnection(DecoratingDataSource.java:87)
     [exec]     at
org.apache.openjpa.jdbc.schema.SchemaGenerator.generateSchema(SchemaGenerator.java:328)
     [exec]     at
org.apache.openjpa.jdbc.schema.SchemaGenerator.generateSchemas(SchemaGenerator.java:284)
     [exec]     at
org.apache.openjpa.jdbc.schema.SchemaTool.getDBSchemaGroup(SchemaTool.java:1127)
     [exec]     at
org.apache.openjpa.jdbc.schema.SchemaTool.add(SchemaTool.java:344)
     [exec]     at
org.apache.openjpa.jdbc.schema.SchemaTool.run(SchemaTool.java:321)
     [exec]     at
org.apache.openjpa.jdbc.meta.MappingTool.record(MappingTool.java:497)
     [exec]     at
org.apache.openjpa.jdbc.meta.MappingTool.record(MappingTool.java:449)
     [exec]     at
org.apache.openjpa.jdbc.kernel.JDBCBrokerFactory.synchronizeMappings(JDBCBrokerFactory.java:170)
     [exec]     at
org.apache.openjpa.jdbc.kernel.JDBCBrokerFactory.newBrokerImpl(JDBCBrokerFactory.java:130)
     [exec]     at
org.apache.openjpa.kernel.AbstractBrokerFactory.newBroker(AbstractBrokerFactory.java:185)
     [exec]     ... 43 more
     [exec] 12:47:49,877 ERROR [[jsp]] Servlet.service() for servlet jsp
threw exception
     [exec] javax.ejb.NoSuchEJBException: reference is invalid
     [exec]     at
org.apache.openejb.core.ivm.BaseEjbProxyHandler.invoke(BaseEjbProxyHandler.java:208)
     [exec]     at
org.apache.openejb.util.proxy.Jdk13InvocationHandler.invoke(Jdk13InvocationHandler.java:49)
     [exec]     at $Proxy57.getNewData(Unknown Source)
     [exec]     at
org.apache.jsp.addTool_jsp._jspService(addTool_jsp.java:165)
     [exec]     at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
     [exec]     at
javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
     [exec]     at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:388)
     [exec]     at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
     [exec]     at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
     [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:230)
     [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:351)
     [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:104)
     [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:261)
     [exec]     at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
     [exec]     at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:581)
     [exec]     at
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
     [exec]     at java.lang.Thread.run(Thread.java:619)
     [exec] javax.ejb.EJBException: The bean encountered a non-application
exception.; nested exception is: 
     [exec]     <1.0.0-r561970-r561970 nonfatal general error>
org.apache.openjpa.persistence.PersistenceException: null
     [exec]     at
org.apache.openejb.core.ivm.BaseEjbProxyHandler.convertException(BaseEjbProxyHandler.java:363)
     [exec]     at
org.apache.openejb.core.ivm.BaseEjbProxyHandler.invoke(BaseEjbProxyHandler.java:250)
     [exec]     at
org.apache.openejb.util.proxy.Jdk13InvocationHandler.invoke(Jdk13InvocationHandler.java:49)
     [exec]     at $Proxy57.writeToDB(Unknown Source)
     [exec]     at
org.apache.jsp.addTool_jsp._jspService(addTool_jsp.java:108)
     [exec]     at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
     [exec]     at
javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
     [exec]     at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:388)
     [exec]     at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
     [exec]     at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
     [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:230)
     [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:351)
     [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:104)
     [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:261)
     [exec]     at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
     [exec]     at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:581)
     [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: <1.0.0-r561970-r561970 nonfatal general error>
org.apache.openjpa.persistence.PersistenceException: null
     [exec]     at
org.apache.openjpa.kernel.AbstractBrokerFactory.newBroker(AbstractBrokerFactory.java:204)
     [exec]     at
org.apache.openjpa.kernel.DelegatingBrokerFactory.newBroker(DelegatingBrokerFactory.java:142)
     [exec]     at
org.apache.openjpa.persistence.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:190)
     [exec]     at
org.apache.openjpa.persistence.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:143)
     [exec]     at
org.apache.openjpa.persistence.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:55)
     [exec]     at
vt.bean.stateful.WriteDataBean.writeToDB(WriteDataBean.java:89)
     [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:146)
     [exec]     at
org.apache.openejb.core.interceptor.ReflectionInvocationContext.proceed(ReflectionInvocationContext.java:129)
     [exec]     at
org.apache.openejb.core.interceptor.InterceptorStack.invoke(InterceptorStack.java:67)
     [exec]     at
org.apache.openejb.core.stateful.StatefulContainer._invoke(StatefulContainer.java:427)
     [exec]     at
org.apache.openejb.core.stateful.StatefulContainer.businessMethod(StatefulContainer.java:389)
     [exec]     at
org.apache.openejb.core.stateful.StatefulContainer.invoke(StatefulContainer.java:246)
     [exec]     at
org.apache.openejb.core.ivm.EjbObjectProxyHandler.businessMethod(EjbObjectProxyHandler.java:211)
     [exec]     at
org.apache.openejb.core.ivm.EjbObjectProxyHandler._invoke(EjbObjectProxyHandler.java:65)
     [exec]     at
org.apache.openejb.core.ivm.BaseEjbProxyHandler.invoke(BaseEjbProxyHandler.java:244)
     [exec]     ... 25 more
     [exec] Caused by: java.lang.Exception: java.lang.NullPointerException
     [exec]     at
org.apache.openjpa.util.Exceptions.replaceNestedThrowables(Exceptions.java:242)
     [exec]     at
org.apache.openjpa.persistence.PersistenceException.writeObject(PersistenceException.java:100)
     [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
java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:945)
     [exec]     at
java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1461)
     [exec]     at
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
     [exec]     at
java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
     [exec]     at
java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
     [exec]     at
java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
     [exec]     at
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
     [exec]     at
java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
     [exec]     at
java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
     [exec]     at
org.apache.openejb.core.ivm.BaseEjbProxyHandler.copyObj(BaseEjbProxyHandler.java:503)
     [exec]     at
org.apache.openejb.core.ivm.BaseEjbProxyHandler.invoke(BaseEjbProxyHandler.java:249)
     [exec]     ... 25 more


do you have an idea? i am getting crazy but i NEED to get this application
running on geronimo.

thanks A LOT,

mario


Jacek Laskowski wrote:
> 
> On Jan 13, 2008 7:35 PM, the666pack <mario.kofler@gmail.com> wrote:
> 
>> for the messaging part of your tutorial i will return to the wiki at a
>> later
>> state, as it seems to be very helpful though written in polish language
>> :)
> 
> Let me know what article you're after and one day it could be
> translated/written just for you ;-)
> 
>> i found some files that were not supposed to be in my archive, you are
>> right. yet the error remains also now after redeploying. the directory
>> structure:
> 
> Is the error the same as before? If so, I don't think we can fix it
> without having such an application created to reproduce the issue (if
> you stripped the application down from unnecessary bits and sent it
> along here, it'd be helpful).
> 
> Jacek
> 
> -- 
> Jacek Laskowski
> http://www.JacekLaskowski.pl
> 
> 

-- 
View this message in context: http://www.nabble.com/Geronimo-2.0-openejb-postgresql-tp14710209s134p14838249.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.


Mime
View raw message