Announcement

Collapse
No announcement yet.

Null object reference error in Startup Log

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

    #16
    Let me add a few more lines of log entries to have more info. Will get to it this weekend.
    --
    Jeff Farmer
    HS 3, HSPhone
    My HS3 Plugins: CFHSExtras, Random, Restart, Tracker, WeatherXML, PanaBluRay
    Other Plugins In Use: APCUPSD, BLOnkyo, Device History, EasyTrigger, HSTouch Server, PHLocation2, Pushover, RFXCom, UltraGCIR3, UltraMon3, UltraPioneerAVR3, X10, Z-Wave

    Hardware: GoControl Irrigation Controler, Schlage Lever Lock, Schlage Deadbolt, Way2Call Hi-Phone, RFXCom RFXrec433 Receiver, WGL 800, TI-103, Z-Net, Pioneer 1120, Pioneer 1021, Pioneer LX302, Panasonic BDT-110, Panasonic BDT-210 x2

    Comment


      #17
      This has been a very busy week. I did get some extra log entries added but didn't get the file packed up for the updater. Will try to do so this Saturday.
      --
      Jeff Farmer
      HS 3, HSPhone
      My HS3 Plugins: CFHSExtras, Random, Restart, Tracker, WeatherXML, PanaBluRay
      Other Plugins In Use: APCUPSD, BLOnkyo, Device History, EasyTrigger, HSTouch Server, PHLocation2, Pushover, RFXCom, UltraGCIR3, UltraMon3, UltraPioneerAVR3, X10, Z-Wave

      Hardware: GoControl Irrigation Controler, Schlage Lever Lock, Schlage Deadbolt, Way2Call Hi-Phone, RFXCom RFXrec433 Receiver, WGL 800, TI-103, Z-Net, Pioneer 1120, Pioneer 1021, Pioneer LX302, Panasonic BDT-110, Panasonic BDT-210 x2

      Comment


        #18
        No hurry. It's that time of year

        I understand about busy. At least we have snow here. I got the same error with Mark Sandler's Insteon plugin. I haven't gotten reply from him yet.

        Comment


          #19
          Null reference

          The plugins have been behaving themselves lately. No errors since before Christmas. Today I received a null reference error:

          1/4/2018 3:04:05 PM ~!~Z-Wave~!~Z-Net Z-Wave: Getting node information from controller...
          1/4/2018 3:04:05 PM ~!~Z-Wave~!~Device: <font color='#000080'>Main Floor Living Room North Lamp Amperes</font> Set to <font color='#008000'>0.368 (0.368 Amperes)</font>
          1/4/2018 3:04:06 PM ~!~Error~!~Initializing plug-in(2): Restart Instance::Object reference not set to an instance of an object.STACK:Server stack trace: Exception rethrown at [0]: at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessag e(IMessage reqMsg, IMessage retMsg) at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(Mess ageData& msgData, Int32 type) at HomeSeerAPI.IPlugInAPI.InitIO(String port) at Scheduler.clsHSPI.CheckInterfaces()
          1/4/2018 3:04:06 PM ~!~Plug-In~!~Finished initializing plug-in Restart
          1/4/2018 3:04:06 PM ~!~Z-Wave~!~Device: <font color='#000080'>Main Floor Living Room North Lamp Watts</font> Set to <font color='#008000'>43.655 (43.655 Watts)</font>
          1/4/2018 3:04:06 PM ~!~HSTouch Server~!~Server started on port 10200


          Any luck getting the additional diagnostics into Restart? Don't know why the first set of diagnostics didn't show this time.

          Comment


            #20
            We had a death in the family the week before Christmas. I have not been at the forums much the past couple of weeks. I am finally getting past the "I don't care about doing anything" mood. I'll be more active later this week.
            --
            Jeff Farmer
            HS 3, HSPhone
            My HS3 Plugins: CFHSExtras, Random, Restart, Tracker, WeatherXML, PanaBluRay
            Other Plugins In Use: APCUPSD, BLOnkyo, Device History, EasyTrigger, HSTouch Server, PHLocation2, Pushover, RFXCom, UltraGCIR3, UltraMon3, UltraPioneerAVR3, X10, Z-Wave

            Hardware: GoControl Irrigation Controler, Schlage Lever Lock, Schlage Deadbolt, Way2Call Hi-Phone, RFXCom RFXrec433 Receiver, WGL 800, TI-103, Z-Net, Pioneer 1120, Pioneer 1021, Pioneer LX302, Panasonic BDT-110, Panasonic BDT-210 x2

            Comment


              #21
              Take your time.

              I understand the state you are in. I lost my sister last year and it took me quite a while to get over it, and that wasn't around Christmas which makes it much more difficult. This can wait. Take care of yourself.

              Comment


                #22
                Version 1.0.0.7 is now in the updater.
                When a plugin starts HS calls a function called InitIO.
                The very first line in the Restart InitIO is:

                hs.WriteLog(IFACE_NAME, "Get the list of plugins")

                If it doesn't add this to the log then it is never even getting into the plugin which if it was an issue with the plugin it would happen every time.
                Last edited by CFGuy; January 16, 2018, 09:21 PM.
                --
                Jeff Farmer
                HS 3, HSPhone
                My HS3 Plugins: CFHSExtras, Random, Restart, Tracker, WeatherXML, PanaBluRay
                Other Plugins In Use: APCUPSD, BLOnkyo, Device History, EasyTrigger, HSTouch Server, PHLocation2, Pushover, RFXCom, UltraGCIR3, UltraMon3, UltraPioneerAVR3, X10, Z-Wave

                Hardware: GoControl Irrigation Controler, Schlage Lever Lock, Schlage Deadbolt, Way2Call Hi-Phone, RFXCom RFXrec433 Receiver, WGL 800, TI-103, Z-Net, Pioneer 1120, Pioneer 1021, Pioneer LX302, Panasonic BDT-110, Panasonic BDT-210 x2

                Comment


                  #23
                  Thanks! I have installed it. Now to wait for the error to happen again. It hasn't happened in a while now.

                  Comment


                    #24
                    All quiet for a while until a couple of days ago. Can you tell how far it got into the Restart Plugin?

                    1/24/2018 3:06:35 PM ~!~Startup~!~Settings Loaded.
                    1/24/2018 3:06:35 PM ~!~Startup~!~
                    1/24/2018 3:06:35 PM ~!~Startup~!~*********************************************** *********************************
                    1/24/2018 3:06:35 PM ~!~Startup~!~ HomeSeer version 3.0.0.357 Edition: HS3 Standard Starting Now
                    1/24/2018 3:06:35 PM ~!~Startup~!~*********************************************** *********************************
                    1/24/2018 3:06:35 PM ~!~Startup~!~
                    1/24/2018 3:06:36 PM ~!~Startup~!~Creating Class Objects...
                    1/24/2018 3:06:36 PM ~!~Startup~!~COM port classes started.
                    1/24/2018 3:06:37 PM ~!~Startup~!~Application interface class started.
                    1/24/2018 3:06:37 PM ~!~Startup~!~Web server class started.
                    1/24/2018 3:06:37 PM ~!~Startup~!~E-Mail SEND class started.
                    1/24/2018 3:06:37 PM ~!~Startup~!~E-Mail RECEIVE class started.
                    1/24/2018 3:06:38 PM ~!~Startup~!~Plug-In Interface class started.
                    1/24/2018 3:06:38 PM ~!~Startup~!~HSPhone external interface class started.
                    1/24/2018 3:06:38 PM ~!~Startup~!~Local voice recognition class started.
                    1/24/2018 3:06:39 PM ~!~Startup~!~Database SAVE process started.
                    1/24/2018 3:06:39 PM ~!~Startup~!~Loading configuration file ...
                    1/24/2018 3:06:39 PM ~!~Database~!~Opening (Mode=Read Only) up HomeSeer database C:\Program Files\HomeSeer HS3\Data\HomeSeerData.hsd
                    1/24/2018 3:06:41 PM ~!~Database~!~Loading Devices...
                    1/24/2018 3:06:41 PM ~!~Load Config~!~140 total devices loaded.
                    1/24/2018 3:06:41 PM ~!~Load Config~!~Loading Event Groups...
                    1/24/2018 3:06:44 PM ~!~Load Config~!~Loading Events...
                    1/24/2018 3:06:45 PM ~!~Load Config~!~86 total events loaded.
                    1/24/2018 3:06:45 PM ~!~Load Config~!~Loading COUNTERS...
                    1/24/2018 3:06:46 PM ~!~Load Config~!~Loading TIMERS...
                    1/24/2018 3:06:51 PM ~!~Startup~!~HomeSeer version is: 3.0.0.357
                    1/24/2018 3:06:52 PM ~!~Startup~!~Creating Speaker Client Interface Object...
                    1/24/2018 3:06:53 PM ~!~Startup~!~This version of HomeSeer is registered as a HS3STANDARD version.
                    1/24/2018 3:06:59 PM ~!~Info~!~Remote plug-in API interface started on port 10400
                    1/24/2018 3:07:04 PM ~!~Startup~!~Checking for available plug-ins
                    1/24/2018 3:07:18 PM ~!~Plug-In~!~Found plug-in: CM15A, version: 3.0.0.8
                    1/24/2018 3:07:25 PM ~!~Plug-In~!~Found plug-in: Insteon, version: 3.0.6.0
                    1/24/2018 3:07:26 PM ~!~Plug-In~!~Found plug-in: Restart, version: 1.0.0.7
                    1/24/2018 3:07:33 PM ~!~Plug-In~!~Found plug-in: Z-Wave, version: 3.0.1.87
                    1/24/2018 3:07:34 PM ~!~Startup~!~Initializing Plug-Ins
                    1/24/2018 3:07:47 PM ~!~Info~!~Plugin Insteon has connected. IP:127.0.0.1:1717
                    1/24/2018 3:07:49 PM ~!~Insteon~!~Insteon Support library (Insteon.dll) version: 1.0.6.0
                    1/24/2018 3:07:52 PM ~!~Insteon~!~RF PLM contacted on COM4 with an Insteon address of 41.EF.74 and firmware version 9E
                    1/24/2018 3:07:56 PM ~!~Insteon~!~Waiting to initialize External Devices...
                    1/24/2018 3:07:56 PM ~!~Plug-In~!~Finished initializing plug-in Insteon
                    1/24/2018 3:08:00 PM ~!~Info~!~Plugin CM15A has connected. IP:127.0.0.1:1748
                    1/24/2018 3:08:02 PM ~!~Plug-In~!~Finished initializing plug-in CM15A
                    1/24/2018 3:08:10 PM ~!~CM15A~!~Initialization Successful.
                    1/24/2018 3:08:32 PM ~!~Plug-In~!~Finished initializing plug-in Z-Wave
                    1/24/2018 3:08:38 PM ~!~Info~!~Plugin Restart has connected. IP:127.0.0.1:1797
                    1/24/2018 3:08:47 PM ~!~Error~!~Initializing plug-in(2): Restart Instance::Object reference not set to an instance of an object.STACK:Server stack trace: Exception rethrown at [0]: at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessag e(IMessage reqMsg, IMessage retMsg) at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(Mess ageData& msgData, Int32 type) at HomeSeerAPI.IPlugInAPI.InitIO(String port) at Scheduler.clsHSPI.CheckInterfaces()
                    1/24/2018 3:08:47 PM ~!~Info~!~Plugin Z-Wave has connected. IP:127.0.0.1:1795
                    1/24/2018 3:08:48 PM ~!~Z-Wave~!~InitIO called, plug-in version 3.0.1.87 is being initialized...
                    1/24/2018 3:09:11 PM ~!~Z-Wave~!~Database: Opening (Mode=Read Only) up HomeSeer database C:\Program Files\HomeSeer HS3\Data\Z-Wave\Z-Wave2.db
                    1/24/2018 3:09:18 PM ~!~Z-Wave~!~Loading Z-Wave Network Objects...
                    1/24/2018 3:09:18 PM ~!~Z-Wave~!~1 total Z-Wave Network Objects loaded.
                    1/24/2018 3:09:23 PM ~!~Z-Wave~!~Loading Z-Wave Data Objects...
                    1/24/2018 3:09:23 PM ~!~Z-Wave~!~1 Networks were restored from the data in the database... Building data connections.
                    1/24/2018 3:09:23 PM ~!~Z-Wave~!~Network DCA7BC56 has 100 device data elements.
                    1/24/2018 3:09:24 PM ~!~Z-Wave~!~100 total Z-Wave Data Objects loaded.
                    1/24/2018 3:09:36 PM ~!~Plug-In~!~Finished initializing plug-in Restart
                    1/24/2018 3:09:39 PM ~!~HSTouch Server~!~Server started on port 10200
                    1/24/2018 3:09:39 PM ~!~Startup~!~HStouch server started, waiting for clients to connect.
                    1/24/2018 3:09:43 PM ~!~Z-Wave~!~Z-Net Z-Wave: ============================================================ ==========
                    1/24/2018 3:09:43 PM ~!~Z-Wave~!~Z-Net Z-Wave: ----------------------------------------------------------------------
                    1/24/2018 3:09:44 PM ~!~Z-Wave~!~465 Simple AV Control Command Class Control Commands have been loaded successfully.
                    1/24/2018 3:09:44 PM ~!~Z-Wave~!~0 event actions were loaded from HomeSeer.
                    1/24/2018 3:09:44 PM ~!~Z-Wave~!~0 event triggers were loaded from HomeSeer.
                    1/24/2018 3:09:44 PM ~!~Z-Wave~!~Initializing Z-Wave interface Z-Net Z-Wave (HomeSeer Z-NET Ethernet) at 10.0.0.129, port 2001
                    1/24/2018 3:09:44 PM ~!~Z-Wave~!~Z-Net Z-Wave: ----------------------------------------------------------------------
                    1/24/2018 3:09:46 PM ~!~Z-Wave~!~Z-Net Z-Wave: The Z-Wave Command Execution Thread was Started or Restarted.
                    1/24/2018 3:09:47 PM ~!~Z-Wave~!~Z-Net Z-Wave: Z-Wave Ethernet at IP 10.0.0.129, connected to interface ok.
                    1/24/2018 3:09:47 PM ~!~Z-Wave~!~Z-Net Z-Wave: The Z-Wave API Execution Thread was Started or Restarted.
                    1/24/2018 3:09:47 PM ~!~Z-Wave~!~Z-Net Z-Wave: Getting node information from controller...
                    1/24/2018 3:09:47 PM ~!~Z-Wave~!~Z-Net Z-Wave: Controller Manufacturer: Express Controls, ID=0x2, Type=0x5
                    1/24/2018 3:09:47 PM ~!~Z-Wave~!~Z-Net Z-Wave: Controller firmware version: 4.32
                    1/24/2018 3:09:48 PM ~!~Z-Wave~!~Z-Net Z-Wave: Z-Wave services for the SECURITY COMMAND CLASS were successfully started.
                    1/24/2018 3:09:48 PM ~!~Z-Wave~!~Z-Net Z-Wave: Z-Wave Serial API version: 5
                    1/24/2018 3:09:48 PM ~!~Z-Wave~!~Z-Net Z-Wave: Z-Wave interface node ID: 1, Home ID: DCA7BC56
                    1/24/2018 3:09:48 PM ~!~Z-Wave~!~Z-Net Z-Wave: Found 22 Z-Wave nodes in interface node ID 1 (Z-Net Z-Wave)
                    1/24/2018 3:09:48 PM ~!~Z-Wave~!~Z-Net Z-Wave: Z-Wave PC Controller Library Version: Z-Wave 4.05 (ZDK 6.51.6)
                    1/24/2018 3:09:48 PM ~!~Z-Wave~!~Z-Net Z-Wave: Z-Wave PC Controller is Type: Static Controller
                    1/24/2018 3:09:48 PM ~!~Z-Wave~!~The interface's security support has been set.
                    1/24/2018 3:09:48 PM ~!~Z-Wave~!~Z-Net Z-Wave Controller chip type is ZW050x.
                    1/24/2018 3:09:48 PM ~!~Web Server~!~Local IP address (subnet) is: 10.0.0.32 (255.255.255.0)
                    1/24/2018 3:09:48 PM ~!~Z-Wave~!~Z-Net Z-Wave Controller is static lib.
                    1/24/2018 3:09:48 PM ~!~Z-Wave~!~Z-Net Z-Wave There is a SUC/SIS in the network.
                    1/24/2018 3:09:48 PM ~!~Z-Wave~!~Z-Net Z-Wave is the SIS for the network.
                    1/24/2018 3:09:48 PM ~!~Z-Wave~!~Z-Net Z-Wave: ............................................................ ..........
                    1/24/2018 3:09:48 PM ~!~Z-Wave~!~Z-Net Z-Wave: .............................. FINISHED ..............................
                    1/24/2018 3:09:49 PM ~!~Z-Wave~!~Z-Net Z-Wave: ............................................................ ..........
                    1/24/2018 3:09:49 PM ~!~Web Server~!~UPNP Discovery started
                    1/24/2018 3:09:49 PM ~!~Web Server~!~Web Server started on port 80
                    1/24/2018 3:09:51 PM ~!~Startup~!~Creating ASP.NET application host...
                    1/24/2018 3:09:52 PM ~!~Z-Wave~!~***************************************************** **************************
                    1/24/2018 3:09:52 PM ~!~Z-Wave~!~ STARTUP COMPLETE: All configured interfaces were successfully initialized.
                    1/24/2018 3:09:52 PM ~!~Z-Wave~!~***************************************************** **************************
                    1/24/2018 3:10:16 PM ~!~Z-Wave~!~Starting Z-Wave Polling for Network DCA7BC56...
                    1/24/2018 3:10:37 PM ~!~Startup~!~Start automation engine...
                    1/24/2018 3:10:37 PM ~!~Startup~!~Initializing Speaker Client Interface
                    1/24/2018 3:10:37 PM ~!~Speech~!~Listening for remote speaker connections on port 10401
                    1/24/2018 3:10:37 PM ~!~Database~!~Opening (Mode=Read/Write) up HomeSeer Energy database C:\Program Files\HomeSeer HS3\Data\Energy\Energy.hsd
                    1/24/2018 3:10:40 PM ~!~Startup~!~Updater services starting...
                    1/24/2018 3:10:40 PM ~!~Startup~!~Starting Find service...

                    Comment


                      #25
                      From what I understand the function InitIO is called to startup a plugin.

                      This is the first line in InitIO.
                      hs.WriteLog(IFACE_NAME, "Get the list of plugins")

                      It should write that to the log before anything I am doing in the plugin could cause it to not load.

                      On my prod server, I am still running an older version of HS.
                      3.0.0.318
                      This is the version where HSTouch was still a plugin.

                      I noticed in my logs earlier this month.

                      Error~!~Initializing plug-in(2): HSTouch Server Instance::Object reference not set to an instance of an object.STACK:Server stack trace: Exception rethrown at [0]: at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessag e(IMessage reqMsg, IMessage retMsg) at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(Mess ageData& msgData, Int32 type) at HomeSeerAPI.IPlugInAPI.InitIO(String port) at Scheduler.clsHSPI.CheckInterfaces()


                      So whatever the error is form it also happens in HSTouch sometimes.
                      --
                      Jeff Farmer
                      HS 3, HSPhone
                      My HS3 Plugins: CFHSExtras, Random, Restart, Tracker, WeatherXML, PanaBluRay
                      Other Plugins In Use: APCUPSD, BLOnkyo, Device History, EasyTrigger, HSTouch Server, PHLocation2, Pushover, RFXCom, UltraGCIR3, UltraMon3, UltraPioneerAVR3, X10, Z-Wave

                      Hardware: GoControl Irrigation Controler, Schlage Lever Lock, Schlage Deadbolt, Way2Call Hi-Phone, RFXCom RFXrec433 Receiver, WGL 800, TI-103, Z-Net, Pioneer 1120, Pioneer 1021, Pioneer LX302, Panasonic BDT-110, Panasonic BDT-210 x2

                      Comment


                        #26
                        I guess my next step is to present this information to Homeseer and see what they say. Any suggestions about what to say to them?

                        Comment


                          #27
                          You can point this to this thread. Other than that I don't know what elxe to tell them.
                          --
                          Jeff Farmer
                          HS 3, HSPhone
                          My HS3 Plugins: CFHSExtras, Random, Restart, Tracker, WeatherXML, PanaBluRay
                          Other Plugins In Use: APCUPSD, BLOnkyo, Device History, EasyTrigger, HSTouch Server, PHLocation2, Pushover, RFXCom, UltraGCIR3, UltraMon3, UltraPioneerAVR3, X10, Z-Wave

                          Hardware: GoControl Irrigation Controler, Schlage Lever Lock, Schlage Deadbolt, Way2Call Hi-Phone, RFXCom RFXrec433 Receiver, WGL 800, TI-103, Z-Net, Pioneer 1120, Pioneer 1021, Pioneer LX302, Panasonic BDT-110, Panasonic BDT-210 x2

                          Comment


                            #28
                            No errors since January. looking good so far

                            No errors since January on Restart. Just had an error on Startup in the Insteon plugin.

                            Comment

                            Working...
                            X