Article View: ibm.software.vajava.language
Article #17Re: DB2-JDBC-SQLJ pb (Was:.Couldn't connect to '127.0.0.1' with origin from 'local-classpath-classes')
From: clchau
Date: Fri, 27 Nov 1998 00:00
Date: Fri, 27 Nov 1998 00:00
121 lines
6833 bytes
6833 bytes
In article <734j0e$avm$1@news.software.ibm.com>, "Denis" <grosnou@antispam.skynet.be> 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? i think there's a sqlj utility to covert the ser files to class file. it is called ser2class. Conversion of .ser File to .class File (-ser2class) The -ser2class flag instructs SQLJ to convert the generated .ser file to a .class file. This is necessary if you are using SQLJ to create an applet that will be run from a browser that does not support resource filenames with the .ser suffix. (This is true of Netscape Navigator 4.x, for example.) The translation is done after profile customization so that it includes your customizations. this is gotten from http://www.sqlj.org/web/sqlj/doc/ug.htm > 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) > > -----------== Posted via Deja News, The Discussion Network ==---------- http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
Technical Details
Message-ID:
<73ma44$13a$1@nnrp1.dejanews.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<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: clchau@my-dejanews.com Subject: Re: DB2-JDBC-SQLJ pb (Was:.Couldn't connect to '127.0.0.1' with origin from 'local-classpath-classes') Date: 1998/11/27 Message-ID: <73ma44$13a$1@nnrp1.dejanews.com> X-Deja-AN: 416187620 References: <734j0e$avm$1@news.software.ibm.com> X-Http-Proxy: 1.0 x12.dejanews.com:80 (Squid/1.1.22) for client 192.86.155.104 Organization: Deja News - The Leader in Internet Discussion X-Article-Creation-Date: Fri Nov 27 13:40:21 1998 GMT Newsgroups: ibm.software.vajava.language,ibm.software.db2.udb.eee X-Http-User-Agent: Mozilla/4.02 [en] (WinNT; I)