cancel
Showing results for 
Search instead for 
Did you mean: 

Debugger in Headless

ale_carraro
Champ in-the-making
Champ in-the-making
In a recent post, I found the instructions about enabling the JS debugger. Courious, I tried to enable it, but

Web Script Status 500 - Internal Error

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:   No X11 DISPLAY variable was set, but this program performed an operation which requires it.

Exception:   java.awt.HeadlessException - No X11 DISPLAY variable was set, but this program performed an operation which requires it.

I know perfectly what's happening and why, but I do not understand why you need a X server running to activate a debugger….
5 REPLIES 5

kevinr
Star Contributor
Star Contributor
The JavaScript debugger is a Java Swing window that opens on the server machine - so you server machine will need a GUI for it.

Kevin

rsulliv1
Champ in-the-making
Champ in-the-making
Kevin or other engineer,

Can you shed some more light on this issue?

I verified that my server is running a X11 server & I can open windowed apps without issue.

I then opened a firefox session on the server and then tried to start the javascript debugger. The same 500 X11 error is occurring.

Is there any wiki page or documentation around configuring the javascript debugger?

billmce
Champ in-the-making
Champ in-the-making
I've got the same problem … would really appreciate an answer to this issue as it seems to come up all over the forums.

kevinr
Star Contributor
Star Contributor
I don't know unfortunately, I'll ask our QA labs if they have a similar setup.

Kev

steve
Champ in-the-making
Champ in-the-making
Hi,
Have you set up your Display variable?
I suggest you google 'no x11 display variable was set, but this program performed an operation which requires it.' for more information on how to do this if you don't already know…

Steve