Google Groupes n'accepte plus les nouveaux posts ni abonnements Usenet. Les contenus de l'historique resteront visibles.

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

48 vues
Accéder directement au premier message non lu

gary

non lue,
6 sept. 2009, 00:43:2406/09/2009
à
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

non lue,
8 sept. 2009, 19:36:4708/09/2009
à
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 nouveau message