HPE 3PAR StoreServ Storage
1753709 Members
4926 Online
108799 Solutions
New Discussion юеВ

Java client or Python client

 
SOLVED
Go to solution
Mickeyone456
Occasional Contributor

Java client or Python client

Hi all,

I am trying to connect to my 3par simulator which is up and running using Java client from HPE free sotfware. I manage to install all prerequisities. When I want to connect to my simulator I paste line

ant show -Dargs="https,s123.myplace.com,8080,abc,xyz"

with my corresponding parameters but there is an exception :

compile:

show:
[show] Exception: java.lang.NullPointerException: Cannot invoke "com.hp.hpsd.wsapi.accessor.APIVersion.print(java.io.PrintStream)" because the return value of "com.hp.hpsd.wsapi.accessor.APIVersion.getRepresentation(com.hp.hpsd.wsapi.accessor.APIAccessor)" is null
[show] java.lang.NullPointerException: Cannot invoke

"com.hp.hpsd.wsapi.accessor.APIVersion.print(java.io.PrintStream)" because the return value of "com.hp.hpsd.wsapi.accessor.APIVersion.getRepresentation(com.hp.hpsd.wsapi.accessor.APIAccessor)" is null
[show] at com.hp.hpsd.wsapi.accessor.APIAccessor.<init>(APIAccessor.java:121)
[show] at com.hp.hpsd.wsapi.examples.Show.addToAccList(Show.java:103)
[show] at com.hp.hpsd.wsapi.examples.Show.parseArgs(Show.java:146)
[show] at com.hp.hpsd.wsapi.examples.Show.main(Show.java:66)

I am not using https but http with port 8008 . What I might suspect that could be a problem is that WSAPI version of simulator is 1.5.3 but this WSAPI is said to be made for WSAPI 1.6.15. Is there a way solve this or it can be tested only with real 3PAR ?

and i would like to ask if the python client is usable or iis it considered unusable ?

Thanks

 

3 REPLIES 3
sbhat09
HPE Pro

Re: Java client or Python client

Hello @Mickeyone456,

The WSAPI version in simulator is older (1.5.3) and current version of WSAPI is 1.6.15. You can't change the wsapi version in the simulator.

3PAR simulator offers limited functionalities and compatibilities. You can't upgrade the OS and components. If you are stuck with SWAPI version mismatch, I don't think there is a fix for that. You can use the Python client with latest wsapi.

Regards,
Srinivas Bhat

 


I am an HPE Employee

Accept or Kudo

Mickeyone456
Occasional Contributor
Solution

Re: Java client or Python client

Dear  @sbhat09,

thank you for your response. With real 3PAR  I was able to get python client working. I wasn't so lucky with Java. I tried to do everything as in documentation and now it throws different error. I use https connection without enforcing trusted certificate. I have enabled all algortihms in java.security file. 

This is the output:

C:\Users\User\Desktop\wsapi-sdk-v1.6.3-20191202\Java>ant show -Dargs="https,IP adress,8080,xyz,xyz" with corresponsing parameters for my 3PAR.
Buildfile: C:\Users\User\Desktop\wsapi-sdk-v1.6.3-20191202\Java\build.xml

compile:

show:
[show] I/O exception: Connection reset

BUILD SUCCESSFUL
Total time: 2 seconds

sbhat09
HPE Pro

Re: Java client or Python client

Hello @Mickeyone456,

Cool. Great to know you could get Python client working.!!

Regards,
Srinivas Bhat

If you feel this was helpful please click the KUDOS! thumb below!
Note: All of my comments are my own and are not any official representation of HPE.


I am an HPE Employee

Accept or Kudo