RegisterSign In
By lauwenmark on Jul 23, 2011 2:47 AM.
ArrayIndexOutOfBoundsException when creating a simple database
Creating a simple database does not seem to work.

Test setup: a single node configuration, filling the roles of manager, root and block. JDK version is 1.6 update 26.

Management console output:

MckoiDDB> add simple database testdb to
Adding path com.mckoi.sdb.SimpleDatabase testdb.
Path Info Leader: Replicas:
Error: 0
Operation aborted.

Node output:

23-juil.-2011 11:31:28 loadPathInfo
INFO: loadPathInfo on path testdb at
23-juil.-2011 11:31:28 loadPathInfo
INFO: COMPLETE: loadPathInfo on path testdb at
23-juil.-2011 11:31:28$LFSRootServerProcessor process
GRAVE: Exception during process
java.lang.ArrayIndexOutOfBoundsException: 0
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(
at java.util.concurrent.ThreadPoolExecutor$

What am I missing?
By Tobias Downer (toby) on Jul 24, 2011 10:16 PM.
You've discovered a bug! I have been testing with multiple managers and missed this simpler case. I have just fixed this in my local copy and I will make a test case. A simple way to work around this bug is to start up the manager/root and block node roles as you have done, then stop the node software and go into the 'base/root' directory and find the '' file. The content of the file needs to reference your manager server but the bug stops this information being written, so if you change it to something like the following;

#Sun Jul 24 20:39:12 PDT 2011

Restart the node and you should then be good to go.
Please sign in or register to post in this topic.
The text on this page is licensed under the Creative Commons Attribution 3.0 License. Java is a registered trademark of Oracle and/or its affiliates.
Mckoi is Copyright © 2000 - 2021 Diehl and Associates, Inc. All rights reserved.