This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 65050 - [50cat] Impossible to start Derby server
Summary: [50cat] Impossible to start Derby server
Status: RESOLVED WORKSFORME
Alias: None
Product: db
Classification: Unclassified
Component: Derby (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P2 blocker (vote)
Assignee: Andrei Badea
URL:
Keywords:
: 63206 65272 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-09-24 00:15 UTC by vbrabant
Modified: 2006-01-18 15:22 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Derby module with logging (37.61 KB, application/octet-stream)
2005-09-26 18:57 UTC, Andrei Badea
Details
Fixed Derby module (37.64 KB, application/octet-stream)
2005-09-27 10:08 UTC, Andrei Badea
Details

Note You need to log in before you can comment on or make changes to this bug.
Description vbrabant 2005-09-24 00:15:42 UTC
[ BUILD # : 20050922 ]
[ JDK VERSION : 1.5.0_05 ]

I downloaded the Derby module through the update center, and wanted to start the derby server.

But I obtains the following message:

java.lang.NoClassDefFoundError: and
Exception in thread "main"
Comment 1 Andrei Badea 2005-09-26 10:02:59 UTC
Please attach the exception's stack trace. Does the exception in the "main"
thread come from the IDE?
Comment 2 vbrabant 2005-09-26 11:05:22 UTC
There are no exception stack trace.
There are nothing in the log file.
Only the message I gave you in the output window.

I can't give you more information than what I gave you. Sorry.

Comment 3 Andrei Badea 2005-09-26 18:57:03 UTC
Then I'd like to ask you for some help in order to trace the bug. I'm attaching
the Derby module with some logging code. Please copy it to wherever you
installed the Derby module from AU (that is, to  <netbeans>/modules/extra if you
installed the module globally, or <userdir>/modules otherwise) and start
NetBeans with a fresh userdir and with the command line:

netbeans -J-Dorg.netbeans.modules.derby=0

Try to start Derby. A message should appear in the console and the message log
containing the command used to start Derby. Please attach the message log
(<userdir>/var/log/messages.log) to this issue. It would also help if you could
run that command yourself from a command line and see what happens, or try to
modify the the command so that it works for you and attach it here.

Thank you for help!
Comment 4 Andrei Badea 2005-09-26 18:57:42 UTC
Created attachment 25197 [details]
Derby module with logging
Comment 5 Andrei Badea 2005-09-26 19:59:01 UTC
Sorry, the correct path of the Derby module if you installed it globally is
<netbeans>/nb5.0/modules. You will know, there must be a
org-netbeans-modules-derby.jar file there which you must replace with the one I
attached.
Comment 6 vbrabant 2005-09-26 20:21:54 UTC
Hereafter what I obtain in the log file:

[org.netbeans.modules.derby.RegisterDerby] Running C:\Program
Files\Java\jdk1.5.0_05\bin\java.exe -Dderby.system.home=C:\Documents and
Settings\Vincent\.netbeans\5.0\Daily\20050922\derby -classpath C:\Documents and
Settings\Vincent\.netbeans\5.0\Daily\20050922\db-derby-10.1.1.0\lib\derby.jar;C:\Documents
and
Settings\Vincent\.netbeans\5.0\Daily\20050922\db-derby-10.1.1.0\lib\derbytools.jar;C:\Documents
and
Settings\Vincent\.netbeans\5.0\Daily\20050922\db-derby-10.1.1.0\lib\derbynet.jar
org.apache.derby.drda.NetworkServerControl start

would be a space problem. I noted there are no "" around c:\Documents and
Settings\... for the classpath 
So, I move my user directory to the root of the c drive 
c:\.netbeans\5.0\Daily\20050922
I modified the netbeans.conf file to point there, and I obtained the following:

Le serveur est prêt à accepter les connexions au port 1527.
After stopping, I obtained the following:

Numéro de connexion : 1.
Arrêt réussi.

So, seems that it's working correctly if complete path of user dir contains no
space.

Happy to be able to help you.
Comment 7 Andrei Badea 2005-09-27 10:06:06 UTC
You are right, the quotes are missing. Fixed.

Checking in src/org/netbeans/modules/derby/RegisterDerby.java;
/cvs/db/derby/src/org/netbeans/modules/derby/RegisterDerby.java,v  <-- 
RegisterDerby.java
new revision: 1.12; previous revision: 1.11
done
Comment 8 Andrei Badea 2005-09-27 10:08:22 UTC
I'm attaching the fixed module in case you want to verify before the fixed
module appears on the update center.
Comment 9 Andrei Badea 2005-09-27 10:08:54 UTC
Created attachment 25213 [details]
Fixed Derby module
Comment 10 Andrei Badea 2005-10-03 12:47:16 UTC
*** Issue 63206 has been marked as a duplicate of this issue. ***
Comment 11 vbrabant 2005-10-14 22:09:12 UTC
Because I downloaded the last Qbuild, and clean my user directory, I reinstalled
the module, And it works.
So, for me, it's ok.

Thanks.

Vincent
Comment 12 Andrei Badea 2005-10-24 12:03:26 UTC
*** Issue 65272 has been marked as a duplicate of this issue. ***
Comment 13 sitongia 2005-11-18 20:35:46 UTC
Note that I'm trying Derby in the Java EE 5 daily 200511132300 and have the same
problem as described here.  I copied the attached jar into my .netbeans modules
directory to fix it, not into the system netbeans module directory.

==Leonard
Comment 14 fuerte 2006-01-13 12:00:47 UTC
I have the same problem with NetBeans 5.0 RC1:

java.lang.NoClassDefFoundError: org/apache/derby/drda/NetworkServerControl

Exception in thread "main" 

I have db-derby-10.1.2.1-bin.zip installed into G:\Java\Derby_10 and the
following configuration in NB:

Derby Location = G:\Java\Derby_10\lib
Database Location = G:\Java\DerbyDB

I have derbynet.jar in G:\Java\Derby_10\lib, which it does not find. Note that I
am not using any module from Update Center, because the module is built-in in
RC1? Derby module version is 1.3.1, 200601101900. OS is WinXP sp2.
Comment 15 fuerte 2006-01-13 12:02:53 UTC
Java is 1.5.0_06.
Comment 16 Andrei Badea 2006-01-13 15:32:40 UTC
The value of the "Derby Location" property should be "G:\Java\Derby_10", that is
without "lib". The property description is a bit misleading, I filed issue 71367
for this.
Comment 17 fuerte 2006-01-13 20:17:06 UTC
Yes thanks this works. :-)
Comment 18 vbrabant 2006-01-18 00:09:08 UTC
Impossible to verify with RC1 because derby is not appearing in the uc
Comment 19 Andrei Badea 2006-01-18 08:29:57 UTC
The bundled Derby has been removed from the update center, sorry. You'll have to
download a Derby binary from http://db.apache.org/derby/.
Comment 20 vbrabant 2006-01-18 15:22:44 UTC
Can you provide explanation why the Derby module has been removed ?
Because, now, it means it's not integrated as before.
A little disappointed here.

Vincent