Subscribe

OCI 7.2.3 Inventory of switch datasource fails with nullpointerexception

Hello,

I've upgraded to OCI 7.2.3. Now I'm getting an internal error (nullpointer exception) for a switch data source.
The same config worked fine with OCI 6.4.2.

What's wrong with that?
Any help is appreciated.

Thanks,
AEBS

It is configured as follows:

Settings:
    Name:   <name>
    Acquisition Unit: local
    Type: Qlogic FC Switch (SNMP)
    Types of data collected: Inventory
    Comments: <none>
    Inventory recent status: Internal error: Error
    
Configuration:
    SANSurfer Switch: <name>
    SNMP Version: V2
    SNMP Community String: public
    User Name: admin
    Password: <password>
    
Advanced configuration
    Inventory Poll Interval (min): 15
    SNMP Auth Protocol: MD5
    SNMP Retries: 1
    SNMP Timeout: 5000
    Enable Trapping: <checked>
    Minimum Time Between Traps (sec): 10
    Fabric Name: <left blank>

Test:
Configuration Successfully executed test command on device.

2017-02-10 18:38:11,419  INFO [DSM-pool-2-thread-10018] com.onaro.sanscreen.acquisition.framework.datasource.BaseDataSource (BaseDataSource.java:263) - [storageperformance] xxxfiler10n2 - Started acquisition
2017-02-10 18:38:11,687  INFO [DSM-pool-2-thread-10018/xxxfiler10n2 [storageperformance]] com.onaro.sanscreen.acquisition.foundation.datasource.dependant.BaseFoundationDependantDataSourceSampleListener (BaseFoundationDependantDataSourceSampleListener.java:47) - [storageperformance] xxxfiler10n2 - sampleSuccessful
2017-02-10 18:38:11,739  INFO [DSM-pool-2-thread-10018] com.onaro.sanscreen.acquisition.framework.datasource.BaseDataSource (BaseDataSource.java:277) - [storageperformance] xxxfiler10n2 - Finished acquisition (320 ms)

After hitting the "Poll again" button:

2017-02-10 18:39:06,503  INFO [DSM-pool-2-thread-10018] com.onaro.sanscreen.acquisition.framework.datasource.BaseDataSource (BaseDataSource.java:263) - [hostvirtualization] xxxvmvcs - Started acquisition
2017-02-10 18:39:28,098  WARN [DSM-pool-2-thread-10018/xxxvmvcs [hostvirtualization]/vmPerformance-pool-5007-thread-1] com.onaro.sanscreen.acquisition.datasource.vmware.VmPerformanceTask (VmPerformanceTask.java:105) - No VM performance context available for host host-3450
2017-02-10 18:39:29,001  WARN [DSM-pool-2-thread-10018/xxxvmvcs [hostvirtualization]/vmPerformance-pool-5007-thread-4] com.onaro.sanscreen.acquisition.datasource.vmware.VmPerformanceTask (VmPerformanceTask.java:105) - No VM performance context available for host host-3447
2017-02-10 18:39:29,727  INFO [DSM-pool-2-thread-10018/xxxvmvcs [hostvirtualization]] com.onaro.sanscreen.acquisition.datasource.vmware.VmPerformance (VmPerformance.java:104) - [hostvirtualization] xxxvmvcs - Finished performance sample (23 secs)
2017-02-10 18:39:29,727  INFO [DSM-pool-2-thread-10018/xxxvmvcs [hostvirtualization]] com.onaro.sanscreen.acquisition.foundation.datasource.dependant.BaseFoundationDependantDataSourceSampleListener (BaseFoundationDependantDataSourceSampleListener.java:47) - [hostvirtualization] xxxvmvcs - sampleSuccessful
2017-02-10 18:39:29,767  INFO [DSM-pool-2-thread-10018] com.onaro.sanscreen.acquisition.framework.datasource.BaseDataSource (BaseDataSource.java:277) - [hostvirtualization] xxxvmvcs - Finished acquisition (23264 ms)
2017-02-10 18:39:54,374  INFO [DSM-pool-2-thread-10018] com.onaro.sanscreen.acquisition.framework.datasource.BaseDataSource (BaseDataSource.java:263) - [foundation] xxxswd16a - Started acquisition
2017-02-10 18:39:55,930 FATAL [DSM-pool-2-thread-10018/xxxswd16a [foundation]] com.onaro.sanscreen.acquisition.framework.datasource.BaseDataSource (BaseDataSource.java:745) - [foundation] xxxswd16a - Runtime exception: null
java.lang.NullPointerException
    at com.onaro.sanscreen.acquisition.qlogic_sansurfer.datasource.QlogicDatasource.createSwitchPorts(QlogicDatasource.java:506)
    at com.onaro.sanscreen.acquisition.qlogic_sansurfer.datasource.QlogicDatasource.createSwitches(QlogicDatasource.java:211)
    at com.onaro.sanscreen.acquisition.qlogic_sansurfer.datasource.QlogicDatasource.queryFabric(QlogicDatasource.java:130)
    at com.onaro.sanscreen.acquisition.qlogic_sansurfer.datasource.QlogicDatasource.doFoundation(QlogicDatasource.java:110)
    at com.onaro.sanscreen.acquisition.foundation.datasource.BaseFoundationPackage.pollNow(BaseFoundationPackage.java:195)
    at com.onaro.sanscreen.acquisition.framework.datasource.BaseDataSource.run(BaseDataSource.java:422)
    at com.onaro.sanscreen.acquisition.framework.datasource.BaseDataSource.runInitPackageContext(BaseDataSource.java:411)
    at com.onaro.sanscreen.acquisition.framework.datasource.BaseDataSource.runInitClassLoader(BaseDataSource.java:392)
    at com.onaro.sanscreen.acquisition.framework.datasource.BaseDataSource.runNotifyListeners(BaseDataSource.java:367)
    at com.onaro.sanscreen.acquisition.framework.datasource.BaseDataSource.runInitLog(BaseDataSource.java:344)
    at com.onaro.sanscreen.acquisition.framework.datasource.BaseDataSource.runInitRecordingSession(BaseDataSource.java:309)
    at com.onaro.sanscreen.acquisition.framework.datasource.BaseDataSource.runInitThreadName(BaseDataSource.java:294)
    at com.onaro.sanscreen.acquisition.framework.datasource.BaseDataSource.runWithProfiler(BaseDataSource.java:273)
    at com.onaro.sanscreen.acquisition.framework.datasource.BaseDataSource.run(BaseDataSource.java:249)
    at com.onaro.sanscreen.acquisition.framework.mgmt.DataSourceManager$PollLogic.run(DataSourceManager.java:734)
    at com.onaro.sanscreen.acquisition.framework.mgmt.scheduler.SchedulerTask.runLogic(SchedulerTask.java:80)
    at com.onaro.sanscreen.acquisition.framework.mgmt.scheduler.Scheduler$LogicWrapper.run(Scheduler.java:256)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    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)
2017-02-10 18:39:55,931 ERROR [DSM-pool-2-thread-10018/xxxswd16a [foundation]] com.onaro.sanscreen.acquisition.framework.datasource.BaseDataSource (DataSourceErrorException.java:224) - xxxswd16a [Internal error] - Error (Error)
com.onaro.sanscreen.acquisition.framework.datasource.DataSourceErrorException: Error
    at com.onaro.sanscreen.acquisition.framework.datasource.DataSourceErrorException.createWithEnhanced(DataSourceErrorException.java:70)
    at com.onaro.sanscreen.acquisition.framework.datasource.BaseDataSource.handleThrowable(BaseDataSource.java:755)
    at com.onaro.sanscreen.acquisition.framework.datasource.BaseDataSource.run(BaseDataSource.java:455)
    at com.onaro.sanscreen.acquisition.framework.datasource.BaseDataSource.runInitPackageContext(BaseDataSource.java:411)
    at com.onaro.sanscreen.acquisition.framework.datasource.BaseDataSource.runInitClassLoader(BaseDataSource.java:392)
    at com.onaro.sanscreen.acquisition.framework.datasource.BaseDataSource.runNotifyListeners(BaseDataSource.java:367)
    at com.onaro.sanscreen.acquisition.framework.datasource.BaseDataSource.runInitLog(BaseDataSource.java:344)
    at com.onaro.sanscreen.acquisition.framework.datasource.BaseDataSource.runInitRecordingSession(BaseDataSource.java:309)
    at com.onaro.sanscreen.acquisition.framework.datasource.BaseDataSource.runInitThreadName(BaseDataSource.java:294)
    at com.onaro.sanscreen.acquisition.framework.datasource.BaseDataSource.runWithProfiler(BaseDataSource.java:273)
    at com.onaro.sanscreen.acquisition.framework.datasource.BaseDataSource.run(BaseDataSource.java:249)
    at com.onaro.sanscreen.acquisition.framework.mgmt.DataSourceManager$PollLogic.run(DataSourceManager.java:734)
    at com.onaro.sanscreen.acquisition.framework.mgmt.scheduler.SchedulerTask.runLogic(SchedulerTask.java:80)
    at com.onaro.sanscreen.acquisition.framework.mgmt.scheduler.Scheduler$LogicWrapper.run(Scheduler.java:256)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    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)
Caused by: java.lang.NullPointerException
    at com.onaro.sanscreen.acquisition.qlogic_sansurfer.datasource.QlogicDatasource.createSwitchPorts(QlogicDatasource.java:506)
    at com.onaro.sanscreen.acquisition.qlogic_sansurfer.datasource.QlogicDatasource.createSwitches(QlogicDatasource.java:211)
    at com.onaro.sanscreen.acquisition.qlogic_sansurfer.datasource.QlogicDatasource.queryFabric(QlogicDatasource.java:130)
    at com.onaro.sanscreen.acquisition.qlogic_sansurfer.datasource.QlogicDatasource.doFoundation(QlogicDatasource.java:110)
    at com.onaro.sanscreen.acquisition.foundation.datasource.BaseFoundationPackage.pollNow(BaseFoundationPackage.java:195)
    at com.onaro.sanscreen.acquisition.framework.datasource.BaseDataSource.run(BaseDataSource.java:422)
    ... 16 more
2017-02-10 18:39:55,954  INFO [DSM-pool-2-thread-10018] com.onaro.sanscreen.acquisition.framework.datasource.BaseDataSource (BaseDataSource.java:277) - [foundation] xxxswd16a - Finished acquisition (1580 ms)
2017-02-10 18:40:50,157  INFO [Force Acq Listener] com.onaro.sanscreen.acquisition.framework.mgmt.DataSourceManager (DataSourceManager.java:274) - xxxswd16a - Force acquisition
2017-02-10 18:40:50,160  INFO [DSM-pool-2-thread-10018] com.onaro.sanscreen.acquisition.framework.datasource.BaseDataSource (BaseDataSource.java:263) - [foundation] xxxswd16a - Started acquisition
2017-02-10 18:40:51,791 FATAL [DSM-pool-2-thread-10018/xxxswd16a [foundation]] com.onaro.sanscreen.acquisition.framework.datasource.BaseDataSource (BaseDataSource.java:745) - [foundation] xxxswd16a - Runtime exception: null
java.lang.NullPointerException
    at com.onaro.sanscreen.acquisition.qlogic_sansurfer.datasource.QlogicDatasource.createSwitchPorts(QlogicDatasource.java:506)
    at com.onaro.sanscreen.acquisition.qlogic_sansurfer.datasource.QlogicDatasource.createSwitches(QlogicDatasource.java:211)
    at com.onaro.sanscreen.acquisition.qlogic_sansurfer.datasource.QlogicDatasource.queryFabric(QlogicDatasource.java:130)
    at com.onaro.sanscreen.acquisition.qlogic_sansurfer.datasource.QlogicDatasource.doFoundation(QlogicDatasource.java:110)
    at com.onaro.sanscreen.acquisition.foundation.datasource.BaseFoundationPackage.pollNow(BaseFoundationPackage.java:195)
    at com.onaro.sanscreen.acquisition.framework.datasource.BaseDataSource.run(BaseDataSource.java:422)
    at com.onaro.sanscreen.acquisition.framework.datasource.BaseDataSource.runInitPackageContext(BaseDataSource.java:411)
    at com.onaro.sanscreen.acquisition.framework.datasource.BaseDataSource.runInitClassLoader(BaseDataSource.java:392)
    at com.onaro.sanscreen.acquisition.framework.datasource.BaseDataSource.runNotifyListeners(BaseDataSource.java:367)
    at com.onaro.sanscreen.acquisition.framework.datasource.BaseDataSource.runInitLog(BaseDataSource.java:344)
    at com.onaro.sanscreen.acquisition.framework.datasource.BaseDataSource.runInitRecordingSession(BaseDataSource.java:309)
    at com.onaro.sanscreen.acquisition.framework.datasource.BaseDataSource.runInitThreadName(BaseDataSource.java:294)
    at com.onaro.sanscreen.acquisition.framework.datasource.BaseDataSource.runWithProfiler(BaseDataSource.java:273)
    at com.onaro.sanscreen.acquisition.framework.datasource.BaseDataSource.run(BaseDataSource.java:249)
    at com.onaro.sanscreen.acquisition.framework.mgmt.DataSourceManager$PollLogic.run(DataSourceManager.java:734)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    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)
2017-02-10 18:40:51,792 ERROR [DSM-pool-2-thread-10018/xxxswd16a [foundation]] com.onaro.sanscreen.acquisition.framework.datasource.BaseDataSource (DataSourceErrorException.java:224) - xxxswd16a [Internal error] - Error (Error)
com.onaro.sanscreen.acquisition.framework.datasource.DataSourceErrorException: Error
    at com.onaro.sanscreen.acquisition.framework.datasource.DataSourceErrorException.createWithEnhanced(DataSourceErrorException.java:70)
    at com.onaro.sanscreen.acquisition.framework.datasource.BaseDataSource.handleThrowable(BaseDataSource.java:755)
    at com.onaro.sanscreen.acquisition.framework.datasource.BaseDataSource.run(BaseDataSource.java:455)
    at com.onaro.sanscreen.acquisition.framework.datasource.BaseDataSource.runInitPackageContext(BaseDataSource.java:411)
    at com.onaro.sanscreen.acquisition.framework.datasource.BaseDataSource.runInitClassLoader(BaseDataSource.java:392)
    at com.onaro.sanscreen.acquisition.framework.datasource.BaseDataSource.runNotifyListeners(BaseDataSource.java:367)
    at com.onaro.sanscreen.acquisition.framework.datasource.BaseDataSource.runInitLog(BaseDataSource.java:344)
    at com.onaro.sanscreen.acquisition.framework.datasource.BaseDataSource.runInitRecordingSession(BaseDataSource.java:309)
    at com.onaro.sanscreen.acquisition.framework.datasource.BaseDataSource.runInitThreadName(BaseDataSource.java:294)
    at com.onaro.sanscreen.acquisition.framework.datasource.BaseDataSource.runWithProfiler(BaseDataSource.java:273)
    at com.onaro.sanscreen.acquisition.framework.datasource.BaseDataSource.run(BaseDataSource.java:249)
    at com.onaro.sanscreen.acquisition.framework.mgmt.DataSourceManager$PollLogic.run(DataSourceManager.java:734)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    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)
Caused by: java.lang.NullPointerException
    at com.onaro.sanscreen.acquisition.qlogic_sansurfer.datasource.QlogicDatasource.createSwitchPorts(QlogicDatasource.java:506)
    at com.onaro.sanscreen.acquisition.qlogic_sansurfer.datasource.QlogicDatasource.createSwitches(QlogicDatasource.java:211)
    at com.onaro.sanscreen.acquisition.qlogic_sansurfer.datasource.QlogicDatasource.queryFabric(QlogicDatasource.java:130)
    at com.onaro.sanscreen.acquisition.qlogic_sansurfer.datasource.QlogicDatasource.doFoundation(QlogicDatasource.java:110)
    at com.onaro.sanscreen.acquisition.foundation.datasource.BaseFoundationPackage.pollNow(BaseFoundationPackage.java:195)
    at com.onaro.sanscreen.acquisition.framework.datasource.BaseDataSource.run(BaseDataSource.java:422)
    ... 14 more
2017-02-10 18:40:51,813  INFO [DSM-pool-2-thread-10018] com.onaro.sanscreen.acquisition.framework.datasource.BaseDataSource (BaseDataSource.java:277) - [foundation] xxxswd16a - Finished acquisition (1653 ms)

Re: OCI 7.2.3 Inventory of switch datasource fails with nullpointerexception

This is support case territory. It is hard to say why this is happening - we haven't made many enhancements to the Qlogic datasources as QLogic isn't really investing in that space.

 

However, between 6.4.x andd 7.2.x, we have made some changes in OCI in terms of what SNMP libraries we use, and how we model NPIV connectivity.

 

Is this OCI instance sending OCI ASUP? Across the OCI ASUP universe, I don't recall having seen any QLogic failures... against a tiny Qlogic install base, admittedly

 

Matt

Re: OCI 7.2.3 Inventory of switch datasource fails with nullpointerexception

Hello Matt,

 

thanks for your prompt replay.

No, the environment is without OCI ASUP.

 

Sometimes the problem sits in front of the computer, therefore I would like to double check the setup again.
Apart from general docu, can you advise other docu that could be helpful in finding wrong (file) versions, parmeters settings, etc.?

Or can some debug/trace settings be done to find out a direction to where I have to look at?

 

Thanks for your help

AEBS