Package org.apache.xmlrpc

Examples of org.apache.xmlrpc.XmlRpcException


                    result.add(blog);
                }
            } catch (Exception e) {
                String msg = "ERROR in BlooggerAPIHander.getUsersBlogs";
                mLogger.error(msg,e);
                throw new XmlRpcException(UNKNOWN_EXCEPTION, msg);
            }
        }
        return result;
    }
View Full Code Here


               
                return true;
            } catch (Exception e) {
                String msg = "ERROR in BlooggerAPIHander.editPost";
                mLogger.error(msg,e);
                throw new XmlRpcException(UNKNOWN_EXCEPTION, msg);
            }
        }
        return false;
    }
View Full Code Here

            return entry.getId();
        } catch (Exception e) {
            String msg = "ERROR in BlooggerAPIHander.newPost";
            mLogger.error(msg,e);
            throw new XmlRpcException(UNKNOWN_EXCEPTION, msg);
        }
    }
View Full Code Here

            }
            return results;
        } catch (Exception e) {
            String msg = "ERROR in BlooggerAPIHander.getRecentPosts";
            mLogger.error(msg,e);
            throw new XmlRpcException(UNKNOWN_EXCEPTION, msg);
        }
    }
View Full Code Here

                issueList.add( createIssue( ticketGetResult ) );
            }
        }
        catch ( XmlRpcException e )
        {
            throw new XmlRpcException( "XmlRpc Error.", e );
        }
        return issueList;
    }
View Full Code Here

        logger.debug("---- Response ----");
        logger.debug("---- Client "+clientUrl+" ----");
        logger.debug(toPrettyXml(logger, respBuf.toString()));
        return response;
      } catch (IOException e) {
        throw new XmlRpcException(e.getMessage(), e);
      } finally {
        IOUtils.closeQuietly(reader);
      }
    }
View Full Code Here

          + getXmlRpcCause((RemoteSimulationException) throwable);
    }

    if (throwable instanceof XmlRpcException)
    {
      XmlRpcException xmlException = (XmlRpcException) throwable;
      extendedReason = " => " + Integer.valueOf(xmlException.code) + ": "
          + xmlException.getMessage();

    }
    engineInfo(source, "[Abort] " + reason + extendedReason);
    throw new SimulationException(source, reason + extendedReason, throwable);
  }
View Full Code Here

   * <code>org/apache/xmlrpc/webserver/XmlRpcServlet.properties</code>
   */
  protected XmlRpcHandlerMapping newXmlRpcHandlerMapping() throws XmlRpcException {
    URL url = XmlRpcServlet.class.getResource("XmlRpcServlet.properties");
    if (url == null) {
      throw new XmlRpcException("Failed to locate resource XmlRpcServlet.properties");
    }
    try {
      return newPropertyHandlerMapping(url);
    } catch (IOException e) {
      throw new XmlRpcException("Failed to load resource " + url + ": " + e.getMessage(), e);
    }
  }
View Full Code Here

    } catch (SAXException e) {
      Exception ex = e.getException();
      if (ex != null  &&  ex instanceof XmlRpcException) {
        throw (XmlRpcException) ex;
      }
      throw new XmlRpcException("Failed to parse XML-RPC request: " + e.getMessage(), e);
    } catch (IOException e) {
      throw new XmlRpcException("Failed to read XML-RPC request: " + e.getMessage(), e);
    }
    final List params = parser.getParams();
    return new XmlRpcRequest(){
      public XmlRpcRequestConfig getConfig() { return pConfig; }
      public String getMethodName() { return parser.getMethodName(); }
View Full Code Here

  protected void writeResponse(XmlRpcStreamRequestConfig pConfig, OutputStream pStream,
                 Object pResult) throws XmlRpcException {
    try {
      getXmlRpcWriter(pConfig, pStream).write(pConfig, pResult);
    } catch (SAXException e) {
      throw new XmlRpcException("Failed to write XML-RPC response: " + e.getMessage(), e);
    }
  }
View Full Code Here

TOP

Related Classes of org.apache.xmlrpc.XmlRpcException

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.