Hello. I'm having a problem with document creation in Java. I am sorting documents then uploading them to the location they need to be in. When I get to the part where the document is being created, my program just hangs. I'm not seeing any errors on my end or on the server's end. Maybe you guys can help.
Here is my code:
public void uploadFile(File incomingFile, String incomingPath) throws FileNotFoundException { path = incomingPath; //Connection setup Session session = new Session(); RepositoryRegistration repo = new RepositoryRegistration(serverName, repoName, port); session.connect(repo); session.logIn(repo, username, password); System.out.println("Logging in"); System.out.println("Creating Document"); //This is the last log statement that show up. It hangs after this //but before the "Doc created" one. Document doc = null; doc = Document.create(path, EnumSet.of(EntryNameOption.NONE), session); System.out.println("Doc created"); doc.lock(LockType.EXCLUSIVE); doc.writeEDoc(incomingFile); System.out.println("Doc written"); doc.unlock(); doc.refresh(); doc.save(); session.logOut(); System.out.println("Done. Logging out"); }