Question on headless client

The forum to discuss the Headless version of Servoy. Web, Java and Servlet development questions can all be posted here.

Question on headless client

Postby Hans Nieuwenhuis » Wed Aug 24, 2011 9:40 pm

Hi,

I have looked at some headless client examples.
They all call the solution itself as headless client.

I suppose it is possible to call solution B in a headless client call from within solution A ?

Regards,
Hans Nieuwenhuis
Betagraphics
http://www.deltics.nl
http://www.betagraphics.nl

Servoy Version 7.3.1
Java version 1.7.0.x
Database Oracle 11g
User avatar
Hans Nieuwenhuis
 
Posts: 1026
Joined: Thu Apr 12, 2007 12:36 pm
Location: Hengelo, The Netherlands

Re: Question on headless client

Postby ROCLASI » Wed Aug 24, 2011 9:52 pm

Hi Hans,

Hans Nieuwenhuis wrote:I suppose it is possible to call solution B in a headless client call from within solution A ?


Correct. It can even be a module.
One gotcha though. When you test this in Developer it needs to be linked to solution A because it will only open the activated solution in the workspace.
In Server it just works as advertised.

Hope this helps.
Robert Ivens
ROCLASI Software Solutions / JBS Group, Partner
SAN Developer / Servoy Valued Professional / Servoy Certified Developer
Twitter: @roclasi / @servoyforge
--
ServoyForge - Building Open Source Software.
PostgreSQL - The world's most advanced open source database.
User avatar
ROCLASI
Servoy Expert
 
Posts: 5201
Joined: Thu Oct 02, 2003 9:49 am
Location: Netherlands/Belgium

Re: Question on headless client

Postby Hans Nieuwenhuis » Wed Aug 24, 2011 9:59 pm

Thanks Robert,

I ran into the gotcha ( running from developer )
Hans Nieuwenhuis
Betagraphics
http://www.deltics.nl
http://www.betagraphics.nl

Servoy Version 7.3.1
Java version 1.7.0.x
Database Oracle 11g
User avatar
Hans Nieuwenhuis
 
Posts: 1026
Joined: Thu Apr 12, 2007 12:36 pm
Location: Hengelo, The Netherlands

Re: Question on headless client

Postby Hans Nieuwenhuis » Thu Aug 25, 2011 11:52 am

Still not getting it working :

I have a solution called ndixmain which has a module attached called loadNdixInfo.

If i start a headless client using :

Code: Select all
   headlessClient = plugins.headlessclient.createClient("loadNdixInfo", null, null, null);


servoy hangs on this line and if I look at the admin page ( for developer) i see one smartclient running ndixmain and
one headless client also running ndixmain. Should that not be loadNdixInfo ??

Regards,
Hans Nieuwenhuis
Betagraphics
http://www.deltics.nl
http://www.betagraphics.nl

Servoy Version 7.3.1
Java version 1.7.0.x
Database Oracle 11g
User avatar
Hans Nieuwenhuis
 
Posts: 1026
Joined: Thu Apr 12, 2007 12:36 pm
Location: Hengelo, The Netherlands

Re: Question on headless client

Postby ROCLASI » Thu Aug 25, 2011 12:17 pm

Hi Hans,

Like I said, in Developer it will only load only the active solution. Hence the things you see in the servoy-admin page.
In Server this does load/show the correct solution.

And you say it hangs? You mean the onSolutionOpen is not triggered ? I guess that makes sense since in Developer it doesn't open the solution/module but your active solution.
You can however trigger a method in the JSClient via the queuemethod() function.

Hope this helps.
Robert Ivens
ROCLASI Software Solutions / JBS Group, Partner
SAN Developer / Servoy Valued Professional / Servoy Certified Developer
Twitter: @roclasi / @servoyforge
--
ServoyForge - Building Open Source Software.
PostgreSQL - The world's most advanced open source database.
User avatar
ROCLASI
Servoy Expert
 
Posts: 5201
Joined: Thu Oct 02, 2003 9:49 am
Location: Netherlands/Belgium

Re: Question on headless client

Postby jcompagner » Thu Aug 25, 2011 12:43 pm

if it really hangs and doesn't go on (and also the client itself doesn't really respond/come back anymore) then go to the admin page and dump the stack
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 7970
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: Question on headless client

Postby Hans Nieuwenhuis » Thu Aug 25, 2011 4:46 pm

I guess the problem is running from developer.
The ndixadmin solution needs a login, the loadndixinfo does not.

Is there a way to get around this ?
Hans Nieuwenhuis
Betagraphics
http://www.deltics.nl
http://www.betagraphics.nl

Servoy Version 7.3.1
Java version 1.7.0.x
Database Oracle 11g
User avatar
Hans Nieuwenhuis
 
Posts: 1026
Joined: Thu Apr 12, 2007 12:36 pm
Location: Hengelo, The Netherlands

Re: Question on headless client

Postby Hans Nieuwenhuis » Thu Aug 25, 2011 4:57 pm

here is a stack dump
Code: Select all
Current time: Thu Aug 25 16:46:08 CEST 2011

Server Information
Servoy version 5.2.8 -build 1016
Port used by RMI Registry: 1099
Repository version 38

Current time: Thu Aug 25 16:46:08 CEST 2011

Uptime:  2 minutes 46 seconds

JDK Information
java.vm.name=Java HotSpot(TM) 64-Bit Server VM
java.version=1.6.0_24
java.vm.info=mixed mode
java.vm.vendor=Sun Microsystems Inc.

Operating System Information
os.name=Windows 7
os.version=6.1
os.arch=amd64

System Information
Heap memory: allocated=230272K, used=147215K, max=466048K
None Heap memory: allocated=201536K, used=137312K, max=311296K

Thread: Timer-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)
  java.util.TimerThread.mainLoop(Unknown Source)
  java.util.TimerThread.run(Unknown Source)

Thread: Worker-10, state: TIMED_WAITING, total cpu time: 0.0ms, total user time: 0.0ms
  java.lang.Object.wait(Native Method)
  org.eclipse.core.internal.jobs.WorkerPool.sleep(WorkerPool.java:185)
  org.eclipse.core.internal.jobs.WorkerPool.startJob(WorkerPool.java:217)
  org.eclipse.core.internal.jobs.Worker.run(Worker.java:51)

Thread: createSessionBean, state: WAITING, total cpu time: 93.6006ms, total user time: 93.6006ms
  java.lang.Object.wait(Native Method)
  java.lang.Object.wait(Object.java:485)
  java.awt.EventQueue.invokeAndWait(Unknown Source)
  javax.swing.SwingUtilities.invokeAndWait(Unknown Source)
  com.servoy.j2db.util.SnapShot.createJPGImage(SnapShot.java:65)
  com.servoy.j2db.server.headlessclient.dataui.WebImageBeanHolder.createSnapshot(WebImageBeanHolder.java:179)
  com.servoy.j2db.server.headlessclient.dataui.WebImageBeanHolder.getIconIfChanged(WebImageBeanHolder.java:157)
  com.servoy.j2db.server.headlessclient.dataui.WebImageBeanHolder.createBeanIcon(WebImageBeanHolder.java:129)
  com.servoy.j2db.server.headlessclient.dataui.WebImageBeanHolder.setSize(WebImageBeanHolder.java:245)
  com.servoy.j2db.component.ComponentFactory.createBean(ComponentFactory.java:880)
  com.servoy.j2db.component.ComponentFactory.createComponentEx(ComponentFactory.java:471)
  com.servoy.j2db.component.ComponentFactory.createComponent(ComponentFactory.java:359)
  com.servoy.j2db.server.headlessclient.dataui.WebDataRendererFactory.placeElements(WebDataRendererFactory.java:160)
  com.servoy.j2db.server.headlessclient.dataui.WebDataRendererFactory.completeRenderers(WebDataRendererFactory.java:113)
  com.servoy.j2db.FormController.createDataRenderers(FormController.java:1676)
  com.servoy.j2db.FormController.init(FormController.java:1522)
  com.servoy.j2db.FormManager.leaseFormPanel(FormManager.java:931)
  com.servoy.j2db.scripting.CreationalPrototype.get(CreationalPrototype.java:172)
  org.mozilla.javascript.ScriptableObject.getProperty(ScriptableObject.java:1641)
  org.mozilla.javascript.ScriptRuntime.getObjectProp(ScriptRuntime.java:1429)
  org.mozilla.javascript.ScriptRuntime.getObjectProp(ScriptRuntime.java:1418)
  org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:3343)
  org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2680)
  org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:166)
  org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:387)
  org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3135)
  org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:165)
  com.servoy.j2db.scripting.ScriptEngine.executeFunction(ScriptEngine.java:476)
  com.servoy.j2db.debug.RemoteDebugScriptEngine.executeFunction(RemoteDebugScriptEngine.java:382)
  com.servoy.j2db.FormManager.makeSolutionSettings(FormManager.java:334)
  com.servoy.j2db.FormManager$1.run(FormManager.java:162)
  com.servoy.j2db.server.headlessclient.SessionClient.invokeAndWait(SessionClient.java:1170)
  com.servoy.j2db.server.headlessclient.SessionClient.invokeLater(SessionClient.java:1160)
  com.servoy.j2db.FormManager.propertyChange(FormManager.java:158)
  java.beans.PropertyChangeSupport.firePropertyChange(Unknown Source)
  javax.swing.event.SwingPropertyChangeSupport.firePropertyChange(Unknown Source)
  java.beans.PropertyChangeSupport.firePropertyChange(Unknown Source)
  com.servoy.j2db.J2DBGlobals.firePropertyChange(J2DBGlobals.java:90)
  com.servoy.j2db.server.headlessclient.SessionClient.solutionLoaded(SessionClient.java:474)
  com.servoy.j2db.ClientState.loadSolutionsAndModules(ClientState.java:1385)
  com.servoy.j2db.server.headlessclient.SessionClient.loadSolution(SessionClient.java:266)
  com.servoy.j2db.debug.DebugHeadlessClient.loadSolution(DebugHeadlessClient.java:166)
  com.servoy.j2db.server.headlessclient.SessionClient.loadSolution(SessionClient.java:242)
  com.servoy.j2db.server.headlessclient.HeadlessClientFactoryInternal$1.run(HeadlessClientFactoryInternal.java:64)
  java.lang.Thread.run(Unknown Source)

Thread: org.eclipse.dltk.internal.ui.text.ScriptReconciler, state: TIMED_WAITING, total cpu time: 0.0ms, total user time: 0.0ms
  java.lang.Object.wait(Native Method)
  org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:179)

Thread: Timer-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)
  java.util.TimerThread.mainLoop(Unknown Source)
  java.util.TimerThread.run(Unknown Source)

Thread: pool-4-thread-7, state: WAITING, total cpu time: 0.0ms, total user time: 0.0ms
  sun.misc.Unsafe.park(Native Method)
  java.util.concurrent.locks.LockSupport.park(Unknown Source)
  java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(Unknown Source)
  java.util.concurrent.LinkedBlockingQueue.take(Unknown Source)
  java.util.concurrent.ThreadPoolExecutor.getTask(Unknown Source)
  java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
  java.lang.Thread.run(Unknown Source)

Thread: pool-4-thread-2, state: WAITING, total cpu time: 0.0ms, total user time: 0.0ms
  sun.misc.Unsafe.park(Native Method)
  java.util.concurrent.locks.LockSupport.park(Unknown Source)
  java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(Unknown Source)
  java.util.concurrent.LinkedBlockingQueue.take(Unknown Source)
  java.util.concurrent.ThreadPoolExecutor.getTask(Unknown Source)
  java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
  java.lang.Thread.run(Unknown Source)

Thread: Timer-2, 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.util.TimerThread.mainLoop(Unknown Source)
  java.util.TimerThread.run(Unknown Source)

Thread: TaskExecuter[0], 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.util.TaskExecuter.run(TaskExecuter.java:70)
  java.lang.Thread.run(Unknown Source)

Thread: TimerQueue, state: TIMED_WAITING, total cpu time: 15.6001ms, total user time: 15.6001ms
  java.lang.Object.wait(Native Method)
  javax.swing.TimerQueue.run(Unknown Source)
  java.lang.Thread.run(Unknown Source)

Thread: DBGP - Stream manager, 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.eclipse.dltk.dbgp.internal.packets.DbgpPacketReceiver$PacketWaiter.waitPacket(DbgpPacketReceiver.java:91)
  org.eclipse.dltk.dbgp.internal.packets.DbgpPacketReceiver.getStreamPacket(DbgpPacketReceiver.java:161)
  org.eclipse.dltk.dbgp.internal.DbgpDebugingEngine.getStreamPacket(DbgpDebugingEngine.java:84)
  org.eclipse.dltk.dbgp.internal.managers.DbgpStreamManager.workingCycle(DbgpStreamManager.java:45)
  org.eclipse.dltk.dbgp.internal.DbgpWorkingThread$1.run(DbgpWorkingThread.java:29)
  java.lang.Thread.run(Unknown Source)

Thread: DBGP - Notification Manager, 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.eclipse.dltk.dbgp.internal.packets.DbgpPacketReceiver$PacketWaiter.waitPacket(DbgpPacketReceiver.java:91)
  org.eclipse.dltk.dbgp.internal.packets.DbgpPacketReceiver.getNotifyPacket(DbgpPacketReceiver.java:157)
  org.eclipse.dltk.dbgp.internal.DbgpDebugingEngine.getNotifyPacket(DbgpDebugingEngine.java:89)
  org.eclipse.dltk.dbgp.internal.managers.DbgpNotificationManager.workingCycle(DbgpNotificationManager.java:37)
  org.eclipse.dltk.dbgp.internal.DbgpWorkingThread$1.run(DbgpWorkingThread.java:29)
  java.lang.Thread.run(Unknown Source)

Thread: Debug command reader, state: RUNNABLE, total cpu time: 0.0ms, total user time: 0.0ms
  java.net.SocketInputStream.socketRead0(Native Method)
  java.net.SocketInputStream.read(Unknown Source)
  java.net.SocketInputStream.read(Unknown Source)
  java.io.FilterInputStream.read(Unknown Source)
  org.eclipse.dltk.rhino.dbgp.DBGPDebugger.run(DBGPDebugger.java:505)

Thread: DBGP - Packet receiver, state: RUNNABLE, total cpu time: 46.8003ms, total user time: 46.8003ms
  java.net.SocketInputStream.socketRead0(Native Method)
  java.net.SocketInputStream.read(Unknown Source)
  java.io.BufferedInputStream.fill(Unknown Source)
  java.io.BufferedInputStream.read(Unknown Source)
  org.eclipse.dltk.dbgp.internal.DbgpRawPacket.readPacketSize(DbgpRawPacket.java:28)
  org.eclipse.dltk.dbgp.internal.DbgpRawPacket.readPacket(DbgpRawPacket.java:75)
  org.eclipse.dltk.dbgp.internal.packets.DbgpPacketReceiver.workingCycle(DbgpPacketReceiver.java:123)
  org.eclipse.dltk.dbgp.internal.DbgpWorkingThread$1.run(DbgpWorkingThread.java:29)
  java.lang.Thread.run(Unknown Source)

Thread: Worker-9, state: TIMED_WAITING, total cpu time: 0.0ms, total user time: 0.0ms
  java.lang.Object.wait(Native Method)
  org.eclipse.core.internal.jobs.WorkerPool.sleep(WorkerPool.java:185)
  org.eclipse.core.internal.jobs.WorkerPool.startJob(WorkerPool.java:217)
  org.eclipse.core.internal.jobs.Worker.run(Worker.java:51)

Thread: AWT-EventQueue-0, state: WAITING, total cpu time: 6489.6416ms, total user time: 5397.6346ms
  java.lang.Object.wait(Native Method)
  java.lang.Thread.join(Unknown Source)
  java.lang.Thread.join(Unknown Source)
  com.servoy.j2db.server.headlessclient.HeadlessClientFactoryInternal.createSessionBean(HeadlessClientFactoryInternal.java:84)
  com.servoy.j2db.server.headlessclient.HeadlessClientFactoryInternal.createHeadlessClient(HeadlessClientFactoryInternal.java:40)
  com.servoy.j2db.server.headlessclient.HeadlessClientFactory.createHeadlessClient(HeadlessClientFactory.java:65)
  com.servoy.extensions.plugins.headlessclient.HeadlessServerPlugin.createClient(Unknown Source)
  com.servoy.extensions.plugins.headlessclient.HeadlessClientProvider.js_createClient(Unknown Source)
  sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  java.lang.reflect.Method.invoke(Unknown Source)
  org.mozilla.javascript.MemberBox.invoke(MemberBox.java:179)
  org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:353)
  org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:3666)
  org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2680)
  org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:166)
  org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:387)
  org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3135)
  org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:165)
  com.servoy.j2db.scripting.ScriptEngine.executeFunction(ScriptEngine.java:476)
  com.servoy.j2db.debug.RemoteDebugScriptEngine.executeFunction(RemoteDebugScriptEngine.java:382)
  com.servoy.j2db.FormController.executeFunction(FormController.java:3977)
  com.servoy.j2db.FormController.executeFunction(FormController.java:3865)
  com.servoy.j2db.FormController.executeFunction(FormController.java:3787)
  com.servoy.j2db.FormController$ScriptExecuter.executeFunction(FormController.java:3642)
  com.servoy.j2db.ui.BaseEventExecutor.fireEventCommand(BaseEventExecutor.java:272)
  com.servoy.j2db.ui.BaseEventExecutor.fireActionCommand(BaseEventExecutor.java:217)
  com.servoy.j2db.ui.BaseEventExecutor.fireActionCommand(BaseEventExecutor.java:212)
  com.servoy.j2db.smart.dataui.AbstractScriptButton$2.actionPerformed(AbstractScriptButton.java:826)
  javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
  javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
  javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
  javax.swing.DefaultButtonModel.setPressed(Unknown Source)
  javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
  java.awt.Component.processMouseEvent(Unknown Source)
  javax.swing.JComponent.processMouseEvent(Unknown Source)
  java.awt.Component.processEvent(Unknown Source)
  java.awt.Container.processEvent(Unknown Source)
  java.awt.Component.dispatchEventImpl(Unknown Source)
  java.awt.Container.dispatchEventImpl(Unknown Source)
  java.awt.Component.dispatchEvent(Unknown Source)
  java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
  java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
  java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
  java.awt.Container.dispatchEventImpl(Unknown Source)
  java.awt.Window.dispatchEventImpl(Unknown Source)
  java.awt.Component.dispatchEvent(Unknown Source)
  java.awt.EventQueue.dispatchEventImpl(Unknown Source)
  java.awt.EventQueue.access$000(Unknown Source)
  java.awt.EventQueue$1.run(Unknown Source)
  java.awt.EventQueue$1.run(Unknown Source)
  java.security.AccessController.doPrivileged(Native Method)
  java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
  java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
  java.awt.EventQueue$2.run(Unknown Source)
  java.awt.EventQueue$2.run(Unknown Source)
  java.security.AccessController.doPrivileged(Native Method)
  java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
  java.awt.EventQueue.dispatchEvent(Unknown Source)
  java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
  java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
  java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
  java.awt.EventDispatchThread.pumpEvents(Unknown Source)
  java.awt.EventDispatchThread.pumpEvents(Unknown Source)
  java.awt.EventDispatchThread.run(Unknown Source)

Thread: AWT-Shutdown, 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)
  sun.awt.AWTAutoShutdown.run(Unknown Source)
  java.lang.Thread.run(Unknown Source)

Thread: Script Debug accept thread, state: RUNNABLE, total cpu time: 0.0ms, total user time: 0.0ms
  java.net.PlainSocketImpl.socketAccept(Native Method)
  java.net.PlainSocketImpl.accept(Unknown Source)
  java.net.ServerSocket.implAccept(Unknown Source)
  java.net.ServerSocket.accept(Unknown Source)
  com.servoy.j2db.debug.RemoteDebugScriptEngine$1.run(RemoteDebugScriptEngine.java:87)
  java.lang.Thread.run(Unknown Source)

Thread: http-8080-2, state: RUNNABLE, total cpu time: 46.8003ms, total user time: 46.8003ms
  sun.management.ThreadImpl.getThreadInfo0(Native Method)
  sun.management.ThreadImpl.getThreadInfo(Unknown Source)
  sun.management.ThreadImpl.getThreadInfo(Unknown Source)
  com.servoy.j2db.server.servlets.ConfigServlet.Zt(ConfigServlet.java:2049)
  com.servoy.j2db.server.servlets.ConfigServlet.service(ConfigServlet.java:1055)
  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(Unknown Source)

Thread: http-8080-1, state: RUNNABLE, total cpu time: 265.2017ms, total user time: 265.2017ms
  java.net.SocketInputStream.socketRead0(Native Method)
  java.net.SocketInputStream.read(Unknown Source)
  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(Unknown Source)

Thread: [ThreadPool Manager] - Idle Thread, 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.eclipse.equinox.internal.util.impl.tpt.threadpool.Executor.run(Executor.java:106)

Thread: Worker-6, state: TIMED_WAITING, total cpu time: 46.8003ms, total user time: 46.8003ms
  java.lang.Object.wait(Native Method)
  org.eclipse.core.internal.jobs.WorkerPool.sleep(WorkerPool.java:185)
  org.eclipse.core.internal.jobs.WorkerPool.startJob(WorkerPool.java:217)
  org.eclipse.core.internal.jobs.Worker.run(Worker.java:51)

Thread: Worker-2, state: WAITING, total cpu time: 280.8018ms, total user time: 249.6016ms
  java.lang.Object.wait(Native Method)
  java.lang.Object.wait(Object.java:485)
  org.eclipse.dltk.dbgp.internal.packets.DbgpPacketReceiver$ResponcePacketWaiter.waitPacket(DbgpPacketReceiver.java:52)
  org.eclipse.dltk.dbgp.internal.packets.DbgpPacketReceiver.getResponsePacket(DbgpPacketReceiver.java:166)
  org.eclipse.dltk.dbgp.internal.DbgpDebugingEngine.getResponsePacket(DbgpDebugingEngine.java:94)
  org.eclipse.dltk.dbgp.internal.commands.DbgpDebuggingEngineCommunicator.receiveResponse(DbgpDebuggingEngineCommunicator.java:44)
  org.eclipse.dltk.dbgp.internal.commands.DbgpDebuggingEngineCommunicator.communicate(DbgpDebuggingEngineCommunicator.java:69)
  org.eclipse.dltk.dbgp.DbgpBaseCommands.communicate(DbgpBaseCommands.java:43)
  org.eclipse.dltk.dbgp.internal.commands.DbgpContinuationCommands.execCommand(DbgpContinuationCommands.java:35)
  org.eclipse.dltk.dbgp.internal.commands.DbgpContinuationCommands.stepInto(DbgpContinuationCommands.java:47)
  org.eclipse.dltk.dbgp.internal.commands.DbgpCoreCommands.stepInto(DbgpCoreCommands.java:141)
  org.eclipse.dltk.internal.debug.core.model.operations.DbgpStepIntoOperation.process(DbgpStepIntoOperation.java:23)
  org.eclipse.dltk.internal.debug.core.model.operations.DbgpOperation$1.run(DbgpOperation.java:64)
  org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

Thread: org.eclipse.dltk.internal.ui.text.ScriptReconciler, state: TIMED_WAITING, total cpu time: 15.6001ms, total user time: 15.6001ms
  java.lang.Object.wait(Native Method)
  org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:179)

Thread: Timer-1, 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.util.TimerThread.mainLoop(Unknown Source)
  java.util.TimerThread.run(Unknown Source)

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(Unknown Source)
  java.net.ServerSocket.implAccept(Unknown Source)
  java.net.ServerSocket.accept(Unknown Source)
  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(Unknown Source)

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(Unknown Source)

Thread: ModificationWatcher Task, state: TIMED_WAITING, total cpu time: 0.0ms, total user time: 0.0ms
  java.lang.Thread.sleep(Native Method)
  org.apache.wicket.util.time.Duration.sleep(Duration.java:445)
  org.apache.wicket.util.thread.Task$1.run(Task.java:130)
  java.lang.Thread.run(Unknown Source)

Thread: Timer-0, 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.util.TimerThread.mainLoop(Unknown Source)
  java.util.TimerThread.run(Unknown Source)

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(Unknown Source)
  java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(Unknown Source)
  java.util.concurrent.DelayQueue.take(Unknown Source)
  java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(Unknown Source)
  java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(Unknown Source)
  java.util.concurrent.ThreadPoolExecutor.getTask(Unknown Source)
  java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
  java.lang.Thread.run(Unknown Source)

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.Zn.run(Zn.java:9)
  java.lang.Thread.run(Unknown Source)

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.Zp.run(Zp.java:28)
  java.lang.Thread.run(Unknown Source)

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:26)
  java.lang.Thread.run(Unknown Source)

Thread: Bundle File Closer, state: WAITING, total cpu time: 31.2002ms, total user time: 0.0ms
  java.lang.Object.wait(Native Method)
  java.lang.Object.wait(Object.java:485)
  org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.getNextEvent(EventManager.java:397)
  org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:333)

Thread: DLTK indexing, state: WAITING, total cpu time: 1638.0105ms, total user time: 1107.6071ms
  java.lang.Object.wait(Native Method)
  java.lang.Object.wait(Object.java:485)
  org.eclipse.dltk.internal.core.search.processing.JobManager.run(JobManager.java:435)
  java.lang.Thread.run(Unknown Source)

Thread: Worker-1, state: TIMED_WAITING, total cpu time: 998.4064ms, total user time: 889.2057ms
  java.lang.Object.wait(Native Method)
  org.eclipse.core.internal.jobs.WorkerPool.sleep(WorkerPool.java:185)
  org.eclipse.core.internal.jobs.WorkerPool.startJob(WorkerPool.java:217)
  org.eclipse.core.internal.jobs.Worker.run(Worker.java:51)

Thread: AWT-Windows, state: RUNNABLE, total cpu time: 436.8028ms, total user time: 156.001ms
  sun.awt.windows.WToolkit.eventLoop(Native Method)
  sun.awt.windows.WToolkit.run(Unknown Source)
  java.lang.Thread.run(Unknown Source)

Thread: Java2D Disposer, state: WAITING, total cpu time: 15.6001ms, total user time: 15.6001ms
  java.lang.Object.wait(Native Method)
  java.lang.ref.ReferenceQueue.remove(Unknown Source)
  java.lang.ref.ReferenceQueue.remove(Unknown Source)
  sun.java2d.Disposer.run(Unknown Source)
  java.lang.Thread.run(Unknown Source)

Thread: [Timer] - Main Queue Handler, state: TIMED_WAITING, total cpu time: 0.0ms, total user time: 0.0ms
  java.lang.Object.wait(Native Method)
  org.eclipse.equinox.internal.util.impl.tpt.timer.TimerImpl.run(TimerImpl.java:141)
  java.lang.Thread.run(Unknown Source)

Thread: Framework Event Dispatcher, state: WAITING, total cpu time: 46.8003ms, total user time: 46.8003ms
  java.lang.Object.wait(Native Method)
  java.lang.Object.wait(Object.java:485)
  org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.getNextEvent(EventManager.java:397)
  org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:333)

Thread: Start Level Event Dispatcher, state: WAITING, total cpu time: 171.6011ms, total user time: 156.001ms
  java.lang.Object.wait(Native Method)
  java.lang.Object.wait(Object.java:485)
  org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.getNextEvent(EventManager.java:397)
  org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:333)

Thread: State Data Manager, state: TIMED_WAITING, total cpu time: 0.0ms, total user time: 0.0ms
  java.lang.Thread.sleep(Native Method)
  org.eclipse.osgi.internal.baseadaptor.StateManager.run(StateManager.java:306)
  java.lang.Thread.run(Unknown Source)

Thread: Attach Listener, state: RUNNABLE, total cpu time: 0.0ms, total user time: 0.0ms

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

Thread: Finalizer, state: WAITING, total cpu time: 31.2002ms, total user time: 31.2002ms
  java.lang.Object.wait(Native Method)
  java.lang.ref.ReferenceQueue.remove(Unknown Source)
  java.lang.ref.ReferenceQueue.remove(Unknown Source)
  java.lang.ref.Finalizer$FinalizerThread.run(Unknown Source)

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

Thread: main, state: RUNNABLE, total cpu time: 13681.2877ms, total user time: 11887.2762ms
  org.eclipse.swt.internal.win32.OS.WaitMessage(Native Method)
  org.eclipse.swt.widgets.Display.sleep(Display.java:4311)
  org.eclipse.ui.application.WorkbenchAdvisor.eventLoopIdle(WorkbenchAdvisor.java:364)
  org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2406)
  org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2369)
  org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2221)
  org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)
  org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
  org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:493)
  org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
  org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
  org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:194)
  org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
  org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
  org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:368)
  org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
  sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  java.lang.reflect.Method.invoke(Unknown Source)
  org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:559)
  org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
  org.eclipse.equinox.launcher.Main.run(Main.java:1311)

Hans Nieuwenhuis
Betagraphics
http://www.deltics.nl
http://www.betagraphics.nl

Servoy Version 7.3.1
Java version 1.7.0.x
Database Oracle 11g
User avatar
Hans Nieuwenhuis
 
Posts: 1026
Joined: Thu Apr 12, 2007 12:36 pm
Location: Hengelo, The Netherlands

Re: Question on headless client

Postby jcompagner » Thu Aug 25, 2011 5:00 pm

yes this is a know problem, and will not work correclty, also a fix for this is quite hard.

What you have there is a headless!! client that wants to create a form that has a UI!!! Bean on it.
Don't do that, headless client have no use what so ever for ui.
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 7970
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: Question on headless client

Postby Hans Nieuwenhuis » Thu Aug 25, 2011 5:04 pm

So, this can not be tested in developer ??

Only in server ??
Hans Nieuwenhuis
Betagraphics
http://www.deltics.nl
http://www.betagraphics.nl

Servoy Version 7.3.1
Java version 1.7.0.x
Database Oracle 11g
User avatar
Hans Nieuwenhuis
 
Posts: 1026
Joined: Thu Apr 12, 2007 12:36 pm
Location: Hengelo, The Netherlands

Re: Question on headless client

Postby jcompagner » Thu Aug 25, 2011 5:04 pm

no remove the bean...
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 7970
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: Question on headless client

Postby Hans Nieuwenhuis » Thu Aug 25, 2011 5:14 pm

This bean is needed for the interactive user login.

Is it not possible to bypass the login when the solution is started as a headless client ??
Hans Nieuwenhuis
Betagraphics
http://www.deltics.nl
http://www.betagraphics.nl

Servoy Version 7.3.1
Java version 1.7.0.x
Database Oracle 11g
User avatar
Hans Nieuwenhuis
 
Posts: 1026
Joined: Thu Apr 12, 2007 12:36 pm
Location: Hengelo, The Netherlands

Re: Question on headless client

Postby jasantana » Thu Aug 25, 2011 5:19 pm

When you start a SHC you can pass the login credentials. Look at the parameters of the createClient() method.
Best regards,
Juan Antonio Santana Medina
[email protected]
EAGER BEAVER 2011
EAGER BEAVER 2012
Servoy 6.x - Servoy 7.x - Servoy 8.x - MySQL - PostgreSQL - Visual Foxpro 9
User avatar
jasantana
 
Posts: 540
Joined: Tue Aug 10, 2010 11:40 am
Location: Leeds - West Yorkshire - United Kingdom

Re: Question on headless client

Postby Hans Nieuwenhuis » Thu Aug 25, 2011 5:25 pm

I think I fixed it,

I can bypass the form with the bean on it :

if(application.getApplicationType() != APPLICATION_TYPES.HEADLESS_CLIENT)
{
...
Hans Nieuwenhuis
Betagraphics
http://www.deltics.nl
http://www.betagraphics.nl

Servoy Version 7.3.1
Java version 1.7.0.x
Database Oracle 11g
User avatar
Hans Nieuwenhuis
 
Posts: 1026
Joined: Thu Apr 12, 2007 12:36 pm
Location: Hengelo, The Netherlands


Return to Servoy Headless Client

Who is online

Users browsing this forum: No registered users and 2 guests