You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Hiranya Jayathilaka (JIRA)" <ji...@apache.org> on 2010/05/20 12:51:54 UTC

[jira] Created: (AXIS2-4722) NPE Thrown When Enabling the UDP Listener Globally

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


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


[jira] Commented: (AXIS2-4722) NPE Thrown When Enabling the UDP Listener Globally

Posted by "Hiranya Jayathilaka (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4722?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12870363#action_12870363 ] 

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

Hi Andreas,

Could you please provide some feedback on my last few comments? Based on that I think we can either work on new patch or go ahead and apply my last patch.

I also have a few more patches/improvements lined up for the UDP transport. So it will be helpful if we can finalize the work on this issue before we go onto other new issues.

Thanks,
Hiranya

> 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


[jira] Commented: (AXIS2-4722) NPE Thrown When Enabling the UDP Listener Globally

Posted by "Hiranya Jayathilaka (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4722?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12869857#action_12869857 ] 

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

Hi Andreas,

Thanks for the feedback. I think for the first problem we can simply move the super.init to the end of the init method as you have proposed. 

For the second problem, do we have a way to figure out whether an endpoint has been defined at the transport level? Also wouldn't implementing this strategy effect certain other transports, such as JMS and Mail? This is the reason why I added the new attribute. For transports like Mail we do not want to configure endpoints at transport level. So if such functionality is required (as in the case of UDP) a transport would set the attribute to 'true'.

Please provide your feedback. I'll provide a new patch based on that.

Thanks,
Hiranya

> 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


[jira] Commented: (AXIS2-4722) NPE Thrown When Enabling the UDP Listener Globally

Posted by "Andreas Veithen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4722?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12869705#action_12869705 ] 

Andreas Veithen commented on AXIS2-4722:
----------------------------------------

With respect to the first problem/patch: I think it would be easier to move the call to super.init to the end of the init method in AbstractDatagramTransportListener. Can you test that solution?

> 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


[jira] Commented: (AXIS2-4722) NPE Thrown When Enabling the UDP Listener Globally

Posted by "Hiranya Jayathilaka (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4722?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12870388#action_12870388 ] 

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: 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


[jira] Commented: (AXIS2-4722) NPE Thrown When Enabling the UDP Listener Globally

Posted by "Amila Chinthaka Suriarachchi (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4722?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12870280#action_12870280 ] 

Amila Chinthaka Suriarachchi commented on AXIS2-4722:
-----------------------------------------------------

I did not go through the code. But I think transport like SMTP, UDP, TCP should always configured at the service level.

if you configure the UDP in global level how you going to dispatch the service?

As I remember earlier Axis2 smtp transport uses one global address and used an header to dispatch service. But that was not a standard way.


> 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


[jira] Commented: (AXIS2-4722) NPE Thrown When Enabling the UDP Listener Globally

Posted by "Hiranya Jayathilaka (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4722?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12870363#action_12870363 ] 

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

Hi Andreas,

Could you please provide some feedback on my last few comments? Based on that I think we can either work on new patch or go ahead and apply my last patch.

I also have a few more patches/improvements lined up for the UDP transport. So it will be helpful if we can finalize the work on this issue before we go onto other new issues.

Thanks,
Hiranya

> 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


[jira] Commented: (AXIS2-4722) NPE Thrown When Enabling the UDP Listener Globally

Posted by "Hiranya Jayathilaka (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4722?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12870286#action_12870286 ] 

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

Hi Amila,

Dispatching can take place based on the addressing headers or based on the first element of the SOAP body. This actually works. Currently the TCP transport can only be configured globally and yet it works fine. Dispatching takes place as expected. Also with the patches UDP transport also works when configured in the axis2.xml.

Thanks,
Hiranya

> 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


[jira] Commented: (AXIS2-4722) NPE Thrown When Enabling the UDP Listener Globally

Posted by "Hiranya Jayathilaka (JIRA)" <ji...@apache.org>.
    [ 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


[jira] Commented: (AXIS2-4722) NPE Thrown When Enabling the UDP Listener Globally

Posted by "Andreas Veithen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4722?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12870438#action_12870438 ] 

Andreas Veithen commented on AXIS2-4722:
----------------------------------------

Applied your last patch without changes. Will think a bit more about the two issues and maybe do some changes later.

> 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-update2.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


[jira] Issue Comment Edited: (AXIS2-4722) NPE Thrown When Enabling the UDP Listener Globally

Posted by "Hiranya Jayathilaka (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4722?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12870363#action_12870363 ] 

Hiranya Jayathilaka edited comment on AXIS2-4722 at 5/23/10 2:58 AM:
---------------------------------------------------------------------

Hi Andreas,

Could you please provide some feedback on my last few comments? Based on that I think I can either work on a new patch or we can go ahead and apply my last patch.

I also have a few more other patches/improvements lined up for the UDP transport. So it will be helpful if we can finalize the work on this issue before we go onto other new issues.

Thanks,
Hiranya

      was (Author: hiranya):
    Hi Andreas,

Could you please provide some feedback on my last few comments? Based on that I think we can either work on new patch or go ahead and apply my last patch.

I also have a few more patches/improvements lined up for the UDP transport. So it will be helpful if we can finalize the work on this issue before we go onto other new issues.

Thanks,
Hiranya
  
> 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


[jira] Commented: (AXIS2-4722) NPE Thrown When Enabling the UDP Listener Globally

Posted by "Hiranya Jayathilaka (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4722?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12869877#action_12869877 ] 

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

Hi Andreas,

It seems we cannot just move the super.init call further down either (wrt to the first problem). It causes a NPE during transport initialization as discovered by the UDP test cases:

java.lang.NullPointerException
        at org.apache.axis2.transport.base.AbstractTransportListener.getTransportName(AbstractTransportListener.java:351)
        at org.apache.axis2.transport.udp.UDPListener.createDispatcher(UDPListener.java:48)
        at org.apache.axis2.transport.udp.UDPListener.createDispatcher(UDPListener.java:44)
        at org.apache.axis2.transport.base.datagram.AbstractDatagramTransportListener.init(AbstractDatagramTransportListener.java:50)
        at org.apache.axis2.engine.ListenerManager.addListener(ListenerManager.java:260)
        at org.apache.axis2.description.ClientUtils.inferInTransport(ClientUtils.java:122)
        at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:183)

Basically the dispatcher cannot be created prior to initializing the rest of the transport. It requires certain attributes of the transport to be initialized first. So I guess my first patch still holds valid :)

Thanks,
Hiranya

> 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


[jira] Commented: (AXIS2-4722) NPE Thrown When Enabling the UDP Listener Globally

Posted by "Hiranya Jayathilaka (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4722?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12870511#action_12870511 ] 

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

Thanks Andreas. And yes, we'll continue to look for a better solution.

> 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-update2.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


[jira] Commented: (AXIS2-4722) NPE Thrown When Enabling the UDP Listener Globally

Posted by "Andreas Veithen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4722?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12870390#action_12870390 ] 

Andreas Veithen commented on AXIS2-4722:
----------------------------------------

> Don't we already do this with HTTP transports?

Yes and no. There is one important difference. In HTTP, the transformation is exchanged at the transport protocol level (in the HTTP request line). 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).

> 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


[jira] Updated: (AXIS2-4722) NPE Thrown When Enabling the UDP Listener Globally

Posted by "Hiranya Jayathilaka (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-4722?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Hiranya Jayathilaka updated AXIS2-4722:
---------------------------------------

    Attachment: AXIS2-4722-update1.patch

Here's a patch that resolves both the above mentioned problems. I added a new boolean flag to the AbstractTransportListenerEx called useGlobalListener. If this is set to true a service can receive messages through a globally configured listener even if the transport is not configured at service level. I have set the default value of the flag to be false, so that the existing behavior of other transports (JMS, Mail etc) are not altered by any means.


> 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


[jira] Moved: (TRANSPORTS-11) NPE Thrown When Enabling the UDP Listener Globally

Posted by "Andreas Veithen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TRANSPORTS-11?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andreas Veithen moved AXIS2-4722 to TRANSPORTS-11:
--------------------------------------------------

          Project: Axis2 Transports  (was: Axis2)
              Key: TRANSPORTS-11  (was: AXIS2-4722)
    Fix Version/s: 1.1.0
                       (was: 1.6)
      Component/s: UDP
                       (was: transports)

> NPE Thrown When Enabling the UDP Listener Globally
> --------------------------------------------------
>
>                 Key: TRANSPORTS-11
>                 URL: https://issues.apache.org/jira/browse/TRANSPORTS-11
>             Project: Axis2 Transports
>          Issue Type: Bug
>          Components: UDP
>            Reporter: Hiranya Jayathilaka
>             Fix For: 1.1.0
>
>         Attachments: AXIS2-4722-update1.patch, AXIS2-4722-update2.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


[jira] Commented: (AXIS2-4722) NPE Thrown When Enabling the UDP Listener Globally

Posted by "Hiranya Jayathilaka (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4722?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12870286#action_12870286 ] 

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

Hi Amila,

Dispatching can take place based on the addressing headers or based on the first element of the SOAP body. This actually works. Currently the TCP transport can only be configured globally and yet it works fine. Dispatching takes place as expected. Also with the patches UDP transport also works when configured in the axis2.xml.

Thanks,
Hiranya

> 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


[jira] Commented: (AXIS2-4722) NPE Thrown When Enabling the UDP Listener Globally

Posted by "Amila Chinthaka Suriarachchi (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4722?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12870280#action_12870280 ] 

Amila Chinthaka Suriarachchi commented on AXIS2-4722:
-----------------------------------------------------

I did not go through the code. But I think transport like SMTP, UDP, TCP should always configured at the service level.

if you configure the UDP in global level how you going to dispatch the service?

As I remember earlier Axis2 smtp transport uses one global address and used an header to dispatch service. But that was not a standard way.


> 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


[jira] Commented: (AXIS2-4722) NPE Thrown When Enabling the UDP Listener Globally

Posted by "Andreas Veithen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4722?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12869705#action_12869705 ] 

Andreas Veithen commented on AXIS2-4722:
----------------------------------------

With respect to the first problem/patch: I think it would be easier to move the call to super.init to the end of the init method in AbstractDatagramTransportListener. Can you test that solution?

> 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


[jira] Commented: (AXIS2-4722) NPE Thrown When Enabling the UDP Listener Globally

Posted by "Hiranya Jayathilaka (JIRA)" <ji...@apache.org>.
    [ 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


[jira] Commented: (AXIS2-4722) NPE Thrown When Enabling the UDP Listener Globally

Posted by "Hiranya Jayathilaka (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4722?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12869857#action_12869857 ] 

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

Hi Andreas,

Thanks for the feedback. I think for the first problem we can simply move the super.init to the end of the init method as you have proposed. 

For the second problem, do we have a way to figure out whether an endpoint has been defined at the transport level? Also wouldn't implementing this strategy effect certain other transports, such as JMS and Mail? This is the reason why I added the new attribute. For transports like Mail we do not want to configure endpoints at transport level. So if such functionality is required (as in the case of UDP) a transport would set the attribute to 'true'.

Please provide your feedback. I'll provide a new patch based on that.

Thanks,
Hiranya

> 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


[jira] Commented: (AXIS2-4722) NPE Thrown When Enabling the UDP Listener Globally

Posted by "Andreas Veithen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4722?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12870438#action_12870438 ] 

Andreas Veithen commented on AXIS2-4722:
----------------------------------------

Applied your last patch without changes. Will think a bit more about the two issues and maybe do some changes later.

> 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-update2.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


[jira] Issue Comment Edited: (AXIS2-4722) NPE Thrown When Enabling the UDP Listener Globally

Posted by "Andreas Veithen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4722?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12870390#action_12870390 ] 

Andreas Veithen edited comment on AXIS2-4722 at 5/23/10 7:35 AM:
-----------------------------------------------------------------

> Don't we already do this with HTTP transports?

Yes and no. There is one important difference. In HTTP, the information is exchanged at the transport protocol level (in the HTTP request line). 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).

      was (Author: veithen):
    > Don't we already do this with HTTP transports?

Yes and no. There is one important difference. In HTTP, the transformation is exchanged at the transport protocol level (in the HTTP request line). 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).
  
> 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


[jira] Commented: (AXIS2-4722) NPE Thrown When Enabling the UDP Listener Globally

Posted by "Andreas Veithen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4722?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12870390#action_12870390 ] 

Andreas Veithen commented on AXIS2-4722:
----------------------------------------

> Don't we already do this with HTTP transports?

Yes and no. There is one important difference. In HTTP, the transformation is exchanged at the transport protocol level (in the HTTP request line). 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).

> 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


[jira] Commented: (AXIS2-4722) NPE Thrown When Enabling the UDP Listener Globally

Posted by "Andreas Veithen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4722?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12870389#action_12870389 ] 

Andreas Veithen commented on AXIS2-4722:
----------------------------------------

> 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?

There is a proposal [1] for a SOAP over UDP protocol that does exactly that. It's from Microsoft, but that doesn't mean that is necessarily a hack... IIRC, there is also a proposal for a SOAP over TCP spec from Sun that uses the same approach.

[1] http://specs.xmlsoap.org/ws/2004/09/soap-over-udp/soap-over-udp.pdf

> on the other hand thinking in wsdl way always an endpoint is associated with a service. So service dispatching should happen with the transport properties. 

Not sure what you mean by "service dispatching should happen with the transport properties". Can you explain this a bit more?

> There are transport which has an explicit back channel (eg. http, tcp, udp) with which you can do asynchronous without any problem.

Using the back channel means that your _interaction_ style is synchronous. Of course, you can always use the asynchronous _invocation_ style with this, but that is not really the topic here.

> But for smtp, jms there are no such back channels so you need to use some other transport specific mechanism or addressing. 

Currently, Axis2 supports the asynchronous interaction style in two different ways:
* The transport sender waits for the response (see JMS). That is appropriate if one wants to use the synchronous invocation style with the asynchronous interaction style.
* WS-Addressing is used. On the client side this requires to open an endpoint for the asynchronous responses. That endpoint is not linked to a service and needs to be configured at the transport level (exactly as with HTTP). My first point was about this case.

[BTW: There is a weakness here in Axis2, because this doesn't provide a satisfactory solution for the scenario where one wants to use the asynchronous invocation style with JMS...]

> 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


[jira] Commented: (AXIS2-4722) NPE Thrown When Enabling the UDP Listener Globally

Posted by "Hiranya Jayathilaka (JIRA)" <ji...@apache.org>.
    [ 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


[jira] Commented: (AXIS2-4722) NPE Thrown When Enabling the UDP Listener Globally

Posted by "Hiranya Jayathilaka (JIRA)" <ji...@apache.org>.
    [ 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


[jira] Commented: (AXIS2-4722) NPE Thrown When Enabling the UDP Listener Globally

Posted by "Hiranya Jayathilaka (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4722?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12869564#action_12869564 ] 

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

There is actually another problem in UDP transport. Even if you have configured the UDP listener globally, each service has to be explicitly configured for the UDP transport. Otherwise the following error will be displayed:

2010-05-20 16:43:58,507 [-] [main]  INFO UDPListener UDP Listener started
2010-05-20 16:43:58,507 [-] [main]  WARN UDPListener Unable to configure the service SimpleStockQuoteService for the UDP transport: Service doesn't have configuration information for transport udp. This service is being marked as faulty and will not be available over the UDP transport.
2010-05-20 16:43:58,507 [-] [main]  WARN UDPListener Disabling the udp transport for the service SimpleStockQuoteService, because it is not configured properly for the service

So basically the listener configured at the axis2.xml is useless. I would expect a service to use the global listener when it is not configured for the UDP transport. WDYT?

> 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.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


[jira] Commented: (AXIS2-4722) NPE Thrown When Enabling the UDP Listener Globally

Posted by "Hiranya Jayathilaka (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4722?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12869564#action_12869564 ] 

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

There is actually another problem in UDP transport. Even if you have configured the UDP listener globally, each service has to be explicitly configured for the UDP transport. Otherwise the following error will be displayed:

2010-05-20 16:43:58,507 [-] [main]  INFO UDPListener UDP Listener started
2010-05-20 16:43:58,507 [-] [main]  WARN UDPListener Unable to configure the service SimpleStockQuoteService for the UDP transport: Service doesn't have configuration information for transport udp. This service is being marked as faulty and will not be available over the UDP transport.
2010-05-20 16:43:58,507 [-] [main]  WARN UDPListener Disabling the udp transport for the service SimpleStockQuoteService, because it is not configured properly for the service

So basically the listener configured at the axis2.xml is useless. I would expect a service to use the global listener when it is not configured for the UDP transport. WDYT?

> 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.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


[jira] Commented: (AXIS2-4722) NPE Thrown When Enabling the UDP Listener Globally

Posted by "Andreas Veithen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4722?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12870389#action_12870389 ] 

Andreas Veithen commented on AXIS2-4722:
----------------------------------------

> 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?

There is a proposal [1] for a SOAP over UDP protocol that does exactly that. It's from Microsoft, but that doesn't mean that is necessarily a hack... IIRC, there is also a proposal for a SOAP over TCP spec from Sun that uses the same approach.

[1] http://specs.xmlsoap.org/ws/2004/09/soap-over-udp/soap-over-udp.pdf

> on the other hand thinking in wsdl way always an endpoint is associated with a service. So service dispatching should happen with the transport properties. 

Not sure what you mean by "service dispatching should happen with the transport properties". Can you explain this a bit more?

> There are transport which has an explicit back channel (eg. http, tcp, udp) with which you can do asynchronous without any problem.

Using the back channel means that your _interaction_ style is synchronous. Of course, you can always use the asynchronous _invocation_ style with this, but that is not really the topic here.

> But for smtp, jms there are no such back channels so you need to use some other transport specific mechanism or addressing. 

Currently, Axis2 supports the asynchronous interaction style in two different ways:
* The transport sender waits for the response (see JMS). That is appropriate if one wants to use the synchronous invocation style with the asynchronous interaction style.
* WS-Addressing is used. On the client side this requires to open an endpoint for the asynchronous responses. That endpoint is not linked to a service and needs to be configured at the transport level (exactly as with HTTP). My first point was about this case.

[BTW: There is a weakness here in Axis2, because this doesn't provide a satisfactory solution for the scenario where one wants to use the asynchronous invocation style with JMS...]

> 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


[jira] Issue Comment Edited: (AXIS2-4722) NPE Thrown When Enabling the UDP Listener Globally

Posted by "Andreas Veithen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4722?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12870390#action_12870390 ] 

Andreas Veithen edited comment on AXIS2-4722 at 5/23/10 7:35 AM:
-----------------------------------------------------------------

> Don't we already do this with HTTP transports?

Yes and no. There is one important difference. In HTTP, the information is exchanged at the transport protocol level (in the HTTP request line). 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).

      was (Author: veithen):
    > Don't we already do this with HTTP transports?

Yes and no. There is one important difference. In HTTP, the transformation is exchanged at the transport protocol level (in the HTTP request line). 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).
  
> 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


[jira] Commented: (AXIS2-4722) NPE Thrown When Enabling the UDP Listener Globally

Posted by "Hiranya Jayathilaka (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4722?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12870363#action_12870363 ] 

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

Hi Andreas,

Could you please provide some feedback on my last few comments? Based on that I think we can either work on new patch or go ahead and apply my last patch.

I also have a few more patches/improvements lined up for the UDP transport. So it will be helpful if we can finalize the work on this issue before we go onto other new issues.

Thanks,
Hiranya

> 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


[jira] Issue Comment Edited: (AXIS2-4722) NPE Thrown When Enabling the UDP Listener Globally

Posted by "Andreas Veithen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4722?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12870390#action_12870390 ] 

Andreas Veithen edited comment on AXIS2-4722 at 5/23/10 7:35 AM:
-----------------------------------------------------------------

> Don't we already do this with HTTP transports?

Yes and no. There is one important difference. In HTTP, the information is exchanged at the transport protocol level (in the HTTP request line). 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).

      was (Author: veithen):
    > Don't we already do this with HTTP transports?

Yes and no. There is one important difference. In HTTP, the transformation is exchanged at the transport protocol level (in the HTTP request line). 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).
  
> 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


[jira] Commented: (AXIS2-4722) NPE Thrown When Enabling the UDP Listener Globally

Posted by "Hiranya Jayathilaka (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4722?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12870388#action_12870388 ] 

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: 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


[jira] Commented: (AXIS2-4722) NPE Thrown When Enabling the UDP Listener Globally

Posted by "Amila Chinthaka Suriarachchi (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4722?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12870280#action_12870280 ] 

Amila Chinthaka Suriarachchi commented on AXIS2-4722:
-----------------------------------------------------

I did not go through the code. But I think transport like SMTP, UDP, TCP should always configured at the service level.

if you configure the UDP in global level how you going to dispatch the service?

As I remember earlier Axis2 smtp transport uses one global address and used an header to dispatch service. But that was not a standard way.


> 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


[jira] Moved: (TRANSPORTS-11) NPE Thrown When Enabling the UDP Listener Globally

Posted by "Andreas Veithen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TRANSPORTS-11?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andreas Veithen moved AXIS2-4722 to TRANSPORTS-11:
--------------------------------------------------

          Project: Axis2 Transports  (was: Axis2)
              Key: TRANSPORTS-11  (was: AXIS2-4722)
    Fix Version/s: 1.1.0
                       (was: 1.6)
      Component/s: UDP
                       (was: transports)

> NPE Thrown When Enabling the UDP Listener Globally
> --------------------------------------------------
>
>                 Key: TRANSPORTS-11
>                 URL: https://issues.apache.org/jira/browse/TRANSPORTS-11
>             Project: Axis2 Transports
>          Issue Type: Bug
>          Components: UDP
>            Reporter: Hiranya Jayathilaka
>             Fix For: 1.1.0
>
>         Attachments: AXIS2-4722-update1.patch, AXIS2-4722-update2.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


[jira] Commented: (AXIS2-4722) NPE Thrown When Enabling the UDP Listener Globally

Posted by "Andreas Veithen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4722?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12870389#action_12870389 ] 

Andreas Veithen commented on AXIS2-4722:
----------------------------------------

> 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?

There is a proposal [1] for a SOAP over UDP protocol that does exactly that. It's from Microsoft, but that doesn't mean that is necessarily a hack... IIRC, there is also a proposal for a SOAP over TCP spec from Sun that uses the same approach.

[1] http://specs.xmlsoap.org/ws/2004/09/soap-over-udp/soap-over-udp.pdf

> on the other hand thinking in wsdl way always an endpoint is associated with a service. So service dispatching should happen with the transport properties. 

Not sure what you mean by "service dispatching should happen with the transport properties". Can you explain this a bit more?

> There are transport which has an explicit back channel (eg. http, tcp, udp) with which you can do asynchronous without any problem.

Using the back channel means that your _interaction_ style is synchronous. Of course, you can always use the asynchronous _invocation_ style with this, but that is not really the topic here.

> But for smtp, jms there are no such back channels so you need to use some other transport specific mechanism or addressing. 

Currently, Axis2 supports the asynchronous interaction style in two different ways:
* The transport sender waits for the response (see JMS). That is appropriate if one wants to use the synchronous invocation style with the asynchronous interaction style.
* WS-Addressing is used. On the client side this requires to open an endpoint for the asynchronous responses. That endpoint is not linked to a service and needs to be configured at the transport level (exactly as with HTTP). My first point was about this case.

[BTW: There is a weakness here in Axis2, because this doesn't provide a satisfactory solution for the scenario where one wants to use the asynchronous invocation style with JMS...]

> 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


[jira] Commented: (AXIS2-4722) NPE Thrown When Enabling the UDP Listener Globally

Posted by "Andreas Veithen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4722?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12869715#action_12869715 ] 

Andreas Veithen commented on AXIS2-4722:
----------------------------------------

With respect to the second problem/patch: introducing the useGlobalListener flag implies that this is a property of the transport. I'm not sure about this. I think it only depends on the way the transport is configured. Probably the rule should be :

* If the service has no configuration for the given transport and an endpoint is defined at the transport level, then just return.
* If the service has no configuration and no endpoint is defined at the transport level, then there is something wrong and startListeningForService should throw an exception.

> 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


[jira] Commented: (AXIS2-4722) NPE Thrown When Enabling the UDP Listener Globally

Posted by "Andreas Veithen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4722?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12870390#action_12870390 ] 

Andreas Veithen commented on AXIS2-4722:
----------------------------------------

> Don't we already do this with HTTP transports?

Yes and no. There is one important difference. In HTTP, the transformation is exchanged at the transport protocol level (in the HTTP request line). 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).

> 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


[jira] Commented: (AXIS2-4722) NPE Thrown When Enabling the UDP Listener Globally

Posted by "Hiranya Jayathilaka (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4722?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12870286#action_12870286 ] 

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

Hi Amila,

Dispatching can take place based on the addressing headers or based on the first element of the SOAP body. This actually works. Currently the TCP transport can only be configured globally and yet it works fine. Dispatching takes place as expected. Also with the patches UDP transport also works when configured in the axis2.xml.

Thanks,
Hiranya

> 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


[jira] Updated: (AXIS2-4722) NPE Thrown When Enabling the UDP Listener Globally

Posted by "Hiranya Jayathilaka (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-4722?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Hiranya Jayathilaka updated AXIS2-4722:
---------------------------------------

    Attachment: AXIS2-4722-update1.patch

Here's a patch that resolves both the above mentioned problems. I added a new boolean flag to the AbstractTransportListenerEx called useGlobalListener. If this is set to true a service can receive messages through a globally configured listener even if the transport is not configured at service level. I have set the default value of the flag to be false, so that the existing behavior of other transports (JMS, Mail etc) are not altered by any means.


> 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


[jira] Commented: (AXIS2-4722) NPE Thrown When Enabling the UDP Listener Globally

Posted by "Andreas Veithen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4722?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12870389#action_12870389 ] 

Andreas Veithen commented on AXIS2-4722:
----------------------------------------

> 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?

There is a proposal [1] for a SOAP over UDP protocol that does exactly that. It's from Microsoft, but that doesn't mean that is necessarily a hack... IIRC, there is also a proposal for a SOAP over TCP spec from Sun that uses the same approach.

[1] http://specs.xmlsoap.org/ws/2004/09/soap-over-udp/soap-over-udp.pdf

> on the other hand thinking in wsdl way always an endpoint is associated with a service. So service dispatching should happen with the transport properties. 

Not sure what you mean by "service dispatching should happen with the transport properties". Can you explain this a bit more?

> There are transport which has an explicit back channel (eg. http, tcp, udp) with which you can do asynchronous without any problem.

Using the back channel means that your _interaction_ style is synchronous. Of course, you can always use the asynchronous _invocation_ style with this, but that is not really the topic here.

> But for smtp, jms there are no such back channels so you need to use some other transport specific mechanism or addressing. 

Currently, Axis2 supports the asynchronous interaction style in two different ways:
* The transport sender waits for the response (see JMS). That is appropriate if one wants to use the synchronous invocation style with the asynchronous interaction style.
* WS-Addressing is used. On the client side this requires to open an endpoint for the asynchronous responses. That endpoint is not linked to a service and needs to be configured at the transport level (exactly as with HTTP). My first point was about this case.

[BTW: There is a weakness here in Axis2, because this doesn't provide a satisfactory solution for the scenario where one wants to use the asynchronous invocation style with JMS...]

> 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


[jira] Moved: (TRANSPORTS-11) NPE Thrown When Enabling the UDP Listener Globally

Posted by "Andreas Veithen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TRANSPORTS-11?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andreas Veithen moved AXIS2-4722 to TRANSPORTS-11:
--------------------------------------------------

          Project: Axis2 Transports  (was: Axis2)
              Key: TRANSPORTS-11  (was: AXIS2-4722)
    Fix Version/s: 1.1.0
                       (was: 1.6)
      Component/s: UDP
                       (was: transports)

> NPE Thrown When Enabling the UDP Listener Globally
> --------------------------------------------------
>
>                 Key: TRANSPORTS-11
>                 URL: https://issues.apache.org/jira/browse/TRANSPORTS-11
>             Project: Axis2 Transports
>          Issue Type: Bug
>          Components: UDP
>            Reporter: Hiranya Jayathilaka
>             Fix For: 1.1.0
>
>         Attachments: AXIS2-4722-update1.patch, AXIS2-4722-update2.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


[jira] Updated: (AXIS2-4722) NPE Thrown When Enabling the UDP Listener Globally

Posted by "Hiranya Jayathilaka (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-4722?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Hiranya Jayathilaka updated AXIS2-4722:
---------------------------------------

    Attachment: AXIS2-4722-update2.patch

Same as my previous patch, but with better code formatting.

Summary:
1. We have to introduce the new method initDispatcher to the AbstractDatagramTransportListener. We cannot just move the super.init call further down, since the dispatcher initialization requires certain other attributes of the transport to be initialized first. So the super.init must go first.

2. We are yet to find an alternative solution for the useGlobalListener flag. We need a way to determine whether an endpoint has been configured at transport level.

> 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-update2.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


[jira] Commented: (AXIS2-4722) NPE Thrown When Enabling the UDP Listener Globally

Posted by "Hiranya Jayathilaka (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4722?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12870511#action_12870511 ] 

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

Thanks Andreas. And yes, we'll continue to look for a better solution.

> 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-update2.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


[jira] Commented: (AXIS2-4722) NPE Thrown When Enabling the UDP Listener Globally

Posted by "Andreas Veithen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4722?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12870364#action_12870364 ] 

Andreas Veithen commented on AXIS2-4722:
----------------------------------------

With respect to the question whether it makes sense to enable protocol endpoints at the transport level or whether they should always be configured at the service level:

1. Enabling protocol endpoints at the transport level makes always sense on the client side in order to create a channel for asynchronous responses. If I remember well, it was in that context (for the mail transport) that I introduced the feature (but with the server side case also in mind).

2. The TCP transport uses EPRs in the form tcp://host:port/servicePath. This means that if the TCP port is configured at the transport level, Axis2 will be able to dispatch using standard dispatchers, provided that WS-Addressing is enabled. That is how the current version of the TCP transport works, but Hiranya's idea to enable per-service TCP endpoints would allow using the TCP transport in a wider range of scenarios.

3. Amila is correct in saying that there is something missing for the mail and JMS transports. The reason is that the EPRs for these transports don't contain the service path (and that can't be changed). Thus, even when WS-Addressing is used, Axis2 will not be able to dispatch to the right service. What is missing is a set of specialized dispatchers suitable for these transports.

> 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


[jira] Commented: (AXIS2-4722) NPE Thrown When Enabling the UDP Listener Globally

Posted by "Amila Chinthaka Suriarachchi (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4722?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12870379#action_12870379 ] 

Amila Chinthaka Suriarachchi commented on AXIS2-4722:
-----------------------------------------------------

This is what I am thinking.

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? here we have we have define some thing to work with our axis2 dispatchers. (both Addressing and soap body based dispatchers assume this)

on the other hand thinking in wsdl way always an endpoint is associated with a service. So service dispatching should happen with the transport properties. 

I am not clear about your first point. There are transport which has an explicit back channel (eg. http, tcp, udp) with which you can do asynchronous without any problem.  But for smtp, jms there are no such back channels so you need to use some other transport specific mechanism or addressing.


> 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


[jira] Commented: (AXIS2-4722) NPE Thrown When Enabling the UDP Listener Globally

Posted by "Andreas Veithen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4722?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12870364#action_12870364 ] 

Andreas Veithen commented on AXIS2-4722:
----------------------------------------

With respect to the question whether it makes sense to enable protocol endpoints at the transport level or whether they should always be configured at the service level:

1. Enabling protocol endpoints at the transport level makes always sense on the client side in order to create a channel for asynchronous responses. If I remember well, it was in that context (for the mail transport) that I introduced the feature (but with the server side case also in mind).

2. The TCP transport uses EPRs in the form tcp://host:port/servicePath. This means that if the TCP port is configured at the transport level, Axis2 will be able to dispatch using standard dispatchers, provided that WS-Addressing is enabled. That is how the current version of the TCP transport works, but Hiranya's idea to enable per-service TCP endpoints would allow using the TCP transport in a wider range of scenarios.

3. Amila is correct in saying that there is something missing for the mail and JMS transports. The reason is that the EPRs for these transports don't contain the service path (and that can't be changed). Thus, even when WS-Addressing is used, Axis2 will not be able to dispatch to the right service. What is missing is a set of specialized dispatchers suitable for these transports.

> 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


[jira] Commented: (AXIS2-4722) NPE Thrown When Enabling the UDP Listener Globally

Posted by "Hiranya Jayathilaka (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4722?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12870511#action_12870511 ] 

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

Thanks Andreas. And yes, we'll continue to look for a better solution.

> 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-update2.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


[jira] Updated: (AXIS2-4722) NPE Thrown When Enabling the UDP Listener Globally

Posted by "Hiranya Jayathilaka (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-4722?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Hiranya Jayathilaka updated AXIS2-4722:
---------------------------------------

    Attachment: AXIS2-4722-update2.patch

Same as my previous patch, but with better code formatting.

Summary:
1. We have to introduce the new method initDispatcher to the AbstractDatagramTransportListener. We cannot just move the super.init call further down, since the dispatcher initialization requires certain other attributes of the transport to be initialized first. So the super.init must go first.

2. We are yet to find an alternative solution for the useGlobalListener flag. We need a way to determine whether an endpoint has been configured at transport level.

> 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-update2.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


[jira] Commented: (AXIS2-4722) NPE Thrown When Enabling the UDP Listener Globally

Posted by "Hiranya Jayathilaka (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4722?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12869877#action_12869877 ] 

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

Hi Andreas,

It seems we cannot just move the super.init call further down either (wrt to the first problem). It causes a NPE during transport initialization as discovered by the UDP test cases:

java.lang.NullPointerException
        at org.apache.axis2.transport.base.AbstractTransportListener.getTransportName(AbstractTransportListener.java:351)
        at org.apache.axis2.transport.udp.UDPListener.createDispatcher(UDPListener.java:48)
        at org.apache.axis2.transport.udp.UDPListener.createDispatcher(UDPListener.java:44)
        at org.apache.axis2.transport.base.datagram.AbstractDatagramTransportListener.init(AbstractDatagramTransportListener.java:50)
        at org.apache.axis2.engine.ListenerManager.addListener(ListenerManager.java:260)
        at org.apache.axis2.description.ClientUtils.inferInTransport(ClientUtils.java:122)
        at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:183)

Basically the dispatcher cannot be created prior to initializing the rest of the transport. It requires certain attributes of the transport to be initialized first. So I guess my first patch still holds valid :)

Thanks,
Hiranya

> 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


[jira] Updated: (AXIS2-4722) NPE Thrown When Enabling the UDP Listener Globally

Posted by "Hiranya Jayathilaka (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-4722?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Hiranya Jayathilaka updated AXIS2-4722:
---------------------------------------

    Attachment: AXIS2-4722-update2.patch

Same as my previous patch, but with better code formatting.

Summary:
1. We have to introduce the new method initDispatcher to the AbstractDatagramTransportListener. We cannot just move the super.init call further down, since the dispatcher initialization requires certain other attributes of the transport to be initialized first. So the super.init must go first.

2. We are yet to find an alternative solution for the useGlobalListener flag. We need a way to determine whether an endpoint has been configured at transport level.

> 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-update2.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


[jira] Commented: (AXIS2-4722) NPE Thrown When Enabling the UDP Listener Globally

Posted by "Amila Chinthaka Suriarachchi (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4722?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12870280#action_12870280 ] 

Amila Chinthaka Suriarachchi commented on AXIS2-4722:
-----------------------------------------------------

I did not go through the code. But I think transport like SMTP, UDP, TCP should always configured at the service level.

if you configure the UDP in global level how you going to dispatch the service?

As I remember earlier Axis2 smtp transport uses one global address and used an header to dispatch service. But that was not a standard way.


> 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


[jira] Commented: (AXIS2-4722) NPE Thrown When Enabling the UDP Listener Globally

Posted by "Amila Chinthaka Suriarachchi (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4722?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12870379#action_12870379 ] 

Amila Chinthaka Suriarachchi commented on AXIS2-4722:
-----------------------------------------------------

This is what I am thinking.

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? here we have we have define some thing to work with our axis2 dispatchers. (both Addressing and soap body based dispatchers assume this)

on the other hand thinking in wsdl way always an endpoint is associated with a service. So service dispatching should happen with the transport properties. 

I am not clear about your first point. There are transport which has an explicit back channel (eg. http, tcp, udp) with which you can do asynchronous without any problem.  But for smtp, jms there are no such back channels so you need to use some other transport specific mechanism or addressing.


> 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


[jira] Moved: (TRANSPORTS-11) NPE Thrown When Enabling the UDP Listener Globally

Posted by "Andreas Veithen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TRANSPORTS-11?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andreas Veithen moved AXIS2-4722 to TRANSPORTS-11:
--------------------------------------------------

          Project: Axis2 Transports  (was: Axis2)
              Key: TRANSPORTS-11  (was: AXIS2-4722)
    Fix Version/s: 1.1.0
                       (was: 1.6)
      Component/s: UDP
                       (was: transports)

> NPE Thrown When Enabling the UDP Listener Globally
> --------------------------------------------------
>
>                 Key: TRANSPORTS-11
>                 URL: https://issues.apache.org/jira/browse/TRANSPORTS-11
>             Project: Axis2 Transports
>          Issue Type: Bug
>          Components: UDP
>            Reporter: Hiranya Jayathilaka
>             Fix For: 1.1.0
>
>         Attachments: AXIS2-4722-update1.patch, AXIS2-4722-update2.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


[jira] Updated: (AXIS2-4722) NPE Thrown When Enabling the UDP Listener Globally

Posted by "Hiranya Jayathilaka (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-4722?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Hiranya Jayathilaka updated AXIS2-4722:
---------------------------------------

    Attachment: AXIS2-4722-update1.patch

Here's a patch that resolves both the above mentioned problems. I added a new boolean flag to the AbstractTransportListenerEx called useGlobalListener. If this is set to true a service can receive messages through a globally configured listener even if the transport is not configured at service level. I have set the default value of the flag to be false, so that the existing behavior of other transports (JMS, Mail etc) are not altered by any means.


> 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


[jira] Updated: (AXIS2-4722) NPE Thrown When Enabling the UDP Listener Globally

Posted by "Hiranya Jayathilaka (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-4722?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Hiranya Jayathilaka updated AXIS2-4722:
---------------------------------------

    Attachment: AXIS2-4722.patch

Attaching patch. This fix makes sure that dispatcher is properly initialized before attempting to invoke any of its methods.

> 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.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


[jira] Commented: (AXIS2-4722) NPE Thrown When Enabling the UDP Listener Globally

Posted by "Andreas Veithen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4722?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12869715#action_12869715 ] 

Andreas Veithen commented on AXIS2-4722:
----------------------------------------

With respect to the second problem/patch: introducing the useGlobalListener flag implies that this is a property of the transport. I'm not sure about this. I think it only depends on the way the transport is configured. Probably the rule should be :

* If the service has no configuration for the given transport and an endpoint is defined at the transport level, then just return.
* If the service has no configuration and no endpoint is defined at the transport level, then there is something wrong and startListeningForService should throw an exception.

> 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


[jira] Updated: (AXIS2-4722) NPE Thrown When Enabling the UDP Listener Globally

Posted by "Hiranya Jayathilaka (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-4722?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Hiranya Jayathilaka updated AXIS2-4722:
---------------------------------------

    Attachment: AXIS2-4722-update2.patch

Same as my previous patch, but with better code formatting.

Summary:
1. We have to introduce the new method initDispatcher to the AbstractDatagramTransportListener. We cannot just move the super.init call further down, since the dispatcher initialization requires certain other attributes of the transport to be initialized first. So the super.init must go first.

2. We are yet to find an alternative solution for the useGlobalListener flag. We need a way to determine whether an endpoint has been configured at transport level.

> 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-update2.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


[jira] Updated: (AXIS2-4722) NPE Thrown When Enabling the UDP Listener Globally

Posted by "Hiranya Jayathilaka (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-4722?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Hiranya Jayathilaka updated AXIS2-4722:
---------------------------------------

    Attachment: AXIS2-4722.patch

Attaching patch. This fix makes sure that dispatcher is properly initialized before attempting to invoke any of its methods.

> 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.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


[jira] Commented: (AXIS2-4722) NPE Thrown When Enabling the UDP Listener Globally

Posted by "Hiranya Jayathilaka (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4722?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12870363#action_12870363 ] 

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

Hi Andreas,

Could you please provide some feedback on my last few comments? Based on that I think we can either work on new patch or go ahead and apply my last patch.

I also have a few more patches/improvements lined up for the UDP transport. So it will be helpful if we can finalize the work on this issue before we go onto other new issues.

Thanks,
Hiranya

> 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


[jira] Commented: (AXIS2-4722) NPE Thrown When Enabling the UDP Listener Globally

Posted by "Andreas Veithen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4722?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12870390#action_12870390 ] 

Andreas Veithen commented on AXIS2-4722:
----------------------------------------

> Don't we already do this with HTTP transports?

Yes and no. There is one important difference. In HTTP, the transformation is exchanged at the transport protocol level (in the HTTP request line). 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).

> 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


[jira] Commented: (AXIS2-4722) NPE Thrown When Enabling the UDP Listener Globally

Posted by "Hiranya Jayathilaka (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4722?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12869877#action_12869877 ] 

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

Hi Andreas,

It seems we cannot just move the super.init call further down either (wrt to the first problem). It causes a NPE during transport initialization as discovered by the UDP test cases:

java.lang.NullPointerException
        at org.apache.axis2.transport.base.AbstractTransportListener.getTransportName(AbstractTransportListener.java:351)
        at org.apache.axis2.transport.udp.UDPListener.createDispatcher(UDPListener.java:48)
        at org.apache.axis2.transport.udp.UDPListener.createDispatcher(UDPListener.java:44)
        at org.apache.axis2.transport.base.datagram.AbstractDatagramTransportListener.init(AbstractDatagramTransportListener.java:50)
        at org.apache.axis2.engine.ListenerManager.addListener(ListenerManager.java:260)
        at org.apache.axis2.description.ClientUtils.inferInTransport(ClientUtils.java:122)
        at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:183)

Basically the dispatcher cannot be created prior to initializing the rest of the transport. It requires certain attributes of the transport to be initialized first. So I guess my first patch still holds valid :)

Thanks,
Hiranya

> 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


[jira] Issue Comment Edited: (AXIS2-4722) NPE Thrown When Enabling the UDP Listener Globally

Posted by "Andreas Veithen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4722?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12870390#action_12870390 ] 

Andreas Veithen edited comment on AXIS2-4722 at 5/23/10 7:35 AM:
-----------------------------------------------------------------

> Don't we already do this with HTTP transports?

Yes and no. There is one important difference. In HTTP, the information is exchanged at the transport protocol level (in the HTTP request line). 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).

      was (Author: veithen):
    > Don't we already do this with HTTP transports?

Yes and no. There is one important difference. In HTTP, the transformation is exchanged at the transport protocol level (in the HTTP request line). 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).
  
> 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


[jira] Issue Comment Edited: (AXIS2-4722) NPE Thrown When Enabling the UDP Listener Globally

Posted by "Hiranya Jayathilaka (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4722?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12870363#action_12870363 ] 

Hiranya Jayathilaka edited comment on AXIS2-4722 at 5/23/10 2:58 AM:
---------------------------------------------------------------------

Hi Andreas,

Could you please provide some feedback on my last few comments? Based on that I think I can either work on a new patch or we can go ahead and apply my last patch.

I also have a few more other patches/improvements lined up for the UDP transport. So it will be helpful if we can finalize the work on this issue before we go onto other new issues.

Thanks,
Hiranya

      was (Author: hiranya):
    Hi Andreas,

Could you please provide some feedback on my last few comments? Based on that I think we can either work on new patch or go ahead and apply my last patch.

I also have a few more patches/improvements lined up for the UDP transport. So it will be helpful if we can finalize the work on this issue before we go onto other new issues.

Thanks,
Hiranya
  
> 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


[jira] Updated: (AXIS2-4722) NPE Thrown When Enabling the UDP Listener Globally

Posted by "Hiranya Jayathilaka (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-4722?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Hiranya Jayathilaka updated AXIS2-4722:
---------------------------------------

    Attachment: AXIS2-4722.patch

Attaching patch. This fix makes sure that dispatcher is properly initialized before attempting to invoke any of its methods.

> 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.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


[jira] Commented: (AXIS2-4722) NPE Thrown When Enabling the UDP Listener Globally

Posted by "Hiranya Jayathilaka (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4722?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12870511#action_12870511 ] 

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

Thanks Andreas. And yes, we'll continue to look for a better solution.

> 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-update2.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


[jira] Commented: (AXIS2-4722) NPE Thrown When Enabling the UDP Listener Globally

Posted by "Hiranya Jayathilaka (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4722?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12870388#action_12870388 ] 

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: 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


[jira] Commented: (AXIS2-4722) NPE Thrown When Enabling the UDP Listener Globally

Posted by "Amila Chinthaka Suriarachchi (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4722?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12870379#action_12870379 ] 

Amila Chinthaka Suriarachchi commented on AXIS2-4722:
-----------------------------------------------------

This is what I am thinking.

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? here we have we have define some thing to work with our axis2 dispatchers. (both Addressing and soap body based dispatchers assume this)

on the other hand thinking in wsdl way always an endpoint is associated with a service. So service dispatching should happen with the transport properties. 

I am not clear about your first point. There are transport which has an explicit back channel (eg. http, tcp, udp) with which you can do asynchronous without any problem.  But for smtp, jms there are no such back channels so you need to use some other transport specific mechanism or addressing.


> 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


[jira] Updated: (AXIS2-4722) NPE Thrown When Enabling the UDP Listener Globally

Posted by "Hiranya Jayathilaka (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-4722?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Hiranya Jayathilaka updated AXIS2-4722:
---------------------------------------

    Attachment: AXIS2-4722.patch

Attaching patch. This fix makes sure that dispatcher is properly initialized before attempting to invoke any of its methods.

> 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.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


[jira] Updated: (AXIS2-4722) NPE Thrown When Enabling the UDP Listener Globally

Posted by "Hiranya Jayathilaka (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-4722?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Hiranya Jayathilaka updated AXIS2-4722:
---------------------------------------

    Attachment: AXIS2-4722-update1.patch

Here's a patch that resolves both the above mentioned problems. I added a new boolean flag to the AbstractTransportListenerEx called useGlobalListener. If this is set to true a service can receive messages through a globally configured listener even if the transport is not configured at service level. I have set the default value of the flag to be false, so that the existing behavior of other transports (JMS, Mail etc) are not altered by any means.


> 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


[jira] Commented: (AXIS2-4722) NPE Thrown When Enabling the UDP Listener Globally

Posted by "Amila Chinthaka Suriarachchi (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4722?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12870379#action_12870379 ] 

Amila Chinthaka Suriarachchi commented on AXIS2-4722:
-----------------------------------------------------

This is what I am thinking.

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? here we have we have define some thing to work with our axis2 dispatchers. (both Addressing and soap body based dispatchers assume this)

on the other hand thinking in wsdl way always an endpoint is associated with a service. So service dispatching should happen with the transport properties. 

I am not clear about your first point. There are transport which has an explicit back channel (eg. http, tcp, udp) with which you can do asynchronous without any problem.  But for smtp, jms there are no such back channels so you need to use some other transport specific mechanism or addressing.


> 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


[jira] Commented: (AXIS2-4722) NPE Thrown When Enabling the UDP Listener Globally

Posted by "Hiranya Jayathilaka (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4722?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12870388#action_12870388 ] 

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: 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


[jira] Commented: (AXIS2-4722) NPE Thrown When Enabling the UDP Listener Globally

Posted by "Andreas Veithen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4722?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12869715#action_12869715 ] 

Andreas Veithen commented on AXIS2-4722:
----------------------------------------

With respect to the second problem/patch: introducing the useGlobalListener flag implies that this is a property of the transport. I'm not sure about this. I think it only depends on the way the transport is configured. Probably the rule should be :

* If the service has no configuration for the given transport and an endpoint is defined at the transport level, then just return.
* If the service has no configuration and no endpoint is defined at the transport level, then there is something wrong and startListeningForService should throw an exception.

> 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


[jira] Commented: (AXIS2-4722) NPE Thrown When Enabling the UDP Listener Globally

Posted by "Hiranya Jayathilaka (JIRA)" <ji...@apache.org>.
    [ 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


[jira] Commented: (AXIS2-4722) NPE Thrown When Enabling the UDP Listener Globally

Posted by "Andreas Veithen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4722?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12870364#action_12870364 ] 

Andreas Veithen commented on AXIS2-4722:
----------------------------------------

With respect to the question whether it makes sense to enable protocol endpoints at the transport level or whether they should always be configured at the service level:

1. Enabling protocol endpoints at the transport level makes always sense on the client side in order to create a channel for asynchronous responses. If I remember well, it was in that context (for the mail transport) that I introduced the feature (but with the server side case also in mind).

2. The TCP transport uses EPRs in the form tcp://host:port/servicePath. This means that if the TCP port is configured at the transport level, Axis2 will be able to dispatch using standard dispatchers, provided that WS-Addressing is enabled. That is how the current version of the TCP transport works, but Hiranya's idea to enable per-service TCP endpoints would allow using the TCP transport in a wider range of scenarios.

3. Amila is correct in saying that there is something missing for the mail and JMS transports. The reason is that the EPRs for these transports don't contain the service path (and that can't be changed). Thus, even when WS-Addressing is used, Axis2 will not be able to dispatch to the right service. What is missing is a set of specialized dispatchers suitable for these transports.

> 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


[jira] Commented: (AXIS2-4722) NPE Thrown When Enabling the UDP Listener Globally

Posted by "Andreas Veithen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4722?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12870438#action_12870438 ] 

Andreas Veithen commented on AXIS2-4722:
----------------------------------------

Applied your last patch without changes. Will think a bit more about the two issues and maybe do some changes later.

> 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-update2.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


[jira] Commented: (AXIS2-4722) NPE Thrown When Enabling the UDP Listener Globally

Posted by "Andreas Veithen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4722?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12869715#action_12869715 ] 

Andreas Veithen commented on AXIS2-4722:
----------------------------------------

With respect to the second problem/patch: introducing the useGlobalListener flag implies that this is a property of the transport. I'm not sure about this. I think it only depends on the way the transport is configured. Probably the rule should be :

* If the service has no configuration for the given transport and an endpoint is defined at the transport level, then just return.
* If the service has no configuration and no endpoint is defined at the transport level, then there is something wrong and startListeningForService should throw an exception.

> 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


[jira] Commented: (AXIS2-4722) NPE Thrown When Enabling the UDP Listener Globally

Posted by "Andreas Veithen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4722?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12870389#action_12870389 ] 

Andreas Veithen commented on AXIS2-4722:
----------------------------------------

> 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?

There is a proposal [1] for a SOAP over UDP protocol that does exactly that. It's from Microsoft, but that doesn't mean that is necessarily a hack... IIRC, there is also a proposal for a SOAP over TCP spec from Sun that uses the same approach.

[1] http://specs.xmlsoap.org/ws/2004/09/soap-over-udp/soap-over-udp.pdf

> on the other hand thinking in wsdl way always an endpoint is associated with a service. So service dispatching should happen with the transport properties. 

Not sure what you mean by "service dispatching should happen with the transport properties". Can you explain this a bit more?

> There are transport which has an explicit back channel (eg. http, tcp, udp) with which you can do asynchronous without any problem.

Using the back channel means that your _interaction_ style is synchronous. Of course, you can always use the asynchronous _invocation_ style with this, but that is not really the topic here.

> But for smtp, jms there are no such back channels so you need to use some other transport specific mechanism or addressing. 

Currently, Axis2 supports the asynchronous interaction style in two different ways:
* The transport sender waits for the response (see JMS). That is appropriate if one wants to use the synchronous invocation style with the asynchronous interaction style.
* WS-Addressing is used. On the client side this requires to open an endpoint for the asynchronous responses. That endpoint is not linked to a service and needs to be configured at the transport level (exactly as with HTTP). My first point was about this case.

[BTW: There is a weakness here in Axis2, because this doesn't provide a satisfactory solution for the scenario where one wants to use the asynchronous invocation style with JMS...]

> 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


[jira] Commented: (AXIS2-4722) NPE Thrown When Enabling the UDP Listener Globally

Posted by "Andreas Veithen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4722?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12870364#action_12870364 ] 

Andreas Veithen commented on AXIS2-4722:
----------------------------------------

With respect to the question whether it makes sense to enable protocol endpoints at the transport level or whether they should always be configured at the service level:

1. Enabling protocol endpoints at the transport level makes always sense on the client side in order to create a channel for asynchronous responses. If I remember well, it was in that context (for the mail transport) that I introduced the feature (but with the server side case also in mind).

2. The TCP transport uses EPRs in the form tcp://host:port/servicePath. This means that if the TCP port is configured at the transport level, Axis2 will be able to dispatch using standard dispatchers, provided that WS-Addressing is enabled. That is how the current version of the TCP transport works, but Hiranya's idea to enable per-service TCP endpoints would allow using the TCP transport in a wider range of scenarios.

3. Amila is correct in saying that there is something missing for the mail and JMS transports. The reason is that the EPRs for these transports don't contain the service path (and that can't be changed). Thus, even when WS-Addressing is used, Axis2 will not be able to dispatch to the right service. What is missing is a set of specialized dispatchers suitable for these transports.

> 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


[jira] Issue Comment Edited: (AXIS2-4722) NPE Thrown When Enabling the UDP Listener Globally

Posted by "Andreas Veithen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4722?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12870390#action_12870390 ] 

Andreas Veithen edited comment on AXIS2-4722 at 5/23/10 7:35 AM:
-----------------------------------------------------------------

> Don't we already do this with HTTP transports?

Yes and no. There is one important difference. In HTTP, the information is exchanged at the transport protocol level (in the HTTP request line). 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).

      was (Author: veithen):
    > Don't we already do this with HTTP transports?

Yes and no. There is one important difference. In HTTP, the transformation is exchanged at the transport protocol level (in the HTTP request line). 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).
  
> 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


[jira] Commented: (AXIS2-4722) NPE Thrown When Enabling the UDP Listener Globally

Posted by "Hiranya Jayathilaka (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4722?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12870286#action_12870286 ] 

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

Hi Amila,

Dispatching can take place based on the addressing headers or based on the first element of the SOAP body. This actually works. Currently the TCP transport can only be configured globally and yet it works fine. Dispatching takes place as expected. Also with the patches UDP transport also works when configured in the axis2.xml.

Thanks,
Hiranya

> 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


[jira] Commented: (AXIS2-4722) NPE Thrown When Enabling the UDP Listener Globally

Posted by "Hiranya Jayathilaka (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4722?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12870511#action_12870511 ] 

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

Thanks Andreas. And yes, we'll continue to look for a better solution.

> 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-update2.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


[jira] Commented: (AXIS2-4722) NPE Thrown When Enabling the UDP Listener Globally

Posted by "Hiranya Jayathilaka (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4722?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12870286#action_12870286 ] 

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

Hi Amila,

Dispatching can take place based on the addressing headers or based on the first element of the SOAP body. This actually works. Currently the TCP transport can only be configured globally and yet it works fine. Dispatching takes place as expected. Also with the patches UDP transport also works when configured in the axis2.xml.

Thanks,
Hiranya

> 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


[jira] Moved: (TRANSPORTS-11) NPE Thrown When Enabling the UDP Listener Globally

Posted by "Andreas Veithen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TRANSPORTS-11?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andreas Veithen moved AXIS2-4722 to TRANSPORTS-11:
--------------------------------------------------

          Project: Axis2 Transports  (was: Axis2)
              Key: TRANSPORTS-11  (was: AXIS2-4722)
    Fix Version/s: 1.1.0
                       (was: 1.6)
      Component/s: UDP
                       (was: transports)

> NPE Thrown When Enabling the UDP Listener Globally
> --------------------------------------------------
>
>                 Key: TRANSPORTS-11
>                 URL: https://issues.apache.org/jira/browse/TRANSPORTS-11
>             Project: Axis2 Transports
>          Issue Type: Bug
>          Components: UDP
>            Reporter: Hiranya Jayathilaka
>             Fix For: 1.1.0
>
>         Attachments: AXIS2-4722-update1.patch, AXIS2-4722-update2.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


[jira] Commented: (AXIS2-4722) NPE Thrown When Enabling the UDP Listener Globally

Posted by "Andreas Veithen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4722?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12870438#action_12870438 ] 

Andreas Veithen commented on AXIS2-4722:
----------------------------------------

Applied your last patch without changes. Will think a bit more about the two issues and maybe do some changes later.

> 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-update2.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


[jira] Commented: (AXIS2-4722) NPE Thrown When Enabling the UDP Listener Globally

Posted by "Hiranya Jayathilaka (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4722?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12870363#action_12870363 ] 

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

Hi Andreas,

Could you please provide some feedback on my last few comments? Based on that I think we can either work on new patch or go ahead and apply my last patch.

I also have a few more patches/improvements lined up for the UDP transport. So it will be helpful if we can finalize the work on this issue before we go onto other new issues.

Thanks,
Hiranya

> 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


[jira] Issue Comment Edited: (AXIS2-4722) NPE Thrown When Enabling the UDP Listener Globally

Posted by "Hiranya Jayathilaka (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4722?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12870363#action_12870363 ] 

Hiranya Jayathilaka edited comment on AXIS2-4722 at 5/23/10 2:58 AM:
---------------------------------------------------------------------

Hi Andreas,

Could you please provide some feedback on my last few comments? Based on that I think I can either work on a new patch or we can go ahead and apply my last patch.

I also have a few more other patches/improvements lined up for the UDP transport. So it will be helpful if we can finalize the work on this issue before we go onto other new issues.

Thanks,
Hiranya

      was (Author: hiranya):
    Hi Andreas,

Could you please provide some feedback on my last few comments? Based on that I think we can either work on new patch or go ahead and apply my last patch.

I also have a few more patches/improvements lined up for the UDP transport. So it will be helpful if we can finalize the work on this issue before we go onto other new issues.

Thanks,
Hiranya
  
> 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


[jira] Commented: (AXIS2-4722) NPE Thrown When Enabling the UDP Listener Globally

Posted by "Hiranya Jayathilaka (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4722?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12869564#action_12869564 ] 

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

There is actually another problem in UDP transport. Even if you have configured the UDP listener globally, each service has to be explicitly configured for the UDP transport. Otherwise the following error will be displayed:

2010-05-20 16:43:58,507 [-] [main]  INFO UDPListener UDP Listener started
2010-05-20 16:43:58,507 [-] [main]  WARN UDPListener Unable to configure the service SimpleStockQuoteService for the UDP transport: Service doesn't have configuration information for transport udp. This service is being marked as faulty and will not be available over the UDP transport.
2010-05-20 16:43:58,507 [-] [main]  WARN UDPListener Disabling the udp transport for the service SimpleStockQuoteService, because it is not configured properly for the service

So basically the listener configured at the axis2.xml is useless. I would expect a service to use the global listener when it is not configured for the UDP transport. WDYT?

> 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.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


[jira] Commented: (AXIS2-4722) NPE Thrown When Enabling the UDP Listener Globally

Posted by "Amila Chinthaka Suriarachchi (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4722?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12870379#action_12870379 ] 

Amila Chinthaka Suriarachchi commented on AXIS2-4722:
-----------------------------------------------------

This is what I am thinking.

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? here we have we have define some thing to work with our axis2 dispatchers. (both Addressing and soap body based dispatchers assume this)

on the other hand thinking in wsdl way always an endpoint is associated with a service. So service dispatching should happen with the transport properties. 

I am not clear about your first point. There are transport which has an explicit back channel (eg. http, tcp, udp) with which you can do asynchronous without any problem.  But for smtp, jms there are no such back channels so you need to use some other transport specific mechanism or addressing.


> 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


[jira] Issue Comment Edited: (AXIS2-4722) NPE Thrown When Enabling the UDP Listener Globally

Posted by "Hiranya Jayathilaka (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4722?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12870363#action_12870363 ] 

Hiranya Jayathilaka edited comment on AXIS2-4722 at 5/23/10 2:58 AM:
---------------------------------------------------------------------

Hi Andreas,

Could you please provide some feedback on my last few comments? Based on that I think I can either work on a new patch or we can go ahead and apply my last patch.

I also have a few more other patches/improvements lined up for the UDP transport. So it will be helpful if we can finalize the work on this issue before we go onto other new issues.

Thanks,
Hiranya

      was (Author: hiranya):
    Hi Andreas,

Could you please provide some feedback on my last few comments? Based on that I think we can either work on new patch or go ahead and apply my last patch.

I also have a few more patches/improvements lined up for the UDP transport. So it will be helpful if we can finalize the work on this issue before we go onto other new issues.

Thanks,
Hiranya
  
> 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


[jira] Updated: (AXIS2-4722) NPE Thrown When Enabling the UDP Listener Globally

Posted by "Hiranya Jayathilaka (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-4722?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Hiranya Jayathilaka updated AXIS2-4722:
---------------------------------------

    Attachment: AXIS2-4722-update1.patch

Here's a patch that resolves both the above mentioned problems. I added a new boolean flag to the AbstractTransportListenerEx called useGlobalListener. If this is set to true a service can receive messages through a globally configured listener even if the transport is not configured at service level. I have set the default value of the flag to be false, so that the existing behavior of other transports (JMS, Mail etc) are not altered by any means.


> 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


[jira] Commented: (AXIS2-4722) NPE Thrown When Enabling the UDP Listener Globally

Posted by "Hiranya Jayathilaka (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4722?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12869877#action_12869877 ] 

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

Hi Andreas,

It seems we cannot just move the super.init call further down either (wrt to the first problem). It causes a NPE during transport initialization as discovered by the UDP test cases:

java.lang.NullPointerException
        at org.apache.axis2.transport.base.AbstractTransportListener.getTransportName(AbstractTransportListener.java:351)
        at org.apache.axis2.transport.udp.UDPListener.createDispatcher(UDPListener.java:48)
        at org.apache.axis2.transport.udp.UDPListener.createDispatcher(UDPListener.java:44)
        at org.apache.axis2.transport.base.datagram.AbstractDatagramTransportListener.init(AbstractDatagramTransportListener.java:50)
        at org.apache.axis2.engine.ListenerManager.addListener(ListenerManager.java:260)
        at org.apache.axis2.description.ClientUtils.inferInTransport(ClientUtils.java:122)
        at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:183)

Basically the dispatcher cannot be created prior to initializing the rest of the transport. It requires certain attributes of the transport to be initialized first. So I guess my first patch still holds valid :)

Thanks,
Hiranya

> 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


[jira] Commented: (AXIS2-4722) NPE Thrown When Enabling the UDP Listener Globally

Posted by "Hiranya Jayathilaka (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4722?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12869857#action_12869857 ] 

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

Hi Andreas,

Thanks for the feedback. I think for the first problem we can simply move the super.init to the end of the init method as you have proposed. 

For the second problem, do we have a way to figure out whether an endpoint has been defined at the transport level? Also wouldn't implementing this strategy effect certain other transports, such as JMS and Mail? This is the reason why I added the new attribute. For transports like Mail we do not want to configure endpoints at transport level. So if such functionality is required (as in the case of UDP) a transport would set the attribute to 'true'.

Please provide your feedback. I'll provide a new patch based on that.

Thanks,
Hiranya

> 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


[jira] Commented: (AXIS2-4722) NPE Thrown When Enabling the UDP Listener Globally

Posted by "Andreas Veithen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4722?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12870390#action_12870390 ] 

Andreas Veithen commented on AXIS2-4722:
----------------------------------------

> Don't we already do this with HTTP transports?

Yes and no. There is one important difference. In HTTP, the transformation is exchanged at the transport protocol level (in the HTTP request line). 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).

> 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


[jira] Commented: (AXIS2-4722) NPE Thrown When Enabling the UDP Listener Globally

Posted by "Andreas Veithen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4722?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12869705#action_12869705 ] 

Andreas Veithen commented on AXIS2-4722:
----------------------------------------

With respect to the first problem/patch: I think it would be easier to move the call to super.init to the end of the init method in AbstractDatagramTransportListener. Can you test that solution?

> 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


[jira] Commented: (AXIS2-4722) NPE Thrown When Enabling the UDP Listener Globally

Posted by "Hiranya Jayathilaka (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4722?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12869564#action_12869564 ] 

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

There is actually another problem in UDP transport. Even if you have configured the UDP listener globally, each service has to be explicitly configured for the UDP transport. Otherwise the following error will be displayed:

2010-05-20 16:43:58,507 [-] [main]  INFO UDPListener UDP Listener started
2010-05-20 16:43:58,507 [-] [main]  WARN UDPListener Unable to configure the service SimpleStockQuoteService for the UDP transport: Service doesn't have configuration information for transport udp. This service is being marked as faulty and will not be available over the UDP transport.
2010-05-20 16:43:58,507 [-] [main]  WARN UDPListener Disabling the udp transport for the service SimpleStockQuoteService, because it is not configured properly for the service

So basically the listener configured at the axis2.xml is useless. I would expect a service to use the global listener when it is not configured for the UDP transport. WDYT?

> 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.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


[jira] Commented: (AXIS2-4722) NPE Thrown When Enabling the UDP Listener Globally

Posted by "Hiranya Jayathilaka (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4722?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12869877#action_12869877 ] 

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

Hi Andreas,

It seems we cannot just move the super.init call further down either (wrt to the first problem). It causes a NPE during transport initialization as discovered by the UDP test cases:

java.lang.NullPointerException
        at org.apache.axis2.transport.base.AbstractTransportListener.getTransportName(AbstractTransportListener.java:351)
        at org.apache.axis2.transport.udp.UDPListener.createDispatcher(UDPListener.java:48)
        at org.apache.axis2.transport.udp.UDPListener.createDispatcher(UDPListener.java:44)
        at org.apache.axis2.transport.base.datagram.AbstractDatagramTransportListener.init(AbstractDatagramTransportListener.java:50)
        at org.apache.axis2.engine.ListenerManager.addListener(ListenerManager.java:260)
        at org.apache.axis2.description.ClientUtils.inferInTransport(ClientUtils.java:122)
        at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:183)

Basically the dispatcher cannot be created prior to initializing the rest of the transport. It requires certain attributes of the transport to be initialized first. So I guess my first patch still holds valid :)

Thanks,
Hiranya

> 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


[jira] Commented: (AXIS2-4722) NPE Thrown When Enabling the UDP Listener Globally

Posted by "Hiranya Jayathilaka (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4722?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12869857#action_12869857 ] 

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

Hi Andreas,

Thanks for the feedback. I think for the first problem we can simply move the super.init to the end of the init method as you have proposed. 

For the second problem, do we have a way to figure out whether an endpoint has been defined at the transport level? Also wouldn't implementing this strategy effect certain other transports, such as JMS and Mail? This is the reason why I added the new attribute. For transports like Mail we do not want to configure endpoints at transport level. So if such functionality is required (as in the case of UDP) a transport would set the attribute to 'true'.

Please provide your feedback. I'll provide a new patch based on that.

Thanks,
Hiranya

> 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


[jira] Commented: (AXIS2-4722) NPE Thrown When Enabling the UDP Listener Globally

Posted by "Hiranya Jayathilaka (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4722?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12869564#action_12869564 ] 

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

There is actually another problem in UDP transport. Even if you have configured the UDP listener globally, each service has to be explicitly configured for the UDP transport. Otherwise the following error will be displayed:

2010-05-20 16:43:58,507 [-] [main]  INFO UDPListener UDP Listener started
2010-05-20 16:43:58,507 [-] [main]  WARN UDPListener Unable to configure the service SimpleStockQuoteService for the UDP transport: Service doesn't have configuration information for transport udp. This service is being marked as faulty and will not be available over the UDP transport.
2010-05-20 16:43:58,507 [-] [main]  WARN UDPListener Disabling the udp transport for the service SimpleStockQuoteService, because it is not configured properly for the service

So basically the listener configured at the axis2.xml is useless. I would expect a service to use the global listener when it is not configured for the UDP transport. WDYT?

> 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.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


[jira] Commented: (AXIS2-4722) NPE Thrown When Enabling the UDP Listener Globally

Posted by "Andreas Veithen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4722?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12869705#action_12869705 ] 

Andreas Veithen commented on AXIS2-4722:
----------------------------------------

With respect to the first problem/patch: I think it would be easier to move the call to super.init to the end of the init method in AbstractDatagramTransportListener. Can you test that solution?

> 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


[jira] Updated: (AXIS2-4722) NPE Thrown When Enabling the UDP Listener Globally

Posted by "Hiranya Jayathilaka (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-4722?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Hiranya Jayathilaka updated AXIS2-4722:
---------------------------------------

    Attachment: AXIS2-4722.patch

Attaching patch. This fix makes sure that dispatcher is properly initialized before attempting to invoke any of its methods.

> 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.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


[jira] Updated: (AXIS2-4722) NPE Thrown When Enabling the UDP Listener Globally

Posted by "Hiranya Jayathilaka (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-4722?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Hiranya Jayathilaka updated AXIS2-4722:
---------------------------------------

    Attachment: AXIS2-4722-update2.patch

Same as my previous patch, but with better code formatting.

Summary:
1. We have to introduce the new method initDispatcher to the AbstractDatagramTransportListener. We cannot just move the super.init call further down, since the dispatcher initialization requires certain other attributes of the transport to be initialized first. So the super.init must go first.

2. We are yet to find an alternative solution for the useGlobalListener flag. We need a way to determine whether an endpoint has been configured at transport level.

> 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-update2.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


[jira] Issue Comment Edited: (AXIS2-4722) NPE Thrown When Enabling the UDP Listener Globally

Posted by "Hiranya Jayathilaka (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4722?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12870363#action_12870363 ] 

Hiranya Jayathilaka edited comment on AXIS2-4722 at 5/23/10 2:58 AM:
---------------------------------------------------------------------

Hi Andreas,

Could you please provide some feedback on my last few comments? Based on that I think I can either work on a new patch or we can go ahead and apply my last patch.

I also have a few more other patches/improvements lined up for the UDP transport. So it will be helpful if we can finalize the work on this issue before we go onto other new issues.

Thanks,
Hiranya

      was (Author: hiranya):
    Hi Andreas,

Could you please provide some feedback on my last few comments? Based on that I think we can either work on new patch or go ahead and apply my last patch.

I also have a few more patches/improvements lined up for the UDP transport. So it will be helpful if we can finalize the work on this issue before we go onto other new issues.

Thanks,
Hiranya
  
> 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


[jira] Commented: (AXIS2-4722) NPE Thrown When Enabling the UDP Listener Globally

Posted by "Andreas Veithen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4722?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12870364#action_12870364 ] 

Andreas Veithen commented on AXIS2-4722:
----------------------------------------

With respect to the question whether it makes sense to enable protocol endpoints at the transport level or whether they should always be configured at the service level:

1. Enabling protocol endpoints at the transport level makes always sense on the client side in order to create a channel for asynchronous responses. If I remember well, it was in that context (for the mail transport) that I introduced the feature (but with the server side case also in mind).

2. The TCP transport uses EPRs in the form tcp://host:port/servicePath. This means that if the TCP port is configured at the transport level, Axis2 will be able to dispatch using standard dispatchers, provided that WS-Addressing is enabled. That is how the current version of the TCP transport works, but Hiranya's idea to enable per-service TCP endpoints would allow using the TCP transport in a wider range of scenarios.

3. Amila is correct in saying that there is something missing for the mail and JMS transports. The reason is that the EPRs for these transports don't contain the service path (and that can't be changed). Thus, even when WS-Addressing is used, Axis2 will not be able to dispatch to the right service. What is missing is a set of specialized dispatchers suitable for these transports.

> 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


[jira] Commented: (AXIS2-4722) NPE Thrown When Enabling the UDP Listener Globally

Posted by "Amila Chinthaka Suriarachchi (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4722?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12870280#action_12870280 ] 

Amila Chinthaka Suriarachchi commented on AXIS2-4722:
-----------------------------------------------------

I did not go through the code. But I think transport like SMTP, UDP, TCP should always configured at the service level.

if you configure the UDP in global level how you going to dispatch the service?

As I remember earlier Axis2 smtp transport uses one global address and used an header to dispatch service. But that was not a standard way.


> 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


[jira] Commented: (AXIS2-4722) NPE Thrown When Enabling the UDP Listener Globally

Posted by "Hiranya Jayathilaka (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4722?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12870388#action_12870388 ] 

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: 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


[jira] Commented: (AXIS2-4722) NPE Thrown When Enabling the UDP Listener Globally

Posted by "Hiranya Jayathilaka (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4722?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12869857#action_12869857 ] 

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

Hi Andreas,

Thanks for the feedback. I think for the first problem we can simply move the super.init to the end of the init method as you have proposed. 

For the second problem, do we have a way to figure out whether an endpoint has been defined at the transport level? Also wouldn't implementing this strategy effect certain other transports, such as JMS and Mail? This is the reason why I added the new attribute. For transports like Mail we do not want to configure endpoints at transport level. So if such functionality is required (as in the case of UDP) a transport would set the attribute to 'true'.

Please provide your feedback. I'll provide a new patch based on that.

Thanks,
Hiranya

> 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


[jira] Commented: (AXIS2-4722) NPE Thrown When Enabling the UDP Listener Globally

Posted by "Andreas Veithen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4722?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12870438#action_12870438 ] 

Andreas Veithen commented on AXIS2-4722:
----------------------------------------

Applied your last patch without changes. Will think a bit more about the two issues and maybe do some changes later.

> 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-update2.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


[jira] Commented: (AXIS2-4722) NPE Thrown When Enabling the UDP Listener Globally

Posted by "Andreas Veithen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4722?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12869705#action_12869705 ] 

Andreas Veithen commented on AXIS2-4722:
----------------------------------------

With respect to the first problem/patch: I think it would be easier to move the call to super.init to the end of the init method in AbstractDatagramTransportListener. Can you test that solution?

> 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


[jira] Commented: (AXIS2-4722) NPE Thrown When Enabling the UDP Listener Globally

Posted by "Andreas Veithen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4722?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12869715#action_12869715 ] 

Andreas Veithen commented on AXIS2-4722:
----------------------------------------

With respect to the second problem/patch: introducing the useGlobalListener flag implies that this is a property of the transport. I'm not sure about this. I think it only depends on the way the transport is configured. Probably the rule should be :

* If the service has no configuration for the given transport and an endpoint is defined at the transport level, then just return.
* If the service has no configuration and no endpoint is defined at the transport level, then there is something wrong and startListeningForService should throw an exception.

> 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