HeadlessException没有设置X11 DISPLAY变量

时间:2017-02-03 10:51:55

标签: java datasource ibm-midrange hikaricp

我正在尝试与As400数据库建立连接并获得设置X11 DISPLAY变量的异常。在我的本地环境中,它给出了来自AS400类的登录弹出,这不应该来,因为我已经指定了凭据。你能告诉我如何在没有登录弹出窗口的情况下建立连接。

  

引起:java.awt.HeadlessException:   没有设置X11 DISPLAY变量,但是该程序执行了需要它的操作。           at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:204)           在java.awt.Window。(Window.java:536)           在java.awt.Frame。(Frame.java:420)           在java.awt.Frame。(Frame.java:385)           在com.ibm.as400.access.ToolboxSignonHandler.displayMessage(ToolboxSignonHandler.java:336)           在com.ibm.as400.access.ToolboxSignonHandler.displayMessage(ToolboxSignonHandler.java:323)           在com.ibm.as400.access.ToolboxSignonHandler.passwordLengthIncorrect(ToolboxSignonHandler.java:154)           在com.ibm.as400.access.AS400.promptSignon(AS400.java:2772)           在com.ibm.as400.access.AS400.signon(AS400.java:4017)           在com.ibm.as400.access.AS400.connectService(AS400.java:1180)           在com.ibm.as400.access.AS400JDBCConnection.setProperties(AS400JDBCConnection.java:3324)           在com.ibm.as400.access.AS400JDBCDriver.prepareConnection(AS400JDBCDriver.java:1412)           在com.ibm.as400.access.AS400JDBCDriver.initializeConnection(AS400JDBCDriver.java:1249)           在com.ibm.as400.access.AS400JDBCDriver.connect(AS400JDBCDriver.java:388)           在com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:95)           在com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:101)           在com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:316)           在com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:506)           在com.zaxxer.hikari.pool.HikariPool。(HikariPool.java:118)           在com.zaxxer.hikari.HikariDataSource。(HikariDataSource.java:71)           at connectionpooling.spring.ConnectionManager.configureBoneCPDataSource(ConnectionManager.java:55)           at connectionpooling.actions.ConfigureConnectionPooling.executeAction(ConfigureConnectionPooling.java:41)           at connectionpooling.actions.ConfigureConnectionPooling.executeAction(ConfigureConnectionPooling.java:19)

0 个答案:

没有答案