Hi Bryan,

thanks for your response; my answers below.

Yes, this is a version of Derby I have built from source; specifically,
trunk revision 1720848

The steps I take are:

I build per build page
<http://svn.apache.org/repos/asf/db/derby/code/trunk/BUILDING.html>.
http://svn.apache.org/repos/asf/db/derby/code/trunk/BUILDING.html
The jardriftcheck step fails (see error below), but the jars are built (see
listing below).

Then, I run RunOptimizerTest.java within netbeans by right clicking on the
file and selecting "Run File".
This gives the output shown in my first mail.

It seems like some setup is missing; do I need to create a database before
attempting to run the test?  Is the jardriftcheck error
a blocker? Do I need to resolve that before trying to test?

The netbeans project does show errors in some modules (mostly not being
able to resolve packages like javax.servlet)
I followed the instructions here to load derby in netbeans:
http://wiki.apache.org/db-derby/BuildingDerby#Using_NetBeans_to_Build_Derby

I'd like to get to the stage where I can debug/step through the derby code,
so any help much appreciated!

Thanks,
Colm.

$ ant buildjars
........

jardriftcheck:

     [java] ERROR: class
org.apache.derby.iapi.reference.DRDAConstants.class in

     [java]        derby.jar was not previously there.

     [java]

     [java] ERROR: class org.apache.derbyPreBuild.ReleaseProperties.class in

     [java]        derby.jar was not previously there.

     [java]

     [java] ERROR: class org.apache.derbyPreBuild.ReleaseProperties.class in

     [java]        derbyclient.jar was not previously there.

     [java]

     [java] ERROR: class org.apache.derbyPreBuild.ReleaseProperties.class in

     [java]        derbytools.jar was not previously there.

     [java]

     [java] Exception in thread "main" java.lang.Exception:

     [java] jar drift check failed; see DERBY-6471 for info.

     [java] See error in build output or call ant jardriftcheck.

     [java] If the new class is expected run ant refreshjardriftcheck.

     [java] NB: Run the refresh for both sane and insane builds.

     [java]     Use the highest supported JVM (currently Java 8)

     [java]      to ensure all classes are built.

     [java]

     [java] at
org.apache.derbyBuild.JarDriftTest.main(JarDriftTest.java:103)


BUILD FAILED

/Users/administrator/t3rd_party/derby/trunk/build.xml:706: Java returned: 1


Total time: 5 seconds


$ ls -ltr jars/sane

total 30240

-rw-r--r--  1 administrator  staff  7988575 Dec 15 18:41 derbyTesting.jar

-rw-r--r--  1 administrator  staff   300173 Dec 18 14:01 derbytools.jar

-rw-r--r--  1 administrator  staff   353685 Dec 18 14:01 derbynet.jar

-rw-r--r--  1 administrator  staff  4515375 Dec 18 14:01 derby.jar

drwxr-xr-x  4 administrator  staff      136 Dec 18 14:01 lists

-rw-r--r--  1 administrator  staff     9939 Dec 18 14:01 derbyrun.jar

-rw-r--r--  1 administrator  staff   103639 Dec 18 14:01
derbyoptionaltools.jar

-rw-r--r--  1 administrator  staff   768298 Dec 18 14:01 derbyclient.jar

-rw-r--r--  1 administrator  staff   117551 Dec 18 14:01
derbyLocale_ko_KR.jar

-rw-r--r--  1 administrator  staff   123641 Dec 18 14:01
derbyLocale_ja_JP.jar

-rw-r--r--  1 administrator  staff   105862 Dec 18 14:01 derbyLocale_it.jar

-rw-r--r--  1 administrator  staff    95412 Dec 18 14:01 derbyLocale_hu.jar

-rw-r--r--  1 administrator  staff   112190 Dec 18 14:01 derbyLocale_fr.jar

-rw-r--r--  1 administrator  staff   105907 Dec 18 14:01 derbyLocale_es.jar

-rw-r--r--  1 administrator  staff   112220 Dec 18 14:01
derbyLocale_de_DE.jar

-rw-r--r--  1 administrator  staff    94713 Dec 18 14:01 derbyLocale_cs.jar

-rw-r--r--  1 administrator  staff     1490 Dec 18 14:01 derby.war

-rw-r--r--  1 administrator  staff   111046 Dec 18 14:01
derbyLocale_zh_TW.jar

-rw-r--r--  1 administrator  staff   109318 Dec 18 14:01
derbyLocale_zh_CN.jar

-rw-r--r--  1 administrator  staff   121273 Dec 18 14:01 derbyLocale_ru.jar

-rw-r--r--  1 administrator  staff    90622 Dec 18 14:01
derbyLocale_pt_BR.jar

-rw-r--r--  1 administrator  staff    93390 Dec 18 14:01 derbyLocale_pl.jar

On Thu, Dec 17, 2015 at 9:03 PM, Bryan Pendleton <bpendleton.de...@gmail.com
> wrote:

> I am getting the exception below when running RunOptimizerTest (in
>> org.apache.derbyTesting.system.optimizer). My goal is to step through the
>> query compilation code to understand how it works. I am using Java 1.8. I
>> am using netbeans 8.0.1 and the class
>> path includes derbyrun.jar  and derbyTesting.jar. Any help appreciated.
>>
>
> Caused by: java.lang.NullPointerException
>> at
>> org.apache.derby.impl.store.raw.log.LogToFile.writeControlFile(LogToFile.java:2411)
>> at org.apache.derby.impl.store.raw.log.LogToFile.boot(LogToFile.java:3383)
>> at
>> org.apache.derby.impl.services.monitor.BaseMonitor.boot(BaseMonitor.java:1986)
>> at
>> org.apache.derby.impl.services.monitor.TopService.bootModule(TopService.java:334)
>> at
>> org.apache.derby.impl.services.monitor.BaseMonitor.startModule(BaseMonitor.java:537)
>>
>
>
> That's a very low-level failure.
>
> Is this a version of Derby you built yourself? Or did you download a built
> version?
> (If so, which version?)
>
> Do you know what steps you followed to provoke this error?
>
> Can you reproduce it?
>
> Is there any chance that you ran out of disk space, or had some other
> sort of hardware failure?
>
> Is there any chance that you were debugging Derby at a very low level,
> and then halted/interrupted your Derby JVM without letting it run to
> a normal completion, and then tried to resume processing on the same
> database?
>
> I'm not sure what's going wrong here, but would love to learn more
> about how you got to this state.
>
> thanks,
>
> bryan
>
>

Reply via email to