Uploaded image for project: 'Axis2'
  1. Axis2
  2. AXIS2-5533

NPE Thrown When Enabling the UDP Listener Globally

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • UDP transport
    • None

    Description

      Steps to reproduce:

      1. Enable the UDP listener in the axis2.xml by adding the following entry:

      <transportReceiver name="udp" class="org.apache.axis2.transport.udp.UDPListener">
      <parameter name="transport.udp.port">9999</parameter>
      <parameter name="transport.udp.contentType">text/xml</parameter>
      </transportReceiver>

      2. Start the server and following NPE will be thrown:

      2010-05-20 16:02:43,890 [-] [main] ERROR ListenerManager Couldn't initialize the udptransport listener
      java.lang.NullPointerException
      at org.apache.axis2.transport.base.datagram.AbstractDatagramTransportListener.startEndpoint(AbstractDatagramTransportListener.java:75)
      at org.apache.axis2.transport.base.datagram.AbstractDatagramTransportListener.startEndpoint(AbstractDatagramTransportListener.java:31)
      at org.apache.axis2.transport.base.AbstractTransportListenerEx.init(AbstractTransportListenerEx.java:58)
      at org.apache.axis2.transport.base.datagram.AbstractDatagramTransportListener.init(AbstractDatagramTransportListener.java:41)
      at org.apache.axis2.engine.ListenerManager.init(ListenerManager.java:83)
      at samples.util.SampleAxis2ServerManager.start(SampleAxis2ServerManager.java:110)
      at samples.util.SampleAxis2Server.startServer(SampleAxis2Server.java:61)
      at samples.util.SampleAxis2Server.main(SampleAxis2Server.java:40)

      I was able to reproduce this issue with Synapse and the sample Axis2 server that comes with Synapse. I will soon attach a patch.

      Attachments

        1. AXIS2-4722.patch
          1 kB
          Hiranya Kasub Jayathilaka
        2. AXIS2-4722-update1.patch
          5 kB
          Hiranya Kasub Jayathilaka
        3. AXIS2-4722-update2.patch
          13 kB
          Hiranya Kasub Jayathilaka

        Activity

          People

            Unassigned Unassigned
            hiranya Hiranya Kasub Jayathilaka
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: