Examples of SystemException


Examples of net.solosky.maplefetion.client.SystemException

        try {
              handler.handle(notify);
            } catch (FetionException e) {
              throw e;
            }catch(Throwable t) {
              throw new SystemException(t,notify);
            }
      }
    }
View Full Code Here

Examples of net.solosky.maplefetion.client.SystemException

      try {
            byte[] encrypted = StringHelper.base64Decode(c);
            byte[] decrypted = DigestHelper.AESDecrypt(encrypted, user.getAesKey(), user.getAesIV());
            return new String(decrypted,"utf8");
        } catch (IOException ex) {
          throw new SystemException("decrypt credential failed.", ex);
        }
    }
View Full Code Here

Examples of org.apache.ambari.server.controller.spi.SystemException

      } catch (org.apache.ambari.view.UnsupportedPropertyException e) {
        throw new UnsupportedPropertyException(getResourceType(e), e.getPropertyIds());
      } catch (org.apache.ambari.view.ResourceAlreadyExistsException e) {
        throw new ResourceAlreadyExistsException(e.getMessage());
      } catch (Exception e) {
        throw new SystemException(e.getMessage(), e);
      }
    }
    return new RequestStatusImpl(null);
  }
View Full Code Here

Examples of org.apache.ambari.view.SystemException

    String units = properties.get("units");

    try {
      return getResource(resourceId, units, propertyIds);
    } catch (IOException e) {
      throw new SystemException("Can't get city resource " + resourceId + ".", e);
    }
  }
View Full Code Here

Examples of org.apache.geronimo.interop.SystemException

                String value = entry.getValue().toString().trim();
                map.put(key, value);
            }
            return map;
        } catch (Exception ex) {
            throw new SystemException(ex);
        }
    }
View Full Code Here

Examples of org.apache.geronimo.interop.SystemException

            byte[] buffer = bs.toByteArray();
            os.close();
            bs.close();
            return buffer;
        } catch (Exception ex) {
            throw new SystemException("JavaObject.toByteArray", ex);
        }
    }
View Full Code Here

Examples of org.apache.geronimo.interop.SystemException

            Object object = is.readObject();
            is.close();
            bs.close();
            return object;
        } catch (Exception ex) {
            throw new SystemException("JavaObject.fromByteArray", ex);
        }
    }
View Full Code Here

Examples of org.apache.geronimo.interop.SystemException

                    }
                }
            }

            if (sc == null) {
                throw new SystemException("Error: Unable to load stub for remote interface: " + remoteInterface);
            }

            java.lang.Object sobj = sc.newInstance();

            if (!(sobj instanceof ObjectRef)) {
                throw new SystemException("Error: Stub for remote interface: '" + remoteInterface + "' is not a valid ObjectRef.");
            }

            return (ObjectRef) sobj;
            //return (ObjectRef)sc.getInstance.invoke(sc.stubClass, ArrayUtil.EMPTY_OBJECT_ARRAY);
        } catch (Exception ex) {
            throw new SystemException(ex);
        }
    }
View Full Code Here

Examples of org.apache.geronimo.interop.SystemException

                    {
                        clen = java.lang.Integer.parseInt(str);
                    }
                    catch(Exception e)
                    {
                        throw new SystemException(e.toString());
                    }
                    cLenRead = true;
                }
            }
        }

        if(!cLenRead)
        {
            throw new SystemException("HTTP Post: Missing content-length");
        }

        java.io.InputStream msgInput = input;
        if(ver == 1)
        {
View Full Code Here

Examples of org.apache.geronimo.interop.SystemException

        int count = http_read_line(input, 12);
        String str = new String(_buffer, 0, count);
        int index = str.indexOf("/HIOP/1.0/");
        if(index == -1)
        {
            throw new SystemException("HTTP Tunnelling: HIOP version error");
        }

        index += 10;
        if( index >= count)
        {
            throw new SystemException("HTTP Tunneling: GET message error");
        }

        byte[] giopdata = org.apache.geronimo.interop.util.Base16Binary.fromString(str.substring(index));
        ByteArrayInputStream bi = new ByteArrayInputStream(giopdata);
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.