Hitachi Vantara Pentaho Community Forums
Results 1 to 3 of 3

Thread: kitchen.sh X11 issue when using reporting engine

  1. #1
    Join Date
    Jan 2012
    Posts
    6

    Exclamation kitchen.sh X11 issue when using reporting engine

    Hi all,

    I'm switching my PDI from Windows to Linux, and I've an issue when I try to generate a pdf report file with a job using kitchen.sh :

    ERROR 27-05 11:49:34,373 - Writing PDF failed.
    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$200(X11GraphicsEnvironment.java:65)
    at sun.awt.X11GraphicsEnvironment$1.run(X11GraphicsEnvironment.java:110)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:74)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:188)
    at java.awt.GraphicsEnvironment.createGE(GraphicsEnvironment.java:102)
    at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:81)
    at java.awt.image.BufferedImage.createGraphics(BufferedImage.java:1152)
    ...


    the same scenario works if I launch it during an xterm session.

    Is there a way to use reporting engine without display


    Thanks in advance,

    Gaël

  2. #2
    Join Date
    Jan 2012
    Posts
    6

    Default

    I've found a solution, the problem isn't due to kettle reporting engine, but to my Linux configuration. I've solved it with the following export :

    export DISPLAY=:0.0 before launching kitchen.sh

    Gaël

  3. #3
    Join Date
    Mar 2003
    Posts
    8,085

    Default

    alternatively: Make sure you start Kitchen in headless mode. This switches the AWT into a mode where it does not use the X11 server at all.

    Add "-Djava.awt.headless=true" to your java call in kitchen.sh.
    Get the latest news and tips and tricks for Pentaho Reporting at the Pentaho Reporting Blog.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Privacy Policy | Legal Notices | Safe Harbor Privacy Policy

Copyright © 2005 - 2019 Hitachi Vantara Corporation. All Rights Reserved.