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.