>  기사  >  웹 프론트엔드  >  ExtJS_extjs에서 Ext.Direct의 로드 및 제출 프로세스 문제 해결 요약

ExtJS_extjs에서 Ext.Direct의 로드 및 제출 프로세스 문제 해결 요약

WBOY
WBOY원래의
2016-05-16 17:38:331252검색

저는 눈물을 흘리며 마침내 ExtJS의 일부를 완성했습니다.
(문제 해결 중에 반영될 탄탄한 기초를 갖는 것이 도움이 될 것입니다.)
Ext.Direct에 대한 몇 가지 문제 해결 참고 사항을 작성해 보겠습니다.

오류 1 :

코드 복사 코드는 다음과 같습니다.

심각: StandardWrapper.Throwable
java. lang .ArrayIndexOutOfBoundsException: 1
com.softwarementors.extjs.djn.api.RegisteredStandardMethod.isValidFormHandlingMethod(RegisteredStandardMethod.java:53)
com.softwarementors.extjs.djn.scanner.Scanner.scanAndRegisterActionClass(Scan ner. java: 206)
com.softwarementors.extjs.djn.scanner.Scanner.scanAndRegisterApiConfiguration(Scanner.java:105)
com.softwarementors.extjs.djn.scanner.Scanner.scanAndRegisterApiConfiguration(Scanner.java: 82)
com.softwarementors.extjs.djn.scanner.Scanner.scanAndRegisterApiConfigurations(Scanner.java:64)
com.softwarementors.extjs.djn.servlet.DirectJNgineServlet.createDirectJNgineRouter(DirectJNgineServlet.java:182)
com.softwarementors.extjs.djn.servlet.DirectJNgineServlet.init(DirectJNgineServlet.java:155)
org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1280)
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1193)
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1088)
org.apache.catalina. core.StandardContext.loadOnStartup(StandardContext.java:5033)
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5317)
org.apache.catalina.util.LifecycleBase.start( LifecycleBase.java:150)
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase. java: 1549)
java.util.concurrent.FutureTask$Sync.innerRun(알 수 없는 소스)
java.util.concurrent.FutureTask.run(알 수 없는 소스)
java.util.concurrent. ThreadPoolExecutor$ Worker.runTask(알 수 없는 소스)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(알 수 없는 소스)
at java.lang.Thread.run(알 수 없는 소스)
2013-3- 28 17 :43:52 org.apache.catalina.core.StandardContext loadOnStartup

이게 왜요?
답변:
@DirectFormPostMethod
잘못되었습니다. 위의 오류가 발생하므로 다음으로 변경하세요. @DirectMethod
동시에 삭제하면 @DirectFormPostMethod에서 생성된 출력:
코드 복사 코드는 다음과 같습니다.

import com.softwarementors.extjs.djn.config.annotations. DirectFormPostMethod

오류 2:
코드 복사 코드는 다음과 같습니다. 다음:

오류: com.softwarementors.extjs.djn.router.processor.standard.json.JsonRequestProcessor - "(제어되는) 서버 오류: 'FormAction.submitData' 메서드에 대한 1"(rid=1000)
java.lang.ArrayIndexOutOfBoundsException: 1
com.softwarementors.extjs.djn.router.processor.standard.json.JsonRequestProcessor.checkJsonMethodParameterTypes(JsonRequestProcessor.java:352)
com.softwarementors.extjs.djn.router .processor.standard.json.JsonRequestProcessor.getIndividualRequestParameters(JsonRequestProcessor.java:247)
com.softwarementors.extjs.djn.router.processor.standard.json.JsonRequestProcessor.processIndividualRequest(JsonRequestProcessor.java:404)
com.softwarementors.extjs.djn.router.processor.standard.json.JsonRequestProcessor.processIndividualRequestsInThisThread(JsonRequestProcessor.java:143)
com.softwarementors.extjs.djn.router.processor.standard.json.JsonRequestProcessor.process에서 (JsonRequestProcessor.java:126)
com.softwarementors.extjs.djn.router.RequestRouter.processJsonRequest(RequestRouter.java:83)
com.softwarementors.extjs.djn.servlet.DirectJNgineServlet.processRequest(DirectJNgineServlet .java:617)
com.softwarementors.extjs.djn.servlet.DirectJNgineServlet.doPost(DirectJNgineServlet.java:580)
javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
org.apache.catalina .core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
org.apache.catalina.core.StandardContextValve.invoke (StandardContextValve.java:123)
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171 )
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936)
org .apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
org.apache.coyote.http11 .AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004)
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor에서 .run(JIoEndpoint.java:312)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(알 수 없는 소스)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(알 수 없는 소스)
at java.lang.Thread.run(알 수 없는 소스)

控主层流,也就是逻辑上不对,我的函数里平要求传入的参数,그리고提交的参数不对,
放心,不是xml配置问题,是传入的参数问题。所以误因
: Java의 유용한 기능为两个:


复aze代码
代码如下: 공개 정보 submitData(문자열 이름,문자열 비밀번호)
而我在ExtJS 中实际传入的参数是一个:



复主代码
代码如下: var params= username.getValue() Password.getValue(); FormAction.submitData(params,function(result,e){}

改写一下就行了:



复代码
代码如下: FormAction.submitData(username.getValue(),Password.getValue(),function(result,e){}

错误三


复主代码
代码如下:

FATAL: com.softwarementors.extjs.djn.servlet.DirectJNgineServlet - "Unable to find class 'com.softwarementors.extjs.djn.test.config.GsonBuilderConfiguratorForTesting'" ()
com.softwarementors.extjs.djn.servlet.ServletConfigurationException: Unable to find class 'com.softwarementors.extjs.djn.test.config.GsonBuilderConfiguratorForTesting'
at com.softwarementors.extjs.djn.servlet.ServletConfigurationException.forClassNotFound(ServletConfigurationException.java:63)
at com.softwarementors.extjs.djn.servlet.DirectJNgineServlet.getGsonBuilderConfiguratorClass(DirectJNgineServlet.java:362)
at com.softwarementors.extjs.djn.servlet.DirectJNgineServlet.createGlobalConfiguration(DirectJNgineServlet.java:324)
at com.softwarementors.extjs.djn.servlet.DirectJNgineServlet.createDirectJNgineRouter(DirectJNgineServlet.java:164)
at com.softwarementors.extjs.djn.servlet.DirectJNgineServlet.init(DirectJNgineServlet.java:155)
at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1280)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1193)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1088)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5033)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5317)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: com.softwarementors.extjs.djn.test.config.GsonBuilderConfiguratorForTesting
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1713)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1558)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at com.softwarementors.extjs.djn.servlet.DirectJNgineServlet.getGsonBuilderConfiguratorClass(DirectJNgineServlet.java:353)
... 16 more
2013-3-28 17:59:39 org.apache.catalina.core.ApplicationContext log
严重: StandardWrapper.Throwable
com.softwarementors.extjs.djn.servlet.ServletConfigurationException: Unable to find class 'com.softwarementors.extjs.djn.test.config.GsonBuilderConfiguratorForTesting'
at com.softwarementors.extjs.djn.servlet.ServletConfigurationException.forClassNotFound(ServletConfigurationException.java:63)
at com.softwarementors.extjs.djn.servlet.DirectJNgineServlet.getGsonBuilderConfiguratorClass(DirectJNgineServlet.java:362)
at com.softwarementors.extjs.djn.servlet.DirectJNgineServlet.createGlobalConfiguration(DirectJNgineServlet.java:324)
at com.softwarementors.extjs.djn.servlet.DirectJNgineServlet.createDirectJNgineRouter(DirectJNgineServlet.java:164)
at com.softwarementors.extjs.djn.servlet.DirectJNgineServlet.init(DirectJNgineServlet.java:155)
at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1280)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1193)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1088)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5033)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5317)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: com.softwarementors.extjs.djn.test.config.GsonBuilderConfiguratorForTesting
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1713)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1558)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
com.softwarementors.extjs.djn.servlet.DirectJNgineServlet.getGsonBuilderConfiguratorClass(DirectJNgineServlet.java:353)
... 16개 더
2013-3-28 17:59:39 org.apache.catalina.core. StandardContext loadOnStartup
중: Servlet /DirectJS가
java.lang.ClassNotFoundException: com.softwarementors.extjs.djn.test.config.GsonBuilderConfiguratorForTesting
org.apache.catalina.loader.WebappClassLoader에서 load() 예외를 발생시켰습니다. .loadClass(WebappClassLoader.java:1713)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1558)
at java.lang.ClassLoader.loadClassInternal(알 수 없는 소스)
at java.lang.Class.forName0(네이티브 메소드)
at java.lang.Class.forName(알 수 없는 소스)
at com.softwarementors.extjs.djn.servlet.DirectJNgineServlet.getGsonBuilderConfiguratorClass(DirectJNgineServlet.java:353)
com.softwarementors.extjs.djn.servlet.DirectJNgineServlet.createGlobalConfiguration(DirectJNgineServlet.java:324)
com.softwarementors.extjs.djn.servlet.DirectJNgineServlet.createDirectJNgineRouter(DirectJNgineServlet.java:164)
com.softwarementors.extjs.djn.servlet.DirectJNgineServlet.init(DirectJNgineServlet.java:155)
org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1280)
org. apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1193)
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1088)
org.apache.catalina.core. StandardContext.loadOnStartup(StandardContext.java:5033)
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5317)
org.apache.catalina.util.LifecycleBase.start(LifecycleBase. java:150)
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java: 1549)
java.util.concurrent.FutureTask$Sync.innerRun(알 수 없는 소스)
java.util.concurrent.FutureTask.run(알 수 없는 소스)
java.util.concurrent.ThreadPoolExecutor$ Worker.runTask(알 수 없는 소스)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(알 수 없는 소스)
at java.lang.Thread.run(알 수 없는 소스)

原因是里面没有这个类 : com.softwarementors.extjs.djn.test.config.gsonbuilderconfiguratorfortesting


registryConfiguratorClass
com.softwarementors.extjs.djn.test.servlet.config.RegistryConfiguratorForTesting

gsonBuilderConfiguratorClass
com.softwarementors.extjs.djn.test.config.GsonBuilderConfiguratorForTesting



大概就这三个,我的情况就是这样。
(MLGBD,我发博文被封杀了,已经是第四篇了,我再也不再百도(写)博客了,R百島)
给我的样例URL吧:

http://www.kuaipan.cn/file/id_22384145481082698.htm

성명:
본 글의 내용은 네티즌들의 자발적인 기여로 작성되었으며, 저작권은 원저작자에게 있습니다. 본 사이트는 이에 상응하는 법적 책임을 지지 않습니다. 표절이나 침해가 의심되는 콘텐츠를 발견한 경우 admin@php.cn으로 문의하세요.