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)
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[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.
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))