# Issue with DBConnection class while using AnalyseDB class

**URL:** <https://forum.cloverdx.com/t/issue-with-dbconnection-class-while-using-analysedb-class/294>\
**Category:** CloverDX Platform\
**Created:** [March 21, 2008, 12:00am UTC](https://forum.cloverdx.com/t/issue-with-dbconnection-class-while-using-analysedb-class/294 "2008-03-21T00:00:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![maxani](https://avatars.discourse-cdn.com/v4/letter/m/c67d28/32.png) [@maxani](https://forum.cloverdx.com/u/maxani)\
**Post date:** [March 21, 2008, 12:00am UTC](https://forum.cloverdx.com/t/issue-with-dbconnection-class-while-using-analysedb-class/294/1 "2008-03-21T00:00:00Z")

</div>

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 :

```auto
this.config = configProperties;

```

in 2.4.0 and late release in the contructor of DBConnection :

```auto

loadProperties(configProperties);

```

```auto

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.

---

<div class="post-metadata">

**Author:** ![avackova](https://avatars.discourse-cdn.com/v4/letter/a/65b543/32.png) [@avackova](https://forum.cloverdx.com/u/avackova)\
**Post date:** [March 25, 2008, 8:47am UTC](https://forum.cloverdx.com/t/issue-with-dbconnection-class-while-using-analysedb-class/294/2 "2008-03-25T08:47:47Z")

</div>

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

```auto

EngineInitializer.initEngine(null, null, null);

```

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

---

<div class="post-metadata">

**Author:** ![maxani](https://avatars.discourse-cdn.com/v4/letter/m/c67d28/32.png) [@maxani](https://forum.cloverdx.com/u/maxani)\
**Post date:** [March 25, 2008, 1:45pm UTC](https://forum.cloverdx.com/t/issue-with-dbconnection-class-while-using-analysedb-class/294/3 "2008-03-25T13:45:05Z")

</div>

OK thanks. It’s works.

Waiting for patch release …
