🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

DB2-JDBC pb: .Couldn't connect to '127.0.0.1' with origin from 'local-classpath-classes'

#12
From: Denis
Date: Mon, 16 Nov 1998 00:00
44 lines
2503 bytes
Hello Everybody,
I'm not a Java Expert and I have a pb. When trying to execute the java
samples applets given with DB2 I get the following  message with Netscape
Communicator 4.5: (on NT v4.0 fp3 + DB2 v5.2)

"Couldn't connect to '127.0.0.1' with origin from
'local-classpath-classes'When tr" (See full log below)

Remarks:
- The applet works fine when I run the same applet outside netscape with the
AppletViewer (from jdk1.1.7)
- I'm not sure about the '127.0.0.1' value that is passed here. Must this
correspond to the env var HOSTNAME or which name???
- After reading some mails in this newsgroup, I guess this is because the
applet runs in the same machine as the DB2 server

Questions:
- Is the previous remark true?
- If so, How can I practically disable this security feature in order to run
the applet in NS 4.5 on the same machine as DB2?
- is 127.0.0.1 correct?

Many Thanks in advance.

----------------------
Java Console:

Type '?' for options.Symantec Java! ByteCode Compiler Version 210.065
Copyright (C) 1996-97 Symantec Corporation
netscape.security.AppletSecurityException: security.Couldn't connect to
'127.0.0.1' with origin from 'local-classpath-classes'.
  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.AppletSecurity.checkConnect(Compiled Code)
  at java.lang.SecurityManager.checkConnect(Compiled Code)
  at java.net.Socket.<init>(Compiled Code)
  at COM.ibm.db2.jdbc.net.DB2Connection.create(Compiled Code)
  at COM.ibm.db2.jdbc.net.DB2Connection.<init>(Compiled Code)
  at COM.ibm.db2.jdbc.net.DB2Driver.connect(Compiled Code)
  at java.sql.DriverManager.getConnection(Compiled Code)
  at Applt.init(Compiled Code)...
Technical Details
Message-ID: <72ppor$m72$1@news.software.ibm.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 114aa0,ac31a13fac11378,start
X-Google-Attributes: gid114aa0,public
X-Google-Thread: f7e2e,ac31a13fac11378,start
X-Google-Attributes: gidf7e2e,public
From: "Denis" <grosnou@antispam.skynet.be>
Subject: DB2-JDBC pb: .Couldn't connect to '127.0.0.1' with origin from 'local-classpath-classes'
Date: 1998/11/16
Message-ID: <72ppor$m72$1@news.software.ibm.com>
X-Deja-AN: 412465609
Newsgroups: ibm.software.vajava.language,ibm.software.db2.udb.eee
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3155.0