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
The issue with connection between OPC UA Browser and OPC UA Server
August 25, 2020
11:06, EEST
Avatar
VladTester
Member
Members
Forum Posts: 5
Member Since:
August 25, 2020
sp_UserOfflineSmall Offline

Hello, I have such output in .log file:

2020-08-19 14:08:32.052 ERROR Opc.Ua.ServiceResultException: ServiceFault [ResponseHeader=”ResponseHeader [Timestamp=”2020-08-19 09:08:32.0490000 GMT”, RequestHandle=”null”, ServiceResult=”Bad_InternalError (0x80020000) “An internal error occurred as a result of a programming or configuration error.””, ServiceDiagnostics=”Diagnostic Info: java.lang.NullPointerException: clientIdentity (Bad_InternalError (0x80020000) “An internal error occurred as a result of a programming or configuration error.”)
at java.base/java.util.Objects.requireNonNull(Objects.java:246)
at com.prosysopc.ua.app.simserver.database.entities.b$a.z(SourceFile:442)
at com.prosysopc.ua.app.simserver.ui.tabs.connlog.ConnectionLogEvent.asEntity(SourceFile:160)
at com.prosysopc.ua.app.simserver.ui.tabs.connlog.c.a(SourceFile:61)
at com.prosysopc.ua.app.simserver.ui.tabs.b.c.a(SourceFile:94)
at com.prosysopc.ua.app.simserver.ui.tabs.b.c.onCreateSession(SourceFile:84)
at com.prosysopc.ua.server.ab.g(SourceFile:516)
at com.prosysopc.ua.server.ab.a(SourceFile:816)
at com.prosysopc.ua.server.af.onCreateSession(SourceFile:136)
at jdk.internal.reflect.GeneratedMethodAccessor45.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at com.prosysopc.ua.stack.a.h$1.b(SourceFile:114)
at com.prosysopc.ua.stack.a.h.b(SourceFile:235)
at com.prosysopc.ua.stack.transport.tcp.nio.h.a(SourceFile:333)
at com.prosysopc.ua.stack.transport.tcp.nio.g.d(SourceFile:862)
at com.prosysopc.ua.stack.transport.tcp.nio.g$3.e(SourceFile:263)
at com.prosysopc.ua.stack.transport.tcp.nio.j.bwi(SourceFile:442)
at com.prosysopc.ua.stack.transport.tcp.nio.j.c(SourceFile:493)
at com.prosysopc.ua.stack.transport.tcp.nio.j$1.run(SourceFile:146)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)

“, StringTable=”[java.lang.NullPointerException: clientIdentity]”, AdditionalHeader=”null”]”]
at Opc.Ua.ClientBase.ValidateResponse(ResponseHeader header)
at Opc.Ua.SessionClient.CreateSession(RequestHeader requestHeader, ApplicationDescription clientDescription, String serverUri, String endpointUrl, String sessionName, Byte[] clientNonce, Byte[] clientCertificate, Double requestedSessionTimeout, UInt32 maxResponseMessageSize, NodeId& sessionId, NodeId& authenticationToken, Double& revisedSessionTimeout, Byte[]& serverNonce, Byte[]& serverCertificate, EndpointDescriptionCollection& serverEndpoints, SignedSoftwareCertificateCollection& serverSoftwareCertificates, SignatureData& serverSignature, UInt32& maxRequestMessageSize)
at Opc.Ua.Client.Session.Open(String sessionName, UInt32 sessionTimeout, IUserIdentity identity, IList`1 preferredLocales, Boolean checkDomain)
at Opc.Ua.Client.Session.Open(String sessionName, UInt32 sessionTimeout, IUserIdentity identity, IList`1 preferredLocales)
at Opc.Ua.Client.Session.Open(String sessionName, IUserIdentity identity)
at SrtdbComm.Devices.KpOpcUaLogic.TryConnect() Opc.Ua.ServiceResultException: ServiceFault [ResponseHeader=”ResponseHeader [Timestamp=”2020-08-19 09:08:32.0490000 GMT”, RequestHandle=”null”, ServiceResult=”Bad_InternalError (0x80020000) “An internal error occurred as a result of a programming or configuration error.””, ServiceDiagnostics=”Diagnostic Info: java.lang.NullPointerException: clientIdentity (Bad_InternalError (0x80020000) “An internal error occurred as a result of a programming or configuration error.”)
at java.base/java.util.Objects.requireNonNull(Objects.java:246)
at com.prosysopc.ua.app.simserver.database.entities.b$a.z(SourceFile:442)
at com.prosysopc.ua.app.simserver.ui.tabs.connlog.ConnectionLogEvent.asEntity(SourceFile:160)
at com.prosysopc.ua.app.simserver.ui.tabs.connlog.c.a(SourceFile:61)
at com.prosysopc.ua.app.simserver.ui.tabs.b.c.a(SourceFile:94)
at com.prosysopc.ua.app.simserver.ui.tabs.b.c.onCreateSession(SourceFile:84)
at com.prosysopc.ua.server.ab.g(SourceFile:516)
at com.prosysopc.ua.server.ab.a(SourceFile:816)
at com.prosysopc.ua.server.af.onCreateSession(SourceFile:136)
at jdk.internal.reflect.GeneratedMethodAccessor45.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at com.prosysopc.ua.stack.a.h$1.b(SourceFile:114)
at com.prosysopc.ua.stack.a.h.b(SourceFile:235)
at com.prosysopc.ua.stack.transport.tcp.nio.h.a(SourceFile:333)
at com.prosysopc.ua.stack.transport.tcp.nio.g.d(SourceFile:862)
at com.prosysopc.ua.stack.transport.tcp.nio.g$3.e(SourceFile:263)
at com.prosysopc.ua.stack.transport.tcp.nio.j.bwi(SourceFile:442)
at com.prosysopc.ua.stack.transport.tcp.nio.j.c(SourceFile:493)
at com.prosysopc.ua.stack.transport.tcp.nio.j$1.run(SourceFile:146)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)

“, StringTable=”[java.lang.NullPointerException: clientIdentity]”, AdditionalHeader=”null”]”]
at Opc.Ua.ClientBase.ValidateResponse(ResponseHeader header)
at Opc.Ua.SessionClient.CreateSession(RequestHeader requestHeader, ApplicationDescription clientDescription, String serverUri, String endpointUrl, String sessionName, Byte[] clientNonce, Byte[] clientCertificate, Double requestedSessionTimeout, UInt32 maxResponseMessageSize, NodeId& sessionId, NodeId& authenticationToken, Double& revisedSessionTimeout, Byte[]& serverNonce, Byte[]& serverCertificate, EndpointDescriptionCollection& serverEndpoints, SignedSoftwareCertificateCollection& serverSoftwareCertificates, SignatureData& serverSignature, UInt32& maxRequestMessageSize)
at Opc.Ua.Client.Session.Open(String sessionName, UInt32 sessionTimeout, IUserIdentity identity, IList`1 preferredLocales, Boolean checkDomain)
at Opc.Ua.Client.Session.Open(String sessionName, UInt32 sessionTimeout, IUserIdentity identity, IList`1 preferredLocales)
at Opc.Ua.Client.Session.Open(String sessionName, IUserIdentity identity)
at SrtdbComm.Devices.KpOpcUaLogic.TryConnect()
2020-08-19 14:08:32.052 DEBUG Collected tags: 0.

The connection is established judging by the server’s logs, but tag values don’t appear in .log file. Is anybody knows how I can fix them? Thanks a lot.

August 25, 2020
12:49, EEST
Avatar
Matti Siponen
Moderator
Members

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

Hello,

Since you posted this on the forum for Simulation Server, I’m assuming that you’re using that as your OPC UA Server. Which versions of Browser and Simulation Server you’re using?

August 25, 2020
13:19, EEST
Avatar
VladTester
Member
Members
Forum Posts: 5
Member Since:
August 25, 2020
sp_UserOfflineSmall Offline

Matti Siponen said
Hello,

Since you posted this on the forum for Simulation Server, I’m assuming that you’re using that as your OPC UA Server. Which versions of Browser and Simulation Server you’re using?  

Thanks for answering,

OPC UA Simulation Server – 5.0.0-217
OPC UA Browser – 4.0.4-247

August 25, 2020
13:33, EEST
Avatar
Matti Siponen
Moderator
Members

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

Could you explain how I could reproduce your issue? Does it happen every time you try to connect from Browser to Simulation Server?

Connecting from Browser to Simulation Server works normally with these versions in Windows environment. If you’re using another OS, could you tell what it is?

August 25, 2020
14:35, EEST
Avatar
VladTester
Member
Members
Forum Posts: 5
Member Since:
August 25, 2020
sp_UserOfflineSmall Offline

Matti Siponen said
Could you explain how I could reproduce your issue? Does it happen every time you try to connect from Browser to Simulation Server?

Connecting from Browser to Simulation Server works normally with these versions in Windows environment. If you’re using another OS, could you tell what it is?  

I don’t know, nothing special. I open up OPC UA Server Simulation, copy the link in “Connection address”, fill in the blank “Running” with it in Prosys OPC UA Browser, and connect. In the config file, I write tags like this: https://prnt.sc/u5j2a7
I am connecting in anonymous mode. It is strange but using the same settings my colleague could connect without any mistakes. There are you can find connection logs https://prnt.sc/u5izov.

OS Windows 10 Home Single Language

August 25, 2020
15:12, EEST
Avatar
Matti Siponen
Moderator
Members

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

Could you specify which configuration file you’re attempting to add KpOpcUaConfig XML-element to and what is it supposed to do? Browser’s conf.xml doesn’t support adding such XML-element to it.

August 25, 2020
15:32, EEST
Avatar
VladTester
Member
Members
Forum Posts: 5
Member Since:
August 25, 2020
sp_UserOfflineSmall Offline

Matti Siponen said
Could you specify which configuration file you’re attempting to add KpOpcUaConfig XML-element to and what is it supposed to do? Browser’s conf.xml doesn’t support adding such XML-element to it.  

It’s our ICS software for forwarding tag’s value to local database or local memory. It uses config files for changing values of defined parameters in there. Maybe I should create a testbed isolated in VirtualBox or VMWare on the same OS?

August 25, 2020
16:35, EEST
Avatar
Matti Siponen
Moderator
Members

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

How is your ICS software connected to Browser and/or Simulation Server? Is it an OPC UA Client or Server or both?

Forum Timezone: Europe/Helsinki

Most Users Ever Online: 1919

Currently Online:
15 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: 726

Moderators: 7

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1529

Posts: 6471

Newest Members:

gabriellabachus, Deakin, KTP25Zof, Wojciech Kubala, efrennowell431, wilfredostuart, caitlynfajardo, jeromechubb7, franciscagrimwad, adult_gallery

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

Administrators: admin: 1