Package org.jresearch.gossip.exception

Examples of org.jresearch.gossip.exception.SystemException


      dao.subscribe(ptForm.getTid(), user.getInfo().getEmail(), user
          .getName());
      setStatusMessage(request, "mails.CONFIRM_SUBSCR");
    } catch (SQLException sqle) {
      getServlet().log("Connection.process", sqle);
      throw new SystemException(sqle);
    }
    return (new ActionForward("/ShowThread.do?fid=" + ptForm.getFid()
        + "&tid=" + ptForm.getTid() + "&block=" + ptForm.getBlock(),
        true));
  }
View Full Code Here


                session.setAttribute(IConst.SESSION.LAST_UPDATE_DATE,
                        new Date());
            }
        } catch (SQLException sqle) {
            getServlet().log("Connection.process", sqle);
            throw new SystemException(sqle);
        }

        return (forward);
    }
View Full Code Here

     *         SystemException
     */
    private boolean haveAccess(HttpServletRequest request, ActionMapping mapping)
            throws SystemException {
        HttpSession session = request.getSession();
        if (session.getAttribute(IConst.SESSION.PERMISSION_GUARD_KEY) == null) { throw new SystemException(
                "PERMISSION_GUARD not found in session"); }
        IPermissionGuard guard = (IPermissionGuard) session
                .getAttribute(IConst.SESSION.PERMISSION_GUARD_KEY);
        HashMap permissionMapping = StrutsConfigurationHelperAction
                .retrieveStrutsActionMapping(request.getSession()
View Full Code Here

            }

            request.setAttribute(IConst.REQUEST.RECORDS_DATA, recordsData);
        } catch (SQLException sqle) {
            getServlet().log("Connection.process", sqle);
            throw new SystemException(sqle);
        } catch (InstantiationException e) {
            throw new SystemException(e);
        } catch (IllegalAccessException e) {
            throw new SystemException(e);
        } catch (InvocationTargetException e) {
            throw new SystemException(e);
        } catch (NoSuchMethodException e) {
            throw new SystemException(e);
        }

        return (mapping.findForward("newTopicsList"));
    }
View Full Code Here

                session.removeAttribute(IConst.SESSION.GROUPS_KEY);
                log(request, "logs.LOG1");
            }
        } catch (SQLException sqle) {
            getServlet().log("Connection.process", sqle);
            throw new SystemException(sqle);
        }

        // Report any errors we have discovered back to the original form
        if (!errors.isEmpty()) {
            saveErrors(request, errors);
View Full Code Here

     */
    public ActionForward execute(ActionMapping mapping, ActionForm form,
            HttpServletRequest request, HttpServletResponse response)
            throws Exception {
        String dispatch = request.getParameter(DISPATCH_PARAM);
        if (dispatch == null || dispatch.equals("")) { throw new SystemException(
                new NullPointerException("dispatch param can't be empty")); }
        ActionForward forward = mapping.findForward(request
                .getParameter(DISPATCH_PARAM));
        if (forward == null) { throw new SystemException(
                new NullPointerException(" forward '" + dispatch
                        + "' not found")); }
        return forward;

    }
View Full Code Here

      MailProcessor._mailSession = null;
      log(request, "status.UPDATE_MAILPASSWORD");
      setStatusMessage(request, "status.UPDATE_MAILPASSWORD");
    } catch (SQLException sqle) {
      getServlet().log("Connection.process", sqle);
      throw new SystemException(sqle);
    } catch (Exception e) {
        throw new SystemException(e);
        }
    return (mapping.findForward(IConst.TOKEN.PAGE));
  }
View Full Code Here

      if (mess != null) {
        dao.deleteMessage(pmForm);
      }
    } catch (SQLException sqle) {
      getServlet().log("Connection.process", sqle);
      throw new SystemException(sqle);
    }
    return (new ActionForward("/ShowThread.do?fid=" + pmForm.getFid()
        + "&tid=" + pmForm.getTid() + "&block=" + pmForm.getBlock(),
        true));
  }
View Full Code Here

            if (log.isDebugEnabled()) {
                log.debug("ConfirmCodeAction : image generator is finished");
            }
        } catch (Exception e) {
            log.error(" error in ConfirmCodeAction :", e);
            throw new SystemException(e);
        }
        return null;
    }
View Full Code Here

            "mails.NOSUB2"));
        saveErrors(request, errors);
      }
    } catch (SQLException sqle) {
      getServlet().log("Connection.process", sqle);
      throw new SystemException(sqle);
    }
    return (mapping.findForward(inputForward));
  }
View Full Code Here

TOP

Related Classes of org.jresearch.gossip.exception.SystemException

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.