Hello,

JBoss cache throws a StringIndexOutOfBounds exception when I attempt to access 
to the cache. See below the exception stack.

Method getObject in called on an instance of TreeCacheAopMBean inside qn EJB 
ession bean, which then trigger the calls of getObject on an instance of 
TreeCacheAop as expected.  

At the time the getObject() is called, noobject is inthe cache yet. But looking 
at the exception, it looks like it does not matter. Constructor of 
org.jboss.cache.aop.CachedType triggers the exception.

How can I debug this failure ? Anybody has an idea why JBoss cache fails like 
this ? Is this a bug ?

Fred


java.lang.StringIndexOutOfBoundsException: String index out of range: 4
  | at java.lang.String.substring(Unknown Source)
  | at org.jboss.cache.aop.CachedType.attributeName(CachedType.java:202)
  | at org.jboss.cache.aop.CachedType.getAttribute(CachedType.java:210)
  | at org.jboss.cache.aop.CachedType.analyze(CachedType.java:155)
  | at org.jboss.cache.aop.CachedType.<init>(CachedType.java:55)
  | at org.jboss.cache.aop.TreeCacheAop.getCachedType TreeCacheAop.java:590)
  | at org.jboss.cache.aop.TreeCacheAop.getObject(TreeCacheAop.java:446)
  | at org.jboss.cache.aop.TreeCacheAop.getObject(TreeCacheAop.java:421)
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  | at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  | at java.lang.reflect.Method.invoke(Unknown Source)
  | at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
  | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
  | at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
  | at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:242)
  | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
  | at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
  | at $Proxy1065.getObject(Unknown Source)
  | at com.rubis.util.cache.JBossCacheAccessor.getObject 
JBossCacheAccessor.java:54)

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3859880#3859880

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3859880


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
JBoss-Development mailing list
JBoss-Development@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to