Article View: borland.public.jbuilder.java.language
Article #19945borland/jdbc/Broker/ResultSetMetaData
From: Jorge Matos
Date: Fri, 14 Nov 1997 00:00
Date: Fri, 14 Nov 1997 00:00
67 lines
3028 bytes
3028 bytes
Hello,
I'm trying to get an APPLET that I created with Jbuilder to work with the
DataGateway
jdbc driver, it works within MSIE 4.0 but not in Netscape 4.03 with the JDK
1.1 patch, or Hotjava
for that matter.
Below is a list of suggestions that I have tried to get it to work:
1.
Someone mentioned that I suggest replace
Class.forName("borland.jdbc.Broker.RemoteDriver");
with
borland.jdbc.Broker.RemoteDriver driver = new
borland.jdbc.Broker.RemoteDriver();
This forces the Jbuilder Deployment wizard to add the class to the Jar/Zip
file and it forces
the browser to instantiate the Driver. This made my applet work in MSIE 4.0
2.
This is another suggestion I recieved:
Properties props = new Properties();
props.put("user", "user");
props.put("password", "password");
props.put("database", "databasename");
Class.forName("borland.jdbc.Broker.RemoteDriver");
conn =
DriverManager.getConnection("jdbc:BorlandBroker://machineipaddress/BDEDSN",
props)
This didn't work either.
3.
The last thing I tried was:
DriverManager.registerDriver(new borland.jdbc.Broker.RemoteDriver());
mssql = new
Database(DriverManager.getConnection("jdbc:BorlandBroker://machineipaddress/
BDEDSN", "username","password"));
I keep getting exceptions from Netscape or Hotjava that mention
checkpropsaccess,
or AppletSecurityException. The last error I recieved is listed below:
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++
Netscape Communications Corporation -- Java 1.1.2
Type '?' for options.
Symantec Java! ByteCode Compiler Version 210.057
Copyright (C) 1996-97 Symantec Corporation
# Security Exception: checkpropsaccess.key
can't find resource for sun.awt.windows.awtLocalization_en_US
Using default MenuItem font
# Verifier error
borland/jbcl/control/UserNamePasswordDialog.<init>(Ljava/awt/Frame;Ljava/lan
g/String;Lborland/jbcl/dataset/Database;)V: Expecting to find object/array
on stack
# Verifier error borland/jdbc/Broker/ResultSetMetaData._$5()V: Expecting to
find unitialized object on stack
java.lang.NoClassDefFoundError: borland/jdbc/Broker/ResultSetMetaData
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++
I suspect that the borland classes "UserNamePasswordDialog" and
"borland/jdbc/Broker/ResultSetMetaData" are trying to check system
properties, but
apparently in Netscape and in HotJava that raises a security exception.
Any ideas would be helpfull.
Thanks
Jorge L. Matos
matosj@dmac.com
Technical Details
Message-ID:
<64ia95$sgd4@forums.borland.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: f74b3,443f493806943b7,start X-Google-Attributes: gidf74b3,public From: "Jorge Matos" <matosj@dmac.com> Subject: borland/jdbc/Broker/ResultSetMetaData Date: 1997/11/14 Message-ID: <64ia95$sgd4@forums.borland.com> X-Deja-AN: 289593626 X-MimeOLE: Produced By Microsoft MimeOLE V4.71.1712.3 Organization: None Newsgroups: borland.public.jbuilder.java.language