Servoy 2.2 Beta 3

Release notes for Servoy betas

Servoy 2.2 Beta 3

Postby Jan Blok » Mon Jan 17, 2005 3:10 pm

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)
Last edited by Jan Blok on Tue Feb 01, 2005 7:04 pm, edited 1 time in total.
Jan Blok
Servoy
Jan Blok
 
Posts: 2684
Joined: Mon Jun 23, 2003 11:15 am
Location: Amsterdam

Postby ebrandt » Mon Jan 17, 2005 4:01 pm

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)
ebrandt
 
Posts: 590
Joined: Tue Mar 30, 2004 6:54 pm
Location: largo, fl

Postby Jan Blok » Mon Jan 17, 2005 5:07 pm

Connection refused, normally means you have a database definition to which servoy cannot connect. (has nothing todo with this beta)
Jan Blok
Servoy
Jan Blok
 
Posts: 2684
Joined: Mon Jun 23, 2003 11:15 am
Location: Amsterdam

application.getUserName(user_id)

Postby sabeenah » Wed Jan 19, 2005 9:44 am

The method application.getUserName(user_id) always returns the current logged in username.
Sabina Borlea
sabeenah
 
Posts: 44
Joined: Mon Apr 19, 2004 12:52 pm
Location: Timisoara, Romania

Postby Jan Blok » Wed Jan 19, 2005 10:48 am

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
Jan Blok
Servoy
Jan Blok
 
Posts: 2684
Joined: Mon Jun 23, 2003 11:15 am
Location: Amsterdam

security.getUserName()

Postby sabeenah » Wed Jan 19, 2005 11:05 am

My mistake. It was securit.getUserName(user_id). It worked fine before installing the beta version.
Sabina Borlea
sabeenah
 
Posts: 44
Joined: Mon Apr 19, 2004 12:52 pm
Location: Timisoara, Romania

Postby ahmad » Thu Jan 20, 2005 6:12 am

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
Ahmad
Programmer
Pilot simple software
Hong Kong
ahmad
 
Posts: 139
Joined: Wed Dec 24, 2003 12:01 pm
Location: Hong Kong

Postby pbakker » Thu Jan 20, 2005 10:20 am

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
pbakker
 
Posts: 2822
Joined: Wed Oct 01, 2003 8:12 pm
Location: Amsterdam, the Netherlands

Postby Jan Blok » Thu Jan 20, 2005 10:35 am

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
Jan Blok
Servoy
Jan Blok
 
Posts: 2684
Joined: Mon Jun 23, 2003 11:15 am
Location: Amsterdam

Postby ahmad » Thu Jan 20, 2005 11:06 am

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.
Ahmad
Programmer
Pilot simple software
Hong Kong
ahmad
 
Posts: 139
Joined: Wed Dec 24, 2003 12:01 pm
Location: Hong Kong

Security/Groups import problem

Postby rafig » Thu Jan 20, 2005 2:54 pm

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.
rafig
 
Posts: 708
Joined: Mon Dec 22, 2003 12:58 pm
Location: Watford, UK

Re: Security/Groups import problem

Postby Jan Blok » Thu Jan 20, 2005 3:32 pm

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)
Jan Blok
Servoy
Jan Blok
 
Posts: 2684
Joined: Mon Jun 23, 2003 11:15 am
Location: Amsterdam

Postby rafig » Thu Jan 20, 2005 3:54 pm

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.
rafig
 
Posts: 708
Joined: Mon Dec 22, 2003 12:58 pm
Location: Watford, UK

Postby Jan Blok » Thu Jan 20, 2005 4:18 pm

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
Jan Blok
Servoy
Jan Blok
 
Posts: 2684
Joined: Mon Jun 23, 2003 11:15 am
Location: Amsterdam

Postby jcompagner » Thu Jan 20, 2005 7:07 pm

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();
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8833
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Next

Return to Latest Releases

Who is online

Users browsing this forum: No registered users and 27 guests

cron