Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0008799Openbravo ERPZ. Otherspublic2009-04-28 11:042009-05-09 00:00
plujan 
dalsasua 
urgentminorhave not tried
closedno change required 
30
main 
 
Core
No
0008799: Error message when compiliing on a machine without X server
I am compiling 2.50 Main on a Linux machine that has not graphic environment. While compiling, I have this error:

    [java] 0 [main] INFO org.openbravo.translate.Translate - RTL Skin directory source: /mnt2/OpenbravoERP-MAIN-Oracle/main/WebContent/web/skins/rtl
    [java] 0 [main] INFO org.openbravo.translate.Translate - LTR Skin directory source: /mnt2/OpenbravoERP-MAIN-Oracle/main/WebContent/web/skins/ltr
    [java] 1 [main] INFO org.openbravo.translate.Translate - Processing RTL skin Default
    [java] Exception in thread "main" java.lang.InternalError: Can't connect to X11 window server using ':0' as the value of the DISPLAY variable.
    [java] at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
    [java] at sun.awt.X11GraphicsEnvironment.access$100(X11GraphicsEnvironment.java:52)
    [java] at sun.awt.X11GraphicsEnvironment$1.run(X11GraphicsEnvironment.java:155)
    [java] at java.security.AccessController.doPrivileged(Native Method)
    [java] at sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:131)
    [java] at java.lang.Class.forName0(Native Method)
    [java] at java.lang.Class.forName(Class.java:169)
    [java] at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:68)
    [java] at java.awt.image.BufferedImage.createGraphics(BufferedImage.java:1135)
    [java] at org.openbravo.translate.FlipImage.flip(FlipImage.java:39)
    [java] at org.openbravo.translate.FlipImage.proceed(FlipImage.java:53)
    [java] at org.openbravo.translate.RTLSkin.modifySkin(RTLSkin.java:238)
    [java] at org.openbravo.translate.RTLSkin.runFolders(RTLSkin.java:145)
    [java] at org.openbravo.translate.RTLSkin.runFolders(RTLSkin.java:136)
    [java] at org.openbravo.translate.RTLSkin.runFolders(RTLSkin.java:136)
    [java] at org.openbravo.translate.RTLSkin.runFolders(RTLSkin.java:136)
    [java] at org.openbravo.translate.RTLSkin.main(RTLSkin.java:101)
    [java] Java Result: 1
250MP1
Issue History
2009-04-28 11:04plujanNew Issue
2009-04-28 11:04plujanAssigned To => dalsasua
2009-04-28 11:04plujanRegression testing => No
2009-04-28 11:04plujanStatusnew => scheduled
2009-04-28 11:04plujanfix_in_branch => pi
2009-04-28 11:04plujanTag Attached: 250MP1
2009-05-08 12:33vmromanosStatusscheduled => closed
2009-05-08 12:33vmromanosNote Added: 0016173
2009-05-08 12:33vmromanosResolutionopen => no change required
2009-05-09 00:00anonymoussf_bug_id0 => 2789240

Notes
(0016173)
vmromanos   
2009-05-08 12:33   
The problem is on the configuration of the computer which is running the installation.

The computer is not running a X server, but the $DISPLAY variable is set. Thus the compiler thinks that the X server is running.

The solution is to unset this variable, with the command:

unset DISPLAY


Take into account that this change will just affect the current session, so for a permanent fix you will need to edit the system file where this session variable is wrongly set.