InstantDB Project
About InstantDB
Project Mail Lists
Short History
Reporting Bugs
Screen Shots
3rd Party Examples
FAQs

Software
Downloads
Documentation
CVS Repositories
Roadmap
License

About Enhydra.org
Who We Are
News, Articles & Events
Getting Involved
Contact Us

Community
Demos
Contributions
Resources
Case Studies
On The Edge! -NEW-
Commercial Vendors


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: InstantDB: connection problems


Try switching on DriverManager logging:

   DriverManager.setLogStream (System.out);

to see if InstantDB is getting loaded.

Regards

Peter Hearty
Lutris Technologies UK Ltd.
-----Original Message-----
From: D.Yutzy <dyutzy@copper.net>
To: instantDB@enhydra.org <instantDB@enhydra.org>
Date: 28 July 2000 01:51
Subject: Re: InstantDB: connection problems


>I wrote some try...catch code and found that the message that is being
>returned is: No Suitable Driver
>
>When I tried the code you sent, it worked with no errors.  Maybe the way
>I'm using it is causing the issue?  I'm calling the code (in it's own
>class file) from a servlet.
>
>The code seems to be dieing on the Class.forName() line.  I have trapping
>code after that which isn't getting executed.
>
>> import java.sql.*;
>
>> class testing{
>>   String driverName = "org.enhydra.instantdb.jdbc.idbDriver";
>>   String connectionURL =
>"jdbc:idb:C:/Inetpub/wwwroot/HMG/Database/HMG.prp";
>
>>   testing(){
>>     try {
>>       Class.forName(driverName);
>>         Connection con = DriverManager.getConnection(connectionURL);
>>         con.close();
>>     } catch (Exception e) {
>>       e.printStackTrace();
>>     }
>>   }
>
>>   public static void main(String[] args){
>>     new testing();
>>   }
>> }
>> --------------
>
>
>
>
>> Martin
>
>
>
>
>
>
>
>> "D.Yutzy" <dyutzy@copper.net> on 27-07-2000 22:38:11
>
>> Please respond to instantDB@enhydra.org
>
>> To:   instantDB@enhydra.org
>> cc:    (bcc: Martin Husted/Electrolux Nyborg A S/Denmark/Electrolux
>Group)
>
>> Subject:  Re: InstantDB: connection problems
>
>
>
>> Mine compiles just fine, but when I try to connect, I get a "null"
>> exception, meaning, it couldnt' create the instance of the connection.
>
>> Here is my code:
>
>> ..
>> ..
>
>
>
>
>
>
>
>>
>--------------------------------------------------------------------------
>---
>> To unsubscribe from this mailing list, send email to
>majordomo@enhydra.org
>> with the text "unsubscribe instantdb" in the body of the email.
>> If you have other questions regarding this mailing list, send email to
>> the list admin at owner-instantdb@enhydra.org.
>---------------------------------------------------------------------------
--
>To unsubscribe from this mailing list, send email to majordomo@enhydra.org
>with the text "unsubscribe instantdb" in the body of the email.
>If you have other questions regarding this mailing list, send email to
>the list admin at owner-instantdb@enhydra.org.
>
>

-----------------------------------------------------------------------------
To unsubscribe from this mailing list, send email to majordomo@enhydra.org
with the text "unsubscribe instantdb" in the body of the email.
If you have other questions regarding this mailing list, send email to
the list admin at owner-instantdb@enhydra.org.