Package java.io

Examples of java.io.InvalidClassException


          throw e;
        }
        if (object instanceof JmxMonitorListener) {
          listener = (JmxMonitorListener) object;
        } else {
          throw new InvalidClassException(
                  "Invalid Monitor Formatter Class:"
                          + formatterListenerClass
                          + ".The Monitor Requires a Formatter Which Implements:org.apache.uima.aae.jmx.monitor.JmxMonitorListener");
        }
      } else {
View Full Code Here


      {
        clazz = Class.forName(type);
      }
      catch (ClassNotFoundException e)
      {
        throw new InvalidClassException(type, "could not resolve class [" + type +
          "] when deserializing proxy");
      }

      return LazyInitProxyFactory.createProxy(clazz, locator);
    }
View Full Code Here

                if (enumerations[i].name().equals(enumerationValue)) {
                    return enumerations[i];
                }
            }

            throw new RuntimeException(new InvalidClassException(enumerationClass +
                    " Does not contain an enumeration " + enumerationValue));
        } catch (Exception e) {
            throw new RuntimeException(e);
        }
    }
View Full Code Here

        if (object == null) {
            return null;
        }

        if (!(object instanceof Enum)) {
            throw new RuntimeException(new InvalidClassException(EnumTypeConverter.class.getSimpleName() +
                    " Can only convert simple Enumerations"));
        }

        String value;
        Enum anEnum = (Enum) (object);
View Full Code Here

        return resolveClass( desc.getName() );
    }

    public static InvalidClassException newInvalidClassException(Class clazz,
                                                                 Throwable cause) {
        InvalidClassException exception = new InvalidClassException( clazz.getName() );
        exception.initCause( cause );
        return exception;
    }
View Full Code Here

      {
        clazz = Class.forName(type);
      }
      catch (ClassNotFoundException e)
      {
        throw new InvalidClassException(type, "could not resolve class [" + type +
          "] when deserializing proxy");
      }

      return LazyInitProxyFactory.createProxy(clazz, locator);
    }
View Full Code Here

          throw e;
        }
        if (object instanceof JmxMonitorListener) {
          listener = (JmxMonitorListener) object;
        } else {
          throw new InvalidClassException(
                  "Invalid Monitor Formatter Class:"
                          + formatterListenerClass
                          + ".The Monitor Requires a Formatter Which Implements:org.apache.uima.aae.jmx.monitor.JmxMonitorListener");
        }
      } else {
View Full Code Here

   * @throws InvalidClassException
   */
  public ConcurrentMessageListener(int concurrentThreads, Object delegateListener, String destination, ThreadGroup threadGroup, String threadPrefix)
          throws InvalidClassException {
    if (!(delegateListener instanceof SessionAwareMessageListener)) {
      throw new InvalidClassException("Invalid Delegate Listener. Expected Object of Type:"
              + SessionAwareMessageListener.class + " Received:" + delegateListener.getClass());
    }
    concurrentThreadCount = concurrentThreads;
    this.delegateListener = (SessionAwareMessageListener) delegateListener;
    if (concurrentThreads > 1) {
View Full Code Here

      {
        clazz = Class.forName(type);
      }
      catch (ClassNotFoundException e)
      {
        throw new InvalidClassException(type, "could not resolve class [" + type +
          "] when deserializing proxy");
      }

      return LazyInitProxyFactory.createProxy(clazz, locator);
    }
View Full Code Here

          throw e;
        }
        if (object instanceof JmxMonitorListener) {
          listener = (JmxMonitorListener) object;
        } else {
          throw new InvalidClassException(
                  "Invalid Monitor Formatter Class:"
                          + formatterListenerClass
                          + ".The Monitor Requires a Formatter Which Implements:org.apache.uima.aae.jmx.monitor.JmxMonitorListener");
        }
      } else {
View Full Code Here

TOP

Related Classes of java.io.InvalidClassException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.