Forum: Building VoltDB Applications

Post: org.voltdb.VoltTypeException: Database catalog not found

org.voltdb.VoltTypeException: Database catalog not found
puja_green
Apr 10, 2012
I have tried a Getting started VoltdDB but I've got a problem when I ran the server of Voltdb.
I have done some step, that is :
1)$ export CLASSPATH="/home/apps/voltdb-2.2.2/voltdb/*:/home/apps/voltdb-2.2.2/lib/*"

2)$ PATH=/home/apps/jdk1.6.0_25/bin:$PATH

3) helloworld.jar I created from Eclipse IDE in WIndows. I Created a folder with the name helloworld in Server /home/apps/helloworld, and then I put helloworld.jar in.

4)In console I typed : $/home/apps/jdk1.6.0_25/bin/java -Djava.library.path=/home/apps/voltdb-2.2.2/voltdb -Dlog4j.configuration=file:///home/apps/voltdb-2.2.2/voltdb/log4j.xml org.voltdb.VoltDB leader localhost catalog helloworld.jar deployment deployment.xml. then I enter, But Error.. :(

The following error is :

[apps@development1 helloworld2]$ /home/apps/jdk1.6.0_25/bin/java -Djava.library.path=/home/apps/voltdb-2.2.2/voltdb -Dlog4j.configuration=file:///home/apps/voltdb-2.2.2/voltdb/log4j.xml org.voltdb.VoltDB leader localhost catalog helloworld.jar deployment deployment.xml
2012-04-10 04:35:43,128 INFO [main] HOST: Initializing VoltDB...

_ __ ____ ____ ____
| | / /___ / / /_/ __ \/ __ )
| | / / __ \/ / __/ / / / __ |
| |/ / /_/ / / /_/ /_/ / /_/ /
|___/\____/_/\__/_____/_____/
--------------------------------

2012-04-10 04:35:43,137 INFO [main] HOST: Build: 2.2.2 voltdb-2.2.2-0-g82bb59 f Community Edition
2012-04-10 04:35:43,144 INFO [main] HOST: URL of deployment info: deployment. xml
2012-04-10 04:35:43,393 INFO [main] HOST: Cluster has 1 hosts with leader hos tname: "localhost". 2 sites per host. K = 0.
2012-04-10 04:35:43,393 INFO [main] HOST: The entire cluster has 1 copy of ea ch of the 2 logical partitions.
2012-04-10 04:35:43,394 INFO [main] HOST: Detection of network partitions in the cluster is not enabled.
2012-04-10 04:35:43,396 INFO [main] HOST: Using "/home/apps/helloworld2/voltd broot" for voltdbroot directory.
2012-04-10 04:35:43,417 INFO [main] HOST: URL of deployment info: deployment. xml
2012-04-10 04:35:43,465 INFO [main] HOST: Beginning inter-node communication on port 3021.
2012-04-10 04:35:43,477 INFO [Thread-3] HOST: Connecting to VoltDB cluster as the leader...
2012-04-10 04:35:43,478 INFO [Thread-3] HOST: Maximum clock/network skew is 0 milliseconds (according to leader)
2012-04-10 04:35:43,671 INFO [main] ZK-SERVER: binding to port /127.0.0.1:218 1
2012-04-10 04:35:43,684 INFO [main] ZK-SERVER: Created server with tickTime 3 000 minSessionTimeout 6000 maxSessionTimeout 60000
2012-04-10 04:35:43,729 INFO [main] HOST: Starting the network subsystem with 1 worker threads.
2012-04-10 04:35:43,735 INFO [main] ZK-SERVER: Initiating client connection, connectString=127.0.0.1:2181 sessionTimeout=2000 watcher=org.voltdb.agreement.ZK Util$1@27958cc2
2012-04-10 04:35:43,742 INFO [main-SendThread()] ZK-CLIENT: Opening socket co nnection to server /127.0.0.1:2181
2012-04-10 04:35:43,745 INFO [NIOServerCxn.Factory:/127.0.0.1:2181] ZK-SERVER : Accepted socket connection from /127.0.0.1:35414
2012-04-10 04:35:43,745 INFO [main-SendThread(development1.bnisecurities.co.i d:2181)] ZK-CLIENT: Socket connection established to development1.bnisecurities. co.id/127.0.0.1:2181, initiating session
2012-04-10 04:35:43,750 INFO [NIOServerCxn.Factory:/127.0.0.1:2181] ZK-SERVER : Client attempting to establish new session at /127.0.0.1:35414
2012-04-10 04:35:43,767 INFO [ZooKeeperServer] ZK-SERVER: Established session 0xfb3f1b603800001 with negotiated timeout 6000 for client /127.0.0.1:35414
2012-04-10 04:35:43,768 INFO [main-SendThread(development1.bnisecurities.co.i d:2181)] ZK-CLIENT: Session establishment complete on server development1.bnisec urities.co.id/127.0.0.1:2181, sessionid = 0xfb3f1b603800001, negotiated timeout = 6000
2012-04-10 04:35:43,869 INFO [main] HOST: Loading application catalog jarfile from /tmp/catalog-host0-4147146623244617360.jar
2012-04-10 04:35:43,909 ERROR [main] ZK-SERVER: Thread Thread[main,5,main] die d
org.voltdb.VoltTypeException: Database catalog not found - please build your application using the current verison of VoltDB.
at org.voltdb.utils.CatalogUtil.loadCatalogFromJar(CatalogUtil.java:108)
at org.voltdb.Inits$LoadCatalog.run(Inits.java:306)
at org.voltdb.Inits$InitializerWorker.run(Inits.java:103)
at org.voltdb.Inits.doInitializationWork(Inits.java:179)
at org.voltdb.RealVoltDB.initialize(RealVoltDB.java:358)
at org.voltdb.VoltDB.initialize(VoltDB.java:541)
at org.voltdb.VoltDB.main(VoltDB.java:523)
Is source code can't be created from the outside environment ???
What's the problem of this case ?? help me, please..
catalog jar file
jpiekos
Apr 12, 2012
It looks like you are loading the catalog jar file from /tmp/catalog-host0-4147146623244617360.jar?
Try specifying the full path to your catalog (/home/apps/helloworld/helloworld.jar).

John