You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@synapse.apache.org by balaji hari <to...@gmail.com> on 2007/07/05 20:59:42 UTC
Synapse not able to send request to jboss server + solaris 5.9
http://www.nabble.com/file/p11452606/websvc_synapse_config.xml
websvc_synapse_config.xml
http://www.nabble.com/file/p11452606/websvc_policy.xml websvc_policy.xml
http://www.nabble.com/file/p11452606/NHttpClient.java NHttpClient.java
http://www.nabble.com/file/p11452606/EventLogger.java EventLogger.java
We are evaluating synapse1.0 to perform usernametoken authentication and
forward SOAP request to jboss server. I have attached the synapse
configuration xml and policy xml. The setup works with windows XP.
But when we tried moving the set up to solaris, synapse is not able to
forward the request to jboss server.
We have the synapse and jboss server running in same box.
When we digged the problem further and we are able to narrow down the
problem to NIO sender used by synapse. I have attached a sample program
(NHttpClient.java + EventLogger.java) which does a Basic HTTP GET and prints
the response using Jakarta HTTPCore NIO API.
Here is the reference to the issue happening in solaris, but unable to find
a solution.
http://forum.java.sun.com/thread.jspa?forumID=256&threadID=420607
http://forum.java.sun.com/thread.jspa?forumID=4&threadID=293672
This implies synapse won't work in solaris using NIO Http transport.
Has anyone faced similar issues. Any help or thoughts would be greatly
appreciated.
Java Version 1.5.0.06
Jakarta HttpCore bundled with synapse-1.0 release.
--
View this message in context: http://www.nabble.com/Synapse-not-able-to-send-request-to-jboss-server-%2B-solaris-5.9-tf4031674.html#a11452606
Sent from the Synapse - Dev mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: synapse-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: synapse-dev-help@ws.apache.org
Re: Synapse not able to send request to jboss server + solaris 5.9
Posted by Oleg Kalnichevski <ol...@apache.org>.
On Fri, 2007-07-06 at 14:04 -0700, balaji hari wrote:
> Oleg,
>
> Great! The fix works. Can you send me the patch on top of 4.0 ALPHA4
> release.
> This is the one which is bundled with synapse-1.0 release and moving to 4.0
> ALPHA5 release is not compatible with synapse-1.0.
>
> Thanks everyone for your inputs.
>
> Balaji
>
Balaji
I attached a patch against release 4.0-alpha4 to the same Jira issue.
Please give it a try.
Oleg
> Could please try this fix (attached to the Jira issue)?
>
> https://issues.apache.org/jira/browse/HTTPCORE-89
>
> Oleg
>
> >
> > olegk wrote:
> > >
> > > On Fri, 2007-07-06 at 07:29 -0700, balaji hari wrote:
> > >
> > > ...
> > >
> > >> > The above seems quite confusing to me.. If the sample code you
> > provide
> > >> > can talk to an external Windows server, I don't see any reason why it
> > >> > cant talk to a Solaris server? Just to be certain.. do you have any
> > >> > firewalls or other software between the two boxes? Can you do a
> > "telnet
> > >> > <solarishost> <httpport>" from the command line and then a "GET /
> > >> > HTTP/1.1" and see if you get some response back?
> > >> >
> > >> >
> > >>
> > ----------------------------------------------------------------------------------------------
> > >> > No firewall issues, as we are able to do a telnet from solaris box to
> > >> the
> > >> > server running on localhost
> > >> > and able to retrieve response. This is how results look like
> > >> >
> > >> > solaris -> windows - yes
> > >> > windows -> solaris - yes
> > >> > solaris -> solaris (localhost) - no (synapse and jboss server sitting
> > >> on
> > >> > the same machine can't talk to each other)
> > >> >
> > >
> > > Very peculiar.
> > >
> > >>
> > >> > Not sure what the problem could be other than with NIO (because using
> > >> > commons-httpclient API we are able to communicate to server running
> > in
> > >> > solaris)
> > >> >
> > >> > This is the code segment from
> > >> > org.apache.http.impl.nio.reactor.DefaultConnectingIOReactor.java
> > >> >
> > >> > try {
> > >> > readyCount =
> > >> this.selector.select(TIMEOUT_CHECK_INTERVAL);
> > >> > } catch (InterruptedIOException ex) {
> > >> > throw ex;
> > >> > } catch (IOException ex) {
> > >> > throw new IOReactorException("Unexpected selector
> > >> > failure", ex);
> > >> > }
> > >> >
> > >> > if (this.closed) {
> > >> > break;
> > >> > }
> > >> >
> > >> > processSessionRequests();
> > >> >
> > >> > if (readyCount > 0) {
> > >> > processEvents(this.selector.selectedKeys());
> > >> > }
> > >> >
> > >> > Even though
> > >> >
> > >> > key = socketChannel.register(this.selector, 0);
> > >> >
> > >> > returns a valid selector key, the select() method returns count = 0.
> > >> >
> > >
> > > This looks like a bug in Sun Solaris NIO implementation to me. However,
> > > if just ignoring the readyCount value helps work the problem around I do
> > > not see a problem with including it into HttpCore.
> > >
> > > Could you please try patching the latest snapshot locally on a Solaris
> > > 2.9 box and see if you can get the test suite pass successfully?
> > >
> > > Oleg
> > >
> > >>
> > >> >
> > >>
> > ---------------------------------------------------------------------------------------------
> > >> >
> > >> >
> > >> > Lets give this problem the due attention it deserves and try to find
> > >> its
> > >> > root cause.
> > >> >
> > >> >
> > >> >
> > >> > Hope this helps.
> > >> >
> > >> > thanks
> > >> > Balaji
> > >> >
> > >> > ---------------------------------------------------------------------
> > >> > To unsubscribe, e-mail:
> > >> httpcomponents-dev-unsubscribe@jakarta.apache.org
> > >> > For additional commands, e-mail:
> > >> > httpcomponents-dev-help@jakarta.apache.org
> > >> >
> > >> >
> > >> >
> > >>
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail:
> > httpcomponents-dev-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail:
> > > httpcomponents-dev-help@jakarta.apache.org
> > >
> > >
> > >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: httpcomponents-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: httpcomponents-dev-help@jakarta.apache.org
>
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: httpcomponents-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpcomponents-dev-help@jakarta.apache.org
Re: Synapse not able to send request to jboss server + solaris 5.9
Posted by balaji hari <to...@gmail.com>.
Oleg,
Great! The fix works. Can you send me the patch on top of 4.0 ALPHA4
release.
This is the one which is bundled with synapse-1.0 release and moving to 4.0
ALPHA5 release is not compatible with synapse-1.0.
Thanks everyone for your inputs.
Balaji
Could please try this fix (attached to the Jira issue)?
https://issues.apache.org/jira/browse/HTTPCORE-89
Oleg
>
> olegk wrote:
> >
> > On Fri, 2007-07-06 at 07:29 -0700, balaji hari wrote:
> >
> > ...
> >
> >> > The above seems quite confusing to me.. If the sample code you
> provide
> >> > can talk to an external Windows server, I don't see any reason why it
> >> > cant talk to a Solaris server? Just to be certain.. do you have any
> >> > firewalls or other software between the two boxes? Can you do a
> "telnet
> >> > <solarishost> <httpport>" from the command line and then a "GET /
> >> > HTTP/1.1" and see if you get some response back?
> >> >
> >> >
> >>
> ----------------------------------------------------------------------------------------------
> >> > No firewall issues, as we are able to do a telnet from solaris box to
> >> the
> >> > server running on localhost
> >> > and able to retrieve response. This is how results look like
> >> >
> >> > solaris -> windows - yes
> >> > windows -> solaris - yes
> >> > solaris -> solaris (localhost) - no (synapse and jboss server sitting
> >> on
> >> > the same machine can't talk to each other)
> >> >
> >
> > Very peculiar.
> >
> >>
> >> > Not sure what the problem could be other than with NIO (because using
> >> > commons-httpclient API we are able to communicate to server running
> in
> >> > solaris)
> >> >
> >> > This is the code segment from
> >> > org.apache.http.impl.nio.reactor.DefaultConnectingIOReactor.java
> >> >
> >> > try {
> >> > readyCount =
> >> this.selector.select(TIMEOUT_CHECK_INTERVAL);
> >> > } catch (InterruptedIOException ex) {
> >> > throw ex;
> >> > } catch (IOException ex) {
> >> > throw new IOReactorException("Unexpected selector
> >> > failure", ex);
> >> > }
> >> >
> >> > if (this.closed) {
> >> > break;
> >> > }
> >> >
> >> > processSessionRequests();
> >> >
> >> > if (readyCount > 0) {
> >> > processEvents(this.selector.selectedKeys());
> >> > }
> >> >
> >> > Even though
> >> >
> >> > key = socketChannel.register(this.selector, 0);
> >> >
> >> > returns a valid selector key, the select() method returns count = 0.
> >> >
> >
> > This looks like a bug in Sun Solaris NIO implementation to me. However,
> > if just ignoring the readyCount value helps work the problem around I do
> > not see a problem with including it into HttpCore.
> >
> > Could you please try patching the latest snapshot locally on a Solaris
> > 2.9 box and see if you can get the test suite pass successfully?
> >
> > Oleg
> >
> >>
> >> >
> >>
> ---------------------------------------------------------------------------------------------
> >> >
> >> >
> >> > Lets give this problem the due attention it deserves and try to find
> >> its
> >> > root cause.
> >> >
> >> >
> >> >
> >> > Hope this helps.
> >> >
> >> > thanks
> >> > Balaji
> >> >
> >> > ---------------------------------------------------------------------
> >> > To unsubscribe, e-mail:
> >> httpcomponents-dev-unsubscribe@jakarta.apache.org
> >> > For additional commands, e-mail:
> >> > httpcomponents-dev-help@jakarta.apache.org
> >> >
> >> >
> >> >
> >>
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> httpcomponents-dev-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail:
> > httpcomponents-dev-help@jakarta.apache.org
> >
> >
> >
>
---------------------------------------------------------------------
To unsubscribe, e-mail: httpcomponents-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpcomponents-dev-help@jakarta.apache.org
--
View this message in context: http://www.nabble.com/Re%3A-Synapse-not-able-to-send-request-to-jboss-server-%2B-solaris-5.9-tf4033622.html#a11472452
Sent from the HttpComponents-Dev mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: httpcomponents-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpcomponents-dev-help@jakarta.apache.org
Re: Synapse not able to send request to jboss server + solaris 5.9
Posted by Oleg Kalnichevski <ol...@apache.org>.
On Fri, 2007-07-06 at 08:56 -0700, balaji hari wrote:
> Oleg,
>
> Actually in DefaultConnectingIOReactor.processSessionRequests
>
> after this code segment
>
> SessionRequestHandle requestHandle = new SessionRequestHandle(request);
> key.attach(requestHandle);
> key.interestOps(SelectionKey.OP_CONNECT);
>
> we tried
>
> this.selector.select(0)
> this.selector.selectedKeys()
>
> This doesn't help!
>
> thanks
> Balaji
>
Balaji
Could please try this fix (attached to the Jira issue)?
https://issues.apache.org/jira/browse/HTTPCORE-89
Oleg
>
> olegk wrote:
> >
> > On Fri, 2007-07-06 at 07:29 -0700, balaji hari wrote:
> >
> > ...
> >
> >> > The above seems quite confusing to me.. If the sample code you provide
> >> > can talk to an external Windows server, I don't see any reason why it
> >> > cant talk to a Solaris server? Just to be certain.. do you have any
> >> > firewalls or other software between the two boxes? Can you do a "telnet
> >> > <solarishost> <httpport>" from the command line and then a "GET /
> >> > HTTP/1.1" and see if you get some response back?
> >> >
> >> >
> >> ----------------------------------------------------------------------------------------------
> >> > No firewall issues, as we are able to do a telnet from solaris box to
> >> the
> >> > server running on localhost
> >> > and able to retrieve response. This is how results look like
> >> >
> >> > solaris -> windows - yes
> >> > windows -> solaris - yes
> >> > solaris -> solaris (localhost) - no (synapse and jboss server sitting
> >> on
> >> > the same machine can't talk to each other)
> >> >
> >
> > Very peculiar.
> >
> >>
> >> > Not sure what the problem could be other than with NIO (because using
> >> > commons-httpclient API we are able to communicate to server running in
> >> > solaris)
> >> >
> >> > This is the code segment from
> >> > org.apache.http.impl.nio.reactor.DefaultConnectingIOReactor.java
> >> >
> >> > try {
> >> > readyCount =
> >> this.selector.select(TIMEOUT_CHECK_INTERVAL);
> >> > } catch (InterruptedIOException ex) {
> >> > throw ex;
> >> > } catch (IOException ex) {
> >> > throw new IOReactorException("Unexpected selector
> >> > failure", ex);
> >> > }
> >> >
> >> > if (this.closed) {
> >> > break;
> >> > }
> >> >
> >> > processSessionRequests();
> >> >
> >> > if (readyCount > 0) {
> >> > processEvents(this.selector.selectedKeys());
> >> > }
> >> >
> >> > Even though
> >> >
> >> > key = socketChannel.register(this.selector, 0);
> >> >
> >> > returns a valid selector key, the select() method returns count = 0.
> >> >
> >
> > This looks like a bug in Sun Solaris NIO implementation to me. However,
> > if just ignoring the readyCount value helps work the problem around I do
> > not see a problem with including it into HttpCore.
> >
> > Could you please try patching the latest snapshot locally on a Solaris
> > 2.9 box and see if you can get the test suite pass successfully?
> >
> > Oleg
> >
> >>
> >> >
> >> ---------------------------------------------------------------------------------------------
> >> >
> >> >
> >> > Lets give this problem the due attention it deserves and try to find
> >> its
> >> > root cause.
> >> >
> >> >
> >> >
> >> > Hope this helps.
> >> >
> >> > thanks
> >> > Balaji
> >> >
> >> > ---------------------------------------------------------------------
> >> > To unsubscribe, e-mail:
> >> httpcomponents-dev-unsubscribe@jakarta.apache.org
> >> > For additional commands, e-mail:
> >> > httpcomponents-dev-help@jakarta.apache.org
> >> >
> >> >
> >> >
> >>
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: httpcomponents-dev-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail:
> > httpcomponents-dev-help@jakarta.apache.org
> >
> >
> >
>
---------------------------------------------------------------------
To unsubscribe, e-mail: httpcomponents-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpcomponents-dev-help@jakarta.apache.org
Re: Synapse not able to send request to jboss server + solaris 5.9
Posted by Roland Weber <os...@dubioso.net>.
Asankha C. Perera wrote:
> Probably these would be helpful too
>
> http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6288599
> http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6209425
Their own Ping sample didn't check for that case.
That's cute :-) Let's see how long it takes until
we're not using our own API correctly...
cheers,
Roland
---------------------------------------------------------------------
To unsubscribe, e-mail: httpcomponents-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpcomponents-dev-help@jakarta.apache.org
Re: Synapse not able to send request to jboss server + solaris 5.9
Posted by Oleg Kalnichevski <ol...@apache.org>.
On Fri, 2007-07-06 at 12:25 -0400, Sam Berlin wrote:
> If I can suggest a possible problem without actually looking or
> knowing the code at all...
>
> Based on the symptons that it works from one OS to another, but
> doesn't work within the same OS, and that the sample code was using
> selector.select(0), selector.selectNow, and SelectionKey.OP_CONNECT...
>
> Could the problem be that when the SocketChannel.connect is called, it
> is returning "true" (already connected), meaning that it does not need
> to go through the Selector at all? I do not know if there is code
> that handles this case, or if this is even the place where something
> is going wrong, but it is a very likely and possible scenario, and is
> something we've often encountered when doing localhost tests. What it
> boils down to is that when a SocketChannel.connect is called, it can
> either return false (meaning it has to be added to the selector and
> wait for an OP_CONNECT event), or true (meaning it is now connected
> and finishConnect doesn't even need to be called). On localhost, it
> is very likely that connecting will immedaitely work.
>
Hi Sam
This sounds very plausible. Presently DefaultConnectingIOReactor does
not check the return value of the socketChannel#connect() method. This
can well be it.
Thanks a million for this hint.
Oleg
> Sam
>
> On 7/6/07, Oleg Kalnichevski <ol...@apache.org> wrote:
> > On Fri, 2007-07-06 at 08:56 -0700, balaji hari wrote:
> > > Oleg,
> > >
> > > Actually in DefaultConnectingIOReactor.processSessionRequests
> > >
> > > after this code segment
> > >
> > > SessionRequestHandle requestHandle = new SessionRequestHandle(request);
> > > key.attach(requestHandle);
> > > key.interestOps(SelectionKey.OP_CONNECT);
> > >
> > > we tried
> > >
> > > this.selector.select(0)
> > > this.selector.selectedKeys()
> > >
> > > This doesn't help!
> > >
> > > thanks
> > > Balaji
> > >
> >
> > All right. So, this one is not going to be easy. I need a little more
> > info about what is going on under hood to try to pinpoint the problem.
> > Could you please copy these classes from HttpCore contrib package [1],
> > patch your test code to use LoggingClientIOEventDispatch instead of
> > DefaultClientIOEventDispatch and turn on debug logging by passing the
> > following parameters to the JVM?
> >
> > -Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.SimpleLog -Dorg.apache.commons.logging.simplelog.log.org.apache.http=DEBUG
> >
> > Oleg
> >
> > [1]
> > http://svn.apache.org/repos/asf/jakarta/httpcomponents/httpcore/tags/4.0-alpha5/contrib/src/main/java/org/apache/http/contrib/logging/
> >
> >
> > >
> > > olegk wrote:
> > > >
> > > > On Fri, 2007-07-06 at 07:29 -0700, balaji hari wrote:
> > > >
> > > > ...
> > > >
> > > >> > The above seems quite confusing to me.. If the sample code you provide
> > > >> > can talk to an external Windows server, I don't see any reason why it
> > > >> > cant talk to a Solaris server? Just to be certain.. do you have any
> > > >> > firewalls or other software between the two boxes? Can you do a "telnet
> > > >> > <solarishost> <httpport>" from the command line and then a "GET /
> > > >> > HTTP/1.1" and see if you get some response back?
> > > >> >
> > > >> >
> > > >> ----------------------------------------------------------------------------------------------
> > > >> > No firewall issues, as we are able to do a telnet from solaris box to
> > > >> the
> > > >> > server running on localhost
> > > >> > and able to retrieve response. This is how results look like
> > > >> >
> > > >> > solaris -> windows - yes
> > > >> > windows -> solaris - yes
> > > >> > solaris -> solaris (localhost) - no (synapse and jboss server sitting
> > > >> on
> > > >> > the same machine can't talk to each other)
> > > >> >
> > > >
> > > > Very peculiar.
> > > >
> > > >>
> > > >> > Not sure what the problem could be other than with NIO (because using
> > > >> > commons-httpclient API we are able to communicate to server running in
> > > >> > solaris)
> > > >> >
> > > >> > This is the code segment from
> > > >> > org.apache.http.impl.nio.reactor.DefaultConnectingIOReactor.java
> > > >> >
> > > >> > try {
> > > >> > readyCount =
> > > >> this.selector.select(TIMEOUT_CHECK_INTERVAL);
> > > >> > } catch (InterruptedIOException ex) {
> > > >> > throw ex;
> > > >> > } catch (IOException ex) {
> > > >> > throw new IOReactorException("Unexpected selector
> > > >> > failure", ex);
> > > >> > }
> > > >> >
> > > >> > if (this.closed) {
> > > >> > break;
> > > >> > }
> > > >> >
> > > >> > processSessionRequests();
> > > >> >
> > > >> > if (readyCount > 0) {
> > > >> > processEvents(this.selector.selectedKeys());
> > > >> > }
> > > >> >
> > > >> > Even though
> > > >> >
> > > >> > key = socketChannel.register(this.selector, 0);
> > > >> >
> > > >> > returns a valid selector key, the select() method returns count = 0.
> > > >> >
> > > >
> > > > This looks like a bug in Sun Solaris NIO implementation to me. However,
> > > > if just ignoring the readyCount value helps work the problem around I do
> > > > not see a problem with including it into HttpCore.
> > > >
> > > > Could you please try patching the latest snapshot locally on a Solaris
> > > > 2.9 box and see if you can get the test suite pass successfully?
> > > >
> > > > Oleg
> > > >
> > > >>
> > > >> >
> > > >> ---------------------------------------------------------------------------------------------
> > > >> >
> > > >> >
> > > >> > Lets give this problem the due attention it deserves and try to find
> > > >> its
> > > >> > root cause.
> > > >> >
> > > >> >
> > > >> >
> > > >> > Hope this helps.
> > > >> >
> > > >> > thanks
> > > >> > Balaji
> > > >> >
> > > >> > ---------------------------------------------------------------------
> > > >> > To unsubscribe, e-mail:
> > > >> httpcomponents-dev-unsubscribe@jakarta.apache.org
> > > >> > For additional commands, e-mail:
> > > >> > httpcomponents-dev-help@jakarta.apache.org
> > > >> >
> > > >> >
> > > >> >
> > > >>
> > > >
> > > >
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: httpcomponents-dev-unsubscribe@jakarta.apache.org
> > > > For additional commands, e-mail:
> > > > httpcomponents-dev-help@jakarta.apache.org
> > > >
> > > >
> > > >
> > >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: httpcomponents-dev-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: httpcomponents-dev-help@jakarta.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: httpcomponents-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: httpcomponents-dev-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: httpcomponents-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpcomponents-dev-help@jakarta.apache.org
Re: Synapse not able to send request to jboss server + solaris 5.9
Posted by Sam Berlin <sb...@gmail.com>.
If I can suggest a possible problem without actually looking or
knowing the code at all...
Based on the symptons that it works from one OS to another, but
doesn't work within the same OS, and that the sample code was using
selector.select(0), selector.selectNow, and SelectionKey.OP_CONNECT...
Could the problem be that when the SocketChannel.connect is called, it
is returning "true" (already connected), meaning that it does not need
to go through the Selector at all? I do not know if there is code
that handles this case, or if this is even the place where something
is going wrong, but it is a very likely and possible scenario, and is
something we've often encountered when doing localhost tests. What it
boils down to is that when a SocketChannel.connect is called, it can
either return false (meaning it has to be added to the selector and
wait for an OP_CONNECT event), or true (meaning it is now connected
and finishConnect doesn't even need to be called). On localhost, it
is very likely that connecting will immedaitely work.
Sam
On 7/6/07, Oleg Kalnichevski <ol...@apache.org> wrote:
> On Fri, 2007-07-06 at 08:56 -0700, balaji hari wrote:
> > Oleg,
> >
> > Actually in DefaultConnectingIOReactor.processSessionRequests
> >
> > after this code segment
> >
> > SessionRequestHandle requestHandle = new SessionRequestHandle(request);
> > key.attach(requestHandle);
> > key.interestOps(SelectionKey.OP_CONNECT);
> >
> > we tried
> >
> > this.selector.select(0)
> > this.selector.selectedKeys()
> >
> > This doesn't help!
> >
> > thanks
> > Balaji
> >
>
> All right. So, this one is not going to be easy. I need a little more
> info about what is going on under hood to try to pinpoint the problem.
> Could you please copy these classes from HttpCore contrib package [1],
> patch your test code to use LoggingClientIOEventDispatch instead of
> DefaultClientIOEventDispatch and turn on debug logging by passing the
> following parameters to the JVM?
>
> -Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.SimpleLog -Dorg.apache.commons.logging.simplelog.log.org.apache.http=DEBUG
>
> Oleg
>
> [1]
> http://svn.apache.org/repos/asf/jakarta/httpcomponents/httpcore/tags/4.0-alpha5/contrib/src/main/java/org/apache/http/contrib/logging/
>
>
> >
> > olegk wrote:
> > >
> > > On Fri, 2007-07-06 at 07:29 -0700, balaji hari wrote:
> > >
> > > ...
> > >
> > >> > The above seems quite confusing to me.. If the sample code you provide
> > >> > can talk to an external Windows server, I don't see any reason why it
> > >> > cant talk to a Solaris server? Just to be certain.. do you have any
> > >> > firewalls or other software between the two boxes? Can you do a "telnet
> > >> > <solarishost> <httpport>" from the command line and then a "GET /
> > >> > HTTP/1.1" and see if you get some response back?
> > >> >
> > >> >
> > >> ----------------------------------------------------------------------------------------------
> > >> > No firewall issues, as we are able to do a telnet from solaris box to
> > >> the
> > >> > server running on localhost
> > >> > and able to retrieve response. This is how results look like
> > >> >
> > >> > solaris -> windows - yes
> > >> > windows -> solaris - yes
> > >> > solaris -> solaris (localhost) - no (synapse and jboss server sitting
> > >> on
> > >> > the same machine can't talk to each other)
> > >> >
> > >
> > > Very peculiar.
> > >
> > >>
> > >> > Not sure what the problem could be other than with NIO (because using
> > >> > commons-httpclient API we are able to communicate to server running in
> > >> > solaris)
> > >> >
> > >> > This is the code segment from
> > >> > org.apache.http.impl.nio.reactor.DefaultConnectingIOReactor.java
> > >> >
> > >> > try {
> > >> > readyCount =
> > >> this.selector.select(TIMEOUT_CHECK_INTERVAL);
> > >> > } catch (InterruptedIOException ex) {
> > >> > throw ex;
> > >> > } catch (IOException ex) {
> > >> > throw new IOReactorException("Unexpected selector
> > >> > failure", ex);
> > >> > }
> > >> >
> > >> > if (this.closed) {
> > >> > break;
> > >> > }
> > >> >
> > >> > processSessionRequests();
> > >> >
> > >> > if (readyCount > 0) {
> > >> > processEvents(this.selector.selectedKeys());
> > >> > }
> > >> >
> > >> > Even though
> > >> >
> > >> > key = socketChannel.register(this.selector, 0);
> > >> >
> > >> > returns a valid selector key, the select() method returns count = 0.
> > >> >
> > >
> > > This looks like a bug in Sun Solaris NIO implementation to me. However,
> > > if just ignoring the readyCount value helps work the problem around I do
> > > not see a problem with including it into HttpCore.
> > >
> > > Could you please try patching the latest snapshot locally on a Solaris
> > > 2.9 box and see if you can get the test suite pass successfully?
> > >
> > > Oleg
> > >
> > >>
> > >> >
> > >> ---------------------------------------------------------------------------------------------
> > >> >
> > >> >
> > >> > Lets give this problem the due attention it deserves and try to find
> > >> its
> > >> > root cause.
> > >> >
> > >> >
> > >> >
> > >> > Hope this helps.
> > >> >
> > >> > thanks
> > >> > Balaji
> > >> >
> > >> > ---------------------------------------------------------------------
> > >> > To unsubscribe, e-mail:
> > >> httpcomponents-dev-unsubscribe@jakarta.apache.org
> > >> > For additional commands, e-mail:
> > >> > httpcomponents-dev-help@jakarta.apache.org
> > >> >
> > >> >
> > >> >
> > >>
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: httpcomponents-dev-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail:
> > > httpcomponents-dev-help@jakarta.apache.org
> > >
> > >
> > >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: httpcomponents-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: httpcomponents-dev-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: httpcomponents-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpcomponents-dev-help@jakarta.apache.org
Re: Synapse not able to send request to jboss server + solaris 5.9
Posted by Oleg Kalnichevski <ol...@apache.org>.
On Fri, 2007-07-06 at 08:56 -0700, balaji hari wrote:
> Oleg,
>
> Actually in DefaultConnectingIOReactor.processSessionRequests
>
> after this code segment
>
> SessionRequestHandle requestHandle = new SessionRequestHandle(request);
> key.attach(requestHandle);
> key.interestOps(SelectionKey.OP_CONNECT);
>
> we tried
>
> this.selector.select(0)
> this.selector.selectedKeys()
>
> This doesn't help!
>
> thanks
> Balaji
>
All right. So, this one is not going to be easy. I need a little more
info about what is going on under hood to try to pinpoint the problem.
Could you please copy these classes from HttpCore contrib package [1],
patch your test code to use LoggingClientIOEventDispatch instead of
DefaultClientIOEventDispatch and turn on debug logging by passing the
following parameters to the JVM?
-Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.SimpleLog -Dorg.apache.commons.logging.simplelog.log.org.apache.http=DEBUG
Oleg
[1]
http://svn.apache.org/repos/asf/jakarta/httpcomponents/httpcore/tags/4.0-alpha5/contrib/src/main/java/org/apache/http/contrib/logging/
>
> olegk wrote:
> >
> > On Fri, 2007-07-06 at 07:29 -0700, balaji hari wrote:
> >
> > ...
> >
> >> > The above seems quite confusing to me.. If the sample code you provide
> >> > can talk to an external Windows server, I don't see any reason why it
> >> > cant talk to a Solaris server? Just to be certain.. do you have any
> >> > firewalls or other software between the two boxes? Can you do a "telnet
> >> > <solarishost> <httpport>" from the command line and then a "GET /
> >> > HTTP/1.1" and see if you get some response back?
> >> >
> >> >
> >> ----------------------------------------------------------------------------------------------
> >> > No firewall issues, as we are able to do a telnet from solaris box to
> >> the
> >> > server running on localhost
> >> > and able to retrieve response. This is how results look like
> >> >
> >> > solaris -> windows - yes
> >> > windows -> solaris - yes
> >> > solaris -> solaris (localhost) - no (synapse and jboss server sitting
> >> on
> >> > the same machine can't talk to each other)
> >> >
> >
> > Very peculiar.
> >
> >>
> >> > Not sure what the problem could be other than with NIO (because using
> >> > commons-httpclient API we are able to communicate to server running in
> >> > solaris)
> >> >
> >> > This is the code segment from
> >> > org.apache.http.impl.nio.reactor.DefaultConnectingIOReactor.java
> >> >
> >> > try {
> >> > readyCount =
> >> this.selector.select(TIMEOUT_CHECK_INTERVAL);
> >> > } catch (InterruptedIOException ex) {
> >> > throw ex;
> >> > } catch (IOException ex) {
> >> > throw new IOReactorException("Unexpected selector
> >> > failure", ex);
> >> > }
> >> >
> >> > if (this.closed) {
> >> > break;
> >> > }
> >> >
> >> > processSessionRequests();
> >> >
> >> > if (readyCount > 0) {
> >> > processEvents(this.selector.selectedKeys());
> >> > }
> >> >
> >> > Even though
> >> >
> >> > key = socketChannel.register(this.selector, 0);
> >> >
> >> > returns a valid selector key, the select() method returns count = 0.
> >> >
> >
> > This looks like a bug in Sun Solaris NIO implementation to me. However,
> > if just ignoring the readyCount value helps work the problem around I do
> > not see a problem with including it into HttpCore.
> >
> > Could you please try patching the latest snapshot locally on a Solaris
> > 2.9 box and see if you can get the test suite pass successfully?
> >
> > Oleg
> >
> >>
> >> >
> >> ---------------------------------------------------------------------------------------------
> >> >
> >> >
> >> > Lets give this problem the due attention it deserves and try to find
> >> its
> >> > root cause.
> >> >
> >> >
> >> >
> >> > Hope this helps.
> >> >
> >> > thanks
> >> > Balaji
> >> >
> >> > ---------------------------------------------------------------------
> >> > To unsubscribe, e-mail:
> >> httpcomponents-dev-unsubscribe@jakarta.apache.org
> >> > For additional commands, e-mail:
> >> > httpcomponents-dev-help@jakarta.apache.org
> >> >
> >> >
> >> >
> >>
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: httpcomponents-dev-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail:
> > httpcomponents-dev-help@jakarta.apache.org
> >
> >
> >
>
---------------------------------------------------------------------
To unsubscribe, e-mail: httpcomponents-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpcomponents-dev-help@jakarta.apache.org
Re: Synapse not able to send request to jboss server + solaris 5.9
Posted by balaji hari <to...@gmail.com>.
Oleg,
Actually in DefaultConnectingIOReactor.processSessionRequests
after this code segment
SessionRequestHandle requestHandle = new SessionRequestHandle(request);
key.attach(requestHandle);
key.interestOps(SelectionKey.OP_CONNECT);
we tried
this.selector.select(0)
this.selector.selectedKeys()
This doesn't help!
thanks
Balaji
olegk wrote:
>
> On Fri, 2007-07-06 at 07:29 -0700, balaji hari wrote:
>
> ...
>
>> > The above seems quite confusing to me.. If the sample code you provide
>> > can talk to an external Windows server, I don't see any reason why it
>> > cant talk to a Solaris server? Just to be certain.. do you have any
>> > firewalls or other software between the two boxes? Can you do a "telnet
>> > <solarishost> <httpport>" from the command line and then a "GET /
>> > HTTP/1.1" and see if you get some response back?
>> >
>> >
>> ----------------------------------------------------------------------------------------------
>> > No firewall issues, as we are able to do a telnet from solaris box to
>> the
>> > server running on localhost
>> > and able to retrieve response. This is how results look like
>> >
>> > solaris -> windows - yes
>> > windows -> solaris - yes
>> > solaris -> solaris (localhost) - no (synapse and jboss server sitting
>> on
>> > the same machine can't talk to each other)
>> >
>
> Very peculiar.
>
>>
>> > Not sure what the problem could be other than with NIO (because using
>> > commons-httpclient API we are able to communicate to server running in
>> > solaris)
>> >
>> > This is the code segment from
>> > org.apache.http.impl.nio.reactor.DefaultConnectingIOReactor.java
>> >
>> > try {
>> > readyCount =
>> this.selector.select(TIMEOUT_CHECK_INTERVAL);
>> > } catch (InterruptedIOException ex) {
>> > throw ex;
>> > } catch (IOException ex) {
>> > throw new IOReactorException("Unexpected selector
>> > failure", ex);
>> > }
>> >
>> > if (this.closed) {
>> > break;
>> > }
>> >
>> > processSessionRequests();
>> >
>> > if (readyCount > 0) {
>> > processEvents(this.selector.selectedKeys());
>> > }
>> >
>> > Even though
>> >
>> > key = socketChannel.register(this.selector, 0);
>> >
>> > returns a valid selector key, the select() method returns count = 0.
>> >
>
> This looks like a bug in Sun Solaris NIO implementation to me. However,
> if just ignoring the readyCount value helps work the problem around I do
> not see a problem with including it into HttpCore.
>
> Could you please try patching the latest snapshot locally on a Solaris
> 2.9 box and see if you can get the test suite pass successfully?
>
> Oleg
>
>>
>> >
>> ---------------------------------------------------------------------------------------------
>> >
>> >
>> > Lets give this problem the due attention it deserves and try to find
>> its
>> > root cause.
>> >
>> >
>> >
>> > Hope this helps.
>> >
>> > thanks
>> > Balaji
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail:
>> httpcomponents-dev-unsubscribe@jakarta.apache.org
>> > For additional commands, e-mail:
>> > httpcomponents-dev-help@jakarta.apache.org
>> >
>> >
>> >
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: httpcomponents-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> httpcomponents-dev-help@jakarta.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/Re%3A-Synapse-not-able-to-send-request-to-jboss-server-%2B-solaris-5.9-tf4033622.html#a11467829
Sent from the HttpComponents-Dev mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: httpcomponents-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpcomponents-dev-help@jakarta.apache.org
Re: Synapse not able to send request to jboss server + solaris 5.9
Posted by Oleg Kalnichevski <ol...@apache.org>.
On Fri, 2007-07-06 at 07:29 -0700, balaji hari wrote:
...
> > The above seems quite confusing to me.. If the sample code you provide
> > can talk to an external Windows server, I don't see any reason why it
> > cant talk to a Solaris server? Just to be certain.. do you have any
> > firewalls or other software between the two boxes? Can you do a "telnet
> > <solarishost> <httpport>" from the command line and then a "GET /
> > HTTP/1.1" and see if you get some response back?
> >
> > ----------------------------------------------------------------------------------------------
> > No firewall issues, as we are able to do a telnet from solaris box to the
> > server running on localhost
> > and able to retrieve response. This is how results look like
> >
> > solaris -> windows - yes
> > windows -> solaris - yes
> > solaris -> solaris (localhost) - no (synapse and jboss server sitting on
> > the same machine can't talk to each other)
> >
Very peculiar.
>
> > Not sure what the problem could be other than with NIO (because using
> > commons-httpclient API we are able to communicate to server running in
> > solaris)
> >
> > This is the code segment from
> > org.apache.http.impl.nio.reactor.DefaultConnectingIOReactor.java
> >
> > try {
> > readyCount = this.selector.select(TIMEOUT_CHECK_INTERVAL);
> > } catch (InterruptedIOException ex) {
> > throw ex;
> > } catch (IOException ex) {
> > throw new IOReactorException("Unexpected selector
> > failure", ex);
> > }
> >
> > if (this.closed) {
> > break;
> > }
> >
> > processSessionRequests();
> >
> > if (readyCount > 0) {
> > processEvents(this.selector.selectedKeys());
> > }
> >
> > Even though
> >
> > key = socketChannel.register(this.selector, 0);
> >
> > returns a valid selector key, the select() method returns count = 0.
> >
This looks like a bug in Sun Solaris NIO implementation to me. However,
if just ignoring the readyCount value helps work the problem around I do
not see a problem with including it into HttpCore.
Could you please try patching the latest snapshot locally on a Solaris
2.9 box and see if you can get the test suite pass successfully?
Oleg
>
> > ---------------------------------------------------------------------------------------------
> >
> >
> > Lets give this problem the due attention it deserves and try to find its
> > root cause.
> >
> >
> >
> > Hope this helps.
> >
> > thanks
> > Balaji
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: httpcomponents-dev-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail:
> > httpcomponents-dev-help@jakarta.apache.org
> >
> >
> >
>
---------------------------------------------------------------------
To unsubscribe, e-mail: httpcomponents-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpcomponents-dev-help@jakarta.apache.org
Re: Synapse not able to send request to jboss server + solaris 5.9
Posted by balaji hari <to...@gmail.com>.
asankha wrote:
>
> Balaji
>> Is there a way to configure synapse
>> not to use NIO but blocking Http transport?
>>
> I don't think thats the right solution to this problem, as we spent a
> long time building a non-blocking transport and now we see its benefits
> and the scalability we have achieved. The problem with a blocking
> transport for an intermediary such as Synapse is that it boils down to
> one-thread per client connection, and this thread may be blocked on IO
> and waiting for the backend service to reply.
>
> I would like to understand your problem in more detail, and try to see
> if I can reproduce it. So you need to tell me and Oleg the exact JDK
> version you are using, your OS version and the hardware (Sparc/Intel) so
> that we could try to investigate it further. Also could you try this
> with a different version of the JDK (1.5.x).. maybe JDK 1.6 and a newer
> Solaris box or OS version? Also since you have nailed this down to
> HttpCore-NIO alone, maybe you could try the 4.0-alpha5 release of
> HttpCore that came out in the last week.
> -------------------------------------------------------------------------------------------------
> We tried with jdk1.5.0_06 and jdk1.5.0_11, but same results.
>
> Solaris: SunOS callisto 5.9 Generic_118558-39 sun4u sparc
> SUNW,Sun-Fire-280R
>
> Please try the program NHttpClient.java in solaris box to simulate the
> issue. chaging to 4.0-alpha5 doesn't
> make a difference.
>
> --------------------------------------------------------------------------------------------------
>
>
> >The example given in NIO module NHttpClient.java when executed from
> solaris box is able to talk to HTTP
> > server / servlet container running in windows but not solaris (not
> even local machine).
>
> The above seems quite confusing to me.. If the sample code you provide
> can talk to an external Windows server, I don't see any reason why it
> cant talk to a Solaris server? Just to be certain.. do you have any
> firewalls or other software between the two boxes? Can you do a "telnet
> <solarishost> <httpport>" from the command line and then a "GET /
> HTTP/1.1" and see if you get some response back?
>
> ----------------------------------------------------------------------------------------------
> No firewall issues, as we are able to do a telnet from solaris box to the
> server running on localhost
> and able to retrieve response. This is how results look like
>
> solaris -> windows - yes
> windows -> solaris - yes
> solaris -> solaris (localhost) - no (synapse and jboss server sitting on
> the same machine can't talk to each other)
>
> Not sure what the problem could be other than with NIO (because using
> commons-httpclient API we are able to communicate to server running in
> solaris)
>
> This is the code segment from
> org.apache.http.impl.nio.reactor.DefaultConnectingIOReactor.java
>
> try {
> readyCount = this.selector.select(TIMEOUT_CHECK_INTERVAL);
> } catch (InterruptedIOException ex) {
> throw ex;
> } catch (IOException ex) {
> throw new IOReactorException("Unexpected selector
> failure", ex);
> }
>
> if (this.closed) {
> break;
> }
>
> processSessionRequests();
>
> if (readyCount > 0) {
> processEvents(this.selector.selectedKeys());
> }
>
> Even though
>
> key = socketChannel.register(this.selector, 0);
>
> returns a valid selector key, the select() method returns count = 0.
>
> ---------------------------------------------------------------------------------------------
>
>
> Lets give this problem the due attention it deserves and try to find its
> root cause.
>
>
>
> Hope this helps.
>
> thanks
> Balaji
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: httpcomponents-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> httpcomponents-dev-help@jakarta.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/Re%3A-Synapse-not-able-to-send-request-to-jboss-server-%2B-solaris-5.9-tf4033622.html#a11465364
Sent from the HttpComponents-Dev mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: httpcomponents-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpcomponents-dev-help@jakarta.apache.org
Re: Synapse not able to send request to jboss server + solaris 5.9
Posted by Ortwin Glück <od...@odi.ch>.
Asankha C. Perera wrote:
> Can you do a "telnet
> <solarishost> <httpport>" from the command line and then a "GET /
> HTTP/1.1" and see if you get some response back?
Alternatively a full packet dump from that port would be acceptable:
sample:
tcpdump -s 9000 -w pack host server.com and host client.com and port 80
> dumpfile
Such a dump can easily be viewed in Wireshark.
Ortwin
--
[web] http://www.odi.ch/
[blog] http://www.odi.ch/weblog/
[pgp] key 0x81CF3416
finger print F2B1 B21F F056 D53E 5D79 A5AF 02BE 70F5 81CF 3416
---------------------------------------------------------------------
To unsubscribe, e-mail: httpcomponents-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpcomponents-dev-help@jakarta.apache.org
Re: Synapse not able to send request to jboss server + solaris 5.9
Posted by "Asankha C. Perera" <as...@wso2.com>.
Balaji
> Is there a way to configure synapse
> not to use NIO but blocking Http transport?
>
I don't think thats the right solution to this problem, as we spent a
long time building a non-blocking transport and now we see its benefits
and the scalability we have achieved. The problem with a blocking
transport for an intermediary such as Synapse is that it boils down to
one-thread per client connection, and this thread may be blocked on IO
and waiting for the backend service to reply.
I would like to understand your problem in more detail, and try to see
if I can reproduce it. So you need to tell me and Oleg the exact JDK
version you are using, your OS version and the hardware (Sparc/Intel) so
that we could try to investigate it further. Also could you try this
with a different version of the JDK (1.5.x).. maybe JDK 1.6 and a newer
Solaris box or OS version? Also since you have nailed this down to
HttpCore-NIO alone, maybe you could try the 4.0-alpha5 release of
HttpCore that came out in the last week.
>The example given in NIO module NHttpClient.java when executed from
solaris box is able to talk to HTTP
> server / servlet container running in windows but not solaris (not
even local machine).
The above seems quite confusing to me.. If the sample code you provide
can talk to an external Windows server, I don't see any reason why it
cant talk to a Solaris server? Just to be certain.. do you have any
firewalls or other software between the two boxes? Can you do a "telnet
<solarishost> <httpport>" from the command line and then a "GET /
HTTP/1.1" and see if you get some response back?
Lets give this problem the due attention it deserves and try to find its
root cause.
thanks
asankha
---------------------------------------------------------------------
To unsubscribe, e-mail: synapse-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: synapse-dev-help@ws.apache.org
Re: Synapse not able to send request to jboss server + solaris 5.9
Posted by "Asankha C. Perera" <as...@wso2.com>.
Balaji
> Is there a way to configure synapse
> not to use NIO but blocking Http transport?
>
I don't think thats the right solution to this problem, as we spent a
long time building a non-blocking transport and now we see its benefits
and the scalability we have achieved. The problem with a blocking
transport for an intermediary such as Synapse is that it boils down to
one-thread per client connection, and this thread may be blocked on IO
and waiting for the backend service to reply.
I would like to understand your problem in more detail, and try to see
if I can reproduce it. So you need to tell me and Oleg the exact JDK
version you are using, your OS version and the hardware (Sparc/Intel) so
that we could try to investigate it further. Also could you try this
with a different version of the JDK (1.5.x).. maybe JDK 1.6 and a newer
Solaris box or OS version? Also since you have nailed this down to
HttpCore-NIO alone, maybe you could try the 4.0-alpha5 release of
HttpCore that came out in the last week.
>The example given in NIO module NHttpClient.java when executed from
solaris box is able to talk to HTTP
> server / servlet container running in windows but not solaris (not
even local machine).
The above seems quite confusing to me.. If the sample code you provide
can talk to an external Windows server, I don't see any reason why it
cant talk to a Solaris server? Just to be certain.. do you have any
firewalls or other software between the two boxes? Can you do a "telnet
<solarishost> <httpport>" from the command line and then a "GET /
HTTP/1.1" and see if you get some response back?
Lets give this problem the due attention it deserves and try to find its
root cause.
thanks
asankha
---------------------------------------------------------------------
To unsubscribe, e-mail: httpcomponents-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpcomponents-dev-help@jakarta.apache.org
Re: Synapse not able to send request to jboss server + solaris 5.9
Posted by balaji hari <to...@gmail.com>.
Paul,
Thanks for getting back to us on this. Is there a way to configure synapse
not to use NIO but blocking Http transport?
Balaji
pzfreo wrote:
>
> Balaji
>
> Thanks for spotting this. I don't think anyone has tried this on
> Solaris. We will follow up with the HttpCore team as well.
>
> Paul
>
> On 7/5/07, balaji hari <to...@gmail.com> wrote:
>>
>> http://www.nabble.com/file/p11452606/websvc_synapse_config.xml
>> websvc_synapse_config.xml
>> http://www.nabble.com/file/p11452606/websvc_policy.xml websvc_policy.xml
>> http://www.nabble.com/file/p11452606/NHttpClient.java NHttpClient.java
>> http://www.nabble.com/file/p11452606/EventLogger.java EventLogger.java
>>
>> We are evaluating synapse1.0 to perform usernametoken authentication and
>> forward SOAP request to jboss server. I have attached the synapse
>> configuration xml and policy xml. The setup works with windows XP.
>>
>> But when we tried moving the set up to solaris, synapse is not able to
>> forward the request to jboss server.
>> We have the synapse and jboss server running in same box.
>>
>> When we digged the problem further and we are able to narrow down the
>> problem to NIO sender used by synapse. I have attached a sample program
>> (NHttpClient.java + EventLogger.java) which does a Basic HTTP GET and
>> prints
>> the response using Jakarta HTTPCore NIO API.
>>
>> Here is the reference to the issue happening in solaris, but unable to
>> find
>> a solution.
>>
>> http://forum.java.sun.com/thread.jspa?forumID=256&threadID=420607
>> http://forum.java.sun.com/thread.jspa?forumID=4&threadID=293672
>>
>> This implies synapse won't work in solaris using NIO Http transport.
>>
>> Has anyone faced similar issues. Any help or thoughts would be greatly
>> appreciated.
>>
>> Java Version 1.5.0.06
>> Jakarta HttpCore bundled with synapse-1.0 release.
>> --
>> View this message in context:
>> http://www.nabble.com/Synapse-not-able-to-send-request-to-jboss-server-%2B-solaris-5.9-tf4031674.html#a11452606
>> Sent from the Synapse - Dev mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: synapse-dev-unsubscribe@ws.apache.org
>> For additional commands, e-mail: synapse-dev-help@ws.apache.org
>>
>>
>
>
> --
> Paul Fremantle
> Co-Founder and VP of Technical Sales, WSO2
> OASIS WS-RX TC Co-chair
>
> blog: http://pzf.fremantle.org
> paul@wso2.com
>
> "Oxygenating the Web Service Platform", www.wso2.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: synapse-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: synapse-dev-help@ws.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/Synapse-not-able-to-send-request-to-jboss-server-%2B-solaris-5.9-tf4031674.html#a11454284
Sent from the Synapse - Dev mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: synapse-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: synapse-dev-help@ws.apache.org
Re: Synapse not able to send request to jboss server + solaris 5.9
Posted by Paul Fremantle <pz...@gmail.com>.
Balaji
Thanks for spotting this. I don't think anyone has tried this on
Solaris. We will follow up with the HttpCore team as well.
Paul
On 7/5/07, balaji hari <to...@gmail.com> wrote:
>
> http://www.nabble.com/file/p11452606/websvc_synapse_config.xml
> websvc_synapse_config.xml
> http://www.nabble.com/file/p11452606/websvc_policy.xml websvc_policy.xml
> http://www.nabble.com/file/p11452606/NHttpClient.java NHttpClient.java
> http://www.nabble.com/file/p11452606/EventLogger.java EventLogger.java
>
> We are evaluating synapse1.0 to perform usernametoken authentication and
> forward SOAP request to jboss server. I have attached the synapse
> configuration xml and policy xml. The setup works with windows XP.
>
> But when we tried moving the set up to solaris, synapse is not able to
> forward the request to jboss server.
> We have the synapse and jboss server running in same box.
>
> When we digged the problem further and we are able to narrow down the
> problem to NIO sender used by synapse. I have attached a sample program
> (NHttpClient.java + EventLogger.java) which does a Basic HTTP GET and prints
> the response using Jakarta HTTPCore NIO API.
>
> Here is the reference to the issue happening in solaris, but unable to find
> a solution.
>
> http://forum.java.sun.com/thread.jspa?forumID=256&threadID=420607
> http://forum.java.sun.com/thread.jspa?forumID=4&threadID=293672
>
> This implies synapse won't work in solaris using NIO Http transport.
>
> Has anyone faced similar issues. Any help or thoughts would be greatly
> appreciated.
>
> Java Version 1.5.0.06
> Jakarta HttpCore bundled with synapse-1.0 release.
> --
> View this message in context: http://www.nabble.com/Synapse-not-able-to-send-request-to-jboss-server-%2B-solaris-5.9-tf4031674.html#a11452606
> Sent from the Synapse - Dev mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: synapse-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: synapse-dev-help@ws.apache.org
>
>
--
Paul Fremantle
Co-Founder and VP of Technical Sales, WSO2
OASIS WS-RX TC Co-chair
blog: http://pzf.fremantle.org
paul@wso2.com
"Oxygenating the Web Service Platform", www.wso2.com
---------------------------------------------------------------------
To unsubscribe, e-mail: synapse-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: synapse-dev-help@ws.apache.org