-->
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: problem saving
PostPosted: Thu May 26, 2005 11:24 am 
Beginner
Beginner

Joined: Sat Oct 04, 2003 7:00 am
Posts: 26
Location: Roma,IT
When i try to save an entity i obtain the follow error...why?

Hibernate version:
3.0.2

Full stack trace of any exception that occurs:

17:20:27,953 DEBUG JDBCTransaction:46 - begin
17:20:27,953 DEBUG JDBCTransaction:50 - current autocommit status: false
17:20:27,953 DEBUG DefaultSaveOrUpdateEventListener:159 - saving transient instance
17:20:27,953 DEBUG AbstractSaveEventListener:89 - generated identifier: , using strategy: org.hibernate.id.IdentityGenerator
17:20:27,968 DEBUG AbstractSaveEventListener:132 - saving [sic.business.Ingresso#<null>]
17:20:27,968 DEBUG AbstractSaveEventListener:194 - executing insertions
17:20:27,968 DEBUG Cascades:806 - processing cascade ACTION_SAVE_UPDATE for: sic.business.Ingresso
17:20:28,000 DEBUG Cascades:152 - cascading to saveOrUpdate: sic.business.Socio
17:20:28,000 DEBUG AbstractSaveEventListener:393 - persistent instance of: sic.business.Socio
17:20:28,015 DEBUG DefaultSaveOrUpdateEventListener:103 - ignoring persistent instance
17:20:28,015 DEBUG DefaultSaveOrUpdateEventListener:140 - object already associated with session: [sic.business.Socio#1]
17:20:28,015 DEBUG Cascades:831 - done processing cascade ACTION_SAVE_UPDATE for: sic.business.Ingresso
17:20:28,031 DEBUG BasicEntityPersister:1722 - Inserting entity: sic.business.Ingresso (native id)
17:20:28,031 DEBUG AbstractBatcher:277 - about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
17:20:28,031 DEBUG SQL:311 - /*insert sic.business.Ingresso*/insert into ingressi (ing_data, ing_ospiti, soc_id) values (?, ?, ?)
Hibernate: /*insert sic.business.Ingresso*/insert into ingressi (ing_data, ing_ospiti, soc_id) values (?, ?, ?)
17:20:28,046 DEBUG AbstractBatcher:365 - preparing statement
Exception in thread "com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#2" java.lang.AbstractMethodError: com.sybase.jdbc2.jdbc.SybConnection.prepareStatement(Ljava/lang/String;I)Ljava/sql/PreparedStatement;
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:585)
at com.mchange.v2.c3p0.stmt.GooGooStatementCache$2.run(GooGooStatementCache.java:366)
at com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:366)

Name and version of the database you are using:
Sybase Anywhere


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 26, 2005 12:02 pm 
Newbie

Joined: Wed Apr 20, 2005 5:05 pm
Posts: 12
just doing a quick search i found this...i could be wrong, but i bet this is it. I hope for you though, im wrong.

Quote:
This is a known issue that Sybase JConnect 5.5 JDBC Driver doesn't support the JDBC 3.0 features that hibernate needs.

Even jConnect 6.0 (not available as separate download but it gets installed with newer versions of Sybase) has not yet implemented any JDBC 3.0 methods --
http://www.sybase.com/detail/1,6904,1033283,00.html


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 26, 2005 12:05 pm 
Newbie

Joined: Wed Apr 20, 2005 5:05 pm
Posts: 12
sorry, link didn't work.

http://www.sybase.com/detail?id=1033283

halfway down they say...

Quote:
Note:

jConnect 6.0 has not yet implemented any JDBC 3.0 methods. This functionality is to be implemented incrementally in future EBF releases. See the Programmer’s Reference for more information.


Top
 Profile  
 
 Post subject:
PostPosted: Fri May 27, 2005 3:40 am 
Beginner
Beginner

Joined: Sat Oct 04, 2003 7:00 am
Posts: 26
Location: Roma,IT
lt wrote:
sorry, link didn't work.

http://www.sybase.com/detail?id=1033283

halfway down they say...

Quote:
Note:

jConnect 6.0 has not yet implemented any JDBC 3.0 methods. This functionality is to be implemented incrementally in future EBF releases. See the Programmer’s Reference for more information.


So i have to use hibernate 2?


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.