Unable to run versionInfo.bat ? similar error as below.
C:\IBM\WCDE_ENT70\bin>versionInfo.bat
WVER0010I: Copyright (c) IBM Corporation 2002, 2005; All rights reserved.
WVER0011I: WebSphere Application Server Release 6.0
WVER0012I: VersionInfo reporter version 1.15.3.4, dated 11/12/08
--------------------------------------------------------------------------------
IBM WebSphere Application Server Product Installation Status Report
--------------------------------------------------------------------------------
Report at date and time 2014-03-05 11:55:48+0530
Installation
--------------------------------------------------------------------------------
Product Directory C:\IBM\WCDE_E~1
Version Directory C:\IBM\WCDE_E~1\properties\version
DTD Directory C:\IBM\WCDE_E~1\properties\version\dtd
Log Directory C:\IBM\WCDE_E~1\logs
Backup Directory C:\IBM\WCDE_E~1\properties\version\update\backup
TMP Directory C:\Users\ADMINI~1\AppData\Local\Temp
java.lang.NullPointerException
at com.ibm.websphere.product.WASProduct.loadVersionInfo(WASProduct.java:2214)
at com.ibm.websphere.product.WASProduct.getVersionInfo(WASProduct.java:2143)
at com.ibm.websphere.product.WASProduct.getPlatform(WASProduct.java:968)
at com.ibm.websphere.product.VersionInfo.printReport(VersionInfo.java:1091)
at com.ibm.websphere.product.VersionInfo.runReport(VersionInfo.java:870)
at com.ibm.websphere.product.VersionInfo.runReport(VersionInfo.java:802)
at com.ibm.websphere.product.VersionInfo.runReport(VersionInfo.java:737)
at com.ibm.websphere.product.VersionInfo.main(VersionInfo.java:468)
at com.ibm.websphere.product.VersionInfo.main(VersionInfo.java:300)
at com.ibm.commerce.install.internal.utils.WCVersionInfo.main(WCVersionInfo.java:56
WVER0004E: Error writing version report to Standard Output: java.lang.NullPointerException
WVER0010I: Copyright (c) IBM Corporation 2002, 2005; All rights reserved.
WVER0011I: WebSphere Application Server Release 6.0
WVER0012I: VersionInfo reporter version 1.15.3.4, dated 11/12/08
--------------------------------------------------------------------------------
IBM WebSphere Application Server Product Installation Status Report
--------------------------------------------------------------------------------
Report at date and time 2014-03-05 11:55:48+0530
Installation
--------------------------------------------------------------------------------
Product Directory C:\IBM\WCDE_E~1
Version Directory C:\IBM\WCDE_E~1\properties\version
DTD Directory C:\IBM\WCDE_E~1\properties\version\dtd
Log Directory C:\IBM\WCDE_E~1\logs
Backup Directory C:\IBM\WCDE_E~1\properties\version\update\backup
TMP Directory C:\Users\ADMINI~1\AppData\Local\Temp
java.lang.NullPointerException
at com.ibm.websphere.product.WASProduct.loadVersionInfo(WASProduct.java:2214)
at com.ibm.websphere.product.WASProduct.getVersionInfo(WASProduct.java:2143)
at com.ibm.websphere.product.WASProduct.getPlatform(WASProduct.java:968)
at com.ibm.websphere.product.VersionInfo.printReport(VersionInfo.java:1091)
at com.ibm.websphere.product.VersionInfo.runReport(VersionInfo.java:870)
at com.ibm.websphere.product.VersionInfo.runReport(VersionInfo.java:802)
at com.ibm.websphere.product.VersionInfo.runReport(VersionInfo.java:737)
at com.ibm.websphere.product.VersionInfo.main(VersionInfo.java:468)
at com.ibm.websphere.product.VersionInfo.main(VersionInfo.java:300)
at com.ibm.commerce.install.internal.utils.WCVersionInfo.main(WCVersionInfo.java:56
WVER0004E: Error writing version report to Standard Output: java.lang.NullPointerException
Somehow you have managed to get the contents of the below folder to be deleted.
C:\IBM\WCDE_ENT70\properties\version\.. .
This is where websphere commerce will refer to inorder to figure out the current status of the product installation.
Details of the current version installed are contained in the NIFStack .
C:\IBM\WCDE_ENT70\properties\version\update\backup\NIFStack.xml
It containes info on the apars installed , current Fixpack level , feature pack level , history , product ids etc.
Solution:
Try to copy the entire properties folder from a colleague who has installed the product with similar settings and is at the same fixpack and featurepack level as you are on. I am not sure there is another way.
Do not proceed with apars installation or any other upgradation until you fix this NIFStack.xml issue.