Package org.codehaus.xfire

Examples of org.codehaus.xfire.XFireRuntimeException


    @Override
    public void setTypeClass(Class typeClass)
    {
        if (!typeClass.isEnum())
        {
            throw new XFireRuntimeException("Type class must be an enum.");
        }
       
        super.setTypeClass(typeClass);
    }
View Full Code Here


        {
            dtFactory = DatatypeFactory.newInstance();
        }
        catch (DatatypeConfigurationException e)
        {
            throw new XFireRuntimeException("Couldn't load DatatypeFactory.", e);
        }
       
        setTypeClass(Duration.class);
    }
View Full Code Here

        {
            dtFactory = DatatypeFactory.newInstance();
        }
        catch (DatatypeConfigurationException e)
        {
            throw new XFireRuntimeException("Couldn't load DatatypeFactory.", e);
        }
       
        setTypeClass(XMLGregorianCalendar.class);
    }
View Full Code Here

  public void invoke(MessageContext ctx) throws Exception {
    // Check if header exists
    Element header = ctx.getInMessage().getHeader();
    if (header == null) {
      throw new XFireRuntimeException("Missing SOAP header");
    }
    // Does it have version tag
    Element version = header.getChild(VERSION_TAG, Namespace
        .getNamespace(VERSION_NS));
    if (version == null) {
      throw new XFireRuntimeException("Missing version header");
    }

    ctx.setProperty("ServiceVersion", version.getText());
  }
View Full Code Here

    if(serviceProperties  != null){
      ServiceProperty[] props =serviceProperties.properties();
      for(int i=0;i<props.length;i++){
        ServiceProperty serviceProperty  = props[i];
        if(!"".equals(serviceProperty.value()) && serviceProperty.list().length>0 ){
          throw new XFireRuntimeException("Service property cant have set both value and list values");
        }
        if( !"".equals(serviceProperty.value()) ){
         properties.put(serviceProperty.key(),serviceProperty.value());
        }else{
          properties.put(serviceProperty.key(), Arrays.asList(serviceProperty.list()));   
View Full Code Here

            }

        }
        catch (JiBXException e)
        {
            throw new XFireRuntimeException(e.getMessage());
        }

    }
View Full Code Here

            Object obj = mctx.unmarshalElement();
            return obj;
        }
        catch (JiBXException e)
        {
            throw new XFireRuntimeException("Could not read Jibx type.", e);
        }
        catch (XMLStreamException e)
        {
            throw new XFireRuntimeException("Could not read Jibx type.", e);
        }

    }
View Full Code Here

            mctx.marshalDocument(object);
        }
        catch (JiBXException e)
        {
            throw new XFireRuntimeException("Could not write Jibx type.", e);
        }
    }
View Full Code Here

                channels.put(c, cached);
                return cached;
            }
            catch (Exception e1)
            {
                throw new XFireRuntimeException("Couldn't instantiate MBean transport.", e1);
            }
        }
        else if (m.getName().equals("close"))
        {
            channels.remove(c);
View Full Code Here

            Object t = Sun14ReflectionProvider.newInstance(mock);
            super.register((Transport)t);
        }
        catch (Exception e1)
        {
            throw new XFireRuntimeException("Couldn't instantiate MBean transport.", e1);
        }
    }
View Full Code Here

TOP

Related Classes of org.codehaus.xfire.XFireRuntimeException

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.