# Getting error while OPCUA gateway address space scanning

**URL:** <https://community.cumulocity.com/t/getting-error-while-opcua-gateway-address-space-scanning/4960>\
**Category:** Forum\
**Tags:** device-connectivity, cumulocity\
**Created:** [December 20, 2022, 4:46am UTC](https://community.cumulocity.com/t/getting-error-while-opcua-gateway-address-space-scanning/4960 "2022-12-20T04:46:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vachaspati\_Diwevedi1](https://avatars.discourse-cdn.com/v4/letter/v/5fc32e/32.png) [@vachaspati\_Diwevedi1](https://community.cumulocity.com/u/vachaspati_Diwevedi1)\
**Post date:** [December 20, 2022, 4:46am UTC](https://community.cumulocity.com/t/getting-error-while-opcua-gateway-address-space-scanning/4960/1 "2022-12-20T04:46:25Z")

</div>

#### What product/components do you use and which version/fix level are you on?

Cumulocity IoT OPCUA Gateway agent 10.14

#### Is your question related to the free trial, or to a production (customer) instance?

#### What are you trying to achieve? Please describe it in detail.

Initial OPCUA address spaces scanning failed

#### Do you get any error messages? Please provide a **full error** message screenshot and log file.

Below find the error while scanning the address spaces.

2022-12-20 20:38:57.556 ERROR 11846 — [background-13] c.c.o.c.g.o.h.ScanAddressSpaceHandler : Could not finish address space operation due to client exception.

com.cumulocity.opcua.client.exception.OpcuaClientException: Unable to perform scanning address space, quick: false  
at com.cumulocity.opcua.client.OpcuaAddressSpaceScanner.scan(OpcuaAddressSpaceScanner.java:57)  
at com.cumulocity.opcua.client.OpcuaClientImpl.scan(OpcuaClientImpl.java:342)  
at com.cumulocity.opcua.client.gateway.AddressSpaceScanner.forcedScan(AddressSpaceScanner.java:57)  
at com.cumulocity.opcua.client.gateway.AddressSpaceScanner.scan(AddressSpaceScanner.java:51)  
at com.cumulocity.opcua.client.gateway.operation.handler.ScanAddressSpaceHandler.handleInternal(ScanAddressSpaceHandler.java:127)  
at com.cumulocity.opcua.client.gateway.operation.handler.ScanAddressSpaceHandler.handleInternal(ScanAddressSpaceHandler.java:40)  
at com.cumulocity.opcua.client.gateway.operation.handler.base.OperationHandler.handle(OperationHandler.java:70)  
at com.cumulocity.opcua.client.gateway.operation.OperationExecutor.executeOperation(OperationExecutor.java:170)  
at com.cumulocity.opcua.client.gateway.operation.OperationExecutor.lambda$execute$1(OperationExecutor.java:136)  
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:829)  
Caused by: java.lang.RuntimeException: Unable to [get] node: ns=14;s=Y=ac:.Attributes;B=ac:.Attributes;S=.Attributes;  
at com.cumulocity.opcua.client.BaseAddressSpaceScanner.doWithRetries(BaseAddressSpaceScanner.java:76)  
at com.cumulocity.opcua.client.OpcuaAddressSpaceFullScanner.scanNext(OpcuaAddressSpaceFullScanner.java:77)  
at com.cumulocity.opcua.client.OpcuaAddressSpaceScanner.lambda$triggerScan$0(OpcuaAddressSpaceScanner.java:84)  
at com.cumulocity.opcua.client.OpcuaAddressSpaceScanner.scanWithHeartBeat(OpcuaAddressSpaceScanner.java:94)  
at com.cumulocity.opcua.client.OpcuaAddressSpaceScanner.triggerScan(OpcuaAddressSpaceScanner.java:84)  
at com.cumulocity.opcua.client.OpcuaAddressSpaceScanner.scan(OpcuaAddressSpaceScanner.java:51)  
… 11 common frames omitted  
Caused by: java.lang.NullPointerException: null  
at com.prosysopc.ua.AbstractOptionSetDataType.computeBuiltInTypeValue(SourceFile:284)  
at com.prosysopc.ua.stack.core.AccessLevelType.getAsBuiltInType(SourceFile:82)  
at com.prosysopc.ua.client.nodes.UaVariableImpl.getAttributes(SourceFile:581)  
at com.prosysopc.ua.client.nodes.UaVariableImpl.getAttributes(SourceFile:186)  
at com.cumulocity.opcua.client.OpcuaAddressSpaceReader.setAttributes(OpcuaAddressSpaceReader.java:94)  
at com.cumulocity.opcua.client.OpcuaAddressSpaceReader.getNode(OpcuaAddressSpaceReader.java:58)  
at com.cumulocity.opcua.client.OpcuaAddressSpaceReader.getNode(OpcuaAddressSpaceReader.java:32)  
at com.cumulocity.opcua.client.OpcuaAddressSpaceFullScanner.lambda$scanNext$1(OpcuaAddressSpaceFullScanner.java:74)  
at com.cumulocity.opcua.client.BaseAddressSpaceScanner.doWithRetries(BaseAddressSpaceScanner.java:58)  
… 16 common frames omitted

#### Have you installed all the latest fixes for the products and systems you are using?

yes

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/system/32/31990_2.png) [@system](https://community.cumulocity.com/u/system)\
**Post date:** [June 18, 2023, 4:47am UTC](https://community.cumulocity.com/t/getting-error-while-opcua-gateway-address-space-scanning/4960/2 "2023-06-18T04:47:19Z")

</div>

Closed on June 18, 2023, 4:47am UTC

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.
