Hide Forgot
cspclient-0.22.5-1.noarch OS: Fedora release 16 (Verne) JAVA: java version "1.7.0_b147-icedtea" OpenJDK Runtime Environment (fedora-2.1.fc16.1-x86_64) OpenJDK 64-Bit Server VM (build 22.0-b10, mixed mode) [jwulf@nitai Content_Spec_Processor_Guide]$ csprocessor push CSProcessor client version: 0.22.5 Loading configuration from /home/jwulf/.config/csprocessor.ini Connecting to Skynet server: http://skynet.usersys.redhat.com:8080/TopicIndex/ INFO: The Content Specification is valid. INFO: The Content Specification saved successfully. Content Specification ID: 7210 Revision: 56403 Exception in thread "main" java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:58) Caused by: java.lang.NullPointerException at com.redhat.contentspec.client.commands.PushCommand.process(PushCommand.java:180) at com.redhat.contentspec.client.Client.processArgs(Client.java:201) at com.redhat.contentspec.client.Client.main(Client.java:89) ... 5 more
Created attachment 573244 [details] CSProcessor project folder
Fixed in 0.22.6 Cause: The program was trying to create the directories for the output file. However if the directory was the current working directory there was no parent and it threw a NullPointerException. Consequence: The program would crash and couldn't save the new Content Specification to the users file system. The server however was updated. Fix: Check if the parent is null, if it is then there isn't any need to try to create the directories.
Verified with 0.23.2-1