Support Migration Notice: To update migrated JIRA cases click here to open a new case use www.vmware.com/go/sr | vFabric Hyperic 5.7.0 is Now Available

Hyperic HQ

IndexOutOfBoundsException during email template rendering

Details

  • Case Links:
    none
  • Regression:
    No
  • Tags:

Description

An exception is thrown sometimes during rendering of email templates

2011-11-10 07:46:57,490 WARN  [pool-3-thread-3] [org.hyperic.hq.bizapp.server.action.email.EmailAction@156] Unable to render template
org.hyperic.hq.common.SystemException: java.lang.IndexOutOfBoundsException: toIndex = 8
        at org.hyperic.hq.hqu.PluginWrapper.invokeMethod(PluginWrapper.java:196)
        at org.hyperic.hq.hqu.RenditServerImpl.renderTemplate(RenditServerImpl.java:247)
        at sun.reflect.GeneratedMethodAccessor1476.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:196)
        at $Proxy80.renderTemplate(Unknown Source)
        at org.hyperic.hq.bizapp.server.action.email.EmailAction.renderTemplate(EmailAction.java:150)
        at org.hyperic.hq.bizapp.server.action.email.EmailAction.createText(EmailAction.java:189)
        at org.hyperic.hq.bizapp.server.action.email.EmailAction.execute(EmailAction.java:233)
        at org.hyperic.hq.events.server.session.Action.executeAction(Action.java:270)
        at sun.reflect.GeneratedMethodAccessor1485.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.invoke(CGLIBLazyInitializer.java:157)
        at org.hyperic.hq.events.server.session.Action$$EnhancerByCGLIB$$1a479a29.executeAction(<generated>)
        at org.hyperic.hq.escalation.server.session.EscalationRuntimeImpl.executeState(EscalationRuntimeImpl.java:629)
        at sun.reflect.GeneratedMethodAccessor1484.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
        at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
        at $Proxy67.executeState(Unknown Source)
        at org.hyperic.hq.escalation.server.session.EscalationRunner.run(EscalationRunner.java:57)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
        at java.lang.Thread.run(Thread.java:662)

Issue Links

Activity

Hide
Wes Schlichter added a comment -

Issue happens when a metric set as Indicator isn't being collected (or has no datapoints). Regression caused by HHQ-5189

Fix is changing the final int max = Math.min(mids.size(), i+BATCH_SIZE); to final int max = Math.min(ids.size(), i+BATCH_SIZE);

Show
Wes Schlichter added a comment - Issue happens when a metric set as Indicator isn't being collected (or has no datapoints). Regression caused by HHQ-5189 Fix is changing the final int max = Math.min(mids.size(), i+BATCH_SIZE); to final int max = Math.min(ids.size(), i+BATCH_SIZE);
Hide
Wes Schlichter added a comment -

Modified code as per above comments

Show
Wes Schlichter added a comment - Modified code as per above comments
Hide
tzirla rozental (c) added a comment -

works fine in Hyperic Version 4.6.5.BUILD-SNAPSHOT-2012-01-01

Show
tzirla rozental (c) added a comment - works fine in Hyperic Version 4.6.5.BUILD-SNAPSHOT-2012-01-01

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved:
    Last comment:
    2 years, 15 weeks, 4 days ago