Hi Serge,
what am I doing wrong?
Connect string:jdbc:db2 ://hector:6789/dbhec
Error:dbAccess: setConnection() ::
Description=>co m.ibm.db2.jcc.a .DisconnectExce ption: A communication error
has been detected. Comm
unication protocol being used: Reply.fill(). Communication API being used:
InputStream.rea d(). Location where the error was detect
ed: Connection reset. Communication function detecting the error: *.
Protocol specific error codes(s) TCP/IP SOCKETS
com.ibm.db2.jcc .a.DisconnectEx ception: A communication error has been
detected. Communication protocol being used: Reply.fill(). C
ommunication API being used: InputStream.rea d(). Location where the error
was detected: Connection reset. Communication function d
etecting the error: *. Protocol specific error codes(s) TCP/IP SOCKETS
at com.ibm.db2.jcc .c.a.a(a.java:4 17)
at com.ibm.db2.jcc .c.ab.b(ab.java :173)
at com.ibm.db2.jcc .c.ab.c(ab.java :219)
at com.ibm.db2.jcc .c.ab.c(ab.java :333)
at com.ibm.db2.jcc .c.ab.v(ab.java :1434)
at com.ibm.db2.jcc .c.bb.a(bb.java :37)
at com.ibm.db2.jcc .c.b.d(b.java:1 096)
at com.ibm.db2.jcc .c.b.b(b.java:1 011)
at com.ibm.db2.jcc .c.b.m(b.java:7 95)
at com.ibm.db2.jcc .c.b.a(b.java:5 65)
at com.ibm.db2.jcc .c.b.<init>(b.j ava:288)
at com.ibm.db2.jcc .DB2Driver.conn ect(DB2Driver.j ava:162)
at java.sql.Driver Manager.getConn ection(Unknown Source)
at java.sql.Driver Manager.getConn ection(Unknown Source)
at db.DbConnection .setConnection( DbConnection.ja va:87)
at gui.Script.conn ectActionPerfor med(Script.java :1208)
at gui.Script$1.ac tionPerformed(S cript.java:166)
at javax.swing.Abs tractButton.fir eActionPerforme d(Unknown Source)
at javax.swing.Abs tractButton$Han dler.actionPerf ormed(Unknown
Source)
at javax.swing.Def aultButtonModel .fireActionPerf ormed(Unknown
Source)
at javax.swing.Def aultButtonModel .setPressed(Unk nown Source)
at javax.swing.pla f.basic.BasicBu ttonListener.mo useReleased(Unk nown
Source)
at java.awt.Compon ent.processMous eEvent(Unknown Source)
at javax.swing.JCo mponent.process MouseEvent(Unkn own Source)
at java.awt.Compon ent.processEven t(Unknown Source)
at java.awt.Contai ner.processEven t(Unknown Source)
at java.awt.Compon ent.dispatchEve ntImpl(Unknown Source)
at java.awt.Contai ner.dispatchEve ntImpl(Unknown Source)
at java.awt.Compon ent.dispatchEve nt(Unknown Source)
at java.awt.Lightw eightDispatcher .retargetMouseE vent(Unknown Source)
at java.awt.Lightw eightDispatcher .processMouseEv ent(Unknown Source)
at java.awt.Lightw eightDispatcher .dispatchEvent( Unknown Source)
at java.awt.Contai ner.dispatchEve ntImpl(Unknown Source)
at java.awt.Window .dispatchEventI mpl(Unknown Source)
at java.awt.Compon ent.dispatchEve nt(Unknown Source)
at java.awt.EventQ ueue.dispatchEv ent(Unknown Source)
at java.awt.EventD ispatchThread.p umpOneEventForH ierarchy(Unknow n
Source)
at java.awt.EventD ispatchThread.p umpEventsForHie rarchy(Unknown
Source)
at java.awt.EventD ispatchThread.p umpEvents(Unkno wn Source)
at java.awt.EventD ispatchThread.p umpEvents(Unkno wn Source)
at java.awt.EventD ispatchThread.r un(Unknown Source)
Error:dbAccess: setConnection() ::
Description=>co m.ibm.db2.jcc.a .DisconnectExce ption: A communication error
has been detected. Comm
unication protocol being used: Reply.fill(). Communication API being used:
InputStream.rea d(). Location where the error was detect
ed: Connection reset. Communication function detecting the error: *.
Protocol specific error codes(s) TCP/IP SOCKETS
com.ibm.db2.jcc .a.DisconnectEx ception: A communication error has been
detected. Communication protocol being used: Reply.fill(). C
ommunication API being used: InputStream.rea d(). Location where the error
was detected: Connection reset. Communication function d
etecting the error: *. Protocol specific error codes(s) TCP/IP SOCKETS
at com.ibm.db2.jcc .c.a.a(a.java:4 17)
at com.ibm.db2.jcc .c.ab.b(ab.java :173)
at com.ibm.db2.jcc .c.ab.c(ab.java :219)
at com.ibm.db2.jcc .c.ab.c(ab.java :333)
at com.ibm.db2.jcc .c.ab.v(ab.java :1434)
at com.ibm.db2.jcc .c.bb.a(bb.java :37)
at com.ibm.db2.jcc .c.b.d(b.java:1 096)
at com.ibm.db2.jcc .c.b.b(b.java:1 011)
at com.ibm.db2.jcc .c.b.m(b.java:7 95)
at com.ibm.db2.jcc .c.b.a(b.java:5 65)
at com.ibm.db2.jcc .c.b.<init>(b.j ava:288)
at com.ibm.db2.jcc .DB2Driver.conn ect(DB2Driver.j ava:162)
at java.sql.Driver Manager.getConn ection(Unknown Source)
at java.sql.Driver Manager.getConn ection(Unknown Source)
at db.DbConnection .setConnection( DbConnection.ja va:87)
at gui.Script.conn ectActionPerfor med(Script.java :1210)
at gui.Script$1.ac tionPerformed(S cript.java:166)
at javax.swing.Abs tractButton.fir eActionPerforme d(Unknown Source)
at javax.swing.Abs tractButton$Han dler.actionPerf ormed(Unknown
Source)
at javax.swing.Def aultButtonModel .fireActionPerf ormed(Unknown
Source)
at javax.swing.Def aultButtonModel .setPressed(Unk nown Source)
at javax.swing.pla f.basic.BasicBu ttonListener.mo useReleased(Unk nown
Source)
at java.awt.Compon ent.processMous eEvent(Unknown Source)
at javax.swing.JCo mponent.process MouseEvent(Unkn own Source)
at java.awt.Compon ent.processEven t(Unknown Source)
at java.awt.Contai ner.processEven t(Unknown Source)
at java.awt.Compon ent.dispatchEve ntImpl(Unknown Source)
at java.awt.Contai ner.dispatchEve ntImpl(Unknown Source)
at java.awt.Compon ent.dispatchEve nt(Unknown Source)
at java.awt.Lightw eightDispatcher .retargetMouseE vent(Unknown Source)
at java.awt.Lightw eightDispatcher .processMouseEv ent(Unknown Source)
at java.awt.Lightw eightDispatcher .dispatchEvent( Unknown Source)
at java.awt.Contai ner.dispatchEve ntImpl(Unknown Source)
at java.awt.Window .dispatchEventI mpl(Unknown Source)
at java.awt.Compon ent.dispatchEve nt(Unknown Source)
at java.awt.EventQ ueue.dispatchEv ent(Unknown Source)
at java.awt.EventD ispatchThread.p umpOneEventForH ierarchy(Unknow n
Source)
at java.awt.EventD ispatchThread.p umpEventsForHie rarchy(Unknown
Source)
at java.awt.EventD ispatchThread.p umpEvents(Unkno wn Source)
at java.awt.EventD ispatchThread.p umpEvents(Unkno wn Source)
at java.awt.EventD ispatchThread.r un(Unknown Source)
For those of you playing with SQL Procedures, here's useful toy - I hope.
http://www-106.ibm.com/developerwork...dm-0406rielau/
Enjoy
Serge
--
Serge Rielau
DB2 SQL Compiler Development
IBM Toronto Lab