Article View: ibm.software.vajava.language
Article #16DB2-JDBC-SQLJ pb (Was:.Couldn't connect to '127.0.0.1' with origin from 'local-classpath-classes')
From: Denis
Date: Fri, 20 Nov 1998 00:00
Date: Fri, 20 Nov 1998 00:00
102 lines
5542 bytes
5542 bytes
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 Thank you very much in advance. --------------------------------------------------- Full Story: netscape.security.AppletSecurityException: security.checkpropsaccess.key at java.lang.Throwable.<init>(Compiled Code) at java.lang.Exception.<init>(Compiled Code) at java.lang.RuntimeException.<init>(Compiled Code) * at java.lang.SecurityException.<init>(Compiled Code) at netscape.security.AppletSecurityException.<init>(Compiled Code) at netscape.security.AppletSecurityException.<init>(Compiled Code) at netscape.security.AppletSecurity.checkPropertyAccess(Compiled Code) at java.lang.SecurityManager.checkPropertyAccess(Compiled Code) at java.lang.System.getProperty(Compiled Code) at sqlj.runtime.RuntimeContext.getRuntime(Compiled Code) at sqlj.runtime.ref.DefaultContext.getDefaultContext(Compiled Code) at Applt.init(Compiled Code) at netscape.applet.DerivedAppletFrame$InitAppletEvent.dispatch(Compiled Code) at java.awt.EventDispatchThread$EventPump.dispatchEvents(Compiled Code) at java.awt.EventDispatchThread.run(Compiled Code) at netscape.applet.DerivedAppletFrame$AppletEventDispatchThread.run(Compiled Code) # Security Exception: checkread:Read of '.\Applt_SJProfile0.ser' not permitted netscape.security.AppletSecurityException: security.checkread: Read of '.\Applt_SJProfile0.ser' not permitted at java.lang.Throwable.<init>(Compiled Code) at java.lang.Exception.<init>(Compiled Code) at java.lang.RuntimeException.<init>(Compiled Code) * at java.lang.SecurityException.<init>(Compiled Code) at netscape.security.AppletSecurityException.<init>(Compiled Code) at netscape.security.AppletSecurityException.<init>(Compiled Code) at netscape.security.AppletSecurity.checkRead(Compiled Code) at netscape.security.AppletSecurity.checkRead(Compiled Code) at java.lang.SecurityManager.checkRead(Compiled Code) at java.io.FileInputStream.<init>(Compiled Code) at java.lang.ClassLoader.getSystemResourceAsStream(Compiled Code) at sqlj.runtime.profile.DefaultLoader.getResourceAsStream(Compiled Code) at sqlj.runtime.profile.Profile.instantiate(Compiled Code) at sqlj.runtime.ref.ProfileGroup.getProfileKey(Compiled Code) at sqlj.runtime.ref.DefaultContext.getProfileKey(Compiled Code) at Applt_SJProfileKeys.<init>(Compiled Code) at Applt_SJProfileKeys.getKey(Compiled Code) at Applt.paint(Compiled Code) at java.awt.Component.dispatchEventImpl(Compiled Code) at java.awt.Container.dispatchEventImpl(Compiled Code) at java.awt.Component.dispatchEvent(Compiled Code) at java.awt.EventDispatchThread$EventPump.dispatchEvents(Compiled Code) at java.awt.EventDispatchThread.run(Compiled Code) at netscape.applet.DerivedAppletFrame$AppletEventDispatchThread.run(Compiled Code) java.sql.SQLException: profile Applt_SJProfile0 not found: java.lang.ClassNotFoundException: Applt_SJProfile0 at java.lang.Throwable.<init>(Compiled Code) at java.lang.Exception.<init>(Compiled Code) at java.sql.SQLException.<init>(Compiled Code) at sqlj.runtime.error.Errors.raiseError(Compiled Code) at sqlj.runtime.error.Errors.raiseError(Compiled Code) at sqlj.runtime.error.RuntimeRefErrors.raise_PROFILE_NOT_FOUND(Compiled Code) at sqlj.runtime.ref.ProfileGroup.getProfileKey(Compiled Code) at sqlj.runtime.ref.DefaultContext.getProfileKey(Compiled Code) at Applt_SJProfileKeys.<init>(Compiled Code) * at Applt_SJProfileKeys.getKey(Compiled Code) at Applt.paint(Compiled Code) at java.awt.Component.dispatchEventImpl(Compiled Code) at java.awt.Container.dispatchEventImpl(Compiled Code) at java.awt.Component.dispatchEvent(Compiled Code) at java.awt.EventDispatchThread$EventPump.dispatchEvents(Compiled Code) at java.awt.EventDispatchThread.run(Compiled Code) at netscape.applet.DerivedAppletFrame$AppletEventDispatchThread.run(Compiled Code)
Technical Details
Message-ID:
<734j0e$avm$1@news.software.ibm.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow 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: "Denis" <grosnou@antispam.skynet.be> Subject: DB2-JDBC-SQLJ pb (Was:.Couldn't connect to '127.0.0.1' with origin from 'local-classpath-classes') Date: 1998/11/20 Message-ID: <734j0e$avm$1@news.software.ibm.com> X-Deja-AN: 413977481 Newsgroups: ibm.software.vajava.language,ibm.software.db2.udb.eee X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3155.0