Sybase NNTP forums - End Of Life (EOL)

The NNTP forums from Sybase - forums.sybase.com - are now closed.

All new questions should be directed to the appropriate forum at the SAP Community Network (SCN).

Individual products have links to the respective forums on SCN, or you can go to SCN and search for your product in the search box (upper right corner) to find your specific developer center.

Security Violation error

2 posts in JDBC Connect (product renamed to JConnect) Last posting was on 1997-07-03 14:30:51.0Z
Gopal Krishna Posted on 1997-06-26 23:07:26.0Z
Message-ID: <33B2F62E.500F@corp.sgi.com>
Date: Thu, 26 Jun 1997 16:07:26 -0700
From: Gopal Krishna <gopalk@corp.sgi.com>
Organization: Silicon Graphics
X-Mailer: Mozilla 3.01SC-SGI (X11; I; IRIX 6.2 IP22)
MIME-Version: 1.0
CC: lancea@sybase.com
Subject: Security Violation error
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Newsgroups: sybase.public.jdbcconnect
Lines: 41
Path: forums-1-dub!forums-master.sybase.com!forums.powersoft.com
Xref: forums-1-dub sybase.public.jdbcconnect:627
Article PK: 252379

Can someone shed some light, as to why we are getting this error?
The applet works fine from AppletViewer.

We are using JDK 1.1 with Netscape 4.0 beta6 on IRIX.

Thanks,

---------

# Security Exception: Couldn't connect to <150.166.175.216> with origin
from
<opuss>.
# Applet exception: security violation: security.Couldn't connect to
<150.166.175.216> with origin from <opuss>.
netscape.security.AppletSecurityException: security.Couldn't connect to
<150.166.175.216> with origin from <opuss>.
at netscape.security.AppletSecurity.checkConnect(AppletSecurity.java)
at netscape.security.AppletSecurity.checkConnect(AppletSecurity.java)
at netscape.security.AppletSecurity.checkConnect(AppletSecurity.java)
at java.lang.SecurityManager.checkConnect(SecurityManager.java)
at java.net.Socket.<init>(Socket.java)
at java.net.Socket.<init>(Socket.java)
at jdbc.sybase.timedio.Dbio.connect(Dbio.java:67)
at jdbc.sybase.tds.Tds.login(Unknown Source)
at jdbc.sybase.jdbc.SybConnection.<init>(SybConnection.java:136)
at jdbc.sybase.jdbc.SybDriver.connect(SybDriver.java:160)
at jdbc.sql.DriverManager.getConnection(DriverManager.java:90)
at ODbLib.opusConnect(ODbLib.java:48)
at activityLog.paint(activityLog.java:148)
* at sun.awt.motif.MComponentPeer.paint(MComponentPeer.java)
at sun.awt.motif.XEvent.processEvent(XEvent.java)
at netscape.applet.DerivedAppletFrame.run(DerivedAppletFrame.java)
at java.lang.Thread.run(Thread.java)
--------

--
Gopalakrishna K gopalk@corp.sgi.com

Off: (415) 933 8618 http://www.geocities.com/TheTropics/8151


David Lance Wolf Posted on 1997-07-03 14:30:51.0Z
Message-ID: <33BBB79B.2E5C@eos.hitc.com.DO-NOT-SPAM>
Date: Thu, 03 Jul 1997 09:30:51 -0500
From: David Lance Wolf <dwolf@eos.hitc.com.DO-NOT-SPAM>
Reply-To: dwolf@eos.hitc.com.DO-NOT-SPAM
Organization: Sybase Professional Services
X-Mailer: Mozilla 3.01 (Win95; I)
MIME-Version: 1.0
Subject: Re: Security Violation error
References: <33B2F62E.500F@corp.sgi.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Newsgroups: sybase.public.jdbcconnect
Lines: 55
Path: forums-1-dub!forums-master.sybase.com!forums.powersoft.com
Xref: forums-1-dub sybase.public.jdbcconnect:591
Article PK: 252344


Gopal Krishna wrote:
>
> Can someone shed some light, as to why we are getting this error?
> The applet works fine from AppletViewer.
>
> We are using JDK 1.1 with Netscape 4.0 beta6 on IRIX.
>
> Thanks,
>
> ---------
>
> # Security Exception: Couldn't connect to <150.166.175.216> with origin
> from
> <opuss>.
> # Applet exception: security violation: security.Couldn't connect to
> <150.166.175.216> with origin from <opuss>.
> netscape.security.AppletSecurityException: security.Couldn't connect to
> <150.166.175.216> with origin from <opuss>.
> at netscape.security.AppletSecurity.checkConnect(AppletSecurity.java)
> at netscape.security.AppletSecurity.checkConnect(AppletSecurity.java)
> at netscape.security.AppletSecurity.checkConnect(AppletSecurity.java)
> at java.lang.SecurityManager.checkConnect(SecurityManager.java)
> at java.net.Socket.<init>(Socket.java)
> at java.net.Socket.<init>(Socket.java)
> at jdbc.sybase.timedio.Dbio.connect(Dbio.java:67)
> at jdbc.sybase.tds.Tds.login(Unknown Source)
> at jdbc.sybase.jdbc.SybConnection.<init>(SybConnection.java:136)
> at jdbc.sybase.jdbc.SybDriver.connect(SybDriver.java:160)
> at jdbc.sql.DriverManager.getConnection(DriverManager.java:90)
> at ODbLib.opusConnect(ODbLib.java:48)
> at activityLog.paint(activityLog.java:148)
> * at sun.awt.motif.MComponentPeer.paint(MComponentPeer.java)
> at sun.awt.motif.XEvent.processEvent(XEvent.java)
> at netscape.applet.DerivedAppletFrame.run(DerivedAppletFrame.java)
> at java.lang.Thread.run(Thread.java)
> --------
>
> --
> Gopalakrishna K gopalk@corp.sgi.com
>
> Off: (415) 933 8618 http://www.geocities.com/TheTropics/8151

From other posts it seems that Communicator is choosing your CLASSPATH
from your environment variable rather than the .html file. If your
jConnect classes are in your local CLASSPATH, they get called. Now, you
trying to open a socket to a server where the SQL Server is, but the
jConnect driver was served from localhost, so its a security exception.
Try removing the jConnect classes from your CLASSPATH.

Dave Wolf