1. 程式人生 > >jacob java.lang.NoSuchMethodError: com.jacob.com.Dispatch.call(Lcom/jacob/com/Dispatch;Ljava/lang/St

jacob java.lang.NoSuchMethodError: com.jacob.com.Dispatch.call(Lcom/jacob/com/Dispatch;Ljava/lang/St

2013-3-23 9:47:08 org.apache.catalina.core.StandardWrapperValve invoke
嚴重: Servlet.service() for servlet CommonServlet threw exception
java.lang.NoSuchMethodError: com.jacob.com.Dispatch.call(Lcom/jacob/com/Dispatch;Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Lcom/jacob/com/Variant;
 at com.haitaiinc.htemr.print.WordDoc.open(WordDoc.java:54)
 at com.haitaiinc.htemr.print.PrintAction.toWord(PrintAction.java:9914)
 at com.haitaiinc.htemr.print.PrintAction.printLxpg(PrintAction.java:7479)
 at com.haitaiinc.htemr.print.PrintAction.execGet(PrintAction.java:133)
 at com.haitaiinc.common.CommonServlet.doGet(CommonServlet.java:94)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
 at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
 at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
 at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
 at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
 at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
 at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
 at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
 at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
 at java.lang.Thread.run(Unknown Source)
2013-3-23 9:49:01 org.apache.catalina.core.StandardContext reload
資訊: Reloading this Context has started

原因之一:jacob類庫衝突。

原來已經有一個版本的jacob(Java2Word封裝),後來又裝了個新的,所以導致了衝突;

解決辦法:在特定目錄下刪除jacob.jar。(可能有好幾處需要刪除)