Servoy 2.2rc3

Release notes for Servoy betas

Postby grahamg » Fri Mar 18, 2005 2:02 pm

Servoy Developer
Version R2 2.2rc3-build 321
Java version 1.4.2_06-b03 (Windows XP)

Error message: application.closeFormDialog() triggers java.lang.NullPointerException (SaveCloseForm, line 3)

Have a global method - SaveCloseForm - with just two lines that is triggered by Save & Close button on number of popup dialogs called with application.showFormInDialog:

currentcontroller.saveData();
application.closeFormDialog();

During testing with rc2 the error message started showing. Tried rebuilding Form and problem disapeared for time then came back, deleted all records & reset PK's - again was fine for a few times then started failing again. Switched on Debugger (with no break points) and problem went away until debugger switched off.

Upgraded to rc3 but still have problem.

Does anyone have any clues ??

Thanks

Graham Greensall
Worxinfo Ltd
grahamg
 
Posts: 752
Joined: Fri Oct 03, 2003 3:15 pm
Location: Midlands UK

Postby jcompagner » Fri Mar 18, 2005 2:49 pm

Do you see anything in youre console? (A stacktrace)
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8833
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Postby grahamg » Fri Mar 18, 2005 3:08 pm

Hi Johan

Thanks for quick response - following is clip from .log.txt - hope this helps

Graham Greensall

----------------------

Loading servoy.properties from C:\Documents and Settings\Graham Greensall\servoy.propertiesLoading - DoneUsing RMI registry on port 1099org.mozilla.javascript.JavaScriptException: java.lang.NullPointerExceptionorg.mozilla.javascript.JavaScriptException: java.lang.NullPointerException
at org.mozilla.javascript.JavaScriptException.wrapException(JavaScriptException.java:71)
at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:323)
at org.mozilla.javascript.ScriptRuntime.call(ScriptRuntime.java:1242)
at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:1942)
at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:94)
at com.servoy.j2db.scripting.e.call(Unknown Source)
at com.servoy.j2db.develop.debugger.k.a(Unknown Source)
at com.servoy.j2db.develop.debugger.k.executeFunction(Unknown Source)
at com.servoy.j2db.FormPanel.a(Unknown Source)
at com.servoy.j2db.FormPanel.a(Unknown Source)
at com.servoy.j2db.FormPanel$b.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.k.setVisible(Unknown Source)
at com.servoy.j2db.k.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:289)
at org.mozilla.javascript.ScriptRuntime.call(ScriptRuntime.java:1242)
at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:1942)
at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:94)
at com.servoy.j2db.scripting.e.call(Unknown Source)
at com.servoy.j2db.develop.debugger.k.a(Unknown Source)
at com.servoy.j2db.develop.debugger.k.executeFunction(Unknown Source)
at com.servoy.j2db.FormPanel.a(Unknown Source)
at com.servoy.j2db.FormPanel.a(Unknown Source)
at com.servoy.j2db.FormPanel$b.a(Unknown Source)
at com.servoy.j2db.dataui.DataField.new(Unknown Source)
at com.servoy.j2db.dataui.DataField.access$1(Unknown Source)
at com.servoy.j2db.dataui.DataField$c.mouseReleased(Unknown Source)
at java.awt.AWTEventMulticaster.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 javax.swing.plaf.basic.BasicTableUI$MouseInputHandler.repostEvent(Unknown Source)
at javax.swing.plaf.basic.BasicTableUI$MouseInputHandler.mouseReleased(Unknown Source)
at java.awt.AWTEventMulticaster.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)
grahamg
 
Posts: 752
Joined: Fri Oct 03, 2003 3:15 pm
Location: Midlands UK

Postby grahamg » Fri Mar 18, 2005 4:02 pm

Error message: application.closeFormDialog() triggers java.lang.NullPointerException (SaveCloseForm, line 3)

Further testing after computer reboot.

If I add/delete/change text or dates on the Dialog Form it saves/closes fine. If I just look at form and make no changes - always get error message.

Hope this helps


Graham Greensall
grahamg
 
Posts: 752
Joined: Fri Oct 03, 2003 3:15 pm
Location: Midlands UK

Postby jcompagner » Fri Mar 18, 2005 4:18 pm

need to see the solution and some sample data.
The output doesn't show enough info
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8833
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Postby grahamg » Fri Mar 18, 2005 4:48 pm

Will email solution.

Thanks

Graham
grahamg
 
Posts: 752
Joined: Fri Oct 03, 2003 3:15 pm
Location: Midlands UK

Postby Morley » Sat Mar 19, 2005 3:06 am

Recently I've begun getting erratic error messages with zero content. Probing with the debugger I've discovered:
Code: Select all
globals.gint1 = 1;
generates
java.lang.NullPointerException
where globals.gint1 is an integer global.

This didn't make much sense, so I relaunched, I removed the filter from the form, tested for a transaction. I moved the instruction to a test method attached to a completely different form and set a string of setting of the global to different numbers.

Now, get this, when I changed the form being currently displayed, the test method worked, the global could be set. Redisplay the form and the global returns an error -- even though the test method is not attached to that form. The one common factor is the current display of this particular form.

This still doesn't make much sense. What characteristic of this form could account for causing this fault to the global integer field? I'm looking for recommendations on how to proceed from here.

Version R2 2.2rc3-build 321
Java version 1.4.2_06-b03 (Windows XP)
Morley Chalmers
7Office Inc.
User avatar
Morley
 
Posts: 891
Joined: Fri Apr 25, 2003 4:54 pm
Location: Toronto, Canada

Small detail

Postby Rene » Sat Mar 19, 2005 3:35 pm

Hello guys,

Just found a small irregular in the method editor.

When setting the "setSelectedIndex" property from the tree it places a space in front of the "foundset" property

Code: Select all
forms.Contact_Details. foundset.setSelectedIndex(index)

Code still works however.

When using CTRL + Space the code is correct

Code: Select all
forms.Contact_Details.foundset.setSelectedIndex(index)


Servoy Developer
Version R2 2.2rc3-build 321
Java version 1.5.0_01-b08 (Windows XP)

Keep up the good work, Rene
Rene
 
Posts: 121
Joined: Sat Dec 27, 2003 1:33 pm
Location: Venhorst, The Netherlands

Postby Rene » Mon Mar 21, 2005 10:48 am

Hello Guys,

Just updated to RC3 in a test environment.

When opening a client I get the following Java webstart error.

PS under RC2 in opens the client correctly.

Configuration info

Server
Servoy Developer
Version R2 2.2rc3-build 321
Java version 1.4.2_05-b04 (Windows 2003)

Client
Servoy Client
Java version 1.5.0_02 (Windows 2000)

Java webstart Error Message details

General
An error occurred while launching/running the application.

Title: Servoy Client
Vendor: Servoy
Category: Download Error

Could not verify signing in resource: (http://195.75.197.210:80/lib/j2db.jar, 1110888382000)

Launch file
<?xml version="1.0" encoding="utf-8"?>
<jnlp spec="1.0+" codebase="http://195.75.197.210:80">
<information>
<title>Servoy Client</title>
<vendor>Servoy</vendor>
<homepage href="http://www.servoy.com/"/>
<description>Database client</description>
<icon kind="shortcut" href="/lib/images/servoy_client_icon.gif" width="32" height="32"/>
<icon kind="splash" href="/lib/splashclient.gif" width="64" height="64"/>
</information>
<resources>
<j2se version="1.4+" />
<jar href="/lib/j2db.jar" main="true" version="1110888382000" download="eager"/>
<jar href="/lib/js.jar" part="script" version="1110832796000" download="eager"/>
<jar href="/lib/MRJAdapter.jar" part="mac_menu" version="1108396408000" download="eager"/>
<package name="org.mozilla.*" part="script" recursive="true"/>
<extension name="LAFS_and_BEANS" href="/servoy-client/unsigned.jnlp" version="1110816758000"/>
<extension name="agent.jar" href="/servoy-client/plugins/agent.jar.jnlp" version="1110816744000"/>
<extension name="dialog.jar" href="/servoy-client/plugins/dialog.jar.jnlp" version="1110816744000"/>
<extension name="excelxport.jar" href="/servoy-client/plugins/excelxport.jar.jnlp" version="1110816752000"/>
<extension name="file.jar" href="/servoy-client/plugins/file.jar.jnlp" version="1110816758000"/>
<extension name="http.jar" href="/servoy-client/plugins/http.jar.jnlp" version="1110816746000"/>
<extension name="it2be_cryptor.jar" href="/servoy-client/plugins/it2be_cryptor.jar.jnlp" version="1105349580000"/>
<extension name="it2be_splash.jar" href="/servoy-client/plugins/it2be_splash.jar.jnlp" version="1105349640000"/>
<extension name="it2be_tools.jar" href="/servoy-client/plugins/it2be_tools.jar.jnlp" version="1105348920000"/>
<extension name="mail.jar" href="/servoy-client/plugins/mail.jar.jnlp" version="1110816748000"/>
<extension name="pdf_forms.jar" href="/servoy-client/plugins/pdf_forms.jar.jnlp" version="1110816756000"/>
<extension name="pdf_output.jar" href="/servoy-client/plugins/pdf_output.jar.jnlp" version="1110816754000"/>
<extension name="runtime_builder.jar" href="/servoy-client/plugins/runtime_builder.jar.jnlp" version="1110816750000"/>
<extension name="scheduler.jar" href="/servoy-client/plugins/scheduler.jar.jnlp" version="1110816756000"/>
<extension name="tabxport.jar" href="/servoy-client/plugins/tabxport.jar.jnlp" version="1110816752000"/>
</resources>
<application-desc main-class="com.servoy.j2db.J2DBClient">
<argument>Helpdesk</argument>
</application-desc>
<security>
<all-permissions/>
</security>
</jnlp>


Exeption
JNLPException[category: Download Error : Exception: java.lang.SecurityException: SHA1 digest error for com/servoy/j2db/persistence/Relation.class : LaunchDesc: null ]
at com.sun.javaws.security.SigningInfo.checkSigning(Unknown Source)
at com.sun.javaws.cache.DownloadProtocol$RetrieveAction.actionDownload(Unknown Source)
at com.sun.javaws.cache.DownloadProtocol.doDownload(Unknown Source)
at com.sun.javaws.cache.DownloadProtocol.getResource(Unknown Source)
at com.sun.javaws.LaunchDownload.downloadJarFiles(Unknown Source)
at com.sun.javaws.LaunchDownload.downloadEagerorAll(Unknown Source)
at com.sun.javaws.Launcher.downloadResources(Unknown Source)
at com.sun.javaws.Launcher.handleApplicationDesc(Unknown Source)
at com.sun.javaws.Launcher.handleLaunchFile(Unknown Source)
at com.sun.javaws.Launcher.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

Wrapped exeption
java.lang.SecurityException: SHA1 digest error for com/servoy/j2db/persistence/Relation.class
at sun.security.util.ManifestEntryVerifier.verify(Unknown Source)
at java.util.jar.JarVerifier.processEntry(Unknown Source)
at java.util.jar.JarVerifier.update(Unknown Source)
at java.util.jar.JarVerifier$VerifierStream.read(Unknown Source)
at com.sun.javaws.security.SigningInfo.checkSigning(Unknown Source)
at com.sun.javaws.cache.DownloadProtocol$RetrieveAction.actionDownload(Unknown Source)
at com.sun.javaws.cache.DownloadProtocol.doDownload(Unknown Source)
at com.sun.javaws.cache.DownloadProtocol.getResource(Unknown Source)
at com.sun.javaws.LaunchDownload.downloadJarFiles(Unknown Source)
at com.sun.javaws.LaunchDownload.downloadEagerorAll(Unknown Source)
at com.sun.javaws.Launcher.downloadResources(Unknown Source)
at com.sun.javaws.Launcher.handleApplicationDesc(Unknown Source)
at com.sun.javaws.Launcher.handleLaunchFile(Unknown Source)
at com.sun.javaws.Launcher.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

Kind regards Rene
Rene
 
Posts: 121
Joined: Sat Dec 27, 2003 1:33 pm
Location: Venhorst, The Netherlands

Postby Jan Blok » Mon Mar 21, 2005 12:48 pm

Morley wrote:Recently I've begun getting erratic error messages with zero content. Probing with the debugger I've discovered...

Can you sent us the .log.txt as found in your Servoy install dir when this happens?
Jan Blok
Servoy
Jan Blok
 
Posts: 2684
Joined: Mon Jun 23, 2003 11:15 am
Location: Amsterdam

Re: Small detail

Postby Jan Blok » Mon Mar 21, 2005 12:49 pm

Rene wrote:...Just found a small irregular in the method editor...

Corrected in next release
Jan Blok
Servoy
Jan Blok
 
Posts: 2684
Joined: Mon Jun 23, 2003 11:15 am
Location: Amsterdam

Postby Jan Blok » Mon Mar 21, 2005 12:51 pm

Rene wrote:...When opening a client I get the following Java webstart error...

Are you sure you did update the server correctly? can you for example start a client from http://demo.servoy.com:8080/index.html ?
Jan Blok
Servoy
Jan Blok
 
Posts: 2684
Joined: Mon Jun 23, 2003 11:15 am
Location: Amsterdam

Postby jcompagner » Mon Mar 21, 2005 6:27 pm

are you absoluutly sure that you start the server where you connect to with the client with java 1.4 and not java 1.5??
Because that really looks like a client and server are both in 1.5. This is a know bug and i will try to fix it for the next release. Or disabled the fast loading feature for now.

You can see what youre server uses by going to the /servoy-admin/ page
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8833
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Postby Rene » Mon Mar 21, 2005 7:03 pm

Hello Jan,

Are you sure you did update the server correctly? can you for example start a client from http://demo.servoy.com:8080/index.html ?


I can download the file completely but I can`t get connection to the repository. (this has probably something to do with our proxyserver)

I can demonstrate it tomorrow to one of you on the servoy seminar.

Rene
Rene
 
Posts: 121
Joined: Sat Dec 27, 2003 1:33 pm
Location: Venhorst, The Netherlands

Postby Rene » Mon Mar 21, 2005 7:09 pm

Hello Johan,

are you absoluutly sure that you start the server where you connect to with the client with java 1.4 and not java 1.5??
Because that really looks like a client and server are both in 1.5. This is a know bug and i will try to fix it for the next release. Or disabled the fast loading feature for now.

You can see what youre server uses by going to the /servoy-admin/ page



these are the settings you requested for.

Server Information
Servoy version R2 2.2rc2-build 320, repository version 25
Uptime: 28 seconds

User Information
Logged in as: rene

JDK Information
java.vm.name=Java HotSpot(TM) Client VM
java.vm.version=1.4.2_05-b04
java.vm.info=mixed mode
java.vm.vendor=Sun Microsystems Inc.

Operating System Information
os.name=Windows 2003
os.version=5.2
os.arch=x86


I can demonstrate it tomorrow to one of you on the servoy seminar.

Rene
Rene
 
Posts: 121
Joined: Sat Dec 27, 2003 1:33 pm
Location: Venhorst, The Netherlands

PreviousNext

Return to Latest Releases

Who is online

Users browsing this forum: No registered users and 84 guests