Avatar

Please consider registering
guest

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed Topic RSS sp_TopicIcon
Kepware ServiceResultException due to Bad_RequestTypeInvalid fault
December 14, 2020
21:03, EET
Avatar
bjubinville
Member
Members
Forum Posts: 3
Member Since:
January 31, 2014
sp_UserOfflineSmall Offline

Hello,

We have been observing intermittent subscription timeouts with our Prosys Java OPC Client (v4.02) and as a workaround, have implemented a restart protocol to re-establish connectivity to Kepware.

This works as expected, but in certain situations following the reconnect attempt, we get the following error:

SecureChannelTcp – -1095008988: Error recovery = true
TcpConnection – /xxx.xxx.xxx.xxx:49320 Connecting
TcpConnection – Connected (non-reverse), handshake completed, local=/10.35.105.11:51594, remote=/xxx.xxx.xxx.xxx:49320
TcpConnection – /xxx.xxx.xxx.xxx:49320 Error
Bad_RequestTypeInvalid (code=0x80530000, description=”The security token request type is not valid.”)
at com.prosysopc.ua.stack.transport.tcp.io.TcpConnection$b.run(SourceFile:276)
TcpConnection – /xxx.xxx.xxx.xxx:49320 Closed
SecureChannelTcp – -1095008988: Error recovery = false
OpcUaClientSession$ – ServiceException subscribing to tag `opc.tcp://xxx.xxx.xxx.xxx:49320/ns=2;s=M364_Z4.M364_Z4.Packout.300R1MH.Count`
com.prosysopc.ua.ServiceException: Bad_RequestTypeInvalid (code=0x80530000, description=”The security token request type is not valid.”) ServiceResult=Bad_RequestTypeInvalid (0x80530000) “The security token request type is not valid.”

At this point, the connection requires a full restart of the client.

Looking online, I’ve found something similar with Ignition’s OPC client and bad responses from Kepware as well:

https://forum.inductiveautomation.com/t/opc-connection-fail-from-opc-tag-browser-to-designer/17674/6

Is there anything that can be called explicitly in the Prosys client stack to ensure this restart is clean?

Thank you!

December 15, 2020
9:40, EET
Avatar
Matti Siponen
Moderator
Members

Moderators
Forum Posts: 346
Member Since:
February 11, 2020
sp_UserOfflineSmall Offline

Hello,

Would it be possible for you to update the SDK version used in the Client from 4.0.2 to 4.5.0 and checking if that fixes the problem?

If prossible, could you use Wireshark to capture traffic between the applications? See https://www.prosysopc.com/blog/opc-ua-wireshark/ for instruction on how to capture OPC UA communication with Wireshark. If you’re running the applications on the same host, remember to select “Support loopback traffic” option when installing Wireshark. You can send the Wireshark and Client and Server logs to uajava-support@prosysopc.com so that we can take a look at them.

Forum Timezone: Europe/Helsinki

Most Users Ever Online: 1919

Currently Online:
30 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

Heikki Tahvanainen: 402

hbrackel: 144

rocket science: 88

pramanj: 86

Francesco Zambon: 83

Ibrahim: 78

Sabari: 62

kapsl: 57

gjevremovic: 49

Xavier: 43

Member Stats:

Guest Posters: 0

Members: 738

Moderators: 7

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1524

Posts: 6453

Newest Members:

rickyjuarez140, jonathonmcintyre, fannielima, kristiewinkle8, rust, christamcdowall, redaahern07571, nigelbdhmp, travistimmons, AnnelCib

Moderators: Jouni Aro: 1026, Pyry: 1, Petri: 0, Bjarne Boström: 1027, Jimmy Ni: 26, Matti Siponen: 346, Lusetti: 0

Administrators: admin: 1