-1

We have recently upgraded our Java project from httpclient4 to httpclient5. After upgrading we are seeing the below issue in the logs:

---- Debugging information ----
    message             : No converter available
    type                : java.util.HashMap$KeySet
    converter           : com.thoughtworks.xstream.converters.reflection.ReflectionConverter
    message[1]          : Unable to make field final java.util.HashMap java.util.HashMap$KeySet.this$0 accessible: module java.base does not "opens java.util" to unnamed module @290ff4ad
    -------------------------------
     requestXML=
    null
     responseXML=
    null >>>
    <<< Fri Aug 04 15:52:06 IST 2023 ERROR com.services.event.cache.EventCacheManager.refreshCache() Message >> No converter available
    ---- Debugging information ----
    message             : No converter available
    type                : java.util.HashMap$KeySet
    converter           : com.thoughtworks.xstream.converters.reflection.ReflectionConverter
    message[1]          : Unable to make field final java.util.HashMap java.util.HashMap$KeySet.this$0 accessible: module java.base does not "opens java.util" to unnamed module @290ff4ad
    ------------------------------- >>
    Class: com.thoughtworks.xstream.converters.ConversionException
    Message: No converter available
    ---- Debugging information ----
    message             : No converter available
    type                : java.util.HashMap$KeySet
    converter           : com.thoughtworks.xstream.converters.reflection.ReflectionConverter
    message[1]          : Unable to make field final java.util.HashMap java.util.HashMap$KeySet.this$0 accessible

: module java.base does not "opens java.util" to unnamed module @290ff4ad


Stack Trace:

com.thoughtworks.xstream.core.DefaultConverterLookup.lookupConverterForType(DefaultConverterLookup(DefaultConverterLookup.java:88)
        com.thoughtworks.xstream.XStream$1.lookupConverterForType(XStream$1(XStream$1.java:478)
        com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller(TreeMarshaller.java:49)
        com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller(TreeMarshaller.java:44)
        com.thoughtworks.xstream.core.TreeMarshaller.start(TreeMarshaller(TreeMarshaller.java:83)
           com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.marshal(AbstractTreeMarshallingStrategy(AbstractTreeMarshallingStrategy.java:37)
        com.thoughtworks.xstream.XStream.marshal(XStream(XStream.java:1303)
        com.thoughtworks.xstream.XStream.marshal(XStream(XStream.java:1292)
        com.thoughtworks.xstream.XStream.toXML(XStream(XStream.java:1265)
        com.thoughtworks.xstream.XStream.toXML(XStream(XStream.java:1252)
Nol4635
  • 631
  • 1
  • 14
  • 24
ketan
  • 23
  • 3
  • 1
    Please fix the format of your question and aslso use [code format](https://stackoverflow.com/editing-help#code) for code, errors and logs. – aled Aug 04 '23 at 11:35

0 Answers0