Troubleshooting
Problem
Attempts to build resourcejar with "DATABASE_PROPERTY_MANAGEMENT" property is enabled in sandbox.cfg leads to java exception errors in IBM Sterling Selling and Fulfillment Suite.
Symptom
Simulation Steps:
- Modify the following in sandbox.cfg:
DATABASE_PROPERTY_MANAGEMENT=true
ADDITIONAL_ANT_COMPILER_TASK_ARGS=-J-Xms1024m -J-Xmx1664m
ADDITIONAL_ANT_JAVA_TASK_ARGS=-XX\:MaxPermSize\=512m
- Increase JVM permsize value in tmp.sh
- Run setup.sh
- Run deployer.sh -t resourcejar
This leads to below error:
========================================================================
generate-entity-indexconfig:
[echo] Generating Search Index Configuration
[java] log4j:WARN No appenders could be found for logger (com.yantra.ycp.core.YCPCacheSetup).
[java] log4j:WARN Please initialize the log4j system properly.
[java] log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
[java] Exception in thread "main" java.lang.Exception: java.lang.reflect.InvocationTargetException
[java] at com.sterlingcommerce.woodstock.noapp.NoAppLoader.main(NoAppLoader.java:93)
[java] Caused by: java.lang.reflect.InvocationTargetException
[java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:95)
[java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:56)
[java] at java.lang.reflect.Method.invoke(Method.java:620)
[java] at com.sterlingcommerce.woodstock.noapp.NoAppLoader.main(NoAppLoader.java:90)
[java] Caused by: java.lang.ExceptionInInitializerError
[java] at java.lang.J9VMInternals.initialize(J9VMInternals.java:257)
[java] at com.yantra.tools.index.EntityIndexConfigGenerator.initialize(EntityIndexConfigGenerator.java:88)
[java] at com.yantra.tools.index.EntityIndexConfigGenerator.main(EntityIndexConfigGenerator.java:69)
[java] ... 5 more
[java] Caused by: java.lang.NullPointerException
========================================================================
Cause
You have not run loadProprerties.sh which required to load the necessary properties into the db and also mark the properties which are not read from db, but from file system.
Diagnosing The Problem
This error is seen when the search index configuration is run on DB properties at class EntityIndexConfigGenerator.
Resolving The Problem
To resolve, run loadProperties.sh command after enabling "DATABASE_PROPERTY_MANAGEMENT" property in sandbox.cfg.
NOTE: If any properties are modified in sandbox.cfg, then run setupFiles.sh followed by loadProperties.sh, so that it will load the necessary properties into the database and also mark the properties which are not read from database, but from file system.
Was this topic helpful?
Document Information
Modified date:
27 August 2018
UID
ibm10716837