Open mp911de opened 1 year ago
Thanks Mark. Will check this out.
Can you please share the code sample that caused this issue?
It is essentially the following code block either during Docker startup (when the server does not listen yet on port 50000
or when the database initialization has failed):
DB2ConnectionFactory cf = new DB2ConnectionFactory(DB2ConnectionConfiguration.builder()
.host("localhost")
.port(50000)
.database("testdb")
.username("db2inst1")
.password("foobar").build()
);
cf.create().block();
Connecting fails quite often with
NullPointerException
when either the remote peer closes the connection immediately (e.g. when DB2 within docker doesn't listen and the docker portforwarding closes the connection right after connecting or afterInternal Error - Remote System CCSID Manager is unknown
)stack trace: