|
|
-
java.lang.VerifyError: Cannot inherit from final class
David Medinets 2012-07-15, 01:27
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)
+
David Medinets 2012-07-15, 01:27
-
Re: java.lang.VerifyError: Cannot inherit from final class
Josh Elser 2012-07-15, 02:33
Can you post some more information about how you're running your program on your Windows client (specifically, the classpath)? Are you using something like Ant/Maven to manage dependencies? Also, what version of Java are you running on your Linode instance? On 07/14/2012 08:27 PM, David Medinets wrote: > 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)
+
Josh Elser 2012-07-15, 02:33
-
Re: java.lang.VerifyError: Cannot inherit from final class
William Slacum 2012-07-15, 01:40
Looks like the stack trace is finishing up in the Thrift stuff-- I wonder if you have a newer version of Thrift on the client?
On Sat, Jul 14, 2012 at 10:33 PM, Josh Elser <[EMAIL PROTECTED]> wrote: > Can you post some more information about how you're running your program on > your Windows client (specifically, the classpath)? Are you using something > like Ant/Maven to manage dependencies? Also, what version of Java are you > running on your Linode instance? > > > > On 07/14/2012 08:27 PM, David Medinets wrote: >> >> 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)
+
William Slacum 2012-07-15, 01:40
-
Re: java.lang.VerifyError: Cannot inherit from final class
David Medinets 2012-07-15, 03:35
Mea culpa. You might recall that I copied the jar files from the Ubuntu server to my Windows box. And I thought ... what if any of the jar files were newer versions. Somehow missed seeing the libthrift-0.6.1.jar on the classpath. So I had both versions. Sorry about the false alarm.
I am running Java 1.7 on both client and server. I am using Eclipse on the Windows box to compile and execute the client program.
On the other hand, I am still seeing the following internalRead issue when I ran my client program. Even though it seems like my client program worked to create the table.
15 03:31:41,658 [server.THsHaServer] WARN : Got an IOException in internalRead! java.io.IOException: Connection reset by peer at sun.nio.ch.FileDispatcherImpl.read0(Native Method) at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:39) at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:218) at sun.nio.ch.IOUtil.read(IOUtil.java:191) at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:359) at org.apache.thrift.transport.TNonblockingSocket.read(TNonblockingSocket.java:141) at org.apache.thrift.server.AbstractNonblockingServer$FrameBuffer.internalRead(AbstractNonblockingServer.java:514) at org.apache.thrift.server.AbstractNonblockingServer$FrameBuffer.read(AbstractNonblockingServer.java:305) at org.apache.thrift.server.AbstractNonblockingServer$AbstractSelectThread.handleRead(AbstractNonblockingServer.java:202) at org.apache.thrift.server.TNonblockingServer$SelectAcceptThread.select(TNonblockingServer.java:198) at org.apache.thrift.server.TNonblockingServer$SelectAcceptThread.run(TNonblockingServer.java:154)
This seems like the final issue for me to resolve in my current setup. Any insights about this issue would be appreciated.
+
David Medinets 2012-07-15, 03:35
-
Re: java.lang.VerifyError: Cannot inherit from final class
John Vines 2012-07-15, 02:21
Good call, Wilhelm. The trunk is now on thrift 0.8, so make sure things are translated appropriately.
Sent from my phone, so pardon the typos and brevity. On Jul 14, 2012 9:40 PM, "William Slacum" <[EMAIL PROTECTED]> wrote:
> Looks like the stack trace is finishing up in the Thrift stuff-- I > wonder if you have a newer version of Thrift on the client? > > On Sat, Jul 14, 2012 at 10:33 PM, Josh Elser <[EMAIL PROTECTED]> wrote: > > Can you post some more information about how you're running your program > on > > your Windows client (specifically, the classpath)? Are you using > something > > like Ant/Maven to manage dependencies? Also, what version of Java are you > > running on your Linode instance? > > > > > > > > On 07/14/2012 08:27 PM, David Medinets wrote: > >> > >> 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
+
John Vines 2012-07-15, 02:21
|
|