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
client.historyDeleteRaw exceptions
February 9, 2016
11:52, EET
Avatar
aSaunders925
Member
Members
Forum Posts: 8
Member Since:
January 8, 2016
sp_UserOfflineSmall Offline

I’m connected the the Prosys Simulation Server and the nodeId below is the ns=2;s=MyLevel which has a history. I am able to read the history OK, but I’m unable to clear the history.

I’m using the following:
HistoryUpdateResult result = client.historyDeleteRaw(nodeId, DateTime.MIN_VALUE, DateTime.currentTime());

Which results in the following exceptions. What am I doing wrong?

com.prosysopc.ua.ServiceException: ServiceFault: Bad_InternalError (0x80020000) “An internal error occurred as a result o
f a programming or configuration error.”
Diagnostic Info: ServiceFault: Bad_InternalError (0x80020000) “An internal error occurred as a result of a programming or
configuration error.”
Diagnostic Info: java.lang.ArrayIndexOutOfBoundsException: 0
at java.util.concurrent.CopyOnWriteArrayList.get(CopyOnWriteArrayList.java:387)
at java.util.concurrent.CopyOnWriteArrayList.get(CopyOnWriteArrayList.java:396)
at com.prosysopc.ua.app.simserver.demonodes.f.a(Unknown Source)
at com.prosysopc.ua.app.simserver.demonodes.c.b(Unknown Source)
at com.prosysopc.ua.server.r.b(Unknown Source)
at com.prosysopc.ua.server.NodeManagerTable.b(Unknown Source)
at com.prosysopc.ua.server.c.a(Unknown Source)
at com.prosysopc.ua.server.c.a(Unknown Source)
at com.prosysopc.ua.server.c.onHistoryUpdate(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.opcfoundation.ua.application.ServiceHandlerComposition$1.serve(Unknown Source)
at org.opcfoundation.ua.application.ServiceHandlerComposition.serve(Unknown Source)
at org.opcfoundation.ua.transport.tcp.nio.OpcTcpServerSecureChannel.handleSecureMessage(Unknown Source)
at org.opcfoundation.ua.transport.tcp.nio.OpcTcpServerConnection.handleSecureMessage(Unknown Source)
at org.opcfoundation.ua.transport.tcp.nio.OpcTcpServerConnection$4.onMessageComplete(Unknown Source)
at org.opcfoundation.ua.transport.tcp.nio.SecureInputMessageBuilder.fireComplete(Unknown Source)
at org.opcfoundation.ua.transport.tcp.nio.SecureInputMessageBuilder.setMessage(Unknown Source)
at org.opcfoundation.ua.transport.tcp.nio.SecureInputMessageBuilder$1.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)

at org.opcfoundation.ua.application.ServiceHandlerComposition$1.serve(Unknown Source)
at org.opcfoundation.ua.application.ServiceHandlerComposition.serve(Unknown Source)
at org.opcfoundation.ua.transport.tcp.nio.OpcTcpServerSecureChannel.handleSecureMessage(Unknown Source)
at org.opcfoundation.ua.transport.tcp.nio.OpcTcpServerConnection.handleSecureMessage(Unknown Source)
at org.opcfoundation.ua.transport.tcp.nio.OpcTcpServerConnection$4.onMessageComplete(Unknown Source)
at org.opcfoundation.ua.transport.tcp.nio.SecureInputMessageBuilder.fireComplete(Unknown Source)
at org.opcfoundation.ua.transport.tcp.nio.SecureInputMessageBuilder.setMessage(Unknown Source)
at org.opcfoundation.ua.transport.tcp.nio.SecureInputMessageBuilder$1.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)

Inner Info: java.lang.ArrayIndexOutOfBoundsException: 0 (Bad_InternalError (0x80020000) “An internal error occurred as a
result of a programming or configuration error.”)
at java.util.concurrent.CopyOnWriteArrayList.get(CopyOnWriteArrayList.java:387)
at java.util.concurrent.CopyOnWriteArrayList.get(CopyOnWriteArrayList.java:396)
at com.prosysopc.ua.app.simserver.demonodes.f.a(Unknown Source)
at com.prosysopc.ua.app.simserver.demonodes.c.b(Unknown Source)
at com.prosysopc.ua.server.r.b(Unknown Source)
at com.prosysopc.ua.server.NodeManagerTable.b(Unknown Source)
at com.prosysopc.ua.server.c.a(Unknown Source)
at com.prosysopc.ua.server.c.a(Unknown Source)
at com.prosysopc.ua.server.c.onHistoryUpdate(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.opcfoundation.ua.application.ServiceHandlerComposition$1.serve(Unknown Source)
at org.opcfoundation.ua.application.ServiceHandlerComposition.serve(Unknown Source)
at org.opcfoundation.ua.transport.tcp.nio.OpcTcpServerSecureChannel.handleSecureMessage(Unknown Source)
at org.opcfoundation.ua.transport.tcp.nio.OpcTcpServerConnection.handleSecureMessage(Unknown Source)
at org.opcfoundation.ua.transport.tcp.nio.OpcTcpServerConnection$4.onMessageComplete(Unknown Source)
at org.opcfoundation.ua.transport.tcp.nio.SecureInputMessageBuilder.fireComplete(Unknown Source)
at org.opcfoundation.ua.transport.tcp.nio.SecureInputMessageBuilder.setMessage(Unknown Source)
at org.opcfoundation.ua.transport.tcp.nio.SecureInputMessageBuilder$1.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
ServiceResult=Bad_InternalError (0x80020000) “An internal error occurred as a result of a programming or configuration e
rror.” Diagnostics=Diagnostic Info: ServiceFault: Bad_InternalError (0x80020000) “An internal error occurred as a result
of a programming or configuration error.”
Diagnostic Info: java.lang.ArrayIndexOutOfBoundsException: 0
at java.util.concurrent.CopyOnWriteArrayList.get(CopyOnWriteArrayList.java:387)
at java.util.concurrent.CopyOnWriteArrayList.get(CopyOnWriteArrayList.java:396)
at com.prosysopc.ua.app.simserver.demonodes.f.a(Unknown Source)
at com.prosysopc.ua.app.simserver.demonodes.c.b(Unknown Source)
at com.prosysopc.ua.server.r.b(Unknown Source)
at com.prosysopc.ua.server.NodeManagerTable.b(Unknown Source)
at com.prosysopc.ua.server.c.a(Unknown Source)
at com.prosysopc.ua.server.c.a(Unknown Source)
at com.prosysopc.ua.server.c.onHistoryUpdate(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.opcfoundation.ua.application.ServiceHandlerComposition$1.serve(Unknown Source)
at org.opcfoundation.ua.application.ServiceHandlerComposition.serve(Unknown Source)
at org.opcfoundation.ua.transport.tcp.nio.OpcTcpServerSecureChannel.handleSecureMessage(Unknown Source)
at org.opcfoundation.ua.transport.tcp.nio.OpcTcpServerConnection.handleSecureMessage(Unknown Source)
at org.opcfoundation.ua.transport.tcp.nio.OpcTcpServerConnection$4.onMessageComplete(Unknown Source)
at org.opcfoundation.ua.transport.tcp.nio.SecureInputMessageBuilder.fireComplete(Unknown Source)
at org.opcfoundation.ua.transport.tcp.nio.SecureInputMessageBuilder.setMessage(Unknown Source)
at org.opcfoundation.ua.transport.tcp.nio.SecureInputMessageBuilder$1.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
(Bad_InternalError (0x80020000) “An internal error occurred as a result of a programming or configuration error.”)
at org.opcfoundation.ua.application.ServiceHandlerComposition$1.serve(Unknown Source)
at org.opcfoundation.ua.application.ServiceHandlerComposition.serve(Unknown Source)
at org.opcfoundation.ua.transport.tcp.nio.OpcTcpServerSecureChannel.handleSecureMessage(Unknown Source)
at org.opcfoundation.ua.transport.tcp.nio.OpcTcpServerConnection.handleSecureMessage(Unknown Source)
at org.opcfoundation.ua.transport.tcp.nio.OpcTcpServerConnection$4.onMessageComplete(Unknown Source)
at org.opcfoundation.ua.transport.tcp.nio.SecureInputMessageBuilder.fireComplete(Unknown Source)
at org.opcfoundation.ua.transport.tcp.nio.SecureInputMessageBuilder.setMessage(Unknown Source)
at org.opcfoundation.ua.transport.tcp.nio.SecureInputMessageBuilder$1.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)

Inner Info: java.lang.ArrayIndexOutOfBoundsException: 0 (Bad_InternalError (0x80020000) “An internal error occurred as a
result of a programming or configuration error.”)
at java.util.concurrent.CopyOnWriteArrayList.get(CopyOnWriteArrayList.java:387)
at java.util.concurrent.CopyOnWriteArrayList.get(CopyOnWriteArrayList.java:396)
at com.prosysopc.ua.app.simserver.demonodes.f.a(Unknown Source)
at com.prosysopc.ua.app.simserver.demonodes.c.b(Unknown Source)
at com.prosysopc.ua.server.r.b(Unknown Source)
at com.prosysopc.ua.server.NodeManagerTable.b(Unknown Source)
at com.prosysopc.ua.server.c.a(Unknown Source)
at com.prosysopc.ua.server.c.a(Unknown Source)
at com.prosysopc.ua.server.c.onHistoryUpdate(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.opcfoundation.ua.application.ServiceHandlerComposition$1.serve(Unknown Source)
at org.opcfoundation.ua.application.ServiceHandlerComposition.serve(Unknown Source)
at org.opcfoundation.ua.transport.tcp.nio.OpcTcpServerSecureChannel.handleSecureMessage(Unknown Source)
at org.opcfoundation.ua.transport.tcp.nio.OpcTcpServerConnection.handleSecureMessage(Unknown Source)
at org.opcfoundation.ua.transport.tcp.nio.OpcTcpServerConnection$4.onMessageComplete(Unknown Source)
at org.opcfoundation.ua.transport.tcp.nio.SecureInputMessageBuilder.fireComplete(Unknown Source)
at org.opcfoundation.ua.transport.tcp.nio.SecureInputMessageBuilder.setMessage(Unknown Source)
at org.opcfoundation.ua.transport.tcp.nio.SecureInputMessageBuilder$1.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)

at com.prosysopc.ua.client.UaClient.historyUpdate(Unknown Source)
at com.prosysopc.ua.client.UaClient.historyDeleteRaw(Unknown Source)
at com.tridium.opcUaClient.history.BOpcUaClientHistoryImport.doClearDeviceRecords(BOpcUaClientHistoryImport.java:
391)
at auto.com_tridium_opcUaClient_history_BOpcUaClientHistoryImport.invoke(AutoGenerated)
at com.tridium.sys.schema.ComponentSlotMap.invoke(ComponentSlotMap.java:1871)
at com.tridium.sys.schema.ComponentSlotMap.invoke(ComponentSlotMap.java:1836)
at javax.baja.sys.BComponent.invoke(BComponent.java:1184)
at com.tridium.fox.sys.broker.BBrokerChannel.invoke(BBrokerChannel.java:1830)
at com.tridium.fox.sys.broker.BBrokerChannel.process(BBrokerChannel.java:241)
at com.tridium.fox.sys.BFoxConnection.process(BFoxConnection.java:452)
at com.tridium.fox.session.SessionDispatcher.dispatch(SessionDispatcher.java:83)
at com.tridium.fox.session.SessionDispatcher.run(SessionDispatcher.java:62)
at java.lang.Thread.run(Thread.java:745)
Caused by: ServiceFault: Bad_InternalError (0x80020000) “An internal error occurred as a result of a programming or confi
guration error.”
Diagnostic Info: ServiceFault: Bad_InternalError (0x80020000) “An internal error occurred as a result of a programming or
configuration error.”
Diagnostic Info: java.lang.ArrayIndexOutOfBoundsException: 0
at java.util.concurrent.CopyOnWriteArrayList.get(CopyOnWriteArrayList.java:387)
at java.util.concurrent.CopyOnWriteArrayList.get(CopyOnWriteArrayList.java:396)
at com.prosysopc.ua.app.simserver.demonodes.f.a(Unknown Source)
at com.prosysopc.ua.app.simserver.demonodes.c.b(Unknown Source)
at com.prosysopc.ua.server.r.b(Unknown Source)
at com.prosysopc.ua.server.NodeManagerTable.b(Unknown Source)
at com.prosysopc.ua.server.c.a(Unknown Source)
at com.prosysopc.ua.server.c.a(Unknown Source)
at com.prosysopc.ua.server.c.onHistoryUpdate(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.opcfoundation.ua.application.ServiceHandlerComposition$1.serve(Unknown Source)
at org.opcfoundation.ua.application.ServiceHandlerComposition.serve(Unknown Source)
at org.opcfoundation.ua.transport.tcp.nio.OpcTcpServerSecureChannel.handleSecureMessage(Unknown Source)
at org.opcfoundation.ua.transport.tcp.nio.OpcTcpServerConnection.handleSecureMessage(Unknown Source)
at org.opcfoundation.ua.transport.tcp.nio.OpcTcpServerConnection$4.onMessageComplete(Unknown Source)
at org.opcfoundation.ua.transport.tcp.nio.SecureInputMessageBuilder.fireComplete(Unknown Source)
at org.opcfoundation.ua.transport.tcp.nio.SecureInputMessageBuilder.setMessage(Unknown Source)
at org.opcfoundation.ua.transport.tcp.nio.SecureInputMessageBuilder$1.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)

at org.opcfoundation.ua.application.ServiceHandlerComposition$1.serve(Unknown Source)
at org.opcfoundation.ua.application.ServiceHandlerComposition.serve(Unknown Source)
at org.opcfoundation.ua.transport.tcp.nio.OpcTcpServerSecureChannel.handleSecureMessage(Unknown Source)
at org.opcfoundation.ua.transport.tcp.nio.OpcTcpServerConnection.handleSecureMessage(Unknown Source)
at org.opcfoundation.ua.transport.tcp.nio.OpcTcpServerConnection$4.onMessageComplete(Unknown Source)
at org.opcfoundation.ua.transport.tcp.nio.SecureInputMessageBuilder.fireComplete(Unknown Source)
at org.opcfoundation.ua.transport.tcp.nio.SecureInputMessageBuilder.setMessage(Unknown Source)
at org.opcfoundation.ua.transport.tcp.nio.SecureInputMessageBuilder$1.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)

Inner Info: java.lang.ArrayIndexOutOfBoundsException: 0 (Bad_InternalError (0x80020000) “An internal error occurred as a
result of a programming or configuration error.”)
at java.util.concurrent.CopyOnWriteArrayList.get(CopyOnWriteArrayList.java:387)
at java.util.concurrent.CopyOnWriteArrayList.get(CopyOnWriteArrayList.java:396)
at com.prosysopc.ua.app.simserver.demonodes.f.a(Unknown Source)
at com.prosysopc.ua.app.simserver.demonodes.c.b(Unknown Source)
at com.prosysopc.ua.server.r.b(Unknown Source)
at com.prosysopc.ua.server.NodeManagerTable.b(Unknown Source)
at com.prosysopc.ua.server.c.a(Unknown Source)
at com.prosysopc.ua.server.c.a(Unknown Source)
at com.prosysopc.ua.server.c.onHistoryUpdate(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.opcfoundation.ua.application.ServiceHandlerComposition$1.serve(Unknown Source)
at org.opcfoundation.ua.application.ServiceHandlerComposition.serve(Unknown Source)
at org.opcfoundation.ua.transport.tcp.nio.OpcTcpServerSecureChannel.handleSecureMessage(Unknown Source)
at org.opcfoundation.ua.transport.tcp.nio.OpcTcpServerConnection.handleSecureMessage(Unknown Source)
at org.opcfoundation.ua.transport.tcp.nio.OpcTcpServerConnection$4.onMessageComplete(Unknown Source)
at org.opcfoundation.ua.transport.tcp.nio.SecureInputMessageBuilder.fireComplete(Unknown Source)
at org.opcfoundation.ua.transport.tcp.nio.SecureInputMessageBuilder.setMessage(Unknown Source)
at org.opcfoundation.ua.transport.tcp.nio.SecureInputMessageBuilder$1.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)

at org.opcfoundation.ua.transport.impl.AsyncResultImpl.waitForResult(Unknown Source)
at org.opcfoundation.ua.transport.tcp.io.SecureChannelTcp.serviceRequest(Unknown Source)
at org.opcfoundation.ua.transport.tcp.io.SecureChannelTcp.serviceRequest(Unknown Source)
at org.opcfoundation.ua.application.SessionChannel.serviceRequest(Unknown Source)
at org.opcfoundation.ua.transport.ChannelService.HistoryUpdate(Unknown Source)
… 13 more

February 9, 2016
12:12, EET
Avatar
Bjarne Boström
Moderator
Moderators
Forum Posts: 1032
Member Since:
April 3, 2012
sp_UserOfflineSmall Offline

Hi,

Thank for noticing. Technically it is the same implentation as in SampleConsoleServer, so there must be a bug.

– Bjarne

February 9, 2016
12:18, EET
Avatar
Bjarne Boström
Moderator
Moderators
Forum Posts: 1032
Member Since:
April 3, 2012
sp_UserOfflineSmall Offline

Seems there is implementation bug in the ValueHistory sample class which I used when I made the simulation server. Will be fixed in future releases.

– Bjarne

February 9, 2016
12:38, EET
Avatar
aSaunders925
Member
Members
Forum Posts: 8
Member Since:
January 8, 2016
sp_UserOfflineSmall Offline

Is there a workaround that I can use?

February 9, 2016
13:05, EET
Avatar
Bjarne Boström
Moderator
Moderators
Forum Posts: 1032
Member Since:
April 3, 2012
sp_UserOfflineSmall Offline

Not for Simulation Server. It will be fixed eventually when we make new release from it.

If you have the SDK, you can change the ValueHistory class in the SampleConsoleServer example.

– Bjarne

Forum Timezone: Europe/Helsinki

Most Users Ever Online: 1919

Currently Online:
16 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: 729

Moderators: 7

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1529

Posts: 6471

Newest Members:

PromotionToold, HypromeImpupe, toneylapham544, rondawolinski7, Marypof5711, roycedelargie91, kourtneyquisenbe, ellis87832073466, zkxwilliemae, gabriellabachus

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

Administrators: admin: 1