🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: ibm.software.vajava.language
Article #18

Re: DB2-JDBC-SQLJ pb (Was:.Couldn't connect to '127.0.0.1' with origin from 'local-classpath-classes')

#18
From: Jos� Miguel
Date: Wed, 02 Dec 1998 00:00
47 lines
2441 bytes
Denis wrote:

> Thank you very much Jeffrey for the trick (btw where are described those
> strange keywords in NS 4.5?),
>
> This works fine for the DB2Applt.html applet that performs dynamic SQL
> Statements through JDBC to DB2.
> BUT
> When I run the Applt.html applet that is supposed to use the new SQLJ
> interface, I have the following:
>
> (Summary of Errors - See the full stack below):
>
> 1) java.sql.SQLException: profile Applt_SJProfile0 not found:
> java.lang.ClassNotFoundException: Applt_SJProfile0
> 2) netscape.security.AppletSecurityException: security.checkread: Read of
> '.\Applt_SJProfile0.ser' not permitted
> 3) # Security Exception: checkread:Read of '.\Applt_SJProfile0.ser'
> notpermitted
> 4) netscape.security.AppletSecurityException: security.checkpropsaccess.key
>
> Questions/remarks:
> 1) Any idea of the problem?
> 2) Is it possible that the problem comes frome NSC4.5 that uses a JVM v1.1.5
> only? If so, how to upgrade NSC4.5 to make it use the JDK v1.1.7A thatI have
> on the side ?
> 3) The applet runs perfectly outside NSC with the appletviewer.exe v 1.1.7A

Hi Denis:

The problem is your applet is trying to access system resources, and this is
forbidden for untrusted applets. Then, you must sign your classes and use
Capabilities API for Netscape Security.

I am not sure if in OS/2 platforms is needed Capabilities API.

But if you want be standar, I recomend to use Java Plug-in to run applets in Sun
JVM instead of Netscape one.

More info about Capabilities API and Netscape security themes at
developer.netscape.com site.

More info about Java Plug-in and Sun security themes at www.javasoft.com site.

Regards,

    Chemi.
Technical Details
Message-ID: <3665873D.764013D7@es.ibm.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <734j0e$avm$1@news.software.ibm.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 114aa0,ac31a13fac11378
X-Google-Attributes: gid114aa0,public
X-Google-Thread: f7e2e,ac31a13fac11378
X-Google-Attributes: gidf7e2e,public
From: "Jos� Miguel" <ordax@es.ibm.com>
Subject: Re: DB2-JDBC-SQLJ pb (Was:.Couldn't connect to '127.0.0.1' with origin from 'local-classpath-classes')
Date: 1998/12/02
Message-ID: <3665873D.764013D7@es.ibm.com>
X-Deja-AN: 417933296
Content-Transfer-Encoding: 7bit
References: <734j0e$avm$1@news.software.ibm.com>
To: Denis <grosnou@antispam.skynet.be>
Content-Type: text/plain; charset=us-ascii
Mime-Version: 1.0
Reply-To: ordax@es.ibm.com
Newsgroups: ibm.software.vajava.language,ibm.software.db2.udb.eee