Servoy 6.1.3

Servoy announcements

Re: Servoy 6.1.3 - errors in Servoy Developer

Postby jcompagner » Tue Dec 18, 2012 4:22 pm

rossent wrote:
It appears that the Servoy Developer is "leaking" memory or handles and we need to restart the developer multiple times per day. We have not isolated this issue to a particular part of the Servoy Developer, but suspect that it has to do with searching for method or form references.


today it noticed this commit for dltk: http://git.eclipse.org/c/dltk/org.eclip ... be5be1d1b2

that seems to fix a image leak problem related to the code completion popup..
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8829
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: Servoy 6.1.3

Postby jcompagner » Tue Dec 18, 2012 4:28 pm

rossent wrote:
jcompagner wrote:why are you not using the tooling that eclipse provides through plugins??


We do have many versioned files which are outside of the Servoy workspace. Another reason for ditching the svn Eclipse plugins quite some time ago were the multitude of bugs which both the Subversive and Subclipse had (and still have) - they do slow down the IDE quite a bit and fall flat whenever there are any significant merge conflicts, file moves/renames, etc. I have not tried the newer versions due to the bad experience which we had in the past. Which one works better for Servoy - Subversive or Subclipse?

http://stackoverflow.com/questions/1854 ... ould-i-use
http://stackoverflow.com/questions/6132 ... subversive


We at servoy work with quite a bit large code base (the whole developer and all the clients) inside eclipse with the latest subclipse (1.8 i believe) and it is working fine and i don't notice anything that is slow
The only thing that is faster in some area's is GIT but that just works quite different.
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8829
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: Servoy 6.1.3 - slow build

Postby jcompagner » Wed Dec 19, 2012 1:49 pm

rossent wrote:The build process today was quite slow for me. I had to switch the active solution several times and after that the build process became extremely slow. Attached is a file with a few stack dumps during that process.


i made a performance improvement for this
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8829
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: Servoy 6.1.3

Postby sramsey1357536325 » Mon Jan 07, 2013 7:31 am

The issue of try catch(e) does not appear to be corrected in 6.1.3. I still get no joy when trying to use getMessage().
err.getMessage = "Error during evaluation:ReferenceError: \"err\" is not defined." is the result.
I have a form that will not load and I'm trying to find out why!
It would be nice if I could have the correct syntax documented somewhere or an example that works.
Thanks
sramsey1357536325
 
Posts: 3
Joined: Mon Jan 07, 2013 7:25 am

Re: Servoy 6.1.3

Postby jcompagner » Mon Jan 07, 2013 10:51 am

what is your code?
because if you catch(e) then "err" is not defined that is correct.
I don't know if you really can catch that exception if a form doesn't load, because that is not really a javascript error that is more likely a java/servoy error happening somewhere.
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8829
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: Servoy 6.1.3

Postby rossent » Mon Jan 07, 2013 12:15 pm

I think the problem is in the Debugger - if you put a break-point inside the CATCH block and try to view/evaluate any of the error properties you get the above error in the Interactive Console
Rossen Totev
Argos Software
rossent
 
Posts: 288
Joined: Wed Dec 31, 2008 2:03 pm

Re: Servoy 6.1.3

Postby jcompagner » Mon Jan 07, 2013 12:49 pm

yes that is a limitation of the Rhino debugger deep down.
the catch scope is a very special scope of its own (that normally doesn't happen in js only functions are scopes) so the debugger doesn't get an event that a catch scope is created so it can't access the "e" of that scope.
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8829
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: Servoy 6.1.3

Postby sramsey1357536325 » Tue Jan 08, 2013 12:23 am

Hi Thanks for the replies.
Ok it seems I cant use Try/Catch for this particular error where the "Form cannot be shown". Still not sure of the new syntax for the Try/Catch but anyway my main problem is the form not being showable. Here is the error from the App server log, can anyone see anything that may be causing my problem.
Thanks in Advance.

2013-01-08 09:17 AWT-EventQueue-0 ERROR com.servoy.j2db.util.Debug Throwable 39876F0E-8AEF-4876-B7C6-33AFF9D53F1D mbs
org.mozilla.javascript.WrappedException: Wrapped com.servoy.j2db.ApplicationException: This form cannot be shown (C:\mbs_servoy61\mod_dialog\globals.js#135)
at org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1815)
at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:180)
at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:311)
at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1774)
at script.showDialog(C:\mbs_servoy61\mod_dialog\globals.js:135)
at script(C:\mbs_servoy61\mod_dialog\globals.js:352)
at script.open(C:\mbs_servoy61\invoicing\forms\dvasend.js:25)
at script.btnEclipse(C:\mbs_servoy61\invoicing\forms\invoiceDetailII.js:3105)
at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:837)
at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:158)
at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:406)
at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3192)
at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:156)
at com.servoy.j2db.scripting.ScriptEngine.executeFunction(ScriptEngine.java:574)
at com.servoy.j2db.debug.RemoteDebugScriptEngine.executeFunction(RemoteDebugScriptEngine.java:398)
at com.servoy.j2db.FormController.executeFunction(FormController.java:4930)
at com.servoy.j2db.FormController.executeFunction(FormController.java:4811)
at com.servoy.j2db.FormController.executeFunction(FormController.java:4677)
at com.servoy.j2db.FormController$ScriptExecuter.executeFunction(FormController.java:4524)
at com.servoy.j2db.ui.BaseEventExecutor.fireEventCommand(BaseEventExecutor.java:271)
at com.servoy.j2db.ui.BaseEventExecutor.fireActionCommand(BaseEventExecutor.java:217)
at com.servoy.j2db.ui.BaseEventExecutor.fireActionCommand(BaseEventExecutor.java:212)
at com.servoy.j2db.smart.dataui.AbstractScriptButton$2.actionPerformed(AbstractScriptButton.java:656)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.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 javax.swing.JComponent.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.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$200(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(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)
Caused by: com.servoy.j2db.ApplicationException: This form cannot be shown
at com.servoy.j2db.scripting.RuntimeWindow.showObject(RuntimeWindow.java:249)
at com.servoy.j2db.scripting.JSWindow.js_show(JSWindow.java:149)
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.MemberBox.invoke(MemberBox.java:158)
... 53 more
sramsey1357536325
 
Posts: 3
Joined: Mon Jan 07, 2013 7:25 am

Re: Servoy 6.1.3

Postby jcompagner » Wed Jan 09, 2013 9:24 am

you are trying to show a form that is "abstract" so can't be instantiated. This is because that form has no parts..
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8829
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: Servoy 6.1.3

Postby sramsey1357536325 » Thu Jan 10, 2013 12:39 am

Hi. Thanks For reply but I dont understand. I'm a relative newbie so I guess I'm missing a lot but what is abstract about the form below/Attached?
You do not have the required permissions to view the files attached to this post.
sramsey1357536325
 
Posts: 3
Joined: Mon Jan 07, 2013 7:25 am

Re: Servoy 6.1.3

Postby jcompagner » Thu Jan 10, 2013 9:10 am

i don't see a body part at first sight
Look at the parts tab and see if you have the body part selected.
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8829
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: Servoy 6.1.3

Postby sramsey1357536325 » Fri Jan 11, 2013 12:44 am

Thankyou, You are a champion. :D I added a new form, following same procedure and the result is, as you stated. But should this be reported as a bug, as it used to default to a "Body" part, did it not?
I checked the "extends from", form that we use, and it does not have a "Body" part because its the functions that we want to extend.
You do not have the required permissions to view the files attached to this post.
sramsey1357536325
 
Posts: 3
Joined: Mon Jan 07, 2013 7:25 am

Previous

Return to Announcements

Who is online

Users browsing this forum: No registered users and 8 guests

cron