Java application does not consider SCTP assoc to be up and NullPointerException is experienced

Solution Verified - Updated -

Issue

When the SCTP connection is established successfully, channelRegistered() method and channelActive() method of channel inbound handler should be invoked in the SCTP server application.

When the SCTP connection is established successfully, only channelRegistered() method of channel inbound handler is invoked and channelActive() method has not triggered to invoke.

Oracle Java Bug Database

Java server app error:

# java TestSctpSvr 10.10.10.2 10000
SCTP_INIT_MAXSTREAMS,in = 65535, out = 10
SCTP_INIT_MAXSTREAMS,in = 10, out = 20
Client connection received from [/10.10.10.1:20000], association = null
Exception in thread "main" java.lang.NullPointerException
    at TestSctpSvr.main(TestSctpSvr.java:41)

Java client app error:

# java TestSctpCli 10.10.10.1 20000 10.10.10.2 10000
SO_RCVBUF = 65536
SO_SNDBUF = 65536
SCTP_DISABLE_FRAGMENTS = false
SCTP_INIT_MAXSTREAMS,in = 65535, out = 10
SCTP_INIT_MAXSTREAMS,in = 100, out = 200
Exception in thread "main" java.lang.NullPointerException
    at TestSctpCli.main(TestSctpCli.java:42)

Environment

  • Red Hat Enterprise Linux 8
  • SCTP

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content