Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Unable to connect to database error

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Unable to connect to database error

    Hi,

    Ninja would not start today showing "unable to connect to database 'Provider=Microsoft.Jet.OLEDB.4.0 etc...

    Please let me know what I can do, everything was working fine for last couple of months until today.

    Here is the copy of the trace file:

    2008-04-16 21:01:14:406 ******************* Session Start (Version 6.5.1000.1) *******************
    2008-04-16 21:01:14:421 Attaching global exception handlers...
    2008-04-16 21:01:14:421 Creating file type watcher...
    2008-04-16 21:01:17:046 Cbi.Globals.MachineId: True/True
    2008-04-16 21:01:17:046 MachineId='4E028EEE66C12670383EA012296A14A5'
    2008-04-16 21:01:17:046 OS='Microsoft Windows NT 5.1.2600 Service Pack 2'
    2008-04-16 21:01:17:046 ProcessorCount='2'
    2008-04-16 21:01:17:046 .NET Version='2.0.50727.1433'
    2008-04-16 21:01:17:046 Processor=' Intel(R) Pentium(R) 4 CPU 3.20GHz'
    2008-04-16 21:01:17:046 PhysicalMemory=3072 MB
    2008-04-16 21:01:17:046 Timezone=EST +0 hour(s)
    2008-04-16 21:01:17:046 Retrieving license...
    2008-04-16 21:01:17:078 Cbi.Licence.Download5
    2008-04-16 21:01:20:984 Cbi.Licence.ProcessLicense13
    2008-04-16 21:01:21:000 Cbi.Licence.Download99: 'Type=Regular State=Verified StartDate=2/21/2008 EndDate=12/30/2099 Collective2 Dtn ESignal External OpenTick Replay Simulator Yahoo Gain Hosted AutomatedTrading AdvancedStrategyManagement BasicEntry Charting LiveTrading SuperDom DataConnection SystemDevelopment'
    2008-04-16 21:01:21:000 Starting splash...
    2008-04-16 21:01:21:109 Copying custom DLLs...
    2008-04-16 21:01:21:109 Running Cbi.Globals.Install()...
    2008-04-16 21:01:21:125 WARNING: Session Break (Version 6.5.1000.1)
    2008-04-16 21:01:21:156 Loading server side config file...
    2008-04-16 21:01:25:968 Clearing C:\Documents and Settings\A&W\My Documents\NinjaTrader 6.5\bin\Custom\Tmp...
    2008-04-16 21:01:25:968 Loading C:\Documents and Settings\A&W\My Documents\NinjaTrader 6.5\bin\Custom\NinjaTrader.Custom.dll...
    2008-04-16 21:01:26:015 Loading C:\Documents and Settings\A&W\My Documents\NinjaTrader 6.5\bin\Custom\NinjaTrader.Vendor.dll...
    2008-04-16 21:01:26:031 Creating user defined methods files...
    2008-04-16 21:01:26:031 Instantiating serializers...
    2008-04-16 21:01:30:140 Registering chart styles...
    2008-04-16 21:01:30:375 Registering bars types...
    2008-04-16 21:14:54:531 ---- DEBUG ASSERTION FAILED ----
    ---- Assert Short Message ----
    Db.Globals.Engine1
    ---- Assert Long Message ----

    at Globals.get_Engine()
    at Globals.ApplicationStart()
    at ControlCenterForm.Application_Idle(Object sender, EventArgs e)
    at ThreadContext.System.Windows.Forms.UnsafeNativeMet hods.IMsoComponent.FDoIdle(Int32 grfidlef)
    at ComponentManager.System.Windows.Forms.UnsafeNative Methods.IMsoComponentManager.FPushMessageLoop(Int3 2 dwComponentID, Int32 reason, Int32 pvLoopData)
    at ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
    at ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
    at Application.Run()
    at NTMain.Main()
    2008-04-16 21:15:08:765 Loading master instruments...
    2008-04-16 21:21:48:046 ---- DEBUG ASSERTION FAILED ----
    ---- Assert Short Message ----
    Db.Globals.Engine1
    ---- Assert Long Message ----

    at Globals.get_Engine()
    at MasterInstrument.GetObjects()
    at Globals.ApplicationStart()
    at ControlCenterForm.Application_Idle(Object sender, EventArgs e)
    at ThreadContext.System.Windows.Forms.UnsafeNativeMet hods.IMsoComponent.FDoIdle(Int32 grfidlef)
    at ComponentManager.System.Windows.Forms.UnsafeNative Methods.IMsoComponentManager.FPushMessageLoop(Int3 2 dwComponentID, Int32 reason, Int32 pvLoopData)
    at ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
    at ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
    at Application.Run()
    at NTMain.Main()
    2008-04-16 21:24:19:968 in OnUnhandledApplicationException
    2008-04-16 21:24:19:968 ********* exception trapped *********
    2008-04-16 21:24:19:968 Object reference not set to an instance of an object.
    2008-04-16 21:24:19:968 System.NullReferenceException: Object reference not set to an instance of an object.
    at NinjaTrader.Cbi.MasterInstrument.GetObjects()
    at NinjaTrader.Gui.Globals.ApplicationStart()
    at NinjaTrader.Gui.ControlCenterForm.Application_Idle (Object sender, EventArgs e)
    at System.Windows.Forms.Application.ThreadContext.Sys tem.Windows.Forms.UnsafeNativeMethods.IMsoComponen t.FDoIdle(Int32 grfidlef)
    at System.Windows.Forms.Application.ComponentManager. System.Windows.Forms.UnsafeNativeMethods.IMsoCompo nentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
    at System.Windows.Forms.Application.ThreadContext.Run MessageLoopInner(Int32 reason, ApplicationContext context)
    at System.Windows.Forms.Application.ThreadContext.Run MessageLoop(Int32 reason, ApplicationContext context)
    at System.Windows.Forms.Application.Run()
    at NinjaTrader.NTMain.Main()
    2008-04-16 21:33:43:390 ******************* Session Start (Version 6.5.1000.1) *******************
    2008-04-16 21:33:43:390 Attaching global exception handlers...
    2008-04-16 21:33:43:390 Creating file type watcher...
    2008-04-16 21:33:46:390 Cbi.Globals.MachineId: True/True
    2008-04-16 21:33:46:390 MachineId='4E028EEE66C12670383EA012296A14A5'
    2008-04-16 21:33:46:390 OS='Microsoft Windows NT 5.1.2600 Service Pack 2'
    2008-04-16 21:33:46:390 ProcessorCount='2'
    2008-04-16 21:33:46:390 .NET Version='2.0.50727.1433'
    2008-04-16 21:33:46:390 Processor=' Intel(R) Pentium(R) 4 CPU 3.20GHz'
    2008-04-16 21:33:46:390 PhysicalMemory=3072 MB
    2008-04-16 21:33:46:390 Timezone=EST +0 hour(s)
    2008-04-16 21:33:46:390 Retrieving license...
    2008-04-16 21:33:46:421 Cbi.Licence.Download5
    2008-04-16 21:33:51:546 Cbi.Licence.Download6: The operation has timed out
    2008-04-16 21:33:56:562 Cbi.Licence.Download7: The operation has timed out
    2008-04-16 21:33:56:578 Cbi.Licence.Handle404-0
    2008-04-16 21:33:56:578 Cbi.Licence.Handle404-9
    2008-04-16 21:33:56:578 Cbi.Licence.Download8
    2008-04-16 21:33:56:578 Cbi.Licence.Download82
    2008-04-16 21:33:56:578 ERROR: Failed to verify license. Please try again in a few minutes.
    2008-04-16 21:34:00:406 Cbi.Licence.Download99: 'Type=SimulationOnly State=Verified StartDate=1/1/0001 EndDate=12/1/2099 Collective2 Dtn ESignal External OpenTick Replay Simulator Yahoo AdvancedStrategyManagement AutomatedTrading BasicEntry Charting SuperDom'
    2008-04-16 21:34:00:406 Starting splash...
    2008-04-16 21:34:00:531 Copying custom DLLs...
    2008-04-16 21:34:00:531 Running Cbi.Globals.Install()...
    2008-04-16 21:34:00:546 WARNING: Session Break (Version 6.5.1000.1)
    2008-04-16 21:34:00:546 Loading server side config file...
    2008-04-16 21:34:10:593 WARNING: Unable to load server side config file: The operation has timed out
    2008-04-16 21:34:10:593 Clearing C:\Documents and Settings\A&W\My Documents\NinjaTrader 6.5\bin\Custom\Tmp...
    2008-04-16 21:34:10:593 Loading C:\Documents and Settings\A&W\My Documents\NinjaTrader 6.5\bin\Custom\NinjaTrader.Custom.dll...
    2008-04-16 21:34:10:625 Loading C:\Documents and Settings\A&W\My Documents\NinjaTrader 6.5\bin\Custom\NinjaTrader.Vendor.dll...
    2008-04-16 21:34:10:625 Creating user defined methods files...
    2008-04-16 21:34:10:625 Instantiating serializers...
    2008-04-16 21:34:14:234 Registering chart styles...
    2008-04-16 21:34:14:453 Registering bars types...

    #2
    You DB file appears to be corrupted. Please try deleting the database file <my documents>/NinjaTradre6.5/db/NinjaTrader.mdb.

    Note: You will loose al your historical trade and chart data.

    Comment


      #3
      Thanks, I already did it yesterday and reinstalled NinjaTrader several times. Still the same message.

      Comment


        #4
        Never mind, it is working this morning. Crazy computers. Unfortunately I have troubles importing my old workspaces and strategies. Workspaces open but the chart settings are wrong. Where are strategies stored?

        Comment


          #5
          Originally posted by veetek View Post
          Never mind, it is working this morning. Crazy computers. Unfortunately I have troubles importing my old workspaces and strategies. Workspaces open but the chart settings are wrong. Where are strategies stored?
          Hello,

          Are you looking for ATM strategies or NinjaScript strategies?

          Comment


            #6
            ATM strategies, I can design them again, not a big deal, I am not sure if I have backed it up.

            Comment


              #7
              Yes, you will have to recreate them if they were not backed up before you droped the database.
              JessicaNinjaTrader Customer Service

              Comment


                #8
                Ninjatrader db access error

                Hi,


                I just installed the NinjaTrader Version 6.5.1000.14, when launching the Ninjatrader, it pop up a message box showing the error accessing the accesss database due to the MS JET version is not 6.0.

                But when i try to run the MDAC Type 2.6 and 2.7 installation, it ran through smoothly but doesn't solve the issue.

                If i to run the windowsxp-kb829558-x86-enu.exe downloaded from http://support.microsoft.com/kb/239114/, it gives me a message box saying that i've JET even newer and not necessary to update.

                I checked my msjet40.dll the version is 4.0.9511.0 Windows XP SP3 and Security Bulletin MS08-028. When i run microsoft component checker, it said i use mdac 2.8 SP1 on WinXP SP3. (see attached image)

                I also have tried to uninstalled Ninjatrader and install with Version 6.5.1000.13, but facing the same problem.

                I'm using the .NET Framework 3.5 on Win XP Home.

                I emailed to NinjaTrader support and eventually what i got is to restore until my WinXP can work with NinjaTrader, there's no better than asking me to format my whole machine to work with the platform.

                It seems that there's some problem with the JET Engine? It's really give me a headache. Does any experts here know the solution to the problem and many thanks in advance.

                regards,
                derek
                Attached Files
                Last edited by cfchai; 12-15-2009, 05:18 AM.

                Comment


                  #9
                  Hello Derek,

                  I am not sure if you tried renaming the current database already. If not, please try it. While NinjaTrader is closed please go to (My) Documents-->NinjaTrader 6.5-->db.

                  Rename the NinjaTrader.mdb file different.

                  Start NinjaTrader and check if the error persists when a brand new database will be used.

                  Do you perhaps have another PC you can install NinjaTrader?
                  JasonNinjaTrader Customer Service

                  Comment


                    #10
                    Hi Jason,

                    Thanks for the instruction, your colleague asked me to do so in the email before. It does create a new db file. But the same problem still arise.

                    Thanks anyway.

                    regards,
                    derek

                    Comment


                      #11
                      Hi Jason,

                      Eventually it's confirmed that the issue is due to the MDAC file corrupted, a repair to the MDAC is necessary and i've recorded this steps on my blog below.

                      NinjaTrader db Access Error and MDAC Repair on WinXP SP3

                      Thank you very much for your support.

                      regards,
                      derek

                      Comment

                      Latest Posts

                      Collapse

                      Topics Statistics Last Post
                      Started by Christopher_R, Today, 12:29 AM
                      0 responses
                      10 views
                      0 likes
                      Last Post Christopher_R  
                      Started by sidlercom80, 10-28-2023, 08:49 AM
                      166 responses
                      2,235 views
                      0 likes
                      Last Post sidlercom80  
                      Started by thread, Yesterday, 11:58 PM
                      0 responses
                      3 views
                      0 likes
                      Last Post thread
                      by thread
                       
                      Started by jclose, Yesterday, 09:37 PM
                      0 responses
                      8 views
                      0 likes
                      Last Post jclose
                      by jclose
                       
                      Started by WeyldFalcon, 08-07-2020, 06:13 AM
                      10 responses
                      1,415 views
                      0 likes
                      Last Post Traderontheroad  
                      Working...
                      X