如何从Bluemix上的应用程序部署访问内部部署数据库DB2?[closed]

i7uaboj4  于 2022-11-07  发布在  DB2
关注(0)|答案(1)|浏览(104)

**已关闭。**此问题不符合Stack Overflow guidelines。当前不接受答案。

此问题似乎与a specific programming problem, a software algorithm, or software tools primarily used by programmers无关。如果您认为此问题与another Stack Exchange site相关,您可以留下评论,说明在何处可以找到此问题的答案。
去年关闭了。
Improve this question
我配置了安全网关,并尝试连接到内部部署数据库。我收到以下错误消息:

[err] com.ibm.db2.jcc.am.DisconnectNonTransientConnectionException: [jcc][t4][2030][11211][4.12.55] A communication error occurred during operations on the connection's underlying socket, socket input stream,
6/3/2016 5:49:31 PM ERR App or socket output stream.  Error location: Reply.fill() - insufficient data (-1).  Message: Insufficient data. ERRORCODE=-4499, SQLSTATE=08001
6/3/2016 5:49:31 PM ERR App [err]   
App [err] at com.ibm.db2.jcc.am.hd.a(hd.java:319)
App [err] at com.ibm.db2.jcc.t4.a.a(a.java:461)
App [err] at com.ibm.db2.jcc.t4.a.a(a.java:456)
App [err] at com.ibm.db2.jcc.t4.z.b(z.java:242)
App [err] at com.ibm.db2.jcc.t4.z.c(z.java:268)
App [err] at com.ibm.db2.jcc.t4.z.c(z.java:381)
App [err] at com.ibm.db2.jcc.t4.z.v(z.java:1149)
App [err] at com.ibm.db2.jcc.t4.ab.a(ab.java:45)
App [err]   at com.ibm.db2.jcc.t4.b.n(b.java:1251)
App [err]   at com.ibm.db2.jcc.t4.b.b(b.java:1123)
App [err]   at com.ibm.db2.jcc.t4.b.d(b.java:717)
App [err]   at com.ibm.db2.jcc.t4.b.c(b.java:703)
App [err]   at com.ibm.db2.jcc.t4.b.a(b.java:391)
App [err]   at com.ibm.db2.jcc.t4.b.<init>(b.java:320)
App [err]   at com.ibm.db2.jcc.DB2SimpleDataSource.getConnection(DB2SimpleDataSource.java:214)
App [err]   at com.ibm.db2.jcc.DB2Driver.connect(DB2Driver.java:460)
App [err]   at java.sql.DriverManager.getConnection(Unknown Source)
App [err]   at wasdev.sample.servlet.DBServlet.getTargetDBConnection(DBServlet.java:127)
App [err]   at wasdev.sample.servlet.DBServlet.doGet(DBServlet.java:60)
App [err]   at javax.servlet.http.HttpServlet.service(HttpServlet.java:687)
App [err]   at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
App [err]   at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1290)
App [err]   at [internal classes]
App [err]   at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
App [err]   at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
App [err]   at java.lang.Thread.run(Unknown Source)

相关问题