apex-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chiranjeevi vasupilli <chiru....@gmail.com>
Subject Re: DB connection getting lost
Date Mon, 17 Apr 2017 08:52:45 GMT
We have utility class from where we are connecting to DB
using com.datatorrent.lib.db.jdbc.JdbcStore.

On Mon, Apr 17, 2017 at 1:50 PM, Priyanka Gugale <priyag@apache.org> wrote:

> Have you written any custom operator or you are using JdbcInputOperator
> from Malhar?
>
> -Priyanka
>
> On Mon, Apr 17, 2017 at 1:27 PM, chiranjeevi vasupilli <
> chiru.vcj@gmail.com> wrote:
>
>> Hi Priyanka,
>>
>> In logs we can see NullPointer exception while preparing createStatment .
>>
>> I have verified after calling connect() method of JdbcStore, i have
>> called store.getConnection to print the connection object. But when i use
>> the connection to prepare the createStatment we are getting NullPointer
>> exception.
>>
>> We are not sure , why it is becoming null or we received any dead
>> connection.
>>
>> Please suggest.
>>
>> Thanks
>> Chiranjeevi V
>>
>> On Mon, Apr 17, 2017 at 12:19 PM, Priyanka Gugale <priyag@apache.org>
>> wrote:
>>
>>> Do you see any exceptions in your log file? If yes please share.
>>> Also you mentioned "connection getting established" - how do you verify
>>> that?
>>>
>>> -Priyanka
>>>
>>> On Thu, Apr 13, 2017 at 3:17 PM, chiranjeevi vasupilli <
>>> chiru.vcj@gmail.com> wrote:
>>>
>>>> Hi Team,
>>>>
>>>> In my use case , im using JdbcStore from Malhar lib to get oracle
>>>> connection . But im getting some strange behavior. Connection getting
>>>> established and when i call *store.getConnection* it is returning
>>>> null. Due to this the containers getting killed in my App.
>>>>
>>>> The established connection became dead and unable query, Please suggest
>>>> how to handle such scenario.
>>>>
>>>> Thanks
>>>> Chiranjeevi V
>>>>
>>>>
>>>>
>>>
>>
>>
>> --
>> ur's
>> chiru
>>
>
>


-- 
ur's
chiru

Mime
View raw message