# SystemNullReferenceException

**URL:** <https://forums.toadworld.com/t/systemnullreferenceexception/8071>\
**Category:** Toad for IBM DB2\
**Created:** [February 28, 2012, 5:35pm UTC](https://forums.toadworld.com/t/systemnullreferenceexception/8071 "2012-02-28T17:35:56Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![blaise\_156](https://avatars.discourse-cdn.com/v4/letter/b/53a042/32.png) [@blaise\_156](https://forums.toadworld.com/u/blaise_156)\
**Post date:** [February 28, 2012, 5:35pm UTC](https://forums.toadworld.com/t/systemnullreferenceexception/8071/1 "2012-02-28T17:35:56Z")

</div>

Hello,

I have installed 64bit client Xpert trial 5.0.3 on a labtop with local instances on Windows 7. I imported SAMPLEW from db directory.

If db is not active, I encountered the exceptions, and in 1 case, Toad closed.

Regards,

JMB

 ![Toad64bitTrial_pb1.jpeg](https://global.discourse-cdn.com/quest/original/2X/9/979e86a358c47c582ad2bcaad7a1aa6e8b1a5d59.jpeg)

 ![Toad64bitTrial_pb1_2.jpeg](https://global.discourse-cdn.com/quest/original/2X/3/3a7320be6f55833127f18ebc3a19accf4a6a4453.jpeg)

---

<div class="post-metadata">

**Author:** ![Jeff\_Podlasek](https://sea1.discourse-cdn.com/quest/user_avatar/forums.toadworld.com/jeff_podlasek/32/29_2.png) [@Jeff\_Podlasek](https://forums.toadworld.com/u/Jeff_Podlasek)\
**Post date:** [February 29, 2012, 8:56am UTC](https://forums.toadworld.com/t/systemnullreferenceexception/8071/2 "2012-02-29T08:56:08Z")

</div>

If you can answer several questions below it will assist us in determining what the underlying issue is. I encourage you to open up a support case with our support organization so this information (and more) can be tracked and followed in one place.  
You can do that at [support.quest.com](http://support.quest.com)…

Questions that will assist us:  
Can your please explain what you mean by “If db is not active”?  
How did you export/import the SAMPLE2 database definition?  
Is that database located on your local windows machine under another DB2 copy?  
If so, then as Toad DB2 installs and runs in its own DB2 Copy, that database\host will have to be cataloged using your host name and port number for that DB2 copy (so Toad can comunicate with it within the Toad DB2 copy - TOADE50).  
Can you connect to that database by using the Start - Programs - IBM DB2 - TOADE50 - Command Line Tools - Command Line Processor?

Can you connect to that database by using the Start - Programs - IBM DB2 - (any other DB2 copy you might have on your machine) - Command Line Tools - Command Line Processor?

Is there another database you can catalog and successfully connect to?

---

<div class="post-metadata">

**Author:** ![blaise\_156](https://avatars.discourse-cdn.com/v4/letter/b/53a042/32.png) [@blaise\_156](https://forums.toadworld.com/u/blaise_156)\
**Post date:** [February 29, 2012, 5:27pm UTC](https://forums.toadworld.com/t/systemnullreferenceexception/8071/3 "2012-02-29T17:27:06Z")

</div>

Hello Jeff,

I have 3 copies on my Windows: 2 9.5 versions and 1 9.7 versions.  
I have successfully imported from Toad the DB directory of remote databases from 9.5 (but cannot connect as I have no access to remote server).  
I have catalogued in tcpip SAMPLE from the 9.7 copy into SAMPLEW.  
9.7 instance is started and db is not active.  
From TOAD, I have imported SAMPLEW definition, and when connecting, I encounter behaviour showed in the screen copy.  
If I do a CONNECT TO SAMPLEW in CLP for example, to have db active, close TOAD reopen TOAD I do not encounter this behavior.

So I guess there is a timing problem in TOAD when TOAD connects, and that implies DB2 to activate the DB. The 1st screen shot shows TOAD aborts on Windows, the 2nd screen shot, I was connected to the DB and could continue to work with TOAD.

Regards, JMB

---

<div class="post-metadata">

**Author:** ![admin1](https://avatars.discourse-cdn.com/v4/letter/a/bbce88/32.png) [@admin1](https://forums.toadworld.com/u/admin1)\
**Post date:** [March 1, 2012, 1:56pm UTC](https://forums.toadworld.com/t/systemnullreferenceexception/8071/4 "2012-03-01T13:56:43Z")

</div>

test

---

<div class="post-metadata">

**Author:** ![Jeff\_Podlasek](https://sea1.discourse-cdn.com/quest/user_avatar/forums.toadworld.com/jeff_podlasek/32/29_2.png) [@Jeff\_Podlasek](https://forums.toadworld.com/u/Jeff_Podlasek)\
**Post date:** [March 5, 2012, 11:30am UTC](https://forums.toadworld.com/t/systemnullreferenceexception/8071/5 "2012-03-05T11:30:55Z")

</div>

Thanks for the information.  
We have not seen this behavior.  
I am wondering what db2 version\fixpack your 9.7 local SAMPLE database is running in.  
Can you issue the ‘db2level’ command from that CLP so we can know what fixpack that is at?  
thanks

---

<div class="post-metadata">

**Author:** ![blaise\_156](https://avatars.discourse-cdn.com/v4/letter/b/53a042/32.png) [@blaise\_156](https://forums.toadworld.com/u/blaise_156)\
**Post date:** [March 13, 2012, 11:05am UTC](https://forums.toadworld.com/t/systemnullreferenceexception/8071/6 "2012-03-13T11:05:52Z")

</div>

Hi Jeff,

I was using FP5 on 9.7, and I realised I hit a bug that crashes DB2 instance as describe here [http://www-01.ibm.com/support/docview.wss?uid=swg21571629](http://www-01.ibm.com/support/docview.wss?uid=swg21571629).

So as I said to the support team, I think this was more likely a DB2 problem than a Toad problem. I have never been able to reproduce the problem using FP5 + hotfix and AVAST (sandbox deactivated for TOAD).

So I think my issue is closed

Best regards,

JMB
