New Install on Ubuntu - No Start?

Hi Folks

Just playing with a Servoy install on Ubuntu and find neither the Web nor Smart clients will start from developer.

I can start the sample solutions from the web client using the localhost:8080/servoy-webclient/solutions… etc. so the server is working and available, Db’s are working and available, but smart and web clients wont start from developer.

Have I missed something obvious in Eclipse or Servoy install’s?

This is V4.1.2 and Sybase Db, running Ubuntu in a VirtualBox VM.

What java version do you use?

Joas:
What java version do you use?

I’ve SE 1.6.0.13 Runtime Joas.

I suspect it’s a port issue but all ports should be open (I know 8080 is of course).

Have you checked the log files for errors?

servoy/application_server/servoy_log.txt
workspace/.metadata/.log

Joas:
Have you checked the log files for errors?

servoy/application_server/servoy_log.txt
workspace/.metadata/.log

Here is the .metadata log Joas:

... 5 more
!SESSION 2009-05-26 12:35:38.433 -----------------------------------------------
eclipse.buildId=M20071023-1652
java.version=1.6.0_13
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US
Command-line arguments:  -os linux -ws gtk -arch x86

!ENTRY com.servoy.eclipse.core 1 0 2009-05-26 12:35:53.973
!MESSAGE Time taken to read in the solution servoy_sample_crm: 1490

!ENTRY com.servoy.eclipse.core 1 0 2009-05-26 12:35:54.533
!MESSAGE Time taken to read in the solution svyCore: 114

!ENTRY org.eclipse.ui.workbench 2 0 2009-05-26 12:35:57.923
!MESSAGE A handler conflict occurred.  This may disable some commands.
!SUBENTRY 1 org.eclipse.ui.workbench 2 0 2009-05-26 12:35:57.923
!MESSAGE Conflict for 'AUTOGEN:::org.eclipse.ui.cheatsheets.actionSet/org.eclipse.ui.cheatsheets.actions.CheatSheetHelpMenuAction':
HandlerActivation(commandId=AUTOGEN:::org.eclipse.ui.cheatsheets.actionSet/org.eclipse.ui.cheatsheets.actions.CheatSheetHelpMenuAction,
	handler=ActionDelegateHandlerProxy(null,org.eclipse.ui.cheatsheets.CheatSheetExtensionFactory:helpMenuAction),
	expression=AndExpression(ActionSetExpression(org.eclipse.ui.cheatsheets.actionSet,org.eclipse.ui.internal.WorkbenchWindow@1fe4169),WorkbenchWindowExpression(org.eclipse.ui.internal.WorkbenchWindow@1fe4169)),sourcePriority=16640)
HandlerActivation(commandId=AUTOGEN:::org.eclipse.ui.cheatsheets.actionSet/org.eclipse.ui.cheatsheets.actions.CheatSheetHelpMenuAction,
	handler=ActionDelegateHandlerProxy(null,org.eclipse.ui.cheatsheets.CheatSheetExtensionFactory:helpMenuAction),
	expression=AndExpression(ActionSetExpression(org.eclipse.ui.cheatsheets.actionSet,org.eclipse.ui.internal.WorkbenchWindow@1fe4169),WorkbenchWindowExpression(org.eclipse.ui.internal.WorkbenchWindow@1fe4169)),sourcePriority=16640)

Servoy log is empty???

Ian,

For the web client to start from Servoy developer you may have to configure the web browser in your preferences: Window->Preferences->General->Web Browser.

The smart client does not use the browser, maybe it is started as a window in he background?

Rob

rgansevles:
Ian,

For the web client to start from Servoy developer you may have to configure the web browser in your preferences: Window->Preferences->General->Web Browser.

The smart client does not use the browser, maybe it is started as a window in he background?

Rob

Rob - when I try to start SM through developer it actually closes developer and ‘bombs out’ completely!

Additional: When attempting to open a form Servoy closes too.

Ian,

Have a look at this thread:

viewtopic.php?t=12275

Rob

I have try many things on Ubuntu, at last I got Servoy5 rc5 working with this steps

  1. uninstall firefox, sun jdk and previous servoys installs
  2. install firefox, sun jre 6
  3. restart
  4. instal servoy at /home/USER_NAME/servoy
  5. set external browser at Prefereces/General/Web Browser
    now if I run ./servoy form /home/USER_NAME/servoy developer it will start ok but bomb-close each time I try to edit a form,

solution: run as root:

  1. change to servoy/developer
  2. sudo ./servoy

it works!!

Andres

That’s pretty strange, I have a plain vanilla Ubuntu install and can run it without any ‘hacks’. I just doubleclick and it runs.

And have you access to the database servers?
I not; for it I have to do the same thing that Andres.
I have a link in the desktop to a script with this content:

#!/bin/bash
cd /usr/local/servoy/developer
gksudo ./servoy &

Adelo Herrero:
And have you access to the database servers?
I not; for it I have to do the same thing that Andres.
I have a link in the desktop to a script with this content:

#!/bin/bash

cd /usr/local/servoy/developer
gksudo ./servoy &

My guess is that in your case the user starting Servoy has no write access in /usr/local/servoy/developer

If you’d chown that directory you’d be fine. I see no reason to run Servoy as root, in fact from a security stand point it is a bad idea.

Jan,

I have install servoy under /home/MY_USER/servoy, so as “normal_user” I have write access to this folder, and subfolders.
Except for /developer/target that for some reason was created with root owner … should y chown this one? and if so, why the installer make it root owned?
Strange thing rc3 work fine, but 4 and 5 didnt so I need to do this root hack.
Also, I do have access to the databases as normal user, but couldn’t edit a form with out servoy crashing.
You are right to say this is not a good idea but is working. If you need more info for tracking this issue please tell me what you need and I will try to fetch it for you.

Andres

Andres,

I tried myself a new clean install on my kubuntu 9.04 system and all worked just fine with standard use privileges.
There should be no reason to run Servoy Developer as root with the default set-up.
Note that the installer should also be run with standard user privileges.

The only config change I made was to set firefox as browser in the preferences to get the start-webclient button working.

Rob

Well strange then. Dont know where to look but will try again when v5 go final.
Thanks for your time.

A.

We have tried a clean install of Ubuntu 9.10 and Servoy 5 final (in a Vmware Fusion VM)
Have the same problem. When executing a solution (START HERE, for example) it tries to launch the smart client during several seconds, then suddenly the smart client and Sevoy Developer shuts without giving any clue of problem. The Servoy log doesn´t have any entry.

If I open a terminal window, su as root and then launch Servoy Developer I can execute the solution thru smart client without problems.

I checked the perms in the /home/user/servoy directory and subdirectories and the user is the owner of the files…

servoyspain:
The Servoy log doesn´t have any entry.

What about the servoy_workspace/.metadata/.log file and output on the terminal from where you started servoy?

Rob

same Problem here.
Just wanted to install a Testenvironment on a Virtual Machine.
Virtual Machine id running Ubuntu 9.10
Updates from today.
java VM version:

username@ubuntu:~/Servoy5/developer$ java -version
java version “1.6.0_15”
Java™ SE Runtime Environment (build 1.6.0_15-b03)
Java HotSpot™ Client VM (build 14.1-b02, mixed mode, sharing)

So here is what i did:
Installed Servoy with User privileges in
/home/username/Servoy5

Switched Java from OpenJDK to Sun Java.
Switched the Browser from internal to external → firefox 3.5
Linked to :
/usr/lib/firefox-3.5.7/firefox-3.5

If i start servoy via console as root, everything is working.

when started as User i cant run the smart client, neither edit a form. it crashes completly. means:
OS is telling me, that servoy doesnt respond anymore. Only a kill process works.

logfile from .metadata/.log

!SESSION 2010-02-01 04:15:35.101 -----------------------------------------------
eclipse.buildId=I20090611-1540
java.version=1.6.0_15
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=de_DE
Framework arguments:  ?
Command-line arguments:  -os linux -ws gtk -arch x86 ?

!ENTRY com.servoy.eclipse.core 1 0 2010-02-01 04:15:52.818
!MESSAGE Time taken to read in the solution servoy_sample_bug_db: 2609

!ENTRY com.servoy.eclipse.core 1 0 2010-02-01 04:15:53.782
!MESSAGE Time taken to read in the solution mod_dialog: 31

!ENTRY org.eclipse.ui.workbench 2 0 2010-02-01 04:15:58.746
!MESSAGE A handler conflict occurred.  This may disable some commands.
!SUBENTRY 1 org.eclipse.ui.workbench 2 0 2010-02-01 04:15:58.746
!MESSAGE Conflict for 'AUTOGEN:::org.eclipse.ui.cheatsheets.actionSet/org.eclipse.ui.cheatsheets.actions.CheatSheetHelpMenuAction':
HandlerActivation(commandId=AUTOGEN:::org.eclipse.ui.cheatsheets.actionSet/org.eclipse.ui.cheatsheets.actions.CheatSheetHelpMenuAction,
	handler=ActionDelegateHandlerProxy(null,org.eclipse.ui.cheatsheets.CheatSheetExtensionFactory:helpMenuAction),
	expression=AndExpression(ActionSetExpression(org.eclipse.ui.cheatsheets.actionSet,org.eclipse.ui.internal.WorkbenchWindow@ae3da8),WorkbenchWindowExpression(org.eclipse.ui.internal.WorkbenchWindow@ae3da8)),sourcePriority=16640)
HandlerActivation(commandId=AUTOGEN:::org.eclipse.ui.cheatsheets.actionSet/org.eclipse.ui.cheatsheets.actions.CheatSheetHelpMenuAction,
	handler=ActionDelegateHandlerProxy(null,org.eclipse.ui.cheatsheets.CheatSheetExtensionFactory:helpMenuAction),
	expression=AndExpression(ActionSetExpression(org.eclipse.ui.cheatsheets.actionSet,org.eclipse.ui.internal.WorkbenchWindow@ae3da8),WorkbenchWindowExpression(org.eclipse.ui.internal.WorkbenchWindow@ae3da8)),sourcePriority=16640)

servoy log ond server log have both no significant entrys. Only startup output (and exceptions i have already solved).

Seems quite strange to me.
Anyone solved that problem?

regards Jan

if you installed servoy in your user dir with your own user then it should work fine for you user.
The only thing is that servoy does want to open port (like 8080 for the admin pages and so on)
Maybe those are blocking?

When it hangs can you go to localhost:8080 ? do you see the admin pages there?
If yes can you dump the stack? (a link on the first admin page)

jcompagner:
if you installed servoy in your user dir with your own user then it should work fine for you user.
The only thing is that servoy does want to open port (like 8080 for the admin pages and so on)
Maybe those are blocking?

I can reach the server pages from localhost, as well from the host machine and the mac next to me also.
Right now, if I start as user, and a form is loaded in the workspace,

When it hangs can you go to localhost:8080 ? do you see the admin pages there?
If yes can you dump the stack? (a link on the first admin page)

well right now, if I start developer as User, and try to load a form, servoy exits completly.
So the admin pages are not there anymore.
Right now i started the server as well, started developer, and made a dump of the stacktrace the moment servoy exits.

Current time: Mon Feb 01 05:26:03 PST 2010

Server Information
Servoy version 5.0.1 -build 861
Repository version 38

Current time: Mon Feb 01 05:26:03 PST 2010

Uptime:  1 minute 20 seconds

JDK Information
java.vm.name=Java HotSpot(TM) Client VM
java.version=1.6.0_15
java.vm.info=mixed mode, sharing
java.vm.vendor=Sun Microsystems Inc.

Operating System Information
os.name=Linux
os.version=2.6.31-17-generic
os.arch=i386

System Information
Heap memory: allocated=65152K, used=12916K, max=260160K
None Heap memory: allocated=50016K, used=42880K, max=184320K

Thread: http-8080-6, state: RUNNABLE, total cpu time: 40.0ms, total user time: 0.0ms
  java.net.SocketInputStream.socketRead0(Native Method)
  java.net.SocketInputStream.read(SocketInputStream.java:129)
  org.apache.coyote.http11.InternalInputBuffer.fill(InternalInputBuffer.java:735)
  org.apache.coyote.http11.InternalInputBuffer.parseRequestLine(InternalInputBuffer.java:366)
  org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:808)
  org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
  org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)
  java.lang.Thread.run(Thread.java:619)

Thread: http-8080-5, state: WAITING, total cpu time: 0.0ms, total user time: 0.0ms
  java.lang.Object.wait(Native Method)
  java.lang.Object.wait(Object.java:485)
  org.apache.tomcat.util.net.JIoEndpoint$Worker.await(JIoEndpoint.java:423)
  org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:449)
  java.lang.Thread.run(Thread.java:619)

Thread: http-8080-4, state: WAITING, total cpu time: 0.0ms, total user time: 0.0ms
  java.lang.Object.wait(Native Method)
  java.lang.Object.wait(Object.java:485)
  org.apache.tomcat.util.net.JIoEndpoint$Worker.await(JIoEndpoint.java:423)
  org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:449)
  java.lang.Thread.run(Thread.java:619)

Thread: http-8080-3, state: WAITING, total cpu time: 0.0ms, total user time: 0.0ms
  java.lang.Object.wait(Native Method)
  java.lang.Object.wait(Object.java:485)
  org.apache.tomcat.util.net.JIoEndpoint$Worker.await(JIoEndpoint.java:423)
  org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:449)
  java.lang.Thread.run(Thread.java:619)

Thread: http-8080-2, state: RUNNABLE, total cpu time: 0.0ms, total user time: 0.0ms
  java.net.SocketInputStream.socketRead0(Native Method)
  java.net.SocketInputStream.read(SocketInputStream.java:129)
  org.apache.coyote.http11.InternalInputBuffer.fill(InternalInputBuffer.java:735)
  org.apache.coyote.http11.InternalInputBuffer.parseRequestLine(InternalInputBuffer.java:366)
  org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:808)
  org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
  org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)
  java.lang.Thread.run(Thread.java:619)

Thread: DestroyJavaVM, state: RUNNABLE, total cpu time: 7860.0ms, total user time: 2800.0ms

Thread: http-8080-1, state: RUNNABLE, total cpu time: 640.0ms, total user time: 100.0ms
  sun.management.ThreadImpl.getThreadInfo0(Native Method)
  sun.management.ThreadImpl.getThreadInfo(ThreadImpl.java:145)
  sun.management.ThreadImpl.getThreadInfo(ThreadImpl.java:123)
  com.servoy.j2db.server.servlets.ConfigServlet.Zs(ConfigServlet.java:401)
  com.servoy.j2db.server.servlets.ConfigServlet.service(ConfigServlet.java:587)
  javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
  org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
  org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
  org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
  org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
  org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
  org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:567)
  org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
  org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
  org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
  org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
  org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)
  java.lang.Thread.run(Thread.java:619)

Thread: http-8080-Acceptor-0, state: RUNNABLE, total cpu time: 0.0ms, total user time: 0.0ms
  java.net.PlainSocketImpl.socketAccept(Native Method)
  java.net.PlainSocketImpl.accept(PlainSocketImpl.java:390)
  java.net.ServerSocket.implAccept(ServerSocket.java:453)
  java.net.ServerSocket.accept(ServerSocket.java:421)
  org.apache.tomcat.util.net.DefaultServerSocketFactory.acceptSocket(DefaultServerSocketFactory.java:61)
  org.apache.tomcat.util.net.JIoEndpoint$Acceptor.run(JIoEndpoint.java:317)
  java.lang.Thread.run(Thread.java:619)

Thread: ContainerBackgroundProcessor[StandardEngine[Catalina]], state: TIMED_WAITING, total cpu time: 0.0ms, total user time: 0.0ms
  java.lang.Thread.sleep(Native Method)
  org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1579)
  java.lang.Thread.run(Thread.java:619)

Thread: pool-2-thread-1, state: TIMED_WAITING, total cpu time: 0.0ms, total user time: 0.0ms
  sun.misc.Unsafe.park(Native Method)
  java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:198)
  java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:1963)
  java.util.concurrent.DelayQueue.take(DelayQueue.java:164)
  java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:583)
  java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:576)
  java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:947)
  java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
  java.lang.Thread.run(Thread.java:619)

Thread: Thread-1, state: TIMED_WAITING, total cpu time: 0.0ms, total user time: 0.0ms
  java.lang.Thread.sleep(Native Method)
  com.drmaison.plugin.phone.PhoneServer$2.run(PhoneServer.java:504)

Thread: GC Daemon, state: TIMED_WAITING, total cpu time: 0.0ms, total user time: 0.0ms
  java.lang.Object.wait(Native Method)
  sun.misc.GC$Daemon.run(GC.java:100)

Thread: RMI Reaper, state: WAITING, total cpu time: 0.0ms, total user time: 0.0ms
  java.lang.Object.wait(Native Method)
  java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:118)
  java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:134)
  sun.rmi.transport.ObjectTable$Reaper.run(ObjectTable.java:333)
  java.lang.Thread.run(Thread.java:619)

Thread: TaskExecuter[0], state: WAITING, total cpu time: 40.0ms, total user time: 0.0ms
  java.lang.Object.wait(Native Method)
  java.lang.Object.wait(Object.java:485)
  com.servoy.j2db.util.Zed.run(Zed.java:12)
  java.lang.Thread.run(Thread.java:619)

Thread: RMI TCP Accept-1099, state: WAITING, total cpu time: 0.0ms, total user time: 0.0ms
  sun.misc.Unsafe.park(Native Method)
  java.util.concurrent.locks.LockSupport.park(LockSupport.java:158)
  java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:1925)
  java.util.concurrent.ArrayBlockingQueue.take(ArrayBlockingQueue.java:317)
  com.servoy.j2db.util.rmi.Zm.accept(Zm.java:66)
  sun.rmi.transport.tcp.TCPTransport$AcceptLoop.executeAcceptLoop(TCPTransport.java:369)
  sun.rmi.transport.tcp.TCPTransport$AcceptLoop.run(TCPTransport.java:341)
  java.lang.Thread.run(Thread.java:619)

Thread: 2 way Server Acceptor, state: RUNNABLE, total cpu time: 20.0ms, total user time: 0.0ms
  java.net.PlainSocketImpl.socketAccept(Native Method)
  java.net.PlainSocketImpl.accept(PlainSocketImpl.java:390)
  java.net.ServerSocket.implAccept(ServerSocket.java:453)
  com.sun.net.ssl.internal.ssl.SSLServerSocketImpl.accept(SSLServerSocketImpl.java:259)
  com.servoy.j2db.util.rmi.Zm.run(Zm.java:32)
  java.lang.Thread.run(Thread.java:619)

Thread: pool-1-thread-1, state: TIMED_WAITING, total cpu time: 0.0ms, total user time: 0.0ms
  sun.misc.Unsafe.park(Native Method)
  java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:198)
  java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:1963)
  java.util.concurrent.DelayQueue.take(DelayQueue.java:164)
  java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:583)
  java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:576)
  java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:947)
  java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
  java.lang.Thread.run(Thread.java:619)

Thread: PingScanner, state: TIMED_WAITING, total cpu time: 0.0ms, total user time: 0.0ms
  java.lang.Object.wait(Native Method)
  com.servoy.j2db.dataprocessing.Zy.run(Zy.java:18)
  java.lang.Thread.run(Thread.java:619)

Thread: MessageScheduler, state: TIMED_WAITING, total cpu time: 0.0ms, total user time: 0.0ms
  java.lang.Object.wait(Native Method)
  com.servoy.j2db.dataprocessing.Zab.run(Zab.java:49)
  java.lang.Thread.run(Thread.java:619)

Thread: MessagePreHandler, state: WAITING, total cpu time: 0.0ms, total user time: 0.0ms
  java.lang.Object.wait(Native Method)
  java.lang.Object.wait(Object.java:485)
  com.servoy.j2db.dataprocessing.ClientMessagePreQueueHandler.run(ClientMessagePreQueueHandler.java:58)
  java.lang.Thread.run(Thread.java:619)

Thread: Signal Dispatcher, state: RUNNABLE, total cpu time: 0.0ms, total user time: 0.0ms

Thread: Finalizer, state: WAITING, total cpu time: 0.0ms, total user time: 0.0ms
  java.lang.Object.wait(Native Method)
  java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:118)
  java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:134)
  java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:159)

Thread: Reference Handler, state: WAITING, total cpu time: 0.0ms, total user time: 0.0ms
  java.lang.Object.wait(Native Method)
  java.lang.Object.wait(Object.java:485)
  java.lang.ref.Reference$ReferenceHandler.run(Reference.java:116)

it seems, that i can edit forms when the application server is started.
But when i launch the client, developer exits as described above.

What i just saw in the stack trace:

Thread: DestroyJavaVM, state: RUNNABLE, total cpu time: 7860.0ms, total user time: 2800.0ms

:shock: :shock: