Opened 2 years ago

Closed 2 years ago

#2469 closed defect (fixed)

I2PSnark-Standalone: BlockfileNamingService

Reported by: lg Owned by: zzz
Priority: minor Milestone: 0.9.40
Component: api/naming Version: 0.9.39
Keywords: i2psnark-standalone Cc: slumlord
Parent Tickets: Sensitive: no


Source: (http://bobthebuilder.i2p/)

30.03.19, 13:50:32 ERROR    [dQ%c1O%08 #1] 2p.client.naming.NamingService: Cannot load naming service net.i2p.router.naming.BlockfileNamingService, using HostsTxtNamingService
java.lang.ClassNotFoundException: net.i2p.router.naming.BlockfileNamingService
        at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(
        at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(
        at java.base/java.lang.ClassLoader.loadClass(
        at java.base/java.lang.Class.forName0(Native Method)
        at java.base/java.lang.Class.forName(
        at net.i2p.client.naming.NamingService.createInstance(
        at net.i2p.I2PAppContext.initializeNamingService(
        at net.i2p.I2PAppContext.namingService(
        at net.i2p.util.ConvertToHash.getHash(
        at org.klomp.snark.TrackerClient.getHostHash(
        at org.klomp.snark.TrackerClient.isNewValidTracker(
        at org.klomp.snark.TrackerClient.setup(
        at java.base/


Change History (2)

comment:1 Changed 2 years ago by zzz

Cc: slumlord added

BlockfileNamingService? was moved from i2p.jar to addressbook.jar in 0.9.31, a year and a half ago, but the snark standalone build does not bundle the classes from addressbook.jar. I believe that this application doesn't need the blockfile naming service, as there's no susidns UI or subscriptions set up.

But I don't see why it thinks it's in RouterContext?. A config file issue? To be investigated.

In any case, minor issue, as it's falling back to hosts.txt naming service.

comment:2 Changed 2 years ago by zzz

Component: apps/i2psnarkapi/naming
Milestone: undecided0.9.40
Resolution: fixed
Status: newclosed

Reproduced/fixed/tested here.
The class selection in app context was wrong.
In 5b528cad5cd19238bf3d33d566c68508604f6bce to be 0.9.39-6

Note: See TracTickets for help on using tickets.