# Issue creating an OPC Server. FAULTED Connection. java.lang.Exception

**URL:** <https://forum.inductiveautomation.com/t/issue-creating-an-opc-server-faulted-connection-java-lang-exception/78443>\
**Category:** Ignition\
**Created:** [August 28, 2023, 10:33am UTC](https://forum.inductiveautomation.com/t/issue-creating-an-opc-server-faulted-connection-java-lang-exception/78443 "2023-08-28T10:33:21Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Felipe\_Jose\_Bouilly](https://avatars.discourse-cdn.com/v4/letter/f/91b2a8/32.png) [@Felipe\_Jose\_Bouilly](https://forum.inductiveautomation.com/u/Felipe_Jose_Bouilly)\
**Post date:** [August 28, 2023, 10:33am UTC](https://forum.inductiveautomation.com/t/issue-creating-an-opc-server-faulted-connection-java-lang-exception/78443/1 "2023-08-28T10:33:21Z")

</div>

Hi all,  
I am quite new with Ignition. I am trying to make an OPC Connection, and I am getting this error (java.lang.Exception). I have been trying a few things I found on this forum, but I could not get it work.  
If someone can give me a hand with this, please. I would really appreciate it.  
Please see attached some screenshot I made.

Thank you very much in advance.

BR

Felipe

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/6/6/66c1629fd2e6525d11fe3affb29cc2714c6e37a3.png)  
 ![Screenshot 2023-08-28 123000](https://us1.discourse-cdn.com/inductiveautomation/original/3X/e/5/e59e32cd137d36df43c06b8d88001ec68291ad1d.png)

---

<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:** [August 28, 2023, 12:01pm UTC](https://forum.inductiveautomation.com/t/issue-creating-an-opc-server-faulted-connection-java-lang-exception/78443/2 "2023-08-28T12:01:03Z")

</div>

This means whatever server you’re trying to connect to expects a username and password but you haven’t configured one.

---

<div class="post-metadata">

**Author:** ![Felipe\_Jose\_Bouilly](https://avatars.discourse-cdn.com/v4/letter/f/91b2a8/32.png) [@Felipe\_Jose\_Bouilly](https://forum.inductiveautomation.com/u/Felipe_Jose_Bouilly)\
**Post date:** [August 28, 2023, 1:15pm UTC](https://forum.inductiveautomation.com/t/issue-creating-an-opc-server-faulted-connection-java-lang-exception/78443/3 "2023-08-28T13:15:20Z")

</div>

Hi Kevin. Thank you for your fast reply. Also, I tried that, but it still does not work. I just want to run the OPC UA on my own laptop and connect with a S71200.  
Is there some place where I can recheck all the steps ?  
Thank you in advance.  
Felipe.

---

<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:** [August 28, 2023, 1:19pm UTC](https://forum.inductiveautomation.com/t/issue-creating-an-opc-server-faulted-connection-java-lang-exception/78443/4 "2023-08-28T13:19:39Z")

</div>

What didn't work about it? How did the error message change?

The steps for connecting to most 3rd part OPC UA servers will be similar to those for Kepware: [Connecting to Kepware OPC UA - Ignition User Manual 8.1 - Ignition Documentation](https://docs.inductiveautomation.com/display/DOC81/Connecting+to+Kepware+OPC+UA)

---

<div class="post-metadata">

**Author:** ![Felipe\_Jose\_Bouilly](https://avatars.discourse-cdn.com/v4/letter/f/91b2a8/32.png) [@Felipe\_Jose\_Bouilly](https://forum.inductiveautomation.com/u/Felipe_Jose_Bouilly)\
**Post date:** [August 28, 2023, 1:27pm UTC](https://forum.inductiveautomation.com/t/issue-creating-an-opc-server-faulted-connection-java-lang-exception/78443/5 "2023-08-28T13:27:46Z")

</div>

Now I am getting this one --\> status=Bad\_UserAccessDenied, description=User does not have permission to perform the requested operation.

```auto
UaServiceFaultException: status=Bad_UserAccessDenied, message=User does not have permission to perform the requested operation.
	at org.eclipse.milo.opcua.stack.client.UaStackClient.lambda$deliverResponse$5(UaStackClient.java:337)
	at org.eclipse.milo.opcua.stack.core.util.ExecutionQueue$Task.run(ExecutionQueue.java:119)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.base/java.lang.Thread.run(Unknown Source)

8.1.31 (b2023081007)
Azul Systems, Inc. 11.0.18 
´´´

thanks
```

---

<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:** [August 28, 2023, 1:30pm UTC](https://forum.inductiveautomation.com/t/issue-creating-an-opc-server-faulted-connection-java-lang-exception/78443/6 "2023-08-28T13:30:48Z")

</div>

Ok, so you probably don't have the correct username and/or password.
