idea连接github报错:not found

版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/hexiaohua95/article/details/90375462

错误来源于一个小功能,跟公司主产品完全分开的一个小功能,同事在github上建了一个项目,用于版本管理,我的idea之前连接的自己的项目,同事这个是私有的不公开的,但是给了我权限。当用idea连接的时候就出问题了:xxxx(项目名)  not  found! 

idea的配置如下,账号密码无错。

连接我自己之前的项目也没问题,因为同事这个项目地址不一样,更改了地址,即url。

解决办法:打开git bash   依次执行下面两条命令(如果你直接复制,请把【$】这个符号去掉!!!

$ git credential-manager uninstall
 
$ git credential-manager install

猜测原因:

 git缓存了以前的账号信息   git credential-manager uninstall 该命令会重置本地的所有密码

展开阅读全文

Source not found for ApplicationFilterChain.internalDoFilter报错

11-21

调试的时候报错rnSource not found for ApplicationFilterChain.internalDoFilter(ServletRequest, ServletResponse) line: 273rnrn源代码ClassAction.javarn/**rn * rn */rnpackage com.dp.school.action;rnrnimport java.sql.Timestamp;rnimport java.util.ArrayList;rnrnimport javax.servlet.http.HttpServletRequest;rnimport javax.servlet.http.HttpServletResponse;rnrnimport org.apache.struts.action.ActionForm;rnimport org.apache.struts.action.ActionForward;rnimport org.apache.struts.action.ActionMapping;rnrnimport com.dp.school.biz.ClassBO;rnimport com.dp.school.biz.SchoolBO;rnimport com.dp.school.biz.UserAndClassRelationsBO;rnimport com.dp.school.biz.UserAndSchoolRelationsBO;rnimport com.dp.school.pojo.Class;rnimport com.dp.school.pojo.School;rnimport com.dp.school.pojo.User;rnimport com.dp.school.util.ToolBox;rnrn/**rn * @author 刘银rn * 班级rn */rnpublic class ClassAction extends IBaseActionrn public ActionForward execute(ActionMapping actionMapping,rn ActionForm actionForm, HttpServletRequest servletRequest,rn HttpServletResponse servletResponse) throws Exceptionrn rn tryrn rn if (this.isPostMethod(servletRequest))rn rn return this.executePostMethod(actionMapping, actionForm,rn servletRequest, servletResponse);rn rn elsern rn return this.executeGetMethod(actionMapping, actionForm,rn servletRequest, servletResponse);rn rn rn catch (Exception e)rn rn servletRequest.getSession().setAttribute("StackTraceMessage", e);rn return actionMapping.findForward("ErrorPage");rn rn rn rn protected ActionForward executeGetMethod(ActionMapping actionMapping,rn ActionForm actionForm, HttpServletRequest servletRequest,rn HttpServletResponse servletResponse)rn rn User user = (User) servletRequest.getSession().getAttribute("User");rn if("add".equals(servletRequest.getParameter("action")) && user != null)rn rn this.saveToken(servletRequest);rn return actionMapping.findForward("InputPage");rn rn else if("list".equals(servletRequest.getParameter("action")))rn rn String length = servletRequest.getParameter("length");rn ArrayList list =new ArrayList();rn [color=#FF0000]list = new ClassBO().findAllClassOrderByLookCount(servletRequest, length);[/color]rn //list = new ClassBO().findClassLikeName(servletRequest, "1");rn servletRequest.setAttribute("ClassListByLookCount", list);rn if (servletRequest.getParameter("path") != null && !"".equals(servletRequest.getParameter("path")))rn rn return new ActionForward(servletRequest.getParameter("path"));rn rn return actionMapping.findForward("LookCountListPage");rn rn elsern rn return actionMapping.findForward("SessionTimeOut");rn rn rn rn protected ActionForward executePostMethod(ActionMapping actionMapping,rn ActionForm actionForm, HttpServletRequest servletRequest,rn HttpServletResponse servletResponse)rn rn String beginDate = servletRequest.getParameter("beginDate");rn String endDate = servletRequest.getParameter("endDate");rn String name = servletRequest.getParameter("name");rn String department = servletRequest.getParameter("department");rn Timestamp systime = new Timestamp(System.currentTimeMillis());rn ToolBox toolBox = new ToolBox();rn String createDatetime = toolBox.DateToString(systime, 0);rn User createUser = (User)servletRequest.getSession().getAttribute("User");rn School school = new School();rn SchoolBO schoolBO = new SchoolBO();rn school = schoolBO.findSchoolBySchoolId(servletRequest, 1);rn if(createUser == null)rn rn return actionMapping.findForward("SessionTimeOut");rn rn else if("ADD".equals(servletRequest.getParameter("doType")) && createUser != null)rn rn ClassBO classBO = new ClassBO();rn Class classObject = new Class();rn classObject = classBO.addClass(servletRequest, beginDate, endDate, department, school, name, createUser, createDatetime,0);rn UserAndClassRelationsBO uacrBO = new UserAndClassRelationsBO();rn uacrBO.addUserAndClassRelations(servletRequest, createUser, classObject, 0);rn UserAndSchoolRelationsBO uasrBO = new UserAndSchoolRelationsBO();rn uasrBO.addUserAndSchoolRelations(servletRequest, createUser, school, 1);rn servletRequest.getSession().setAttribute("EntityType", "classAdd");rn return actionMapping.findForward("Successful");rn rn elsern rn servletRequest.getSession().setAttribute("StackTraceMessage", "出错了!");rn return actionMapping.findForward("ErrorPage");rn rn rnrnrn源代码ClassBO.javarn/**rn * rn */rnpackage com.dp.school.biz;rnrnimport java.util.ArrayList;rnrnimport javax.servlet.ServletRequest;rnrnimport org.hibernate.Session;rnimport org.hibernate.Transaction;rnrnimport com.dp.school.dao.ClassDAO;rnimport com.dp.school.db.HibernateSessionFactory;rnimport com.dp.school.pojo.Class;rnimport com.dp.school.pojo.School;rnimport com.dp.school.pojo.User;rnimport com.dp.school.util.ToolBox;rnrn/**rn * @author 刘银rn *rn */rnpublic class ClassBO rn /**rn * 添加班级rn * @param requestrn * @param beginDatern * @param endDatern * @param departmentrn * @param schoolrn * @param namern * @param createUserrn * @param createDatetimern * @returnrn */rn public Class addClass(ServletRequest request,String beginDate,String endDate,String department,School school,String name,User createUser,String createDatetime,int lookCount)rn rn Session session = HibernateSessionFactory.currentSession();rn Transaction tx = session.beginTransaction();rn Class classObject = new Class();rn tryrn rn classObject.setBeginDate(beginDate);rn classObject.setEndDate(endDate);rn classObject.setDepartment(department);rn classObject.setSchool(school);rn classObject.setCreateUser(createUser);rn classObject.setName(name);rn classObject.setCreateDatetime(createDatetime);rn classObject.setLookCount(lookCount);rn rn ClassDAO classDAO = new ClassDAO();rn classDAO.addEntity(session, classObject);rn tx.commit();rn HibernateSessionFactory.closeSession();rn rn catch(Exception e)rn rn tx.rollback();rn e.printStackTrace();rn HibernateSessionFactory.closeSession();rn rn return classObject;rn rn rn /**rn * 根据班级名称,模糊查询班级列表rn * @param requestrn * @param namern * @returnrn */rn public ArrayList findClassLikeName(ServletRequest request,String name)rn rn Session session = HibernateSessionFactory.currentSession();rn Transaction tx = session.beginTransaction();rn ArrayList list = new ArrayList();rn tryrn rn list = new ClassDAO().findClassLikeName(session, name);rn tx.commit();rn HibernateSessionFactory.closeSession();rn rn catch(Exception e)rn rn tx.rollback();rn e.printStackTrace();rn HibernateSessionFactory.closeSession();rn rn return list;rn rn rn [color=#FF0000]/**rn * 根据浏览次数排序 所有班级列表rn * @param requestrn * @param lengthrn * @returnrn */rn public ArrayList findAllClassOrderByLookCount(ServletRequest request,String length)rn rn ArrayList list = new ArrayList();rn ArrayList tempList = new ArrayList();rn Session session = HibernateSessionFactory.currentSession();rn Transaction tx = session.beginTransaction();rn tryrn rn list = new ClassDAO().findAllClassOrderByLookCount(session);rn tx.commit();rn session.flush();rn rn catch(Exception e)rn rn e.printStackTrace();rn tx.rollback();rn finallyrn rn rn if(length != null && !"".equals(length))rn rn int l = Integer.parseInt(length);rn for (int i=0;i 论坛

没有更多推荐了,返回首页