Package com.arjuna.wsc

Examples of com.arjuna.wsc.InvalidCreateParametersException


            // TODO -- work out which faults we should really throw. in particular do we need to retain SoapFault
            final SOAPFault soapFault = sfe.getFault() ;
            final QName subcode = soapFault.getFaultCodeAsQName() ;
            if (CoordinationConstants.WSCOOR_ERROR_CODE_INVALID_PARAMETERS_QNAME.equals(subcode))
            {
                throw new InvalidCreateParametersException(soapFault.getFaultString());
            }
            throw new SoapFault11(sfe);
        }
    }
View Full Code Here


    public CoordinationContextType create(final String coordinationTypeURI,
        final Long expires, final CoordinationContextType currentContext)
        throws InvalidCreateParametersException
    {
        if (coordinationTypeURI.equals(TestUtil.INVALID_CREATE_PARAMETERS_COORDINATION_TYPE))
            throw new InvalidCreateParametersException();

        CoordinationContextType testCoordinationContext = new CoordinationContextType();

        final SoapRegistry soapRegistry = SoapRegistry.getRegistry() ;
        final String registrationURI = soapRegistry.getServiceURI(CoordinationConstants.SERVICE_REGISTRATION_COORDINATOR) ;
View Full Code Here

    public CoordinationContext create(final String coordinationTypeURI,
        final Long expires, final CoordinationContextType currentContext, boolean isSecure)
        throws InvalidCreateParametersException
    {
        if (coordinationTypeURI.equals(TestUtil.INVALID_CREATE_PARAMETERS_COORDINATION_TYPE)) {
            throw new InvalidCreateParametersException();
        }

        final ServiceRegistry serviceRegistry = ServiceRegistry.getRegistry() ;
        final String registrationURI = serviceRegistry.getServiceURI(CoordinationConstants.REGISTRATION_SERVICE_NAME) ;
        final W3CEndpointReferenceBuilder builder = new W3CEndpointReferenceBuilder();
View Full Code Here

      }
      catch (NoActivityException ex)
      {
        ex.printStackTrace();

        throw new InvalidCreateParametersException();
      }
      catch (SystemException ex)
      {
        ex.printStackTrace();
            }
      catch (com.arjuna.mw.wsas.exceptions.WrongStateException ex)
      {
        ex.printStackTrace();

        throw new InvalidCreateParametersException();
      }
      catch (Exception ex)
      {
        // TODO handle properly

        ex.printStackTrace();
      }
    }
    else
    {
      wstxLogger.arjLoggerI18N.warn("com.arjuna.mwlabs.wst.at.Context11FactoryImple_1", new Object[]
      { AtomicTransactionConstants.WSAT_PROTOCOL, coordinationTypeURI });

      throw new InvalidCreateParametersException(
          wstxLogger.log_mesg.getString("com.arjuna.mwlabs.wst.at.Context11FactoryImple_3")
              + " < "
              + AtomicTransactionConstants.WSAT_PROTOCOL
              + ", "
              + coordinationTypeURI + " >");
View Full Code Here

      else
      {
          wscfLogger.arjLoggerI18N.warn("com.arjuna.mwlabs.wsc.model.jta.ContextFactoryImple_1",
                new Object[]{_coordinationTypeURI, coordinationTypeURI});
   
          throw new InvalidCreateParametersException(wscfLogger.log_mesg.getString("com.arjuna.mwlabs.wsc.model.jta.ContextFactoryImple_11")+" < "+_coordinationTypeURI+", "+coordinationTypeURI+" >");
      }
   
      return null;
    }
View Full Code Here

    else
    {
      wscfLogger.arjLoggerI18N.warn("com.arjuna.mwlabs.wsc.model.twophase.ContextFactoryImple_1", new Object[]
      { _coordinationTypeURI, coordinationTypeURI });

      throw new InvalidCreateParametersException(
          wscfLogger.log_mesg.getString("com.arjuna.mwlabs.wsc.model.twophase.ContextFactoryImple_11")
              + " < "
              + _coordinationTypeURI
              + ", "
              + coordinationTypeURI + " >");
View Full Code Here

  else
  {
      wstxLogger.arjLoggerI18N.warn("com.arjuna.mwlabs.wst.ba.Context11FactoryImple_1",
            new Object[]{BusinessActivityConstants.WSBA_PROTOCOL_ATOMIC_OUTCOME, coordinationTypeURI});

      throw new InvalidCreateParametersException(wstxLogger.log_mesg.getString("com.arjuna.mwlabs.wst.ba.Context11FactoryImple_3")+" < "+ BusinessActivityConstants.WSBA_PROTOCOL_ATOMIC_OUTCOME+", "+coordinationTypeURI+" >");
  }

  return null;
    }
View Full Code Here

      }
      catch (com.arjuna.mw.wsas.exceptions.NoActivityException ex)
      {
        ex.printStackTrace();
       
        throw new InvalidCreateParametersException();
      }
      catch (com.arjuna.mw.wsas.exceptions.SystemException ex)
      {
        ex.printStackTrace();
      }
      catch (com.arjuna.mw.wsas.exceptions.WrongStateException ex)
      {
        ex.printStackTrace();
       
        throw new InvalidCreateParametersException();
      }
      catch (Exception ex)
      {
        // TODO handle properly

        ex.printStackTrace();
      }
    }
    else
    {
      wstxLogger.arjLoggerI18N.warn("com.arjuna.mwlabs.wst.at.ContextFactoryImple_1", new Object[]
      { AtomicTransactionConstants.WSAT_PROTOCOL, coordinationTypeURI });

      throw new InvalidCreateParametersException(
          wstxLogger.log_mesg.getString("com.arjuna.mwlabs.wst.at.ContextFactoryImple_3")
              + " < "
              + AtomicTransactionConstants.WSAT_PROTOCOL
              + ", "
              + coordinationTypeURI + " >");
View Full Code Here

  else
  {
      wstxLogger.arjLoggerI18N.warn("com.arjuna.mwlabs.wst.ba.ContextFactoryImple_1",
            new Object[]{BusinessActivityConstants.WSBA_PROTOCOL_ATOMIC_OUTCOME, coordinationTypeURI});

      throw new InvalidCreateParametersException(wstxLogger.log_mesg.getString("com.arjuna.mwlabs.wst.ba.ContextFactoryImple_3")+" < "+BusinessActivityConstants.WSBA_PROTOCOL_ATOMIC_OUTCOME+", "+coordinationTypeURI+" >");
  }

  return null;
    }
View Full Code Here

    else
    {
      wstxLogger.arjLoggerI18N.warn("com.arjuna.mwlabs.wst.at.local.LocalContextFactoryImple_1", new Object[]
      { AtomicTransactionConstants.WSAT_PROTOCOL, coordinationTypeURI });

      throw new InvalidCreateParametersException(
          wstxLogger.log_mesg.getString("com.arjuna.mwlabs.wst.at.local.LocalContextFactoryImple_11"
              + " <"
              + AtomicTransactionConstants.WSAT_PROTOCOL
              + ", "
              + coordinationTypeURI + " >"));
View Full Code Here

TOP

Related Classes of com.arjuna.wsc.InvalidCreateParametersException

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.