Can you make sure you have called connect first before createStatement. Also if possible please share code where you do make connection and create statement in operator.
-Priyanka On Mon, Apr 17, 2017 at 2:22 PM, chiranjeevi vasupilli <chiru....@gmail.com> wrote: > 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 <pri...@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....@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 <pri...@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....@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 >