- Community Home
- >
- Storage
- >
- Midrange and Enterprise Storage
- >
- HPE 3PAR StoreServ Storage
- >
- Java client or Python client
-
-
Forums
- Products
- Servers and Operating Systems
- Storage
- Software
- Services
- HPE GreenLake
- Company
- Events
- Webinars
- Partner Solutions and Certifications
- Local Language
- China - 简体中文
- Japan - 日本語
- Korea - 한국어
- Taiwan - 繁體中文
-
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
- HPE Blog, Austria, Germany & Switzerland
- Blog HPE, France
- HPE Blog, Italy
- HPE Blog, Japan
- HPE Blog, Middle East
- HPE Blog, Latin America
- HPE Blog, Russia
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
- HPE Blog, Poland
-
Blogs
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Blog, Latin America
- HPE Blog, Middle East
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
-
Information
- Community
- Welcome
- Getting Started
- FAQ
- Ranking Overview
- Rules of Participation
- Tips and Tricks
- Resources
- Announcements
- Email us
- Feedback
- Information Libraries
- Integrated Systems
- Networking
- Servers
- Storage
- Other HPE Sites
- Support Center
- Aruba Airheads Community
- Enterprise.nxt
- HPE Dev Community
- Cloud28+ Community
- Marketplace
-
Forums
-
Forums
-
Blogs
-
Information
-
English
- 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
- Email to a Friend
- 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
- Email to a Friend
- 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
- Email to a Friend
- 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
- Email to a Friend
- 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
Hewlett Packard Enterprise International
- Communities
- HPE Blogs and Forum
© Copyright 2022 Hewlett Packard Enterprise Development LP