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
Bad_OutOfMemory when connecting to Wago 750-8202
July 11, 2017
17:06, EEST
Avatar
Thomas W.
Member
Members
Forum Posts: 7
Member Since:
April 17, 2015
sp_UserOfflineSmall Offline

Hi,

I try to connect to a Wago SPS (750-8202) but I always get an exception: Bad_OutOfMemory (0x80030000) “Not enough memory to complete the operation.”
Same is true for the Prosys OPC UA Client. When I use the UaExpert as client or Eclipse Milo as SDK it works.

I try to connect with the NONE:NONE profile and tried to turn off every additional feature like a status listener.

I have no clue how I proceed. Do you have any idea what could cause the failure? Did you coincidentally tested the SDK with a WAGO SPS?

Here is the stack trace….

15:50:28,610 INFO [ApplicationIdentity] com.prosysopc.ua.ApplicationIdentity.loadOrCreateKeyPair(?:?) – Reading application certificate from C:\work\xyz.der
15:50:28,673 INFO [ApplicationIdentity] com.prosysopc.ua.ApplicationIdentity.loadOrCreateKeyPair(?:?) – Reading private key from keystore C:\work\xyz.pem
15:50:28,688 DEBUG [CryptoUtil] org.opcfoundation.ua.utils.CryptoUtil.(?:?) – CryptoUtil init
15:50:28,704 DEBUG [CryptoUtil] org.opcfoundation.ua.utils.CryptoUtil.(?:?) – CryptoUtil init: random=java.security.SecureRandom@2b9ed6da
15:50:28,735 DEBUG [CryptoUtil] org.opcfoundation.ua.utils.CryptoUtil.getSecurityProviderName(?:?) – Providers=[SUN version 1.8, SunRsaSign version 1.8, SunEC version 1.8, SunJSSE version 1.8, SunJCE version 1.8, SunJGSS version 1.8, SunSASL version 1.8, XMLDSig version 1.8, SunPCSC version 1.8, SunMSCAPI version 1.8]
15:50:29,063 INFO [CryptoUtil] org.opcfoundation.ua.utils.CryptoUtil.hasClass(?:?) – SecurityProvider initialized from org.bouncycastle.jce.provider.BouncyCastleProvider
15:50:29,063 INFO [CryptoUtil] org.opcfoundation.ua.utils.CryptoUtil.getSecurityProviderName(?:?) – Using SecurityProvider BC
15:50:29,086 DEBUG [ApplicationIdentity] com.prosysopc.ua.ApplicationIdentity.loadOrCreateKeyPair(?:?) – Read private key in PEM format
15:50:29,103 INFO [ApplicationIdentity] com.prosysopc.ua.ApplicationIdentity.loadCertificate(?:?) – HTTPS certificate loaded from target\test\PKI\private\xyz.der
15:50:29,103 DEBUG [ApplicationIdentity] com.prosysopc.ua.ApplicationIdentity.loadCertificate(?:?) – Reading private key in PEM format
15:50:29,107 INFO [ApplicationIdentity] com.prosysopc.ua.ApplicationIdentity.loadCertificate(?:?) – HTTPS private key loaded from target\test\PKI\private\xyz.pem
15:50:29,107 TRACE [UaClient] com.prosysopc.ua.client.UaClient.getSession(?:?) – getSession: sessionChannel=null
15:50:31,084 DEBUG [UaClient] com.prosysopc.ua.client.UaClient.connect(?:?) – connect
15:50:31,084 TRACE [UaClient] com.prosysopc.ua.client.UaClient.getSession(?:?) – getSession: sessionChannel=null
15:50:32,250 DEBUG [UaClient] com.prosysopc.ua.client.UaClient.discoverEndpoints(?:?) – discoverEndpoints: connectUri=opc.tcp://10.53.7.99:4840 protocols=[opc.tcp]
15:50:32,281 DEBUG [SecureChannelTcp] org.opcfoundation.ua.transport.tcp.io.SecureChannelTcp.initialize(?:?) – initialize: url=opc.tcp://10.53.7.99:4840
15:50:32,297 TRACE [SecureChannelTcp] org.opcfoundation.ua.transport.tcp.io.SecureChannelTcp.initialize(?:?) – initialize: settings=description=EndpointDescription: EndpointDescription
EndpointUrl=opc.tcp://10.53.7.99:4840
Server=null
ServerCertificate=null
SecurityMode=MessageSecurityMode
name=None
ordinal=1
SecurityPolicyUri=http://opcfoundation.org/UA/SecurityPolicy#None
UserIdentityTokens=null
TransportProfileUri=null
SecurityLevel=null
, configuration=EndpointConfiguration: EndpointConfiguration
OperationTimeout=120000
UseBinaryEncoding=true
MaxStringLength=65535
MaxByteStringLength=1048560
MaxArrayLength=65535
MaxMessageSize=4194240
MaxBufferSize=65535
ChannelLifetime=120000
SecurityTokenLifetime=3600000
, namespaceUris=null, opctcpSettings=org.opcfoundation.ua.transport.tcp.io.OpcTcpSettings@29caf222, httpsSettings=org.opcfoundation.ua.transport.https.HttpsSettings@46cf05f7
15:50:32,328 DEBUG [SecureChannelTcp] org.opcfoundation.ua.transport.tcp.io.SecureChannelTcp.open(?:?) – open
15:50:32,328 INFO [TcpConnection] org.opcfoundation.ua.transport.tcp.io.TcpConnection.open(?:?) – /10.53.7.99:4840 Connecting
15:50:32,328 DEBUG [TcpConnection] org.opcfoundation.ua.transport.tcp.io.TcpConnection.open(?:?) – /10.53.7.99:4840 Socket connected
15:50:32,359 INFO [TcpConnection] org.opcfoundation.ua.transport.tcp.io.TcpConnection.open(?:?) – /10.53.7.99:4840 Connected
15:50:32,359 DEBUG [TcpConnection] org.opcfoundation.ua.transport.tcp.io.TcpConnection.open(?:?) – Creating ReadThread
15:50:32,375 DEBUG [SecureChannelTcp] org.opcfoundation.ua.transport.tcp.io.SecureChannelTcp.createSecureChannel(?:?) – createSecureChannel: renew=false channel=org.opcfoundation.ua.transport.tcp.io.TcpConnection@18e8473e
15:50:32,375 DEBUG [SecureChannelTcp] org.opcfoundation.ua.transport.tcp.io.SecureChannelTcp.createSecureChannel(?:?) – createSecureChannel: requestId=1
15:50:32,375 DEBUG [CryptoUtil] org.opcfoundation.ua.utils.CryptoUtil.createNonce(?:?) – createNonce: bytes=0
15:50:32,375 DEBUG [SecureChannelTcp] org.opcfoundation.ua.transport.tcp.io.SecureChannelTcp.createSecureChannel(?:?) – tokenLifetime: 3600000
15:50:32,375 DEBUG [TcpConnection] org.opcfoundation.ua.transport.tcp.io.TcpConnection.sendRequest(?:?) – sendRequest: socket=Socket[addr=/10.53.7.99,port=4840,localport=49589]
15:50:32,375 DEBUG [TcpConnection] org.opcfoundation.ua.transport.tcp.io.TcpConnection.sendRequest(?:?) – sendRequest: 0 Sending Request rid:1
15:50:32,375 TRACE [TcpConnection] org.opcfoundation.ua.transport.tcp.io.TcpConnection.sendRequest(?:?) – sendrequest: request=OpenSecureChannelRequest
RequestHeader=null
ClientProtocolVersion=0
RequestType=SecurityTokenRequestType
name=Issue
ordinal=0
SecurityMode=MessageSecurityMode
name=None
ordinal=1
ClientNonce=[0] 0x
RequestedLifetime=3600000

15:50:32,375 DEBUG [TcpConnection] org.opcfoundation.ua.transport.tcp.io.TcpConnection.sendRequest(?:?) – sendRequest: token=null
15:50:32,375 DEBUG [TcpConnection] org.opcfoundation.ua.transport.tcp.io.TcpConnection.sendRequest(?:?) – sendRequest: keySize=0
15:50:32,390 TRACE [ChunkFactory] org.opcfoundation.ua.transport.tcp.impl.ChunkFactory.(?:?) – ChunkFactory: class=class org.opcfoundation.ua.transport.tcp.impl.ChunkFactory$AsymmMsgChunkFactory
15:50:32,390 TRACE [ChunkFactory] org.opcfoundation.ua.transport.tcp.impl.ChunkFactory$AsymmMsgChunkFactory.allocate(?:?) – AsymmMSGChunkFactory.allocate: chunkSize=132
15:50:32,390 DEBUG [TcpConnection] org.opcfoundation.ua.transport.tcp.io.TcpConnection.sendAsymmChunk(?:?) – SecureChannelId=0 SequenceNumber=1, RequestId=1
15:50:32,390 DEBUG [ChunkAsymmEncryptSigner] org.opcfoundation.ua.transport.tcp.impl.ChunkAsymmEncryptSigner.run(?:?) – SecurityMode in asymm enc: 1
15:50:32,390 TRACE [ChunkAsymmEncryptSigner] org.opcfoundation.ua.transport.tcp.impl.ChunkAsymmEncryptSigner.run(?:?) – getPaddingSize: chunk=[132] 0x
4f504e4684000000000000002f000000687474703a2f2f6f7063666f756e646174696f6e2e6f72672f55412f5365637572697479506f6c696379234e6f6e65ff
ffffffffffffff01000000010000000100be01000000000000000000000000000000000000ffffffff0000000000000000000000000000000100000000000000
80ee3600
15:50:32,406 WARN [TcpConnection] org.opcfoundation.ua.transport.tcp.io.TcpConnection$ReadThread.run(?:?) – /10.53.7.99:4840 Error
org.opcfoundation.ua.common.ServiceResultException: Bad_OutOfMemory (0x80030000) “Not enough memory to complete the operation.”
at org.opcfoundation.ua.transport.tcp.io.TcpConnection$ReadThread.run(Unknown Source)
15:50:32,437 INFO [TcpConnection] org.opcfoundation.ua.transport.tcp.io.TcpConnection.close(?:?) – /10.53.7.99:4840 Closed
15:50:34,018 DEBUG [SecureChannelTcp] org.opcfoundation.ua.transport.tcp.io.SecureChannelTcp.close(?:?) – requests.clear()
15:50:34,018 DEBUG [UaClient] com.prosysopc.ua.client.UaClient.discoverEndpoints(?:?) – Connection failed
org.opcfoundation.ua.common.ServiceResultException: Bad_OutOfMemory (0x80030000) “Not enough memory to complete the operation.”
at org.opcfoundation.ua.transport.tcp.io.TcpConnection$ReadThread.run(Unknown Source)
Disconnected from the target VM, address: ‘127.0.0.1:49581’, transport: ‘socket’

Regards,
Thomas

July 12, 2017
11:21, EEST
Avatar
Jouni Aro
Moderator
Moderators
Forum Posts: 1026
Member Since:
December 21, 2011
sp_UserOfflineSmall Offline

Looks like the secure channel opening phase causes an OutOfMemory in the server for some reason. So you will need to find out why the server fails to the connection attempt. I don’t remember us testing against any WAGO devices at the IOP workshops and they don’t have any OPC UA certified products so far.

Forum Timezone: Europe/Helsinki

Most Users Ever Online: 1919

Currently Online:
23 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: 730

Moderators: 7

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1529

Posts: 6471

Newest Members:

toneylapham544, rondawolinski7, Marypof5711, roycedelargie91, kourtneyquisenbe, ellis87832073466, zkxwilliemae, gabriellabachus, Deakin, KTP25Zof

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

Administrators: admin: 1