4 Replies Latest reply on Feb 24, 2011 2:21 PM by crismahe

    Error container.putDocument


      I have a problem with the method putDocument in a container.

      The part of the program where I execute it is like this

      File containerFile = new File(manager.ENVIRONMENT_PATH, BdbxmlManager.CONTAINER_MESSAGE);
      XmlContainer container = manager.getXmlManager().openContainer(containerFile.getCanonicalPath());
      try {
           XMLElement textFormat = new XMLElement("<text>"+textMessage+"</text>");
           System.out.println("Starting... ");
           container.putDocument(transaction, "26368.xml", textFormat.toString() );
           System.out.println("Ending... ");
      } catch (Exception e) {
           System.out.println("Excepcion caught");

      The program stops at the line container.putDocument(transaction, "26368.xml", textFormat.toString() );
      and it do nothing. The text in catch or in finally is never printed.

      There are about 26000 documents in the container. Could it be a problem? Has the document got a very large name?

      Thank you