******** Cost total time 2[http-bio-80-exec-220] WARN org.nutz.aop.InterceptorChain - !! Calling Method more than once! Method --> public java.lang.Object com.cnrl.framework.dao.BasicDao.findByCondition(java.lang.Class,org.nutz.dao.Condition)
[http-bio-80-exec-242] WARN org.nutz.mvc.impl.processor.FailProcessor - Error@/admin/saveNews :
java.lang.IllegalArgumentException
at java.sql.Date.valueOf(Date.java:140)
at com.cnrl.framework.utils.Tools.str2date(Tools.java:296)
at com.cnrl.framework.utils.Tools.getTime(Tools.java:251)
at com.cnrl.framework.utils.Tools.getLongTime(Tools.java:231)
at com.cnrl.framework.utils.Tools.str2datetime(Tools.java:307)
at com.cnrl.bjac.controller.InforAction.saveNews(InforAction.java:125)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.nutz.mvc.impl.processor.MethodInvokeProcessor.process(MethodInvokeProcessor.java:22)
at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
at org.nutz.mvc.impl.processor.AdaptorProcessor.process(AdaptorProcessor.java:33)
at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
at org.nutz.mvc.impl.processor.ActionFiltersProcessor.process(ActionFiltersProcessor.java:40)
at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
at org.nutz.mvc.impl.processor.ModuleProcessor.process(ModuleProcessor.java:99)
at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
at org.nutz.mvc.impl.processor.EncodingProcessor.process(EncodingProcessor.java:27)
at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
at org.nutz.mvc.impl.processor.UpdateRequestAttributesProcessor.process(UpdateRequestAttributesProcessor.java:15)
at org.nutz.mvc.impl.NutActionChain.doChain(NutActionChain.java:40)
at org.nutz.mvc.impl.ActionInvoker.invoke(ActionInvoker.java:64)
at org.nutz.mvc.ActionHandler.handle(ActionHandler.java:31)
at org.nutz.mvc.NutFilter.doFilter(NutFilter.java:94)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1040)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)
10 回复
五月 30, 2016 10:06:34 上午 org.apache.catalina.core.StandardContext resourcesStart
严重: Error starting static Resources
java.lang.IllegalArgumentException: Invalid or unreadable WAR file : error in opening zip file
at org.apache.naming.resources.WARDirContext.setDocBase(WARDirContext.java:136)
at org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:5089)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5269)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:632)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1083)
at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1880)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
五月 30, 2016 10:06:34 上午 org.apache.catalina.core.ContainerBase addChildInternal
严重: ContainerBase.addChild: start:
org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/zxbm]]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:632)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1083)
at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1880)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.apache.catalina.LifecycleException: Error in resourceStart()
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5270)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
... 10 more
五月 30, 2016 10:06:34 上午 org.apache.catalina.startup.HostConfig deployWAR
严重: Error deploying web application archive /opt/tomcat7/webapps/zxbm.war
java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/zxbm]]
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:904)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:632)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1083)
at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1880)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
五月 30, 2016 10:06:34 上午 org.apache.catalina.startup.HostConfig deployWAR
信息: Deployment of web application archive /opt/tomcat7/webapps/zxbm.war has finished in 19 ms
五月 30, 2016 10:06:44 上午 org.apache.catalina.startup.HostConfig undeploy
信息: Undeploying context [/zxbm]
五月 30, 2016 10:06:44 上午 org.apache.catalina.startup.HostConfig deployWAR
信息: Deploying web application archive /opt/tomcat7/webapps/zxbm.war
五月 30, 2016 10:06:46 上午 org.apache.catalina.startup.HostConfig deployWAR
信息: Deployment of web application archive /opt/tomcat7/webapps/zxbm.war has finished in 1,924 ms
五月 30, 2016 10:25:04 上午 com.alibaba.druid.pool.DruidDataSource info
信息: {dataSource-1} inited
五月 30, 2016 10:25:04 上午 com.alibaba.druid.pool.DruidDataSource info
信息: {dataSource-2} inited
信息: Server startup in 10167 ms
[http-bio-80-exec-6] INFO org.nutz.ioc.aop.impl.DefaultMirrorFactory - Use as AOP ClassLoader parent : WebappClassLoader
context:
delegate: false
repositories:
/WEB-INF/classes/
----------> Parent Classloader:
org.apache.catalina.loader.StandardClassLoader@12287422
[http-bio-80-exec-6] INFO org.nutz.filepool.NutFilePool - Init file-pool by: /root/.nutz/tmp/dao/ [200000]
[http-bio-80-exec-6] INFO org.nutz.filepool.NutFilePool - file-pool.cursor: 0
[http-bio-80-exec-6] INFO org.nutz.dao.jdbc.Jdbcs - Get Connection from DataSource for JdbcExpert
[http-bio-80-exec-6] INFO org.nutz.dao.jdbc.Jdbcs - Get Connection from DataSource for JdbcExpert
这是你自己的代码转日期失败了啊
java.lang.IllegalArgumentException
at java.sql.Date.valueOf(Date.java:140)
at com.cnrl.framework.utils.Tools.str2date(Tools.java:296)
at com.cnrl.framework.utils.Tools.getTime(Tools.java:251)
at com.cnrl.framework.utils.Tools.getLongTime(Tools.java:231)
at com.cnrl.framework.utils.Tools.str2datetime(Tools.java:307)
at com.cnrl.bjac.controller.InforAction.saveNews(InforAction.java:125)
@wendal 为什么这个错误 整个项目都访问不了啦
@wendal 转日期失败了是另外一个项目的错误。一共有3个nutz的项目。
@At("/getzc")
@Ok("raw:application/javascript")
@Fail("http:500")
public Object getConnect(@Param("currentPage") int currentPage, @Param("..") Zhongcaiyuan data, String callback)
throws UnsupportedEncodingException {
Cnd cnd = Cnd.where("zy", "=", "1");
if (data.getGongzuozhuangkuang() != null && !data.getGongzuozhuangkuang().isEmpty()) {
cnd.and("gongzuozhuangkuang", "=", URLDecoder.decode(data.getGongzuozhuangkuang(), "UTF-8"));
}
if (data.getGuoji() != null && !data.getGuoji().isEmpty()) {
cnd.and("guoji", "=", URLDecoder.decode(data.getGuoji(), "UTF-8"));
}
if (data.getJuzhudi() != null && !data.getJuzhudi().isEmpty()) {
cnd.and("juzhudi", "=", URLDecoder.decode(data.getJuzhudi(), "UTF-8"));
}
if (data.getWaiyu() != null && !data.getWaiyu().isEmpty()) {
cnd.and("waiyu", "like", "%" + URLDecoder.decode(data.getWaiyu(), "UTF-8") + "%");
}
if (data.getXingming() != null && !data.getXingming().isEmpty()) {
cnd.and("xingming", "like", "%" + URLDecoder.decode(data.getXingming(), "UTF-8") + "%");
}
if (data.getZhicheng() != null && !data.getZhicheng().isEmpty()) {
cnd.and("zhicheng", "=", URLDecoder.decode(data.getZhicheng(), "UTF-8"));
}
if (data.getZhiyefenlei() != null && !data.getZhiyefenlei().isEmpty()) {
cnd.and("zhiyefenlei", "=", URLDecoder.decode(data.getZhiyefenlei(), "UTF-8"));
}
if (data.getZhuanye() != null && !data.getZhuanye().isEmpty()) {
cnd.and("zhuanye", "like", "%" + URLDecoder.decode(data.getZhuanye(), "UTF-8") + "%");
}
Pager pager = dao.createPager(currentPage, 20);
List<Zhongcaiyuan> list = daoA.query(Zhongcaiyuan.class, cnd, pager);
return callback + "(" + Json.toJson(list, JsonFormat.compact()) + ")";
}
添加回复
请先登陆