Received: from penguin.wise.edt.ericsson.se (penguin-ext.wise.edt.ericsson.se [194.237.142.5]) by hub.org (8.8.8/8.7.5) with ESMTP id QAA05724 for ; Mon, 27 Jul 1998 16:37:38 -0400 (EDT) Received: from cletx06.dc.etx.ericsson.se (root@cletx06.dc.etx.ericsson.se [130.100.69.7]) by penguin.wise.edt.ericsson.se (8.9.0/8.9.0/glacier-1.11) with ESMTP id WAA00238; Mon, 27 Jul 1998 22:37:39 +0200 (MET DST) Received: from cletx08.dc.etx.ericsson.se (cletx08.dc.etx.ericsson.se [130.100.69.2]) by cletx06.dc.etx.ericsson.se (8.8.8/8.8.8/eri-dom-0.9) with ESMTP id VAA28908; Mon, 27 Jul 1998 21:34:21 +0200 Received: by CLETX08 with Internet Mail Service (5.5.1960.3) id <32CK4WLA>; Mon, 27 Jul 1998 22:38:14 +0200 Message-ID: From: Mikael Hammarin To: "'Peter T Mount'" Cc: "'pgsql-interfaces@postgreSQL.org'" Subject: RE: [INTERFACES] JDBC & IE40 Date: Mon, 27 Jul 1998 22:38:14 +0200 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.1960.3) Content-Type: text/plain > On Mon, 27 Jul 1998, Mikael Hammarin wrote: > > > Hello, > > > > Since the bug in Internet Explorer 4.0 doesn't allow you to > > make a Class.forName("portgresql.Driver") to load the postgresql- > > driver, I now load it manually with DriverManager.registerDriver() > > instead. However, now I get a "not-very-wanted" errormsg > > "cannot access "hostname.com""... ? > > Is hostname.com your postgresql server? > > I presume you are using: > > java.sql.DriverManager.registerDriver(new Driver()); > > This is how the driver registers itself > Yes, hostname.com *IS* a valid host, and it DOES exist. I use: -- snip -- postgresql.Driver driver = new postgresql.Driver(); try { DriverManager.registerDriver(driver); } catch(Exception e) { textStatus.setText(e.toString()); } -- snip -- to register the driver. This part works though. The problem is when I try to make a connection: conn = DriverManager.getConnection(connectionURL); This generate an exception as I mentioned above, and returns "cannot access ". I searched through the java-classes, but I didn't find this string *anywhere*. That's why I wondered where it came from. (it's not an standard hostnotfound exception) However, the strange part is, that this *ONLY* happen when I run my program as an Applet in IE40. It *DOES* work perfect if I run the program as an application or in hotjava. I.e. It only seem to happen in MSIE40. In other words, I know that the JDBCURL is right and that access-lists are correct. I was thinking that maybe the postgresql driver doesn't work correctly when you register it with registerDriver() instead of Class.forName()? Have you got JDBC working in IE40? Cheers //Mike > > Anyone familiar with this? What class generates this msg? > > (what exception?) > > The only place I can think is IOException (unless your > postgresql server > is not the same as the web server).