Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //I'm getting an error here net.pterodactylus.sone.core.SoneInserter See: http://pastebin.com/TSeD3RHS
- //on using sone in the pre3 release of freenet.
- //The code below is from Line 274 of https://github.com/Bombe/Sone/blob/d525d4ad65878cfd895945512650d978f6a5c034/src/main/java/net/pterodactylus/sone/core/FreenetInterface.java
- /**
- * Inserts a directory into Freenet.
- *
- * @param insertUri
- * The insert URI
- * @param manifestEntries
- * The directory entries
- * @param defaultFile
- * The name of the default file
- * @return The generated URI
- * @throws SoneException
- * if an insert error occurs
- */
- public FreenetURI insertDirectory(FreenetURI insertUri, HashMap<String, Object> manifestEntries, String defaultFile) throws SoneException {
- try {
- return client.insertManifest(insertUri, manifestEntries, defaultFile);
- } catch (InsertException ie1) {
- throw new SoneException(ie1);
- }
- }
- //The above method was called from line 244 of sone inserter.java
- //FreenetURI finalUri = freenetInterface.insertDirectory(insertInformation.getInsertUri(), insertInformation.generateManifestEntries(), "index.html");
- //And was caught on 256 to 258 giving me the error that I can't insert the identity:
- //} catch (SoneException se1) {
- // eventBus.post(new SoneInsertAbortedEvent(sone, se1));
- // logger.log(Level.WARNING, String.format("Could not insert Sone ā%sā!", sone.getName()), se1);
- //} finally {
Advertisement
Add Comment
Please, Sign In to add comment