Page 2 of 2

PostPosted: Fri Jul 06, 2007 3:02 pm
by agiletortoise
Ok, I finally I figured out what's specific to the showFormInDialog calls I'm having problems with. If you make a dialog plugin call before the showFormInDialog call, you get the blank dialog. I made a test solution and will submit to support today...but try this:

Code: Select all
if( plugins.dialogs.showQuestionDialog( "confirm?",  "Confirm?",  "Yes",  "No" ) != "Yes" )
   return;
   
application.showFormInDialog( forms.employees,-1,-1,150,150,"Dialog",true,false,'dialog',true);


greg.

PostPosted: Fri Jul 06, 2007 3:30 pm
by agiletortoise
To followup on the showFormInDialog bug, it appears that this only happens after you've gone into design mode and back out...although, it does happen in the client launched against the Developer app in this instance.

greg.

PostPosted: Tue Jul 10, 2007 1:08 pm
by rgansevles
agiletortoise wrote:Ok, I finally I figured out what's specific to the showFormInDialog calls I'm having problems with. If you make a dialog plugin call before the showFormInDialog call, you get the blank dialog. I made a test solution and will submit to support today...but try this:

Code: Select all
if( plugins.dialogs.showQuestionDialog( "confirm?",  "Confirm?",  "Yes",  "No" ) != "Yes" )
   return;
   
application.showFormInDialog( forms.employees,-1,-1,150,150,"Dialog",true,false,'dialog',true);


greg.


Greg, thanks for the nice small example.
This will be fixed in release 3.5RC5.

Rob

PostPosted: Wed Jul 11, 2007 9:13 pm
by ryanparrish
We have been playing with 3.5rc4 for about a week and today all of a sudden the smart client can't find the repository. After the smart client launches it never pops up the dialog box asking what solution to open, and if we try to open the solution by going through the menu the list is blank.

This is on a linux server where we run developer via X11 and developer works just fine, just the smart client stopped working. The only messages we have in the log are about column names being being too long, but we have had those messages since 2.1 or so.

Any pointers on how to get around this? Is this a know bug?

PostPosted: Wed Jul 11, 2007 9:15 pm
by ROCLASI
Any changes in the firewall settings? Sounds to me it's a port thing..

PostPosted: Wed Jul 11, 2007 9:48 pm
by Jan Aleman
ryanparrish wrote:We have been playing with 3.5rc4 for about a week and today all of a sudden the smart client can't find the repository. After the smart client launches it never pops up the dialog box asking what solution to open, and if we try to open the solution by going through the menu the list is blank.

This is on a linux server where we run developer via X11 and developer works just fine, just the smart client stopped working. The only messages we have in the log are about column names being being too long, but we have had those messages since 2.1 or so.

Any pointers on how to get around this? Is this a know bug?


Definetely not 'known'. Our own site, front and backoffice run on this version (on FreeBSD sort of similar to Linux in some ways) and it runs without problems.

Checklist:
- Delete webstart cache
- Check firewalls blocking 1099
- turn debugging on on server and client and read logfiles: they should list what is going on
- Upgrade to windows
ok ok the last one was just a joke!

Assuming you rmi on the default 1099 port, what do you get if you do this:

telnet crm.servoy.com 1099

[replace crm.servoy.com with your hostname/IP] It should connect if it doesn't either your IP is not accessible, it might be firewalled or servoy is not listening on 1099 (config?)

PostPosted: Thu Jul 12, 2007 3:57 pm
by ryanparrish
"Delete webstart cache"
Same result.

"Check firewalls blocking 1099"
No firewall, it is our internal network development machine. I also verified that I can access connect to port 1099 from my workstation.

"turn debugging on on server and client and read logfiles: they should list what is going on"
I'm not familiar with how to turn on the debugging, would love to know. I see several sections in servoy.properties that mention debug - but don't know what settings to change.

"Upgrade to windows"
Replace one problem with hundreds :wink:

PostPosted: Thu Jul 12, 2007 7:57 pm
by ryanparrish
I just tried reinstalling r4 and still get the same result :(
FWIW, if I stop the servoy_server portion and just run developer and try to connect with the smart client to the server that developer starts I get the same result - the client does not see the solution.

Could something have happened to my repository that messes up the smart client and not developer? It's on a MySQL db by the way.

PostPosted: Fri Jul 13, 2007 9:32 am
by hpmxxx
Check also the solution type under "Solution Settings". Only solutions of type "Normal" are showed in the client dialog.

PostPosted: Fri Jul 13, 2007 10:50 am
by Harry Catharell
Hi Ryan,

If you haven't already done so then it may be worth checking that port 1099 is being used by the server.

If you have mistakenly had both Server and developer launched at the same time then one or the other may have had a conflict in trying to set rmi on port 1099 and if it cannot use that port then Servoy will use the next port number which is generally 1100 !

Hope this helps
Cheers
Harry

PostPosted: Fri Jul 13, 2007 10:59 am
by Jan Aleman
ryanparrish wrote:Could something have happened to my repository that messes up the smart client and not developer? It's on a MySQL db by the way.


The repository has nothing to do with deployment of a smart client.

PostPosted: Fri Jul 13, 2007 12:51 pm
by Jan Aleman
What do you get if you type:

telnet serverip 1099

in a shell / command prompt ?

PostPosted: Fri Jul 13, 2007 1:57 pm
by ryanparrish
hpmxxx wrote:Check also the solution type under "Solution Settings". Only solutions of type "Normal" are showed in the client dialog.

Yes the solution is of type "Normal", just checked.

jaleman wrote:What do you get if you type:

telnet serverip 1099

in a shell / command prompt ?


Code: Select all
Ryan-Parrishs-Computer:~ rparrish$ telnet devserver 1099
Trying 10.2.5.10...
Connected to devserver.
Escape character is '^]'.

So, yeah - it is connecting. (BTW, netcat connects also and is much better than using telnet to test ports).

jaleman wrote:The repository has nothing to do with deployment of a smart client.

I understand that it it is not responsible for the deployment portion of the client, but the once the client launches I would have to think that the repo gets queried for available solutions to present the list box to me - or is it getting that list from somewhere else that I am not aware of and thats my issue?

PostPosted: Fri Jul 13, 2007 2:19 pm
by jcompagner
are we talking about the same network here?
So is the linux client and the server on the same network?

If not is on the client not suddenly the 2 way socket disabled?

Don't you get any other messages? like Client couldn't register?

johan

PostPosted: Fri Jul 13, 2007 3:19 pm
by ryanparrish
Ah, just got it working again.

Before I just deleted the ~/.servoy folder, and the webstart cache and it didn't work. But this time I delete those two folders plus the java 'temporary internet files' and now it is loading the solution again. Weird that it happened on all the machines around me at the same time as they are not running this version or from this server but it seems to work work now. *shrug*

Thanks for the helpful suggestions! :D Now back to updating my solution to 3.5