Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

JPA / JDBC / datasource - exception in invoking jpa entity bean

48 views
Skip to first unread message

gary

unread,
Sep 6, 2009, 12:43:24 AM9/6/09
to
Please help me on following jps / jdbc / datasource problem:

From was 6 admin console, datasource jndi name is jdbc/hbdb. At its configuration pagy, tested its connection and it worked fine. In persistence.xml file, the setting is:




jdbc/hbdb
msg.Message
true

where msg.Message is entity bean. When bean is invoked through another session bean, got following exception:

[9/5/09 22:11:47:682 EDT] 0000001d ExceptionUtil E CNTR0020E: EJB threw an unexpected (non-declared) exception during invocation of method "sayHello" on bean "BeanId(Hibernate2App#Hibernate2AppEJB.jar#HelloMsg, null)". Exception data: org.apache.openjpa.persistence.PersistenceException: invalid arguments in callDSRA0010E: SQL State = null, Error Code = 17,433
at org.apache.openjpa.jdbc.sql.DBDictionaryFactory.newDBDictionary(DBDictionaryFactory.java:101)
at org.apache.openjpa.jdbc.conf.JDBCConfigurationImpl.getDBDictionaryInstance(JDBCConfigurationImpl.java:569)
at org.apache.openjpa.jdbc.meta.MappingRepository.endConfiguration(MappingRepository.java:1221)
at org.apache.openjpa.lib.conf.Configurations.configureInstance(Configurations.java:476)
at org.apache.openjpa.lib.conf.Configurations.configureInstance(Configurations.java:401)
at org.apache.openjpa.lib.conf.PluginValue.instantiate(PluginValue.java:102)
at org.apache.openjpa.lib.conf.ObjectValue.instantiate(ObjectValue.java:82)
at org.apache.openjpa.conf.OpenJPAConfigurationImpl.newMetaDataRepositoryInstance(OpenJPAConfigurationImpl.java:861)
at org.apache.openjpa.conf.OpenJPAConfigurationImpl.getMetaDataRepositoryInstance(OpenJPAConfigurationImpl.java:852)
at org.apache.openjpa.kernel.BrokerImpl.initialize(BrokerImpl.java:269)
at org.apache.openjpa.kernel.AbstractBrokerFactory.newBroker(AbstractBrokerFactory.java:187)
at org.apache.openjpa.kernel.DelegatingBrokerFactory.newBroker(DelegatingBrokerFactory.java:142)
at org.apache.openjpa.persistence.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:192)
at com.ibm.ws.persistence.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:44)
at com.ibm.ws.persistence.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:30)
at com.ibm.ws.jpa.management.JPAEMFactory.createEntityManager(JPAEMFactory.java:108)
at com.ibm.ws.jpa.management.JPATxEntityManager.getEMInvocationInfo(JPATxEntityManager.java:204)
at com.ibm.ws.jpa.management.JPAEntityManager.find(JPAEntityManager.java:161)
at hello2.HelloMsg.sayHello(HelloMsg.java:23)
at hello2.EJSLocal0SLHelloMsg_704b21f0.sayHello(EJSLocal0SLHelloMsg_704b21f0.java)
at hello2.HelloServlet.doGet(HelloServlet.java:54)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
......

I searched web it seems this is connection problem.

Could someone tell what is wrong or point to me the right direction?

Thanks
Gary


I

bkail

unread,
Sep 8, 2009, 7:36:47 PM9/8/09
to
Are there data source error messages prior to this exception? Are there "Caused by" statements for this exception?

I am not a data source expert, but a Google search suggests that error 17433 is related to authentication problems.

0 new messages