[6277] in java-interest

home help back first fref pref prev next nref lref last post

Re: `Not privileged' Problem

daemon@ATHENA.MIT.EDU (Joachim Laier)
Wed Mar 27 19:08:58 1996

Date:         Mon, 25 Mar 1996 13:01:24 +0100
Reply-To: Joachim.Laier@zfe.siemens.de
From: Joachim Laier <laier@BSUN17.ZFE.SIEMENS.DE>
To: Multiple recipients of list JAVA-INTEREST
              <JAVA-INTEREST@JAVASOFT.COM>

>  Hi:
> Here's a problem faced by novice programmer:
> I wrote a simple Java APPLICATION which use Socket to connect port 418
> (Hyper-G Server) of our local host (meranti.fit.unimas.my). But when I run
> the class with `java', the `Exception' reports the following error:
> "
> Exception:  java.net.SocketException: Not privileged
> Exception:
> java.lang.NullPointerException
> "
> Could anybody please explain what this `Not privileged' means..
>
> Thanks a lot.
>
> -Basher
Dear Basher:

the reason could be that up to a certain number of sockets access is granted to OS-processes only. Cause your java process doesn't have the status like an OS-Process you can't access that port.

I'm not absolutely sure if this is right but I think I read that some time.

Jo

-----
This message has been forwarded via the JAVA-INTEREST
mailing list.  In order to unsubscribe from this list, send a message to
listserv@javasoft.com with the command 'signoff JAVA-INTEREST' in
the message body (not in the subject line).

home help back first fref pref prev next nref lref last post