axis-java-dev mailing list archives

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

    [ https://issues.apache.org/jira/browse/AXIS2-4722?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12870393#action_12870393
] 

Hiranya Jayathilaka commented on AXIS2-4722:
--------------------------------------------

> For UDP and TCP (as implemented in Axis2) the servicePath information is not exchanged
at the transport protocol level, but at the SOAP level (assuming that WS-Addressing is enabled)

Agreed. However it all boils down to one thing. Having the ability to configure the UDP transport
at global level is a useful feature. Currently the bugs reported here prevent us from doing
that. So we should get them fixed.

BTW on a slightly different note, I've been going through the SOAP over UDP spec for the last
few days. The spec also mentions about UDP multicasting. I've been working on a patch for
the UDP transport which adds multicast support to the transport. With that we can also support
multicast request - unicast response MEP. I will open a new JIRA and submit the patch once
this issue is resolved. I think that will be a good feature addition since some of the new
WS-* specs also make use of the above mentioned MEP.

> NPE Thrown When Enabling the UDP Listener Globally
> --------------------------------------------------
>
>                 Key: AXIS2-4722
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4722
>             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
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.

-- 
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: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


Mime
View raw message