Consultor Eletrônico



Kbase 18687: Apptivity Error: Connection to ":0.0" Refused by Server
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   5/25/2001
This document applies to: Apptivity Server 3.0.x

SUMMARY:

The following errors may occur when running an Apptivity project
deployed on UNIX:

javawebserver: Xlib: connection to ":0.0" refused by server
javawebserver: Xlib: Client is not authorized to connect to Server
javawebserver: java.lang.InternalError: Can't connect to X11 window
server using ':0.0' as the value of the DISPLAY variable.

EXPLANATION:

This is because there is a call to abUtil.setResolution in the
project's .java file.

SOLUTION:

To work around this problem you can either
set the DISPLAY variable to a valid terminal setting or modify the
project .java file. Look for the setResolution line and remove that
from the init method. For example,

/*
This is where all of the support global objects are created,
these objects are:
Validator, Translators, InitValues, client event handlers, etc.
*/
public void init() throws Exception
{
abUtil.setResolution(1000); // REMOVE THIS LINE

//$BEGIN_CREATE_OBJECTS
...
}