-->
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.  [ 1 post ] 
Author Message
 Post subject: Strange error when running servlet
PostPosted: Sun Nov 02, 2003 9:07 pm 
Newbie

Joined: Sun Oct 12, 2003 6:33 pm
Posts: 7
Hi,

I've this simple class 'Account' with properties login and password, both String objects.

I've setup a small test example with SQL Server where I have a table Account( login, password ) and a hibernate_unique_key table for hilo id generation.

When running from console (method main), I am able to save a new Account as well as retrieve it with a query. Everything works fine.

When running the same code from a Servlet using Tomcat 4.1, however, I get the following error when executing session.save():

FOR UPDATE cannot be specified on a READ ONLY cursor

It seems that Hibernate gets this error when trying to update the hibernate_unique_key table, but I don't have a clue why the 'cursor' is read only.

Any ideas?

Thanks!


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

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.