# form not displaying at runtime

**URL:** <https://forum.servoy.com/t/form-not-displaying-at-runtime/2406>\
**Category:** Classic Servoy\
**Created:** [August 4, 2004, 4:17pm UTC](https://forum.servoy.com/t/form-not-displaying-at-runtime/2406 "2004-08-04T16:17:52Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![DFehrenbach](https://avatars.discourse-cdn.com/v4/letter/d/c67d28/32.png) [@DFehrenbach](https://forum.servoy.com/u/DFehrenbach)\
**Post date:** [August 4, 2004, 4:17pm UTC](https://forum.servoy.com/t/form-not-displaying-at-runtime/2406/1 "2004-08-04T16:17:52Z")

</div>

I have a solution that I recently migrated from Firebird to Sybase. sometime after the migration (but not immediately after) I have a form that will not display at runtime. If i select it from the Window menu, it will not display (only displays the form displayed before selection. If I switch to design mode I will see the form, but when I switch back to runtime the form still is displayed in design mode.

Servoy Developer  
Version R2 2.1beta5-build 303  
Java version 1.4.2\_04-b05 (Windows 2000)

---

<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:** [August 5, 2004, 11:23am UTC](https://forum.servoy.com/t/form-not-displaying-at-runtime/2406/2 "2004-08-05T11:23:40Z")

</div>

Try to upgrade to Servoy 2.1 rc2 and check again if problem occurs, if so check .log file to see if any error is listed.

---

<div class="post-metadata">

**Author:** ![DFehrenbach](https://avatars.discourse-cdn.com/v4/letter/d/c67d28/32.png) [@DFehrenbach](https://forum.servoy.com/u/DFehrenbach)\
**Post date:** [August 5, 2004, 5:26pm UTC](https://forum.servoy.com/t/form-not-displaying-at-runtime/2406/3 "2004-08-05T17:26:26Z")

</div>

still no luck. the log file contains:

> Starting Servoy from D:\Program Files\ServoyServoy R2 2.1rc2 build-306 on Windows 2000 using Java 1.4.2\_04Loading servoy.properties from C:\Documents and Settings\Administrator\servoy.propertiesLoading - Donejava.lang.NullPointerExceptionjava.lang.NullPointerException  
> at com.servoy.j2db.dataprocessing.aa.getValue(Unknown Source)  
> at com.servoy.j2db.dataui.DataField.setValue(Unknown Source)  
> at com.servoy.j2db.dataprocessing.an.a(Unknown Source)  
> at com.servoy.j2db.dataprocessing.an.setRecord(Unknown Source)  
> at com.servoy.j2db.dataprocessing.d.a(Unknown Source)  
> at com.servoy.j2db.dataui.m.getListCellRendererComponent(Unknown Source)  
> at javax.swing.JList.updateFixedCellSize(Unknown Source)  
> at javax.swing.JList.setCellRenderer(Unknown Source)  
> at com.servoy.j2db.FormPanel.setView(Unknown Source)  
> at com.servoy.j2db.scripting.CreationalPrototype.get(Unknown Source)  
> at org.mozilla.javascript.ScriptRuntime.getProp(ScriptRuntime.java:714)  
> at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:1821)  
> at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:94)  
> at com.servoy.j2db.scripting.e.call(Unknown Source)  
> at com.servoy.j2db.develop.debugger.n.a(Unknown Source)  
> at com.servoy.j2db.develop.debugger.n.executeFunction(Unknown Source)  
> at com.servoy.j2db.FormPanel.a(Unknown Source)  
> at com.servoy.j2db.FormPanel.eg(Unknown Source)  
> at com.servoy.j2db.FormManager$7.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)  
> ConversionError: The undefined value has no properties. (openSolution; line 4)ConversionError: The undefined value has no properties. (openSolution; line 4)  
> at org.mozilla.javascript.NativeGlobal.constructError(NativeGlobal.java:580)  
> at org.mozilla.javascript.NativeGlobal.constructError(NativeGlobal.java:540)  
> at org.mozilla.javascript.ScriptRuntime.getProp(ScriptRuntime.java:707)  
> at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:1821)  
> at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:94)  
> at com.servoy.j2db.scripting.e.call(Unknown Source)  
> at com.servoy.j2db.develop.debugger.n.a(Unknown Source)  
> at com.servoy.j2db.develop.debugger.n.executeFunction(Unknown Source)  
> at com.servoy.j2db.FormPanel.a(Unknown Source)  
> at com.servoy.j2db.FormPanel.eg(Unknown Source)  
> at com.servoy.j2db.FormManager$7.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)

the script openSolution is :

> [//globals.openSolution](https://globals.openSolution)[globals]  
> globals.getSystemUserId();  
> if ( forms.users.the\_current\_user.sysuserid )  
> {  
> if ( forms.users.the\_current\_user.initialdisplay == ‘Timekeeper’ )  
> {  
> if ( forms.users.the\_current\_user.initialdisplayvalue )  
> {  
> forms.tkDetail0.findTkByID(forms.users.the\_current\_user.initialdisplayvalue);  
> forms.tkList.viewDetail();  
> }  
> else  
> {  
> globals.goToTimekeeper();  
> }  
> }  
> if ( forms.users.the\_current\_user.initialdisplay == ‘Administration’ )  
> {  
> globals.goToAdministration();  
> }  
> }  
> else  
> {  
> answer = plugins.dialogs.showErrorDialog( ‘Unregistered User’, ‘You must be registered to use the Time System. Pleasae have an Administrator register you.’, ‘OK’)  
> // application.exit()  
> }

when I try to display the form “users” in design mode I can see the form. When I try to display the form in data mode there is no form, what ever was on the screen at the time still shows, but if I try to do a screen print, there is nothing on the screen print.

---

<div class="post-metadata">

**Author:** ![Harjo](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/harjo/32/4873_2.png) [@Harjo](https://forum.servoy.com/u/Harjo)\
**Post date:** [August 5, 2004, 10:18pm UTC](https://forum.servoy.com/t/form-not-displaying-at-runtime/2406/4 "2004-08-05T22:18:31Z")

</div>

Have you tried to hang this script at the Onload property of the first form?  
and not at as OPenSolution-method?

at an open-solution-method you can not call databases, because they are simply not there! You only can set element things.

What happens, if you completly ignore the method? does the solution than works right?

Hope this helps

---

<div class="post-metadata">

**Author:** ![DFehrenbach](https://avatars.discourse-cdn.com/v4/letter/d/c67d28/32.png) [@DFehrenbach](https://forum.servoy.com/u/DFehrenbach)\
**Post date:** [August 5, 2004, 11:30pm UTC](https://forum.servoy.com/t/form-not-displaying-at-runtime/2406/5 "2004-08-05T23:30:29Z")

</div>

The openSolution method is called onShow of the first form in the solution.  
If I remove the method from the onShow event the first error does not happen. The openSolution method itself is not the problem, I think.  
If I open the solution without the method the log file is

> Starting Servoy from D:\Program Files\ServoyServoy R2 2.1rc2 build-306 on Windows 2000 using Java 1.4.2\_04Loading servoy.properties from C:\Documents and Settings\Administrator\servoy.propertiesLoading - Done

and then I move to the “user” form manually (which is referenced in the openSolution method) there is no change on the screen and the contents of the log.txt file is:

> Starting Servoy from D:\Program Files\ServoyServoy R2 2.1rc2 build-306 on Windows 2000 using Java 1.4.2\_04Loading servoy.properties from C:\Documents and Settings\Administrator\servoy.propertiesLoading - Donejava.lang.NullPointerExceptionjava.lang.NullPointerException  
> at com.servoy.j2db.dataprocessing.aa.getValue(Unknown Source)  
> at com.servoy.j2db.dataui.DataField.setValue(Unknown Source)  
> at com.servoy.j2db.dataprocessing.an.a(Unknown Source)  
> at com.servoy.j2db.dataprocessing.an.setRecord(Unknown Source)  
> at com.servoy.j2db.dataprocessing.d.a(Unknown Source)  
> at com.servoy.j2db.dataui.m.getListCellRendererComponent(Unknown Source)  
> at javax.swing.JList.updateFixedCellSize(Unknown Source)  
> at javax.swing.JList.setCellRenderer(Unknown Source)  
> at com.servoy.j2db.FormPanel.setView(Unknown Source)  
> at com.servoy.j2db.FormManager.a(Unknown Source)  
> at com.servoy.j2db.FormManager.do(Unknown Source)  
> at com.servoy.j2db.develop.ab.do(Unknown Source)  
> at com.servoy.j2db.FormManager$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))

---

<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:** [August 10, 2004, 7:25am UTC](https://forum.servoy.com/t/form-not-displaying-at-runtime/2406/6 "2004-08-10T07:25:58Z")

</div>

Will be fixed in Servoy 2.1 rc3, thanks for reporting!
