'org.springframework.beans.MutablePropertyValues.get(Ljava/lang/ String;)Ljava/lang/Object;'. See E

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

今天搭建spirng mvc 4.2.9 maven项目的时候发现一件奇怪的事情。像以前配置静态文件的时候。

竟然报以下错误,不是在启动的时候,而是在XML文件里。

'org.springframework.beans.MutablePropertyValues.get(Ljava/lang/  String;)Ljava/lang/Object;'. See E,

我搜遍了百度,在中国技术论坛里都是缺少JAR包,然后并不是这个原因。

在国外网站stackoverflow,给出了正确答案。

就是静态文件要优先加载。

展开阅读全文

关于:javax.mail.Transport.connect(Ljava/lang/String;Ljava/lang/String;)V错误

11-18

[code=Java]import java.io.File;rnimport java.io.UnsupportedEncodingException;rnrnimport javax.mail.MessagingException;rnrnimport lostsky.tool.mail.MailSender;rnrnrnpublic class SmtpSample rnrn /**rn * SMTP主机地址,邮箱用户名,邮箱密码请自行指定。公共邮箱目前已知sohu.com支持SMTP发送功能,可以尝试。rn * 作者:lostskyrn * 交流论坛:www.591pic.comrn */rn public static void main(String[] args) rn /*SMTP主机地址 如 smtp.sohu.com*/rn String smtpHost="smtp.sohu.com";rn /*邮箱用户名 此处用户名不可用 请自行指定*/rn String username="test@sohu.com";rn /*邮箱密码 此处密码不可用 请自行指定*/rn String password="testpwd";rn /*邮件标题*/rn String subject="dfMail发送测试";rn /*邮件发送者地址 此处地址不可用 请自行指定*/rn String senders="test@sohu.com";rn /*邮件接受者地址, 多个地址用英文半角逗号隔开*/rn String recipients="lostsky_11@yahoo.com.cn, 296821855@qq.com";rn /*邮件正文类型 两种: html格式和纯文本格式*/rn int contentType=MailSender.CONTENT_TYPE_HTML;rn /*邮件正文*/rn String content="欢迎使用dfMail-2.0,交流论坛";rn /*邮件正文编码 默认为null 一般不用修改*/rn String contentEncoding=null;rn /*附件文件名编码 默认为null 一般不用修改*/rn String fileNameEncoding=null;rn //附件rn File[] attaches=new File[2];rn attaches[0]=new File("d:\\dfMail附件测试.jpg");rn attaches[1]=new File("d:\\dfMail附件测试.doc");rn try rn MailSender sender=new MailSender(smtpHost, username, password, rn senders, recipients, subject, rn content, contentEncoding, contentType, rn attaches, fileNameEncoding);rn /*发送*/rn sender.send();rn catch (MessagingException e) rn e.printStackTrace();rn catch (UnsupportedEncodingException e) rn e.printStackTrace();rn rnrn rnrnrn[/code]rnrn在网上找了一段代码。在Myeclipse6.5 中新建java项目。然后导入 dfMail-2.0.jar, lib\mail.jar, lib\activation.jar, lib\log4j-1.2.15.jar 包,设置邮件地址后可以发送邮件。rnrnrn但是在新建 web项目后重新的和java项目中一样做配置,则报异常:rn[code=Java]Exception in thread "main" java.lang.NoSuchMethodError: javax.mail.Transport.connect(Ljava/lang/String;Ljava/lang/String;)Vrn at lostsky.tool.mail.MailSender.send(MailSender.java:86)rn at com.mx.util.SmtpEmail.send(SmtpEmail.java:53)rn [/code]rnrn53行是: sender.send();rn 论坛

org.hyperic.sigar.Sigar.getNetInterfaceList()[Ljava/lang/String;

11-06

严重: Servlet.service() for servlet action threw exceptionrnjava.lang.UnsatisfiedLinkError: org.hyperic.sigar.Sigar.getNetInterfaceList()[Ljava/lang/String;rn at org.hyperic.sigar.Sigar.getNetInterfaceList(Native Method)rn at com.sanss.wyTsycl.dao.oracle.SystemInforDAO.getNet(SystemInforDAO.java:60)rn at com.sanss.wyTsycl.struts.action.SystemInforAction.getNetBytes(SystemInforAction.java:96)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.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:270)rn at org.apache.struts.actions.DispatchAction.execute(DispatchAction.java:187)rn at org.springframework.web.struts.DelegatingActionProxy.execute(DelegatingActionProxy.java:110)rn at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)rn at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)rn at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)rn at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:723)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at com.sanss.wyTsycl.util.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:169)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)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:127)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)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:861)rn at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:606)rn at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)rn at java.lang.Thread.run(Thread.java:662) 论坛

javax.servlet.jsp.tagext.TagAttributeInfo.(Ljava/lang/String;ZLjava/lang/S

06-21

ERROR [Engine] StandardWrapperValve[action]: Servlet.service() for servlet action threw exceptionrnjava.lang.NoSuchMethodError: javax.servlet.jsp.tagext.TagAttributeInfo.(Ljava/lang/String;ZLjava/lang/String;ZZ)Vrn at org.apache.jasper.compiler.TagLibraryInfoImpl.createAttribute(TagLibraryInfoImpl.java:568)rn at org.apache.jasper.compiler.TagLibraryInfoImpl.createTagInfo(TagLibraryInfoImpl.java:401)rn at org.apache.jasper.compiler.TagLibraryInfoImpl.parseTLD(TagLibraryInfoImpl.java:248)rn at org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.java:162)rn at org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:418)rn at org.apache.jasper.compiler.Parser.parseDirective(Parser.java:483)rn at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1539)rn at org.apache.jasper.compiler.Parser.parse(Parser.java:126)rn at org.apache.jasper.compiler.ParserController.doParse(ParserController.java:220)rn at org.apache.jasper.compiler.ParserController.parse(ParserController.java:101)rn at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:203)rn at org.apache.jasper.compiler.Compiler.compile(Compiler.java:470)rn at org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)rn at org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)rn at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)rn at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)rn at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)rn at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)rn at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:703)rn at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)rn at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)rn at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:312)rn at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)rn at org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcessor.java:274)rn at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455)rn at org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:320)rn at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)rn at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)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 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)rn at com.filter.LogFilter.doFilter(LogFilter.java:209)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)rn at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)rn at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)rn at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)rn at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)rn at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:72)rn at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)rn at org.jboss.web.tomcat.security.JBossSecurityMgrRealm.invoke(JBossSecurityMgrRealm.java:275)rn at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)rn at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)rn at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)rn at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)rn at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)rn at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)rn at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)rn at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)rn at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)rn at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)rn at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)rn at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)rn at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)rn at java.lang.Thread.run(Thread.java:595)rn这个是一个JSP页面加入STRUTS标签出现的错误,<%@ taglib uri="/tags/struts-logic" prefix="logic" %> 论坛

(Ljava/util/List)Ljava/lang/String 具体如下

03-24

com/triman/utils/WebUtils.getCrieate(Ljava/util/List;)Ljava/lang/String;rn[12-3-24 16:29:18:484 CST] 0000002d SystemErr R at com.triman.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:218)rn[12-3-24 16:29:18:484 CST] 0000002d SystemErr R at com.triman.struts.actions.DispatchAction.execute(DispatchAction.java:93)rn[12-3-24 16:29:18:484 CST] 0000002d SystemErr R at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:413)rn[12-3-24 16:29:18:484 CST] 0000002d SystemErr R at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:225)rn[12-3-24 16:29:18:484 CST] 0000002d SystemErr R at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1858)rn[12-3-24 16:29:18:484 CST] 0000002d SystemErr R at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:459)rn[12-3-24 16:29:18:484 CST] 0000002d SystemErr R at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)rn[12-3-24 16:29:18:484 CST] 0000002d SystemErr R at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)rn[12-3-24 16:29:18:484 CST] 0000002d SystemErr R at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:972)rn[12-3-24 16:29:18:484 CST] 0000002d SystemErr R at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:907)rn[12-3-24 16:29:18:484 CST] 0000002d SystemErr R at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:145)rn[12-3-24 16:29:18:484 CST] 0000002d SystemErr R at org.displaytag.filter.ResponseOverrideFilter.doFilter(ResponseOverrideFilter.java:125)rn[12-3-24 16:29:18:484 CST] 0000002d SystemErr R at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:190)rn[12-3-24 16:29:18:484 CST] 0000002d SystemErr R at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:130)rn[12-3-24 16:29:18:484 CST] 0000002d SystemErr R at com.triman.struts.BaseFilter.doFilter(BaseFilter.java:56)rn[12-3-24 16:29:18:484 CST] 0000002d SystemErr R at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:190)rn[12-3-24 16:29:18:484 CST] 0000002d SystemErr R at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:130)rn[12-3-24 16:29:18:484 CST] 0000002d SystemErr R at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:87)rn[12-3-24 16:29:18:484 CST] 0000002d SystemErr R at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:696)rn[12-3-24 16:29:18:484 CST] 0000002d SystemErr R at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:641)rn[12-3-24 16:29:18:484 CST] 0000002d SystemErr R at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:475)rn[12-3-24 16:29:18:484 CST] 0000002d SystemErr R at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:463)rn[12-3-24 16:29:18:484 CST] 0000002d SystemErr R at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:92)rn[12-3-24 16:29:18:484 CST] 0000002d SystemErr R at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:744)rn[12-3-24 16:29:18:484 CST] 0000002d SystemErr R at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1425)rn[12-3-24 16:29:18:484 CST] 0000002d SystemErr R at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:92)rn[12-3-24 16:29:18:484 CST] 0000002d SystemErr R at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:465)rn[12-3-24 16:29:18:484 CST] 0000002d SystemErr R at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:394)rn[12-3-24 16:29:18:484 CST] 0000002d SystemErr R at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:102)rn[12-3-24 16:29:18:484 CST] 0000002d SystemErr R at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:152)rn[12-3-24 16:29:18:484 CST] 0000002d SystemErr R at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:213)rn[12-3-24 16:29:18:484 CST] 0000002d SystemErr R at com.ibm.io.async.AbstractAsyncFuture.fireCompletionActions(AbstractAsyncFuture.java:195)rn[12-3-24 16:29:18:484 CST] 0000002d SystemErr R at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)rn[12-3-24 16:29:18:484 CST] 0000002d SystemErr R at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:193)rn[12-3-24 16:29:18:484 CST] 0000002d SystemErr R at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:725)rn[12-3-24 16:29:18:484 CST] 0000002d SystemErr R at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:847)rn[12-3-24 16:29:18:484 CST] 0000002d SystemErr R at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1498)rn 论坛

异常javax.servlet.ServletException: org.jdom.Element: method getValue()Ljava/lang

07-05

这个问题 有遇到的怎么解决的 给指点一下rn另外在本地Tomcat上运行没有问题 ,发布到服务器Websphere上之后就出现这个问题rnjdom是最新的rn[11-7-5 14:02:49:216 CST] 1d0a4cd7 SystemOut O javax.servlet.ServletException: org.jdom.Element: method getValue()Ljava/lang/String; not foundrn[11-7-5 14:02:49:216 CST] 1d0a4cd7 SystemOut O at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java(Compiled Code))rn[11-7-5 14:02:49:216 CST] 1d0a4cd7 SystemOut O at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java(Compiled Code))rn[11-7-5 14:02:49:217 CST] 1d0a4cd7 SystemOut O at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java(Compiled Code))rn[11-7-5 14:02:49:217 CST] 1d0a4cd7 SystemOut O at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java(Inlined Compiled Code))rn[11-7-5 14:02:49:217 CST] 1d0a4cd7 SystemOut O at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java(Compiled Code))rn[11-7-5 14:02:49:217 CST] 1d0a4cd7 SystemOut O at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java(Compiled Code))rn[11-7-5 14:02:49:217 CST] 1d0a4cd7 SystemOut O at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java(Inlined Compiled Code))rn[11-7-5 14:02:49:217 CST] 1d0a4cd7 SystemOut O at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java(Compiled Code))rn[11-7-5 14:02:49:217 CST] 1d0a4cd7 SystemOut O at com.itown.util.ajax.AAFilter.doFilter(AAFilter.java:30)rn[11-7-5 14:02:49:217 CST] 1d0a4cd7 SystemOut O at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java(Compiled Code))rn[11-7-5 14:02:49:217 CST] 1d0a4cd7 SystemOut O at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java(Compiled Code))rn[11-7-5 14:02:49:217 CST] 1d0a4cd7 SystemOut O at com.itown.util.filter.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:37)rn[11-7-5 14:02:49:217 CST] 1d0a4cd7 SystemOut O at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java(Compiled Code))rn[11-7-5 14:02:49:217 CST] 1d0a4cd7 SystemOut O at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java(Compiled Code))rn[11-7-5 14:02:49:217 CST] 1d0a4cd7 SystemOut O at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java(Compiled Code))rn[11-7-5 14:02:49:217 CST] 1d0a4cd7 SystemOut O at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java(Compiled Code))rn[11-7-5 14:02:49:217 CST] 1d0a4cd7 SystemOut O at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java(Compiled Code))rn[11-7-5 14:02:49:217 CST] 1d0a4cd7 SystemOut O at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java(Compiled Code))rn[11-7-5 14:02:49:218 CST] 1d0a4cd7 SystemOut O at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java(Compiled Code))rn[11-7-5 14:02:49:218 CST] 1d0a4cd7 SystemOut O at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java(Compiled Code))rn[11-7-5 14:02:49:218 CST] 1d0a4cd7 SystemOut O at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java(Compiled Code))rn[11-7-5 14:02:49:218 CST] 1d0a4cd7 SystemOut O at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java(Compiled Code))rn[11-7-5 14:02:49:218 CST] 1d0a4cd7 SystemOut O at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java(Compiled Code))rn[11-7-5 14:02:49:218 CST] 1d0a4cd7 SystemOut O at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java(Compiled Code))rn[11-7-5 14:02:49:218 CST] 1d0a4cd7 SystemOut O at com.ibm.ws.http.HttpConnection.run(HttpConnection.java(Compiled Code))rn[11-7-5 14:02:49:218 CST] 1d0a4cd7 SystemOut O at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java(Compiled Code)) 论坛

struts加了过滤器以后出现的错误,帮忙给看看:javax.servlet.ServletResponse.setCharacterEncoding(Ljava/lang/String;)V

06-05

错误代码:rnError 500--Internal Server Error rnjava.lang.NoSuchMethodError: javax.servlet.ServletResponse.setCharacterEncoding(Ljava/lang/String;)V rnat com.ltd.blog.filter.CharEncoding.doFilter(CharEncoding.java:21) rnat weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27) rnat weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6316) rnat weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317) rnat weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118) rnat weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3622) rnat weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2569) rnat weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197) rnat weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170) rn对应的过滤器代码:[code=Java][/code]public class CharEncoding extends HttpServlet implements Filter rn private FilterConfig filterConfig;rn //Handle the passed-in FilterConfigrn public void init(FilterConfig filterConfig) throws ServletException rn this.filterConfig = filterConfig;rn rnrn //Process the request/response pairrn public void doFilter(ServletRequest request, ServletResponse response,rn FilterChain filterChain) rn try rn request.setCharacterEncoding("GBK");rn filterChain.doFilter(request, response);rn [color=#FF0000]response.setCharacterEncoding("GBK");//这是第二十一行[/color]rn catch (Exception ex) rn ex.printStackTrace();rn rn rnrn //Clean up resourcesrn public void destroy() rn rnrn我用weblogic部署的,当把第二十一行给取消了的时候就没错了,当把第二十一行加进去的时候就出现了上面的错。。。估计是编码转换的时候出了问题,但是我不知道原因在哪儿,高手指点下。。。 论坛

求教为什么会调用这个方法报这个错ConfigurableBeanFactory.getSingletonMutex()Ljava/lang/Object;

07-03

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sysUserServiceImpl' defined in file [E:\neweclipse\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\vegetablegarden\WEB-INF\classes\com\vegetablegarden\modules\system\service\impl\SysUserServiceImpl.class]: BeanPostProcessor before instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor#0': Initialization of bean failed; nested exception is java.lang.NoSuchMethodError: org.springframework.beans.factory.config.ConfigurableBeanFactory.getSingletonMutex()Ljava/lang/Object;rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:472)rn at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303)rn at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)rn at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299)rn at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)rn at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:755)rn at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:762)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:480)rn at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:444)rn at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:326)rn at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:107)rn at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4853)rn at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5314)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)rn at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1408)rn at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1398)rn at java.util.concurrent.FutureTask.run(FutureTask.java:266)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)rn at java.lang.Thread.run(Thread.java:748)rnCaused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor#0': Initialization of bean failed; nested exception is java.lang.NoSuchMethodError: org.springframework.beans.factory.config.ConfigurableBeanFactory.getSingletonMutex()Ljava/lang/Object;rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:547)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)rn at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303)rn at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)rn at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299)rn at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)rn at org.springframework.aop.framework.autoproxy.BeanFactoryAdvisorRetrievalHelper.findAdvisorBeans(BeanFactoryAdvisorRetrievalHelper.java:92)rn at org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.findCandidateAdvisors(AbstractAdvisorAutoProxyCreator.java:101)rn at org.springframework.aop.aspectj.annotation.AnnotationAwareAspectJAutoProxyCreator.findCandidateAdvisors(AnnotationAwareAspectJAutoProxyCreator.java:88)rn at org.springframework.aop.aspectj.autoproxy.AspectJAwareAdvisorAutoProxyCreator.shouldSkip(AspectJAwareAdvisorAutoProxyCreator.java:103)rn at org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator.postProcessBeforeInstantiation(AbstractAutoProxyCreator.java:248)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInstantiation(AbstractAutowireCapableBeanFactory.java:982)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.resolveBeforeInstantiation(AbstractAutowireCapableBeanFactory.java:953)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:466)rn ... 19 morernCaused by: java.lang.NoSuchMethodError: org.springframework.beans.factory.config.ConfigurableBeanFactory.getSingletonMutex()Ljava/lang/Object;rn at org.springframework.aop.support.AbstractBeanFactoryPointcutAdvisor.resetAdviceMonitor(AbstractBeanFactoryPointcutAdvisor.java:81)rn at org.springframework.aop.support.AbstractBeanFactoryPointcutAdvisor.setBeanFactory(AbstractBeanFactoryPointcutAdvisor.java:76)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeAwareMethods(AbstractAutowireCapableBeanFactory.java:1591)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1559)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539)rn ... 32 more 论坛

java.lang.NoSuchMethodError: org.springframework.util.ClassUtils.isPresent(Ljava

10-11

由于断电,MyEclipse关机了一下,重新启动打开后,就启动不起来tomcat了,报错如下:rnrnrn日志有点长,粘不上来,传送门:rnjava.lang.NoSuchMethodError: org.springframework.util.ClassUtils.isPresent(Ljava/lang/String;Ljava/l - 龙遥的世界 - 博客频道 - CSDN.NETrnhttp://blog.csdn.net/robert_lizhiqiang/article/details/39997621rn————————————————————————————————————————————————————rn一、问题好像是:rnrn18:05:05.908 [main] DEBUG org.springframework.util.ClassUtils - Class [groovy.lang.GroovyObject] or one of its dependencies is not present: java.lang.ClassNotFoundException: groovy.lang.GroovyObjectrn18:05:05.909 [main] DEBUG org.springframework.util.ClassUtils - Class [org.jruby.IRuby] or one of its dependencies is not present: java.lang.ClassNotFoundException: org.jruby.IRubyrn18:05:05.909 [main] DEBUG org.springframework.util.ClassUtils - Class [bsh.Interpreter] or one of its dependencies is not present: java.lang.ClassNotFoundException: bsh.Interpreterrnrn但是我加了包之后,不起作用,仍然报这个错。rnrn二、NoSuchMethodError - Spring Forumrnhttp://forum.spring.io/forum/spring-projects/aop/36123-nosuchmethoderrorrnrn把classpath仔细看了一遍,仍然不起作用rnrn三、java - BeanCreationException: Error creating bean with name '/' defined in ServletContext - Stack Overflowrnhttp://stackoverflow.com/questions/17884562/beancreationexception-error-creating-bean-with-name-defined-in-servletconternrn检查了一下包冲突的问题,但同事的机器上没有问题。rnrnrn不知道哪里出错了!请求支援! 论坛

java.lang.NoSuchMethodError: org.quartz.JobExecutionException.(Ljava/l

11-07

[color=#000000]Spring定时任务,配置文件是这样写的:rnrn rn rn rn rn systemMercenaryPhysicalHalfPointTimern rn rn rn rn rn rn rn 0 30 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23 * * ?rn rn rn rn rn rn rn rn 0 0 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23 * * ?rn rn rnrnrn rn rn rn rn rn rn [/color]rnrnrn我要的是半点,整点的时候,调用systemMercenaryPhysicalHalfPointTime方法rn现在的问题是,我在本地这样是没问题的,但是发布到外网上,半点整点的时候执行那个方法就报错,错误信息如下:rnrn[color=#FF0000][color=#FF0000]2012-11-07 11:30:00,002ate [DefaultQuartzScheduler_Worker-1hread] org.quartz.core.JobRunShell.run(JobRunShell.java:211)evel org.quartz.core.JobRunShell.run(JobRunShell.java:211)ogger35 - Job DEFAULT.merPhysicalMan threw an unhandled Exception: sg211%exfull rnjava.lang.NoSuchMethodError: org.quartz.JobExecutionException.(Ljava/lang/String;Ljava/lang/Exception;Z)Vrn at org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean$MethodInvokingJob.executeInternal(MethodInvokingJobDetailFactoryBean.java:221)rn at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:79)rn at org.quartz.core.JobRunShell.run(JobRunShell.java:202)rn at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:525)rn2012-11-07 11:30:00,003ate [DefaultQuartzScheduler_Worker-1hread] org.quartz.core.ErrorLogger.schedulerError(QuartzScheduler.java:2185)evel org.quartz.core.ErrorLogger.schedulerError(QuartzScheduler.java:2185)ogger35 - Job (DEFAULT.merPhysicalMan threw an exception.sg2185%exfull rnorg.quartz.SchedulerException: Job threw an unhandled exception. [See nested exception: java.lang.NoSuchMethodError: org.quartz.JobExecutionException.(Ljava/lang/String;Ljava/lang/Exception;Z)V]rn at org.quartz.core.JobRunShell.run(JobRunShell.java:213)rn at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:525)rnCaused by: java.lang.NoSuchMethodError: org.quartz.JobExecutionException.(Ljava/lang/String;Ljava/lang/Exception;Z)Vrn at org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean$MethodInvokingJob.executeInternal(MethodInvokingJobDetailFactoryBean.java:221)rn at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:79)rn at org.quartz.core.JobRunShell.run(JobRunShell.java:202)rn ... 1 more[/color][/color]rnrnrnrn 论坛

com.microsoft.util.UtilDebug.setPrintWriter(Ljava/io/PrintWriter;)V

03-02

HTTP 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: javax.servlet.ServletException: java.lang.NoSuchMethodError: com.microsoft.util.UtilDebug.setPrintWriter(Ljava/io/PrintWriter;)Vrn org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:522)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:398)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:717)rnrnrnroot cause rnrnjavax.servlet.ServletException: java.lang.NoSuchMethodError: com.microsoft.util.UtilDebug.setPrintWriter(Ljava/io/PrintWriter;)Vrn org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:862)rn org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:791)rn org.apache.jsp.index_jsp._jspService(index_jsp.java:1077)rn org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:717)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:717)rnrnrnroot cause rnrnjava.lang.NoSuchMethodError: com.microsoft.util.UtilDebug.setPrintWriter(Ljava/io/PrintWriter;)Vrn com.microsoft.jdbc.base.BaseDriver.setupDebugging(Unknown Source)rn com.microsoft.jdbc.base.BaseDriver.connect(Unknown Source)rn java.sql.DriverManager.getConnection(DriverManager.java:582)rn java.sql.DriverManager.getConnection(DriverManager.java:185)rn jdbc.jdbc.newConnection(jdbc.java:61)rn jdbc.jdbc.getConnection(jdbc.java:45)rn GetCount.GetCount.(GetCount.java:10)rn org.apache.jsp.index_jsp._jspService(index_jsp.java:129)rn org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:717)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:717)rnrnrnnote The full stack trace of the root cause is available in the Apache Tomcat/6.0.20 logs.rnrnrn--------------------------------------------------------------------------------rnrnApache Tomcat/6.0.20rnrn此问题出现一天了,有那位可以帮忙解决!!!!!rn谢谢rn 论坛

java.lang.UnsatisfiedLinkError: ctest.test.decrypt([BLjava/lang/String;)([B

05-12

错误:rn[color=#FF0000]Exception in thread "main" java.lang.UnsatisfiedLinkError: ctest.test.decrypt([BLjava/lang/String;)[B[/color]rn at ctest.test.decrypt(Native Method)rn at ctest.test.main(test.java:34)rnrn 我在做jni的demo的时候出现以上错误rnrnrnjava代码:rnpackage ctest;rnrnimport java.io.File;rnrnrn/**rn * Title: rn *rn * Description: rn *rn * Copyright: Copyright (c) 2013rn *rn * Company: rn *rn * @author not attributablern * @version 1.0rn */rnpublic class test rn rnrn public test() rn rn rn static rnrn// System.loadLibrary("encrypt");rnrn System.load("D:"+File.separator+"java开发"+File.separator+"wordspace"+File.separator+"ccWorkTools"+File.separator+"classes"+File.separator+"test.dll");rnrn rnrn public static void main(String args[]) rn rn decrypt(new byte[10],"string");rn rn rnrn public static native byte[] decrypt(byte[] encryptData,String password);rnrnrnrnrnc++代码rn#include rn#include "test.h"rn#include "jni.h"rn#include rnrnJNIEXPORT jbyteArray JNICALL Java_ctest_test_decryptrn (JNIEnv *env, jclass s, jbyteArray byteArr, jstring str)rn byte pData[] = 0x01, 0x01, 0x02, 0xe4, 0x71, 0x2b, 0x5f, 0x30;rn jbyte *by = (jbyte*)pData;rn int nOutSize = sizeof(pData);rn jbyteArray jarray = env->NewByteArray(nOutSize);rn env->SetByteArrayRegion(jarray, 0, nOutSize, by);rnrnrn const char *nativeString = env->GetStringUTFChars(str, 0);rn printf("%s", nativeString);rnrn return jarray;rn rnrnBOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)rnrnrn switch (fdwReason)rn rn case DLL_PROCESS_ATTACH:rn // attach to processrn // return FALSE to fail DLL loadrn break;rnrn case DLL_PROCESS_DETACH:rn // detach from processrn break;rnrn case DLL_THREAD_ATTACH:rn // attach to threadrn break;rnrn case DLL_THREAD_DETACH:rn // detach from threadrn break;rn rn return TRUE; // succesfulrnrnrntest.h代码rn/* DO NOT EDIT THIS FILE - it is machine generated */rn#include rn/* Header for class ctest_test */rnrn#ifndef _Included_ctest_testrn#define _Included_ctest_testrn#ifdef __cplusplusrnextern "C" rn#endifrn/*rn * Class: ctest_testrn * Method: decryptrn[color=#FF0000] * Signature: ([BLjava/lang/String;)[Brn */rnJNIEXPORT jbyteArray JNICALL Java_ctest_test_decrypt[/color]rn (JNIEnv *, jclass, jbyteArray, jstring);rnrn#ifdef __cplusplusrnrn#endifrn#endifrnrnrn恳求前辈们指点一下,不知道是在哪里出错了 网上搜索了很多 还是没能解决 。 估计跟java方法签名有关,因为在网上查说是这样子,但是我核对了,找不出原因rnrn我用的ide是code block 编译器是gnu gcc rn在线等 论坛

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