Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception on X11 display when running headless #2269

Closed
Omertron opened this issue Mar 15, 2015 · 1 comment
Closed

Exception on X11 display when running headless #2269

Omertron opened this issue Mar 15, 2015 · 1 comment

Comments

@Omertron
Copy link
Member

Original issue 2270 created by Omertron on 2012-01-13T20:38:15.000Z:

What steps will reproduce the problem?
1.Run YAMJ/moviejukebox on headless Ubuntu server
2.
3.

What is the expected output? What do you see instead?
Expected output is probably a simple completion message. Instead I see:

Writing Indexes XML...
Indexing Other (1/7) contains 10 indexes
Indexing Genres (2/7) contains 5 indexes
Indexing Title (3/7) contains 16 indexes
Indexing Certification (4/7) contains 7 indexes
Indexing Year (5/7) contains 6 indexes
Indexing Library (6/7) contains 2 indexes
Indexing Set (7/7) contains 17 indexes
Exception in thread "main" java.lang.InternalError: Can't connect to X11 window server using 'localhost:10.0' as the value of the DISPLAY variable.
at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
at sun.awt.X11GraphicsEnvironment.access$100(X11GraphicsEnvironment.java:52)
at sun.awt.X11GraphicsEnvironment$1.run(X11GraphicsEnvironment.java:155)
at java.security.AccessController.doPrivileged(Native Method)
at sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:131)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:169)
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:68)
at sun.awt.X11.XToolkit.<clinit>(XToolkit.java:89)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:169)
at java.awt.Toolkit$2.run(Toolkit.java:834)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:826)
at java.awt.Image.getScaledInstance(Image.java:160)
at com.moviejukebox.tools.GraphicTools.scaleToSizeNormalized(GraphicTools.java:274)
at com.moviejukebox.plugin.DefaultImagePlugin.generate(DefaultImagePlugin.java:335)
at com.moviejukebox.MovieJukebox.createThumbnail(MovieJukebox.java:2305)
at com.moviejukebox.MovieJukebox.generateLibrary(MovieJukebox.java:1435)
at com.moviejukebox.MovieJukebox.main(MovieJukebox.java:464)
jeff@server:~/apps/YAMJ-2.6-SNAPSHOT-r2885$

What version/revision of YAMJ are you using? On what operating system?
I'm using YAMJ-2.6-SNAPSHOT-r2885

What skin are you using?
default

What device are you using YAMJ on? Networked Media Tank, PlayonHD, Other?
NMT soon, but haven't gotten that far yet.

Please provide any additional information below.

@Omertron
Copy link
Member Author

Comment #1 originally posted by Omertron on 2013-04-07T08:53:42.000Z:

On a fairly fresh install of Linux Mint 14 KDE I was getting similar error running r3676....Except my message was "... using ':0' "
After various googling I entered command: "unset DISPLAY"
after that, YAMJ seemed to finish correctly. Cheers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant