# Siemens WinCC OPCUA Error

**URL:** <https://forum.inductiveautomation.com/t/siemens-wincc-opcua-error/15844>\
**Category:** Ignition\
**Created:** [November 1, 2017, 5:07pm UTC](https://forum.inductiveautomation.com/t/siemens-wincc-opcua-error/15844 "2017-11-01T17:07:21Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![c-w-t](https://avatars.discourse-cdn.com/v4/letter/c/bbe5ce/32.png) [@c-w-t](https://forum.inductiveautomation.com/u/c-w-t)\
**Post date:** [November 1, 2017, 5:07pm UTC](https://forum.inductiveautomation.com/t/siemens-wincc-opcua-error/15844/1 "2017-11-01T17:07:21Z")

</div>

Hi, I’m trying to connect Ignition’s UA client to a WinCC UA server running on the same machine. I can browse the endpoint, but when I finish the connection setup it faults and returns the following error:

UaException: status=Bad\_ConnectionClosed, message=connection closed  
at org.eclipse.milo.opcua.stack.client.handlers.UaTcpClientMessageHandler.channelInactive(UaTcpClientMessageHandler.java:164)  
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:193)  
at io.netty.channel.AbstractChannelHandlerContext.fireChannelInactive(AbstractChannelHandlerContext.java:179)  
at io.netty.handler.codec.ByteToMessageDecoder.channelInputClosed(ByteToMessageDecoder.java:349)  
at io.netty.handler.codec.ByteToMessageDecoder.channelInactive(ByteToMessageDecoder.java:309)  
at io.netty.handler.codec.ByteToMessageCodec.channelInactive(ByteToMessageCodec.java:118)  
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:193)  
at io.netty.channel.AbstractChannelHandlerContext.fireChannelInactive(AbstractChannelHandlerContext.java:179)  
at io.netty.channel.DefaultChannelPipeline.fireChannelInactive(DefaultChannelPipeline.java:944)  
at io.netty.channel.AbstractChannel$AbstractUnsafe$7.run(AbstractChannel.java:687)  
at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:358)  
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:374)  
at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:112)  
at java.lang.Thread.run(Unknown Source)

7.9.3 (b2017060210)  
Oracle Corporation 1.8.0\_131

Any help on this is appreciated.

---

<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:** [November 1, 2017, 5:11pm UTC](https://forum.inductiveautomation.com/t/siemens-wincc-opcua-error/15844/2 "2017-11-01T17:11:23Z")

</div>

All this error is showing is that the other end closed the connection.

Are you connecting with security enabled? If so, you may need to import and trust Ignition’s UA client certificate in the server somehow.

---

<div class="post-metadata">

**Author:** ![ctonge](https://avatars.discourse-cdn.com/v4/letter/c/ec9cab/32.png) [@ctonge](https://forum.inductiveautomation.com/u/ctonge)\
**Post date:** [November 1, 2017, 6:24pm UTC](https://forum.inductiveautomation.com/t/siemens-wincc-opcua-error/15844/3 "2017-11-01T18:24:29Z")

</div>

I kind of figured that’s all it was telling me. Though I was hoping for a reason somewhere in there. I’ve uploaded the ignition certificate into the OPC UA trusted list, but I’ll go double check all of that. Thanks for the quick reply.

---

<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:** [November 1, 2017, 7:14pm UTC](https://forum.inductiveautomation.com/t/siemens-wincc-opcua-error/15844/4 "2017-11-01T19:14:18Z")

</div>

A Wireshark capture may help figure out what’s going on as well.
