APC UPS Data Center & Enterprise Solutions Forum
Schneider, APC support forum to share knowledge about installation and configuration for Data Center and Business Power UPSs, Accessories, Software, Services.
Posted: 2021-06-28 06:52 PM . Last Modified: 2024-03-15 02:53 AM
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-06-28 06:52 PM . Last Modified: 2024-03-15 02:53 AM
Hi All,
I am trying to use the PowerChute Network Shutdown Configuration Utility to change the IP address. When I run the command I get this error:
C:\Program Files\PowerChute\lib>java -cp m11.jar;confutil.jar;..\comp\Notifier.jar;..\comp\CommandFileRunner.jar PCNSUtilApp
Configuration Utility Error: java.lang.NullPointerException
When I run the other command line I get this error:
C:\Program Files\PowerChute\lib>Java home dir\bin\java -cp m11.jar;confutil.jar;..comp\Notifier.jar;..\comp\CommandFileRunner.jar PCNSUtilApp
Exception in thread "main" java.lang.NoClassDefFoundError: home
Any help here would be great.
Thanks
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-06-28 06:53 PM . Last Modified: 2024-03-15 02:53 AM
Hello,
It works for me. The java I am using is 1.6.0-11. Attached is screenshot.
In this case, please check your current working directory and make sure you are at the
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-06-28 06:52 PM . Last Modified: 2024-03-15 02:53 AM
Don't know how I got it to work before, but I had to use this command to run it today:
java -cp comp/ds.jar:lib/confutil.jar:lib/m11.jar PCNSUtilApp
I found this out by including all the jar files in comp and lib, then removing them one by one until I was left with the essentials.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-06-28 06:52 PM . Last Modified: 2024-03-15 02:53 AM
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-06-28 06:52 PM . Last Modified: 2024-03-15 02:53 AM
It looks to me like the path to java.exe might not be in your environment varialbes. Can you try adding the path to java.exe if it is not there and execute the commands again. Another option might be using the full path to java.exe before entering the java -cp command. Please try these options and let me know the results.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-06-28 06:52 PM . Last Modified: 2024-03-15 02:53 AM
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-06-28 06:52 PM . Last Modified: 2024-03-15 02:53 AM
Hi Grenade,
No luck. I put the java in the environment variables list, I know the environment is working because when I just type java, I get a whole list of variables. The full path doesn't work either.
Any other ideas?
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-06-28 06:52 PM . Last Modified: 2024-03-15 02:53 AM
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-06-28 06:52 PM . Last Modified: 2024-03-15 02:53 AM
I've copied your first command file into a system here and it worked. I would try updating java from here http://java.sun.com/ and running the commands again. Another suggestion would be to attempt a reboot if possible and try again. The problem with the second command you tried lies in using "Java home dir" instead of the actual path to the Java.exe (most likely something like C:\Program Files\Java\jrexxxx) Let me know the results.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-06-28 06:52 PM . Last Modified: 2024-03-15 02:53 AM
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-06-28 06:52 PM . Last Modified: 2024-03-15 02:53 AM
Hi,
Still no luck on my 2 test boxes. But on the production boxes this is working fine without doing anything different. So I will just uninstall the the software on the test boxes and re-install if I need too. At least it works properly where I need it to.
Thanks Grenade for your help on this.
Cheers.
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-06-28 06:52 PM . Last Modified: 2024-03-15 02:53 AM
I have the same problem. I need to install this configuration on 20 different systems and the only difference is which UPS units are supporting the hosts. Would be great to have a solution for 2.2.3 build 12
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-06-28 06:53 PM . Last Modified: 2024-03-15 02:53 AM
Here's what worked for me:
cd /opt/APC/PowerChute
export DISPLAY=X.X.X.X:0
java -cp lib/m11.jar:lib/confutil.jar:comp/Notifier.jar:comp/ PCNSUtilApp
That brought up a window that allowed me to change the IP addresses (I have 2 ups units in each rack and all hosts in the rack connect to those 2 units via a closed OOB network)
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-06-28 06:53 PM . Last Modified: 2024-03-15 02:53 AM
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-06-28 06:53 PM . Last Modified: 2024-03-15 02:53 AM
hello, i have similar problems, but not exactly same
if i try to access the utility to change the shutdown phrase, and i type in the
java -cp m11.jar;confutil.jar;..\comp\Notifier.jar;..\comp\
CommandFileRunner.jar;..\comp\ds.jar PCNSUtilApp
command, i get back an error message:
Exception in thread "main" java.lang.NoClassDefFoundError: PCNSUtilApp
well, i uninstalled the entire stuff, and installed back - filled with the new phrase, but would be nice to know what is the problem
thank you
PowerChute Network Shutdown 2.2.3
Windows 2003 Server
Java 1.4.2_03
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-06-28 06:53 PM . Last Modified: 2024-03-15 02:53 AM
Hi madar,
1) Could you try pcns 221 please
ftp://ftp.apcc.com/apc/public/software/windows/2k/pcns/221/
Also, please make sure you have latest fw on the card.
2) Double-check the following:
Start, Run, cmd, java -version
What will be the response, the same version of Java?
How many version of java installes on your compuer?
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-06-28 06:53 PM . Last Modified: 2024-03-15 02:53 AM
Madar,
For now, there's no need to downgrade to 2.2.1.
I'll go test this in our lab this afternoon and report back with my findings.
But, Mikhail did bring up a valid point. How many, and what versions of java are installed on your machine?
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-06-28 06:53 PM . Last Modified: 2024-03-15 02:53 AM
I did get a slew of errors.
The attachment is for 2.2.3
I will have to discuss this with Winna who is in Vegas until Monday at a Tradeshow.
Until then, it's just trial and error.
Message was edited by: The Notorious K.M.P.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-06-28 06:53 PM . Last Modified: 2024-03-15 02:53 AM
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-06-28 06:53 PM . Last Modified: 2024-03-15 02:53 AM
thank you for the answers,
meanwhile i upgraded the java to 1.6.0_07, with this i get exactly same screen like you linked (with the prev version i got the short message only, without the "caused by" lines)
i didnt try to downgrade to 2.2.1 because after the reinstall is ok now, i changed phrase and i dont want to poke now... just i am curious whats wrong with
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-06-28 06:53 PM . Last Modified: 2024-03-15 02:53 AM
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-06-28 06:53 PM . Last Modified: 2024-03-15 02:53 AM
This last post sorted it for me. The KB articles I found on the rest of the APC site had a jar file reference missing. To confirm what worked for me on Windows Server 2003 SP2;
C:\Program Files\PowerChute\group1\lib>java -cp m11.jar;confutil.jar;..\comp\Notifier.jar;..\comp\CommandFileRunner.jar;..\comp\ds.jar PCNSUtilApp
The KB article I found was [FAQ 651|http://nam-en.apc.com/cgi-bin/nam_en.cfg/php/enduser/std_adp.php?p_faqid=651] and it was missing the reference to 'ds.jar' at the end. Without that no utility will appear!
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Create your free account or log in to subscribe to the board - and gain access to more than 10,000+ support articles along with insights from experts and peers.