iovxw / openkad Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/openkad
Automatically exported from code.google.com/p/openkad
"public class KadServer implements Communicator"
I cannot import "Communicator", please help me, 10Q.
Original issue reported on code.google.com by [email protected]
on 5 Jul 2012 at 8:35
What steps will reproduce the problem?
1. Run the DHT openKad implementation
2. Query DHT (frequently)
What is the expected output? What do you see instead?
I get an every now and then (very frequently actually) at
m.handle(msg); line 194 @ KadServer.java
What version of the product are you using? On what operating system?
Windows 7 and 8, Java 1.7
Original issue reported on code.google.com by [email protected]
on 15 Jul 2014 at 2:46
Lambdaj is known to be slow due to the high degree of reflection used.
Eliminating lambdaj in openkad gave me immediately visually noticeable speedups
in bootstrapping. I highly recommend following suit and not using lambdaj
anymore.
Original issue reported on code.google.com by [email protected]
on 8 Sep 2013 at 9:06
What steps will reproduce the problem?
1. Create Java Project in eclipse using JDK 1.6 or 1.8 targetting various
runtimes
2. Include dependencies via pom (guice 1 through 4 tried)
3. Using source or r60 jar file run unit tests
What is the expected output? What do you see instead?
Success for all UT's
com.google.inject.CreationException: Guice configuration errors:
1) Error at
il.technion.ewolf.kbr.openkad.BootstrapNodesSaver.<init>(BootstrapNodesSaver.jav
a:26):
Binding to java.io.File annotated with @com.google.inject.name.Named(value=openkad.file.nodes) not found. No bindings to that type were found.
2) Error at
il.technion.ewolf.kbr.openkad.IncomingContentHandler.<init>(IncomingContentHandl
er.java:43):
Binding to java.util.concurrent.ExecutorService annotated with @com.google.inject.name.Named(value=openkad.executors.client) not found. No bindings to that type were found.
3) Error at il.technion.ewolf.kbr.openkad.KadNet.<init>(KadNet.java:75):
Binding to il.technion.ewolf.kbr.Node annotated with @com.google.inject.name.Named(value=openkad.local.node) not found. No bindings to that type were found.
4) Error at
il.technion.ewolf.kbr.openkad.bucket.KadBuckets.<init>(KadBuckets.java:58):
Binding to il.technion.ewolf.kbr.KeyFactory not found. No bindings to that type were found.
5) Error at
il.technion.ewolf.kbr.openkad.handlers.ForwardHandler.<init>(ForwardHandler.java
:96):
Binding to il.technion.ewolf.kbr.Node annotated with @com.google.inject.name.Named(value=openkad.local.node) not found. No bindings to that type were found.
6) Error at
il.technion.ewolf.kbr.openkad.handlers.KademliaFindNodeHandler.<init>(KademliaFi
ndNodeHandler.java:50):
Binding to il.technion.ewolf.kbr.Node annotated with @com.google.inject.name.Named(value=openkad.local.node) not found. No bindings to that type were found.
7) Error at
il.technion.ewolf.kbr.openkad.handlers.PingHandler.<init>(PingHandler.java:38):
Binding to il.technion.ewolf.kbr.Node annotated with @com.google.inject.name.Named(value=openkad.local.node) not found. No bindings to that type were found.
8) Error at
il.technion.ewolf.kbr.openkad.msg.ContentMessage.<init>(ContentMessage.java:26):
Binding to long annotated with @com.google.inject.name.Named(value=openkad.rnd.id) not found. No bindings to that type were found.
9) Error at
il.technion.ewolf.kbr.openkad.msg.ContentRequest.<init>(ContentRequest.java:27):
Binding to long annotated with @com.google.inject.name.Named(value=openkad.rnd.id) not found. No bindings to that type were found.
10) Error at
il.technion.ewolf.kbr.openkad.msg.FindNodeRequest.<init>(FindNodeRequest.java:25
):
Binding to long annotated with @com.google.inject.name.Named(value=openkad.rnd.id) not found. No bindings to that type were found.
11) Error at
il.technion.ewolf.kbr.openkad.msg.ForwardRequest.<init>(ForwardRequest.java:30):
Binding to long annotated with @com.google.inject.name.Named(value=openkad.rnd.id) not found. No bindings to that type were found.
12) Error at
il.technion.ewolf.kbr.openkad.msg.PingRequest.<init>(PingRequest.java:22):
Binding to long annotated with @com.google.inject.name.Named(value=openkad.rnd.id) not found. No bindings to that type were found.
13) Error at
il.technion.ewolf.kbr.openkad.net.KadServer.<init>(KadServer.java:59):
Binding to com.google.inject.Provider<java.net.DatagramSocket> annotated with @com.google.inject.name.Named(value=openkad.net.udp.sock) not found. No bindings to that type were found.
14) Error at
il.technion.ewolf.kbr.openkad.net.KadServer.<init>(KadServer.java:59):
Binding to java.util.concurrent.BlockingQueue<java.net.DatagramPacket> annotated with @com.google.inject.name.Named(value=openkad.net.buffer) not found. No bindings to that type were found.
15) Error at
il.technion.ewolf.kbr.openkad.net.MessageDispatcher.<init>(MessageDispatcher.jav
a:56):
Binding to java.util.concurrent.BlockingQueue<il.technion.ewolf.kbr.openkad.net.MessageDispatcher<?>> annotated with @com.google.inject.name.Named(value=openkad.net.req_queue) not found. No bindings to that type were found.
16) Error at
il.technion.ewolf.kbr.openkad.op.EagerColorFindValueOperation.<init>(EagerColorF
indValueOperation.java:73):
Binding to il.technion.ewolf.kbr.Node annotated with @com.google.inject.name.Named(value=openkad.local.node) not found. No bindings to that type were found.
17) Error at
il.technion.ewolf.kbr.openkad.op.JoinOperation.<init>(JoinOperation.java:48):
Binding to il.technion.ewolf.kbr.Key annotated with @com.google.inject.name.Named(value=openkad.keys.zerokey) not found. No bindings to that type were found.
18) Error at
il.technion.ewolf.kbr.openkad.op.KadFindNodeOperation.<init>(KadFindNodeOperatio
n.java:49):
Binding to il.technion.ewolf.kbr.Node annotated with @com.google.inject.name.Named(value=openkad.local.node) not found. No bindings to that type were found.
19) Error at
il.technion.ewolf.kbr.openkad.op.KadLocalCacheFindValueOperation.<init>(KadLocal
CacheFindValueOperation.java:65):
Binding to il.technion.ewolf.kbr.Node annotated with @com.google.inject.name.Named(value=openkad.local.node) not found. No bindings to that type were found.
19 error[s]
at com.google.inject.BinderImpl.createInjector(BinderImpl.java:277)
at com.google.inject.Guice.createInjector(Guice.java:79)
at com.google.inject.Guice.createInjector(Guice.java:53)
at com.google.inject.Guice.createInjector(Guice.java:43)
at il.technion.ewolf.kbr.KeybasedRoutingTest.the2NodesShouldAbleToSendArbitrarySerializableMessages(KeybasedRoutingTest.java:314)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at org.junit.internal.runners.statements.FailOnTimeout$StatementThread.run(FailOnTimeout.java:74)
What version of the product are you using? On what operating system?
r60, Mac OSX
Please provide any additional information below.
examples:
@Provides
// had to move this to class instance scope: @Singleton
@Named("openkad.rnd") // see code from guice named, this targets field. I also tried javax.inject.named as well with a different failure.
Random provideRandom(@Named("openkad.seed") final long seed) {
return seed == 0 ? new Random() : new Random(seed);
}
--> /**
* Annotates named things.
*
* @author [email protected] (Bob Lee)
*/
@Retention(RUNTIME)
@Target({ ElementType.FIELD, ElementType.PARAMETER })
@BindingAnnotation
public @interface Named {
String value();
}
thanks
Original issue reported on code.google.com by [email protected]
on 3 Jul 2014 at 8:19
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.