Error Launching Developer 5.2.0 on Ubuntu 10.04

I did a clean install of Servoy 5.2.0 on Ubuntu 10.04. I didn’t get any errors during the installation, but as soon as I launch the developer, I got an error message: An internal error during “HookupToServoyModel”. Could not initialize class java.awt.Toolkit.

I am using Sun Java 1.6 update 20. OpenJDK is not installed. Please advise.

Bruce

Hi alspaughb

I had problems with Ubuntu 10.04 (64 bits) and Servoy 5.1 developer. I fixed them changing java version from 1.6 to 1.5 - the java version must be 32 bits - eclipse and java 64 are not friends :wink:

Best regards. Roberto.

Hi Roberto,

Right after I posted, I discovered I still had a few vestiges of OpenJDK remaining on my computer even though I removed it. I removed the last pieces and the internal error that occurs when I launch Servoy developer went away.

Now I am left with the same problem I had before with Servoy 5.1: When I launch the web client from the developer it works OK. However, when I launch the smart client from the developer, I get an empty window where the solution should be and then the developer and the solution exit with no error message. The only way I could make the error go away was to run the developer as root which I should not have to do.

Do you think switching to Sun Java 1.5 would correct that problem too? I would like to use Sun Java 1.6 because I also develop Java software in Eclipse.

Bruce

Hi alspaughb

There’re some threads in this forum about blank screens in smart clients.

http://forum.servoy.com/viewtopic.php?f=6&t=13140
http://forum.servoy.com/viewtopic.php?f=6&p=75702

Anyway you can use both, Java 1.5 with Servoy and Java 1.6 with eclipse at the same time.

Best regard. Roberto.

those threads are mac only.

There must be something else going on here because you say if you run root it will work fine.
That means that there is some access restriction, what kind of blank screen do you get, completely blank? or do you see the toolbar and menu, but just the solution will not load?
Do you get any errors in the log that you can show us?

I tried again launching the developer by double-clicking the /usr/local/servoy/developer/servoy icon. When I clicked the toolbar button in developer to start the smart client, I got a blank window with “Servoy Client” in the title bar in the center of the screen above the developer. The contents of the window were completely blank–no toolbar just the background color. Nothing happened for about 10 seconds, and then both the empty “Servoy Client” window and the developer IDE suddenly quit. What is the name of the log file I should look in?

I suspect a permission problem that could have something to do with the way I had to install Servoy on Ubuntu 10.04. Evidently, the recommended location for Servoy is in the /usr/local/servoy directory because some of the paths are hard-coded. However as a normal user, I don’t have permission to do anything in those directories. So I first have to bring up a command line, use sudo to create the /usr/local/servoy directory, and then assign ownership and full permissions to the normal user. Then I can launch the IzPack installer as a normal user and let it install Servoy into that directory.

Is there a better way to install Servoy on Ubuntu 10.04?

Bruce

and if you install it in your user/home dir?

I tried uninstalling Servoy 5.2.0 and then reinstalled it in /home/alspaughb/servoy as a normal user. The same thing still happens: the web client starts OK, but when I click the toolbar button to launch the smart client, I get a blank Servoy Client window. No menubar, no toolbar. The first time I launched it, the Developer and the client window exited after a few seconds. The second time I launched, it would freeze, so I managed to get the attached screenshot. The third time I launched Developer from the command line instead of double-clicking. When I launched the smart client again for the third time, it started to draw the toolbar and menubar but then smart client and the developer immediately exited. However, I got a message on the command line saying that the attached error log file had been created. I had to change the extension from .log to .txt because the forum software would reject an attachment with a .log extension. Perhaps the log file would help?

Bruce

hs_err_pid2813.txt (72.7 KB)

Could the problem be that some of the look and feels are not supported on Ubuntu? I tried launching the developer as root and managed to run the smart client long enough to switch the default look and feel from Kunststoff to Metal. After that, I was able to launch the smart client without having to run developer as root. I thought Incors ended development of the Kunststoff Look and Feel years ago. Many of the other look and feel options would crash the smart client as soon as I selected them in the preference dialog, or when I tried to relaunch the smart client. Also, the same look and feel would be listed multiple times in the dropdown menu to set the look and feel preference.

Is there any way to specify that the smart client should detect and use the platform look and feel?

Bruce

if you dont have the property “selectedlnf” set in your servoy.properties file then we just fallback on what the UIMananger does tell us what the system lnf is:

String defaultLAFClassName = UIManager.getSystemLookAndFeelClassName();

For me i always get the windows lnf for new installs

How much testing does Servoy do in Ubuntu prior to release? Given the permission problems I had to work around just to install into the default directory, and the inability to launch the example solutions in the smart client without running the developer as root makes me think it’s not very much.

Bruce

we have at least 2 persons that develop servoy and test servoy using linux
I know for 1 that it isnt using ubuntu, the other i dont know, there are so many distributions.

Which Linux distribution does Servoy do most of its testing on? I might consider switching to that distribution depending on what it is.

Bruce

Bruce,

I am having trouble with developer and java 1.6 on linux sometimes, try running Servoy developer with sun java 1.5

Rob