Hi,
    I am running bitcoinj release-0.14 and am getting excception:
DRMWorkaround.maybeDisableExportControls: Failed to deactivate AES-256 
barrier logic, Tor mode/BIP38 decryption may crash if this JVM requires it: 
Can not set static final boolean field 
javax.crypto.JceSecurity.isRestricted to (boolean)false

I was able to fix this by commenting:
//gate.setAccessible(true);
//gate.setBoolean(null, false);
and adding:
if ( Modifier.isFinal(gate.getModifiers()) ) {
      Field modifiers = Field.class.getDeclaredField("modifiers");
      modifiers.setAccessible(true);
      modifiers.setInt(gate, gate.getModifiers() & ~Modifier.FINAL);
}

This is very specific to this version of Java 8 where the field 
isRestricted has been changed to final which was not there in earlier 
versions.

But i an still not able to connect using tor. I get the following exception:
10:22:30 27 CircuitCreationTask.checkCircuitsForCreation: Cannot build 
circuits because we don't have enough directory information
10:22:50 27 CircuitCreationTask.checkCircuitsForCreation: Cannot build 
circuits because we don't have enough directory information
10:23:10 27 CircuitCreationTask.checkCircuitsForCreation: Cannot build 
circuits because we don't have enough directory information
10:23:10 25 PeerGroup$8.run: Exception when starting up
java.lang.RuntimeException: java.util.concurrent.TimeoutException
at org.bitcoinj.core.PeerGroup$8.run(PeerGroup.java:1146)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at 
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
at 
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at 
org.bitcoinj.utils.ContextPropagatingThreadFactory$1.run(ContextPropagatingThreadFactory.java:49)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.util.concurrent.TimeoutException
at com.subgraph.orchid.TorClient.waitUntilReady(TorClient.java:126)
at org.bitcoinj.core.PeerGroup$8.run(PeerGroup.java:1144)
... 10 more
10:23:30 27 CircuitCreationTask.checkCircuitsForCreation: Cannot build 
circuits because we don't have enough directory information
10:23:50 27 CircuitCreationTask.checkCircuitsForCreation: Cannot build 
circuits because we don't have enough directory information
10:24:10 27 CircuitCreationTask.checkCircuitsForCreation: Cannot build 
circuits because we don't have enough directory information
10:24:30 27 CircuitCreationTask.checkCircuitsForCreation: Cannot build 
circuits because we don't have enough directory information
10:24:50 27 CircuitCreationTask.checkCircuitsForCreation: Cannot build 
circuits because we don't have enough directory information

-Vikas






-- 
You received this message because you are subscribed to the Google Groups 
"bitcoinj" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to