HP3000-L Archives

February 2003, Week 2

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Charles Finley <[log in to unmask]>
Reply To:
Date:
Mon, 10 Feb 2003 12:08:40 -0800
Content-Type:
text/plain
Parts/Attachments:
text/plain (72 lines)
Mark Wonsil wrote:

> Have you tried doing a telnet to the machine and port 2021?  Have
> you tried
> running the Java program on another machine to help narrow done
> why the bind
> is failing?

Duh!!! As the author of the comic strip Pogo so famously wrote, "We Have Met
the Enemy and he Is Us."  I did it to myself again.

Port number was coded in two places in the code I was porting and I only
changed one to 2021.   I was able to determine this by following Mark's
suggestion and compiling it on Windows 2000. The Windows 2000 error message
provided more information about what the problem was.   The problem was
quickly solved by making the same change in both places and the code now
runs on MPE.

Thanks Mark.

Charles Finley
Transformix Computer Corporation
Oceanside, CA
(760) 439-3146

> -----Original Message-----
> From: HP-3000 Systems Discussion [mailto:[log in to unmask]]On
> Behalf Of Mark Wonsil
> Sent: Monday, February 10, 2003 10:31 AM
> To: [log in to unmask]
> Subject: Re: JAVA Socket Bind Permissions Issue
>
>
> HP-3000 Systems Discussion wrote:
> > Does anyone know a way arround this?  I'm trying to compile a sockets
> > based java application from the POSIX environment and when I enter
> > java "application name" I get the following.  I'm trying to use port
> > 2021.
> >
> >
> > java.net.BindException: Permission denied
> >
> > at java.net.PlainSocketImpl.socketBind(Native Method)
> >
> > at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:390)
> >
> > at java.net.ServerSocket.<init>(ServerSocket.java:173)
> >
> > at java.net.ServerSocket.<init>(ServerSocket.java:86)
> >
> > The offending statement is:
> >
> >
> >     ssock = new ServerSocket( port );
> >
>
> Charles,
>
> Have you tried doing a telnet to the machine and port 2021?  Have
> you tried
> running the Java program on another machine to help narrow done
> why the bind
> is failing?
>
> Mark
>
> * To join/leave the list, search archives, change list settings, *
> * etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

ATOM RSS1 RSS2