偶淚滴嘎嘎,終於,終於完成了一部分ExtJS。
(基礎夯實一點,會有好處的,排錯的時候就體現出來了)
下面就Ext.Direct做一些排錯筆記:
錯誤一 :
嚴重: StandardWapper. .ArrayIndexOutOfBoundsException: 1
at com.softwarementors.extjs.djn.api.RegisteredStandardMethod.isValidFormHandlingMethod(RegisteredStandardMethod.java:53)
at com.software.ext.ext.extergem.ext 206)
at com.softwarementors.extjs.djn.scanner.Scanner.scanAndRegisterActionClass(Scanner.java:105)
at com.softwarementors.extjs.djn.scanner.Scanner.scanAndAndisterApijavaration(RegisterApijava:82)
at com.softwarementors.extjs.djn.scanner.Scanner.scanAndRegisterApiConfigurations(Scanner.java:64)
at com.softwarementors.extjs.djn.servlet.DirectJNgineServlet。 >at com.softwarementors.extjs.djn.servlet.DirectJNgineServlet.init(DirectJNgineServlet.java:155)
at org.apache.catalina.core.StandardWrapper.initServlet(StandardWapperrapper.java:1280) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1088)
at org.apache.catalina.core.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.Thut.current. Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
2013-288 :43:52 org.apache.catalina.core.StandardContext loadOnStartup
這是為什麼呢?
答案:
@DirectFormPostMethod
這個不對,這個產生了上面的錯誤,改成: @DirectMethod
同時刪掉,由@DirectFormPostMethod產生的輸出:
import com.softwarementors.extjs.djn.config.annotations.DirectFormPostMethod; >
錯誤二
: