Has anyone used FCPClient.java lately?
Is it tested?
I naively tried to switch Freenet.client.RequestClient over to FCP as a quick
smoke test like this:
/**
* Creates a new RequestClient object.
* @param params Options
**/
public RequestClient(Params args) {
super(args);
//bcf = new FNPClient(cc, target);
try {
bcf = new FCPClient(new Address("tcp/127.0.0.1:8082"));
}
catch (BadAddressException bae) {
throw new RuntimeException(bae.toString());
}
}
Requests die with this exception:
$ java Freenet.client.RequestClient test.txt
Freenet Core running on 3310 (build 390)
State "PREPARED" reached.
State "REQUESTING" reached.
An error condition occured in the client: Could not parse message.
A fatal exception occured while processing: java.lang.NullPointerException
Encountered the following exceptions while attempting to Request:
java.lang.NullPointerException
at Freenet.client.FCPClient$FCPRequest.request(FCPClient.java:444)
at Freenet.client.FCPClient$FCPRequest.doit(FCPClient.java:417)
at Freenet.client.FCPClient$FCPInstance.prepare(FCPClient.java:97)
at Freenet.client.FCPClient$FCPInstance.run(FCPClient.java:111)
at java.lang.Thread.run(Thread.java:498)
State "FAILED" reached.
And this error in the log:
Jun 16, 2001 10:03:02 PM:Freenet.Core$ConnectionAcceptor:Minor:Accepting
connections.
Jun 16, 2001 10:03:02 PM:Freenet.client.ServletConnectionHandler:Debug:New
ServletConnectionHandler with tcp/127.0.0.1:3314
Jun 16, 2001 10:03:02
PM:Freenet.client.ServletConnectionHandler:Minor:Authenticating
tcp/127.0.0.1:3314
Jun 16, 2001 10:03:02
PM:Freenet.client.ServletConnectionHandler:Minor:tcp/127.0.0.1:3314
authenticated
java.io.IOException: bad session/presentation ID
at java.lang.Throwable.<init>(Throwable.java:96)
at java.lang.Exception.<init>(Exception.java:44)
at java.io.IOException.<init>(IOException.java:49)
at Freenet.contrib.fcp.FCPHandler.service(FCPHandler.java:77)
at
Freenet.client.ServletConnectionHandler.run(ServletConnectionHandler.java:86)
at java.lang.Thread.run(Thread.java:498)
Jun 16, 2001 10:03:03
PM:Freenet.client.ServletConnectionHandler:Debug:Finished with message
Jun 16, 2001 10:03:03
PM:Freenet.client.ServletConnectionHandler:Debug:Finished with connection -
closing
Does anyone know what's up?
--gj
--
Web page inside Freenet:
freenet:MSK at SSK@enI8YFo3gj8UVh-Au0HpKMftf6QQAgE/homepage//
_______________________________________________
Devl mailing list
Devl at freenetproject.org
http://lists.freenetproject.org/mailman/listinfo/devl