zk tries to connect to X11 when DISPLAY is set

Description

I get the following error message when starting the zk client. This happens when I started the server with "idempiere-server.sh" or "/etc/initd./idempiere start" (which itself calls idempiere-server.sh) while logged in with X11 forwarding enabled. That means: There is a guilty DISPLAY variable when I start the server.

Can't connect to X11 window server using 'localhost:10.0' as the value of the DISPLAY variable.
Could not initialize class org.compiere.model.MTreeNode

The zk server should not depend on X11, regardless of the DISPLAY variable.

Environment

External server, logged in with ssh and X11 forwarding enabled (aka "ssh -X"). I use that as my default in my network.

Attachments

2

Activity

Show:

Thomas Bayen January 7, 2014 at 4:08 PM

It seems that the "JIRA Capture" Screenshot is no more shown in the ticket. To clarify the point: The message comes in a small error window inside the browser after logging in. After closing this error message the browser goes to the login screen again. So the program becomes unusual.

Thomas Bayen January 7, 2014 at 3:57 PM

This patch is only one simple line in idempiere-server.sh

I applied it on top of the patch of so do not wonder if it will not direct apply to the trunk.

Fixed

Details

Assignee

Reporter

Labels

Components

Affects versions

Priority

Created January 7, 2014 at 2:03 PM
Updated June 6, 2014 at 2:27 PM
Resolved January 8, 2014 at 1:45 PM