sql报错 ,求大神帮忙看看,急 在线等

Caused by: java.sql.SQLException: sql injection violation, syntax error: ERROR. token : FUNCTION, pos : 90 : select id, rule_code, factor_1, factor_2, factor_1_ty
pe, statistics_id, function, operator, logic, param_type, param,credible_level,grey_list_level, reference_value, stat_refuse_type, is_stat_curr_event, trace
_ids, trigger_rule_code, description, create_time, update_time from prism_rule_condition_mutex where rule_code = ?
at com.alibaba.druid.wall.WallFilter.check(WallFilter.java:711) ~[druid-1.0.14.jar:1.0.14]
at com.alibaba.druid.wall.WallFilter.connection_prepareStatement(WallFilter.java:240) ~[druid-1.0.14.jar:1.0.14]
at com.alibaba.druid.filter.FilterChainImpl.connection_prepareStatement(FilterChainImpl.java:448) ~[druid-1.0.14.jar:1.0.14]
at com.alibaba.druid.filter.FilterAdapter.connection_prepareStatement(FilterAdapter.java:928) ~[druid-1.0.14.jar:1.0.14]
at com.alibaba.druid.filter.FilterEventAdapter.connection_prepareStatement(FilterEventAdapter.java:122) ~[druid-1.0.14.jar:1.0.14]
at com.alibaba.druid.filter.FilterChainImpl.connection_prepareStatement(FilterChainImpl.java:448) ~[druid-1.0.14.jar:1.0.14]
at com.alibaba.druid.proxy.jdbc.ConnectionProxyImpl.prepareStatement(ConnectionProxyImpl.java:342) ~[druid-1.0.14.jar:1.0.14]
at com.alibaba.druid.pool.DruidPooledConnection.prepareStatement(DruidPooledConnection.java:318) ~[druid-1.0.14.jar:1.0.14]
at org.apache.ibatis.executor.statement.PreparedStatementHandler.instantiateStatement(PreparedStatementHandler.java:75) ~[mybatis-3.2.7.jar:3.2.7]
at org.apache.ibatis.executor.statement.BaseStatementHandler.prepare(BaseStatementHandler.java:85) ~[mybatis-3.2.7.jar:3.2.7]
at org.apache.ibatis.executor.statement.RoutingStatementHandler.prepare(RoutingStatementHandler.java:57) ~[mybatis-3.2.7.jar:3.2.7]
at sun.reflect.GeneratedMethodAccessor114.invoke(Unknown Source) ~[na:na]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_51]
at java.lang.reflect.Method.invoke(Method.java:497) ~[na:1.8.0_51]
at org.apache.ibatis.plugin.Invocation.proceed(Invocation.java:49) ~[mybatis-3.2.7.jar:3.2.7]
at com.risk.interceptor.PageInterceptor.intercept(PageInterceptor.java:94) ~[risk-common-1.0-SNAPSHOT.jar:na]
at org.apache.ibatis.plugin.Plugin.invoke(Plugin.java:60) ~[mybatis-3.2.7.jar:3.2.7]
at com.sun.proxy.$Proxy55.prepare(Unknown Source) ~[na:na]
at org.apache.ibatis.executor.SimpleExecutor.prepareStatement(SimpleExecutor.java:73) ~[mybatis-3.2.7.jar:3.2.7]
at org.apache.ibatis.executor.SimpleExecutor.doQuery(SimpleExecutor.java:59) ~[mybatis-3.2.7.jar:3.2.7]
at org.apache.ibatis.executor.BaseExecutor.queryFromDatabase(BaseExecutor.java:267) ~[mybatis-3.2.7.jar:3.2.7]
at org.apache.ibatis.executor.BaseExecutor.query(BaseExecutor.java:137) ~[mybatis-3.2.7.jar:3.2.7]
at org.apache.ibatis.executor.CachingExecutor.query(CachingExecutor.java:96) ~[mybatis-3.2.7.jar:3.2.7]
at org.apache.ibatis.executor.CachingExecutor.query(CachingExecutor.java:77) ~[mybatis-3.2.7.jar:3.2.7]
at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:108) ~[mybatis-3.2.7.jar:3.2.7]
at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:102) ~[mybatis-3.2.7.jar:3.2.7]
at sun.reflect.GeneratedMethodAccessor117.invoke(Unknown Source) ~[na:na]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_51]
at java.lang.reflect.Method.invoke(Method.java:497) ~[na:1.8.0_51]
at org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:358) ~[mybatis-spring-1.2.2.jar:1.2.2]
... 32 common frames omitted

7个回答

路过 我也不会哈 加油

sql语法错误,建议把sql单独在数据库执行以下,如果报错,修改sql,然后再去Java执行

表字段function是sql的自有字段,必须用方括号或双引号分隔含有关键字的列名[function]

字段 function 是关键字吧

图片说明

你的function是sql关键字,换个别的

function, operator可能都是关键字,后者是运算符函数。

java.sql.SQLException: sql injection violation, syntax error: syntax error, illegal charset 为什么我的跟楼主不一样。。。。。

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
sql报错,求大神帮忙看看,在线等!
Caused by: java.sql.SQLException: sql injection violation, syntax error: TODO : LITERAL_INT top : select top 20 * from (select row_number() over ( order by name asc ) row_number, * from (select id,name,display_Name,type,instance_Url,state, content, version,create_Time,creator from wf_process where 1=1 and state = ? ) aa ) a where row_number > 0 order by row_numbern at com.alibaba.druid.wall.WallFilter.check(WallFilter.java:711)n at com.alibaba.druid.wall.WallFilter.connection_prepareStatement(WallFilter.java:240)n at com.alibaba.druid.filter.FilterChainImpl.connection_prepareStatement(FilterChainImpl.java:448)n at com.alibaba.druid.filter.FilterAdapter.connection_prepareStatement(FilterAdapter.java:928)n at com.alibaba.druid.filter.FilterEventAdapter.connection_prepareStatement(FilterEventAdapter.java:122)n at com.alibaba.druid.filter.FilterChainImpl.connection_prepareStatement(FilterChainImpl.java:448)n at com.alibaba.druid.filter.FilterAdapter.connection_prepareStatement(FilterAdapter.java:928)n at com.alibaba.druid.filter.FilterEventAdapter.connection_prepareStatement(FilterEventAdapter.java:122)n at com.alibaba.druid.filter.FilterChainImpl.connection_prepareStatement(FilterChainImpl.java:448)n at com.alibaba.druid.proxy.jdbc.ConnectionProxyImpl.prepareStatement(ConnectionProxyImpl.java:342)n at com.alibaba.druid.pool.DruidPooledConnection.prepareStatement(DruidPooledConnection.java:318)n at org.springframework.jdbc.core.JdbcTemplate$SimplePreparedStatementCreator.createPreparedStatement(JdbcTemplate.java:1436)n at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:581)n ... 126 morenCaused by: com.alibaba.druid.sql.parser.ParserException: TODO : LITERAL_INT topn at com.alibaba.druid.sql.dialect.oracle.parser.OracleStatementParser.parseStatementList(OracleStatementParser.java:490)n at com.alibaba.druid.sql.parser.SQLStatementParser.parseStatementList(SQLStatementParser.java:112)n at com.alibaba.druid.wall.WallProvider.checkInternal(WallProvider.java:619)n at com.alibaba.druid.wall.WallProvider.check(WallProvider.java:574)n at com.alibaba.druid.wall.WallFilter.check(WallFilter.java:699)n ... 138 more
求大神帮忙看看 在线跪等
!!!!!怎么解析json数组啊我在界面上alert出来这个数组了就是没法在表格上显示rn[img=https://img-bbs.csdn.net/upload/201411/28/1417169011_110105.png][/img][img=https://img-bbs.csdn.net/upload/201411/28/1417169028_965734.png][/img][img=https://img-bbs.csdn.net/upload/201411/28/1417169042_823435.png][/img]
在线跪等!!求大神帮忙看看!!!!
想做一个小游戏 大概需求是:有三张图片 点击随便一张返回一个数字与后面生成的随机数比对 如果一样就改变图片...不一样就继续......................................大神们帮忙解决下呗...........................................[img=https://img-bbs.csdn.net/upload/201410/14/1413297138_631991.png][/img][img=https://img-bbs.csdn.net/upload/201410/14/1413297146_592606.png][/img][img=https://img-bbs.csdn.net/upload/201410/14/1413297162_587923.png][/img]
求大神帮忙看看!!在线跪等!!
我upd的方法没有问题 我写过测试类测试过了 求帮忙解决下rnrnrn[img=https://img-bbs.csdn.net/upload/201409/03/1409731350_406264.png][/img][img=https://img-bbs.csdn.net/upload/201409/03/1409731357_618002.png][/img][img=https://img-bbs.csdn.net/upload/201409/03/1409731381_676909.png][/img]
求大神帮忙下,急急急。在线等
sql 2008:rn在一张表中(类似菜单),根据一个或多个父节点查询出所有自节点(包括子节点下的子节点)。rnrnfid fnumber fname fparentrn1 N001 name1 rn2 N00101 name2 1rn3 N002 name3 rn4 N00201 name4 2rn.rn .rn .rnn-1 N0020201 name5 4 rnn N00202 namen 2rnrn如我需要查出rnN001,N002下的所有数据,用一条sql语句???
在线急等js大神求帮忙
var attendantTypes=this.get("profile").getValue("attendantTypes");rn if(attendantTypes.length!=0)rn rn for(var i=0;i
求大神帮忙,在线等
简单的c++题,求教
在线等,求大神帮忙
程序如下(感觉没错误啊):rn#include rn#include rn#include rn#include rnusing namespace std;rn#define OK 1rn#define ERROR 0rn#define STACK_INIT_SIZE 1000rndouble result, number1,number2;rnint i, j,n,m,flag;rnchar operate,ch;rnchar val[100];rn//操作数栈定义rntypedef structrn double *base;rn double *top;rn int stacksize;rnnumstack;rn//操作码栈定义rntypedef structrn char *base;rn char *top;rn char stacksize;rnpondstack;rn//操作数栈初始化rnint num_init(numstack &S)rnrn S.base = (double *)malloc(STACK_INIT_SIZE*sizeof(double));rn if (!S.base)exit(OVERFLOW);rn S.top=S.base;rn S.stacksize = STACK_INIT_SIZE;rn return OK;rnrn//操作码栈初始化rnint pond_init(pondstack &S)rnrn S.base = (char *)malloc(STACK_INIT_SIZE*sizeof(char));rn if (!S.base)exit(OVERFLOW);rn S.top = S.base;rn S.stacksize = STACK_INIT_SIZE;rn return OK;rnrn//将操作码压入堆栈rnint push_pond(pondstack &S, char c)rnrn *S.top++ = c;rn return OK;rnrn//将操作数压入堆栈rnint push_num(numstack &S, double number)rnrn *S.top++=number;rn return OK;rnrn//将操作码弹出堆栈rnint pop_pond(pondstack S)rnrn char c;rn if (S.top == S.base)return ERROR;rn c = *--S.top;rn return c;rnrn//将操作数弹出堆栈rnint pop_num(numstack S)rn rn double e;rn if (S.top == S.base)return ERROR;rn e = *--S.top;rn return e;rn rn//取栈顶rnint get_top(pondstack N)rnrn char c;rn if (N.top == N.base)return ERROR;rn c = *(N.top - 1);rn return c;rnrn//判断对错rnint judge(char c)rnrn if (c =='-' || c == '*' || c == '/' || c == '+')flag = 1;//c为运算符时flag=1;rn else flag = 0;rn return OK;rnrn//优先级判别rnint change_opnd(char c)rnrn switch (c)rn rn case '-':rn case '+':m= 1; break;rn case '*':rn case '/':m= 2; break;rn default: printf("error"); rn rn return(m);rnrn//简单计算+,-,*,/rnint caculate(double numbe1,char operat,double numbe2)rnrn if (operate == '+')rn rn result = numbe1 + numbe2;rn rn if (operat == '-')rn rn result = numbe1 - numbe2;rn rn if (operat == '*')rn rn result = numbe1*numbe2;rn rn if (operat == '/')rn rn result = numbe1 / numbe2;rn rn return result;rnrn//语法检查并计算rnint Make_str()rnrn numstack num;rn pondstack pond;rn num_init(num);//操作数栈numrn pond_init(pond);//操作码栈pondrn //输入判断进栈rn for (n = 0; val[n] != '='; n++)rn rn judge(val[n]);rn if (flag == 0)push_num(num, val[n]);rn elsern rn if (pond.top == pond.base)push_pond(pond, val[n]);rn elsern rn int x, y;rn x = change_opnd(val[n]);rn y = change_opnd(ch = get_top(pond));rn if (x > y)push_pond(pond, val[n]);//栈顶元素优先权低,直接进栈rn else//栈顶元素优先权高,退栈运算结果进栈rn rn number1=pop_num(num );rn operate=pop_pond(pond);rn number2=pop_num(num);rn push_pond(pond,caculate(number1, operate, number2));rn rn rn rn rn while (pond.top != pond.base)rn rn number1 = pop_num(num);rn operate = pop_pond(pond);rn number2 = pop_num(num);rn push_pond(pond, caculate(number1, operate, number2));rn rn result=pop_num(num);rn cout << result;rn return OK;rnrn//主函数rn void main()rn rn cout << "*****************运算表达式判断及运算结果********************" << endl;rn Make_str();rn rnrn调试时错误:0x01226CB9 处有未经处理的异常(在 shiyan2.3.exe 中): 0xC0000005: 写入位置 0x0047A000 时发生访问冲突。rn在*S.top++=number;这。。。。不懂啊,指针不对吗?rn在线等,谢谢了
急求高手帮忙看看,在线等!
前面先用一个表单提交一个 "bh"的值rn<%rnSet conn = Server.CreateObject("ADODB.Connection")rndbpath=Server.MapPath("web.mdb")rnconn.open "driver=Microsoft Access Driver (*.mdb); dbq="&dbpathrn%>rn<%rndim bhrnbh=Request.Form("bh")rnsql="select * from shuju where bh = '"&bh&"' "rnset rs=Server.CreateObject("Adodb.Recordset")rnrs.Open sql,conn,3,3rnif rs.BOF and rs.EOF thenrnresponse.write "对不起,当前没有你要查找的记录!"rnelsern%>rnrnrnrnrn<% do while not rs.EOF %>rn<%=rs("juxiang")%><%=rs("bh")%><%=rs("dz")%><%=rs("riqi")%>rn<% rs.MoveNext%>rn<% loop %>rnrnrn<%rnrs.closernend ifrn%>rn为何老是出错,如何解决。
帮忙看看!急!!!在线等!
下面是menu.js文件中的一部分:rnvar xmlDoc = new ActiveXObject("Microsoft.XMLDOM");rnxmlDoc.load("menu.xml");rnxmlObj = xmlDoc.documentElement;rn在服务器端运行时想要把menu.xml文件load进来,menu.js和menu.xml都在一个目录下,该怎么写???rn我试过xmlDoc.load("http://localhost/Cnet/page/includes/menu.xml); 但是也不行。
求大神帮忙看看代码,报错缺少''
[code=java]<%@ page language="java" pageEncoding="UTF-8"%>rn<%@include file="/common/ext-js.jsp"%>rn<%rn response.setHeader("Cache-Control", "no-cache");rn response.setHeader("Pragma", "no-cache");rn response.setDateHeader("Expires", 0);rn %>rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn[/code]
tomcat7.0.55报错,求大神帮忙看看,坐等。。。。。。
以下为报错内容:org.apache.tomcat.util.net.AprEndpoint$Poller runrn严重: Poller failed with error [610,038] : [APR does not understand this error code] rnrn大概10分钟左右报一次。错误在catalina 日记里rnrn没有其他的错了,这个错误时间长了,tomcat就自动退出。
org.apache.commons.pool2.impl.GenericObjectPoolConfig 大神帮忙看看 ,在线等
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rnat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)rnat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)rnat java.lang.reflect.Method.invoke(Method.java:606)rnat com.opensymphony.xwork2.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:450)rnat com.opensymphony.xwork2.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:289)rnat com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:252)rnat org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept(DebuggingInterceptor.java:256)rnat com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rnat com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:176)rnat com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)rnat com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rnat com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:265)rnat org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:68)rnat com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)rnat com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rnat com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:138)rnat com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rnat com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:249)rnat com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)rnat com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rnat com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:249)rnat com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)rnat com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rnat com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:191)rnat com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rnat org.apache.struts2.interceptor.MultiselectInterceptor.intercept(MultiselectInterceptor.java:73)rnat com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rnat org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:91)rnat com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rnat org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:252)rnat com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rnat com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:100)rnat com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rnat com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.intercept(ScopedModelDrivenInterceptor.java:141)rnat com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rnat com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:145)rnat com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rnat com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:171)rnat com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)rnat com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rnat com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:176)rnat com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rnat org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:164)rnat com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rnat com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:193)rnat com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rnat com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:187)rnat com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rnat org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:54)rnat org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:546)rnat org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:77)rnat org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:91)rnat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)rnat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rnat org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)rnat org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)rnat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)rnat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rnat org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)rnat org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)rnat org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)rnat org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)rnat org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)rnat org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:261)rnat org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)rnat org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:581)rnat org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)rnat java.lang.Thread.run(Thread.java:745)rnCaused by: java.lang.NoClassDefFoundError: org/apache/commons/pool2/impl/GenericObjectPoolConfigrnat com.tg.am.action.EsAction.getQueyrKey(EsAction.java:185)rn... 69 morernCaused by: java.lang.ClassNotFoundException: org.apache.commons.pool2.impl.GenericObjectPoolConfigrnat org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1358)rnat org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1204)rn... 70 morernrn这是报的错误 ,求大神帮忙看看 ,这是在NEW 一个自己写的redis工具类时出的错
springMVC报错,在线等,求大神解答
在使用spring框架的时候出现找不到类的异常,我自己下载包到导入了,还是这样。这个javax/portlet/PortletException到底是什么???求大神解答rn十二月 23, 2015 11:57:05 上午 org.apache.catalina.core.ApplicationContext logrn严重: StandardWrapper.Throwablernjava.lang.NoClassDefFoundError: javax/portlet/PortletExceptionrn at java.lang.ClassLoader.defineClass1(Native Method)rn at java.lang.ClassLoader.defineClass(ClassLoader.java:800)rn at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)rn at org.apache.catalina.loader.WebappClassLoaderBase.findClassInternal(WebappClassLoaderBase.java:3114)rn at org.apache.catalina.loader.WebappClassLoaderBase.findClass(WebappClassLoaderBase.java:1342)rn at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1823)rn at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1703)rn at java.lang.Class.getDeclaredMethods0(Native Method)rn at java.lang.Class.privateGetDeclaredMethods(Class.java:2625)rn at java.lang.Class.getDeclaredMethods(Class.java:1868)rn at org.springframework.util.ReflectionUtils.getDeclaredMethods(ReflectionUtils.java:609)rn at org.springframework.util.ReflectionUtils.doWithMethods(ReflectionUtils.java:521)rn at org.springframework.util.ReflectionUtils.doWithMethods(ReflectionUtils.java:507)rn at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.determineCandidateConstructors(AutowiredAnnotationBeanPostProcessor.java:241)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.determineConstructorsFromBeanPostProcessors(AbstractAutowireCapableBeanFactory.java:1069)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1042)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:510)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)rn at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)rn at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)rn at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)rn at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)rn at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:772)rn at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:838)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:537)rn at org.springframework.web.servlet.FrameworkServlet.configureAndRefreshWebApplicationContext(FrameworkServlet.java:667)rn at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:633)rn at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:681)rn at org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:552)rn at org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:493)rn at org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:136)rn at javax.servlet.GenericServlet.init(GenericServlet.java:158)rn at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1284)rn at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1197)rn at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1087)rn at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5253)rn at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5543)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1263)rn at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1978)rn at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)rn at java.util.concurrent.FutureTask.run(FutureTask.java:262)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)rn at java.lang.Thread.run(Thread.java:745)rnCaused by: java.lang.ClassNotFoundException: javax.portlet.PortletExceptionrn at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1854)rn at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1703)rn ... 48 morern十二月 23, 2015 11:57:05 上午 org.apache.catalina.core.StandardContext loadOnStartuprn严重: Servlet [SpringMVC05] in web application [/SpringMVC04] threw load() exceptionrnjava.lang.ClassNotFoundException: javax.portlet.PortletExceptionrn at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1854)rn at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1703)rn at java.lang.ClassLoader.defineClass1(Native Method)rn at java.lang.ClassLoader.defineClass(ClassLoader.java:800)rn at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)rn at org.apache.catalina.loader.WebappClassLoaderBase.findClassInternal(WebappClassLoaderBase.java:3114)rn at org.apache.catalina.loader.WebappClassLoaderBase.findClass(WebappClassLoaderBase.java:1342)rn at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1823)rn at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1703)rn at java.lang.Class.getDeclaredMethods0(Native Method)rn at java.lang.Class.privateGetDeclaredMethods(Class.java:2625)rn at java.lang.Class.getDeclaredMethods(Class.java:1868)rn at org.springframework.util.ReflectionUtils.getDeclaredMethods(ReflectionUtils.java:609)rn at org.springframework.util.ReflectionUtils.doWithMethods(ReflectionUtils.java:521)rn at org.springframework.util.ReflectionUtils.doWithMethods(ReflectionUtils.java:507)rn at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.determineCandidateConstructors(AutowiredAnnotationBeanPostProcessor.java:241)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.determineConstructorsFromBeanPostProcessors(AbstractAutowireCapableBeanFactory.java:1069)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1042)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:510)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)rn at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)rn at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)rn at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)rn at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)rn at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:772)rn at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:838)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:537)rn at org.springframework.web.servlet.FrameworkServlet.configureAndRefreshWebApplicationContext(FrameworkServlet.java:667)rn at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:633)rn at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:681)rn at org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:552)rn at org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:493)rn at org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:136)rn at javax.servlet.GenericServlet.init(GenericServlet.java:158)rn at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1284)rn at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1197)rn at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1087)rn at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5253)rn at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5543)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1263)rn at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1978)rn at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)rn at java.util.concurrent.FutureTask.run(FutureTask.java:262)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)rn at java.lang.Thread.run(Thread.java:745)rn
求大神帮忙 看看!!
Fatal error: Call to a member function recordcount() on a non-object in C:\Users\Administrator\Desktop\oecsm\Apache2\htdocs\classes\user.class.php on line 34rnrnrn项目更改数据库之后就报这个错!
求大神帮忙,!看看
/* 题目:一球从100米高度自由落下,rn * 每次落地后反跳回原高度的一半;rn * 再落下,求它在 第N次落地时,共经过多少米?rn * 第N次反弹多高?(将处理写到方法中,rn * 并且方法需要带一个参数,该参数表示第N次落地)rn */import java.util.Scanner;rnpublic class Test3 rnrn rn public static double method(int k)rn rn double sum=100;rn double h=100;rn for(int i=1;i<=k;i++)rn rn sum+=h/2*2;rn h=h/2;rn rn return sum;rn rn rn rnrn public static void main(String[] args)rn rn Scanner scanner=new Scanner(System.in);rn System.out.println("请输入第N次数:");rn int n=scanner.nextInt();rn double y=method(n);rn System.out.println(y);rnrn rn rn rn rn rn rnrn我的方案不行!求大神帮忙!rn
求大神帮忙看看
public static void main(String[] args)rn System.out.println(getFormatNum("0.000",1.2224));rn System.out.println(getFormatNum("0.000",1.2225));rn System.out.println(getFormatNum("0.000",1.2226));rn System.out.println(getFormatNum("0.000",0.2224));rn System.out.println(getFormatNum("0.000",0.2225));rn System.out.println(getFormatNum("0.000",0.2226));rn System.out.println(getFormatNum("0.000",2.4924));rn System.out.println(getFormatNum("0.000",2.4925));rn System.out.println(getFormatNum("0.000",2.4926));rn rn rn public static Double getFormatNum(String pattren,Double data)rn String reStr = "";rn reStr = new java.text.DecimalFormat(pattren).format(data); rn return Double.parseDouble(reStr);rn rn为什么执行结果会是rn1.222rn1.222rn1.223rn0.222rn0.223rn0.223rn2.492rn2.493rn2.493rn当个位为1时并没有按照四舍五入的规则执行
hibernate报错,求大神,在线等
我把hibernate2升级成hibernate3,以前的时候是正常,rn现在遇到映射文件有多表关联的地方就报错。下面是一个错误信息rnorg.hibernate.hql.ast.QuerySyntaxException: rntp3183.dat_tp3181.dat_tc3101 is not mapped [select count(distinct tp3183.gyosyano) from com.hitachijoho.cydeen.kjmng.model.Dat_TP3183 as tp3183, tp3183.dat_tp3181.dat_tc3101 as tc3101 where tp3183.supplyorgno ='0000' and tp3183.karitorokkbn='0' and tp3183.jyotai='02' and tp3183.nendo='2012' and tp3183.gyousyakbn = 'E' ]rn请问各位大神这是为什么呢?
求大神帮忙看看~
";rn $datanum = mysqli_num_rows($result);rn echo "共有".$totalnum."条留言,每页".$pagesize."条,共".$totalpage."页。 ";rn for( $i = 1; $i <= $totalpage; $i++)rn echo "[".$i."] ";rn rn echo " ";rn 43 $query = "select * from message order by addtime desc limit $begin,$pagesize";rn 44 $result = mysqli_query($link,$query);rn 45 $datanum = mysqli_num_rows($result);rn for( $i = 1; $i <= $datanum; $i++)//$datanum???rn $info = mysqli_fetch_array($result);rn echo " ".$row['author']."rn ".$row['addtime']."rn ".$row['content']."";rn rn mysqli_close($link)rn ?>rnrnrnrnrnrnrnrnwamp报错:Warning: mysqli_num_rows() expects parameter 1 to be mysqli_result, boolean given in C:\wamp64\www\message\ceshi1.php on line 45rnrn $datanum = mysqli_num_rows($result);也就是这一行错误,跪求~
求大神帮忙看看!!!
>>> a = [1, 2]rn>>> b = arn>>> print b.append(3)rnNonernrnrnrn我查看了 a 和b的id, 是一样的 rnprint b 也确实显示出 【1, 2】rnrn为什么 调用append()方法打印出来是None。rnrn是赋值只是把值赋值过去,列表的方法不能调用?
配置struts2报错,求大神帮忙,在线等
[code=java]信息: Choosing bean (struts) for (org.apache.struts2.views.util.UrlHelper)rn2013-3-22 10:42:22 com.opensymphony.xwork2.util.logging.commons.CommonsLogger errorrn严重: Dispatcher initialization failedrnUnable to load configuration. - [unknown location]rn at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:70)rn at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:429)rn at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:473)rn at org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:74)rn at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:51)rn at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:275)rn at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:397)rn at org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:108)rn at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3800)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4450)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:987)rn at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:909)rn at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:495)rn at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1206)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:314)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:722)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)rn at org.apache.catalina.core.StandardService.start(StandardService.java:516)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:583)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 org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)rnCaused by: Parent package is not defined: osgi-default - [unknown location]rn at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.buildPackageContext(XmlConfigurationProvider.java:662)rn at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addPackage(XmlConfigurationProvider.java:510)rn at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadPackages(XmlConfigurationProvider.java:292)rn at org.apache.struts2.config.StrutsXmlConfigurationProvider.loadPackages(StrutsXmlConfigurationProvider.java:112)rn at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:250)rn at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:67)rn ... 31 morern2013-3-22 10:42:22 org.apache.catalina.core.StandardContext filterStartrn严重: Exception starting filter struts2rnUnable to load configuration. - [unknown location]rn at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:485)rn at org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:74)rn at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:51)rn at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:275)rn at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:397)rn at org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:108)rn at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3800)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4450)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:987)rn at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:909)rn at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:495)rn at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1206)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:314)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:722)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)rn at org.apache.catalina.core.StandardService.start(StandardService.java:516)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:583)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 org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)rnCaused by: Unable to load configuration. - [unknown location]rn at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:70)rn at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:429)rn at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:473)rn ... 29 morernCaused by: Parent package is not defined: osgi-default - [unknown location]rn at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.buildPackageContext(XmlConfigurationProvider.java:662)rn at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addPackage(XmlConfigurationProvider.java:510)rn at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadPackages(XmlConfigurationProvider.java:292)rn at org.apache.struts2.config.StrutsXmlConfigurationProvider.loadPackages(StrutsXmlConfigurationProvider.java:112)rn at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:250)rn at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:67)rn ... 31 morern2013-3-22 10:42:22 org.apache.catalina.core.StandardContext startrn严重: Error filterStartrn2013-3-22 10:42:22 org.apache.catalina.core.StandardContext startrn严重: Context [/oneleaf_bbs_01] startup failed due to previous errorsrn2013-3-22 10:42:23 org.apache.coyote.http11.Http11Protocol startrn信息: Starting Coyote HTTP/1.1 on http-8080rn2013-3-22 10:42:23 org.apache.jk.common.ChannelSocket initrn信息: JK: ajp13 listening on /0.0.0.0:8009rn2013-3-22 10:42:23 org.apache.jk.server.JkMain startrn信息: Jk running ID=0 time=0/47 config=nullrn2013-3-22 10:42:23 org.apache.catalina.startup.Catalina startrn信息: Server startup in 4196 ms[/code]rnweb.xml配置如下:rn[code=java]rnrn rn struts2rn org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilterrn rn rn struts2rn /*rn rnrn rn index.jsprn rn[/code]rnstruts.xml如下:rn[code=java]rnrnrnrn rn rn /login.jsprn rn rn /success.jsprn rn rn[/code]rnstruts.properties如下:rn[code=java]struts.i18n.encoding=ISO-8859-1rnstruts.locale=de_DErnstruts.multipart.saveDir=\temprnstruts.multipart.maxSize=204800rnstruts.devMode=falsernstruts.action.extension=actionrnstruts.ui.templateDir = templaternstruts.configuration.files=struts-default.xml,struts.xml[/code]rn
在线求大神帮忙看看,共同进步!!!
rn path是传递过来的 QString类型的U盘DEV路径。想调用system(char *)函数mount U盘。rn先把QString类型转换为char *类型。rnrn orderstr= "sudo mount " + path + " /mnt/usb";rn QByteArray ba = orderstr.toLatin1();rn order = ba.data();rn if(dir.exists("/mnt/usb"))rn rn qDebug("/mnt/usb exists");rn //system("sudo mount /dev/sdd1 /mnt/usb");rn system(order);rn rn elsern rn qDebug("/mnt/usb donot exist");rn system("sudo mkdir /mnt/usb");rn //system("sudo mount /dev/sdd1 /mnt/usb");rn system(order);rn rnrn但是程序执行到这儿就会挂掉,如果用注释掉的那部分运行就会成功mount U盘。问题在哪??
使用Navicat查询,报错,求大神解决,在线急等
报错内容是Query Builder does not support this syntax near "SET":syntax errorrn具体代码是rn/*rnNavicat MySQL Data TransferrnrnSource Server : firstrnSource Server Version : 50614rnSource Host : localhost:3306rnSource Database : mealapp_dbrnrnTarget Server Type : MYSQLrnTarget Server Version : 50614rnFile Encoding : 65001rnrnDate: 2014-03-12 23:04:33rn*/rnrnSET FOREIGN_KEY_CHECKS=0;rnrn-- ----------------------------rn-- Table structure for adminsrn-- ----------------------------rnDROP TABLE IF EXISTS `admins`;rnCREATE TABLE `admins` (rn `id` int(11) NOT NULL AUTO_INCREMENT,rn `loginid` varchar(255) DEFAULT NULL,rn `passwords` varchar(255) DEFAULT NULL,rn PRIMARY KEY (`id`)rn) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;rnrn-- ----------------------------rn-- Records of adminsrn-- ----------------------------rnINSERT INTO `admins` VALUES ('1', 'admin', '111111');rnrn-- ----------------------------rn-- Table structure for dishesrn-- ----------------------------rnDROP TABLE IF EXISTS `dishes`;rnCREATE TABLE `dishes` (rn `id` int(11) NOT NULL AUTO_INCREMENT,rn `title` text COMMENT '标题',rn `typeid` int(11) DEFAULT NULL COMMENT '类型ID',rn `typename` text COMMENT '类型名称',rn `intro` text COMMENT '简介',rn `img_url` varchar(255) DEFAULT NULL COMMENT '封面图片名称',rn `price` double(11,1) DEFAULT NULL COMMENT '单价',rn `amount` double(11,1) DEFAULT NULL COMMENT '数量',rn PRIMARY KEY (`id`)rn) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8;rnrn-- ----------------------------rn-- Records of dishesrn-- ----------------------------rnINSERT INTO `dishes` VALUES ('1', '辣子鸡饭', '1', '每日推荐', '1.鸡腿肉切小丁,尽可能的小吧,用稍微多一些的食盐,生姜,花雕以及一些花椒粉一起码味大约2-3小时;;2.开油锅,宽油', '21_12544.jpg', '12.0', '100.0');rnINSERT INTO `dishes` VALUES ('2', '梅菜扣肉饭', '1', '每日推荐', '饭统网小北茶餐厅的美食菜品:梅菜扣肉饭,查看梅菜扣肉饭的图片,查看梅菜扣肉饭的评论,查看梅菜扣肉饭的做法,让网友能够吃到更好吃的梅菜扣肉饭', '1335333690.jpg', '12.0', '100.0');rnINSERT INTO `dishes` VALUES ('3', '水煮肉片饭(配一盒米饭)', '1', '每日推荐', '排骨饭是砂锅饭里的代表作,也是“先煮饭后放料”煮法的代表。这种煮法最适合排骨类红肉有荤有素的搭配,而且最好多烧出些汁儿。因为七八成熟的米饭米粒之间空隙大,汁能很快渗入进味。', '22_12756.jpg', '12.0', '100.0');rnINSERT INTO `dishes` VALUES ('4', '香汁排骨饭', '2', '热销类', '排骨饭是砂锅饭里的代表作,也是“先煮饭后放料”煮法的代表。这种煮法最适合排骨类红肉有荤有素的搭配,而且最好多烧出些汁儿。因为七八成熟的米饭米粒之间空隙大,汁能很快渗入进味。', '21_12544.jpg', '12.0', '100.0');rnINSERT INTO `dishes` VALUES ('5', '六味四宝饭', '2', '热销类', '没有什么特别的食材,半根胡萝卜、半根黄瓜、一个鸡蛋、一把虾皮和半碗剩米饭,简单翻炒一下,就成了一碗香喷喷的“四宝饭”,安慰一下俺这加班一族的胃', 'huida.jpg', '12.0', '100.0');rnrn-- ----------------------------rn-- Table structure for ordersrn-- ----------------------------rnDROP TABLE IF EXISTS `orders`;rnCREATE TABLE `orders` (rn `id` int(11) NOT NULL AUTO_INCREMENT,rn `userid` int(11) DEFAULT NULL,rn `username` text COMMENT '下单人名称',rn `seat` text COMMENT '座位',rn `status` int(11) DEFAULT NULL COMMENT '状态 0 进行中 1 已完成 -1 已取消',rn `dishesid` int(11) DEFAULT NULL COMMENT '菜式ID',rn `price` double(10,0) DEFAULT NULL COMMENT '单价',rn `amount` double(10,0) DEFAULT NULL,rn `createtime` varchar(15) DEFAULT NULL,rn PRIMARY KEY (`id`)rn) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8;rnrn-- ----------------------------rn-- Records of ordersrn-- ----------------------------rnINSERT INTO `orders` VALUES ('3', '1', '在路上', '17,30', '0', '3', '12', '2', '2014-03-12');rnINSERT INTO `orders` VALUES ('4', '1', '在路上', '4,2,3', '1', '4', '12', '2', '2014-03-12');rnrn-- ----------------------------rn-- Table structure for seatsrn-- ----------------------------rnDROP TABLE IF EXISTS `seats`;rnCREATE TABLE `seats` (rn `id` int(11) NOT NULL AUTO_INCREMENT,rn `no` int(11) DEFAULT NULL COMMENT '座位编号',rn `state` int(11) DEFAULT NULL COMMENT '状态 1为被占用 0为可用',rn PRIMARY KEY (`id`)rn) ENGINE=InnoDB AUTO_INCREMENT=37 DEFAULT CHARSET=utf8;rnrn-- ----------------------------rn-- Records of seatsrn-- ----------------------------rnINSERT INTO `seats` VALUES ('1', '1', '0');rnINSERT INTO `seats` VALUES ('2', '2', '1');rnINSERT INTO `seats` VALUES ('3', '3', '1');rnINSERT INTO `seats` VALUES ('4', '4', '1');rnINSERT INTO `seats` VALUES ('5', '5', '0');rnINSERT INTO `seats` VALUES ('6', '6', '0');rnINSERT INTO `seats` VALUES ('7', '7', '1');rnINSERT INTO `seats` VALUES ('8', '8', '0');rnINSERT INTO `seats` VALUES ('9', '9', '0');rnINSERT INTO `seats` VALUES ('10', '10', '0');rnINSERT INTO `seats` VALUES ('11', '11', '0');rnINSERT INTO `seats` VALUES ('12', '12', '0');rnINSERT INTO `seats` VALUES ('13', '13', '0');rnINSERT INTO `seats` VALUES ('14', '14', '0');rnINSERT INTO `seats` VALUES ('15', '15', '0');rnINSERT INTO `seats` VALUES ('16', '16', '0');rnINSERT INTO `seats` VALUES ('17', '17', '0');rnINSERT INTO `seats` VALUES ('18', '18', '0');rnINSERT INTO `seats` VALUES ('19', '19', '0');rnINSERT INTO `seats` VALUES ('20', '20', '0');rnINSERT INTO `seats` VALUES ('21', '21', '0');rnINSERT INTO `seats` VALUES ('22', '22', '1');rnINSERT INTO `seats` VALUES ('23', '23', '0');rnINSERT INTO `seats` VALUES ('24', '24', '0');rnINSERT INTO `seats` VALUES ('25', '25', '0');rnINSERT INTO `seats` VALUES ('26', '26', '0');rnINSERT INTO `seats` VALUES ('27', '27', '0');rnINSERT INTO `seats` VALUES ('28', '28', '1');rnINSERT INTO `seats` VALUES ('29', '29', '0');rnINSERT INTO `seats` VALUES ('30', '30', '1');rnINSERT INTO `seats` VALUES ('31', '31', '1');rnINSERT INTO `seats` VALUES ('32', '32', '0');rnINSERT INTO `seats` VALUES ('33', '33', '0');rnINSERT INTO `seats` VALUES ('34', '34', '0');rnINSERT INTO `seats` VALUES ('35', '35', '0');rnINSERT INTO `seats` VALUES ('36', '36', '0');rnrn-- ----------------------------rn-- Table structure for typesrn-- ----------------------------rnDROP TABLE IF EXISTS `types`;rnCREATE TABLE `types` (rn `id` int(11) NOT NULL AUTO_INCREMENT,rn `typename` text CHARACTER SET utf8,rn PRIMARY KEY (`id`)rn) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;rnrn-- ----------------------------rn-- Records of typesrn-- ----------------------------rnINSERT INTO `types` VALUES ('1', '每日推荐');rnINSERT INTO `types` VALUES ('2', '热销类');rnrn-- ----------------------------rn-- Table structure for usersrn-- ----------------------------rnDROP TABLE IF EXISTS `users`;rnCREATE TABLE `users` (rn `id` int(11) NOT NULL AUTO_INCREMENT,rn `loginid` varchar(255) DEFAULT NULL,rn `name` text,rn `passwords` varchar(255) DEFAULT NULL,rn PRIMARY KEY (`id`)rn) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8;rnrn-- ----------------------------rn-- Records of usersrn-- ----------------------------rnINSERT INTO `users` VALUES ('1', 'test00', '在路上', '111111');rnINSERT INTO `users` VALUES ('2', 'zhangsan', '张三', '111111');rnINSERT INTO `users` VALUES ('3', 'iuuuuhh', '肯定的', '111111');rnINSERT INTO `users` VALUES ('4', 'xiaomi', '小明', '111111');rn
急求~~速来大神帮忙看看!
r += '';rnr += '';rnrnrn需要将2个功能合并,当onclick="acceptItem(' + id + ',ITEMS.Invoice);" 成功执行在执行 onclick="invoiceConfirm(' + id + ',ITEMS.Invoice);"rnrn不要2个按钮来实现
求大神帮忙看看,急啊!!!
[img=https://img-bbs.csdn.net/upload/201405/20/1400580312_470063.png][/img][img=https://img-bbs.csdn.net/upload/201405/20/1400580327_906884.png][/img]rn有结果输出,但为什么是错的?(提示,该题为三分加密,明天我需要结果)
急急急!求大神帮忙看看
java.lang.ClassNotFoundException: net.sourceforge.jtds.jdbc.Driverrn at java.net.URLClassLoader$1.run(URLClassLoader.java:202)rn at java.security.AccessController.doPrivileged(Native Method)rn at java.net.URLClassLoader.findClass(URLClassLoader.java:190)rn at java.lang.ClassLoader.loadClass(ClassLoader.java:306)rn at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)rn at java.lang.ClassLoader.loadClass(ClassLoader.java:247)rn at java.lang.Class.forName0(Native Method)rn at java.lang.Class.forName(Class.java:171)rn at com.dao.ConnectionFactory.getConnection(ConnectionFactory.java:17)rn at com.dao.EquipmentDao.getAllEquipment(EquipmentDao.java:13)rn at Equipment.(Equipment.java:111)rn at Equipment$1.run(Equipment.java:43)rn at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)rn at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:672)rn at java.awt.EventQueue.access$400(EventQueue.java:81)rn at java.awt.EventQueue$2.run(EventQueue.java:633)rn at java.awt.EventQueue$2.run(EventQueue.java:631)rn at java.security.AccessController.doPrivileged(Native Method)rn at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)rn at java.awt.EventQueue.dispatchEvent(EventQueue.java:642)rn at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)rn at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)rn at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)rn at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)rn at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)rn at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)rnjava.lang.NullPointerExceptionrn at com.dao.EquipmentDao.getAllEquipment(EquipmentDao.java:36)rn at Equipment.(Equipment.java:111)rn at Equipment$1.run(Equipment.java:43)rn at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)rn at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:672)rn at java.awt.EventQueue.access$400(EventQueue.java:81)rn at java.awt.EventQueue$2.run(EventQueue.java:633)rn at java.awt.EventQueue$2.run(EventQueue.java:631)rn at java.security.AccessController.doPrivileged(Native Method)rn at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)rn at java.awt.EventQueue.dispatchEvent(EventQueue.java:642)rn at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)rn at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)rn at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)rn at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)rn at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)rn at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)rn
求sql,,,在线等,,,急!!
我有一表,记录有code 记录分别rn 001rn 045rn 0089rn 018rn我用如下语句rnSelect Max(Convert(Numeric,Code)) From Doctorrn有如下错误rn服务器: 消息 8114,级别 16,状态 5,行 1rn将数据类型 nvarchar 转换为 numeric 时出错。rnrn望哪位高手出手指点,在线等,急!
求SQL,急在线等
A表 记录如下rnfield numrna 0rnb 0rnrnB表rnfield numrna 4rna 6rnb 3rnb 2rn求一sql能update A表。使得A表记录为B表的和如下rna 10rnb 5rn谢谢
求SQL,急!!!!在线等
A表 记录如下rnfield numrna 0rnb 0rnrnB表rnfield numrna 4rna 6rnb 3rnb 2rn求一sql能update A表。使得A表记录为B表的和如下rna 10rnb 5rn谢谢rn
求大神帮忙看看。。。。。关于sql语句。。。。。
我先定义了 int型的a 赋值为quytitle的查询的一个结果rn然后定义了 int型的c 赋值为a+某个数rn然后同样使用quytitle执行下面的语句 rnquytitle->SQL->Add("update titles set ytd_sales="+c+" where title_id='"+title_id->Text+"'");rn编译器错误提示:rn[C++ Error] Unit1.cpp(122): E2085 Invalid pointer additionrn大家帮忙看看 怎么回事儿
sql建表错误,求大神帮忙看看
drop table if exists t_progress_display;nn/*==============================================================*/n/* Table: t_progress_display */n/*==============================================================*/ncreate table t_progress_displayn(n id national varchar(32) not null,n create_time datetime default NULL comment '创建时间',n create_user varchar(32) default NULL comment '创建人',n update_time datetime default NULL comment '修改时间',n update_user varchar(32) default NULL comment '修改人',n institutions varchar(32) comment '所属驻外机构',n prj_id national varchar(32) comment '工程编码',n prj_name varchar(512) comment '工程名称',n post_sub_name varchar(512) comment '分指',n part_name varchar(512) comment '标段',n Item_name national varchar(120) comment '分项名称',n finish_fact national int,n plan_prj national int,n unit national varchar(10) comment '工程量单位',n finish_month_f int comment '本月完成比例',n plan_prj_month int comment '本月计划',n total_start int comment '开工累计',n total_percent double comment '累计完成比例',n total_year int comment '本年累计',n plan_prj_year int comment '本年计划',n name national varchar(120) comment '名称',n plan_start_date date comment '计划开始日期',n plan_end_date date comment '计划结束时间',n start_date date comment '实际开始时间',n end_date date comment '实际结束时间',n state int default 0,n primary key (id)n);n![图片说明](https://img-ask.csdn.net/upload/201701/17/1484636558_705713.png)
C#+后台SQL,求大神帮忙看看!
private void button1_Click(object sender, EventArgs e)rn rn if (this.textBox1.Text.Trim() == "")rn rn MessageBox.Show("请输入用户名", "信息");rn rn if (this.textBox2.Text.Trim() == "")rn rn MessageBox.Show("请输入密码", "信息");rn rn elsern rn string sql = "server=.;uid=sa;pwd=;database=st";rn SqlConnection con = new SqlConnection(sql);rn con.Open();rn string str = "select * from userinfo where userid='" + textBox1.Text.Trim() + "' and passwd='" + textBox2.Text.Trim() + "'";rn SqlCommand cmd = new SqlCommand(str, con);rn SqlDataReader read = cmd.ExecuteReader();rn if (read.Read())rn rn form2 f=new form2();rn f.show();rn rn elsern rn MessageBox.Show("登录失败","信息");rn rnrn rnrnrn我想在SQL里面加入教师、学生、管理员,三个身份验证,就是在登录的时候,多一个身份验证,在C#里面,如果是教师登录、则调用出教师程序框体,学生登录、则调用出学生程序框体。请问大神们怎么修改?
SQL l连表查询 求大神帮忙看看
select y_num_e,m_num_e,deptname fromrn(rnselect sum(re_c.rdlc_num) y_num_e,de.deptname from REPORTVIEWER_count re_c left join hum_list h on re_c.user_id=h.human_sidrninner join department de on de.dept_id=h.dept_id rninner join s_hse_ticket s on s.reghumsid=h.human_sidrnwhere to_char(re_c.create_date,'yyyy')=to_char(sysdate,'yyyy') and s.erifystate='完成' group by re_c.rdlc_num,de.deptnamernunion allrnselect sum(re_c.rdlc_num) m_num_e,de.deptname from REPORTVIEWER_count re_c left join hum_list h on re_c.user_id=h.human_sidrninner join department de on de.dept_id=h.dept_id rninner join s_hse_ticket s on s.reghumsid=h.human_sidrnwhere to_char(re_c.create_date,'mm')=to_char(sysdate,'mm') and s.erifystate='完成' group by re_c.rdlc_num,de.deptnamern)rn如上 报错m_num_e标识符无效 单查询只有字段y_num_e,deptname 原来这样做没出现过这样的问题 rn请各位大神看看是不是哪写错了
菜鸟求大神帮忙,在线等!!!
A表中的一个字段和B表中的一个字段做比较,如果包含就将这条记录添加到临时表中,如何实现?
求各位大神帮忙 在线等
我更新 ASPX页面到服务器上 而 在这之前打开的页面 在服务器更新之后 就会报错。。。。。什么情况
在线等,求大神帮忙,ORA 00933
(select rna.id as id , b.name as name rnfrom aTable a ,bTable b rn where a.id = b.id ) as crn left join dTable d on rn c.id = d.id and d.id='123' rnrnrnrn为啥报错呀,不能这么写么 ,求大神帮忙 看了半天了 也没看出错
数据解析,在线等,求大神帮忙看下
n "action": 0,n "message": "成功",n "Pages": 0,n "Addition": n "TOTAL": "100MB",n "RIGHT": "1",n "USED": "31.07MB"n ,n "resultlist": [],n "datalist": [n n "COLLECT": "0",n "TSF_SIZE": "",n "TSF_PWD": "",n "TYPE": "0",n "URL": "",n "TSF_NAME": "Qweqwe",n "TSF_NO": "26",n "TSF_DATE": "2017/6/30 13:28:45",n "TSF_TYPE": "",n "SDID": "1"n ,n n "COLLECT": "0",n "TSF_SIZE": "",n "TSF_PWD": "123",n "TYPE": "0",n "URL": "",n "TSF_NAME": "113",n "TSF_NO": "20",n "TSF_DATE": "2017/6/26 9:02:13",n "TSF_TYPE": "",n "SDID": "1"n n ]nn我要的要上面Addition里面的数据该怎么解析。求大神帮忙看下。n
在线等 求各位大神帮忙
一个打开数据库的函数,可以指定数据库服务器地址,还有一个数据库名称,连接的用户和密码,可以知道打开成功或者失败,还有备份、恢复、关闭、创建数据库的函数,执行数据库查询(VB)
求大神帮忙!在线跪等!!
我的upd()方法没问题 我写过测试类测试了rnrn[img=https://img-bbs.csdn.net/upload/201409/03/1409733285_357202.png][/img][img=https://img-bbs.csdn.net/upload/201409/03/1409733291_6626.png][/img][img=https://img-bbs.csdn.net/upload/201409/03/1409733299_51626.png][/img]
在线等,求大神帮忙,哭死了。。。。
rn “请点击此处下载” rnrn 操作完成 rnrn rnrn rnrn这个连接个是第三方转换 ,我不想页面转换,想直接点击后弹出是否下载的对话框直接下载,我在电脑上提取了直接下载的连接,提换掉上面的http://url.cn/S0Qvj3后还是不行,提示下载的东西要比真实的大一倍,而且下载失败,大神谁教教我。。。感激不尽。。。。。
相关热词 c# 线程结束时执行 c# kb mb 图片 c# 替换第几位字符 c#项目决定成败 c# 与matlab c# xml缩进 c#传感器基础 c#操作wps c# md5使用方法 c# 引用父窗口的组件