3.4. Troubleshooting
Checking the Installation in the Startup Log
Look for the following line in Tomcat's catalina.out (for Spring Boot, the application log).
bundled infinispan=13.0.11.Final-redhat-00001 netty=4.1.128.Final-redhat-00001 prefix=io.openmaru.shaded. jar=file:/…/openmaru-cluster-valve-all-5.1.0.jar mode=single
| What you see | Meaning | What to do |
|---|---|---|
prefix=io.openmaru.shaded. … mode=single | Running normally from the single installation file | Nothing |
prefix=none or mode=multi | A jar from the previous method was loaded first | Remove the old jars as described in 2.9 "Switching From an Earlier Installation" |
| The line is missing | A jar from the previous method was loaded, or the log level is WARNING or higher | Temporarily set io.openmaru.level to INFO in logging.properties and check again |
jar= shows the location of the installation file that was actually loaded. Use it to check whether a file in an unexpected location was picked up.
Error Codes
When running from the single installation file, a problem found during startup is logged on one line with a code starting with KSM-SJ-, the related setting, the cause, and how to fix it (fix:).
ERROR stops startup. With the Valve method the application does not come up, with the filter method the filter fails to start, and with Spring Boot the filter cannot be created so the application does not start. WARN only logs and keeps running.
| Code | Level | Meaning | How to fix |
|---|---|---|---|
KSM-SJ-001 | ERROR | You wrote your own class in a class-name setting in hotrod.properties (such as marshaller), and that class extends or implements an Infinispan class. The single installation file cannot use this class | Contact your engineer to switch to a different installation method (see the caution in "Choosing an Installation Method" in 2.1) |
KSM-SJ-002 | ERROR | The openmaru-cluster-valve-core and hotrod jars of the previous method are in the same location. Their paths are shown in old=[…] in the log | Remove all old jars and keep only the single installation file (see 2.9) |
KSM-SJ-003 | WARN | A setting in hotrod.properties that is not translated automatically has a value starting with org.infinispan. | If the value is a class name, prefix it with io.openmaru.shaded.. If it is not a class name, you can leave it (see 2.7) |
KSM-SJ-004 | ERROR | An org.infinispan.… class could not be found during startup | Prefix the value of the key= setting in the log with io.openmaru.shaded. (see 2.7) |
KSM-SJ-005 | WARN | A pattern in the allow list (java_serial_allowlist) is too wide and also allows the product's internal classes, which have nothing to do with sessions | Narrow it to the classes actually placed in the session and put ^ in front of packages ("Writing the Allow List" in 2.7) |
KSM-SJ-006 | ERROR (startup continues) | The Valve method is used, but the application's WEB-INF/lib also has an OPENMARU Cluster jar. Its path is shown in webapp=[…] in the log. If left as is, the duplicate login API fails or the application does not start | Remove the OPENMARU Cluster jar from the application's WEB-INF/lib and declare the build dependency as provided (see step 1 of 2.1) |
Common Symptoms
| Symptom | Cause | What to do |
|---|---|---|
The application does not start and Failed to initialize Infinispan HotRod Session Store is logged | The data grid could not be reached at startup | Start the data grid, check server_list and the account, then restart Tomcat ("Data Grid Startup Order and Behavior During Outages" in 2.8) |
Startup fails with configFile is required | The configFile setting is missing | Add configFile to the Valve attributes or <init-param> |
Can't Found configFile= is logged | hotrod.properties could not be found | Check that the file is in Tomcat's conf or on the application classpath ("File Location" in 2.7) |
ISPN000936: Class '…' blocked by deserialization allow list | A class placed in the session is not in the allow list | Add the class named in the message to java_serial_allowlist (2.7) |
java.io.NotSerializableException | An object placed in the session is not serializable | See 2.5 "Serializing Session Objects" |
NoClassDefFoundError: org/slf4j/… (after the switch) | The application was borrowing slf4j from Tomcat's lib | Add slf4j to the application's WEB-INF/lib (caution in 2.9) |
NullPointerException or NoClassDefFoundError from the duplicate login API (Valve method) | A separate OPENMARU Cluster jar is inside the application | Fix it the same way as KSM-SJ-006 |
| Login is lost when returning from payment or SSO | The cookie is not sent on the POST from another site | sameSite="None" and secure="true" (2.8) |
| No Domain on the cookie | domain was written on the Valve, or the proxy does not pass the original Host | Use sessionDomain on the Valve and check the proxy Host setting (2.2, 2.8) |
| Far more sessions in the data grid than actual users | Every health check request creates a session | Add the health check path to excludeRegExp (2.8) |
| The memory usage metric is always 0 | -javaagent:jamm-0.2.5.jar is missing | Add it to the WAS startup options (2.6) |
A warning that a -D… option does not apply is logged | Options such as -Dio.netty.* do not apply to the Netty inside the installation file | If needed, prefix the name with io.openmaru.shaded. ("Netty System Properties" in 2.7) |
If your engineer asks for it, add -DKHAN_SM_SYSOUT_STACK=true to the WAS startup options to log in more detail. If the problem persists, send the full startup log and the configuration files (context.xml or web.xml, and hotrod.properties with passwords removed) to your engineer.