Two Laptop Bag
The moose likes Web Services and the fly likes Axis SoapMonitor woes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Axis SoapMonitor woes" Watch "Axis SoapMonitor woes" New topic

Axis SoapMonitor woes

Baba Bizlowsky
Ranch Hand

Joined: Dec 15, 2003
Posts: 39
Hi everybody.

A few months ago I played with the Axis SOAP Monitor by following the instructions on and everything worked great.

In the meantime I uninstalled everything and recently installed it back. I tried activating SOAPMonitor again, follows exactly the same instructions, but upon starting the SOAPMonitor applet I get:

The SOAP Monitor is unable to communcate with the server.

I tried everything, checked every line, but it just doesn't want to work properly.

Please help me. I have to demonstrate SOAP communication in a few days and this tool is very important to me.

P.S. Exception in Java console reads as follows:

Exception! Cannot assign requested address: connect Cannot assign requested address: connect
at Method)
at Source)
at Source)
at Source)
at<init>(Unknown Source)
at<init>(Unknown Source)
at SOAPMonitorApplet$SOAPMonitorPage.start(
at SOAPMonitorApplet.start(
at Source)
at Source)

P.P.S. By digging through the SoapMonitorApplet code I saw that this line is the reason (I wrote just the important parts of the code):

int port;

public void init() {
String port_str = getParameter("port");
if (port_str != null) {
port = Integer.parseInt(port_str);

public void start() {
String codehost = getCodeBase().getHost();
if (socket == null) {
try {
// Open the socket to the server
socket = new Socket(codehost, port);
// Create output stream
out = new ObjectOutputStream(socket.getOutputStream());
// Create input stream and start background
// thread to read data from the server
in = new ObjectInputStream(socket.getInputStream());
new Thread(this).start();
} catch (Exception e) {

As you can see, I debugged it with System.out.println's and I saw that the port variable reads as 0, which can't be right. I tried changing the bold line to open with 8080 instead of the read parameter, but it still doesn't work, although with a different exception, " Caught EOFException while reading the stream header".

Again,please help me if you can.
[ June 06, 2004: Message edited by: Baba Bizlowsky ]
I agree. Here's the link:
subject: Axis SoapMonitor woes
It's not a secret anymore!