IntelliJ Java IDE
The moose likes Object Relational Mapping and the fly likes GenericJDBCException Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Object Relational Mapping
Reply Bookmark "GenericJDBCException" Watch "GenericJDBCException" New topic
Author

GenericJDBCException

nirumagics
Greenhorn

Joined: Jul 21, 2006
Posts: 15
Hi, i am working on hibernate using weblogic server and with Oracle Database. I am getting the following exception. But same code when i worked with websphere server it's working fine. And let me know the solution.

And My StackTrace As follows..


SEVERE: User: scott, failed to be authenticated.
Exception in thread "main" org.hibernate.exception.
GenericJDBCException: Cannot open connectionat org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:103)
at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:91)
at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:29)
at org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:420)
at org.hibernate.jdbc.ConnectionManager.getConnection(ConnectionManager.java:144)
at org.hibernate.jdbc.JDBCContext.connection(JDBCContext.java:129)
at org.hibernate.transaction.JDBCTransaction.begin(JDBCTransaction.java:57)
at org.hibernate.impl.SessionImpl.beginTransaction(SessionImpl.java:1290)
------------------------------------my class names-----------------
{
};
Caused by: java.sql.SQLException: User: scott, failed to be authenticated.
at weblogic.rjvm.BasicOutboundRequest.sendReceive(BasicOutboundRequest.java:108)
at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:284)
at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:244)
at weblogic.jdbc.common.internal.RmiDataSource_813_WLStub.getConnection(Unknown Source)
at org.hibernate.connection.DatasourceConnectionProvider.getConnection(DatasourceConnectionProvider.java:66)
at org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:417)
... 8 more
Caused by: java.sql.SQLException: User: scott, failed to be authenticated.
at weblogic.jdbc.common.internal.RmiDataSource.getSubject(RmiDataSource.java:264)
at weblogic.jdbc.common.internal.RmiDataSource.getConnection(RmiDataSource.java:195)
at weblogic.jdbc.common.internal.RmiDataSource_WLSkel.invoke(Unknown Source)
at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:477)
at weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerRef.java:108)
at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:420)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:144)
at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:415)
at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:30)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

"nirumagics"

You have been asked before to change your display name so it complies with our Naming Policy. Please do this before posting again. You can do this here.

Thanks.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
nirumagics
Greenhorn

Joined: Jul 21, 2006
Posts: 15
Ya..thanks.
i got the answer...
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 16622

Originally posted by nirumagics:
Ya..thanks.
i got the answer...


So what you are saying is that you are going to ignore the name change request again. No problem, you don't have to change it, unless you want your account un-suspended. Please, please change your display name.

Thanks

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
 
IntelliJ Java IDE
 
subject: GenericJDBCException
 
Threads others viewed
java.rmi.UnmarshalException: Could not unmarshal method ID; nested exception
HIbernate with Oracle and Weblogic: Help Please
GenericJDBCException: Cannot open connection
org hibernate exception GenericJDBCException
Hibernate to connect to MS SQL
IntelliJ Java IDE