OctopusLoader readConfigValues error

View: New views
1 Messages — Rating Filter:   Alert me  

OctopusLoader readConfigValues error

by Box, Jared C :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I am having problems using the Octopus Loader when invoking it from
java.

Once the loader executes and reaches the readConfigValues method is
fails with "Sorry, an error occurred: null".

Is there any way to get a more informative error message for this
obvious null pointer?

Thanks,
-Jared
       


My code is as follows:

    String loaderFile = "C:\\sequoia-2.10-bin\\LoaderJob.olj";
        String dbVendorFile = "C:\\tdt-3.6\\conf\\OctopusDBVendors.xml";

       
        String[] tableArray = {"AAOAS"};

        try {
            Loader x = new Loader(loaderFile, Loader.LOGMODE_FULL,
                    "sa", null, null, false, null, null, true, null, 0,
1);
           
           x.setVendorFileName(dbVendorFile);
           x.setLogDirName("C:\\tdt-3.6\\log");
           x.setLogFileName("eclipseOctopusLog.txt");
           x.setOnErrorContinue(true);          
           x.setIncludedJobs(tableArray);                      

            x.load();
        }
        catch (LoaderException le) {
            le.printStackTrace();
        }




My log messages are as follows:

Default (Standard) Logger is load.


Application is started.

Loader loads XML file : C:\sequoia-2.10-bin\LoaderJob.olj


XML document is valid.

        importVariable  method is started.

        importVariable  method is finished.

        importLoaderJobAttributes method is started.

        importLoaderJobAttributes method is finished.

        parseImportJob method is started.

        parseImportJob method is finished.

        parseCopyTable method is started.

        parseImportJob method is finished.

        parseSql method is started.

        parseSql method is finished.

        parseEcho method is started.

        parseSql method is finished.

        importRestartCounter method is started.

        importRestartCounter method is finished.

        parseMainElements method is started.

        parseMainElements method is finished.

        parseImportJDBCDefaultParameters method is started.

        parseImportJDBCDefaultParameters method is finished.

        readConfigValues method is started.

Sorry, an error occurred: null

org.webdocwf.util.loader.LoaderException: Exception:
        at org.webdocwf.util.loader.Loader.load(Unknown Source)
        at
octopus.test.OctopusLoaderDriver.main(OctopusLoaderDriver.java:47)
Caused by: org.webdocwf.util.loader.LoaderException: Exception:
        at
org.webdocwf.util.loader.ConfigReader.readConfigValues(Unknown Source)
        ... 2 more
Caused by: java.lang.NullPointerException
        ... 3 more
java.lang.Throwable
        at
org.webdocwf.util.loader.LoaderException.printStackTrace(Unknown Source)
        at
org.webdocwf.util.loader.LoaderException.getStackTraceAsString(Unknown
Source)
        at org.webdocwf.util.loader.Loader.load(Unknown Source)
        at
octopus.test.OctopusLoaderDriver.main(OctopusLoaderDriver.java:47)


org.webdocwf.util.loader.LoaderException: Exception:
        at org.webdocwf.util.loader.Loader.load(Unknown Source)
        at
octopus.test.OctopusLoaderDriver.main(OctopusLoaderDriver.java:47)
Caused by: org.webdocwf.util.loader.LoaderException: Exception:
        at
org.webdocwf.util.loader.ConfigReader.readConfigValues(Unknown Source)
        ... 2 more
Caused by: java.lang.NullPointerException
        ... 3 more
java.lang.Throwable
        at
org.webdocwf.util.loader.LoaderException.printStackTrace(Unknown Source)
        at java.lang.Throwable.printStackTrace(Unknown Source)
        at
org.webdocwf.util.loader.LoaderException.printStackTrace(Unknown Source)
        at
octopus.test.OctopusLoaderDriver.main(OctopusLoaderDriver.java:50)
java.lang.Throwable
        at
org.webdocwf.util.loader.LoaderException.printStackTrace(Unknown Source)
        at
octopus.test.OctopusLoaderDriver.main(OctopusLoaderDriver.java:50)




--
You receive this message as a subscriber of the octopus@... mailing list.
To unsubscribe: mailto:octopus-unsubscribe@...
For general help: mailto:sympa@...?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws