Ernst Bunders wrote:
> I try to backup my apps1 application, and this is what i get. does it look 
> familiar or ring a bell somewhere? (application config included)


> 
> java.lang.NullPointerException:
> at 
> org.mmbase.util.XMLContextDepthReader.getStartAlias(XMLContextDepthReader.java:102)
> at 


In order to know what line 102 is, it may be interesting to know what
version of MMBase you're using.

In 1.8 it is:

  Node n1 = document.getFirstChild();


So my first guess is that 'document' is null.

I don't know excactly how that could happen. It is made in the constructor:

  public XMLContextDepthReader(String filename) {
        try {
            document = XMLBasicReader.getDocumentBuilder(false, null, 
null).parse(new File(filename));
        } catch (Exception e) {
            log.error(e.getMessage());
            log.error(Logging.stackTrace(e));
        }
    }

The javadoc of DocumentBuilder sais nothing about returning null. So
perhaps an excption occured, leaving document null? That should be present
in the log then too.

Perhaps the 'backup.xml' file is not present, or unreadable or so?


Michiel

-- 
Michiel Meeuwissen                  mihxil'
Peperbus 107 MediaPark H'sum          []()
+31 (0)35 6772979         nl_NL eo_XX en_US
_______________________________________________
Developers mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/developers

Reply via email to