Re: need help Connect failure in an applet

From: Alex Turner <armtuk(at)gmail(dot)com>
To: jdoggett(at)markem(dot)com
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: need help Connect failure in an applet
Date: 2005-01-07 17:04:11
Message-ID: 33c6269f05010709047567ca74@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

An applet is only permitted to connect back to the originating server
IP that served the HTTP request. If you try to connect to a different
address, it will fail with a permissions exception. 127.0.0.1 is the
localhost loopback address, and would not work from a remote host
either.

Alex Turner
NetEconomist

On Fri, 7 Jan 2005 11:23:46 -0500, John Doggett <jdoggett(at)markem(dot)com> wrote:
>
>
> Does anyone know why a connect call will fail with an
> AccessControlException:access denied(java.net.SocketPermission
> 127.0.0.1:5432 connect, resolve) from a browser delivered applet?
>
> The applet works fine in the debugger.
>
> I have PostgreSQL running in windows.
>
> Jay
>
> This e-mail message and any attachments are confidential and may be
> privileged. If you are not the intended recipient, please notify MARKEM
> Corporation immediately -- by replying to this message or by sending an
> e-mail to helpdesk(at)markem(dot)com -- and destroy all copies of this message
> and any attachments. Thank you.
>
> Nothing contained within this e-mail, including attachments, is intended to
> include or constitute an "electronic signature" as defined in 15 U.S.C. §
> 7006(5).
>

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Alban Hertroys 2005-01-07 17:06:34 Transaction size
Previous Message Xinshu Piao 2005-01-07 17:00:02 unsubscribe