My eyes are not what they used to be. That was the problem. Thank-you for spotting that.

Unless Andrew McIntyre is going to do another instant fix :-), I will go ahead and file a bug report in Jira. The mistake is in the Jays.java file, stored in the "derby_plugins_labs.zip file that is available from http://db.apache.org/derby/integrate/plugin_slides.html.

Current the code is:
String derbyClientURL = "jdbc:derby://localhost:1527/jayDB:user=APP;password=APP;";

It should be:
String derbyClientURL = "jdbc:derby://localhost:1527/jayDB;user=APP;password=APP;";


John Embretsen wrote:
A. Rick Anderson wrote:

I've gone back and literally stripped the entire lab to the absolute minimum below, but I am getting the exact same behavior. It throws an exception when I attempt to get the ClientDriver connection.


I haven't tried the eclipse plug-in for Derby, but I'm wondering if your error may have been caused by a small typo in your URL...

   private static final String derbyClientURL =
      "jdbc:derby://localhost:1527/jayDB:user=APP;password=APP;";


Here you use colon (:) to separate the database name from the attribute user=APP, but it should have been semicolon (;).

Does it help changing "jayDB:user=" to "jayDB;user="?



--
A. Rick Anderson

Reply via email to