# cannot save form data

**URL:** <https://forum.servoy.com/t/cannot-save-form-data/1145>\
**Category:** Classic Servoy\
**Created:** [January 30, 2004, 7:25pm UTC](https://forum.servoy.com/t/cannot-save-form-data/1145 "2004-01-30T19:25:57Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![shaikna](https://avatars.discourse-cdn.com/v4/letter/s/ac91a4/32.png) [@shaikna](https://forum.servoy.com/u/shaikna)\
**Post date:** [January 30, 2004, 7:25pm UTC](https://forum.servoy.com/t/cannot-save-form-data/1145/1 "2004-01-30T19:25:57Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Jan\_Aleman](https://avatars.discourse-cdn.com/v4/letter/j/4af34b/32.png) [@Jan\_Aleman](https://forum.servoy.com/u/Jan_Aleman)\
**Post date:** [January 30, 2004, 8:08pm UTC](https://forum.servoy.com/t/cannot-save-form-data/1145/2 "2004-01-30T20:08:45Z")

</div>

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()

---

<div class="post-metadata">

**Author:** ![shaikna](https://avatars.discourse-cdn.com/v4/letter/s/ac91a4/32.png) [@shaikna](https://forum.servoy.com/u/shaikna)\
**Post date:** [January 31, 2004, 5:01am UTC](https://forum.servoy.com/t/cannot-save-form-data/1145/3 "2004-01-31T05:01:05Z")

</div>

NO. My version is R2 2.0 beta6-build 260

---

<div class="post-metadata">

**Author:** ![shaikna](https://avatars.discourse-cdn.com/v4/letter/s/ac91a4/32.png) [@shaikna](https://forum.servoy.com/u/shaikna)\
**Post date:** [February 3, 2004, 4:34pm UTC](https://forum.servoy.com/t/cannot-save-form-data/1145/4 "2004-02-03T16:34:14Z")

</div>

Any clue ![:idea:]( "Idea") on this? I am expecting a way out through servoy guys ![:D]( "Very Happy")

---

<div class="post-metadata">

**Author:** ![Jan\_Aleman](https://avatars.discourse-cdn.com/v4/letter/j/4af34b/32.png) [@Jan\_Aleman](https://forum.servoy.com/u/Jan_Aleman)\
**Post date:** [February 3, 2004, 4:48pm UTC](https://forum.servoy.com/t/cannot-save-form-data/1145/5 "2004-02-03T16:48:14Z")

</div>

Does it also happen if you issue a:

controller.loadAllRecords()

first?

---

<div class="post-metadata">

**Author:** ![shaikna](https://avatars.discourse-cdn.com/v4/letter/s/ac91a4/32.png) [@shaikna](https://forum.servoy.com/u/shaikna)\
**Post date:** [February 3, 2004, 5:02pm UTC](https://forum.servoy.com/t/cannot-save-form-data/1145/6 "2004-02-03T17:02:27Z")

</div>

> controller.loadAllRecords()
> 
> first?

Yes, it does happen even in that situation.[/quote]

---

<div class="post-metadata">

**Author:** ![jcompagner](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/jcompagner/32/4889_2.png) [@jcompagner](https://forum.servoy.com/u/jcompagner)\
**Post date:** [February 4, 2004, 8:41pm UTC](https://forum.servoy.com/t/cannot-save-form-data/1145/7 "2004-02-04T20:41:13Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![shaikna](https://avatars.discourse-cdn.com/v4/letter/s/ac91a4/32.png) [@shaikna](https://forum.servoy.com/u/shaikna)\
**Post date:** [February 5, 2004, 4:31am UTC](https://forum.servoy.com/t/cannot-save-form-data/1145/8 "2004-02-05T04:31:45Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![jcompagner](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/jcompagner/32/4889_2.png) [@jcompagner](https://forum.servoy.com/u/jcompagner)\
**Post date:** [February 5, 2004, 9:50am UTC](https://forum.servoy.com/t/cannot-save-form-data/1145/9 "2004-02-05T09:50:00Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![shaikna](https://avatars.discourse-cdn.com/v4/letter/s/ac91a4/32.png) [@shaikna](https://forum.servoy.com/u/shaikna)\
**Post date:** [February 9, 2004, 4:03pm UTC](https://forum.servoy.com/t/cannot-save-form-data/1145/10 "2004-02-09T16:03:29Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![jcompagner](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/jcompagner/32/4889_2.png) [@jcompagner](https://forum.servoy.com/u/jcompagner)\
**Post date:** [February 9, 2004, 9:10pm UTC](https://forum.servoy.com/t/cannot-save-form-data/1145/11 "2004-02-09T21:10:55Z")

</div>

yes . implemented a fix but as i can’t reproduce it it is hard to test  
pleas test it when RC5 arrives

---

<div class="post-metadata">

**Author:** ![shaikna](https://avatars.discourse-cdn.com/v4/letter/s/ac91a4/32.png) [@shaikna](https://forum.servoy.com/u/shaikna)\
**Post date:** [February 10, 2004, 4:26am UTC](https://forum.servoy.com/t/cannot-save-form-data/1145/12 "2004-02-10T04:26:06Z")

</div>

Okay ![:)]( "Smile") , thanks any way. When is the expected release date of RC5?.

---

<div class="post-metadata">

**Author:** ![Jan\_Blok](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@Jan\_Blok](https://forum.servoy.com/u/Jan_Blok)\
**Post date:** [February 11, 2004, 10:49am UTC](https://forum.servoy.com/t/cannot-save-form-data/1145/13 "2004-02-11T10:49:16Z")

</div>

This week (second week of feb. 2004)

---

<div class="post-metadata">

**Author:** ![shaikna](https://avatars.discourse-cdn.com/v4/letter/s/ac91a4/32.png) [@shaikna](https://forum.servoy.com/u/shaikna)\
**Post date:** [February 16, 2004, 2:28pm UTC](https://forum.servoy.com/t/cannot-save-form-data/1145/14 "2004-02-16T14:28:49Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![jcompagner](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/jcompagner/32/4889_2.png) [@jcompagner](https://forum.servoy.com/u/jcompagner)\
**Post date:** [February 16, 2004, 2:45pm UTC](https://forum.servoy.com/t/cannot-save-form-data/1145/15 "2004-02-16T14:45:30Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![shaikna](https://avatars.discourse-cdn.com/v4/letter/s/ac91a4/32.png) [@shaikna](https://forum.servoy.com/u/shaikna)\
**Post date:** [February 16, 2004, 2:57pm UTC](https://forum.servoy.com/t/cannot-save-form-data/1145/16 "2004-02-16T14:57:50Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![jcompagner](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/jcompagner/32/4889_2.png) [@jcompagner](https://forum.servoy.com/u/jcompagner)\
**Post date:** [February 16, 2004, 3:07pm UTC](https://forum.servoy.com/t/cannot-save-form-data/1145/17 "2004-02-16T15:07:37Z")

</div>

That is not the latest version see this thread:  
[http://forum.servoy.com/viewtopic.php?t=1280](http://forum.servoy.com/viewtopic.php?t=1280)

how to update youre Beta6 to RC6

---

<div class="post-metadata">

**Author:** ![shaikna](https://avatars.discourse-cdn.com/v4/letter/s/ac91a4/32.png) [@shaikna](https://forum.servoy.com/u/shaikna)\
**Post date:** [February 16, 2004, 3:40pm UTC](https://forum.servoy.com/t/cannot-save-form-data/1145/18 "2004-02-16T15:40:03Z")

</div>

Yes, updated properly this time ![:P]( "Razz")

Now, there is no such problem. bug is fixed. ![:D]( "Very Happy")

thanks to johan & jan ![:mrgreen:]( "Mr. Green")

---

<div class="post-metadata">

**Author:** ![shaikna](https://avatars.discourse-cdn.com/v4/letter/s/ac91a4/32.png) [@shaikna](https://forum.servoy.com/u/shaikna)\
**Post date:** [February 21, 2004, 7:26am UTC](https://forum.servoy.com/t/cannot-save-form-data/1145/19 "2004-02-21T07:26:50Z")

</div>

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](http://forum.servoy.com/viewtopic.php?t=1425). 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.
