It is helpful to consolidate the foundation. The Troubleshooting is shown in the following section. direct makes some troubleshooting notes to share with you one by one. If you are interested, you can refer to the occasional tears and finally complete Part of ExtJS.
(If the foundation is solid, it will be helpful. It will be reflected in troubleshooting)
Next we will take some troubleshooting notes on Ext. Direct:
Error 1:
The Code is as follows:
Severe: StandardWrapper. Throwable
Java. lang. ArrayIndexOutOfBoundsException: 1
At com. softwarementors. extjs. djn. api. RegisteredStandardMethod. isValidFormHandlingMethod (RegisteredStandardMethod. java: 53)
At com. softwarementors. extjs. djn. Examples. Examples. scanAndRegisterActionClass (examples. java: 206)
At com. softwarementors. extjs. djn. Examples. Examples. scanAndRegisterActionClass (examples. java: 105)
At com. softwarementors. extjs. djn. scheduler. Capacity. scanAndRegisterApiConfiguration (protocol. java: 82)
At com. softwarementors. extjs. djn. scheduler. Capacity. scanAndRegisterApiConfigurations (concurrency. java: 64)
At com. softwarementors. extjs. djn. servlet. DirectJNgineServlet. createDirectJNgineRouter (DirectJNgineServlet. java: 182)
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)
2013-3-28 17:43:52 org. apache. catalina. core. StandardContext loadOnStartup
Why?
Answer:
@ DirectFormPostMethod
This is not correct. The above error is generated and changed to @ DirectMethod.
Delete the output generated by @ DirectFormPostMethod at the same time:
The Code is as follows:
Import com. softwarementors. extjs. djn. config. annotations. DirectFormPostMethod;
Error 2:
The Code is as follows:
ERROR: com. softwarementors. extjs. djn. router. processor. standard. json. jsonRequestProcessor-"(Controlled) server error: 1 for Method 'formaction. submitdata' "(rid = 1000)
Java. lang. ArrayIndexOutOfBoundsException: 1
At com. softwarementors. extjs. djn. router. processor. standard. json. JsonRequestProcessor. checkJsonMethodParameterTypes (JsonRequestProcessor. java: 352)
At com. softwarementors. extjs. djn. router. processor. standard. json. JsonRequestProcessor. getInpidualRequestParameters (JsonRequestProcessor. java: 247)
At com. softwarementors. extjs. djn. router. processor. standard. json. JsonRequestProcessor. processInpidualRequest (JsonRequestProcessor. java: 404)
At com. softwarementors. extjs. djn. router. processor. standard. json. JsonRequestProcessor. processInpidualRequestsInThisThread (JsonRequestProcessor. java: 143)
At com. softwarementors. extjs. djn. router. processor. standard. json. JsonRequestProcessor. process (JsonRequestProcessor. java: 126)
At com. softwarementors. extjs. djn. router. RequestRouter. processJsonRequest (RequestRouter. java: 83)
At com. softwarementors. extjs. djn. servlet. DirectJNgineServlet. processRequest (DirectJNgineServlet. java: 617)
At com. softwarementors. extjs. djn. servlet. DirectJNgineServlet. doPost (DirectJNgineServlet. java: 580)
At javax. servlet. http. HttpServlet. service (HttpServlet. java: 647)
At javax. servlet. http. HttpServlet. service (HttpServlet. java: 728)
At org. apache. catalina. core. ApplicationFilterChain. internalDoFilter (ApplicationFilterChain. java: 305)
At org. apache. catalina. core. ApplicationFilterChain. doFilter (ApplicationFilterChain. java: 210)
At org. apache. catalina. core. StandardWrapperValve. invoke (StandardWrapperValve. java: 222)
At org. apache. catalina. core. StandardContextValve. invoke (StandardContextValve. java: 123)
At org. apache. catalina. authenticator. AuthenticatorBase. invoke (AuthenticatorBase. java: 472)
At org. apache. catalina. core. StandardHostValve. invoke (StandardHostValve. java: 171)
At org. apache. catalina. valves. ErrorReportValve. invoke (ErrorReportValve. java: 99)
At org. apache. catalina. valves. AccessLogValve. invoke (AccessLogValve. java: 936)
At org. apache. catalina. core. StandardEngineValve. invoke (StandardEngineValve. java: 118)
At org. apache. catalina. connector. CoyoteAdapter. service (CoyoteAdapter. java: 407)
At org. apache. coyote. http11.20.acthttp11processor. process (AbstractHttp11Processor. java: 1004)
At org. apache. coyote. AbstractProtocol $ AbstractConnectionHandler. process (AbstractProtocol. java: 589)
At org.apache.tomcat.util.net. JIoEndpoint $ SocketProcessor. run (JIoEndpoint. java: 312)
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)
An error occurs at the control layer, that is, the logic is incorrect. The input parameters in my function are not consistent with the submitted parameters,
Don't worry, it's not about xml configuration, it's about input parameters. So the focus is on parameters, that is, syntax.
My error cause:
Java requires two input parameters:
The Code is as follows:
Public Info submitData (String name, String password)
In ExtJS, the actual input parameter is:
The Code is as follows:
Var params = username. getValue () + Password. getValue ();
FormAction. submitData (params, function (result, e ){}
Just rewrite it:
The Code is as follows:
FormAction. submitData (username. getValue (), Password. getValue (), function (result, e ){}
Error 3:
The Code is as follows:
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
Severe: 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)
At com. softwarementors. extjs. djn. servlet. DirectJNgineServlet. getGsonBuilderConfiguratorClass (DirectJNgineServlet. java: 353)
... 16 more
2013-3-28 17:59:39 org. apache. catalina. core. StandardContext loadOnStartup
Severe: Servlet/DirectJS threw load () exception
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)
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)
The reason is that this class does not exist.:
Com. softwarementors. extjs. djn. test. config. GsonBuilderConfiguratorForTesting
This error is found in web. xml and deleted:
The Code is as follows:
RegistryConfiguratorClass
Com. softwarementors. extjs. djn. test. servlet. config. RegistryConfiguratorForTesting
GsonBuilderConfiguratorClass
Com. softwarementors. extjs. djn. test. config. GsonBuilderConfiguratorForTesting
This is probably the case with me.
(MLGBD, I was banned from posting a blog post in Baidu. This is the fourth article. I no longer write a blog on Baidu, R Baidu)
Let's give me the sample URL:
Http://www.kuaipan.cn/file/id_22384145481082698.htm