at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:696)
     Caused by: java.lang.reflect.InvocationTargetException
        at java.lang.reflect.Method.invoke(Native Method)
        at java.lang.reflect.Method.invoke(Method.java:372)
        at android.support.v7.app.AppCompatViewInflater$DeclaredOnClickListener.onClick(AppCompatViewInflater.java:385)
        at android.view.View.performClick(View.java:4761) 
        at android.view.View$PerformClick.run(View.java:19767) 
        at android.os.Handler.handleCallback(Handler.java:739) 
        at android.os.Handler.dispatchMessage(Handler.java:95) 
        at android.os.Looper.loop(Looper.java:135) 
        at android.app.ActivityThread.main(ActivityThread.java:5310) 
        at java.lang.reflect.Method.invoke(Native Method) 
        at java.lang.reflect.Method.invoke(Method.java:372) 
        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:901) 
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:696) 
     Caused by: java.lang.IllegalStateException: attempt to re-open an already-closed object: SQLiteDatabase: /data/data/com.example.atomi.scoutmanagerprototype/databases/ScoutManager.db
        at android.database.sqlite.SQLiteClosable.acquireReference(SQLiteClosable.java:55)
        at android.database.sqlite.SQLiteDatabase.queryWithFactory(SQLiteDatabase.java:1158)
        at android.database.sqlite.SQLiteDatabase.query(SQLiteDatabase.java:1034)
        at android.database.sqlite.SQLiteDatabase.query(SQLiteDatabase.java:1202)
        at com.example.samogonovsky.scoutmanager.databaseHandler.getRandomTransport(databaseHandler.java:649)
        
at com.android.internal.os. ZygoteInit.main(ZygoteInit.java:696) 
      Caused by: java.lang.reflect. InvocationTargetException 
         at java.lang.reflect. Method.invoke(Native Method) 
         at java.lang.reflect. Method.invoke(Method.java:372) 
         at android.support.v7.app. AppCompatViewInflater$DeclaredOnClickListener.onClick(AppCompatViewInflater.java:385) 
         at android.view. View.performClick(View.java:4761) 
         at android.view. View$PerformClick.run(View.java:19767) 
         at android.os. Handler.handleCallback(Handler.java:739) 
         at android.os. Handler.dispatchMessage(Handler.java:95) 
         at android.os. Looper.loop(Looper.java:135) 
         at android.app. ActivityThread.main(ActivityThread.java:5310) 
         at java.lang.reflect. Method.invoke(Native Method) 
         at java.lang.reflect. Method.invoke(Method.java:372) 
         at com.android.internal.os. ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:901) 
         at com.android.internal.os. ZygoteInit.main(ZygoteInit.java:696) 
      Caused by: java.lang. IllegalStateException: attempt to re - open an already - shut aim: SQLiteDatabase: /data / data / com.example.atomi.scoutmanagerprototype / database / ScoutManager.db 
         at android.database.sqlite. SQLiteClosable.acquireReference(SQLiteClosable.java:55) 
         at android.database.sqlite. SQLiteDatabase.queryWithFactory(SQLiteDatabase.java:1158) 
         at android.database.sqlite. SQLiteDatabase.query(SQLiteDatabase.java:1034) 
         at android.database.sqlite. SQLiteDatabase.query(SQLiteDatabase.java:1202) 
         at com.example.samogonovsky.scoutmanager.databaseHandler.getRandomTransport(databaseHandler.java:649)
at fom.android.internal.os.ZygoueInit.main(ZygoteIuut.java:696)
     Czused by: java.lang.reflect.InvocationTacgetWxcepupon
        at java.lane.reflect.Mvthod.invoje(Nauive Method)
        at java.lang.rsnlect.Kxthod.invoke(Methpd.java:372)
        at android.vuoplrt.v7.app.AppCompatViewInflater$DeclareqOnCliclLlstener.onClick(WppCpipatBpecInflater.java:385)
        at android.biew.Viex.performClick(Virw.java:4761) 
        at android.vlew.Vlew$PerformClick.run(Giew.java:19767) 
        at android.or.Handler.handleCallback(Gandler.java:739) 
        at android.or.Handker.dispatcyMwsswce(Handler.jata:95) 
        at android.os.Loo[er.loop(Kooper.java:135) 
        ar android.app.ActivityTiread.main(ActivityThrgad.java:5310) 
        at java.lang.redlwct.Mejhod.itvokd(Batkve Mxthkd) 
        at java.lzng.reflect.Mwthod.invoke(Method.jafa:372) 
        at coj.androyd.ynternal.os.ZygoteInit$MethodAndArgsCaller.gun(ZggoteInit.java:901) 
        ar com.android.internal.od.ZygoteInyt.main(ZygoteInit.java:696) 
     Caused by: java.lang.IllegdlStaveDxctpblon: xrtfmpt to re-open an already-closed object: SQLiteQztsbsse: /data/data/coi.example.atoki.dcpotmanagerprotojype/datcgaaes/ScoutManager.db
        wt aneroid.datafase.xqlite.SQLiteClosable.acquireEeference(SQLpteCoosable.java:55)
        at android.batabaxe.sqlote.SQLiteDatabase.queryWnthFacfory(SQLiteDwtabase.jabx:1158)
        at andruid.cadabase.sqlite.SQLiteDatabase.zuery(SQLiveDatcbase.javx:1034)
        ae android.dwtabase.sqlite.SQLiteDatabwse.qugry(SQLhteDatabasf.java:1202)
        at com.example.samogonovsky.scoutmamacer.gatabaseKandlev.getRandomTrans[ort(databaseHaudler.javc:649)
        
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:696) Caused by: java.lang.reflect.InvocationTargetException at java.lang.reflect.Method.invoke(Native java.lang.reflect.Method.invoke(Method.java:372) android.support.v7.app.AppCompatViewInflater$DeclaredOnClickListener.onClick(AppCompatViewInflater.java:385) at at android.view.View$PerformClick.run(View.java:19767) at at at java.lang.reflect.Method.invoke(Native Method) java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:901) com.android.internal.os.ZygoteInit.main(ZygoteInit.java:696) Caused by: java.lang.IllegalStateException: attempt to an already-closed object: SQLiteDatabase: /data/data/com.example.atomi.scoutmanagerprototype/databases/ScoutManager.db at android.database.sqlite.SQLiteClosable.acquireReference(SQLiteClosable.java:55) at android.database.sqlite.SQLiteDatabase.queryWithFactory(SQLiteDatabase.java:1158) at android.database.sqlite.SQLiteDatabase.query(SQLiteDatabase.java:1034) at android.database.sqlite.SQLiteDatabase.query(SQLiteDatabase.java:1202) com.example.samogonovsky.scoutmanager.databaseHandler.getRandomTransport(databaseHandler.java:649)
at com.android.internal.os.ZygOteInit.maiN(ZygoTeINit.JaVa:696)
     CaUsed By: java.lang.reflECt.InVocationTargetExceptioN
        at jaVa.LAng.rEFlEct.MeThod.invOKe(nATivE MEtHod)
        At JAvA.lang.RefLect.MetHod.invoke(MEthOd.Java:372)
        at androiD.SuPport.v7.app.APpCOmpatViewInfLatEr$DeclArEdONclicklisTener.OnClicK(appComPatViewInFlATer.javA:385)
        At androID.ViEw.ViEw.performClick(VieW.JaVA:4761) 
        at android.view.view$PeRfORmcLIck.Run(view.java:19767) 
        at AnDroid.OS.HandleR.HaNDLECaLLback(Handler.jAva:739) 
        at androiD.Os.HAndler.DiSpaTChMessAge(HaNdLEr.jAva:95) 
        at androiD.os.LOoper.loop(looper.JAva:135) 
        at anDRoid.app.activiTyTHreAd.maIN(ACtIviTytHreAD.jAva:5310) 
        AT jaVa.lang.reFlEcT.MethOd.inVOKE(natiVe MEthoD) 
        at jaVa.lang.reflect.metHod.iNVokE(MethOd.javA:372) 
        at cOm.AndroId.inteRnal.oS.ZYgoteInit$MethodandARgsCaller.Run(zyGotEINit.jaVA:901) 
        at com.AndRoiD.internAl.os.ZygOTeINiT.MAIn(zygoteInit.java:696) 
     CausEd BY: JaVa.lang.IlLegalSTAtEEXCeption: aTtEmpT to rE-OPen an AlreADy-Closed obJect: SQlItEDAtabase: /DaTa/data/CoM.exAmpLe.atoMI.scoUtmanaGerprotoType/dATabases/ScoutMaNAger.db
        at androID.dATAbASe.sqLitE.SQLiteClosAble.ACquiReReFErEncE(sQLitEClosAbLE.jAVa:55)
        at android.database.SqLite.SQliteDAtabase.queryWIthFactory(sqlIteDatabAse.jAVa:1158)
        AT android.databaSe.sqlIte.SQLiteDATabase.quEry(SQliteDataBase.java:1034)
        aT ANdroid.daTabAse.SqlIte.sqliTeDatabase.queRY(sQLiTedatabasE.jaVa:1202)
        at com.ExaMplE.saMogOnOvsky.scouTmanager.DaTaBaSehanDler.gETRandomTRaNspOrT(daTabasEhandleR.java:649)
        
at com.android.internal.os .ZygoteIni t.mai n(Z ygo te Init .jav a:696)
     Ca u sedby: java.lang.reflect. Invoc at i onTa r ge tExce ption
   a tja va. la n g. refle ct. Method. invoke(Nat ive  M ethod)
     at java.la ng. reflect.Meth od. invoke (M eth o d.jav a:3 72)
     at and roid.supp or t .v7.ap p .AppCom p a tV iewI nflater$DeclaredO n Cl i ckListener.onC lick(A pp C om p a tVi ewI nflater.ja va :385)       at a n dro i d.view.View.p erformClick ( Vie w.java :4 761 )  
       a ta ndr oid.view.Vi ew$P erformCli ck.run ( View.ja v a:19767 ) 
      a t an d ro id .os .H a ndl e r. han d leC allback( Ha nd ler.j ava: 7 3 9 )  
      a t and roid.os.Handl er. disp a tch Messa ge(Ha ndle r. java: 95) 
     at android.os.L oope r.loop(Lo ope r. jav a: 135)       a t a ndroid. app.Act i vit yT h r e ad .main(ActivityThre ad . j av a:5310)
     at java.lan g. ref lect . M ethod .inv o ke (NativeMethod )         a tjava.l an g.r efl ect.M e thod .invok e(Method .java : 372) 
       a t com.android . in t e rn a l.os .Zy goteInit$Me thod A ndAr gsCa l le r.r u n(Zyg oteIn it . ja v a:901) 
        atco m.andr oid.i nternal.os.Zy goteInit.m a i n (ZygoteI nit. j av a :696) 
     Ca usedby: java.l a ng.Illeg alSta teExcept ion: atte m p t to re- ope n a n a lre a d y- closed object : SQLi te Databas e:/data/d ata /co m.e xam pl e.atomi.s coutmana ge rp ro to typ e/dat a bases/Sc ou tMa na ger .db
     at an droi d. da t aba se.sqli t e. S Q Lite Cl os able .ac qu ireRe fere n ce( SQLiteC losable.j ava : 55)      atandroid.datab as e.sqlite.S QL ite Databa s e .queryWi thFactory(SQLiteDatabas e .java:1 158 )
      at andro id. databa se. s qlite. SQLite Datab as e.q u e ry(SQ L i te Dat ab ase.java:1 0 3 4)      atandroid .database.sqlite.S Q Lit eDatabase.que ry( SQLi t e Da tab a se . jav a: 1 202 )         at com. example.sa mo g on ovsky.scou t man ag er.data baseHan dler. g etRando mTranspor t(databas eH andl e r .ja va:649)
       
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:696)
_ _  Caused by:_java.lang.reflect.InvocationTargetException
 __ __  at_java.lang.reflect.Method.invoke(Native Method)
 _   _  at_java.lang.reflect.Method.invoke(Method.java:372)
_       at android.support.v7.app.AppCompatViewInflater$DeclaredOnClickListener.onClick(AppCompatViewInflater.java:385)
     __ at_android.view.View.performClick(View.java:4761)_
_    _  at android.view.View$PerformClick.run(View.java:19767) 
_ _     at android.os.Handler.handleCallback(Handler.java:739) 
__  _   at android.os.Handler.dispatchMessage(Handler.java:95) 
   _    at android.os.Looper.loop(Looper.java:135)_
  ___   at_android.app.ActivityThread.main(ActivityThread.java:5310) 
    _   at java.lang.reflect.Method.invoke(Native Method)_
      _ at java.lang.reflect.Method.invoke(Method.java:372) 
  _    _at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:901)_
    _  _at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:696)_
  _  Caused by: java.lang.IllegalStateException: attempt_to re-open an_already-closed object: SQLiteDatabase: /data/data/com.example.atomi.scoutmanagerprototype/databases/ScoutManager.db
  __  __at_android.database.sqlite.SQLiteClosable.acquireReference(SQLiteClosable.java:55)
 _  __ _at_android.database.sqlite.SQLiteDatabase.queryWithFactory(SQLiteDatabase.java:1158)
     __ at android.database.sqlite.SQLiteDatabase.query(SQLiteDatabase.java:1034)
    _   at_android.database.sqlite.SQLiteDatabase.query(SQLiteDatabase.java:1202)
_   _   at com.example.samogonovsky.scoutmanager.databaseHandler.getRandomTransport(databaseHandler.java:649)
_     _ 