Re: PostgreSQL + hibernate

Поиск
Список
Период
Сортировка
От Myatluk Andrey
Тема Re: PostgreSQL + hibernate
Дата
Msg-id CD481F25862BDF4EB3014619BACB38D8FEC44A@master.office.bercut.ru
обсуждение исходный текст
Ответ на PostgreSQL + hibernate  ("Myatluk Andrey" <Andrey.Myatluk@bercut.ru>)
Ответы Re: PostgreSQL + hibernate  (Doug McNaught <doug@mcnaught.org>)
Список pgsql-general
Hi, Chris!

I've set the sequence owner to my database user. It hasn't changed
anything.

I guess I have to connect through psql as user and then see what
happens.
If it fails, what could be my next step?

Andrey

-----Original Message-----
From: Chris [mailto:dmagick@gmail.com]
Sent: Tuesday, January 31, 2006 10:26 AM
To: Myatluk Andrey
Cc: pgsql-general@postgresql.org
Subject: Re: [GENERAL] PostgreSQL + hibernate

Hi,

Are you doing this as the same user that your application uses?

Maybe the application postgresql user doesn't have access to the
sequence but the default user you're connecting as does.

( You're connecting as a postgresql super-user because you have a '#' in

your command prompt - a regular user gets = ).

Myatluk Andrey wrote:
> Hi!
>
> I have an application, consisting of Struts 1.2 + Tomcat 5.5 +
Hibernate
> 3.1 + PostgreSQL 8.1
>
> The application is developed on WinXP and installed on Fedora Core 4.
>
> On local machine everything works OK. Both databases are created from
> the same script and application is the same.
>
> But when installed on FC, I get the following exception:
>
> Hibernate: select nextval ('hibernate_sequence') Jan 30, 2006 8:21:35
PM
> org.hibernate.util.JDBCExceptionReporter logExceptions
> WARNING: SQL Error: 0, SQLState: 25P02
> Jan 30, 2006 8:21:35 PM org.hibernate.util.JDBCExceptionReporter
> logExceptions
> SEVERE: ERROR: current transaction is aborted, commands ignored until
> end of transaction block Jan 30, 2006 8:21:35 PM
>
> Although when I'm trying to call hibernate sequence it works fine.




В списке pgsql-general по дате отправления:

Предыдущее
От: Harry Jackson
Дата:
Сообщение: Re: verifying database integrity - fsck for pg?
Следующее
От: Howard Cole
Дата:
Сообщение: How to enumerate/drop user sessions in windows