You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-user@ws.apache.org by dovle <do...@delsyne.ro> on 2002/01/31 09:16:46 UTC

Problem with circular refs

Hi all ,
First question: does apache soap handles circular refs?

why do I ask this. Because I have the following situation:

class car holds a ref to an order. 
The order holds a ref to the car (1 to 1 relationship)

when the apache soap tryes to serialize them it seems to cal car.getorder, 
order.getcar, car.getorder...  and so on. 

And finally I get a NUllPoiinterException somewhere inside the 
SOAPFaultRouter. 

Please enlight me with this, because it seems pretty weird . 

Thanks 
dovle 

Re: Can I run TcpTunnelGui on a remote host?

Posted by Han Ming Ong <ha...@chirpyfish.org>.
On Thursday, January 31, 2002, at 01:14  PM, Han Ming Ong wrote:

> Absolutely you can.
>
> Say your remote host is bluewhale.xxx.com and it's running Tomcat 3.3 
> with Apache SOAP 2.2 and it's listening at 8080 (Now I see that you are 
> running at 443, which is HTTPS port. I have never tried that but I 
> assume that you have configured it to listen to port 443. Test that out 
> first).
>
> The original URL is
>
> 	http://bluewhale.xxx.com/MySoapApp/foo

I mean, http://bluewhale.xxx.com:8080/MySoapApp/foo

>
> Say your monitoring host is walrus.xxx.com
>
> On your walrus host, run
>
> java -cp ... org.apache.soap.util.net.TcpTunnelGui 5555 
> bluewhale.xxx.com 8080
>
> So open a browser, the following URL will first route to walrus and 
> then to bluewhale so that you can see all the traffic between them.
>
> 	http://walrus.xxx.com/MySoapApp/foo

I mean, http://walrus.xxx.com:5555/MySoapApp/foo

Sorry for the confusion

>
> Again, port 443 is HTTPS which is encrypted, which is probably not what 
> you want.
>
> Good luck.
>
> On Thursday, January 31, 2002, at 09:23  AM, Tim Wei wrote:
>
>> Hi,
>>
>> How can I run TcpTunnelGui on a remote host? If yes, how can spesify 
>> the port numbers?
>>
>> I am not interested in the request appearing on the left hand pane. I 
>> want to have the response from the remote server appear on the right 
>> hand pane of the gui.
>>
>> Something like this:
>> java org.apache.soap.util.net.TcpTunnelGui 5555 remoteHost 443
>>
>> Thank you very much in advance.
>>
>> Tim
>>
>> Tim's home page:
>> http://www.geocities.com/timwei
>>
>>

Re: Can I run TcpTunnelGui on a remote host?

Posted by Han Ming Ong <ha...@chirpyfish.org>.
On Thursday, January 31, 2002, at 01:14  PM, Han Ming Ong wrote:

> Absolutely you can.
>
> Say your remote host is bluewhale.xxx.com and it's running Tomcat 3.3 
> with Apache SOAP 2.2 and it's listening at 8080 (Now I see that you are 
> running at 443, which is HTTPS port. I have never tried that but I 
> assume that you have configured it to listen to port 443. Test that out 
> first).
>
> The original URL is
>
> 	http://bluewhale.xxx.com/MySoapApp/foo

I mean, http://bluewhale.xxx.com:8080/MySoapApp/foo

>
> Say your monitoring host is walrus.xxx.com
>
> On your walrus host, run
>
> java -cp ... org.apache.soap.util.net.TcpTunnelGui 5555 
> bluewhale.xxx.com 8080
>
> So open a browser, the following URL will first route to walrus and 
> then to bluewhale so that you can see all the traffic between them.
>
> 	http://walrus.xxx.com/MySoapApp/foo

I mean, http://walrus.xxx.com:5555/MySoapApp/foo

Sorry for the confusion

>
> Again, port 443 is HTTPS which is encrypted, which is probably not what 
> you want.
>
> Good luck.
>
> On Thursday, January 31, 2002, at 09:23  AM, Tim Wei wrote:
>
>> Hi,
>>
>> How can I run TcpTunnelGui on a remote host? If yes, how can spesify 
>> the port numbers?
>>
>> I am not interested in the request appearing on the left hand pane. I 
>> want to have the response from the remote server appear on the right 
>> hand pane of the gui.
>>
>> Something like this:
>> java org.apache.soap.util.net.TcpTunnelGui 5555 remoteHost 443
>>
>> Thank you very much in advance.
>>
>> Tim
>>
>> Tim's home page:
>> http://www.geocities.com/timwei
>>
>>

Re: Can I run TcpTunnelGui on a remote host?

Posted by Tim Wei <ti...@yahoo.com>.
Thank you very much.

I am going to try it.


Tim

--- Han Ming Ong <ha...@chirpyfish.org> wrote:
> Absolutely you can.
> 
> Say your remote host is bluewhale.xxx.com and it's running
> Tomcat 3.3 
> with Apache SOAP 2.2 and it's listening at 8080 (Now I see
> that you are 
> running at 443, which is HTTPS port. I have never tried that
> but I 
> assume that you have configured it to listen to port 443. Test
> that out 
> first).
> 
> The original URL is
> 
> 	http://bluewhale.xxx.com/MySoapApp/foo
> 
> Say your monitoring host is walrus.xxx.com
> 
> On your walrus host, run
> 
> java -cp ... org.apache.soap.util.net.TcpTunnelGui 5555 
> bluewhale.xxx.com 8080
> 
> So open a browser, the following URL will first route to
> walrus and then 
> to bluewhale so that you can see all the traffic between them.
> 
> 	http://walrus.xxx.com/MySoapApp/foo
> 
> Again, port 443 is HTTPS which is encrypted, which is probably
> not what 
> you want.
> 
> Good luck.


=====
Tim's home page: 
http://www.geocities.com/timwei

__________________________________________________
Do You Yahoo!?
Great stuff seeking new owners in Yahoo! Auctions! 
http://auctions.yahoo.com

Re: Can I run TcpTunnelGui on a remote host?

Posted by Tim Wei <ti...@yahoo.com>.
Thank you very much.

I am going to try it.


Tim

--- Han Ming Ong <ha...@chirpyfish.org> wrote:
> Absolutely you can.
> 
> Say your remote host is bluewhale.xxx.com and it's running
> Tomcat 3.3 
> with Apache SOAP 2.2 and it's listening at 8080 (Now I see
> that you are 
> running at 443, which is HTTPS port. I have never tried that
> but I 
> assume that you have configured it to listen to port 443. Test
> that out 
> first).
> 
> The original URL is
> 
> 	http://bluewhale.xxx.com/MySoapApp/foo
> 
> Say your monitoring host is walrus.xxx.com
> 
> On your walrus host, run
> 
> java -cp ... org.apache.soap.util.net.TcpTunnelGui 5555 
> bluewhale.xxx.com 8080
> 
> So open a browser, the following URL will first route to
> walrus and then 
> to bluewhale so that you can see all the traffic between them.
> 
> 	http://walrus.xxx.com/MySoapApp/foo
> 
> Again, port 443 is HTTPS which is encrypted, which is probably
> not what 
> you want.
> 
> Good luck.


=====
Tim's home page: 
http://www.geocities.com/timwei

__________________________________________________
Do You Yahoo!?
Great stuff seeking new owners in Yahoo! Auctions! 
http://auctions.yahoo.com

Re: Can I run TcpTunnelGui on a remote host?

Posted by Han Ming Ong <ha...@chirpyfish.org>.
Absolutely you can.

Say your remote host is bluewhale.xxx.com and it's running Tomcat 3.3 
with Apache SOAP 2.2 and it's listening at 8080 (Now I see that you are 
running at 443, which is HTTPS port. I have never tried that but I 
assume that you have configured it to listen to port 443. Test that out 
first).

The original URL is

	http://bluewhale.xxx.com/MySoapApp/foo

Say your monitoring host is walrus.xxx.com

On your walrus host, run

java -cp ... org.apache.soap.util.net.TcpTunnelGui 5555 
bluewhale.xxx.com 8080

So open a browser, the following URL will first route to walrus and then 
to bluewhale so that you can see all the traffic between them.

	http://walrus.xxx.com/MySoapApp/foo

Again, port 443 is HTTPS which is encrypted, which is probably not what 
you want.

Good luck.

On Thursday, January 31, 2002, at 09:23  AM, Tim Wei wrote:

> Hi,
>
> How can I run TcpTunnelGui on a remote host? If yes, how can spesify 
> the port numbers?
>
> I am not interested in the request appearing on the left hand pane. I 
> want to have the response from the remote server appear on the right 
> hand pane of the gui.
>
> Something like this:
> java org.apache.soap.util.net.TcpTunnelGui 5555 remoteHost 443
>
> Thank you very much in advance.
>
> Tim
>
> Tim's home page:
> http://www.geocities.com/timwei
>

Re: Can I run TcpTunnelGui on a remote host?

Posted by Han Ming Ong <ha...@chirpyfish.org>.
Absolutely you can.

Say your remote host is bluewhale.xxx.com and it's running Tomcat 3.3 
with Apache SOAP 2.2 and it's listening at 8080 (Now I see that you are 
running at 443, which is HTTPS port. I have never tried that but I 
assume that you have configured it to listen to port 443. Test that out 
first).

The original URL is

	http://bluewhale.xxx.com/MySoapApp/foo

Say your monitoring host is walrus.xxx.com

On your walrus host, run

java -cp ... org.apache.soap.util.net.TcpTunnelGui 5555 
bluewhale.xxx.com 8080

So open a browser, the following URL will first route to walrus and then 
to bluewhale so that you can see all the traffic between them.

	http://walrus.xxx.com/MySoapApp/foo

Again, port 443 is HTTPS which is encrypted, which is probably not what 
you want.

Good luck.

On Thursday, January 31, 2002, at 09:23  AM, Tim Wei wrote:

> Hi,
>
> How can I run TcpTunnelGui on a remote host? If yes, how can spesify 
> the port numbers?
>
> I am not interested in the request appearing on the left hand pane. I 
> want to have the response from the remote server appear on the right 
> hand pane of the gui.
>
> Something like this:
> java org.apache.soap.util.net.TcpTunnelGui 5555 remoteHost 443
>
> Thank you very much in advance.
>
> Tim
>
> Tim's home page:
> http://www.geocities.com/timwei
>

Can I run TcpTunnelGui on a remote host?

Posted by Tim Wei <ti...@yahoo.com>.
Hi,

How can I run TcpTunnelGui on a remote host? If yes, how can spesify the port numbers?

I am not interested in the request appearing on the left hand pane. I want to have the response from the remote server appear on the right hand pane of the gui.

Something like this:
java org.apache.soap.util.net.TcpTunnelGui 5555 remoteHost 443

Thank you very much in advance.

Tim

Tim's home page: 
http://www.geocities.com/timwei


---------------------------------
Do You Yahoo!?
Yahoo! Auctions Great stuff seeking new owners! Bid now!

Can I run TcpTunnelGui on a remote host?

Posted by Tim Wei <ti...@yahoo.com>.
Hi,

How can I run TcpTunnelGui on a remote host? If yes, how can spesify the port numbers?

I am not interested in the request appearing on the left hand pane. I want to have the response from the remote server appear on the right hand pane of the gui.

Something like this:
java org.apache.soap.util.net.TcpTunnelGui 5555 remoteHost 443

Thank you very much in advance.

Tim

Tim's home page: 
http://www.geocities.com/timwei


---------------------------------
Do You Yahoo!?
Yahoo! Auctions Great stuff seeking new owners! Bid now!

Re: Problem with circular refs

Posted by Simon Fell <so...@zaks.demon.co.uk>.
It will de-serialize them, but not serialize them.

Cheers
Simon

On Thu, 31 Jan 2002 10:16:46 +0200, in soap you wrote:

>Hi all ,
>First question: does apache soap handles circular refs?
>
>why do I ask this. Because I have the following situation:
>
>class car holds a ref to an order. 
>The order holds a ref to the car (1 to 1 relationship)
>
>when the apache soap tryes to serialize them it seems to cal car.getorder, 
>order.getcar, car.getorder...  and so on. 
>
>And finally I get a NUllPoiinterException somewhere inside the 
>SOAPFaultRouter. 
>
>Please enlight me with this, because it seems pretty weird . 
>
>Thanks 
>dovle 


Re: Problem with circular refs

Posted by Simon Fell <so...@zaks.demon.co.uk>.
It will de-serialize them, but not serialize them.

Cheers
Simon

On Thu, 31 Jan 2002 10:16:46 +0200, in soap you wrote:

>Hi all ,
>First question: does apache soap handles circular refs?
>
>why do I ask this. Because I have the following situation:
>
>class car holds a ref to an order. 
>The order holds a ref to the car (1 to 1 relationship)
>
>when the apache soap tryes to serialize them it seems to cal car.getorder, 
>order.getcar, car.getorder...  and so on. 
>
>And finally I get a NUllPoiinterException somewhere inside the 
>SOAPFaultRouter. 
>
>Please enlight me with this, because it seems pretty weird . 
>
>Thanks 
>dovle