use of org.omg.PortableServer.POAPackage.WrongPolicy in project alliance by codice.
the class ProductMgrImpl method get_parameters.
@Override
public GetParametersRequest get_parameters(Product prod, String[] desired_parameters, NameValue[] properties) throws ProcessingFault, InvalidInputParameter, SystemFault {
GetParametersRequest getParamRequest = null;
String id = UUID.randomUUID().toString();
try {
String productIdStr = getAccessManager().getProductId(prod);
GetParametersRequestImpl getParametersRequest = new GetParametersRequestImpl(productIdStr, desired_parameters, catalogFramework, filterBuilder, querySources, outgoingValidationEnabled);
_poa().activate_object_with_id(id.getBytes(Charset.forName(NsiliEndpoint.ENCODING)), getParametersRequest);
org.omg.CORBA.Object obj = _poa().create_reference_with_id(id.getBytes(Charset.forName(NsiliEndpoint.ENCODING)), GetParametersRequestHelper.id());
getParamRequest = GetParametersRequestHelper.narrow(obj);
} catch (WrongAdapter | WrongPolicy | UnsupportedEncodingException e) {
LOGGER.debug("Unable to get ID from product reference: {}", NsilCorbaExceptionUtil.getExceptionDetails(e), e);
} catch (ServantAlreadyActive | ObjectAlreadyActive e) {
LOGGER.debug("get_parameters : Unable to activate getParametersRequest object. {}", NsilCorbaExceptionUtil.getExceptionDetails(e), e);
}
return getParamRequest;
}
use of org.omg.PortableServer.POAPackage.WrongPolicy in project alliance by codice.
the class ProductMgrImpl method get_parameters.
@Override
public GetParametersRequest get_parameters(Product prod, String[] desired_parameters, NameValue[] properties) throws ProcessingFault, InvalidInputParameter, SystemFault {
GetParametersRequestImpl getParametersRequest = new GetParametersRequestImpl();
try {
_poa().activate_object_with_id("get_parameters".getBytes(Charset.forName(ENCODING)), getParametersRequest);
} catch (ServantAlreadyActive | ObjectAlreadyActive | WrongPolicy e) {
LOGGER.warn("get_parameters : Unable to activate getParametersRequest object.", e);
}
org.omg.CORBA.Object obj = _poa().create_reference_with_id("get_parameters".getBytes(Charset.forName(ENCODING)), GetParametersRequestHelper.id());
GetParametersRequest queryRequest = GetParametersRequestHelper.narrow(obj);
return queryRequest;
}
use of org.omg.PortableServer.POAPackage.WrongPolicy in project alliance by codice.
the class ProductMgrImpl method get_related_files.
@Override
public GetRelatedFilesRequest get_related_files(Product[] products, FileLocation location, String type, NameValue[] properties) throws ProcessingFault, InvalidInputParameter, SystemFault {
GetRelatedFilesRequestImpl getRelatedFilesRequest = new GetRelatedFilesRequestImpl();
try {
_poa().activate_object_with_id("get_related_files".getBytes(Charset.forName(ENCODING)), getRelatedFilesRequest);
} catch (ServantAlreadyActive | ObjectAlreadyActive | WrongPolicy e) {
LOGGER.warn("get_related_files : Unable to activate getRelatedFilesRequest object.", e);
}
org.omg.CORBA.Object obj = _poa().create_reference_with_id("get_related_files".getBytes(Charset.forName(ENCODING)), GetRelatedFilesRequestHelper.id());
GetRelatedFilesRequest queryRequest = GetRelatedFilesRequestHelper.narrow(obj);
return queryRequest;
}
Aggregations