Page 1 of 2

Servoy 2.2 Beta 3

PostPosted: Mon Jan 17, 2005 3:10 pm
by Jan Blok
We announce the immediate availability of Servoy 2.2b3

NOTE: this is PRE-RELEASE SOFTWARE, use with caution and make BACKUPS before you start.

This version is available through auto update (if you have beta update notify enabled, meaning having the line 'wantsBetaCodeNotifies=true' in your servoy.properties file)

Previous beta build info

Enhances:
[enh]-default/system look and feel is now an option in preferences dialog
[enh]-version update check dialog now has option to enable beta notifies
[enh]-allow more than 5 relation key items in a relation
[enh]-possibility to copy forms from modules to main solution
[enh]-application.getCurrentLookAndFeelName()
[enh]-databaseManager.getServerNames()
[enh]-application.getValueListNames()
[enh]-databaseManager.hasRecordChanges(foundset,3) or databaseManager.hasRecordChanges(record)
[enh]-option to include users in solution export and option to import those on the server
[enh]-creation of database server possible in admin page

[fix]-old solution does not open when solutionproperties are never viewed/used
[fix]-creating a new solution sometimes locks the UI
[fix]-make printable working for portal fields
[fix]-form methods that call globals don't have the right method trigger names: http://forum.servoy.com/viewtopic.php?t=3673

For plugin developers:
[enh]-made it possible to use a form component outside Servoy (in plugin dialog for example, see IFormManager.getFormPanel )
[enh]-added 2 new plugin methods getMessage(string), getMessage(String,object[]) for i18n messages in plugins
[enh]-IToolbar interface has new method createToolbar(String name, String displayName, int row)

PostPosted: Mon Jan 17, 2005 4:01 pm
by ebrandt
I am having problems getting the updates, I added the code to the properties file . I decided to look at my log, it seems the there is maybe a problem reading the properties file.

I am not sure where the problem is, here is the log text.

Thanks,
Erich

Starting Servoy from C:\Program Files\ServoyServoy R2 2.1.2 build-315 on Windows XP using Java 1.4.2_04Looking for servoy.properties on C:\Documents and Settings\ebrandt\servoy.propertiesLoading servoy.properties from C:\Program Files\Servoy\servoy.propertiesLoading - Donejava.net.ConnectException: Connection refused: connectjava.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(Unknown Source)
at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at sun.net.NetworkClient.doConnect(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.<init>(Unknown Source)
at sun.net.www.http.HttpClient.<init>(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at java.net.URL.openStream(Unknown Source)
at com.servoy.j2db.develop.c.g.a(Unknown Source)
at com.servoy.j2db.develop.c.g$2.run(Unknown Source)
at com.servoy.j2db.util.aq.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Using RMI registry on port 1099java.net.ConnectException: Connection refused: connectjava.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(Unknown Source)
at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at sun.net.NetworkClient.doConnect(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.<init>(Unknown Source)
at sun.net.www.http.HttpClient.<init>(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at java.net.URL.openStream(Unknown Source)
at com.servoy.j2db.develop.c.g.a(Unknown Source)
at com.servoy.j2db.develop.c.g$2.run(Unknown Source)
at com.servoy.j2db.util.aq.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
java.net.ConnectException: Connection refused: connectjava.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(Unknown Source)
at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at sun.net.NetworkClient.doConnect(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.<init>(Unknown Source)
at sun.net.www.http.HttpClient.<init>(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at java.net.URL.openStream(Unknown Source)
at com.servoy.j2db.develop.c.a3$2.run(Unknown Source)
at com.servoy.j2db.util.aq.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
java.net.ConnectException: Connection refused: connectjava.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(Unknown Source)
at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at sun.net.NetworkClient.doConnect(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.<init>(Unknown Source)
at sun.net.www.http.HttpClient.<init>(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at java.net.URL.openStream(Unknown Source)
at com.servoy.j2db.develop.c.a3$2.run(Unknown Source)
at com.servoy.j2db.util.aq.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
java.net.ConnectException: Connection refused: connectjava.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(Unknown Source)
at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at sun.net.NetworkClient.doConnect(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.<init>(Unknown Source)
at sun.net.www.http.HttpClient.<init>(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at java.net.URL.openStream(Unknown Source)
at com.servoy.j2db.develop.c.g.a(Unknown Source)
at com.servoy.j2db.develop.c.g$2.run(Unknown Source)
at com.servoy.j2db.util.aq.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

PostPosted: Mon Jan 17, 2005 5:07 pm
by Jan Blok
Connection refused, normally means you have a database definition to which servoy cannot connect. (has nothing todo with this beta)

application.getUserName(user_id)

PostPosted: Wed Jan 19, 2005 9:44 am
by sabeenah
The method application.getUserName(user_id) always returns the current logged in username.

PostPosted: Wed Jan 19, 2005 10:48 am
by Jan Blok
there is no argument in the application.getUserName() which returns the current username, JavaScript allows you to pass one but thats ignored.
Use security.getUserName(...) to lookup other users

security.getUserName()

PostPosted: Wed Jan 19, 2005 11:05 am
by sabeenah
My mistake. It was securit.getUserName(user_id). It worked fine before installing the beta version.

PostPosted: Thu Jan 20, 2005 6:12 am
by ahmad
My pc at home upgraded to Servoy 2.2b3 successfully.

But at work it's still not upgraded.

I have the "wantsBetaCodeNotifies=true" in servoy.properties but the version is still R2 2.2b1-build 316

Due to this reason I could not import the latest work I did at home to work PC and thrown up with the following error. I don't know what to do this morning

Code: Select all
com.servoy.j2db.persistence.RepositoryException: Import with XML version 9 is not supported. Upgrade to at least Servoy R2 2.2b3-build 318 to import this solution.


Thanks for your help

PostPosted: Thu Jan 20, 2005 10:20 am
by pbakker
Hi, last night I was working in Servoy Developer, latest Beta. I opened the Preferences window and did a reset all dialog sizes.

Immediatly, the L&F changed from Windows L&F to Standard L&F :shock:

I tried setting it back to Windows L&F or any other L&F for that matters, restarting developer 10 or more times, but it keeps starting with the standard L&F, with no means of changing it to anything else.. :x

I started a client and the clients starts nromally in the Windows L&F...

I'm lost.... help please...

Paul

PostPosted: Thu Jan 20, 2005 10:35 am
by Jan Blok
ahmad wrote:...I have the "wantsBetaCodeNotifies=true" in servoy.properties...


make sure the property is not twice in the servoy.properties and is has no trailing spaces...

In/after Servoy 2.2b4 you never will have to edit the properties for this property again, its now an option in the check for update dialog

PostPosted: Thu Jan 20, 2005 11:06 am
by ahmad
Jan Blok wrote:make sure the property is not twice in the servoy.properties and is has no trailing spaces...


It's appeared only once and no trailing space.. I have attached the screen grab

In/after Servoy 2.2b4 you never will have to edit the properties for this property again, its now an option in the check for update dialog


That's so gr888

Thanks

Note: I find no button to attach a file with this when posting a reply.. I think that option is really needed.

Security/Groups import problem

PostPosted: Thu Jan 20, 2005 2:54 pm
by rafig
I have just had to move Servoy from one server to another.
I updated Servoy to the latest version (2.2b3) on the original server and then exported the latest release of my solution, including users/groups.
I then installed Servoy freshly on the new server, updating it to the same latest version, moved the data (.db) file over and then imported the solution I created above. I chose the option to import/update the users/groups, but it seems to have ignored two groups with their associated user names from the original solution. I had the usual Administrators group, a Temps group, and also groups named 'one', 'two', 'three' etc. up to 'ten'. All groups except 'one' & 'two' were imported. The only thing about those groups that I can think of that is different to the others is that I had not applied any restrictions to them (in other words they have full access), whereas all the other groups had some kind of form or table restriction.
Please could you look into this.
Thanks,
Rafi.

Re: Security/Groups import problem

PostPosted: Thu Jan 20, 2005 3:32 pm
by Jan Blok
rafig wrote:...not applied any restrictions to them...

Yes this can be so, if nothing with group is done regarding a solution it is not xported (te prevent always taking all groups back and forth)

PostPosted: Thu Jan 20, 2005 3:54 pm
by rafig
Yes this can be so, if nothing with group is done regarding a solution it is not xported (te prevent always taking all groups back and forth)


I see. But the problem is, if you have users that are only defined in those groups, which maybe at some point in the future you do want to apply restrictions to, they won't get imported and methods that might refer to those groups or users will fail. could an extra option be added that asks if you want ALL (even if they have no current restrictions) users/groups exported/imported.
Other developers might not notice that this 'feature' has occured when they import a solution and things will go wrong.
Thanks.

PostPosted: Thu Jan 20, 2005 4:18 pm
by Jan Blok
pbakker wrote:...the L&F changed from Windows L&F to Standard L&F...

Will be corrected in Servoy 2.2 beta4, thanks for reporting

PostPosted: Thu Jan 20, 2005 7:07 pm
by jcompagner
It was securit.getUserName(user_id). It worked fine before installing the beta version.


what is user_id in youre place?
What do you want? Get the current logged in users?
Then you should do this:

security.getUserName();