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


I took the Testing code posted here, created an instance of my class, 
called the Reset() method (which loads the driver, connection, and 
statement variables), then called the CloseAll(), just to see if it would 
succeed.  I also included the setLogStream() code you mentioned and here 
is what was produced:

C:\Inetpub\wwwroot\HMG\WEB-INF\classes>java testing
DriverManager.getConnection("jdbc:idb:C:/Inetpub/wwwroot/HMG/Database/HM
G.prp")
trying 
driver[className=org.enhydra.instantdb.jdbc.idbDriver,org.enhydra.instan
tdb.jdbc.idbDriver@1994d49d]
Enhydra InstantDB - Version 3.14
The Initial Developer of the Original Code is Lutris Technologies Inc.
Portions created by Lutris are Copyright (C) 1997-2000 Lutris 
Technologies, Inc.

All Rights Reserved.
getConnection returning 
driver[className=org.enhydra.instantdb.jdbc.idbDriver,org.enhydra.instan
tdb.jdbc.idbDriver@1994d49d]
Database HMG is shutting down...
Database HMG shutdown complete.
DriverManager.getConnection("jdbc:idb:C:/Inetpub/wwwroot/HMG/Database/HM
G.prp")
trying 
driver[className=org.enhydra.instantdb.jdbc.idbDriver,org.enhydra.instan
tdb.jdbc.idbDriver@1994d49d]
getConnection returning 
driver[className=org.enhydra.instantdb.jdbc.idbDriver,org.enhydra.instan
tdb.jdbc.idbDriver@1994d49d]
Database HMG is shutting down...
Database HMG shutdown complete.

The two outputs you see for the driver is: 1) Trying it in the 
Testing.java and 2)trying it in the imported class.  It seems to me as 
though it worked....?

This is driving me nuts!  It works outside of calling it from a servlet

>>>>>>>>>>>>>>>>>> Original Message <<<<<<<<<<<<<<<<<<

On 7/27/2000, 8:13:20 PM, "Peter Hearty" <peter.hearty@lutris.com> wrote 
regarding 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.
-----------------------------------------------------------------------------
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.