- Community Home
- >
- Storage
- >
- Midrange and Enterprise Storage
- >
- HPE 3PAR StoreServ Storage
- >
- Java client or Python client
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-22-2021 12:53 AM - edited тАО07-22-2021 12:55 AM
тАО07-22-2021 12:53 AM - edited тАО07-22-2021 12:55 AM
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
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-25-2021 10:12 PM
тАО07-25-2021 10:12 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-29-2021 04:01 AM
тАО07-29-2021 04:01 AM
SolutionDear @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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-29-2021 04:05 AM
тАО07-29-2021 04:05 AM
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