cancel
Showing results for 
Search instead for 
Did you mean: 

problems trying to enable JavaScript Debugger

stk137
Champ in-the-making
Champ in-the-making
I am trying to enable the JavaScript debugger, but I get the following error.
This is on Linux.  How do I get this to work?

The Web Script /alfresco/service/api/javascript/debugger has responded with a status of 500 - Internal Error.

500 Description:   An error inside the HTTP server which prevented it from fulfilling the request.

Message:   <Not specified>

Exception:   java.awt.HeadlessException
   
   java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:159)
   java.awt.Window.(Window.java:317)
   java.awt.Frame.(Frame.java:419)
   javax.swing.JFrame.(JFrame.java:194)
   org.mozilla.javascript.tools.debugger.SwingGui.(SwingGui.java:153)
   org.alfresco.repo.jscript.AlfrescoRhinoScriptDebugger.activate(AlfrescoRhinoScriptDebugger.java:84)
   org.alfresco.repo.jscript.AlfrescoRhinoScriptDebugger.show(AlfrescoRhinoScriptDebugger.java:96)
   org.alfresco.web.scripts.bean.JavascriptDebuggerPost.executeImpl(JavascriptDebuggerPost.java:66)
   org.alfresco.web.scripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:98)
   org.alfresco.web.scripts.WebScriptRuntime.wrappedExecute(WebScriptRuntime.java:342)
   org.alfresco.web.scripts.WebScriptRuntime.authenticatedExecute(WebScriptRuntime.java:308)
   org.alfresco.web.scripts.WebScriptRuntime$1.execute(WebScriptRuntime.java:163)
   org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:225)
   org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:155)
   org.alfresco.web.scripts.WebScriptRuntime.executeScript(WebScriptRuntime.java:174)
   org.alfresco.web.scripts.WebScriptServlet.service(WebScriptServlet.java:109)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
   org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
   org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
   org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)
   org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
   org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
   org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
   org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
   org.josso.tc55.agent.SSOAgentValve.invoke(SSOAgentValve.java:552)
   org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
   org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
   org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870)
   org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
   org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
   org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
   org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)
   java.lang.Thread.run(Thread.java:595)
   
Server:   Alfresco Community Network v2.1.0 (482) schema 64
Time:   Aug 23, 2007 4:27:39 PM

Diagnostics:   Inspect Web Script (org/alfresco/jsdebugger.post)
2 REPLIES 2

mark_smithson
Champ in-the-making
Champ in-the-making
Hi,

The javascript debugger is a swing application which will require a graphical environment. It looks like your linux does not have X Windows installed and is running with a console only.

To use the debugger you will need to logon / connect to a graphical session on the server. The debugger is only for use on the same machine as alfresco is installed.

We use the debugger on local (developer) installs of Alfresco to test and debug scripts. We do not use it on our test or production servers (which are headless)

stk137
Champ in-the-making
Champ in-the-making

It looks like your linux does not have X Windows installed and is running with a console only.

Well that's not true.  I was running it locally.  I should have just assumed X was the cause and nothing I could change with how Alfresco is configured.  X seems to be one of the reasons that Linux never "just works" for me.

Thanks for the reply though.  I'll try get some X geek to sort it out for me.