1

我的网络服务有问题。我使用 Tomcat 和 Axis。我使用 MySQL 连接到我的数据库,当我使用服务请求 SELECT 时出现此错误:

Jul 26, 2013 10:45:28 PM org.apache.axis.InternalException <init>
SEVERE: Exception:
java.lang.Exception: Couldn't find a matching Java operation for WSDD operation "rating" (6 args)
at org.apache.axis.InternalException.<init>(InternalException.java:71)
at org.apache.axis.description.JavaServiceDesc.loadServiceDescByIntrospection(JavaServiceDesc.java:902)
at org.apache.axis.providers.java.JavaProvider.initServiceDesc(JavaProvider.java:477)
  at org.apache.axis.handlers.soap.SOAPService.getInitializedServiceDesc(SOAPService.java:286)
  at org.apache.axis.deployment.wsdd.WSDDService.makeNewInstance(WSDDService.java:500)
  at org.apache.axis.deployment.wsdd.WSDDDeployableItem.getNewInstance(WSDDDeployableItem.java:274)
  at org.apache.axis.deployment.wsdd.WSDDDeployableItem.getInstance(WSDDDeployableItem.java:260)
  at org.apache.axis.deployment.wsdd.WSDDDeployment.getService(WSDDDeployment.java:427)
  at org.apache.axis.configuration.FileProvider.getService(FileProvider.java:231)
  at org.apache.axis.AxisEngine.getService(AxisEngine.java:311)
  at org.apache.axis.MessageContext.setTargetService(MessageContext.java:756)
  at org.apache.axis.handlers.http.URLMapper.invoke(URLMapper.java:50)
  at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
  at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
  at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
  at org.apache.axis.server.AxisServer.invoke(AxisServer.java:239)
  at org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:699)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:643)
  at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
  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:103)
  at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
  at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
  at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:861)
  at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:606)
  at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
  at java.lang.Thread.run(Unknown Source)

我该如何解决?

4

1 回答 1

0

也许是因为 init 方法名中的大写?

尝试这个:

public void rating(int idUser, int idRestaurante,String Nome, int Rating, java.sql.Date Data, java.sql.Date Hora ) throws Exception {
...
}
于 2015-02-03T22:03:06.467 回答