My solution has started having a problem in which it runs the “OnOpen” script twice, but only the first time you launch the smart client after opening Servoy Developer; if you close the smart client and then open it again without shutting down developer it only runs the open script once, like you would expect. Has anyone seen this? I sincerely can’t find anywhere the function is called except OnOpen for the solution, and I would be more suspect if it did it all the time, but it only does it on the initial launch.
Only in developer?
Did you try setting a breakpoint in this method, so you can take a look at the methodstack as it breaks the first and second time.
Maybe you can get some information out of there.
Yes, I did put a break point, and it looks like it simply starts running the onOpen method again; nothing calls it. I did a search to see if I inadvertently had another function or process reference this by accident and there is nothing. I’m still looking. Thanks for the idea!
And, no, I haven’t put it on an app server as yet, I probably will get to that today.
jmcneely:
Yes, I did put a break point, and it looks like it simply starts running the onOpen method again; nothing calls it. I did a search to see if I inadvertently had another function or process reference this by accident and there is nothing. I’m still looking. Thanks for the idea!And, no, I haven’t put it on an app server as yet, I probably will get to that today.
What Servoy version is this ? Did you try in latest version ? Do you have a small sample where this can be reproduced ?
servoy 5.2.1 - build 999. You want me to attach my entire solution? It won’t work if you can’t connect to my databases. The code itself seems to be running fine, it just runs twice under these certain circumstances.
I’m on a Mac, 10.6.4; java web start v 13.2.0, java runtime engine v 1.6.0_20
jmcneely:
servoy 5.2.1 - build 999. You want me to attach my entire solution? It won’t work if you can’t connect to my databases. The code itself seems to be running fine, it just runs twice under these certain circumstances.I’m on a Mac, 10.6.4; java web start v 13.2.0, java runtime engine v 1.6.0_20
Can you reproduce this in a small solution ? Do you do some solution closing/logout at startup ?
lvostinar:
Can you reproduce this in a small solution ? Do you do some solution closing/logout at startup ?
Actually, I tried opening a new simpler solution that has the same navigation module and such, and it opens fine. So no, I cannot yet reproduce this in a small solution. I do no solution closing or logout at startup. Thanks!
Well, guess what? I finally got my app server upgraded from 5.4.1 to 5.2, and uploaded the solution. It wouldn’t launch at all at first because of java jar signature voodoo problems. Skipping … skipping … skipping … now it will launch, but it pops up an auth dialog. There is no auth programmed into the solution. If I hit cancel it goes into a screen with the servoy symbol spinning endlessly. However, if I try to auth, no user/password works. GREAT. I will have to put in the auth and login modules? Users are authing a different way into this, and if I make them log in again every time they use this they will all probably torture me and kill me. I can feel the hostility afoot anyway with the amount of time it is taking me to deploy this.
If I can ever actually get the solution to actually LAUNCH on the app server I’ll let you know if it works.
Sound slike you are running into Enhanced Security mode, introduced in Servoy 5.2.
Have you read the update notes for 5.2? See http://wiki.servoy.com/display/DOCS/Upgrade+Notes and then especially the paragraph on Enhanced Security.
Paul
Here is the story. If you go ahead and put in an auth and login module as works with the new authentication stuff in Servoy 5.2, forcing some kind of login, it always works right and doesn’t run the OnOpen script twice from developer. However, developer allows you to open the solution without authentication if you don’t have these modules installed, but it forces it in some circumstances to run the OnOpen script twice. However, in the app server it forces a login even though you don’t have it programmed, but it does solve the problem of OnOpen running twice.
Yes I read it some time back. I’ve discovered exactly what they mean by this:
"The new mechanism, labeled Enhanced Security, is enabled by default, but will break existing implementations that fall into either of the following two scenarios:
Smart Clients in combination with solutions that do not require login"
You can turn enhanced security off in the app server web console. Be careful if you migrate to 5.2 and you aren’t using enhanced security, it really does break stuff.