accumulo-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] pomadchin opened a new issue #507: Mini Accumulo Cluster class loaders behaviour
Date Fri, 01 Jun 2018 10:17:46 GMT
pomadchin opened a new issue #507: Mini Accumulo Cluster class loaders behaviour
URL: https://github.com/apache/accumulo/issues/507
 
 
   Hey all! I'm trying to use (the first attempt to move from accumulo mock client) Mini Accumulo
Cluster in [SBT](https://github.com/sbt/sbt) tests and experience an issue with this line:
https://github.com/apache/accumulo/blob/rel/1.9.1/minicluster/src/main/java/org/apache/accumulo/minicluster/impl/MiniAccumuloClusterImpl.java#L272
   
   The thing is that it loads the following class loaders: 
   
   ```
   URLClassLoader with NativeCopyLoader with RawResources(
     urls = List(...),
     parent = DualLoader(a = java.net.URLClassLoader@1c345372, b = java.net.URLClassLoader@69ea3742),
     resourceMap = Set(app.class.path, boot.class.path),
     nativeTemp = ...
   )
   DualLoader(a = java.net.URLClassLoader@1c345372, b = java.net.URLClassLoader@69ea3742)
   NullLoader // <!- here is the issue
   sun.misc.Launcher$AppClassLoader@75b84c92
   sun.misc.Launcher$ExtClassLoader@483f6d77
   ```
   
   The error I'm getting is: `Unknown classloader type : sbt.internal.inc.classpath.NullLoader`
   Where the `NullLoader` itself is: 
   
   ```scala
   package sbt.internal.inc.classpath
   final class NullLoader() extends java.lang.ClassLoader { ... }
   ```
   
   Mb it makes sense to skip unknown class loaders rather than to throw exceptions and to
throw an exception only if there is no class loaders at all? Also any workarounds are welcome
and let me know if it makes sense to create issue on the `SBT` side rather than here.
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message