Package org.netbeans.modules.exceptions.entity

Examples of org.netbeans.modules.exceptions.entity.Exceptions


                }
                request.setAttribute("logger", lines);
                return mapping.findForward(LOGGER);
            }
            if (submit instanceof Exceptions) {
                Exceptions exceptions = (Exceptions) submit;
                request.setAttribute("patches", getPatches(em, exceptions, handler.nr));
            }
            request.setAttribute("detailList", prepareLogger(submit));
        }
View Full Code Here


            sbm = slowness;
        } else {
            Stacktrace stack = new Stacktrace(i);
            stack.setMessage("Something is wrong");
            em.persist(stack);
            Exceptions exc = new Exceptions(i);
            exc.setStacktrace(stack);
            sbm = exc;
        }
        sbm.setReportId(r);
        sbm.setNbuserId(user);
        sbm.setLogfileId(lf);
View Full Code Here

        assert (id != -1) : "Id was not set";
        Report report = em.find(Report.class, id);
        if (report == null) {
            //workaround for old links from issuezilla
            if (id < 146000) {
                Exceptions exc = em.find(Exceptions.class, id);
                if (exc == null) {
                    LOG.log(Level.SEVERE, "Unable to find Exceptions.id = " + id);
                    request.setAttribute("error", "Exception #" + id + "doesn't exist");
                    return mapping.findForward(ERROR);
                }
                report = exc.getReportId();
            } else {
                Logger.getLogger(ReportDetailAction.class.getName()).warning("Cannot find report instance with id " + id);
                response.setHeader("Refresh", "30"); // refresh the page in 30s
                return mapping.findForward(PLEASE_WAIT);
            }
View Full Code Here

                            }
                        }
                        if (rootReport == null) {
                            //workaround for old links from issuezilla
                            if (reporterSubmitId < 146000) {
                                Exceptions exc = em.getReference(Exceptions.class, reporterSubmitId);
                                if (exc != null) {
                                    rootReport = exc.getReportId();
                                } else {
                                    SYNCHRONIZATION_LOGGER.log(Level.SEVERE, "Impossible to find root report {0}", reporterSubmitId.toString());
                                    continue;
                                }
                            }
View Full Code Here

    }

    private void verifyIssueChecking(){
        EntityManager em = perUtils.createEntityManager();
        em.getTransaction().begin();
        Exceptions exc = em.find(Exceptions.class, excData.getSubmitId());
        Throwable thr = exc.getMockThrowable();
        assertNotNull(Utils.checkOpenIssues(em, thr));

        Report r = em.find(Report.class, excData.getReportId());
        r.setIssueId(issueID);
        em.persist(r);
View Full Code Here

TOP

Related Classes of org.netbeans.modules.exceptions.entity.Exceptions

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.