Menu

#240 Can't delete when no class model

z_don't_use_3.1.3
closed-fixed
5
2007-02-11
2007-01-27
Carlos Ruiz
No

When trying to delete a record without the X_ generated class the program throws the following error:

===========> MTable.getPO: (rs) - Class not found for LPI_Publication [11]
===========> GridTable.dataDelete: DELETE LPI_Publication WHERE LPI_Publication_ID=1000000 [11]
org.postgresql.util.PSQLException: ERROR: transaction is read-only; State=25006; ErrorCode=0
at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:1548)
at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1316)
at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:191)
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(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.postgresql.ds.jdbc23.AbstractJdbc23PooledConnection$StatementHandler.invoke(AbstractJdbc23PooledConnection.java:471)
at $Proxy1.executeUpdate(Unknown Source)
at org.compiere.util.CPreparedStatement.executeUpdate(CPreparedStatement.java:178)
at org.compiere.model.GridTable.dataDelete(GridTable.java:2272)
at org.compiere.model.GridTab.dataDelete(GridTab.java:883)
at org.compiere.apps.APanel.cmd_delete(APanel.java:1359)
at org.compiere.apps.APanel.actionPerformed(APanel.java:1238)
at org.compiere.apps.AppsAction.actionPerformed(AppsAction.java:263)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)

Regards,

Carlos Ruiz

Discussion

  • Carlos Ruiz

    Carlos Ruiz - 2007-01-27
    • assigned_to: nobody --> globalqss
    • status: open --> pending-fixed
     
  • Carlos Ruiz

    Carlos Ruiz - 2007-01-27

    Logged In: YES
    user_id=1180760
    Originator: YES

    Fixed in revision 1315.

    Regards,

    Carlos Ruiz

     
  • SourceForge Robot

    Logged In: YES
    user_id=1312539
    Originator: NO

    This Tracker item was closed automatically by the system. It was
    previously set to a Pending status, and the original submitter
    did not respond within 14 days (the time period specified by
    the administrator of this Tracker).

     
  • SourceForge Robot

    • status: pending-fixed --> closed-fixed
     

Log in to post a comment.