Package org.apache.commons.lang

Examples of org.apache.commons.lang.SerializationException


      {
         return AnyHelper.toString( messageElement );
      }
      catch ( Exception e )
      {
         throw new SerializationException( "genericSerializationError", e );
      }
   }
View Full Code Here


                                 Class javaClass )
   throws SerializationException
   {
      if ( ( type == null ) && ( javaClass == null ) )
      {
         throw new SerializationException( "typeOrClassRequired" );
      }

      if ( type != null )
      {
         // Use the xmlType to get the deserializer.
View Full Code Here

      setDeserializer( type, javaClass );

      if ( topDeserializer == null )
      {
         String arg = ( type == null ) ? javaClass.getName(  ) : type.toString(  );
         throw new SerializationException( "noDeserializer" + arg );
      }

      pushElementHandler( new EnvelopeHandler( (SOAPHandler) this.topDeserializer ) );
   }
View Full Code Here

      {
         deserializer.parse(  );
      }
      catch ( Exception e )
      {
         throw new SerializationException( "genericDeserializationError", e );
      }

      return deserializer.getValue(  );
   }
View Full Code Here

      {
         deserializer.parse(  );
      }
      catch ( Exception e )
      {
         throw new SerializationException( "genericDeserializationError", e );
      }

      return deserializer.getValue(  );
   }
View Full Code Here

                                  Class       javaClass )
   throws SerializationException
   {
      if ( !( element instanceof MessageElement ) )
      {
         throw new SerializationException( "unsupportedType" );
      }

      MessageElement elem = (MessageElement) element;
      if ( ( elem.getDeserializationContext(  ) != null ) && !elem.isDirty(  ) )
      {
         try
         {
            return elem.getValueAsType( elem.getType(  ),
                                        javaClass );
         }
         catch ( Exception e )
         {
            throw new SerializationException( "genericDeserializationError", e );
         }
      }
      else
      {
         ObjectDeserializationContext deserializer = new ObjectDeserializationContext( elem, javaClass );
         try
         {
            deserializer.parse(  );
         }
         catch ( Exception e )
         {
            throw new SerializationException( "genericDeserializationError", e );
         }

         return deserializer.getValue(  );
      }
   }
View Full Code Here

        {
            return XmlBeanUtils.toSOAPElement( m_propsXBean );
        }
        catch ( Exception e )
        {
            throw new SerializationException( e );
        }
    }
View Full Code Here

        {
            return XmlBeanUtils.toSOAPElementArray( (XmlObject[]) m_propElems.toArray( new XmlObject[0] ) );
        }
        catch ( Exception e )
        {
            throw new SerializationException( e );
        }
    }
View Full Code Here

            }
            return obj;
        }
        catch (ClassNotFoundException ex)
        {
            throw new SerializationException(ex);
        }
        catch (IOException ex)
        {
            throw new SerializationException(ex);
        }
        catch (Exception ex)
        {
            throw new SerializationException(ex);
        }
        finally
        {
            try
            {
View Full Code Here

        {
            return XmlBeanUtils.toSOAPElement( m_propsXBean );
        }
        catch ( Exception e )
        {
            throw new SerializationException( e );
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.commons.lang.SerializationException

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.