• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: ERXSequence.DatabaseSequence error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ERXSequence.DatabaseSequence error


  • Subject: Re: ERXSequence.DatabaseSequence error
  • From: Farrukh Ijaz <email@hidden>
  • Date: Thu, 22 Nov 2012 22:19:51 +0300

Hi Johann,

I've debugged ERXSequence.java and found that following statement is causing problem:

168: con.createStatement().executeQuery(updateStatement);

Since updateStatement does not return any result, it throws exception. I changed this with following which fixed the issue:

168: con.createStatement().execute(updateStatement);

This needs to be fixed in Wonder.

Thanks,

Farrukh

On Nov 22, 2012, at 9:21 PM, Johann Werner <email@hidden> wrote:

Hi Farrukh,

what is the SQL that is getting generated?

jw


Am 22.11.2012 um 18:06 schrieb Farrukh Ijaz <email@hidden>:

Hi Guys,

I've updated my wonder to latest. The application that was running fine all of a sudden seems to be broken. I'm getting following exception what getting a DatabaseSequence object.

This is the line of the code:

new ERXSequence.DatabaseSequence(editingContext(), "MyModel", "VisaApplicationProcessNumber");

and below is the exception.

Caused by: com.webobjects.foundation.NSForwardException [org.postgresql.util.PSQLException] No results were returned by the query.:Error fetching sequence: VisaApplicationProcessNumber
at er.extensions.eof.ERXSequence$DatabaseSequence.increasedMaxValue(ERXSequence.java:227)
at er.extensions.eof.ERXSequence.nextValue(ERXSequence.java:65)

... 75 more
Caused by: org.postgresql.util.PSQLException: No results were returned by the query.
at org.postgresql.jdbc2.AbstractJdbc2Statement.executeQuery(AbstractJdbc2Statement.java:255)
at er.extensions.eof.ERXSequence$DatabaseSequence.selectAndUpdateValue(ERXSequence.java:168)
at er.extensions.eof.ERXSequence$DatabaseSequence.increasedMaxValue(ERXSequence.java:210)
... 80 more

Here is the database query:

qshield=> select * from erx_sequence_table;
           name_             |  value_  
------------------------------+----------
VisaApplicationProcessNumber |     2777

Any clue?

Thanks,

Farrukh



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >ERXSequence.DatabaseSequence error (From: Farrukh Ijaz <email@hidden>)
 >Re: ERXSequence.DatabaseSequence error (From: Johann Werner <email@hidden>)

  • Prev by Date: Need idea for modal overlaid page in D2WNeutral app
  • Next by Date: Project Wonder page on WikiPedia
  • Previous by thread: Re: ERXSequence.DatabaseSequence error
  • Next by thread: Need idea for modal overlaid page in D2WNeutral app
  • Index(es):
    • Date
    • Thread