# IllegalComponentStateException: component must be showing

**URL:** <https://forum.inductiveautomation.com/t/illegalcomponentstateexception-component-must-be-showing/3001>\
**Category:** Ignition\
**Created:** [June 7, 2011, 8:55pm UTC](https://forum.inductiveautomation.com/t/illegalcomponentstateexception-component-must-be-showing/3001 "2011-06-07T20:55:37Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![todd.be](https://avatars.discourse-cdn.com/v4/letter/t/6f9a4e/32.png) [@todd.be](https://forum.inductiveautomation.com/u/todd.be)\
**Post date:** [June 7, 2011, 8:55pm UTC](https://forum.inductiveautomation.com/t/illegalcomponentstateexception-component-must-be-showing/3001/1 "2011-06-07T20:55:37Z")

</div>

Have an issue with one user that has repeated twice. We deleted the cache folder under his user .ignition folder and it allowed temporary usage but it came back.

We admittedly on an old version in part because its difficult to get buy in to perform updates and we had issues with some of the pre-7.2.5 builds. He has be a power user since the beginning and has not made changes explicitly around this. And I dont think he has updated his JRE in a while.

Basically, he can open the Designer and edit the projects he wants like once but then next time he tries to connect. After select the project to load he gets the following messages. I have not seen anyone else have the problem and cannot reproduce myself.

He does not have any window managers (like Ultramon or Actual Windows Manager) but does have 2 antivirus installs (Trendmicro and Security Essentials) I asked him to disable one in case there were file conflicts.

His machine does have both a wired and wireless connection for some reason though presumably that is not an issue.

Any ideas or suggestions other than update to latest and retry?

```auto
Ignition v7.1.8-beta3 (b6130)
Java: Sun Microsystems Inc. 1.6.0_20

java.awt.IllegalComponentStateException: component must be showing on the screen to determine its location
               at java.awt.Component.getLocationOnScreen_NoTreeLock(Unknown Source)
               at java.awt.Component.getLocationOnScreen(Unknown Source)
               at com.jidesoft.alert.Alert.internalShowPopup(Unknown Source)
               at com.jidesoft.popup.JidePopup.showPopup(Unknown Source)
               at com.inductiveautomation.ignition.designer.ConnectionHealthListener.setConnectionOk(ConnectionHealthListener.java:132)
               at com.inductiveautomation.ignition.designer.ConnectionHealthListener.propertyChange(ConnectionHealthListener.java:164)
               at java.beans.PropertyChangeSupport.firePropertyChange(Unknown Source)
               at java.beans.PropertyChangeSupport.firePropertyChange(Unknown Source)
               at java.beans.PropertyChangeSupport.firePropertyChange(Unknown Source)
               at com.inductiveautomation.ignition.client.gateway_interface.AbstractGatewayConnection.setConnectionUp(AbstractGatewayConnection.java:506)
               at com.inductiveautomation.ignition.client.gateway_interface.AbstractGatewayConnection.notifyGatewayException(AbstractGatewayConnection.java:608)
               at com.inductiveautomation.ignition.client.gateway_interface.GatewayInterface.fireGatewayException(GatewayInterface.java:141)
               at com.inductiveautomation.ignition.client.gateway_interface.GatewayInterface.newGatewayException(GatewayInterface.java:239)
               at com.inductiveautomation.ignition.client.gateway_interface.GatewayInterface.getResponse(GatewayInterface.java:355)
               at com.inductiveautomation.ignition.client.gateway_interface.GatewayInterface.sendMessage(GatewayInterface.java:208)
               at com.inductiveautomation.ignition.client.gateway_interface.GatewayInterface.sendMessage(GatewayInterface.java:199)
               at com.inductiveautomation.ignition.designer.gateway.DTGatewayInterface.loadProject(DTGatewayInterface.java:294)
               at com.inductiveautomation.ignition.designer.IgnitionDesigner$ProjectOpenTask.run(IgnitionDesigner.java:1045)
               at com.inductiveautomation.ignition.client.util.gui.ProgressDialog$TaskRunner.run(ProgressDialog.java:208)
               at java.lang.Thread.run(Unknown Source)
 
Ignition v7.1.8-beta3 (b6130)
Java: Sun Microsystems Inc. 1.6.0_20
 
 
Error2
com.inductiveautomation.ignition.client.gateway_interface.GatewayException: Gateway Error 600: Gateway connection is not up.
               at com.inductiveautomation.ignition.designer.gateway.PriviledgedDesignerTask.run(PriviledgedDesignerTask.java:114)
               at com.inductiveautomation.ignition.designer.gateway.PriviledgedDesignerTask.runTask(PriviledgedDesignerTask.java:69)
               at com.inductiveautomation.ignition.designer.gateway.DTGatewayInterface.invoke(DTGatewayInterface.java:80)
               at com.inductiveautomation.ignition.designer.gateway.DTGatewayInterface.invoke(DTGatewayInterface.java:75)
               at com.inductiveautomation.ignition.designer.gateway.DTGatewayInterface.getProjectList(DTGatewayInterface.java:204)
               at com.inductiveautomation.ignition.designer.ProjectDialog.initData(ProjectDialog.java:119)
               at com.inductiveautomation.ignition.designer.ProjectDialog.<init>(ProjectDialog.java:106)
               at com.inductiveautomation.ignition.designer.IgnitionDesigner$StartupProjectDialogHandler$2.run(IgnitionDesigner.java:397)
               at java.awt.event.InvocationEvent.dispatch(Unknown Source)
               at java.awt.EventQueue.dispatchEvent(Unknown Source)
               at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
               at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
               at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
               at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
               at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
               at java.awt.EventDispatchThread.run(Unknown Source)
```

---

<div class="post-metadata">

**Author:** ![Carl.Gould](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/carl.gould/32/7262_2.png) [@Carl.Gould](https://forum.inductiveautomation.com/u/Carl.Gould)\
**Post date:** [June 17, 2011, 11:52pm UTC](https://forum.inductiveautomation.com/t/illegalcomponentstateexception-component-must-be-showing/3001/2 "2011-06-17T23:52:35Z")

</div>

This may be a problem we fixed in the 7.2.5 regarding the caching of the incorrect address of a multi-nic server.

You might try and install the latest version on a side-machine and verify that this problem does or does not occur before upgrading.

---

<div class="post-metadata">

**Author:** ![todd.be](https://avatars.discourse-cdn.com/v4/letter/t/6f9a4e/32.png) [@todd.be](https://forum.inductiveautomation.com/u/todd.be)\
**Post date:** [June 18, 2011, 1:21am UTC](https://forum.inductiveautomation.com/t/illegalcomponentstateexception-component-must-be-showing/3001/3 "2011-06-18T01:21:52Z")

</div>

Ok thanks. Dont think its that problem since the server is single NIC though client is not. I do have 7.2.5 running but not for production yet so get get him to really test on that. I did have other problems with client caching fixed with 7.2.5 but none were present in 7.1.8.

Felt like a corruption problem. I noticed his machine locking up and he would kill processes so perhaps there was an incomplete write to a file or something.

Thanks for info though.

---

<div class="post-metadata">

**Author:** ![marioquark](https://avatars.discourse-cdn.com/v4/letter/m/22d042/32.png) [@marioquark](https://forum.inductiveautomation.com/u/marioquark)\
**Post date:** [October 12, 2012, 2:10pm UTC](https://forum.inductiveautomation.com/t/illegalcomponentstateexception-component-must-be-showing/3001/4 "2012-10-12T14:10:35Z")

</div>

solving a previous issue as explained here [viewtopic.php?f=70&t=8880](http://www.inductiveautomation.com/forum/viewtopic.php?f=70&t=8880)  
by a port changing, i get a new error: when i open some project (not all), i get the same above exception:

[code]java.awt.IllegalComponentStateException: component must be showing on the screen to determine its location  
at java.awt.Component.getLocationOnScreen\_NoTreeLock(Unknown Source)  
at java.awt.Component.getLocationOnScreen(Unknown Source)  
at com.jidesoft.alert.Alert.internalShowPopup(Unknown Source)  
at com.jidesoft.popup.JidePopup.showPopup(Unknown Source)  
at com.inductiveautomation.ignition.designer.ConnectionHealthListener.setConnectionOk(ConnectionHealthListener.java:133)  
at com.inductiveautomation.ignition.designer.ConnectionHealthListener.propertyChange(ConnectionHealthListener.java:165)  
at java.beans.PropertyChangeSupport.firePropertyChange(Unknown Source)  
at java.beans.PropertyChangeSupport.firePropertyChange(Unknown Source)  
at java.beans.PropertyChangeSupport.firePropertyChange(Unknown Source)  
at com.inductiveautomation.ignition.client.gateway\_interface.AbstractGatewayConnection.setConnectionUp(AbstractGatewayConnection.java:566)  
at com.inductiveautomation.ignition.client.gateway\_interface.AbstractGatewayConnection.notifyGatewayException(AbstractGatewayConnection.java:672)  
at com.inductiveautomation.ignition.client.gateway\_interface.GatewayInterface.fireGatewayException(GatewayInterface.java:170)  
at com.inductiveautomation.ignition.client.gateway\_interface.GatewayInterface.newGatewayException(GatewayInterface.java:313)  
at com.inductiveautomation.ignition.client.gateway\_interface.GatewayInterface.getResponse(GatewayInterface.java:450)  
at com.inductiveautomation.ignition.client.gateway\_interface.GatewayInterface.sendMessage(GatewayInterface.java:248)  
at com.inductiveautomation.ignition.client.gateway\_interface.GatewayInterface.sendMessage(GatewayInterface.java:239)  
at com.inductiveautomation.ignition.designer.gateway.DTGatewayInterface.loadProject(DTGatewayInterface.java:349)  
at com.inductiveautomation.ignition.designer.IgnitionDesigner$StartupProjectDialogHandler$1.run(IgnitionDesigner.java:377)  
at java.lang.Thread.run(Unknown Source)

Ignition v7.5.3 (b1163)  
Java: Sun Microsystems Inc. 1.6.0\_33  
[/code]

the machine has 2 virtual NICs but the IP were never changed.  
the machine reboot doesn’t solve.  
the only way to open the project in adesigner is opening the designer in a remote session locally on the server ☹  
any suggestion? tnx

---

<div class="post-metadata">

**Author:** ![greg.simpson](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/greg.simpson/32/3135_2.png) [@greg.simpson](https://forum.inductiveautomation.com/u/greg.simpson)\
**Post date:** [October 16, 2012, 3:32pm UTC](https://forum.inductiveautomation.com/t/illegalcomponentstateexception-component-must-be-showing/3001/5 "2012-10-16T15:32:36Z")

</div>

I know you said that the IP address didn’t change, but check and verify that your connecting to the right IP address and making sure there is an exception in the firewall for the port number you’re using.

---

<div class="post-metadata">

**Author:** ![marioquark](https://avatars.discourse-cdn.com/v4/letter/m/22d042/32.png) [@marioquark](https://forum.inductiveautomation.com/u/marioquark)\
**Post date:** [October 19, 2012, 11:48am UTC](https://forum.inductiveautomation.com/t/illegalcomponentstateexception-component-must-be-showing/3001/6 "2012-10-19T11:48:33Z")

</div>

i’m sure i’m connecting to the correct IP and there is a forwarding to the same port of the server.  
but i realized that after the above exception i get also 4 exceptions, like this one:

```auto
GatewayException: The connection to the gateway is not available.
```

---

<div class="post-metadata">

**Author:** ![Carl.Gould](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/carl.gould/32/7262_2.png) [@Carl.Gould](https://forum.inductiveautomation.com/u/Carl.Gould)\
**Post date:** [October 19, 2012, 11:33pm UTC](https://forum.inductiveautomation.com/t/illegalcomponentstateexception-component-must-be-showing/3001/7 "2012-10-19T23:33:05Z")

</div>

Have you tried clearing the .ignition folder under the user’s home directory on the machine having the issue?

---

<div class="post-metadata">

**Author:** ![greg.simpson](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/greg.simpson/32/3135_2.png) [@greg.simpson](https://forum.inductiveautomation.com/u/greg.simpson)\
**Post date:** [October 19, 2012, 11:35pm UTC](https://forum.inductiveautomation.com/t/illegalcomponentstateexception-component-must-be-showing/3001/8 "2012-10-19T23:35:34Z")

</div>

Do you have any kind of antivirus installed on the computer?  
Are you able to connect with a different client machine other than the one your currently trying to use?  
Do you have enough memory on the gateway server? Are you running out of memory?  
Can you turn on the Java console and see if any errors are there when you try to launch the project?

---

<div class="post-metadata">

**Author:** ![marioquark](https://avatars.discourse-cdn.com/v4/letter/m/22d042/32.png) [@marioquark](https://forum.inductiveautomation.com/u/marioquark)\
**Post date:** [October 22, 2012, 7:56am UTC](https://forum.inductiveautomation.com/t/illegalcomponentstateexception-component-must-be-showing/3001/9 "2012-10-22T07:56:15Z")

</div>

> [@Carl.Gould](#):
>
> Have you tried clearing the .ignition folder under the user's home directory on the machine having the issue?

this solved the issue!  
wonderful
