# Creating OPC-UA Module - Renaming ExampleDevice.java

**URL:** <https://forum.inductiveautomation.com/t/creating-opc-ua-module-renaming-exampledevice-java/43767>\
**Category:** Ignition\
**Tags:** scripting\
**Created:** [February 24, 2021, 4:03am UTC](https://forum.inductiveautomation.com/t/creating-opc-ua-module-renaming-exampledevice-java/43767 "2021-02-24T04:03:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![james.beeley](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/james.beeley/32/28019_2.png) [@james.beeley](https://forum.inductiveautomation.com/u/james.beeley)\
**Post date:** [February 24, 2021, 4:03am UTC](https://forum.inductiveautomation.com/t/creating-opc-ua-module-renaming-exampledevice-java/43767/1 "2021-02-24T04:03:51Z")

</div>

I’m building a module which is based on the OPC-UA device module. The module builds and runs successfully. I then rename “ExampleDevice” to “FxDevice” in all instances. The module again builds, but has a state of “Faulted” when I import it on the Gateway.

In the logs, I have the attached error.

 ![FxDevice](https://us1.discourse-cdn.com/inductiveautomation/original/3X/c/6/c621f7c5cd41e54fee8f260800675eb37fc1e977.png)

What could be the cause for this? Thank you for your time.

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [February 24, 2021, 4:08am UTC](https://forum.inductiveautomation.com/t/creating-opc-ua-module-renaming-exampledevice-java/43767/2 "2021-02-24T04:08:05Z")

</div>

What’s on line 65 of your FxDevice.java? Can you share your code?
