# Asterisk DataBase Java API

**URL:** <https://community.asterisk.org/t/asterisk-database-java-api/39125>\
**Category:** Asterisk General\
**Created:** [May 4, 2012, 11:55am UTC](https://community.asterisk.org/t/asterisk-database-java-api/39125 "2012-05-04T11:55:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/asterisk/original/2X/4/475d0c889911cfb84ac4881ad6df8b523e3f9105.png) [@system](https://community.asterisk.org/u/system)\
**Post date:** [May 4, 2012, 11:55am UTC](https://community.asterisk.org/t/asterisk-database-java-api/39125/1 "2012-05-04T11:55:46Z")

</div>

I have a problem in Java Asterisk API with Asterisk DataBase

I tried to use “database show” command in Asterisk CLI. Afterward I have following message like  
…  
/test/count : 1  
…

In this case, If I understood correctly.  
“test” is family name  
"count" is key  
and “1” is value.  
(Please correct me if I am wrong)

Afterward.

I am trying to read this record in Asterisk DB via Asterisk Java API  
with this function

```auto

```

on the

```auto

```

function  
I am trying to use

```auto

```

I am thinking I am supposed to get value from the instance of “dbResponse.getVal()”;

But in this case I have a “null” in “dbResponse.getVal()”;

If someone have idea what is the matter.

I did test on both Asterisk 1.4 and Asterisk 1.6. And my Asterisk Java lib is downloaded from [blogs.reucon.com/asterisk-java/](https://blogs.reucon.com/asterisk-java/) with the version of 1.0.0.CI-SNAPSHOT

Thanks for your help
