Search in sources :

Example 1 with InvalidSlot

use of org.omg.PortableInterceptor.InvalidSlot in project wildfly by wildfly.

the class TxServerInterceptor method receive_request_service_contexts.

public void receive_request_service_contexts(ServerRequestInfo ri) {
    IIOPLogger.ROOT_LOGGER.tracef("Intercepting receive_request_service_contexts, operation: %s", ri.operation());
    try {
        ServiceContext sc = ri.get_request_service_context(txContextId);
        Any any = codec.decode_value(sc.context_data, PropagationContextHelper.type());
        ri.set_slot(slotId, any);
    } catch (BAD_PARAM e) {
    // no service context with txContextId: do nothing
    } catch (FormatMismatch e) {
        throw IIOPLogger.ROOT_LOGGER.errorDecodingContextData(this.name(), e);
    } catch (TypeMismatch e) {
        throw IIOPLogger.ROOT_LOGGER.errorDecodingContextData(this.name(), e);
    } catch (InvalidSlot e) {
        throw IIOPLogger.ROOT_LOGGER.errorSettingSlotInTxInterceptor(e);
    }
}
Also used : ServiceContext(org.omg.IOP.ServiceContext) BAD_PARAM(org.omg.CORBA.BAD_PARAM) InvalidSlot(org.omg.PortableInterceptor.InvalidSlot) Any(org.omg.CORBA.Any) FormatMismatch(org.omg.IOP.CodecPackage.FormatMismatch) TypeMismatch(org.omg.IOP.CodecPackage.TypeMismatch)

Aggregations

Any (org.omg.CORBA.Any)1 BAD_PARAM (org.omg.CORBA.BAD_PARAM)1 FormatMismatch (org.omg.IOP.CodecPackage.FormatMismatch)1 TypeMismatch (org.omg.IOP.CodecPackage.TypeMismatch)1 ServiceContext (org.omg.IOP.ServiceContext)1 InvalidSlot (org.omg.PortableInterceptor.InvalidSlot)1