Hello,
I’m back again on a new thread (original semi-related discussion on “J2DB Exception After Postgres Schema Change”) - but with a new twist to the problems. Appreciate any help from the folks at Servoy or elsewhere on this new one!
Latest rev’s of Postgres, JDBC drivers, and Servoy running on a Linux host with XP Pro (SP2) client. I am getting a Parameter error (see Servoy log extract below). The situation is:
- A very simple form (no tab panels or anything - just a few fields)
- All not-null-fields in the table are managed by the database itself (it writes the default values)
- Navigation etc is fine in this table
- I can add and delete in another table
- If I try to add a record in this simple form I get a Parameter error (see Parameter 57 in the log below)
- If I remove a field from the backend db table, the parameter number decreases; if I add a field to the backend db table schema, the parameter number grows larger. The delta between the number of fields and the Parameter number error is equal to 10.
- Servoy repository/data providers are refreshing fine and reading new fields and schema properly.
I am wondering if there is something weird with the drivers ??? Suggestions, tips? I’m starting to get stuck on this one - appreciate any assistance with thanks,
Michael
2007-04-19 15:39:42,171 ERROR [AWT-EventQueue-0] com.servoy.j2db.util.Debug - Throwable
org.postgresql.util.PSQLException: No value specified for parameter 57.
at org.postgresql.core.v3.SimpleParameterList.checkAllParametersSet(SimpleParameterList.java:146)
at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:182)
at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:452)
at org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:351)
at org.postgresql.jdbc2.AbstractJdbc2Statement.executeUpdate(AbstractJdbc2Statement.java:305)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.servoy.j2db.persistence.datasource.p.invoke(Unknown Source)
at $Proxy1.executeUpdate(Unknown Source)
at org.apache.commons.dbcp.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:207)
at org.apache.commons.dbcp.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:207)
at org.apache.commons.dbcp.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:207)
at com.servoy.j2db.dataprocessing.SQLEngine.performUpdates(Unknown Source)
at com.servoy.j2db.dataprocessing.aa.if(Unknown Source)
at com.servoy.j2db.FormController.selectNextRecord(Unknown Source)
at com.servoy.j2db.cmd.aa.doIt(Unknown Source)
at com.servoy.j2db.cmd.c$2.run(Unknown Source)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
2007-04-19 15:39:42,171 ERROR [AWT-EventQueue-0] com.servoy.j2db.util.Debug - Throwable
com.servoy.j2db.ApplicationException: Cannot save form data
at com.servoy.j2db.dataprocessing.aa.if(Unknown Source)
at com.servoy.j2db.FormController.selectNextRecord(Unknown Source)
at com.servoy.j2db.cmd.aa.doIt(Unknown Source)
at com.servoy.j2db.cmd.c$2.run(Unknown Source)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Caused by: com.servoy.j2db.dataprocessing.DataException: No value specified for parameter 57.
at com.servoy.j2db.c.a.a(Unknown Source)
at com.servoy.j2db.persistence.Server.translateSQLException(Unknown Source)
at com.servoy.j2db.dataprocessing.SQLEngine.performUpdates(Unknown Source)
… 11 more