Package java.io

Examples of java.io.NotSerializableException


      if (instance == null) throw new NullPointerException("Null values cannot be wrapped as MarshalledValues!");

      if (instance instanceof Serializable)
         this.instance = instance;
      else
         throw new NotSerializableException("Marshalled values can only wrap Objects that are serializable!  Instance of " + instance.getClass() + " won't Serialize.");
   }
View Full Code Here


      if (instance == null) throw new NullPointerException("Null values cannot be wrapped as MarshalledValues!");

      if (marshaller.isMarshallable(instance))
         this.instance = instance;
      else
         throw new NotSerializableException("Marshalled values can only wrap Objects that can be serialized or marshalled!  Instance of "
               + instance.getClass() + " won't serialize or marshall.");
      this.equalityPreferenceForInstance = equalityPreferenceForInstance;
      this.marshaller = marshaller;
   }
View Full Code Here

            // a null response is 99% likely to be due to a marshalling problem - we throw a NSE, this needs to be changed when
            // JGroups supports http://jira.jboss.com/jira/browse/JGRP-193
            // the serialization problem could be on the remote end and this is why we cannot catch this above, when marshalling.
            if (retval == null)
               throw new NotSerializableException("RpcDispatcher returned a null.  This is most often caused by args for "
                     + command.getClass().getSimpleName() + " not being serializable.");

            if (supportReplay) {
               boolean replay = false;
               Vector<Address> ignorers = new Vector<Address>();
View Full Code Here

            // a null response is 99% likely to be due to a marshalling problem - we throw a NSE, this needs to be changed when
            // JGroups supports http://jira.jboss.com/jira/browse/JGRP-193
            // the serialization problem could be on the remote end and this is why we cannot catch this above, when marshalling.
            if (retval == null)
               throw new NotSerializableException("RpcDispatcher returned a null.  This is most often caused by args for "
                     + command.getClass().getSimpleName() + " not being serializable.");

            if (supportReplay) {
               boolean replay = false;
               Vector<Address> ignorers = new Vector<Address>();
View Full Code Here

      if (instance == null) throw new NullPointerException("Null values cannot be wrapped as MarshalledValues!");

      if (marshaller.isMarshallable(instance))
         this.instance = instance;
      else
         throw new NotSerializableException("Marshalled values can only wrap Objects that can be serialized or marshalled!  Instance of "
               + instance.getClass() + " won't serialize or marshall.");
      this.equalityPreferenceForInstance = equalityPreferenceForInstance;
      this.marshaller = marshaller;
   }
View Full Code Here

            // a null response is 99% likely to be due to a marshalling problem - we throw a NSE, this needs to be changed when
            // JGroups supports http://jira.jboss.com/jira/browse/JGRP-193
            // the serialization problem could be on the remote end and this is why we cannot catch this above, when marshalling.
            if (retval == null)
               throw new NotSerializableException("RpcDispatcher returned a null.  This is most often caused by args for "
                                                        + command.getClass().getSimpleName() + " not being serializable.");

            if (supportReplay) {
               boolean replay = false;
               Vector<Address> ignorers = new Vector<Address>();
View Full Code Here

         // a null response is 99% likely to be due to a marshalling problem - we throw a NSE, this needs to be changed when
         // JGroups supports http://jira.jboss.com/jira/browse/JGRP-193
         // the serialization problem could be on the remote end and this is why we cannot catch this above, when marshalling.
         if (retval == null)
            throw new NotSerializableException("RpcDispatcher returned a null.  This is most often caused by args for "
                  + command.getClass().getSimpleName() + " not being serializable.");

         if (supportReplay) {
            boolean replay = false;
            Vector<Address> ignorers = new Vector<Address>();
View Full Code Here

        RPC.streamResponseForSuccess(clientOracle, result, message);
        return new String(result.toByteArray(), "UTF-8");
      }
    }
    catch (SerializationException e) {
      throw new NotSerializableException("Unable to serialize object, message: " + e.getMessage());
    }
  }
View Full Code Here

        {
            request.getPortletSession().setAttribute(key, message, PortletSession.APPLICATION_SCOPE);
        }
        else
        {
            throw new NotSerializableException("Message not serializable for " + key);
        }
    }
View Full Code Here

        {
            request.getPortletSession().setAttribute(key, message, PortletSession.PORTLET_SCOPE);
        }
        else
        {
            throw new NotSerializableException("Message not serializable for " + key);
        }
    }
View Full Code Here

TOP

Related Classes of java.io.NotSerializableException

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.