Issue with DBConnection class while using AnalyseDB class

I think there’s an issue with DBConnection class since 2.4.0 release when we use AnalyseDB class.

Indeed when doAnalyze(config) method is called :

in 2.3.4 release in the contructor of DBConnection :

this.config = configProperties;

in 2.4.0 and late release in the contructor of DBConnection :


loadProperties(configProperties);


private void loadProperties(Properties configProperties) {
    PropertyRefResolver resolver = new PropertyRefResolver(getGraph());
    ...
    ...     
}

The problem is that getGraph() always return “null” so it doesn’t work.

I can’t generate new metadata file now.

Can you watch for this issue ?

Thanks.

Hello,
problem is that CloverETL engine is not initialized. I’ll add initialization to the next version. If you use AnalyzeDB class in your java program you can add


EngineInitializer.initEngine(null, null, null);

before calling the main method.
Fixed version is available in SVN and will be in nearest patch.

OK thanks. It’s works.

Waiting for patch release …