Examples of BackendException


Examples of org.apache.felix.useradmin.BackendException

            }

            return result;
        }
        catch (Exception e) {
            throw new BackendException("Adding role " + name + " failed!", e);
        }
    }
View Full Code Here

Examples of org.apache.felix.useradmin.BackendException

                result = m_store.getRoleByName(roleName);
            }
            return wireChangeListener(result);
        }
        catch (Exception e) {
            throw new BackendException("Failed to get role by name: " + roleName + "!", e);
        }
    }
View Full Code Here

Examples of org.apache.felix.useradmin.BackendException

                    matchingRoles.add(wireChangeListener(role));
                }
            }
        }
        catch (Exception e) {
            throw new BackendException("Failed to get roles!", e);
        }

        return matchingRoles;
    }
View Full Code Here

Examples of org.apache.felix.useradmin.BackendException

                    matchingRoles.add(wireChangeListener(role));
                }
            }
        }
        catch (Exception e) {
            throw new BackendException("Failed to get roles!", e);
        }

        return matchingRoles;
    }
View Full Code Here

Examples of org.apache.felix.useradmin.BackendException

            }

            return false;
        }
        catch (Exception e) {
            throw new BackendException("Failed to remove role " + name + "!", e);
        }
    }
View Full Code Here

Examples of org.apache.felix.useradmin.BackendException

                  group.removeMember(removedRole);
                }
            }
        }
        catch (Exception e) {
            throw new BackendException("Failed to get all roles!", e);
        }
  }
View Full Code Here

Examples of org.apache.pig.backend.BackendException

  protected void setKeyValueTypes(Class<?> keyClass, Class<?> valueClass) throws BackendException {
    this.keyType |= inferPigDataType(keyClass);
    this.valType |= inferPigDataType(valueClass);
    if (keyType == DataType.ERROR) {
      LOG.warn("Unable to translate key "+key.getClass()+" to a Pig datatype");
      throw new BackendException("Unable to translate "+key.getClass()+" to a Pig datatype");
    }
    if (valType == DataType.ERROR) {
      LOG.warn("Unable to translate value "+value.getClass()+" to a Pig datatype");
      throw new BackendException("Unable to translate "+value.getClass()+" to a Pig datatype");
    }

  }
View Full Code Here

Examples of org.apache.pig.backend.BackendException

  protected void setKeyType(Class<?> keyClass) throws BackendException {
    this.keyType |= inferPigDataType(keyClass);
    if (keyType == DataType.ERROR) {
      LOG.warn("Unable to translate key "+key.getClass()+" to a Pig datatype");
      throw new BackendException("Unable to translate "+key.getClass()+" to a Pig datatype");
    }
  }
View Full Code Here

Examples of org.apache.pig.backend.BackendException

 
  protected void setValueType(Class<?> valueClass) throws BackendException {
    this.valType |= inferPigDataType(valueClass);
    if (keyType == DataType.ERROR) {
      LOG.warn("Unable to translate key "+key.getClass()+" to a Pig datatype");
      throw new BackendException("Unable to translate "+key.getClass()+" to a Pig datatype");
    }
  }
View Full Code Here

Examples of org.apache.pig.backend.BackendException

      outgoing.add(getJavaObj(tuple.get(i++), fSchema));
    }
    try {
      writer.write(null, new DefaultHowlRecord(outgoing));
    } catch (InterruptedException e) {
      throw new BackendException("Error while writing tuple: "+tuple, PigHowlUtil.PIG_EXCEPTION_CODE, e);
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.