axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hiranya Jayathilaka (JIRA)" <>
Subject [jira] Commented: (AXIS2-4722) NPE Thrown When Enabling the UDP Listener Globally
Date Sun, 23 May 2010 11:09:16 GMT


Hiranya Jayathilaka commented on AXIS2-4722:

Hi Amila,

> If you have enable udp transport globally what you going to display in the wsdl endpoint?
you may display 
tcp://host:port/servicePath. isn't this a hack?

I don't think I got your point. Don't we already do this with HTTP transports? HTTP/S transports
are always configured in the axis2.xml  and services get HTTP endpoints like http://host:port/servicePath.
We rely on the usual dispatchers to dispatch the incoming requests. So similarly for TCP and
UDP transports services get endpoints like tcp://host:port/servicePath, which are perfectly
valid URLs and we depend on the dispatchers to do their job.

> NPE Thrown When Enabling the UDP Listener Globally
> --------------------------------------------------
>                 Key: AXIS2-4722
>                 URL:
>             Project: Axis2
>          Issue Type: Bug
>          Components: transports
>            Reporter: Hiranya Jayathilaka
>             Fix For: 1.6
>         Attachments: AXIS2-4722-update1.patch, AXIS2-4722.patch
> 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
> java.lang.NullPointerException
> 	at org.apache.axis2.transport.base.datagram.AbstractDatagramTransportListener.startEndpoint(
> 	at org.apache.axis2.transport.base.datagram.AbstractDatagramTransportListener.startEndpoint(
> 	at org.apache.axis2.transport.base.AbstractTransportListenerEx.init(
> 	at org.apache.axis2.transport.base.datagram.AbstractDatagramTransportListener.init(
> 	at org.apache.axis2.engine.ListenerManager.init(
> 	at samples.util.SampleAxis2ServerManager.start(
> 	at samples.util.SampleAxis2Server.startServer(
> 	at samples.util.SampleAxis2Server.main(
> I was able to reproduce this issue with Synapse and the sample Axis2 server that comes
with Synapse. I will soon attach a patch.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message