java. Lang. IndexOutofBoundsException: Index: 0,Size: 0

java. Lang. IndexOutofBoundsException: Index: 0,Size: 0
at java .util. ArrayL ist . RangeCheck (ArrayL ist. java :547)
t java .util. ArrayL ist . get (ArrayL ist . java :322)
at Com . cshg. basicframe . comon . business . impl. ComonMgrBusiImpl . getAcOlBeanF romCs (ComonMgrBusiImpl. java:105)
at com . cshg . smzxt . smxxgl. business . impl. Smxxg1 Impl. getAac001 (SmxxgLImp1. java:665)
at sun . reflect . GeneratedMethodAccesso r9601. invoke(Unknown Source)
t sun. reflect . DelegatingMethodAccesso rImpl. invoke(Delegat ingMethodAccessorImpl. java :25)
at java. lang . reflect .Method . invoke(Method. java:597)
at org . springf ramewo rk. aop . support . AopUtils . invokeJoinpointUsingReflection(AopUtils . java :317)
at org . springf ramewo rk. aop . framewo rk . JdkDynamicAopProxy . invoke(JdkDynam icAopProxy . java :201)
at SProxy1096. getAac001 (Unknown Source)
t com . cshg . smZxt . smxxgl. controller . SmxxglCont roller . getAac001 (SmxxglController . java:250)
at sun . reflect . GeneratedMethodAccesso r9600. invoke (Unknown Source)
at sun. reflect .Delegat ingMethodAccesso rImpl . invoke(Delegat ingMethodAccesso rImpl. java:25)
at java. lang . reflect .Method . invoke(Method. java:597)
at org . springf ramework. web .method . support . InvocableHandLerMethod . doInvoke( InvocableHandlerMethod. java:221)
at org . springf ramewo rk . web .method . suppo rt . InvocableHandLerMethod . invokeFo rRequest (Invocab LeHandLerMethod. java : 137)
at org .springframework . web . servlet .mvc .method . annotation . Servlet InvocableHandlerMethod, invokeAndHandle(ServletInvocableHandlerMethod . java:111)
at org . sp ringf ramewo rk . web . servlet .mvc .method . annotation . Reques tMapp ingHandLerAdapter . invokeHandlerMethod (Reques tMappingHandLerAdapter . java :806)
at org . springf ramewo rk . web . servlet .mvc .method . annotat ion . Reques tMappingHandlerAdapter . handLeInternal (Reques tMappingHandLerAdapter . java:729)
at org . springf ramewo rk . web . servlet . mvc .method . Abst rac tHandlerMethodAdapter .handle(Abstrac tHandlerMethodAdapter. java:85)
at org .sp ringframewo rk . web . servlet . DispatcherServlet . doDispatch(DispatcherServlet : java:959)
at org. springf ramework . web . servlet . DispatcherServlet . doService(DispatcherServlet. java:893)
at org . springf ramewo rk . web . servlet . Framewo rkServlet . p rocessRequest (F ramewo rkServlet . java : 970)
at org . springf ramewo rk . web . servlet . Framewo rkServlet . doPost (F ramewo rkServlet. java 873)
at javax. servlet . http .HttpServLet . service(HttpServlet . java 751)
at org. springf ramework . web . servlet. F rameworkServlet. service(F ramewo rkServlet. java:846)
at javax. servlet . http .HttpServlet . service(HttpServlet. java 845)
at weblogic . servlet . internal . StubSecurityHelperServletServiceAction . run (StubSecurityHelper . java :242)
at webLogic . servlet . internal .StubSecurityHelper SServletServiceAction . run (StubSecurityHelper . java 216)
at weblogic . servlet. internal. StubSecurityHelper . invokeServlet (StubSecurityHelper. java:132)
at weblogic . servlet. internal. ServletStubImpl . execute(ServletStubImpl. java :338)
at weblogic . servlet . internal. TailFilter . doFilter(TailFilter. java:25)
at web Logic . servlet . internal . FilterChainImpl . doFilter(FilterChainImpl java:75)
at com . cshg . common . util . SessionTimeOutFilter . doFilter(SessionTimeOutFilter . java : 123)

java.lang.IndexOutOfBoundsException: Index: 0, Size: 0。
这个错误的意思就是没有获取到这个位置的元素。
原因:就是要取的值(或者说对象)为空值
我这里就是因为没有对对象进行空值判断出现了这个错误。

你可能感兴趣的:(java)