Java 类java.rmi.server.SkeletonNotFoundException 实例源码

项目:OpenJSharp    文件:UnicastServerRef.java   
/**
 * Discovers and sets the appropriate skeleton for the impl.
 */
public void setSkeleton(Remote impl) throws RemoteException {
    if (!withoutSkeletons.containsKey(impl.getClass())) {
        try {
            skel = Util.createSkeleton(impl);
        } catch (SkeletonNotFoundException e) {
            /*
             * Ignore exception for skeleton class not found, because a
             * skeleton class is not necessary with the 1.2 stub protocol.
             * Remember that this impl's class does not have a skeleton
             * class so we don't waste time searching for it again.
             */
            withoutSkeletons.put(impl.getClass(), null);
        }
    }
}
项目:jdk8u-jdk    文件:UnicastServerRef.java   
/**
 * Discovers and sets the appropriate skeleton for the impl.
 */
public void setSkeleton(Remote impl) throws RemoteException {
    if (!withoutSkeletons.containsKey(impl.getClass())) {
        try {
            skel = Util.createSkeleton(impl);
        } catch (SkeletonNotFoundException e) {
            /*
             * Ignore exception for skeleton class not found, because a
             * skeleton class is not necessary with the 1.2 stub protocol.
             * Remember that this impl's class does not have a skeleton
             * class so we don't waste time searching for it again.
             */
            withoutSkeletons.put(impl.getClass(), null);
        }
    }
}
项目:openjdk-jdk10    文件:UnicastServerRef.java   
/**
 * Discovers and sets the appropriate skeleton for the impl.
 */
public void setSkeleton(Remote impl) throws RemoteException {
    if (!withoutSkeletons.containsKey(impl.getClass())) {
        try {
            skel = Util.createSkeleton(impl);
        } catch (SkeletonNotFoundException e) {
            /*
             * Ignore exception for skeleton class not found, because a
             * skeleton class is not necessary with the 1.2 stub protocol.
             * Remember that this impl's class does not have a skeleton
             * class so we don't waste time searching for it again.
             */
            withoutSkeletons.put(impl.getClass(), null);
        }
    }
}
项目:openjdk9    文件:UnicastServerRef.java   
/**
 * Discovers and sets the appropriate skeleton for the impl.
 */
public void setSkeleton(Remote impl) throws RemoteException {
    if (!withoutSkeletons.containsKey(impl.getClass())) {
        try {
            skel = Util.createSkeleton(impl);
        } catch (SkeletonNotFoundException e) {
            /*
             * Ignore exception for skeleton class not found, because a
             * skeleton class is not necessary with the 1.2 stub protocol.
             * Remember that this impl's class does not have a skeleton
             * class so we don't waste time searching for it again.
             */
            withoutSkeletons.put(impl.getClass(), null);
        }
    }
}
项目:jdk8u_jdk    文件:UnicastServerRef.java   
/**
 * Discovers and sets the appropriate skeleton for the impl.
 */
public void setSkeleton(Remote impl) throws RemoteException {
    if (!withoutSkeletons.containsKey(impl.getClass())) {
        try {
            skel = Util.createSkeleton(impl);
        } catch (SkeletonNotFoundException e) {
            /*
             * Ignore exception for skeleton class not found, because a
             * skeleton class is not necessary with the 1.2 stub protocol.
             * Remember that this impl's class does not have a skeleton
             * class so we don't waste time searching for it again.
             */
            withoutSkeletons.put(impl.getClass(), null);
        }
    }
}
项目:lookaside_java-1.8.0-openjdk    文件:UnicastServerRef.java   
/**
 * Discovers and sets the appropriate skeleton for the impl.
 */
public void setSkeleton(Remote impl) throws RemoteException {
    if (!withoutSkeletons.containsKey(impl.getClass())) {
        try {
            skel = Util.createSkeleton(impl);
        } catch (SkeletonNotFoundException e) {
            /*
             * Ignore exception for skeleton class not found, because a
             * skeleton class is not necessary with the 1.2 stub protocol.
             * Remember that this impl's class does not have a skeleton
             * class so we don't waste time searching for it again.
             */
            withoutSkeletons.put(impl.getClass(), null);
        }
    }
}
项目:infobip-open-jdk-8    文件:UnicastServerRef.java   
/**
 * Discovers and sets the appropriate skeleton for the impl.
 */
public void setSkeleton(Remote impl) throws RemoteException {
    if (!withoutSkeletons.containsKey(impl.getClass())) {
        try {
            skel = Util.createSkeleton(impl);
        } catch (SkeletonNotFoundException e) {
            /*
             * Ignore exception for skeleton class not found, because a
             * skeleton class is not necessary with the 1.2 stub protocol.
             * Remember that this impl's class does not have a skeleton
             * class so we don't waste time searching for it again.
             */
            withoutSkeletons.put(impl.getClass(), null);
        }
    }
}
项目:jdk8u-dev-jdk    文件:UnicastServerRef.java   
/**
 * Discovers and sets the appropriate skeleton for the impl.
 */
public void setSkeleton(Remote impl) throws RemoteException {
    if (!withoutSkeletons.containsKey(impl.getClass())) {
        try {
            skel = Util.createSkeleton(impl);
        } catch (SkeletonNotFoundException e) {
            /*
             * Ignore exception for skeleton class not found, because a
             * skeleton class is not necessary with the 1.2 stub protocol.
             * Remember that this impl's class does not have a skeleton
             * class so we don't waste time searching for it again.
             */
            withoutSkeletons.put(impl.getClass(), null);
        }
    }
}
项目:jdk7-jdk    文件:UnicastServerRef.java   
/**
 * Discovers and sets the appropriate skeleton for the impl.
 */
public void setSkeleton(Remote impl) throws RemoteException {
    if (!withoutSkeletons.containsKey(impl.getClass())) {
        try {
            skel = Util.createSkeleton(impl);
        } catch (SkeletonNotFoundException e) {
            /*
             * Ignore exception for skeleton class not found, because a
             * skeleton class is not necessary with the 1.2 stub protocol.
             * Remember that this impl's class does not have a skeleton
             * class so we don't waste time searching for it again.
             */
            withoutSkeletons.put(impl.getClass(), null);
        }
    }
}
项目:openjdk-source-code-learn    文件:UnicastServerRef.java   
/**
 * Discovers and sets the appropriate skeleton for the impl.
 */
public void setSkeleton(Remote impl) throws RemoteException {
    if (!withoutSkeletons.containsKey(impl.getClass())) {
        try {
            skel = Util.createSkeleton(impl);
        } catch (SkeletonNotFoundException e) {
            /*
             * Ignore exception for skeleton class not found, because a
             * skeleton class is not necessary with the 1.2 stub protocol.
             * Remember that this impl's class does not have a skeleton
             * class so we don't waste time searching for it again.
             */
            withoutSkeletons.put(impl.getClass(), null);
        }
    }
}
项目:OLD-OpenJDK8    文件:UnicastServerRef.java   
/**
 * Discovers and sets the appropriate skeleton for the impl.
 */
public void setSkeleton(Remote impl) throws RemoteException {
    if (!withoutSkeletons.containsKey(impl.getClass())) {
        try {
            skel = Util.createSkeleton(impl);
        } catch (SkeletonNotFoundException e) {
            /*
             * Ignore exception for skeleton class not found, because a
             * skeleton class is not necessary with the 1.2 stub protocol.
             * Remember that this impl's class does not have a skeleton
             * class so we don't waste time searching for it again.
             */
            withoutSkeletons.put(impl.getClass(), null);
        }
    }
}
项目:openjdk-jdk7u-jdk    文件:UnicastServerRef.java   
/**
 * Discovers and sets the appropriate skeleton for the impl.
 */
public void setSkeleton(Remote impl) throws RemoteException {
    if (!withoutSkeletons.containsKey(impl.getClass())) {
        try {
            skel = Util.createSkeleton(impl);
        } catch (SkeletonNotFoundException e) {
            /*
             * Ignore exception for skeleton class not found, because a
             * skeleton class is not necessary with the 1.2 stub protocol.
             * Remember that this impl's class does not have a skeleton
             * class so we don't waste time searching for it again.
             */
            withoutSkeletons.put(impl.getClass(), null);
        }
    }
}
项目:openjdk-icedtea7    文件:UnicastServerRef.java   
/**
 * Discovers and sets the appropriate skeleton for the impl.
 */
public void setSkeleton(Remote impl) throws RemoteException {
    if (!withoutSkeletons.containsKey(impl.getClass())) {
        try {
            skel = Util.createSkeleton(impl);
        } catch (SkeletonNotFoundException e) {
            /*
             * Ignore exception for skeleton class not found, because a
             * skeleton class is not necessary with the 1.2 stub protocol.
             * Remember that this impl's class does not have a skeleton
             * class so we don't waste time searching for it again.
             */
            withoutSkeletons.put(impl.getClass(), null);
        }
    }
}
项目:cn1    文件:SkeletonNotFoundExceptionTest.java   
/**
 * Sets up the fixture, for example, open a network connection. This method
 * is called before a test is executed.
 */
@Override
protected void setUp() {
    errorMessage = "Skeleton Not Found";
    causeMessage = "Caused Exception";
    cause = new SkeletonNotFoundException(causeMessage);
}
项目:cn1    文件:SkeletonNotFoundExceptionTest.java   
public void assertDeserialized(Serializable initial,
        Serializable deserialized) {

    SerializationTest.THROWABLE_COMPARATOR.assertDeserialized(initial, deserialized);

    SkeletonNotFoundException initEx = (SkeletonNotFoundException) initial;
    SkeletonNotFoundException desrEx = (SkeletonNotFoundException) deserialized;

    assertEquals(initEx.getMessage(), desrEx.getMessage());
    assertEquals(initEx.getCause().getMessage(), desrEx.getCause().getMessage());
}
项目:freeVM    文件:SkeletonNotFoundExceptionTest.java   
/**
 * Sets up the fixture, for example, open a network connection. This method
 * is called before a test is executed.
 */
@Override
protected void setUp() {
    errorMessage = "Skeleton Not Found";
    causeMessage = "Caused Exception";
    cause = new SkeletonNotFoundException(causeMessage);
}
项目:freeVM    文件:SkeletonNotFoundExceptionTest.java   
public void assertDeserialized(Serializable initial,
        Serializable deserialized) {

    SerializationTest.THROWABLE_COMPARATOR.assertDeserialized(initial, deserialized);

    SkeletonNotFoundException initEx = (SkeletonNotFoundException) initial;
    SkeletonNotFoundException desrEx = (SkeletonNotFoundException) deserialized;

    assertEquals(initEx.getMessage(), desrEx.getMessage());
    assertEquals(initEx.getCause().getMessage(), desrEx.getCause().getMessage());
}
项目:cn1    文件:SkeletonNotFoundExceptionTest.java   
/**
 * @tests java.rmi.server.SkeletonNotFoundException#SkeletonNotFoundException(String)
 */
public void test_Constructor_String() {
    SkeletonNotFoundException e = new SkeletonNotFoundException(errorMessage);
    assertTrue(e instanceof java.rmi.RemoteException);
    assertEquals(errorMessage, e.getMessage());
}
项目:cn1    文件:SkeletonNotFoundExceptionTest.java   
/**
 * @tests java.rmi.server.SkeletonNotFoundException#SkeletonNotFoundException(String,Exception)
 */
public void test_Constructor_String_Exception() {
    SkeletonNotFoundException e = new SkeletonNotFoundException(errorMessage, cause);
    assertEquals(cause.getMessage(), e.getCause().getMessage());
}
项目:cn1    文件:SkeletonNotFoundExceptionTest.java   
/**
 * @tests serialization/deserialization.
 */
public void testSerializationSelf() throws Exception {

    SerializationTest.verifySelf(new SkeletonNotFoundException(errorMessage, cause), comparator);
}
项目:cn1    文件:SkeletonNotFoundExceptionTest.java   
/**
 * @tests serialization/deserialization compatibility with RI.
 */
public void testSerializationCompatibility() throws Exception {

    SerializationTest.verifyGolden(this, new SkeletonNotFoundException(errorMessage, cause), comparator);
}
项目:freeVM    文件:SkeletonNotFoundExceptionTest.java   
/**
 * @tests java.rmi.server.SkeletonNotFoundException#SkeletonNotFoundException(String)
 */
public void test_Constructor_String() {
    SkeletonNotFoundException e = new SkeletonNotFoundException(errorMessage);
    assertTrue(e instanceof java.rmi.RemoteException);
    assertEquals(errorMessage, e.getMessage());
}
项目:freeVM    文件:SkeletonNotFoundExceptionTest.java   
/**
 * @tests java.rmi.server.SkeletonNotFoundException#SkeletonNotFoundException(String,Exception)
 */
public void test_Constructor_String_Exception() {
    SkeletonNotFoundException e = new SkeletonNotFoundException(errorMessage, cause);
    assertEquals(cause.getMessage(), e.getCause().getMessage());
}
项目:freeVM    文件:SkeletonNotFoundExceptionTest.java   
/**
 * @tests serialization/deserialization.
 */
public void testSerializationSelf() throws Exception {

    SerializationTest.verifySelf(new SkeletonNotFoundException(errorMessage, cause), comparator);
}
项目:freeVM    文件:SkeletonNotFoundExceptionTest.java   
/**
 * @tests serialization/deserialization compatibility with RI.
 */
public void testSerializationCompatibility() throws Exception {

    SerializationTest.verifyGolden(this, new SkeletonNotFoundException(errorMessage, cause), comparator);
}