I am getting the subjected error after issuing a find() method (before search() ). And I am getting it for the first time only. For the next find and all, there is no such problem. Any clue?
shaikna
I am getting the subjected error after issuing a find() method (before search() ). And I am getting it for the first time only. For the next find and all, there is no such problem. Any clue?
shaikna
Are you using Servoy 1.2? It’s a known problem in 1.2
You can get around it by first issuing a:
controller.loadAllRecords()
NO. My version is R2 2.0 beta6-build 260
Any clue on this? I am expecting a way out through servoy guys
Does it also happen if you issue a:
controller.loadAllRecords()
first?
controller.loadAllRecords()
first?
Yes, it does happen even in that situation.[/quote]
what error do you get?
(if you start for example servoy with:
java.exe -DSTACKTRACE=TRUE
instead of just
javaw.exe
(see bat file)
// EDIT TYPO
I couldn’t catch you correctly.
java.exe -DSTACKTRACE=TURE
I have always tested my application from Servoy developer only. Besides, I never tried to start servoy in other way. So, could you please elaborate?. Thanks, shaikna.
Are you running on windows?
if so look at the bat file in the install dir (as i said)
(it is called servoy_developer.bat)
there you see a line:
javaw.exe -jar servoy_developer.jar
make it
java.exe -DSTACKTRACE=TRUE -jar servoy_developer.jar
en start servoy with that bat file
Here below quoted part of the Exception:
CH_FLAG = ? order by GROUPMASTER.TITLE
questiondata[0]= available
questiondata[1]= People
questiondata[2]= 1
basekite: Closed connection, thread=AWT-EventQueue-0
basekite: Got connection, thread=AWT-EventQueue-0
used sql select HISTORY.HISTORY_ID from HISTORY where HISTORY.GALLERY_CODE = ?
and HISTORY.RECORD_TYPE = ? order by HISTORY.HISTORY_ID
questiondata[0]= 1160
questiondata[1]= People
basekite: Closed connection, thread=AWT-EventQueue-0
basekite: Got connection, thread=AWT-EventQueue-0
sql update GROUPMASTER set AVAILABLE_GROUP_CODE = ? where GROUPMASTER.GROUP_CODE = ?
questiondata[0] linked
questiondata[1] 1029
basekite: Closed connection, thread=AWT-EventQueue-0
queryForRelatedFoundSet: 5146 linkedPeople 23319048 useCache: true
basekite: Got connection, thread=AWT-EventQueue-0
used sql select GROUP_CODE, TITLE, RECORD_TYPE, AVAILABLE_GROUP_CODE, GALLERY_GR
OUP_RECORD_TYPE, OK_FOR_SEARCH_FLAG from GROUPMASTER where GROUPMASTER.AVAILABLE
_GROUP_CODE = ? and GROUPMASTER.RECORD_TYPE = ? order by GROUPMASTER.TITLE
questiondata[0]= linked
questiondata[1]= People
basekite: Closed connection, thread=AWT-EventQueue-0
-----------Data query for Cache not needed… (query done for pk)
java.util.ConcurrentModificationException
java.util.ConcurrentModificationException
at java.util.AbstractList$Itr.checkForComodification(Unknown Source)
at java.util.AbstractList$Itr.next(Unknown Source)
at com.servoy.j2db.dataprocessing.FoundSet.case(Unknown Source)
at com.servoy.j2db.dataprocessing.FoundSet.int(Unknown Source)
at com.servoy.j2db.dataprocessing.FoundSet.if(Unknown Source)
at com.servoy.j2db.dataprocessing.FoundSet.try(Unknown Source)
at com.servoy.j2db.dataprocessing.RelatedFoundSet.if(Unknown Source)
at com.servoy.j2db.dataprocessing.RelatedFoundSet.notifyChange(Unknown Source)
at com.servoy.j2db.dataprocessing.q.a(Unknown Source)
at com.servoy.j2db.dataprocessing.q.a(Unknown Source)
at com.servoy.j2db.dataprocessing.FoundSet.updateRecord(Unknown Source)
at com.servoy.j2db.dataprocessing.FoundSet.stopEditing(Unknown Source)
at com.servoy.j2db.dataprocessing.h.stopEditing(Unknown Source)
at com.servoy.j2db.FormPanel.saveData(Unknown Source)
at com.servoy.j2db.FormPanel.q(Unknown Source)
at com.servoy.j2db.FormPanel.access$0(Unknown Source)
at com.servoy.j2db.FormPanel$JSForm.js_loadAllRecords(Unknown Source)
at inv8.invoke()
at org.mozilla.javascript.FunctionObject.doInvoke(FunctionObject.java:537)
at org.mozilla.javascript.FunctionObject.call(FunctionObject.java:453)
at org.mozilla.javascript.ScriptRuntime.call(ScriptRuntime.java:1232)
at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:1940)
at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:94)
at com.servoy.j2db.scripting.e.call(Unknown Source)
at org.mozilla.javascript.ScriptRuntime.call(ScriptRuntime.java:1232)
at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:1940)
at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:94)
at com.servoy.j2db.scripting.e.call(Unknown Source)
at com.servoy.j2db.develop.c.i.executeFunction(Unknown Source)
at com.servoy.j2db.FormPanel.a(Unknown Source)
at com.servoy.j2db.FormPanel.actionPerformed(Unknown Source)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(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.pumpEventsForHierarchy(Unknown Source)
at java.awt.Dialog$1.run(Unknown Source)
at java.awt.Dialog.show(Unknown Source)
at java.awt.Component.show(Unknown Source)
at java.awt.Component.setVisible(Unknown Source)
at com.servoy.j2db.util.b.setVisible(Unknown Source)
at com.servoy.j2db.m.setVisible(Unknown Source)
at com.servoy.j2db.m.a(Unknown Source)
at com.servoy.j2db.FormManager.a(Unknown Source)
at com.servoy.j2db.scripting.JSApplication.js_showFormInDialog(Unknown Source)
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 org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:278)
at org.mozilla.javascript.ScriptRuntime.call(ScriptRuntime.java:1232)
at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:1940)
at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:94)
at com.servoy.j2db.scripting.e.call(Unknown Source)
at com.servoy.j2db.develop.c.i.executeFunction(Unknown Source)
at com.servoy.j2db.FormPanel.a(Unknown Source)
at com.servoy.j2db.FormPanel.actionPerformed(Unknown Source)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(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)
java.util.ConcurrentModificationException
Any clue from this?.
shaikna
yes . implemented a fix but as i can’t reproduce it it is hard to test
pleas test it when RC5 arrives
Okay , thanks any way. When is the expected release date of RC5?.
This week (second week of feb. 2004)
Hi Johan, I am trying with the updated beta release. Unfortunately, it still prompts out the same error. Exception is the same. Any clue?.
shaikna
Are you sure that you are running the latest RC6?
(see the about dialog)
can you reproduce it all the time?
Is it possible that you can send me a (sample) solution and database so that i can look for my self?
In About page dialog it reads as below
Servoy Developer
Version R2 2.0 beta6-build 260
I just downloaded and installed the latest release. Is that correct?
That is not the latest version see this thread:
http://forum.servoy.com/viewtopic.php?t=1280
how to update youre Beta6 to RC6
Yes, updated properly this time
Now, there is no such problem. bug is fixed.
thanks to johan & jan
After my upgrade to rc6, my previous error “cannot save form data” has gone away.
But, now I am facing wita a new error. It is throwing a nullpointer exception at the assignment of a local variable to a global variable. I have submitted this bug in detail at Error assigning value to global variable - Classic Servoy - Servoy Community. In the degub mode I have verified that the local variable got a valid value too. Please help.
Note, the code and logic has been kept as it is during the upgrade.