accumulo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Medinets <david.medin...@gmail.com>
Subject java.lang.VerifyError: Cannot inherit from final class
Date Sun, 15 Jul 2012 01:27:04 GMT
This was unexpected. My code is simple but ran into a problem. I am
connecting from my Windows computer to the Linode Ubuntu-based server
running Accumulo. The same code worked when run directly on the
server. I copied all jar files from the Accumulo lib directory after I
compiled Accumulo over to the Windows computer.

Here is the code:

        String instanceName = "development";
		String zooKeepers = "zookeeper.affy.com";
        String user = "root";
        byte[] pass = "XXXXX".getBytes();
        String tableName = "rope";

        ZooKeeperInstance instance = new
ZooKeeperInstance(instanceName, zooKeepers);
        Connector connector = instance.getConnector(user, pass);

        if (!connector.tableOperations().exists(tableName)) {
            connector.tableOperations().create(tableName);
        }

And here is the output:

START: com.codebits.accumulo.CreateTable
12/07/14 19:55:02 INFO zookeeper.ZooKeeper: Client
environment:zookeeper.version=3.3.1-942149, built on 05/07/2010 17:14
GMT
12/07/14 19:55:02 INFO zookeeper.ZooKeeper: Client environment:host.name=aashi
12/07/14 19:55:02 INFO zookeeper.ZooKeeper: Client
environment:java.version=1.7.0_04
12/07/14 19:55:02 INFO zookeeper.ZooKeeper: Client
environment:java.vendor=Oracle Corporation
12/07/14 19:55:02 INFO zookeeper.ZooKeeper: Client
environment:java.home=C:\Program Files (x86)\Java\jdk1.7.0_04\jre
12/07/14 19:55:02 INFO zookeeper.ZooKeeper: Client
environment:java.class.path=...
12/07/14 19:55:02 INFO zookeeper.ZooKeeper: Client
environment:java.io.tmpdir=C:\Users\medined\AppData\Local\Temp\
12/07/14 19:55:02 INFO zookeeper.ZooKeeper: Client
environment:java.compiler=<NA>
12/07/14 19:55:02 INFO zookeeper.ZooKeeper: Client environment:os.name=Windows 7
12/07/14 19:55:02 INFO zookeeper.ZooKeeper: Client environment:os.arch=x86
12/07/14 19:55:02 INFO zookeeper.ZooKeeper: Client environment:os.version=6.1
12/07/14 19:55:02 INFO zookeeper.ZooKeeper: Client environment:user.name=medined
12/07/14 19:55:02 INFO zookeeper.ZooKeeper: Client
environment:user.home=C:\Users\medined
12/07/14 19:55:02 INFO zookeeper.ZooKeeper: Client
environment:user.dir=C:\eclipse_projects\accumulo_playground
12/07/14 19:55:02 INFO zookeeper.ZooKeeper: Initiating client
connection, connectString=zookeeper.affy.com sessionTimeout=30000
watcher=org.apache.accumulo.fate.zookeeper.ZooSession$ZooWatcher@11adeb7
12/07/14 19:55:02 INFO zookeeper.ClientCnxn: Opening socket connection
to server zookeeper.affy.com/66.175.213.65:2181
12/07/14 19:55:02 INFO zookeeper.ClientCnxn: Socket connection
established to zookeeper.affy.com/66.175.213.65:2181, initiating
session
12/07/14 19:55:02 INFO zookeeper.ClientCnxn: Session establishment
complete on server zookeeper.affy.com/66.175.213.65:2181, sessionid =
0x138823b14b64848, negotiated timeout = 30000
12/07/14 19:55:03 WARN impl.ServerClient: Failed to find an available
server in the list of servers: [66.175.213.65:9997:9997 (120000)]
Exception in thread "main" java.lang.VerifyError: Cannot inherit from
final class
	at java.lang.ClassLoader.defineClass1(Native Method)
	at java.lang.ClassLoader.defineClass(ClassLoader.java:791)
	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
	at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
	at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
	at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
	at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
	at org.apache.accumulo.core.util.ThriftUtil.<clinit>(ThriftUtil.java:79)
	at org.apache.accumulo.core.client.impl.ThriftTransportPool.createNewTransport(ThriftTransportPool.java:478)
	at org.apache.accumulo.core.client.impl.ThriftTransportPool.getAnyTransport(ThriftTransportPool.java:429)
	at org.apache.accumulo.core.client.impl.ServerClient.getConnection(ServerClient.java:144)
	at org.apache.accumulo.core.client.impl.ServerClient.getConnection(ServerClient.java:122)
	at org.apache.accumulo.core.client.impl.ServerClient.executeRaw(ServerClient.java:104)
	at org.apache.accumulo.core.client.impl.ServerClient.execute(ServerClient.java:70)
	at org.apache.accumulo.core.client.impl.ConnectorImpl.<init>(ConnectorImpl.java:76)
	at org.apache.accumulo.core.client.ZooKeeperInstance.getConnector(ZooKeeperInstance.java:218)
	at com.codebits.accumulo.CreateTable.doIt(CreateTable.java:22)
	at com.codebits.accumulo.CreateTable.main(CreateTable.java:33)

Mime
View raw message