pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
still the driver and IE5 problem
5+ messages / 3 participants
[nested] [flat]

* still the driver and IE5 problem
@ 1999-06-15 13:32  Georg Ritter <Georg.Ritter@uibk.ac.at>
  0 siblings, 0 replies; 5+ messages in thread

From: Georg Ritter @ 1999-06-15 13:32 UTC (permalink / raw)
  To: pgsql-interfaces@hub.org

Hi, 

I tried out the new driver ( thanks Pete! ) but - I am sorry 
that I must tell - it still does not work.

Interesting is: The M$-VM seems to find the driver 
(status bar shows "loading Driver.class") but does not recog.
it as suitable. (SQLEx: No suitable driver found)

I will now try a combination of IE4 + SUNs Plugin and report.  

I still would be pleased if anyone knows a solution. Time is
passing by .. :-) and the system should go public at the end
of the week.

Greetings from Austria

	Georg Ritter



^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* RE: [INTERFACES] still the driver and IE5 problem
@ 1999-06-15 14:02  Peter Mount <petermount@it.maidstone.gov.uk>
  0 siblings, 0 replies; 5+ messages in thread

From: Peter Mount @ 1999-06-15 14:02 UTC (permalink / raw)
  To: 'Georg Ritter' <Georg.Ritter@uibk.ac.at>; pgsql-interfaces@hub.org

Can you run the following:

	java -version

and let me know what it's output is?

Peter

-- 
Peter Mount
Enterprise Support
Maidstone Borough Council
Any views stated are my own, and not those of Maidstone Borough Council.


-----Original Message-----
From: Georg Ritter [mailto:Georg.Ritter@uibk.ac.at]
Sent: Tuesday, June 15, 1999 2:32 PM
To: pgsql-interfaces@hub.org
Subject: [INTERFACES] still the driver and IE5 problem


Hi, 

I tried out the new driver ( thanks Pete! ) but - I am sorry 
that I must tell - it still does not work.

Interesting is: The M$-VM seems to find the driver 
(status bar shows "loading Driver.class") but does not recog.
it as suitable. (SQLEx: No suitable driver found)

I will now try a combination of IE4 + SUNs Plugin and report.  

I still would be pleased if anyone knows a solution. Time is
passing by .. :-) and the system should go public at the end
of the week.

Greetings from Austria

	Georg Ritter



^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* RE: [INTERFACES] still the driver and IE5 problem
@ 1999-06-15 14:27  Peter Mount <petermount@it.maidstone.gov.uk>
  0 siblings, 0 replies; 5+ messages in thread

From: Peter Mount @ 1999-06-15 14:27 UTC (permalink / raw)
  To: Peter Mount <petermount@it.maidstone.gov.uk>; 'Georg Ritter' <Georg.Ritter@uibk.ac.at>; pgsql-interfaces@hub.org

Ignore me, as it's a browser :-)

I'm now wondering if it's one of two things:

* IE5 is returning a non standard version string
* IE5 is not reading the .jar file

Try extracting the class files out of the jar file, to see if that
solves the second possibility.

Peter

-- 
Peter Mount
Enterprise Support
Maidstone Borough Council
Any views stated are my own, and not those of Maidstone Borough Council.


-----Original Message-----
From: Peter Mount [mailto:petermount@it.maidstone.gov.uk]
Sent: Tuesday, June 15, 1999 3:03 PM
To: 'Georg Ritter'; pgsql-interfaces@hub.org
Subject: RE: [INTERFACES] still the driver and IE5 problem


Can you run the following:

	java -version

and let me know what it's output is?

Peter

-- 
Peter Mount
Enterprise Support
Maidstone Borough Council
Any views stated are my own, and not those of Maidstone Borough Council.


-----Original Message-----
From: Georg Ritter [mailto:Georg.Ritter@uibk.ac.at]
Sent: Tuesday, June 15, 1999 2:32 PM
To: pgsql-interfaces@hub.org
Subject: [INTERFACES] still the driver and IE5 problem


Hi, 

I tried out the new driver ( thanks Pete! ) but - I am sorry 
that I must tell - it still does not work.

Interesting is: The M$-VM seems to find the driver 
(status bar shows "loading Driver.class") but does not recog.
it as suitable. (SQLEx: No suitable driver found)

I will now try a combination of IE4 + SUNs Plugin and report.  

I still would be pleased if anyone knows a solution. Time is
passing by .. :-) and the system should go public at the end
of the week.

Greetings from Austria

	Georg Ritter



^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* [Fwd: [INTERFACES] still the driver and IE5 problem]
@ 1999-06-15 14:50  Georg Ritter <Georg.Ritter@uibk.ac.at>
  0 siblings, 0 replies; 5+ messages in thread

From: Georg Ritter @ 1999-06-15 14:50 UTC (permalink / raw)
  To: pgsql-interfaces@hub.org

sorry posted to the wrong adress before.


Peter Mount wrote:
> 
> Ignore me, as it's a browser :-)
:-)
> 
> I'm now wondering if it's one of two things:
> 
> * IE5 is returning a non standard version string
Exact text in the java console:
"java.sql.SQLException: No suitable driver"
(from the M$-VM)

> * IE5 is not reading the .jar file
For a short time before the exception I can see in the status line
reading or loading Driver.class
> 
> Try extracting the class files out of the jar file, to see if that
> solves the second possibility.
I bever did it in an other way. 

I have the applet in ~/applet/
the "start" html also there and the driver in ~/applet/postgresql/ etc.

Thanks for help, 


	Georg Ritter

> 
> Can you run the following:
> 
>         java -version
> 
> and let me know what it's output is?
On the Linux box where I compiled the applet and also tried to compile
a version of the driver (out of the sourcetree)
java version "1.2"
Classic VM (build Linux_JDK_1.2_pre-release-v1, native threads, sunwjit)

I suppose that was what you meant?


-- 
---------------------------------------------------------------------
  student at department of physics
  University of Innsbruck, Austria            Georg.Ritter@uibk.ac.at

^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* RE: [INTERFACES] still the driver and IE5 problem
@ 1999-09-10 00:00  Nat Howard <nrh@pupworks.com>
  0 siblings, 0 replies; 5+ messages in thread

From: Nat Howard @ 1999-09-10 00:00 UTC (permalink / raw)
  To: pmount@retep.org.uk; Georg.Ritter@uibk.ac.at; pgsql-interfaces@hub.org

Apologies if this comes to late for some.  

Using the 6.5.1 postgrsql release under FreeBSD and IE4, using jdk 1.1.8, 
I ran into the same problem that Georg Ritter ran into:

>From: Georg Ritter [mailto:Georg.Ritter@uibk.ac.at]
>Sent: Tuesday, June 15, 1999 2:32 PM
>To: pgsql-interfaces@hub.org
>Subject: [INTERFACES] still the driver and IE5 problem
>
>
>Hi, 
>
>I tried out the new driver ( thanks Pete! ) but - I am sorry 
>that I must tell - it still does not work.
>
>Interesting is: The M$-VM seems to find the driver 
>(status bar shows "loading Driver.class") but does not recog.
>it as suitable. (SQLEx: No suitable driver found)
>
>I will now try a combination of IE4 + SUNs Plugin and report.  
>
>I still would be pleased if anyone knows a solution. Time is
>passing by .. :-) and the system should go public at the end
>of the week.
>
>Greetings from Austria
>
>        Georg Ritter
>
>


A little web searching turned up an answer that works for
me (at least with IE4) at:

http://www.software.ibm.com/data/db2/java/v5/faq.html#q7

An excerpt:

	Even if the driver is loaded properly, it may not be initialized.
	This can happen if the Java interpreter does not automatically
	initialize one the "DB2Driver"
     classes upon loading. Some recent versions of the JDK for AIX
     and OS/2 have this problem. For these, the usual

     Class.forName("COM.ibm.db2.jdbc.app.DB2Driver");

     is not enough. One has to use: 

     Class.forName("COM.ibm.db2.jdbc.app.DB2Driver").newInstance();

     The dummy instantiation starts the needed class initialization. 

No flames, please -- I've no idea what the "correct" behavior for the
browser is.

So: Georg, you may be able to fix your problem by putting ".newInstance()"
in the right place this doesn't seem to harm appletviewer and 
Netscape (although you should check, of course).

Peter -- you may want to change your driver so that it does a newInstance(),
or change your README like this:

inline patch 1: /tmp/README Thu Sep 9 17:53:06 1999 (+5/-1 lines) download inline-1.patch*** src/interfaces/jdbc/README Sat Jan 16 23:51:49 1999 --- /tmp/README Thu Sep 9 17:53:06 1999 *************** *** 106,115 **** introduce the driver using the following snippet of code: try { ! Class.forName("postgresql.Driver"); } catch(Exception e) { // your error handling code goes here } Remember, this method restricts your code to just the postgresql database. --- 106,119 ---- introduce the driver using the following snippet of code: try { ! Class.forName("postgresql.Driver").newInstance(); } catch(Exception e) { // your error handling code goes here } + + The ".newInstance()" above is apparently required by InterNet Explorer + and perhaps others. + Remember, this method restricts your code to just the postgresql database.
^ permalink raw reply [nested|flat] 5+ messages in thread


end of thread, other threads:[~1999-09-10 00:00 UTC | newest]

Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
1999-06-15 13:32 still the driver and IE5 problem Georg Ritter <Georg.Ritter@uibk.ac.at>
1999-06-15 14:02 RE: [INTERFACES] still the driver and IE5 problem Peter Mount <petermount@it.maidstone.gov.uk>
1999-06-15 14:27 RE: [INTERFACES] still the driver and IE5 problem Peter Mount <petermount@it.maidstone.gov.uk>
1999-06-15 14:50 [Fwd: [INTERFACES] still the driver and IE5 problem] Georg Ritter <Georg.Ritter@uibk.ac.at>
1999-09-10 00:00 RE: [INTERFACES] still the driver and IE5 problem Nat Howard <nrh@pupworks.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox