-->
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.  [ 2 posts ] 
Author Message
 Post subject: Can you help me with this error?
PostPosted: Fri Apr 22, 2005 8:37 am 
Newbie

Joined: Fri Apr 22, 2005 8:29 am
Posts: 5
Read the rules before posting!
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version: 2.1

Mapping documents:

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

Full stack trace of any exception that occurs:
java.lang.UnsupportedOperationException: The user must supply a JDBC connection
at net.sf.hibernate.connection.UserSuppliedConnectionProvider.getConnection(UserSuppliedConnectionProvider.java:32)
at net.sf.hibernate.impl.BatcherImpl.openConnection(BatcherImpl.java:278)
at net.sf.hibernate.id.TableGenerator.generate(TableGenerator.java:81)
at net.sf.hibernate.id.TableHiLoGenerator.generate(TableHiLoGenerator.java:59)
at net.sf.hibernate.impl.SessionImpl.saveWithGeneratedIdentifier(SessionImpl.java:765)
at net.sf.hibernate.impl.SessionImpl.save(SessionImpl.java:738)
at com.k_buy.accor.servlet.CrearUsuarioPrueba.processRequest(CrearUsuarioPrueba.java:87)
at com.k_buy.accor.servlet.CrearUsuarioPrueba.main(CrearUsuarioPrueba.java:32)

This is the line 87 of my servlet:

hSession.save(u);
"u" is an Object and all the code that I type it's corrected, verified for more than 5 persons.


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

The generated SQL (show_sql=true):

Debug level Hibernate log excerpt:

I want to tell that only occurs when creating a new row in the table. If I want to delete or modify, it doesn't give me any error.

_________________
Ger - Learning to Live


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 22, 2005 9:28 am 
Newbie

Joined: Fri Apr 22, 2005 8:29 am
Posts: 5
Error solved. I was using an old Dialect.

_________________
Ger - Learning to Live


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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.