[jbosstools-issues] [JBoss JIRA] (JBDS-3391) Installer should not require UI to report errors in automated mode

Jan Richter (JIRA) issues at jboss.org
Wed Apr 22 03:40:33 EDT 2015


     [ https://issues.jboss.org/browse/JBDS-3391?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jan Richter closed JBDS-3391.
-----------------------------


Verified, closing

> Installer should not require UI to report errors in automated mode
> ------------------------------------------------------------------
>
>                 Key: JBDS-3391
>                 URL: https://issues.jboss.org/browse/JBDS-3391
>             Project: Developer Studio (JBoss Developer Studio)
>          Issue Type: Bug
>          Components: installer
>    Affects Versions: 9.0.0.Alpha1
>            Reporter: Denis Golovin
>            Assignee: Denis Golovin
>             Fix For: 9.0.0.Alpha2
>
>
> Currently if installer has problems installing JBDS in headless (automated) mode it tries to show error dialog. It works for normal installation when it is called with GUI available, but if fails if GUI is not available. 
> {code}Exception in thread "IzPack - Unpacker thread" java.lang.InternalError: Can't connect to X11 window server using '' 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:191)
> 	at java.awt.GraphicsEnvironment.createGE(GraphicsEnvironment.java:102)
> 	at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:81)
> 	at sun.awt.X11.XToolkit.<clinit>(XToolkit.java:120)
> 	at java.lang.Class.forName0(Native Method)
> 	at java.lang.Class.forName(Class.java:191)
> 	at java.awt.Toolkit$2.run(Toolkit.java:869)
> 	at java.security.AccessController.doPrivileged(Native Method)
> 	at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:861)
> 	at javax.swing.ImageIcon.<init>(ImageIcon.java:186)
> 	at javax.swing.ImageIcon.<init>(ImageIcon.java:205)
> 	at com.izforge.izpack.installer.ResourceManager.getImageIconResource(Unknown Source)
> 	at com.izforge.izpack.installer.Unpacker.run(Unpacker.java:614)
> 	at java.lang.Thread.run(Thread.java:745)
> {code}
> Most resent example is installer headless tests was failing to show installation error and we had to enable tracing to find the reason. Installer should recognize automated mode, print error message to standard error output and return appropriate error code.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


More information about the jbosstools-issues mailing list