IBM Support

Usage of sun.misc.Unsafe in xStream

Troubleshooting


Problem

The application uses the xStream library for XML serialization and deserialization throughout ContentCortex. Internally, xStream relies on the sun.misc.Unsafe utility, which has been marked for future deprecation.

 

Symptom

Tools that invoke xStream (for example, configTool) may emit the following warning messages.

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

 

Running shutdown.bat (Windows) or shutdown.sh (Unix/Linux) can also produce these warnings:

./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