Examples of SerializationException


Examples of com.ovea.jetty.session.serializer.jboss.serial.exception.SerializationException

            if (description == null) {
                description = cache.findObjectInCacheRead(reference);
            }

            if (description == null) {
                throw new SerializationException("Object reference " + reference + " was not found");
            }

            return description;
        } else {
            return cache.getObjectDescriptorStrategy().readObjectSpecialCase(input, cache, byteIdentify);
View Full Code Here

Examples of com.rackspacecloud.blueflood.exceptions.SerializationException

            byte version = in.readRawByte();
            switch (version) {
                case Constants.VERSION_1_HISTOGRAM:
                    return deserializeV1Histogram(in);
                default:
                    throw new SerializationException("Unexpected serialization version");
            }
        } catch (IOException ex) {
            throw new RuntimeException(ex) ;
        }
    }
View Full Code Here

Examples of com.sun.xml.internal.ws.encoding.soap.SerializationException

        }
        try {
            Method m = exception.getClass().getMethod("getFaultInfo");
            return m.invoke(exception);
        } catch (Exception e) {
            throw new SerializationException(e);
        }
    }
View Full Code Here

Examples of com.sun.xml.ws.encoding.soap.SerializationException

            return createDetailFromUserDefinedException(ce, exception);
        }
        try {
            return ce.getFaultInfoGetter().invoke(exception);
        } catch (Exception e) {
            throw new SerializationException(e);
        }
    }
View Full Code Here

Examples of edu.wpi.cs.wpisuitetng.exceptions.SerializationException

    }
    catch(JsonParseException e)
    {
      logger.log(Level.WARNING, "UserManager.update() had a failure in the changeset mapper.");

      throw new SerializationException("Error inflating the changeset: " + e.getMessage());
    }

   
    if(s.getUser().getUsername().equals(toUpdate.getUsername()) || s.getUser().getRole().equals(Role.ADMIN))
    {
View Full Code Here

Examples of flex.messaging.io.SerializationException

            ((Externalizable)object).readExternal(this);
        }
        else
        {
            //Class '{className}' must implement java.io.Externalizable to receive client IExternalizable instances.
            SerializationException ex = new SerializationException();
            ex.setMessage(10305, new Object[] {object.getClass().getName()});
            throw ex;
        }
    }
View Full Code Here

Examples of it.eng.qbe.serializer.SerializationException

        logger.debug("Deserializing string [" + (String)o + "]");
        try {
          workSheetDefinitionJSON = new JSONObject( (String)o );
        } catch(Throwable t) {
          logger.debug("Object to be deserialized must be string encoding a JSON object");
          throw new SerializationException("An error occurred while deserializing query: " + (String)o, t);
        }
      } else if(o instanceof JSONObject) {
        workSheetDefinitionJSON = (JSONObject)o;
      } else {
        Assert.assertUnreachable("Object to be deserialized must be of type string or of type JSONObject, not of type [" + o.getClass().getName() + "]");
      }
     
      workSheetDefinition  = new WorkSheetDefinition();
     
      try {
        deserializeSheets(workSheetDefinitionJSON, workSheetDefinition);
      } catch (Exception e) {
        throw new SerializationException("An error occurred while deserializing worksheet: " + workSheetDefinitionJSON.toString(), e);
      }

    } finally {
      logger.debug("OUT");
    }
View Full Code Here

Examples of it.eng.spagobi.commons.serializer.SerializationException

        logger.debug("Deserializing string [" + (String)o + "]");
        try {
          responseJSON = new JSONObject( (String)o );
        } catch(Throwable t) {
          logger.error("Object to be deserialized must be string encoding a JSON object",t);
          throw new SerializationException("An error occurred while deserializing query: " + (String)o, t);
        }
      } else {
        Assert.assertUnreachable("Object to be deserialized must be of type string or of type JSONObject, not of type [" + o.getClass().getName() + "]");
      }
   
View Full Code Here

Examples of krati.io.SerializationException

               
                Clock clock = _clockSerializer.deserialize(clockBytes);
               
                Event<T> event = new SimpleEvent<T>(value, clock);
                if(!batch.put(event)) {
                    throw new SerializationException("Invalid clocks:" + " clock=" + clock + " minClock=" + header.getMinClock() + " maxClock=" + header.getMaxClock());
                }
            }
           
            return batch;
        } catch(SerializationException e) {
            throw e;
        } catch(Exception e) {
            throw new SerializationException("Failed to deserialize", e);
        }
    }
View Full Code Here

Examples of net.kuujo.vertigo.util.serialization.SerializationException

  @Override
  public <T> byte[] serializeToBytes(T object) {
    try {
      return mapper.writeValueAsBytes(object);
    } catch (Exception e) {
      throw new SerializationException(e.getMessage());
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.