08-17-2018 12:12 PM - edited 02-04-2024 4:00 AM
Hello,
i`am trying to connect a OPC-UA Server using Gateway Edge.
The server is public available via opc.tcp://opcuademo.sterfive.com:26543.
The Server will be parsed and the attributes will be created on the iot 4.0 services.
Unfortunately I got the following error.
000,"generatePingReq":false,"tolerance":0.5,"useStdDeviation":false,"strokingTime":20000,"missingAfterMiss":5,"burstDelta":5000,"mac":null,"nsap":null,"range":0,"profileId":0,"objectId":null} - Total number of rfd contexts is: 1
17Aug 12:50:50,015 [com.sap.iotservices.gateway.response.manager.impl.ResponseManager] DEBUG (ResponseManager:552) - Managed response: ResponseInfo [message=, status=SUCCESS, enqueueTime=35530505069403, queueTime=77853723, processingTime=218054840]
17Aug 12:50:50,015 [DiscoveryManager] INFO (OpcuaUtils:250) - Device created. Adding sensors...
17Aug 12:50:50,191 [ua-shared-pool-2] ERROR (UaTcpClientMessageHandler:556) - Error decoding symmetric message: readerIndex(50) + length(1) exceeds writerIndex(50): CompositeByteBuf(ridx: 50, widx: 50, cap: 50, components=1)
java.lang.IndexOutOfBoundsException: readerIndex(50) + length(1) exceeds writerIndex(50): CompositeByteBuf(ridx: 50, widx: 50, cap: 50, components=1)
at io.netty.buffer.AbstractByteBuf.checkReadableBytes0(AbstractByteBuf.java:1395) ~[netty-buffer-4.1.5.Final.jar:4.1.5.Final]
at io.netty.buffer.AbstractByteBuf.readByte(AbstractByteBuf.java:687) ~[netty-buffer-4.1.5.Final.jar:4.1.5.Final]
at io.netty.buffer.SwappedByteBuf.readByte(SwappedByteBuf.java:531) ~[netty-buffer-4.1.5.Final.jar:4.1.5.Final]
at org.eclipse.milo.opcua.stack.core.serialization.binary.BinaryDecoder.decodeDiagnosticInfo(BinaryDecoder.java:356) ~[stack-core-0.1.2.jar:0.1.2]
at org.eclipse.milo.opcua.stack.core.serialization.binary.BinaryDecoder.decodeArray(BinaryDecoder.java:428) ~[stack-core-0.1.2.jar:0.1.2]
at org.eclipse.milo.opcua.stack.core.types.structured.ReadResponse.decode(ReadResponse.java:87) ~[stack-core-0.1.2.jar:0.1.2]
at org.eclipse.milo.opcua.stack.core.serialization.binary.BinaryDecoder.decodeMessage(BinaryDecoder.java:388) ~[stack-core-0.1.2.jar:0.1.2]
at org.eclipse.milo.opcua.stack.client.handlers.UaTcpClientMessageHandler.lambda$onSecureMessage$20(UaTcpClientMessageHandler.java:533) ~[stack-client-0.1.2.jar:0.1.2]
at org.eclipse.milo.opcua.stack.core.channel.SerializationQueue.lambda$decode$1(SerializationQueue.java:58) ~[stack-core-0.1.2.jar:0.1.2]
at org.eclipse.milo.opcua.stack.core.util.ExecutionQueue$PollAndExecute.run(ExecutionQueue.java:107) [stack-core-0.1.2.jar:0.1.2]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_161]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_161]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_161]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_161]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_161]
....
So at the Moment no values will be transferred to the Cloud (only the metadata).
Is there anyone who could help?
Best regards,
Rainer
Perfect. Got it .
Last question -
using this , do we still need to create DB inside SAP account ??
Currently DB gets off and is active only for 12 hours, I am thinking to make it external.
Any suggestions on where the data is getting stored ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Can anyone explain me why we are using IOT Gate Edge service ? when we can directly call via rest service ?
Currently In my scenario I am doing below stuff-
Sensors - Node - SAP CL ( AWS account )
I am not sure and would like to understand this Gate Edge service or might be terminology is difference , anyone can correct me ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Rainer,
I was able to perform some dedicated tests and reproduce the issue. The analysis showed that the root cause is related to the Milo issue you posted - thanks for reporting this information!
We are working to include a fix in one of the next releases of IoT Service.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Flavio,
sorry for the delay but I have been on vacation.
do you believe this is a suitable answer? As we are working on some customer related activities, this won't help us in introducing the solution into the sme market.
So please help to solve that issue.
Or should I open an oss ticket?
BR,
Rainer
Hello Rainer,
have you created the data model prior to starting the Gateway? Please have a look at the tutorial.
Best regards,
Michael
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
there is also a thread on GitHub regarding milo https://github.com/eclipse/milo/issues/215.
Could you check that as well?
Thanks for your help.
Rainer
User | Count |
---|---|
78 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.