|
Problem(Abstract) |
Connection to AS/400® IBM® DB2® Datasource fails:
[4/7/05 13:59:15:550 EDT] 10efb8a DataSourceCon E DSRA8040I: Failed to
connect to the DataSource. Encountered :
java.lang.InternalError: Can't connect to X11 window server
using 'localhost:0.0' as the value of the DISPLAY variable.
at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
at sun.awt.X11GraphicsEnvironment.<clinit>
(X11GraphicsEnvironment.java:134)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:141) |
|
|
|
Cause |
The AS/400 JDBC driver has properties that allow for a
user to be prompted. This fails if the username has not been passed to the
getConnection() method or if the data source configuration has not
specified a J2C authentication alias. |
|
|
Resolving the
problem |
Ensure that the username is passed on the getConnection()
call.
If the application is using Container-managed Authentication or
Component-managed Authentication, then confirm that the J2C authentication
alias is specified correctly for the data source defined. This is done
through the administrative console.
If the application is not using a J2C authentication alias defined on the
data source, ensure that the username and password are being passed on the
getConnection() call.
To find the Javacdocs for the AS/400 JDBC driver, see the Javadoc
available from the IBM®
iSeries® Information Center Version 5 Release 3 (V5R3).
The specific JDBC properties that can be set can be found here: IBM
Toolbox for Java™ JDBC properties. |
|
|