JMX related tests have hard time running in "agentvm" mode because they need a set of privileges which are not granted by the default security manager. For this reason all the tests from javax/management are forced to run in "othervm" mode.
com/sun/jmx/remote/NotificationMarshalVersions/TestSerializationMismatch.java must also be forced to run in "othervm" mode. Webrev: http://cr.openjdk.java.net/~jbachorik/8015627/webrev.00 -JB-