求解如下报错:Space is not allowed after parameter prefix ':' [问题点数:40分]

Bbs1
本版专家分:0
结帖率 0%
Bbs1
本版专家分:0
Bbs1
本版专家分:0
Space is not allowed after parameter prefix ':'
org.hibernate.QueryException: Space is not <em>allowed</em> <em>after</em> <em>parameter</em> <em>prefix</em> ':' [SELECT .... 用符号:/*'*/:=/*'*/转换:=
org.hibernate.QueryException: Space is not allowed after parameter prefix ':'
spring mvc + Hibernate4x + maven 抛异常<em>报错</em>: exception org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.hibernate.QueryException: Space is not allowe
No operations allowed after statement closed.
解决:com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operations <em>allowed</em> <em>after</em> statement closed.
Operation not allowed after ResultSet closed
Operation not <em>allowed</em> <em>after</em> ResultSet closed这类问题基本上是因为什么的错误?
No operations allowed after statement closed
[code=java]21:01:11,919 WARN org.hibernate.jdbc.AbstractBatcher:302 - exception clearing maxRows/queryTimeoutrncom.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operations <em>allowed</em> <em>after</em> statement closed.rn at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)rn at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)rn at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)rn at java.lang.reflect.Constructor.newInstance(Constructor.java:513)rn at com.mysql.jdbc.Util.handleNewInstance(Util.java:411)rn at com.mysql.jdbc.Util.getInstance(Util.java:386)rn at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1015)rn at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:989)rn at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:975)rn at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:920)rn at com.mysql.jdbc.StatementImpl.checkClosed(StatementImpl.java:461)rn at com.mysql.jdbc.StatementImpl.getMaxRows(StatementImpl.java:2216)rn at org.apache.commons.dbcp.DelegatingStatement.getMaxRows(DelegatingStatement.java:237)rn at org.hibernate.jdbc.AbstractBatcher.closeQueryStatement(AbstractBatcher.java:298)rn at org.hibernate.jdbc.AbstractBatcher.closeQueryStatement(AbstractBatcher.java:234)rn at org.hibernate.loader.Loader.getResultSet(Loader.java:1967)rn at org.hibernate.loader.Loader.doQuery(Loader.java:802)rn at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:274)rn at org.hibernate.loader.Loader.doList(Loader.java:2542)rn at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2276)rn at org.hibernate.loader.Loader.list(Loader.java:2271)rn at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:459)rn at org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:365)rn at org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:196)rn at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1268)rn at org.hibernate.impl.QueryImpl.list(QueryImpl.java:102)rn at com.jmy.logic.JEssayLogic.find(JEssayLogic.java:167)rn at com.jmy.service.impl.JEManagerImpl.find(JEManagerImpl.java:47)rn at com.jmy.action.JmyOnePage.loadPage(JmyOnePage.java:47)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:597)rn at com.opensymphony.xwork2.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:453)rn at com.opensymphony.xwork2.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:292)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:255)rn at org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept(DebuggingInterceptor.java:256)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)rn at com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:176)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)rn at com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:265)rn at org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:68)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)rn at com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:138)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)rn at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:211)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)rn at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:211)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)rn at com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:190)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)rn at org.apache.struts2.interceptor.MultiselectInterceptor.intercept(MultiselectInterceptor.java:75)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)rn at org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:90)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)rn at org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:243)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)rn at com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:100)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)rn at com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.intercept(ScopedModelDrivenInterceptor.java:141)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)rn at com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:145)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)rn at com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:171)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)rn at com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:176)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)rn at org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:164)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)rn at com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:192)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)rn at com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:187)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)rn at org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:54)rn at org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:510)rn at org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:77)rn at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:91)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)rn at org.apache.catalina.core.StandardWrapperValve.invrnrn配置文件是[code=html]rn rn rn rn com.wds.registration.modelrn com.jmy.essay.modelrn com.jmy.picture.modelrn rn rn rn rn rn org.hibernate.dialect.MySQLDialectrn rn truern updatern truern truern truern truern rn rn rn rn [/code]rnjava调用代码[code=java]public List find(List e_EMLs) rn /** select title,author from List(table'name) order by id desc LIMIT 8 **/rn List tbes = new ArrayList();rn tbes.clear();rn tbes.add("E_Rcm");rn tbes.add("E_Egh");rn tbes.add("E_Mword");rn tbes.add("E_Bword");rn tbes.add("E_Fas");rn tbes.add("E_Clas");rnrn e_EMLs = new ArrayList();rn String sql1 = "select id,title,author,rlTime,tbName from ";rn String sql2 = " order by id desc";rn int stNO = 0, elNO = 8;rn Session session = sessionFactory.openSession();rn for (int i = 0; i < tbes.size(); i++) rn List e_Ml = new ArrayList();rn E_EML e_EML = new E_EML();rnrn Query query = session.createQuery(sql1 + tbes.get(i) + sql2);rn query.setFirstResult(stNO);rn query.setMaxResults(elNO);rn List l = query.list();rnrn for (int j = 0; j < l.size(); j++) rn Object[] objs = (Object[]) l.get(j);rn _essay_Model em = new _essay_Model();rn em.setId((Integer) objs[0]);rn em.setTitle((String) objs[1]);rn em.setAuthor((String) objs[2]);rn DateFormat dformat = new SimpleDateFormat("yyyy-MM-dd");rn em.setRltoStr(dformat.format((Timestamp) objs[3]));rn em.setTbName((String) objs[4]);rn e_Ml.add(em);rn rn e_EML.setE_Ms(e_Ml);rn e_EMLs.add(e_EML);rn rn rn session.close();rn sessionFactory.close();rn return e_EMLs;rn rn[/code]
no operations allowed after statement closed
最近做了一个SWING的程序,我希望通过程序来操作一个终端,比如用读卡器来读IC卡,就好像我们上班打卡的那样,程序我写出来了,也可以使用,但是有时候在打卡的时候会<em>报错</em>rn<em>如下</em>:[color=#FF0000]no operations <em>allowed</em> <em>after</em> statement closed[/color]rnrn好像是说数据库操作对象被关闭了,但是在程序当中我并没有关闭statement对象,而且这个错误不是总出来,而是时有时无,每次都需要重启程序或者重启系统才能正常!rnrn补充:我用的是mysql的数据库rnrn请各位帮忙解决一下,谢谢了!!!
mysql单表递归查询(jpa[org.hibernate.QueryException: Space is not allowed afterQuery parameter prefix ':'])
组织表字段id,及parentId,数据库mysql5.7 ①解决的问题点:需要查出一个组织树结构,根据指定ID获取当前ID的所有子树。 select  id,         parent_id  from    (select * from hrm_organization          order by parent_id, id) organization,
hibernate占位符的问题导致无法执行带变量的mysql sql语句
今天为研发改写了一个巨复杂的sql,因为保密原因就不贴出来了,自觉得意之时开发哥哥抱怨说只能在命令行执行,一旦放程序里就<em>报错</em>(hibernate包装过) 这里给一个简单的sql来做例子: select a.id ,a.d ,if(@od=a.d,@rank:=@rank+1,@rank:=1) num ,@od:=a.d from (select id ,d from number c ord
org.hibernate.QueryException: Space is not allowed after parameter prefix ':'解决
环境 Eclipse Indigo + Hibernate3.2 + Oracle 11g R2 + SQLPlus 问题 运行Hibernate程序,报<em>如下</em>异常 org.hibernate.QueryException: Space is not <em>allowed</em> <em>after</em> <em>parameter</em> <em>prefix</em> ':' [select id from contactor where ...
Space is not allowed after parameter prefix ':'(hibernate native sql “:” 冒号转义错误)
Space is not <em>allowed</em> <em>after</em> <em>parameter</em> <em>prefix</em> ':'(hibernate native sql “:” 冒号转义错误)
Space is not allowed after parameter prefix ':' [SELECT
处理: org.hibernate.QueryException: Space is not <em>allowed</em> <em>after</em> <em>parameter</em> <em>prefix</em> ':' [SELECT count(tdd.city_name) as city_count from (SELECT city_id,province_id,name,city_name,gmv_sum,@curRank:= @curRan...
Operation not allowed after ResultSet closed异常
写了个递归方法,但是老<em>报错</em>,说rs已经关闭,但怎么查也查不出来,上网百度找了找,都不对,求大婶指点rn [code=java][/code]
org.apache.jasper.JasperException: Operation not allowed after ResultSet closed
相关流程:[code=Java]public void doPost(HttpServletRequest request, HttpServletResponse response)rn throws ServletException, IOException rn HttpSession mySession = request.getSession(true);rn mySession.setAttribute("errMsg", "");// 清空错误信息rnrn String username = request.getParameter("username"); // 获取参数值rn String password = request.getParameter("password");rnrn String identfiy = request.getParameter("identfiy");// 获取参数传来的验证码rnrn String sessionIdentiy = (String) mySessionrn .getAttribute("Login_Image_Code"); // 获取session里的验证码rnrn String conformPswd = "";rn String sql = "select * from user where username='" + username + "'";rnrn if (identfiy == "" || identfiy.length() < 1) // 验证码为能为空rnrn mySession.setAttribute("errMsg", "验证码不能为空!");rn response.sendRedirect("/loginuser/login.jsp");rnrn else if (!identfiy.toUpperCase().equals(sessionIdentiy.toUpperCase())) // 验证验证码是是否一致rnrn mySession.setAttribute("errMsg", "验证码错误!");rn response.sendRedirect("/loginuser/login.jsp");rn rnrn ResultSet rs = null;rn mvconnection mvc = new mvconnection();rn if (mvc != null) rn rs = mvc.getResultSet(sql);rnrn else rn return;rn rn if (rs != null) rn try rn while (rs.next()) rn if (rs.getString(3) != null) rn conformPswd = rs.getString(3);rn rnrn rn catch (SQLException e) rn e.printStackTrace();rn finally rn rn rn else rn mySession.setAttribute("errMsg", "用户名不存在!");rn response.sendRedirect("/loginuser/login.jsp");rn rnrn if (password.equals(conformPswd)) rnrn if (username.equals("guest")) rn sql = "select * from user where enroll= 0";rn rs = mvc.getList(sql);rn mySession.setAttribute("rs", rs);rnrn response.sendRedirect("/loginuser/guest.jsp");rnrn else if (username.equals("admin")) rnrn sql = "select * from user where enroll= 1"; // 通过的rn rs = mvc.getList(sql);rn mySession.setAttribute("rs", rs);rn RequestDispatcher requestDispathcer = request.getRequestDispatcher("/admin.jsp");rn requestDispathcer.forward(request, response);rnrn else if (username.equals("user")) rnrn sql = "select * from user where enroll= 1"; // 通过的rn rs = mvc.getList(sql);rn // set attribute herern mySession.setAttribute("rs", rs);rn response.sendRedirect("/loginuser/user.jsp");rnrn rn else rn return;rn rnrn rn rn[/code]rnrn[code=Java]public ResultSet getList(String sql) rn ResultSet rs = null;rn Statement stmt = null;rn Connection con = null;rn con = this.dbC.getConnection();rn if (con != null) rn try rn stmt = con.createStatement();rn if (stmt != null) rn rs = stmt.executeQuery(sql);rn if (rs != null) rn return rs;rn else rn return null;rn rn else rn return null;rn rn catch (SQLException e) rnrn e.printStackTrace();rn return null;rn rnrn else rn return null;rn rnrn [/code]rnrnrn[code=HTML]rnrnrnrnrn rn rn rn adminrn rn rn rn rn rn rn rnrn rn rn rn rn id 用户名 简历信息 审核情况 是否录取 操作rn rn rn 修改 删除rn rn rn rnrn[/code]rnHTTP Status 500 - rnrn--------------------------------------------------------------------------------rnrntype Exception reportrnrnmessage rnrndescription The server encountered an internal error () that prevented it from fulfilling this request.rnrnexception rnrnorg.apache.jasper.JasperException: After end of result setrn org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:460)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:355)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:803)rnrnrnroot cause rnrnjavax.servlet.ServletException: After end of result setrn org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:841)rn org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:774)rn org.apache.jsp.update_jsp._jspService(update_jsp.java:106)rn org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:803)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:331)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:803)rnrnrnroot cause rnrnjava.sql.SQLException: After end of result setrn com.mysql.jdbc.SQLError.createSQLException(SQLError.java:910)rn com.mysql.jdbc.ResultSet.checkRowPos(ResultSet.java:709)rn com.mysql.jdbc.ResultSet.getInt(ResultSet.java:2605)rn org.apache.jsp.update_jsp._jspService(update_jsp.java:73)rn org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:803)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:331)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:803)rnrnrnnote The full stack trace of the root cause is available in the Apache Tomcat/5.5.25 logs.rnrnrn--------------------------------------------------------------------------------rnrnApache Tomcat/5.5.25[color=#FF0000]我rs都没有关啊,怎么会有After end of result set错误[/color]
error: Link tests are not allowed after GCC_NO_EXECUTABLES
我在建立arm交叉编译环境遇到这个问题,在谷歌上查找有很多遇到这个问题的,但是没有一个是合适的解决方案,各位大神帮帮忙解决一下rnchecking whether the /home/embedded/build-bools/build-gcc/./gcc/xgcc -B/home/embedded/build-bools/build-gcc/./gcc/ -B/home/embedded/tools/arm-linux/bin/ -B/home/embedded/tools/arm-linux/lib/ -isystem /home/embedded/tools/arm-linux/include -isystem /home/embedded/tools/arm-linux/sys-include linker (/home/embedded/build-bools/build-gcc/./gcc/collect-ld) supports shared libraries... yesrnchecking whether -lc should be explicitly linked in... nornchecking dynamic linker characteristics... configure: error: Link tests are not <em>allowed</em> <em>after</em> GCC_NO_EXECUTABLES.rnmake[1]: *** [configure-target-libstdc++-v3] Error 1rnmake[1]: Leaving directory `/home/embedded/build-bools/build-gcc'rnmake: *** [all] Error 2rn
No operations allowed after statement closed.错误-求助
请问一般No operations <em>allowed</em> <em>after</em> statement closed.是什么错误?rn<em>报错</em><em>如下</em>:rnjava.sql.SQLException: No operations <em>allowed</em> <em>after</em> statement closed.rn at com.mysql.jdbc.Statement.checkClosed(Statement.java:277)rn at com.mysql.jdbc.Statement.executeQuery(Statement.java:870)rn at Display.main(Display.java:92)rn源程序rnsql="select * From Student";rnrn //read resultrnrntry rn ResultSet rs=stmt.executeQuery(sql);rnwhile(rs.next())rnrnrnrnString AgentName=rs.getString(1);rnrnSystem.out.println(AgentName+" ");rnrnrnrs.close();rnstmt.close();rnrn rn catch (Exception e) rn System.out.println("exceptin in excute the query!");rn e.printStackTrace(); rnrnrnrn是控制流的错误么?rnPS. 关于SQL语句肯定没错。。。
java.sql.SQLException: Operation not allowed after ResultSet closed
[code=Java]rnrnpackage com.gunxue.servlet;rnrnimport java.io.IOException;rnimport java.io.PrintWriter;rnimport java.security.MessageDigest;rnimport java.security.NoSuchAlgorithmException;rnimport java.sql.Connection;rnimport java.sql.ResultSet;rnimport java.sql.SQLException;rnimport java.sql.Statement;rnimport java.text.DateFormat;rnimport java.util.Date;rnrnimport javax.servlet.ServletException;rnimport javax.servlet.http.HttpServlet;rnimport javax.servlet.http.HttpServletRequest;rnimport javax.servlet.http.HttpServletResponse;rnrnimport org.apache.commons.logging.Log;rnimport org.apache.commons.logging.LogFactory;rnrn//import com.xifan.db.DB;rnimport com.gunxue.pushHttp.PushTask;rnimport com.gunxueapi.test.ConnectionPool;rnrn@SuppressWarnings("serial")rnpublic class Push extends HttpServlet rn private static final Log log = LogFactory.getLog(Push.class);rn public void doGet(HttpServletRequest request, HttpServletResponse response)rn throws ServletException, IOException rnrn doPost(request, response);rn rnrn public void doPost(HttpServletRequest request, HttpServletResponse response)rn throws ServletException, IOException rn request.setCharacterEncoding("utf-8");rn response.setContentType("text/html; charset=utf-8");rn PrintWriter out = response.getWriter();rnrn // 从url里得到得到用户名rn String cpid = request.getParameter("name");rn // 从url里得到密码rn String cppwd = request.getParameter("password");rn // 从url里得出电话rn String mobile = request.getParameter("phone");rn // 从url里得出内容rn String msgcontent = request.getParameter("mtContent");rn // 从URL里得到服务代码rn String spnumber = request.getParameter("spnumber");rn //取得当前时间rn Date date = new Date();rn DateFormat d2 = DateFormat.getDateTimeInstance(); rn String str2 = d2.format(date); rn /*rn * 服务器端rn */rn try rn String SQL = "select cpid,cppwd from userinfo where count>0";rn ConnectionPool pool = null;rn pool = ConnectionPool.getInstance();rn Connection conn = pool.getConnection();rn Statement stmt = conn.createStatement();rn ResultSet rs = stmt.executeQuery(SQL);rn while (rs.next()) rn String m5pwd=Push.Md5(rs.getString(2));rn if (cpid != null && !cpid.equals("")) rn if (rs.getString(1).equals(cpid.trim())) rn if (cppwd != null && !cppwd.equals("")) rn if (m5pwd.equals(cppwd.trim())) rn if (mobile != nullrn && !mobile.equals("")) rn if (msgcontent != nullrn && !msgcontent.equals("")) rn String resp = PushTask.work(mobile.trim(),msgcontent.trim());rn if (!resp.trim().equals("0")) rn SQL = "insert into pushcontent(cpid,mobile,content,spnumber,cpdatetime,flag) value('"rn + cpid.trim()rn + "','"rn + mobile.trim()rn + "','"rn + msgcontent.trim()rn + "','"rn + spnumberrn + "','"rn + str2rn + "',1)";rn stmt.executeUpdate(SQL);rn SQL = "update userinfo set count=count-1 where cpid='"rn + cpid.trim() + "'";rn stmt.executeUpdate(SQL);rn rn out.println("0");rn rn rn else rn SQL = "insert into pushcontent(cpid,mobile,content,spnumber,cpdatetime,flag) value('"rn + cpid.trim()rn + "','"rn + mobile.trim()rn + "','"rn + msgcontent.trim()rn + "','"rn + spnumberrn + "','"rn + str2rn + "',0)";rn stmt.executeUpdate(SQL);rn out.println("007");rn rn else rn out.println("006");// 内容为空rn rn else rn out.println("005");// 号码为空rn rn else rn out.println("004");// 密码不正确rn rn else rn out.println("003");// 密码为空rn rn else rn out.print("002");// 用户名不存在rn rn else rnrn out.println("001");// 没有填写用户名rn rn // log.info("["+ip+"]"+cpid+"/"+cppwd+""+mobile+""+msgcontent+"#"+spnumber+"#");rn rn rs.close();rn stmt.close();rn pool.release(conn);rn pool.closePool();rn catch (SQLException e) rn // TODO Auto-generated catch blockrn e.printStackTrace();rn catch (Exception e) rn // TODO Auto-generated catch blockrn e.printStackTrace();rn rn rnrn private static String Md5(String m5pwd) rn String m5pw="";rn try rn MessageDigest md = MessageDigest.getInstance("MD5");rn md.update(m5pwd.getBytes());rn byte b[] = md.digest();rn int i;rn StringBuffer buf = new StringBuffer("");rn for (int offset = 0; offset < b.length; offset++) rn i = b[offset];rn if (i < 0)rn i += 256;rn if (i < 16)rn buf.append("0");rn buf.append(Integer.toHexString(i));rn rn m5pw=buf.toString().substring(8, 24);rn //System.out.println(m5pw);rn catch (NoSuchAlgorithmException e) rn // TODO Auto-generated catch blockrn e.printStackTrace();rn rn return m5pw;rn rnrnrnrn[/code]rnrn报这个异常:rnjava.sql.SQLException: Operation not <em>allowed</em> <em>after</em> ResultSet closedrn at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:910)rn at com.mysql.jdbc.ResultSet.checkClosed(ResultSet.java:655)rn at com.mysql.jdbc.ResultSet.next(ResultSet.java:7302)rn at com.gunxue.servlet.Push.doPost(Push.java:65)rn at com.gunxue.servlet.Push.doGet(Push.java:32)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)rn at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)rn at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)rn at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)rn at java.lang.Thread.run(Thread.java:619)rn
跪求!Hibernate mysql bug
select t.*,@rownum+1:=@rownum+1 AS rownum from (SELECT sum(yjb_yji) as total,yyryusername,yjb_yyry_i
Space is not allowed after parameter prefix ':' MySQL异常
出处:在mysql中可以运行,但用hibernate查不能识别":=",求高手解决。。。 比如语句 SELECT(@i:=@i+1) as i, a.* from PM_REGISTER_USER_RELATION a,(select @i:=0) as it ;    结果带有“序号” 直接在MySQL执行是没有任何问题的,但是在hibernate中执行 因为有 “:=” 所
hibernate在执行sql语句时遇到冒号怎么解决?
-
hibernate异常--Oracle之Space is not allowed after parameter prefix ':'
今天运用hibernate的时候遇到一个小问题,应用 "=:"占位符时不允许有空格。 如 areaId =: areaID 就会抛出异常 ; 正确写法  areaId=:areaID。
Space is not allowed after parameter prefix ':' MySQL异常
出处:在mysql中可以运行,但用hibernate查不能识别”:=”,求高手解决。。。比如语句 SELECT(@i:=@i+1) as i, a.* from PM_REGISTER_USER_RELATION a,(select @i:=0) as it ; 结果带有“序号” 直接在MySQL执行是没有任何问题的,但是在hibernate中执行 因为有 “:=” 所以会报异常 Spac
java.sql.SQLException: No operations allowed after connection closed.
package com.guikai.chenli;rnrnimport java.sql.*;rnimport com.mysql.jdbc.Driver;rnrnpublic class Conn rn Connection connection=null;rn public Conn()rn try rn Class.forName("com.mysql.jdbc.Driver").newInstance();rn catch (InstantiationException e) rn e.printStackTrace();rn catch (IllegalAccessException e) rn e.printStackTrace();rn catch (ClassNotFoundException e) rn e.printStackTrace();rn rn// String serverIP="121.199.28.34";rn// String dbName="zkh0y1_db";rn// String userName="zkh0y1";rn// String userPasswd="s8i2r7j8";rnrn String serverIP="127.0.0.1";rn String dbName="renda";rn String userName="root";rn String userPasswd="111111";rnrn try rn connection=DriverManager.getConnection("jdbc:mysql://"+serverIP+"/"+dbName+"?autoReconnect=true",userName,userPasswd);rn catch (SQLException e) rn //System.out.println("----------");rn e.printStackTrace();rn rn rn rn rn public void close()rn if(connection!=null)rn try rn connection.close();rn catch (SQLException e) rn e.printStackTrace();rn rn rnrn public void exe(String sql)rn Statement stmt=null;rn try rn stmt = connection.createStatement();rn catch (SQLException e) rn // TODO Auto-generated catch blockrn e.printStackTrace();rn rn try rn stmt.executeUpdate(sql);rn catch (SQLException e) rn e.printStackTrace();rn rn try rn if(stmt!=null)rn stmt.close();rn catch (SQLException e) rn e.printStackTrace();rn rn rnrn public ResultSet query(String sql)rn Statement stmt=null;rn ResultSet rs=null;rn try rn stmt = connection.createStatement();rn catch (SQLException e) rn e.printStackTrace();rn rn try rn rs=stmt.executeQuery(sql);rn catch (SQLException e) rn e.printStackTrace();rn rn return rs;rn rnrnrnrnrnrn老出现java.sql.SQLException: No operations <em>allowed</em> <em>after</em> connection closed.错误,谁知道怎么解决
PermGen space(内存不足报错
1.        java.lang.OutOfMemoryError:PermGen <em>space</em> 错误,经过查资料得出以下解决办法。 在eclipse中的window---preferences---servers---tomcat ---tomcat 6.x ---JDK— Optional Java VM arguments:下输入: -Xms256m -Xmx256m -
报错 out of stack space
Dim objfg4 As New JetCarNetscapern Dim pList4()rn ReDim pList4(10000)rn Dim fso4rn Dim i4 As Integerrn Dim j4 As Integerrn Dim q4 As Integerrn Dim sufixshrn rn rn i4 = 0rn j4 = 0rn rn Set fso4 = CreateObject("Scripting.FileSystemObject")rn rn For q4 = CInt(Text1.Text) To CInt(Text2.Text)rn j4 = i4 + 1rn ReDim Preserve pList4(j4)rn pList4(i4) = CStr(q4)rn pList4(j4) = "http://secondhand.online.sh.cn/selllist.php?djrq=" & comday & "&szqx=" & combtxt & "&sortfield=id&sorttype=" & Combo2.Text &"&whichpage=" & q4rn i4 = j4 + 1rn Nextrn rn objfg4.AddUrlList pList4rnrn<em>报错</em> out of stack <em>space</em>rn但我把URL连接?号后的内容短一点,就不错了,但我必须要这些参数rnrn
confluence点击space报错
安装完成confluence后,新建了一个空间,然后再点<em>space</em>时,就<em>报错</em>,<em>报错</em>信息<em>如下</em>图,请各位大神指点指点,重装2遍了,都出现这个问题,点其他按钮无<em>报错</em>信息。rn[img=https://img-bbs.csdn.net/upload/201507/01/1435729713_835696.png][/img]rn[img=https://img-bbs.csdn.net/upload/201507/01/1435729731_170657.png][/img]
求解为什么会报错,代码如下
[code=c]#includern#includern#includern#includern#includern#includern#includernrnusing name<em>space</em> std;rnrnclass bufferrnrnprivate:rn deque*> _blocks;rnpublic:rn buffer();rn ~buffer();rn char *getData();rn bool addData(const char *id,const char *message);rn;rnrnbuffer::buffer()rnrnrnrnbuffer::~buffer()rnrn for(int a = 0; a at(0), _blocks[0]->size());rn rn delete _blocks[0];rn _blocks.pop_front();rn return data;rn rnrnrnbool buffer::addData(const char *id,const char *message) rnrn assert(id != NULL && message != NULL);rn assert(strlen(id) < 19);rn rn vector *data = new vector(message,message+strlen(message)+1);rn _blocks.push_back(data);rn return true;rnrnrn//测试rnint main()rnrn buffer *read = new buffer;rn if(read->addData("55", "fuck") == false) std::cout<<<
Space is not allowed after parameter prefix
写HQL时候,= :的格式一定要规范,否则会报上面的错。正确的<em>如下</em>写法:String hql = &quot;UPDATE PartAssembly pa SET pa.bomStatus='&quot; + CustCodeListConstant.BOM_STATUS_PRODUCTION_PERMISSION + &quot;'WHERE pa.masterPartId = :masterPartId AND p...
解决Hibernate native sql中双冒号(:)转义的问题
最近在做一个签到的任务,由于要查询到历史连续最大签到记录的值,起初还是有点迷茫的--有一种想将查询结果查询出来,然后使用算法来解决这个问题。但是折腾了半天,感觉有点难以处理,所以就google了一下和“签到”类似的处理方法,最终参考别人的实现是通过数据库来实现的,具体怎么处理这里不过多介绍了,文章结尾会将链接贴上。 回归到我需要讲解的问题--使用Hibernate 时,native sql中包含
org.springframework.orm.hibernate3.HibernateQueryException: Space is not allowed
  hql语句<em>报错</em><em>如下</em>:   org.springframework.orm.hibernate3.HibernateQueryException: Space is not <em>allowed</em> <em>after</em> <em>parameter</em> <em>prefix</em> ':' [from User u where u.name=: name and u.pwd=: pwd]; nested exception is or...
Julia代码错误解决方法
-
parameter of instantiated module的问题">解决QuartusII编译parameter "clk0_divide_by" is not a formal parameter of instantiated module的问题
初次弄NiosII,发现在SOPC Builder里添加了SDRAM后再添加ALTPLL模块,把altpll_0名字改成altpll后产生不了软核,<em>报错</em>误。然后又把名字改回来altpll_0,点击产生,软件还是<em>报错</em>。这时候只要删掉ALTPLL模块,再重新添加,不改名字就行了。然后就能产生了。 但是在QuartusII里面例化,编译时候又出错了,提示: <em>parameter</em> "clk0_divid
求解:附加数据库时报错,错误信息如下
标题: Microsoft SQL Server Management Studiorn------------------------------rnrn无法为此请求检索数据。 (Microsoft.SqlServer.SmoEnum)rnrn有关帮助信息,请单击: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&LinkId=20476rnrn------------------------------rn其他信息:rnrn执行 Transact-SQL 语句或批处理时发生了异常。 (Microsoft.SqlServer.ConnectionInfo)rnrn------------------------------rnrn尝试打开或创建物理文件 'E:\数据\MyBookShop.mdf' 时,CREATE FILE 遇到操作系统错误 5(拒绝访问。)。 (Microsoft SQL Server,错误: 5123)rnrn有关帮助信息,请单击: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=09.00.1399&EvtSrc=MSSQLServer&EvtID=5123&LinkId=20476rnrn------------------------------rn按钮:rnrn确定rn------------------------------rn
求解!!!查看/var/messages 内核堆栈报错 如下
kernel: nprobe[30931]: segfault at 7f3398f46aa0 ip 00007f338d5cc069 sp 00007f338669dba0 error 6 in libnprobe-6.16.so[7f338d5a8000+91000]rnrnkernel: nprobe[27106] general protection ip:40eda7 sp:7f6959e8c670 error:0 in nprobe[400000+1e000]rnrnkernel:nprobe[6169]: segfault at 0 ip 00007f0c3716d994 sp 00007f0c2ba2c350 error 4 in libc-2.12.so[7f0c37108000+189000]rn
Prefix
DescriptionnAlice gets N strings. Now she has Q questions to ask you. For each question, she wanna know how many different <em>prefix</em> strings between Lth and Rth strings. It's so easy right? So solve itnnInputnThe input contains multiple test cases.nnFor each test case, the first line contains one integer N(1≤N≤100000). Then next N lines contain N strings and the total length of N strings is between 1 and 100000. The next line contains one integer Q(1≤Q≤100000). We define a specail integer Z=0. For each query, you get two integer L, R(0=
出现The parameter is incorrect. 错误,求解!!!
是不是IE坏了,还是什么问题啊???????
mybatis报错Parameter'params' not fund.
1、mybatis<em>报错</em>Parameter'params' not fund.Available <em>parameter</em>s ar[param1,page]。rn# 2、接口是这样写的rnpublic int queryCount(@Param("page") CompanyForm page) throws DaoException;rn# 3、实现类是这样引用的rn@Overridern public int queryCount(CompanyForm page) throws ServiceException rn try rn return companyExtMapper.queryCount(page);rn catch (Exception e) rn throw new ServiceException(e.getMessage(), e);rn rn rn# 3、mapper的xml是这样写的rn rn select count(1) from company rn rn rn 4、各位大哥帮我看看,谢谢。
Output parameter not allowed as argument list prevents use of RPC.
Output <em>parameter</em> not <em>allowed</em> as argument list prevents use of RPC. 如果调用的过程中存在out参数,那么所有的参数都必须用问号的形式传入,如{call test_procedure(?,?,?,?)} 要是有参数不是问号形式传入,就会<em>报错</em>,如:{call test_procedure(?,3,?,?)}
Hibernate 常见异常处理(转帖)
Hibernate 常见异常 net.sf.hibernate.MappingException        当出现net.sf.hibernate.MappingException: Error reading resource:…异常时一般是因为映射文 件出现错误。        当出现net.sf.hibernate.MappingException: Resource: …
ECharts 的Base64图片后台解析
最近做了项目的报表使用到了百度的echarts,后来新的需求又来了,要求该报表图片实现邮件发送。也就是说报表图片能够被邮件发送。 实际上其他问题都没什么,最重要的就是怎么将前台的图片信息发送到后台,并且能够在后台能够使用Java进行解析。 在网上找了一些,但是并没找到完美的解决方案【可能是没找全吧!“勿喷”】。 以下是我的解决方案,希望能够解决你的问题。 前台: 首先在js中定义一个全局
IntelliJ IDEA报错class is never used
IntelliJ IDEA报出<em>如下</em>错误:解决办法找到图中的unused declaration选项去掉勾,搞定了^.^:
mysql 报错 Hibernate Space is not allowed after parameter prefix ':'
一、导读 一次使用mysql写原生sql中得变量写法 @rownum := @rownum + 1 ,发现后台报异常:Hibernate Space is not <em>allowed</em> <em>after</em> <em>parameter</em> <em>prefix</em> ‘:’ 初步认为是转义得问题,下面来解决一下这个问题。 二、解决方案 1、第一种使用 // 来转义 @rownum \\:= @rownum + 1 使用\\来转义 /’/...
在写servlet时连接数据库出现No operations allowed after connection closed
我在做上传图片到服务器然后数据库存这个图片的地址,下面name是传递过来的图片的地址,第一次能正确存进去,后面再也存不进去,并出现题目的错误rn[code=java]rnpackage uploadPack;rnrnimport java.sql.Connection;rnimport java.sql.PreparedStatement;rnimport java.sql.ResultSet;rnrnpublic class ItemManager rn public void uploadItemImage(String itemNo,String name)rn Connection conn=null;rn PreparedStatement stmt=null;rn ResultSet rs=null;rn tryrn conn=DBHelper.getConnection();rn stmt=conn.prepareStatement("INSERT pictures(picture) VALUES(?)");rn stmt.setString(1, name);rn stmt.executeUpdate();rn catch (Exception ex) rn ex.printStackTrace();rn finally rn DBHelper.close(rs, stmt, conn);rn rn rnrn[/code]rn下面是加载和创建数据库的类rn[code=java]rnpackage uploadPack;rnrnimport java.sql.Connection;rnimport java.sql.DriverManager;rnimport java.sql.ResultSet;rnimport java.sql.Statement;rnrnpublic class DBHelper rn rn //静态代码块来加载驱动rn static rn tryrn String driverName="com.mysql.jdbc.Driver";rn Class.forName(driverName);rn catch(Exception e)rn e.printStackTrace();//打印异常输出rn rn rn rn //连接到指定的数据库,三个参数分别是数据库地址,账号,密码rn public static Connection getConnection()rn Connection conn=null;rn tryrn conn=DriverManager.getConnection("jdbc:mysql://localhost:3306/Demos", "root", "root");rn catch(Exception e)rn e.printStackTrace();rn rn return conn;rn rn rn //关闭数据库连接rn public static void close(ResultSet rs,Statement stmt,Connection conn)rn tryrn if(rs!=null)rn rs.close();rn catch(Exception ex)rn ex.printStackTrace();rn rn rn tryrn if(stmt!=null)rn stmt.close();rn catch(Exception ex)rn ex.printStackTrace();rn rn rn tryrn if(conn!=null)rn conn.close();rn catch(Exception ex)rn ex.printStackTrace();rn rn rnrn[/code]rnrn这个问题我在CSDN上看到原因,但不理解,我想知道我这个怎么改~
SQLException: Operation not allowed after ResultSet closed 如何避免?
stmt=conn.createStatement();rn rs=stmt.executeQuery(sql_b);rn rst=stmt.executeQuery(sql_a);rn rs.last();//当执行了 rst=stmt.executeQuery(sql_a);rs就会被关闭掉!rn int n=rs.getRow();rn rst.last();rn int m=rst.getRow();rnrn请问我该怎么做?才能避免被关闭掉。rn还有createStatement()里面有几个参数,那几个参数代表什么?谢谢各位
偶尔出现:forward() not allowed after buffer has committed.
系统偶尔出现:forward() not <em>allowed</em> <em>after</em> buffer has committed.错误rn每天访问次数15万次,出现次数600多次。测试中无法复现。rn从log上看,错误都出现在同一个action文件中。rnrn该错误是因为在forward之前,对response进行了操作而导致的rn可是,我看了无数遍代码,也没找到forword之前对response的操作。rnrn请问各位高手,会是什么原因会导致该错误,下面是一条错误信息。rnrn2011-12-06-10:44:04,376 INFOrn - host:SJSWT47-164.opi.comrn - ip:211.137.185.8rn - ua:rn - error:forward() not <em>allowed</em> <em>after</em> buffer has committed.rn##nullrn##forward() not <em>allowed</em> <em>after</em> buffer has committed.rn##com.caucho.server.webapp.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:139)rn##com.caucho.server.webapp.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:106)rn##org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1085)rn##org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:398)rn##org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:241)rn##org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)rn##org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)rn##javax.servlet.http.HttpServlet.service(HttpServlet.java:115)rn##javax.servlet.http.HttpServlet.service(HttpServlet.java:92)rn##org.springframework.web.servlet.mvc.ServletWrappingController.handleRequestInternal(ServletWrappingController.java:158)rn##org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)rn##org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)rn##org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:875)rn##org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:807)rn##org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:571)rn##org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:501)rn##javax.servlet.http.HttpServlet.service(HttpServlet.java:115)rn##javax.servlet.http.HttpServlet.service(HttpServlet.java:92)rn##com.caucho.server.dispatch.ServletFilterChain.doFilter(ServletFilterChain.java:106)rn##com.caucho.filters.RewriteFilter.doFilter(RewriteFilter.java:120)rn##com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:70)rn##org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:378)rn##com.xiaonei.wap.leak.filter.LeakUserFilter.doFilter(LeakUserFilter.java:63)rn##org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)rn##com.xiaonei.wap.framework.antispam.filter.WapPageSensitiveWordReplaceFilter.doFilter(WapPageSensitiveWordReplaceFilter.java:45)rn##org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)rn##com.xiaonei.wap.framework.mvc.filter.BannerADFilter.doFilter(BannerADFilter.java:128)rn##org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)rn##com.xiaonei.wap.online.web.filter.OnlineStatusFilter.doFilter(OnlineStatusFilter.java:62)rn##org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)rn##com.xiaonei.wap.framework.mvc.spring.filter.DomainKaixin2RenrenFilter.doFilter(DomainKaixin2RenrenFilter.java:151)rn##org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)rn##org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:96)rn##org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)rn##org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)rn##org.springframework.security.util.FilterChainProxy.doFilter(FilterChainProxy.java:175)rn##org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:236)rn##org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167)rn##com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:70)rn##com.xiaonei.wap.framework.mvc.filter.PerfFilter.doFilter(PerfFilter.java:47)rn##com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:70)rn##com.caucho.server.cache.CacheFilterChain.doFilter(CacheFilterChain.java:209)rn##com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:173)rn##com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:229)rn##com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:274)rn##com.caucho.server.port.TcpConnection.run(TcpConnection.java:511)rn##com.caucho.util.ThreadPool.runTasks(ThreadPool.java:516)rn##com.caucho.util.ThreadPool.run(ThreadPool.java:442)rn##java.lang.Thread.run(Thread.java:619)rn##
我的ResultSet 报Operation not allowed after ResultSet closed???
我用了两个resultset,并且分别用两个statement创建。怎么还报上面的那个错。
Vue取消eslint语法限制
由于vue对语法的限制过于严格,以至于在我第一次编译运行的时候一直编译失败,当然也包括一些警告(好长一堆,删掉一些了): ➜ my-project npm run dev &gt; bblee-app@1.0.0 dev /Users/bianlifeng/my-project &gt; webpack-dev-server --inline --progress --config bu...
eslint语法错误详解
昨天npm run dev的时候还好好地不会报红,今天早上npm run dev就启动失败了,具体的<em>报错</em>是:http://eslint.org/docs/rules/eol-lasthttp://eslint.org/docs/rules/indenthttp://eslint.org/docs/rules/key-spacinghttp://eslint.org/docs/rules/semih...
关闭令人抓狂的ESlint 语法检测配置方法
刚刚开始的小伙伴是不是空格<em>报错</em>少一行<em>报错</em>各种错?是不是觉得快被限制的失去了自由的思绪了?受折磨后找到了不错的文章来取消eslint语法检测限制,作为学习笔记摘自segmentfault 其实我并不反对这些语法检测,但是像许多反个人意愿的那就真的不得不吐槽了,比如vue-cli脚手架创建的默认eslint规则: 代码末尾不能加分号 ; 代码中不能存在多行空行 tab键
error : missing ')' before ';'
-
Vue.js学习系列五 —— 从VUE-CLI来聊聊ESLint
最近在用vue-cli写项目的时候,经常和ESLint打交道,也算是不打不相识啦。下面总结一下在学习Vue的时候遇到的一些问题。
100分 求解 Parameter count does not match Parameter Value count.
windows7,IIS7.5,SQL Server 2005rn系统是DotNetNuke 4.x版本rn出现<em>如下</em>图所示的错误rn[img=http://hi.csdn.net/attachment/201010/18/2636492_12873657247R8f.jpg][/img]rnrn
TOMCAT配置MYSQL连接池,出现No operations allowed after connection closed
在TOMCAT4里配置MYSQL连接池后,系统持续运行不会出现问题,但如果几分钟没操作就会出现No operations <em>allowed</em> <em>after</em> connection closed异常。rn我仔细检查过URL,已经设置了autoReconnect=true,maxWait也设为-1(无限时等待)。rn请问为什么会出现这种错误?有什么要注意吗?rn谢谢
报错java.lang.OutOfMemoryError: Java heap space
某环保项目 之前查询数据的时候关联好多表 数据量很大导致查询速度很慢,现在把每条数据都缓存下来,查的时候直接调,目前大概有一百多万条数据,我写了定时任务去执行,但是当我测试的时候还没<em>报错</em>呢 先出了内存溢出,请问怎么解决rn这个是报的错 ,然后就不执行了rn2017-9-15 15:28:23 org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor processChildrenrn严重: Exception invoking periodic operation: rnjava.lang.OutOfMemoryError: Java heap <em>space</em>
使用MPI并行求解前缀和(prefix sum)
使用MPI并行<em>求解</em>前缀和(pre fixsum) 1.背景     本文介绍的并行模式是前缀和(<em>prefix</em>sum),通常也叫扫描(scan)。从数学的角度看,闭扫描(inclusive scan)操作接受一个二元运算符和一个n元输入数组[x0,x1,…,xn-1],然后返回一个输出数组: [x0,(x0 x1),…,(x0 x1  … xn-1)]。 2.串行扫描     在介绍并行扫
请教:ftp服务器下载文件抛出异常501 PORT not allowed after EPSV ALL
各位达人:rn FtpClient ftpClient = new FtpClient();rn ftpClient.openServer(ent.getFtpAddress());rn ftpClient.login(ent.getFtpUser(), ent.getFtpPassword());rn ftpClient.ascii();rn ftpClient.cd(ent.getFtpPath());rn String fg = new String("\\");rn int index = strPath.lastIndexOf(fg);rn String filename = strPath.substring(index+1);rn File localFile = new File(strPath);rn RandomAccessFile sendFile = new RandomAccessFile(strPath,"r");rn sendFile.seek(0);rn TelnetOutputStream outs = ftpClient.put(filename);rn DataOutputStream outputs = new DataOutputStream(outs); rn在java调用以上程序时,<em>报错</em>sun.net.ftp.FtpProtocolException: PORT :501 PORT not <em>allowed</em> <em>after</em> EPSV ALLrn我直接在cmd中用ftp就可以,java调用就不行。rn请教什么原因?如何解决?急!
eslint的规则设置
1、eslint 修改- 在.eslintrc.js下添加或者修改规则(rules部分) 'rules': { // allow paren-less arrow functions 'arrow-parens': 0, // allow async-await 'generator-star-spacing': 0, ...
VUE初写小项目问题之命令行报错:Expected indentation of 4 spaces but found 6
一、问题 刚开始用一个小项目练手,用vue-cli初始化项目,直接安装了所有的东西,如vue-router、ESLint、unit tests等等,当时只懂得vue-router是什么。 问题来了,在vue页面写代码时,命令行报了很多错,几乎全是Expected indentation of 4 <em>space</em>s but found 6类似这样的 二、经过 看了报的错,就直接删除了多余的空格。...
Expected indentation of 8 spaces but found 6
使用ESlint进行代码提示,经常报<em>如下</em>提示: ✘ http://eslint.org/docs/rules/key-spacing Missing <em>space</em> before value for key 'variables' src\components\Admin\LogIn.vue:45:19 variables:{ ^...
【ERROR】vue-cli 报错 http://eslint.org/docs/....
【ERROR】使用vue-cl脚手架搭建之后运行<em>报错</em>........ ./src/components/Member/member.vue ]50;CurrentDir=H:\Users\Administrator\Desktop\MyProduct\vue_t ✘ http://eslint.org/docs/rules/indent Expe
vue 第一页就报错,自信心备受打击
 WARNING  Compiled with 3 warnings                                                                              12:55:50  ✘  http://eslint.org/docs/rules/no-mixed-<em>space</em>s-and-tabs  Mixed <em>space</em>s and tab...
求助:关于java.sql.SQLException: Operation not allowed after ResultSet closed的问题
我的源代码<em>如下</em>rnrnrnrnrnrn rn rn rn rn回复信息提示:(点击信息标题可以直接进入)rn rnrn 对 "> 信息做了回复 ()。 rn rn rn退回信息提示:(点击信息标题可以直接进入)rn rnrn 信息被退回 ()。 rn rn rnrn rnrnrn<%rnrs2.close();rnrs2=null;rnps2.close();rnps2=null;rnrs.close();rnrs=null;rnps.close();rnps=null;rndbconn.closeconnection();rnconn=null;rnout.println(commhtml.HtmlTail());rncommhtml=null;rnrn目前的问题是,我是读取了两遍数据库,也是使用两个PreparedStatement 和两个ResultSet 来做的,但是它有时候就好使,没有问题,有时候刷新的话 就会出现java.sql.SQLException: Operation not <em>allowed</em> <em>after</em> ResultSet closed的错误,改了好多遍,都不知道错误在哪里,哪位大哥知道啊。愁死了!rnrn十万分感谢啊!
关于JDBC中No operations allowed after connection closed的问题
rn[code=Java]public static Operater check(String name, String password) rn Operater operater=new Operater();//操作员信息对象rn String sql = "select * from tb_operator where name='" + namern + "' and password='" + password + "'and admin=1";//查询字符串rn ResultSet rs = Dao.executeQuery(sql);//执行查询rn try rn while (rs.next()) //如果查询到了记录rn operater.setId(rs.getString("id"));//设置操作员编号rn operater.setName(rs.getString("name"));//设置操作员用户名rn operater.setGrade(rs.getString("admin"));//设置操作员等级rn operater.setPassword(rs.getString("password"));//设置管理员密码rn rn catch (Exception e) rn e.printStackTrace();rn rn Dao.close(); //关闭连接对象rn return operater;//返回操作员信息对象rn [/code]rnrn第一次调用此方法没问题 可第二次就出现下面的问题rnrncom.mysql.jdbc.exceptions.MySQLNonTransientConnectionException: rnNo operations <em>allowed</em> <em>after</em> connection closedrnrn这个问题怎么解决啊 只有把Dao.close();这个关闭Connection的方法去掉,可是这样好像也不对啊?rn各位有没有碰到过类似的问题,有好的解决办法?
Spring hibernate mysql No operations allowed after statement closed
sessionFactory spring中配置的sessionfactory代码 [code=text]rn rn rn rn com.wds.registration.modelrn com.jmy.essay.modelrn com.jmy.picture.modelrn rn rn rn rn rn org.hibernate.dialect.MySQLDialectrn rn truern updatern rn rn rn[/code]rn后台有个调用[code=java] public class JEssayLogic rn rn private SessionFactory sessionFactory;rnrn rn public E_ML find(E_ML e_ML) rn rn Session session = sessionFactory.openSession();rn rn Query query = session.createQuery("SQL...................");rn rn List l = query.list();rn rn session.close();rn sessionFactory.close();rn return e_ML;rn rnrn rn [/code] 但是web程序连接长了 程序就会报[code=text]com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operations <em>allowed</em> <em>after</em> statement closed.rn at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)rn at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)rn at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)rn at java.lang.reflect.Constructor.newInstance(Constructor.java:513)rn at com.mysql.jdbc.Util.handleNewInstance(Util.java:411)rn at com.mysql.jdbc.Util.getInstance(Util.java:386)rn at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1015)rn at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:989)rn at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:975)rn at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:920)rn at com.mysql.jdbc.StatementImpl.checkClosed(StatementImpl.java:461)rn at com.mysql.jdbc.StatementImpl.getMaxRows(StatementImpl.java:2216)rn at org.apache.commons.dbcp.DelegatingStatement.getMaxRows(DelegatingStatement.java:237)rn at org.hibernate.jdbc.AbstractBatcher.closeQueryStatement(AbstractBatcher.java:298)rn at org.hibernate.jdbc.AbstractBatcher.closeQueryStatement(AbstractBatcher.java:234)rn at org.hibernate.loader.Loader.getResultSet(Loader.java:1967)rn at org.hibernate.loader.Loader.doQuery(Loader.java:802)rn at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:274)rn at org.hibernate.loader.Loader.doList(Loader.java:2542)rn at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2276)rn at org.hibernate.loader.Loader.list(Loader.java:2271)rn at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:459)rn at org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:365)rn at org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:196)rn at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1268)rn at org.hibernate.impl.QueryImpl.list(QueryImpl.java:102)rn at com.jmy.logic.JEssayLogic.find(JEssayLogic.java:164)rn at com.jmy.service.impl.JEManagerImpl.find(JEManagerImpl.java:46)rn at com.jmy.action.JmyOnePage.loadPage(JmyOnePage.java:38)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:597)rn at com.opensymphony.xwork2.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:453)rn at com.opensymphony.xwork2.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:292)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:255)rn at org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept(DebuggingInterceptor.java:256)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)rn at com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:176)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)rn at com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:265)rn at org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:68)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)rn at com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:138)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)rn at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:211)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)rn at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:211)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)rn at com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:190)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)rn at org.apache.struts2.interceptor.MultiselectInterceptor.intercept(MultiselectInterceptor.java:75)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)rn at org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:90)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)rn at org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:243)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)rn at com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:100)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)rn at com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.intercept(ScopedModelDrivenInterceptor.java:141)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)rn at com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:145)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)rn at com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:171)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)rn at com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:176)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)rn at org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:164)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)rn at com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:192)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)rn at com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:187)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)rn at org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:54)rn at org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:510)rn at org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:77)rn at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:91)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)rn at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)rn at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)rn at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1040)rn at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607)rn at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.doRun(AprEndpoint.java:2441)rn at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:2430)rn at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)rn at java.lang.Thread.run(Thread.java:619)[/code]这个错 goolge了一下 说是mysql断开一个长时没有响应的连接 我现在有个疑问 我已经把session都关闭了 再次访问的时候应该不存在长时间无响应 应该是重新创建session 为什么还会报上面的错
exp 出现的LRM-00112: multiple values not allowed for parameter 'log' 的问题
exp ads/ads123456@oradb file=d:\oradbback\ORA_DB_BrnAK\ora_%date:~0,10%.dmp log=d:\oradbback\ora_%date:~0,10%.log compress=n buffer=rn8092 consistent=y direct=n constraints=y feedback=10000 grants=y record=y indexerns=y triggers=y rows=yrnrn导出数据rnrn报一下错误:rnLRM-00112: multiple values not <em>allowed</em> for <em>parameter</em> 'log'rnrnEXP-00019: failed to process <em>parameter</em>s, type 'EXP HELP=Y' for helprnEXP-00000: Export terminated unsuccessfullyrnrn去掉log或把log改成其他名称,就okrnrn这条语句在我电脑上可以执行,rn放到服务器上后报这个错误.rnrn请问如何解决啊
求助:MYSQL出错:java.sql.SQLException: No operations allowed after connection closed
web应用平台是apache2.51 + tomcat4.1.30 ,采用mysql数据库,都在一台机器上,在并发100以下用户时不会出现任何问题,但在做5次100并发测试时,tomcat控制台<em>报错</em>rnrnjava.sql.SQLException: No operations <em>allowed</em> <em>after</em> connection closedrnrn进入mysql时发现rnMax_used_connections | 90 rn而mysql的最大连接数据是500,远远高于90,rnshow processlist;也只有50左右rn数据库的连接池的大小是400,rnrnshow status;状态<em>如下</em>:rn| Max_used_connections | 90 |rn| Not_flushed_key_blocks | 0 |rn| Not_flushed_delayed_rows | 0 |rn| Open_tables | 142 |rn| Open_files | 170 |rn| Open_streams | 0 |rn| Opened_tables | 148 |rn| Questions | 212930 |rn| Qcache_queries_in_cache | 1083 |rn| Qcache_inserts | 31126 |rn| Qcache_hits | 135176 |rn| Qcache_lowmem_prunes | 0 |rn| Qcache_not_cached | 1391 |rn| Qcache_free_memory | 15118992 |rn| Qcache_free_blocks | 319 |rn| Qcache_total_blocks | 2523 |rn| Rpl_status | NULL |rn| Select_full_join | 33886 |rn| Select_full_range_join | 0 |rn| Select_range | 13714 |rn| Select_range_check | 0 |rn| Select_scan | 3236 |rn| Slave_open_temp_tables | 0 |rn| Slave_running | OFF |rn| Slow_launch_threads | 0 |rn| Slow_queries | 1 |rn| Sort_merge_passes | 0 |rn| Sort_range | 9654 |rn| Sort_rows | 239147 |rn| Sort_scan | 8136 |rn| Table_locks_immediate | 98411 |rn| Table_locks_waited | 549 |rn| Threads_cached | 2 |rn| Threads_created | 7428 |rn| Threads_connected | 53 |rn| Threads_running | 1 |rn| Uptime | 4294855340 |rnrn rnrn谁能告诉我是哪出了问题撒,在此谢过了......
error in ./src/main.js ✘ http://eslint.org/docs/rules/quotes Strings must use singlequote
使用es6时<em>报错</em>;error in ./src/main.js✘ http://eslint.org/docs/rules/quotes Strings must use singlequote /home/liangxiaodong/WebstormProjects/xiaodong/music-play/src/main.js:7:8 import “common/stylus
[VAL_OR_VAR_ON_FUN_PARAMETER] 'val' on function parameter is not allowed
从KotlinM5.1版本开始,官方已经移除了对函数参数声明为val或var的支持,详见https://blog.jetbrains.com/kotlin/2013/02/kotlin-m5-1/对于这类错误,移除val或var声明即可。...
TOMCAT配置MYSQL连接池出现No operations allowed after connection closed
在TOMCAT4里配置MYSQL连接池后,系统持续运行不会出现问题,但如果几分钟没操作就会出现No operations <em>allowed</em> <em>after</em> connection closed异常。rn我仔细检查过URL,已经设置了autoReconnect=true,maxWait也设为-1(无限时等待)。rn请问为什么会出现这种错误?有什么要注意吗?rn谢谢
报错
由于工作的需要,我现在用到 可是奇怪的是大多数页面写入这句话 都没错rn只有两个页面<em>报错</em>,不知道其中的缘由rn而且该有的包 我都导进去了 如struts2-core-2.0.11.1.jar ognl-2.6.11.jar oro-2.0.8.jar freemarker-2.3.8.jar struts-core-1.3.5.jar 都导进去了rnrn我还把这两个页面删了重新建 也不行rnrn不知哪位高人给解释一下啊
hibernate配置c3po连接池后:无法使用jdbc查询?报错Operation not allowed after ResultSet closed
代码段:rnrn[code=Java]PreparedStatement st = null;rn Session session = getSession();rn ResultSet rs = null;rn String sql = "select id,user_id,content,isaviable,createtime,business_info_id,overallimpression,discuss_sub_count,collection_count,read_status,forward_count from business_discusses a,( select max(id) as ids from business_discusses where isaviable = true group by business_info_id) b where a.id = b.ids order by createtime desc LIMIT 0,10";rn List list = new ArrayList();rn try rn// Transaction t = session.beginTransaction();rn st = session.connection().prepareStatement(sql);rn rs = st.executeQuery();rn// t.commit();rn UsersDAO userDao = new UsersDAO();rn rn BusinessInfoesDAO infoDao = new BusinessInfoesDAO();rn while (rs.next()) rn BusinessDiscusses dis = new BusinessDiscusses();rn dis.setId(rs.getInt("id"));rn dis.setUsers(userDao.findById(rs.getInt("user_id")));rn dis.setBusinessInfoes(infoDao.findById(rs.getInt("business_info_id")));rn dis.setContent(rs.getString("content"));rn dis.setIsaviable(rs.getBoolean("isaviable"));rn dis.setCreatetime(rs.getTimestamp("createtime"));rn dis.setOverallimpression(rs.getInt("overallimpression"));rn dis.setDiscussSubCount(rs.getInt("discuss_sub_count"));rn dis.setCollectionCount(rs.getInt("collection_count"));rn dis.setReadStatus(rs.getBoolean("read_status"));rn dis.setForwardCount(rs.getInt("forward_count"));rn list.add(dis);rn rn return list;rnrn catch (Exception e) rn e.printStackTrace();rn return null;rn finally rn try rn if (rs != null) rnrn rs.close();rn rn if (st != null) rn st.close();rn rn catch (SQLException e) rn e.printStackTrace();rn rn [/code]rnrnrnrn
数据库导出报错:Allowed memory size of
郁闷,刚买的的空间导入数据的时候报rnrnFatal error: Allowed memory size of 67108864 bytes exhausted (tried tornallocate 32 bytes) in /home/includes/menu.inc on line 3487rnrn烦人,也不知道到底什么问题,不知道是自己问题还是在主机商红色主机买的空间问题rnrn谁能帮帮我。help
报错求解
<em>报错</em><em>如下</em> rn org.jboss.deployment.DeploymentException: Error while checking if table aleady exists; - nested throwable: (java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Error setting up static cursor cache.) rn怎么解决?
【MySQL报错】 Packets larger than max_allowed_packet are not allowed
版本信息<em>如下</em>:rnrn[img=https://img-bbs.csdn.net/upload/201612/27/1482799757_10554.png][/img]rnrn<em>报错</em>的信息<em>如下</em>:rnrn[img=https://img-bbs.csdn.net/upload/201612/27/1482800196_998267.png][/img]rnrnrn[img=https://img-bbs.csdn.net/upload/201612/27/1482799829_656985.png][/img]rnrnrn[b]说来奇怪,不会立马<em>报错</em>,一半就是插入数据时,隔上几个小时就会报这个错误,然后重启mysql服务之后,又好了,然后过上几个小时又这样了,感觉和sql没啥关系,好像是什么缓存池什么满了一样。rnrnmax_<em>allowed</em>_packet 原来是16MB的 现在设置到了512MB,并且已经生效,然并卵,解决不了问题[img=https://forum.csdn.net/PointForum/ui/scripts/csdn/Plugin/001/face/54.gif][/img][/b]
报错求解
程序中由于有汉字cmd运行时出现乱码:运行语句:【number = int(input('猜猜是几:'))】运行时出现乱码
关于eZ430-RF2500 程序报错:incomplete type is not allowed
我要把CC2500接受的数据通过UART口发送到PC端(就是用eZ430-RF2500的AP端)。我在eZ430-RF2500的光盘里的demo_AP.c里找到 rnvoid TXString( char* string, int length ); rnvoid MCU_Init(void); rn rnMCU_Init(); rn //Transmit splash screen and network init notification rn TXString( (char*)splash, sizeof splash); rn TXString( "\r\nInitializing Network....", 26 ); rn rn rnTXString(rxBuffer, sizeof rxBuffer ); rn void TXString( char* string, int length ) rn rn int pointer; rn for( pointer = 0; pointer < length; pointer++) rn rn volatile int i; rn UCA0TXBUF = string[pointer]; rn while (!(IFG2&UCA0TXIFG)); // USCI_A0 TX buffer ready? rn rn rn rnvoid MCU_Init() rn rn BCSCTL1 = CALBC1_8MHZ; // Set DCO rn DCOCTL = CALDCO_8MHZ; rn rn BCSCTL3 |= LFXT1S_2; // LFXT1 = VLO rn TACCTL0 = CCIE; // TACCR0 interrupt enabled rn TACCR0 = 12000; // ~1 second rn TACTL = TASSEL_1 + MC_1; // ACLK, upmode rn rn P3SEL |= 0x30; // P3.4,5 = USCI_A0 TXD/RXD rn UCA0CTL1 = UCSSEL_2; // SMCLK rn UCA0BR0 = 0x41; // 9600 from 8Mhz rn UCA0BR1 = 0x3; rn UCA0MCTL = UCBRS_2; rn UCA0CTL1 &= ~UCSWRST; // **Initialize USCI state machine** rn IE2 |= UCA0RXIE; // Enable USCI_A0 RX interrupt rn __enable_interrupt(); rn rn我将这个程序嵌到我的主函数中,编译以后说是incomplete type is not <em>allowed</em>.( TXString(rxBuffer, sizeof rxBuffer);) rn请问有添加过在自己的函数中添加UART传输部分的代码(即向PC端传输数据),是不是我少添加了什么?请问是哪里出的问题呢? rn谢谢大家指教 rn
求解 如下函数执行过程
int getInt()rn int i = 0;rn tryrn i = 1;rn return i;rn rn finallyrn i = 2;rn rnrn我试了一下 返回值是1rn但是我单步调试的时候运行<em>如下</em>rn1.i = 1rn2.return irn3. i = 2rn4. return irn哪位大神能给我解释一下啊/?????
求解如下代码
<em>求解</em><em>如下</em>代码:rnrn[code=C/C++]rn#define INT_MAX ((int)(~0U>>1))rn#define INT_MIN (-INT_MAX - 1)rn#define UINT_MAX (~0U) //~按位取反rn#define LONG_MAX ((long)(~0UL>>1))rn#define LONG_MIN (-LONG_MAX - 1)rn#define ULONG_MAX (~0UL)rn[/code]rnrn这个应该涉及到C语言的基本点了,我理解起来到是有点困难,<em>求解</em>析,谢谢!
高分求解问题如下>
我有一个页面表单里有两个单选按钮,一个值为0,另一个为1,rn要求:在不提交页面的情况下,点击表单外的连接将此表单里的值传递到另一页面去。rn如何实现?
在线求解:问题如下
我现在在开发一电影网站的后台,里面有图片新闻,图片在文章中的位置与个数都不定的。听说用freeTextBox做,但这个控件我没找到,也没用过。请高手能给出好的办法帮我解决这个难题。谢谢
WMI 报错 ??? 详细信息如下...
ManagementScope scope = new ManagementScope(new ManagementPath("root\\CIMV2"));rn ManagementObjectSearcher searcher = new ManagementObjectSearcher("SELECT * FROM Win32_Product");rn searcher.Scope = scope;rn searcher.Options = new EnumerationOptions(null, TimeSpan.MaxValue, 1, true, false, true, true, false, true, true); rn ManagementObjectCollection collection = searcher.Get(); rn foreach (ManagementObject nextObject in collection) rn rn Console.WriteLine(nextObject.GetPropertyValue("Caption"));rn rn Console.ReadKey(true);rnrnrnC#中我想用wmi 中的WQL 查询出安装在本机的产品信息 rnrn运行后报的错位rn“在 System.Management.ManagementException 中第一次偶然出现的“System.Management.dll”类型的异常 通常故障”rn非常郁闷的错误 都不知道如何下手了。rnrn
weblogic 部署 报错如下
2012-2-1 16:26:25 com.sun.xml.ws.transport.http.servlet.WSServletContextListener contextInitializedrn严重: WSSERVLET11: failed to parse runtime descriptor: com.sun.xml.ws.util.ServiceConfigurationError: com.sun.xml.ws.api.wsdl.writer.WSDLGeneratorExtension: Provider weblogic.wsee.jaxws.framework.polirncy.WSDLGeneratorExtension is specified in jar:file:/C:/Oracle/Middleware/wlserver_10.3/server/lib/weblogic.jar!/META-INF/services/com.sun.xml.ws.api.wsdl.writer.WSDLGeneratorExtensionbut could not berninstantiated: java.lang.ClassCastExceptionrncom.sun.xml.ws.util.ServiceConfigurationError: com.sun.xml.ws.api.wsdl.writer.WSDLGeneratorExtension: Provider weblogic.wsee.jaxws.framework.policy.WSDLGeneratorExtension is specified in jar:file:/C:/rnOracle/Middleware/wlserver_10.3/server/lib/weblogic.jar!/META-INF/services/com.sun.xml.ws.api.wsdl.writer.WSDLGeneratorExtensionbut could not be instantiated: java.lang.ClassCastExceptionrn at com.sun.xml.ws.util.ServiceFinder.fail(ServiceFinder.java:233)rn at com.sun.xml.ws.util.ServiceFinder.access$300(ServiceFinder.java:141)rn at com.sun.xml.ws.util.ServiceFinder$LazyIterator.next(ServiceFinder.java:379)rn at com.sun.xml.ws.util.ServiceFinder.toArray(ServiceFinder.java:225)rn at com.sun.xml.ws.server.EndpointFactory.generateWSDL(EndpointFactory.java:441)rn at com.sun.xml.ws.server.EndpointFactory.createEndpoint(EndpointFactory.java:209)rn at com.sun.xml.ws.api.server.WSEndpoint.create(WSEndpoint.java:505)rn at com.sun.xml.ws.transport.http.DeploymentDescriptorParser.parseAdapters(DeploymentDescriptorParser.java:253)rn at com.sun.xml.ws.transport.http.DeploymentDescriptorParser.parse(DeploymentDescriptorParser.java:147)rn at com.sun.xml.ws.transport.http.servlet.WSServletContextListener.contextInitialized(WSServletContextListener.java:124)rn at weblogic.servlet.internal.EventsManager$FireContextListenerAction.run(EventsManager.java:481)rn at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)rn at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)rn at weblogic.servlet.internal.EventsManager.notifyContextCreatedEvent(EventsManager.java:181)rn at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1872)rn at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:3153)rn at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1508)rn at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:482)rn at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)rn at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)rn at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)rn at weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModuleDriver.java:200)rn at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:247)rn at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)rn at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)rn at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)rn at weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:27)rn at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:636)rn at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)rn at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:205)rn at weblogic.application.internal.SingleModuleDeployment.activate(SingleModuleDeployment.java:43)rn at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:161)rn at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:79)rn at weblogic.deploy.internal.targetserver.BasicDeployment.activate(BasicDeployment.java:184)rn at weblogic.deploy.internal.targetserver.BasicDeployment.activateFromServerLifecycle(BasicDeployment.java:361)rn at weblogic.management.deploy.internal.DeploymentAdapter$1.doActivate(DeploymentAdapter.java:51)rn at weblogic.management.deploy.internal.DeploymentAdapter.activate(DeploymentAdapter.java:200)rn at weblogic.management.deploy.internal.AppTransition$2.transitionApp(AppTransition.java:30)rn at weblogic.management.deploy.internal.ConfiguredDeployments.transitionApps(ConfiguredDeployments.java:240)rn at weblogic.management.deploy.internal.ConfiguredDeployments.activate(ConfiguredDeployments.java:169)rn at weblogic.management.deploy.internal.ConfiguredDeployments.deploy(ConfiguredDeployments.java:123)rn at weblogic.management.deploy.internal.DeploymentServerService.resume(DeploymentServerService.java:180)rn at weblogic.management.deploy.internal.DeploymentServerService.start(DeploymentServerService.java:96)rn at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)rn at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)rn at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)rnCaused by: java.lang.ClassCastExceptionrn at java.lang.Class.cast(Class.java:2990)rn at com.sun.xml.ws.util.ServiceFinder$LazyIterator.next(ServiceFinder.java:374)rn ... 43 more
如下代码怎么报错
<em>如下</em>是原始代码rn[code=c]rnrn //for (auto* e = m_vecItemList.begin();e != m_vecItemList.end(); e++)rn for (auto* e : m_vecItemList) rn rn if (e != NULL) rn delete e; rn rn rn[/code]rnrn<em>报错</em>内容<em>如下</em>rn1>MyColorCombox.cpp(54): error C2143: 语法错误 : 缺少“,”(在“:”的前面)rn1>MyColorCombox.cpp(54): error C3531: “e”: 类型包含“auto”的符号必须具有初始值设定项rn1>MyColorCombox.cpp(55): error C2143: 语法错误 : 缺少“;”(在“”的前面)rn1>MyColorCombox.cpp(57): error C2541: “delete”: 不能删除不是指针的对象rn1>MyColorCombox.cpp(60): fatal error C1903: 无法从以前的错误中恢复;正在停止编译rnrn我使用的工具是,VS2010。rnm_vecItemList是 vector m_vecItemList;rn"//"引用的是我百度的,一种方式,也不行。。rnrn请问这个该怎么改?
报错如下,新人求教!
n>>> import sysn n>>> sys.PathnTraceback (most recent call last):nFile "", line 1, in nAttributeError: 'module' object has no attribute 'Path'n
weblogic下struts报错如下
而且<em>报错</em>后必须重启weblogic,否则所有的页面都<em>报错</em>rnrnjava.lang.NullPointerExceptionrn at org.apache.struts.action.RequestProcessor.getServletContext(RequestPrrnocessor.java:1136)rn at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.rnjava:1062)rn at org.apache.struts.action.RequestProcessor.processForwardConfig(RequesrntProcessor.java:455)rn at org.apache.struts.action.RequestProcessor.process(RequestProcessor.jarnva:279)rn at org.apache.struts.action.ActionServlet.process(ActionServlet.java:148rn2)rn at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)rn at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.runrn(ServletStubImpl.java:1053)rn at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImrnpl.java:387)rn at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)rn at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.jarnva:27)rn at com.whir.common.util.SetCharacterEncodingFilter.doFilter(SetCharacterrnEncodingFilter.java:93)rn at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.jarnva:27)rn at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActiornn.run(WebAppServletContext.java:6316)rn at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
程序报错,信息如下
NO user transaction is currently in progress.rnROLLBACK TRANSACTION 请求没有对应的BEGIN TRANSACTION
.net安装问题,报错如下
安装程序未能将文件f:\dotnet\vsenard1\msvcr70.dll复制到临时目录中。请确保此文件存在并重新运行安装程序。rnrn各位谁遇到过这种情况啊,帮帮忙,不会又要我重装系统吧?
java加密显示如下报错
也不知道发在这个版对不对呃。。。rn错误信息:rnjava.security.NoSuchAlgorithmException: DES KeyGenerator not availablern at javax.crypto.KeyGenerator.(DashoA12275)rn at javax.crypto.KeyGenerator.getInstance(DashoA12275)rn at testdes.Destest.main(Destest.java:19)rnrn代码:rnimport javax.crypto.Cipher;rnimport javax.crypto.KeyGenerator;rnimport javax.crypto.NoSuchPaddingException;rnimport javax.crypto.IllegalBlockSizeException;rnimport javax.crypto.BadPaddingException;rnimport java.security.Key;rnimport java.security.Security;rnimport java.security.NoSuchAlgorithmException;rnimport java.security.InvalidKeyException;rnrnrnpublic class Destest rnrn public static void main(String[] args) rn Security.addProvider(new com.sun.crypto.provider.SunJCE());rn try rn KeyGenerator kg = KeyGenerator.getInstance("DES");rn Key key = kg.generateKey();rn Cipher cipher = Cipher.getInstance("DES");rn byte[] data = "Hello World!".getBytes();rn System.out.println("Original data:" + new String(data));rn cipher.init(Cipher.ENCRYPT_MODE, key);rn byte[] result = cipher.doFinal(data);rn System.out.println("Encrypted data:" + new String(result));rn cipher.init(Cipher.DECRYPT_MODE, key);rn byte[] original = cipher.doFinal(result);rn System.out.println("Decrypted data:" + new String(original));rn rn rn catch (NoSuchAlgorithmException e)rn e.printStackTrace(); rn rn catch (NoSuchPaddingException e)rn e.printStackTrace();rn rn catch (InvalidKeyException e)rn e.printStackTrace();rn rn catch (IllegalStateException e)rn e.printStackTrace();rn rn catch (IllegalBlockSizeException e)rn e.printStackTrace();rn rn catch (BadPaddingException e)rn e.printStackTrace();rn rn rnrnrnrn是不是我的配置还有什么问题?rn用一段代码查了下提供者信息<em>如下</em>(摘了一部分):rnProvider name: SunJCErnProvider information: SunJCE Provider (implements RSA, DES, Triple DES, AES, Blowfish, ARCFOUR, RC2, PBE, Diffie-Hellman, HMAC)rnProvider version: 1.5rn这是不表示是配置正确的啊?rnrn谢谢了!
安装httpd-2.4.26+apr-1.6.2+apr-util-1.6.0+pcre-8.41.tar.gz报错如下
按照正常编译rnaprrnapr-utilrnpcrern都没有问题rnrn执行./configure --<em>prefix</em>=/opt/apache/httpd-2.4.26 --with-apr=/opt/apache/httpd-2.4.26/srclib/apr --with-apr-util=/opt/apache/httpd-2.4.26/srclib/apr-util --with-pcre=/opt/apache/pcrern也没有<em>报错</em>[img=https://forum.csdn.net/PointForum/ui/scripts/csdn/Plugin/003/onion/30.gif][/img]rnrn开始make后rn[img=https://forum.csdn.net/PointForum/ui/scripts/csdn/Plugin/003/onion/36.gif][/img]rn输出<em>如下</em>:rnrnMaking all in supportrnmake[1]: Entering directory `/opt/apache/httpd-2.4.26/support'rnmake[2]: Entering directory `/opt/apache/httpd-2.4.26/support'rn/opt/apache/httpd-2.4.26/srclib/apr/build-1/libtool --silent --mode=link gcc -std=gnu99 -g -O2 -pthread -o htpasswd htpasswd.lo passwd_common.lo /opt/apache/httpd-2.4.26/srclib/apr-util/lib/libaprutil-1.la /opt/apache/httpd-2.4.26/srclib/apr/lib/libapr-1.la -lrt -lcrypt -lpthread -lcryptrn[color=#FF0000]/opt/apache/httpd-2.4.26/srclib/apr-util/lib/libaprutil-1.so: undefined reference to `XML_ParserCreate'rn[color=#FF0000]/opt/apache/httpd-2.4.26/srclib/apr-util/lib/libaprutil-1.so: undefined reference to `XML_GetErrorCode'rn/opt/apache/httpd-2.4.26/srclib/apr-util/lib/libaprutil-1.so: undefined reference to `XML_SetUserData'rn/opt/apache/httpd-2.4.26/srclib/apr-util/lib/libaprutil-1.so: undefined reference to `XML_ErrorString'rn/opt/apache/httpd-2.4.26/srclib/apr-util/lib/libaprutil-1.so: undefined reference to `XML_SetEntityDeclHandler'rn/opt/apache/httpd-2.4.26/srclib/apr-util/lib/libaprutil-1.so: undefined reference to `XML_ParserFree'rn/opt/apache/httpd-2.4.26/srclib/apr-util/lib/libaprutil-1.so: undefined reference to `XML_SetElementHandler'rn/opt/apache/httpd-2.4.26/srclib/apr-util/lib/libaprutil-1.so: undefined reference to `XML_StopParser'rn/opt/apache/httpd-2.4.26/srclib/apr-util/lib/libaprutil-1.so: undefined reference to `XML_Parse'rn/opt/apache/httpd-2.4.26/srclib/apr-util/lib/libaprutil-1.so: undefined reference to `XML_SetCharacterDataHandler'rncollect2: ld returned 1 exit statusrnmake[2]: *** [htpasswd] Error 1rnmake[2]: Leaving directory `/opt/apache/httpd-2.4.26/support'rnmake[1]: *** [all-recursive] Error 1rnmake[1]: Leaving directory `/opt/apache/httpd-2.4.26/support'rnmake: *** [all-recursive] Error 1[/color][/color]rnrnrn最后这段,我上网查了下rnrn也有看到有网友说是apr-util不再捆绑“expat”,建议使用1.5的rn但是没有解决根源问题,到帖子里找找大神学习[img=https://forum.csdn.net/PointForum/ui/scripts/csdn/Plugin/003/onion/60.gif][/img]rnrn
maven打包报错如下
1、 Error assembling WAR: A zip file cannot include itself -> [Help 1] 2、出现这个错误时因为install之前已经install过一次了,再次install的话,需要先clean,再install就不会出现下面的错误 [ERROR] Failed to execute goal org.apache.ma
react出现如下报错
1.Unchecked runtime.lastError: The message port closed before a response was received. 原因:扩展程序问题 建议:浏览器中打开chrome://extensions/,逐一关闭排查 以我的为例,发现罪魁祸首是添加了迅雷扩展程序,最后关闭就好。 2.Warning: A component is cha...
服务器无法启动,报错如下
[08-11-21 13:45:48:191 CST] 0000000a SchedulerServ I SCHD0031I: Scheduler 服务正在启动。rn[08-11-21 13:45:48:222 CST] 0000000a SchedulerServ E SCHD0030E: Scheduler 服务无法解析 EJBContainer 服务。rn[08-11-21 13:45:48:222 CST] 0000000a SchedulerServ E SCHD0029Wrn[08-11-21 13:45:53:535 CST] 0000000a SchedulerServ I SCHD0040I: Scheduler 服务正在停止。rn[08-11-21 13:45:53:535 CST] 0000000a SchedulerServ I SCHD0002I: Scheduler 服务已停止。rn[08-11-21 13:45:53:597 CST] 0000000a AppProfileCom I ACIN0009I: 正在停止 Application Profiling 服务。rn[08-11-21 13:45:53:597 CST] 0000000a ActivitySessi I WACS0049I: ActivitySession Service 正在停止。rn[color=#FF0000][08-11-21 13:45:53:706 CST] 0000000a WsServerImpl E WSVR0009E: 启动期间发生错误rnMETA-INF/ws-server-components.xmlrn[08-11-21 13:45:53:941 CST] 0000000a WsServerImpl E WSVR0009E: 启动期间发生错误rncom.ibm.ws.exception.RuntimeError: com.ibm.ws.exception.RuntimeError: Unable to locate the EJBContainer service.[/color]rn at com.ibm.ws.runtime.WsServerImpl.bootServerContainer(WsServerImpl.java:182)rn at com.ibm.ws.runtime.WsServerImpl.start(WsServerImpl.java:120)rn at com.ibm.ws.runtime.WsServerImpl.main(WsServerImpl.java:378)rn at com.ibm.ws.runtime.WsServer.main(WsServer.java:50)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60)rn at java.lang.reflect.Method.invoke(Method.java:391)rn at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:190)rnCaused by: com.ibm.ws.exception.RuntimeError: Unable to locate the EJBContainer service.rn at com.ibm.ws.scheduler.SchedulerServiceImpl.start(SchedulerServiceImpl.java:609)rn at com.ibm.ws.runtime.component.ContainerImpl.startComponents(ContainerImpl.java:821)rn at com.ibm.ws.runtime.component.ContainerImpl.start(ContainerImpl.java:649)rn at com.ibm.ws.runtime.component.ApplicationServerImpl.start(ApplicationServerImpl.java:149)rn at com.ibm.ws.runtime.component.ContainerImpl.startComponents(ContainerImpl.java:821)rn at com.ibm.ws.runtime.component.ContainerImpl.start(ContainerImpl.java:649)rn at com.ibm.ws.runtime.component.ServerImpl.start(ServerImpl.java:356)rn at com.ibm.ws.runtime.WsServerImpl.bootServerContainer(WsServerImpl.java:173)rn at com.ibm.ws.runtime.WsServerImpl.start(WsServerImpl.java:120)rn at com.ibm.ws.runtime.WsServerImpl.main(WsServerImpl.java:378)rn at com.ibm.ws.runtime.WsServer.main(WsServer.java:50)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60)rn at java.lang.reflect.Method.invoke(Method.java:391)rn at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:190)rn
远程sqlplus报错如下
[color=#FF0000]tnsping能ping通[/color]rnC:\Users\Administrator>tnsping TEST2rnrnTNS Ping Utility for 32-bit Windows: Version 11.2.0.1.0 - Production on 29-NOV-2015 18:13:07rnrnCopyright (c) 1997, 2010, Oracle. All rights reserved.rnrnUsed <em>parameter</em> files:rnD:\app\Administrator\product\11.2.0\client_2\network\admin\sqlnet.orarnrnrnUsed TNSNAMES adapter to resolve the aliasrnAttempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = xxxxxxx)(PORT = 1521))) (CONrnOK (40 msec)rnrnC:\Users\Administrator>rnrnrn[color=#FF0000]但是sqlplus登录登录不了。[/color]rnC:\Users\Administrator>sqlplus powerdesk/xxx@TEST2rnrnSQL*Plus: Release 11.2.0.1.0 Production on Sun Nov 29 18:11:15 2015rnrnCopyright (c) 1982, 2010, Oracle. All rights reserved.rnrnERROR:rnORA-12547: TNS:lost contactrnrnrnEnter user-name:rnrnrn[b]oracle安装在远端的linux下,lsnrctl status是正常的。rnlinux下sqlplus登录是可以的。[/b]rn[oracle@testoracle1 ~]$ rlwrap sqlplus powerdesk/xxxx@PD1;rnrlwrap: warning: your $TERM is 'xterm' but rlwrap couldn't find it in the terminfo database. Expect some problems.rnrnSQL*Plus: Release 11.2.0.1.0 Production on Sun Nov 29 18:16:11 2015rnrnCopyright (c) 1982, 2009, Oracle. All rights reserved.rnrnrnConnected to:rnOracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit ProductionrnWith the Partitioning, OLAP, Data Mining and Real Application Testing optionsrnrnSQL> rnrn这个问题大概怎么解决呢?
prefix算法
<em>prefix</em> 快速匹配 dp
mybatis报错,在tomcat下偶尔会报如下错,求解
Message:[public abstract org.springframework.web.servlet.ModelAndView org.springframework.web.servlet.mvc.Controller.handleRequest(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse) throws java.lang.Exception:END!--]rnorg.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.builder.BuilderException: Error evaluating expression ''. Cause: org.apache.ibatis.ognl.ExpressionSyntaxException: Malformed OGNL expression: [org.apache.ibatis.ognl.ParseException: Encountered "" at line 1, column 0.rnWas expecting one of:rn ":" ...rn "not" ...rn "+" ...rn "-" ...rn "~" ...rn "!" ...rn "(" ...rn "true" ...rn "false" ...rn "null" ...rn "#this" ...rn "#root" ...rn "#" ...rn "[" ...rn "" ...rn "@" ...rn "new" ...rn ...rn ...rn "\'" ...rn "`" ...rn "\"" ...rn ...rn ...rn ]rn at org.mybatis.spring.MyBatisExceptionTranslator.translateExceptionIfPossible(MyBatisExceptionTranslator.java:73)rn at org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:346)rn at com.sun.proxy.$Proxy6.selectOne(Unknown Source)rn at org.mybatis.spring.SqlSessionTemplate.selectOne(SqlSessionTemplate.java:154)rn at org.apache.ibatis.binding.MapperMethod.execute(MapperMethod.java:70)rn at org.apache.ibatis.binding.MapperProxy.invoke(MapperProxy.java:38)
Zxing-javase-3.2.0.jar下载
google提供二维码生成工具包Zxing-javase.jar 相关下载链接:[url=//download.csdn.net/download/a123638/8751829?utm_source=bbsseo]//download.csdn.net/download/a123638/8751829?utm_source=bbsseo[/url]
数组与指针的艺术 pdf下载
数组与指针的艺术 数组与指针的艺术.pdf 相关下载链接:[url=//download.csdn.net/download/endcorps/2306615?utm_source=bbsseo]//download.csdn.net/download/endcorps/2306615?utm_source=bbsseo[/url]
Advanced_Digital_Design_with_the_Verilog_HDL下载
经典的verilog设计书籍,亚马逊5星级评价 相关下载链接:[url=//download.csdn.net/download/jiangdf/2848698?utm_source=bbsseo]//download.csdn.net/download/jiangdf/2848698?utm_source=bbsseo[/url]
我们是很有底线的