Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8202821

Application Server terminating with ObjectInputFilter REJECTED: class javax.management.remote.rmi.RMIServerImpl_Stub

    Details

      Description

      ADDITIONAL SYSTEM INFORMATION :
      Windows 10, CentOS Linux release 7.2.1511 (Core)

      A DESCRIPTION OF THE PROBLEM :
      Observing java.io.InvalidClassException: filter status: REJECTED for javax.management.remote.rmi.RMIServerImpl_Stub.
      Our Applicaiton Server running in Java Runtime Environment is terminating with InvalidClassException, at startup,
      when System property com.sun.management.jmxremote.port , com.sun.management.jmxremote.rmi.port and java.rmi.server.hostname are set.



      Detail message -

      ObjectInputFilter REJECTED: class javax.management.remote.rmi.RMIServerImpl_Stub, array length: -1, nRefs: 3, depth: 1, bytes: 113, ex: n/a



      Stack Trace -

      Caused by: java.io.InvalidClassException: filter status: REJECTED

      at java.io.ObjectInputStream.filterCheck(Unknown Source) ~[na:1.8.0_162]

      at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source) ~[na:1.8.0_162]

      at java.io.ObjectInputStream.readClassDesc(Unknown Source) ~[na:1.8.0_162]

      at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source) ~[na:1.8.0_162]

      at java.io.ObjectInputStream.readObject0(Unknown Source) ~[na:1.8.0_162]

      at java.io.ObjectInputStream.readObject(Unknown Source) ~[na:1.8.0_162]



      Java Version -

      java version "1.8.0_162"

      Java(TM) SE Runtime Environment (build 1.8.0_162-b12)

      Java HotSpot(TM) 64-Bit Server VM (build 25.162-b12, mixed mode)



      This is related to JEP 290: Filter Incoming Serialization Data

      I tried setting System property sun.rmi.registry.registryFilter as sun.rmi.registry.registryFilter=java.**;javax.**;org.**;com.**;net.**;sun.**;

      Still I am seeing this error. Observing this issue on Windows as well as Linux platforms.

      REGRESSION : Last worked in version 8u162

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      For a Java-based process, running an RMI program, provide below RMI and JMX related system properties -
      -Dcom.sun.management.jmxremote.port=1099
      -Dcom.sun.management.jmxremote.rmi.port=1099
      -Djava.rmi.server.hostname=127.0.0.1

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      No exception during un-marshalling of javax.management.remote.rmi.RMIServerImpl_Stub
      ACTUAL -
      Messaage -
      ObjectInputFilter REJECTED: class javax.management.remote.rmi.RMIServerImpl_Stub, array length: -1, nRefs: 3, depth: 1, bytes: 113, ex: n/a

      Exception Stack -
      INFO - java.io.InvalidClassException: filter status: REJECTED]
      INFO - at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1572) ~[na:na]
      INFO - at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539) ~[na:na]
      INFO - at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476) ~[na:na]
      INFO - at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303) ~[na:na]
      INFO - at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) ~[na:na]
      INFO - at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299) ~[na:na]
      INFO - at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194) ~[na:na]


      CUSTOMER SUBMITTED WORKAROUND :
      No work possible.
      Process terminates with java.io.InvalidClassException every time at startup of process.

      FREQUENCY : always


        Attachments

          Activity

            People

            • Assignee:
              psonal Pallavi Sonal (Inactive)
              Reporter:
              webbuggrp Webbug Group
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: