我正在開發iOS應用程序。 我在使用iOS中的MKNetwrokingKit庫向Java服務器發送「POST」請求時遇到問題。MKNetwroking問題,而iOS中的「POST」請求
服務器端的響應,我得到的是 -
2013-02-06 15:15:19,527 WARN [org.apache.tomcat.util.http.Parameters] (http-0.0.0.0-8443-3) Parameters: Invalid chunk ignored.
2013-02-06 15:15:19,527 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/XtrWS].[Authentication]] (http-0.0.0.0-8443-3) Servlet.service() for servlet Authentication threw exception
java.lang.IllegalArgumentException: No enum const class xtremum.health.us.api.generic.StaticVariable$ClientType.Praxify_151/1.0 CFNetwork/609 Darwin/12.2.0
at java.lang.Enum.valueOf(Enum.java:196)
at xtremum.health.us.api.generic.StaticVariable$ClientType.valueOf(StaticVariable.java:1)
at xtremum.health.us.webservice.Authentication.doPost(Authentication.java:169)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
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.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:662)
2013-02-06 15:15:39,061 WARN [org.apache.tomcat.util.http.Parameters] (http-0.0.0.0-8443-3) Parameters: Invalid chunk ignored.
2013-02-06 15:15:39,062 INFO [STDOUT] (http-0.0.0.0-8443-3) method name : login
2013-02-06 15:15:39,062 INFO [STDOUT] (http-0.0.0.0-8443-3) I am in default case
2013-02-06 15:15:39,062 INFO [xtremum.health.us.api.generic.StaticVariable] (http-0.0.0.0-8443-3) msg to client : 1405
2013-02-06 15:15:39,062 DEBUG [xtremum.health.us.api.generic.StaticVariable] (http-0.0.0.0-8443-3) msg : {"msgToClient":1405}
2013-02-06 15:16:41,437 WARN [org.apache.tomcat.util.http.Parameters] (http-0.0.0.0-8443-3) Parameters: Invalid chunk ignored.
客戶端的響應是NSUrlErrorDomain 500
感謝