Examples of SerializationException


Examples of org.jboss.serial.exception.SerializationException

            {
              this.writeByte(DataContainerConstants.BOOLEAN);
              DataContainer.this.content.add(obj);
            } else
            {
                throw new SerializationException("I don't know how to write type " + obj.getClass().getName() + " yet");
            }
        }
View Full Code Here

Examples of org.kie.services.client.serialization.SerializationException

    private void initialize(Class<?> [] jaxbClasses) {
        try {
            this.jaxbContext = JAXBContext.newInstance(jaxbClasses);
        } catch (JAXBException jaxbe) {
            throw new SerializationException("Unsupported JAXB Class encountered during initialization: " + jaxbe.getMessage(), jaxbe);
        }
    }
View Full Code Here

Examples of org.kitesdk.data.SerializationException

   */
  public static <T> T readAvroEntity(Decoder decoder, DatumReader<T> reader) {
    try {
      return reader.read(null, decoder);
    } catch (IOException e) {
      throw new SerializationException("Could not deserialize Avro entity", e);
    }
  }
View Full Code Here

Examples of org.neo4j.smack.serialization.SerializationException

                {
                    out.putLong(item);
                }
            } else
            {
                throw new SerializationException("Unknown property value array type: " + value.getClass());
            }
           
            out.endList();
        } else
        {
            throw new SerializationException("Unknown property value type: " + value.getClass());
        }
    }
View Full Code Here

Examples of org.sdnplatform.sync.error.SerializationException

            if (logger.isTraceEnabled()) {
                logger.trace("Converted key {} to {}", key, k);
            }
            return k;
        } catch (Exception e) {
            throw new SerializationException(e);
        }
    }
View Full Code Here

Examples of org.springframework.xd.dirt.integration.bus.serializer.SerializationException

        }
        this.codec.serialize(originalPayload, bos);
        return bos.toByteArray();
      }
      catch (IOException e) {
        throw new SerializationException("unable to serialize payload ["
            + originalPayload.getClass().getName() + "]", e);
      }
    }
  }
View Full Code Here

Examples of pivot.serialization.SerializationException

        ClassLoader classLoader = Thread.currentThread().getContextClassLoader();
        URL location = classLoader.getResource(resourceName);

        if (location == null) {
            throw new SerializationException("Could not find resource named \""
                + resourceName + "\".");
        }

        return readObject(location);
    }
View Full Code Here

Examples of rocket.serialization.client.SerializationException

      final Class classs = object.getClass();
      objectOutputStream.writeObject(classs.getName());
      this.writeFields(object, classs, objectOutputStream);

    } catch (IllegalAccessException illegalAccess) {
      throw new SerializationException(illegalAccess);
    }
  }
View Full Code Here

Examples of voldemort.serialization.SerializationException

                            l2 - LENGTH_BYTES);
    }

    public int compareBytes(byte[] b1, int s1, int l1, byte[] b2, int s2, int l2) {
        if(serializer == null)
            throw new SerializationException("No serializer has been set!");
        try {
            buffer.reset(b1, s1, l1);
            Object key1 = serializer.toObject(dataInput);

            buffer.reset(b2, s2, l2);
            Object key2 = serializer.toObject(dataInput);

            if(key1 instanceof Comparable) {
                return this.compareSerializedObjects(key1, key2);
            } else {
                return customCompare(key1, key2, serializer);
            }
        } catch(IOException e) {
            throw new SerializationException(e);
        }
    }
View Full Code Here

Examples of voldemort.serialization.SerializationException

        try {
            clazz = (Class<T>) Class.forName(SerializationUtils.getJavaClassFromSchemaInfo(schemaInfo));
            if(!SpecificRecord.class.isAssignableFrom(clazz))
                throw new IllegalArgumentException("Class provided should implement SpecificRecord");
        } catch(ClassNotFoundException e) {
            throw new SerializationException(e);
        }
    }
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.