-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 
Author Message
 Post subject: Issue with Hibernate 3.1 and Weblogic 8.1 MSQL Drive
PostPosted: Wed Jan 04, 2006 5:39 am 
Newbie

Joined: Wed Jan 04, 2006 5:17 am
Posts: 4
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

I have just tried upgrading from Hibernate 3.0.5 to Hibernate 3.1, and ran into an issue with the Weblogic 8.1 MSQL driver. The specific problem relates to method Hibernate calls in order to retrieve primary keys generated by MSQL. In 3.0.5 Hibernate called Connection.prepareStatement(String, int) which is supported by the Weblogic MSQL driver. In Hibernate 3.1 this has changed to Connection.prepareStatement(String, String[]) which is not supported by the driver: an SQLException is thrown stating the method is not supported.

Anyone have a similar issue?

Hibernate version:
Hibernate 3.1

Weblogic version:
Weblogic 8.1 SP5

Mapping documents:
Not relevant.

Code between sessionFactory.openSession() and session.close():
not relevant.

Full stack trace of any exception that occurs:
Quote:
Caused by: java.sql.SQLException: [BEA][SQLServer JDBC Driver]Unsupported method: Connection.prepareStatement
at weblogic.jdbc.base.BaseExceptions.createException(Unknown Source)
at weblogic.jdbc.base.BaseExceptions.getException(Unknown Source)
at weblogic.jdbc.base.BaseConnection.prepareStatement(Unknown Source)
at weblogic.jdbc.wrapper.JTSConnection_weblogic_jdbc_sqlserver_SQLServerConnection.prepareStatement(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.hibernate.util.GetGeneratedKeysHelper.prepareStatement(GetGeneratedKeysHelper.java:45)
at org.hibernate.jdbc.AbstractBatcher.getPreparedStatement(AbstractBatcher.java:435)
at org.hibernate.jdbc.AbstractBatcher.prepareStatement(AbstractBatcher.java:93)
at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:1948)


Name and version of the database you are using:
MSQL Server 2000

The generated SQL (show_sql=true):

Debug level Hibernate log excerpt:


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 04, 2006 8:48 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
Why don't you try jTDS?

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Thu Feb 02, 2006 9:29 am 
Newbie

Joined: Fri Nov 11, 2005 12:34 pm
Posts: 18
I have exectly the same problem.
Are there any solutions to this problem, or is this simple case of uncompatible bea weblogic jdbc driver?

Thanks


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 08, 2006 1:34 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
Weblogic driver seems to be limited so either:
- open a case to BEA
- use jTDS
- use MS new driver
- use a commercial third party driver

_________________
Emmanuel


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.