Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
dpeddi-gen opened this issue Jun 16, 2020 · 0 comments
Open

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

dpeddi-gen opened this issue Jun 16, 2020 · 0 comments

Comments

@dpeddi-gen
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant