IBM Support

Warning messages might display because sun.misc.Unsafe in xStream is used in Content Cortex

Troubleshooting


Problem

A library known as xStream is used for XML serialization and de-serialization. This library is used throughout Content Cortex. Internally, xStream makes use of a utility called the Unsafe class. The Unsafe class has been marked as deprecated.

Symptom

The following warning messages might be seen when using tools that invoke xStream, such as configTool.

WARNING: A terminally deprecated method in sun.misc.Unsafe has been called
WARNING: sun.misc.Unsafe::objectFieldOffset has been called by com.thoughtworks.xstream.converters.reflection.SunUnsafeReflectionProvider (file:/opt/IBM/ContentSearchServices/CSS_Server1/lib/xstream.jar)
WARNING: Please consider reporting this to the maintainers of class com.thoughtworks.xstream.converters.reflection.SunUnsafeReflectionProvider
WARNING: sun.misc.Unsafe::objectFieldOffset will be removed in a future release

 

Tools such as shutdown.bat on Windows and shutdown.sh on all other platforms might cause warning messages such as the following:

./shutdown.sh
WARNING: A terminally deprecated method in sun.misc.Unsafe has been called
WARNING: sun.misc.Unsafe::objectFieldOffset has been called by com.thoughtworks.xstream.converters.reflection.SunUnsafeReflectionProvider (file:/opt/IBM/ContentSearchServices/CSS_Server/lib/xstream.jar)
WARNING: Please consider reporting this to the maintainers of class com.thoughtworks.xstream.converters.reflection.SunUnsafeReflectionProvider
WARNING: sun.misc.Unsafe::objectFieldOffset will be removed in a future release
IQQG0088I The shutdown request is being sent: localhost:8191.
IQQG0089I The shutdown request was sent successfully with a response code of 200.
IQQG0025I Shutdown is complete.

Document Location

Worldwide

[{"Type":"MASTER","Line of Business":{"code":"LOB76","label":"Data Platform"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSL4SY","label":"IBM Content Cortex"},"ARM Category":[{"code":"a8mKe0000008OI5IAM","label":"Content Engine"}],"ARM Case Number":"","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"and future releases;26.0.0"}]

Log InLog in to view more of this document

This document has the abstract of a technical article that is available to authorized users once you have logged on. Please use Log in button above to access the full document. After log in, if you do not have the right authorization for this document, there will be instructions on what to do next.

Document Information

Modified date:
29 September 2026

UID

ibm17272389