Topic
  • 2 replies
  • Latest Post - ‏2019-01-21T10:48:39Z by Nethaji Narasimalu
jai.subramanian
jai.subramanian
1 Post

Pinned topic Commerce Instance Creation Error

‏2017-06-12T01:16:53Z | 8 commerce websphere

While executing the commerce instance creation script it fails due to below error: I have checked all the environment settings. Attaching my createInstance.properties file. Please error to sort this issue.

 

CheckEncryptionSync:
[checkEncryptSync] java.lang.Exception: wc home is null or empty!
[checkEncryptSync]      at com.ibm.commerce.config.aesmigration.util.WCEncryptionAlgCheckerFactory.parseCommerceProductFile(WCEncryptionAlgCheckerFactory.java:145)
[checkEncryptSync]      at com.ibm.commerce.config.aesmigration.util.WCEncryptionAlgCheckerFactory.getWCEncryptionAlgChecker(WCEncryptionAlgCheckerFactory.java:95)
[checkEncryptSync]      at com.ibm.commerce.config.internal.ant.tasks.CheckEncryptionSyncTask.execute(CheckEncryptionSyncTask.java:50)
[checkEncryptSync]      at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
[checkEncryptSync]      at org.apache.tools.ant.Task.perform(Task.java:364)
[checkEncryptSync]      at org.apache.tools.ant.Target.execute(Target.java:341)
[checkEncryptSync]      at org.apache.tools.ant.Target.performTasks(Target.java:369)
[checkEncryptSync]      at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
[checkEncryptSync]      at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
[checkEncryptSync]      at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
[checkEncryptSync]      at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
[checkEncryptSync]      at org.apache.tools.ant.Main.runBuild(Main.java:668)
[checkEncryptSync]      at org.apache.tools.ant.Main.startAnt(Main.java:187)
[checkEncryptSync]      at org.apache.tools.ant.Main.start(Main.java:150)
[checkEncryptSync]      at com.ibm.commerce.config.ant.server.AntLauncher.main(AntLauncher.java:382)
[checkEncryptSync]      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[checkEncryptSync]      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:88)
[checkEncryptSync]      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
[checkEncryptSync]      at java.lang.reflect.Method.invoke(Method.java:613)
[checkEncryptSync]      at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:280)

[checkEncryptSync] ==============
[checkEncryptSync] TimeStamp:    2017-06-08 05:49:22.798
[checkEncryptSync] Thread ID:    <main>
[checkEncryptSync] Class:        com.ibm.commerce.config.aesmigration.util.WCEncryptionAlgCheckerFactory
[checkEncryptSync] Method:       parseCommerceProductFile()
[checkEncryptSync] Severity:     1
[checkEncryptSync] Message Text: CMN0409E: The following error occurred during processing: "java.lang.Exception: wc home is null or empty!
[checkEncryptSync]      at com.ibm.commerce.config.aesmigration.util.WCEncryptionAlgCheckerFactory.parseCommerceProductFile(WCEncryptionAlgCheckerFactory.java:145)
[checkEncryptSync]      at com.ibm.commerce.config.aesmigration.util.WCEncryptionAlgCheckerFactory.getWCEncryptionAlgChecker(WCEncryptionAlgCheckerFactory.java:95)
[checkEncryptSync]      at com.ibm.commerce.config.internal.ant.tasks.CheckEncryptionSyncTask.execute(CheckEncryptionSyncTask.java:50)
[checkEncryptSync]      at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
[checkEncryptSync]      at org.apache.tools.ant.Task.perform(Task.java:364)
[checkEncryptSync]      at org.apache.tools.ant.Target.execute(Target.java:341)
[checkEncryptSync]      at org.apache.tools.ant.Target.performTasks(Target.java:369)
[checkEncryptSync]      at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
[checkEncryptSync]      at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
[checkEncryptSync]      at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
[checkEncryptSync]      at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
[checkEncryptSync]      at org.apache.tools.ant.Main.runBuild(Main.java:668)
[checkEncryptSync]      at org.apache.tools.ant.Main.startAnt(Main.java:187)
[checkEncryptSync]      at org.apache.tools.ant.Main.start(Main.java:150)
[checkEncryptSync]      at com.ibm.commerce.config.ant.server.AntLauncher.main(AntLauncher.java:382)
[checkEncryptSync]      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[checkEncryptSync]      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:88)
[checkEncryptSync]      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
[checkEncryptSync]      at java.lang.reflect.Method.invoke(Method.java:613)
[checkEncryptSync]      at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:280)
[checkEncryptSync] ".
[checkEncryptSync] Exception thrown while trying to retrieve encryption algorithm used by WebSphere Commerce, defaulting to Triple DES encryption
[checkEncryptSync] com.ibm.commerce.wc.appmanagement.exception.WCAppManagementException: java.lang.Exception: wc home is null or empty!
[checkEncryptSync]      at com.ibm.commerce.config.aesmigration.util.WCEncryptionAlgCheckerFactory.parseCommerceProductFile(WCEncryptionAlgCheckerFactory.java:149)
[checkEncryptSync]      at com.ibm.commerce.config.aesmigration.util.WCEncryptionAlgCheckerFactory.getWCEncryptionAlgChecker(WCEncryptionAlgCheckerFactory.java:95)
[checkEncryptSync]      at com.ibm.commerce.config.internal.ant.tasks.CheckEncryptionSyncTask.execute(CheckEncryptionSyncTask.java:50)
[checkEncryptSync]      at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
[checkEncryptSync]      at org.apache.tools.ant.Task.perform(Task.java:364)
[checkEncryptSync]      at org.apache.tools.ant.Target.execute(Target.java:341)
[checkEncryptSync]      at org.apache.tools.ant.Target.performTasks(Target.java:369)
[checkEncryptSync]      at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
[checkEncryptSync]      at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
[checkEncryptSync]      at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
[checkEncryptSync]      at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
[checkEncryptSync]      at org.apache.tools.ant.Main.runBuild(Main.java:668)
[checkEncryptSync]      at org.apache.tools.ant.Main.startAnt(Main.java:187)
[checkEncryptSync]      at org.apache.tools.ant.Main.start(Main.java:150)
[checkEncryptSync]      at com.ibm.commerce.config.ant.server.AntLauncher.main(AntLauncher.java:382)
[checkEncryptSync]      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[checkEncryptSync]      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:88)
[checkEncryptSync]      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
[checkEncryptSync]      at java.lang.reflect.Method.invoke(Method.java:613)
[checkEncryptSync]      at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:280)
[checkEncryptSync] Caused by: java.lang.Exception: wc home is null or empty!
[checkEncryptSync]      at com.ibm.commerce.config.aesmigration.util.WCEncryptionAlgCheckerFactory.parseCommerceProductFile(WCEncryptionAlgCheckerFactory.java:145)
[checkEncryptSync]      ... 19 more

CheckInstanceName:

CheckMerchantKey:
[checkMerKey] java.lang.Exception: wc home is null or empty!
[checkMerKey]   at com.ibm.commerce.config.aesmigration.util.WCEncryptionAlgCheckerFactory.parseCommerceProductFile(WCEncryptionAlgCheckerFactory.java:145)
[checkMerKey]   at com.ibm.commerce.config.aesmigration.util.WCEncryptionAlgCheckerFactory.getWCEncryptionAlgChecker(WCEncryptionAlgCheckerFactory.java:95)
[checkMerKey]   at com.ibm.commerce.config.internal.util.CheckUtil.checkMerchantKey(CheckUtil.java:137)
[checkMerKey]   at com.ibm.commerce.config.internal.ant.tasks.CheckMerchantKey.execute(CheckMerchantKey.java:47)
[checkMerKey]   at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
[checkMerKey]   at org.apache.tools.ant.Task.perform(Task.java:364)
[checkMerKey]   at org.apache.tools.ant.Target.execute(Target.java:341)
[checkMerKey]   at org.apache.tools.ant.Target.performTasks(Target.java:369)
[checkMerKey]   at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
[checkMerKey]   at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
[checkMerKey]   at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
[checkMerKey]   at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
[checkMerKey]   at org.apache.tools.ant.Main.runBuild(Main.java:668)
[checkMerKey]   at org.apache.tools.ant.Main.startAnt(Main.java:187)
[checkMerKey]   at org.apache.tools.ant.Main.start(Main.java:150)
[checkMerKey]   at com.ibm.commerce.config.ant.server.AntLauncher.main(AntLauncher.java:382)
[checkMerKey]   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[checkMerKey]   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:88)
[checkMerKey]   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
[checkMerKey]   at java.lang.reflect.Method.invoke(Method.java:613)
[checkMerKey]   at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:280)

[checkMerKey] ==============
[checkMerKey] TimeStamp:    2017-06-08 05:49:22.857
[checkMerKey] Thread ID:    <main>
[checkMerKey] Class:        com.ibm.commerce.config.aesmigration.util.WCEncryptionAlgCheckerFactory
[checkMerKey] Method:       parseCommerceProductFile()
[checkMerKey] Severity:     1
[checkMerKey] Message Text: CMN0409E: The following error occurred during processing: "java.lang.Exception: wc home is null or empty!
[checkMerKey]   at com.ibm.commerce.config.aesmigration.util.WCEncryptionAlgCheckerFactory.parseCommerceProductFile(WCEncryptionAlgCheckerFactory.java:145)
[checkMerKey]   at com.ibm.commerce.config.aesmigration.util.WCEncryptionAlgCheckerFactory.getWCEncryptionAlgChecker(WCEncryptionAlgCheckerFactory.java:95)
[checkMerKey]   at com.ibm.commerce.config.internal.util.CheckUtil.checkMerchantKey(CheckUtil.java:137)
[checkMerKey]   at com.ibm.commerce.config.internal.ant.tasks.CheckMerchantKey.execute(CheckMerchantKey.java:47)
[checkMerKey]   at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
[checkMerKey]   at org.apache.tools.ant.Task.perform(Task.java:364)
[checkMerKey]   at org.apache.tools.ant.Target.execute(Target.java:341)
[checkMerKey]   at org.apache.tools.ant.Target.performTasks(Target.java:369)
[checkMerKey]   at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
[checkMerKey]   at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
[checkMerKey]   at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
[checkMerKey]   at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
[checkMerKey]   at org.apache.tools.ant.Main.runBuild(Main.java:668)
[checkMerKey]   at org.apache.tools.ant.Main.startAnt(Main.java:187)
[checkMerKey]   at org.apache.tools.ant.Main.start(Main.java:150)
[checkMerKey]   at com.ibm.commerce.config.ant.server.AntLauncher.main(AntLauncher.java:382)
[checkMerKey]   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[checkMerKey]   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:88)
[checkMerKey]   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
[checkMerKey]   at java.lang.reflect.Method.invoke(Method.java:613)
[checkMerKey]   at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:280)
[checkMerKey] ".
[checkMerKey] com.ibm.commerce.wc.appmanagement.exception.WCAppManagementException: java.lang.Exception: wc home is null or empty!
[checkMerKey]   at com.ibm.commerce.config.aesmigration.util.WCEncryptionAlgCheckerFactory.parseCommerceProductFile(WCEncryptionAlgCheckerFactory.java:149)
[checkMerKey]   at com.ibm.commerce.config.aesmigration.util.WCEncryptionAlgCheckerFactory.getWCEncryptionAlgChecker(WCEncryptionAlgCheckerFactory.java:95)
[checkMerKey]   at com.ibm.commerce.config.internal.util.CheckUtil.checkMerchantKey(CheckUtil.java:137)
[checkMerKey]   at com.ibm.commerce.config.internal.ant.tasks.CheckMerchantKey.execute(CheckMerchantKey.java:47)
[checkMerKey]   at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
[checkMerKey]   at org.apache.tools.ant.Task.perform(Task.java:364)
[checkMerKey]   at org.apache.tools.ant.Target.execute(Target.java:341)
[checkMerKey]   at org.apache.tools.ant.Target.performTasks(Target.java:369)
[checkMerKey]   at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
[checkMerKey]   at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
[checkMerKey]   at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
[checkMerKey]   at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
[checkMerKey]   at org.apache.tools.ant.Main.runBuild(Main.java:668)
[checkMerKey]   at org.apache.tools.ant.Main.startAnt(Main.java:187)
[checkMerKey]   at org.apache.tools.ant.Main.start(Main.java:150)
[checkMerKey]   at com.ibm.commerce.config.ant.server.AntLauncher.main(AntLauncher.java:382)
[checkMerKey]   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[checkMerKey]   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:88)
[checkMerKey]   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
[checkMerKey]   at java.lang.reflect.Method.invoke(Method.java:613)
[checkMerKey]   at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:280)
[checkMerKey] Caused by: java.lang.Exception: wc home is null or empty!
[checkMerKey]   at com.ibm.commerce.config.aesmigration.util.WCEncryptionAlgCheckerFactory.parseCommerceProductFile(WCEncryptionAlgCheckerFactory.java:145)
[checkMerKey]   ... 20 more

Attachments

  • Sreejith.kanneri
    Sreejith.kanneri
    164 Posts

    Re: Commerce Instance Creation Error

    ‏2017-06-15T04:33:08Z  

    you can revalidate the paths mentioned SystemUtil.getWCHomeDir();

     

    it is looking at  System.getProperty("wc.home"); you might want to revalidate your sh env variable settings

     

    Updated on 2017-06-15T04:34:33Z at 2017-06-15T04:34:33Z by Sreejith.kanneri
  • Nethaji Narasimalu
    Nethaji Narasimalu
    1 Post

    Re: Commerce Instance Creation Error

    ‏2019-01-21T10:48:39Z  

    I faced this issue of wc home is null or empty on running setdbtype .
    Analysed this and identified that it's looking for product.xml in the  path of installation(<<installdir>>/xml/product.xml
    On restoring this from the back up file worked like a charm.

    Updated on 2019-01-21T10:49:24Z at 2019-01-21T10:49:24Z by Nethaji Narasimalu