I have the following error:
- Code: Select all
com.servoy.j2db.persistence.RepositoryException: com.servoy.j2db.persistence.RepositoryException: error getting next sequence for articlelabel_id error getting next sequence for articlelabel_id
at com.servoy.j2db.dataprocessing.SQLEngine.getNextSequence(SQLEngine.java:890)
at com.servoy.j2db.dataprocessing.Zgb.getNextSequence(Zgb.java:24)
at com.servoy.j2db.persistence.Column.getNewRecordValue(Column.java:109)
at com.servoy.j2db.dataprocessing.SQLSheet.Za(SQLSheet.java:8)
at com.servoy.j2db.dataprocessing.FoundSet.Zc(FoundSet.java:697)
at com.servoy.j2db.dataprocessing.FoundSet.Za(FoundSet.java:443)
at com.servoy.j2db.dataprocessing.FoundSet.Za(FoundSet.java:931)
at com.servoy.j2db.dataprocessing.FoundSet.newRecord(FoundSet.java:1248)
at com.servoy.j2db.FormController.Zc(FormController.java:279)
at com.servoy.j2db.FormController.access$600(FormController.java:162)
at com.servoy.j2db.FormController$JSForm.js_newRecord(FormController.java:90)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
What is strange about this situation is that it happens on a clone database. On the source database I don't have this problem and on other clones neither.
So the table and sequence definition is OK.
This error also only occurs from development (4.1.4)
How can I fix this?
I already tried the following:
- - Check if tables are exactly the same in the source and clone database
- Recalc on all databases for all sequencenumbers
- Recalc sequencenumbers within Eclipse
- Restart application server
- Restart developer
But none of these solved the problem.
Any suggestions?
Martin