accumulo-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John Vines (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (ACCUMULO-1321) Dynamic Classloader lost jars
Date Tue, 11 Jun 2013 17:10:19 GMT

    [ https://issues.apache.org/jira/browse/ACCUMULO-1321?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13680503#comment-13680503
] 

John Vines commented on ACCUMULO-1321:
--------------------------------------

rm old jars
add new jar
rename new jar in the ext directory

Got the following stack trace
{code}
java.lang.ClassNotFoundException: blah.testIterator
        at org.apache.commons.vfs2.impl.VFSClassLoader.findClass(VFSClassLoader.java:181)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
        at org.apache.accumulo.start.classloader.vfs.AccumuloVFSClassLoader.loadClass(AccumuloVFSClassLoader.java:102)
        at org.apache.accumulo.server.client.ClientServiceHandler.checkClass(ClientServiceHandler.java:259)
        at sun.reflect.GeneratedMethodAccessor184.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:616)
        at org.apache.accumulo.trace.instrument.thrift.TraceWrap$1.invoke(TraceWrap.java:63)
        at sun.proxy.$Proxy10.checkClass(Unknown Source)
        at org.apache.accumulo.core.client.impl.thrift.ClientService$Processor$checkClass.getResult(ClientService.java:2343)
        at org.apache.accumulo.core.client.impl.thrift.ClientService$Processor$checkClass.getResult(ClientService.java:2328)
        at org.apache.thrift.ProcessFunction.process(ProcessFunction.java:39)
        at org.apache.thrift.TBaseProcessor.process(TBaseProcessor.java:39)
        at org.apache.accumulo.server.util.TServerUtils$TimedProcessor.process(TServerUtils.java:156)
        at org.apache.thrift.server.AbstractNonblockingServer$FrameBuffer.invoke(AbstractNonblockingServer.java:478)
        at org.apache.accumulo.server.util.TServerUtils$THsHaServer$Invocation.run(TServerUtils.java:208)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at org.apache.accumulo.trace.instrument.TraceRunnable.run(TraceRunnable.java:47)
        at org.apache.accumulo.core.util.LoggingRunnable.run(LoggingRunnable.java:34)
        at java.lang.Thread.run(Thread.java:679)
Caused by: org.apache.commons.vfs2.FileSystemException: Could not get attributes "jar:file:///cloud/accumulo/accumulo-current/lib/ext/blah.jar!/blah".
        at org.apache.commons.vfs2.provider.DefaultFileContent.getAttributes(DefaultFileContent.java:248)
        at org.apache.commons.vfs2.provider.DefaultFileContent.getAttribute(DefaultFileContent.java:285)
        at org.apache.commons.vfs2.impl.Resource.getPackageAttribute(Resource.java:87)
        at org.apache.commons.vfs2.impl.VFSClassLoader.definePackage(VFSClassLoader.java:244)
        at org.apache.commons.vfs2.impl.VFSClassLoader.defineClass(VFSClassLoader.java:215)
        at org.apache.commons.vfs2.impl.VFSClassLoader.findClass(VFSClassLoader.java:177)
        ... 21 more
Caused by: java.lang.NullPointerException
        at org.apache.commons.vfs2.provider.jar.JarFileSystem.getAttributes(JarFileSystem.java:87)
        at org.apache.commons.vfs2.provider.jar.JarFileObject.doGetAttributes(JarFileObject.java:112)
        at org.apache.commons.vfs2.provider.DefaultFileContent.getAttributes(DefaultFileContent.java:241)
        ... 26 more
{code}
                
> Dynamic Classloader lost jars
> -----------------------------
>
>                 Key: ACCUMULO-1321
>                 URL: https://issues.apache.org/jira/browse/ACCUMULO-1321
>             Project: Accumulo
>          Issue Type: Sub-task
>            Reporter: John Vines
>            Priority: Blocker
>             Fix For: 1.5.0
>
>         Attachments: ACCUMULO-1321.patch
>
>
> We have a table setup that uses some custom iterators. We ran an MR job against it without
issues. We then ran the job immediately after the first one wrapped and 2 of my tservers errored
with ClassNotFoundException, even though it ran just fine before.
> Unfortunately we don't have a stack trace (to see if it was breaking differently in the
VFSClassLoader), nor a convenient way to recreate currently. We're working on reproducing
it in order to get more information.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message