Skip to content

java.lang.NullPointerException on vm listing/starting #2

@dpeddi-gen

Description

@dpeddi-gen

Hi,

To test this connector in my environment i had to unpack it and I had to pass the proxy in the java way, but I get an error listing the machines

C:\....\AzureVM>..\java\bin\java -Dhttps.proxyHost=proxy -Dhttps.prox
yPort=8080 -cp . com.smatechnologies.msazure.vm.connector.VmConnector -rg TestRG -t list
[18:13:27] [INFO ] -------------------------------------------------------------------------------------------------------
[18:13:27] [INFO ] Azure Connector                      : Version 1.0.0
[18:13:27] [INFO ] -------------------------------------------------------------------------------------------------------
[18:13:27] [INFO ] -rg    (Resource Group name)         : TestRG 
[18:13:27] [INFO ] -t     (task)                        : list
[18:13:29] [INFO ] [Correlation ID: *********************] Instance discovery was successful
[18:13:30] [INFO ] -------------------------------------------------------------------------------------------------------------
-----
[18:13:30] [INFO ] {0} : {1}
[18:13:30] [INFO ] -------------------------------------------------------------------------------------------------------------
-----
[18:13:30] [INFO ] Virtual Machine Name     Region              Current State                 IP Private     IP Public      OS T
ype
[18:13:30] [INFO ] -------------------------------------------------------------------------------------------------------------
-----
[18:13:31] [ERROR] java.lang.NullPointerException
        at com.smatechnologies.msazure.vm.connector.impl.VmConnectorImpl.processTaskRequest(VmConnectorImpl.java:155)
        at com.smatechnologies.msazure.vm.connector.VmConnector.main(VmConnector.java:97)

however Azure understand the command and starts/poweroff the machine correctly

The error appear on "-t start -vm testvm" as well

Regards

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions