s243a

sone identity insert problem for pre3

Jun 4th, 2015
593
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.46 KB | None | 0 0
  1. //I'm getting an error here net.pterodactylus.sone.core.SoneInserter See: http://pastebin.com/TSeD3RHS
  2. //on using sone in the pre3 release of freenet.
  3. //The code below is from Line 274 of https://github.com/Bombe/Sone/blob/d525d4ad65878cfd895945512650d978f6a5c034/src/main/java/net/pterodactylus/sone/core/FreenetInterface.java
  4.     /**
  5.      * Inserts a directory into Freenet.
  6.      *
  7.      * @param insertUri
  8.      *            The insert URI
  9.      * @param manifestEntries
  10.      *            The directory entries
  11.      * @param defaultFile
  12.      *            The name of the default file
  13.      * @return The generated URI
  14.      * @throws SoneException
  15.      *             if an insert error occurs
  16.      */
  17.     public FreenetURI insertDirectory(FreenetURI insertUri, HashMap<String, Object> manifestEntries, String defaultFile) throws SoneException {
  18.         try {
  19.             return client.insertManifest(insertUri, manifestEntries, defaultFile);
  20.         } catch (InsertException ie1) {
  21.             throw new SoneException(ie1);
  22.         }
  23.     }
  24. //The above method was called from line 244 of sone inserter.java
  25. //FreenetURI finalUri = freenetInterface.insertDirectory(insertInformation.getInsertUri(), insertInformation.generateManifestEntries(), "index.html");
  26. //And was caught on 256 to 258 giving me the error that I can't insert the identity:
  27. //} catch (SoneException se1) {
  28. //  eventBus.post(new SoneInsertAbortedEvent(sone, se1));
  29. //  logger.log(Level.WARNING, String.format("Could not insert Sone ā€œ%sā€!", sone.getName()), se1);
  30. //} finally {
Advertisement
Add Comment
Please, Sign In to add comment