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 192.168.1.102:3500, filling the roles of manager, root and block. JDK version is 1.6 update 26.

Management console output:

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

Node output:

23-juil.-2011 11:31:28 com.mckoi.network.LocalFileSystemRootServer loadPathInfo
INFO: loadPathInfo on path testdb at 192.168.1.102:3500
23-juil.-2011 11:31:28 com.mckoi.network.LocalFileSystemRootServer loadPathInfo
INFO: COMPLETE: loadPathInfo on path testdb at 192.168.1.102:3500
23-juil.-2011 11:31:28 com.mckoi.network.LocalFileSystemRootServer$LFSRootServerProcessor process
GRAVE: Exception during process
java.lang.ArrayIndexOutOfBoundsException: 0
at com.mckoi.network.NetworkTreeSystem.processManager(NetworkTreeSystem.java:238)
at com.mckoi.network.NetworkTreeSystem.internalPerformTreeWrite(NetworkTreeSystem.java:1401)
at com.mckoi.network.NetworkTreeSystem.performTreeWrite(NetworkTreeSystem.java:1624)
at com.mckoi.network.NetworkTreeSystem.createEmptyDatabase(NetworkTreeSystem.java:380)
at com.mckoi.network.LocalFileSystemRootServer.initializePath(LocalFileSystemRootServer.java:1120)
at com.mckoi.network.LocalFileSystemRootServer.access$4300(LocalFileSystemRootServer.java:184)
at com.mckoi.network.LocalFileSystemRootServer$LFSRootServerProcessor.initialize(LocalFileSystemRootServer.java:2678)
at com.mckoi.network.LocalFileSystemRootServer$LFSRootServerProcessor.process(LocalFileSystemRootServer.java:2459)
at com.mckoi.network.LocalFileSystemRootServer$LFSRootServerProcessor.process(LocalFileSystemRootServer.java:2361)
at com.mckoi.network.TCPInstanceAdminServer$Connection.run(TCPInstanceAdminServer.java:728)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)

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 '00.properties' 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
manager_server_address=192.168.1.102:3500

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 - 2017 Diehl and Associates, Inc. All rights reserved.