Groovy project throwing ArrayIndexOutOfBounds Exception during deployment

186 views
Skip to first unread message

Venkatesh

unread,
Jun 12, 2011, 3:24:21 AM6/12/11
to ipf-user
Hi,
Recently, we have mixed groovy classes into a java project that
outputs a web archive (.war). We have also converted the project into
a groovy project to get Groovy-Eclipse plugin to compile our groovy
classes. But since then, we are facing ArruIndexOutOfBoundsException
while deploying the .war in JBoss. It seems more coming from the
reflection part of it where it is trying to get the Extensions
working. It looks like, IPF fails to return the method arguments
correctly resulting in ArrayIndexOutOfBoundsException. IPF extensions,
I have been trying are FlowModelExtensions Any idea guys?


Caused by: java.lang.ArrayIndexOutOfBoundsException: 0
at
org.codehaus.groovy.runtime.dgmimpl.arrays.ObjectArrayGetAtMetaMethod.invoke(ObjectArrayGetAtMetaMethod.java:
38)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:234)
at
org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.invoke(PojoMetaMethodSite.java:
47)
at
org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:
52)
at
org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:
40)
at
org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:
117)
at
org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:
125)
at
org.openehealth.ipf.commons.core.extend.ExtensionMethodActivator.generateExtensionCode(ExtensionMethodActivator.groovy:
69)


Thanks & Regards
Venkatesh Laguduva

Dmytro Rud

unread,
Jun 12, 2011, 7:13:01 AM6/12/11
to ipf-...@googlegroups.com
Hi,

are you sure that the exception is caused by IPF's FlowModelExtensions and not by some project-specific DSL extensions? How is the DefaultModelExtender bean defined in your Spring context?

Regards
Dmytro

Venkatesh

unread,
Jun 12, 2011, 10:07:42 AM6/12/11
to ipf-user
Hi Dmytro,
IPF extensions are only the extensions we are loading from the
applicationContext. In fact, entire setup are from IPF examples. Btw,
here is the model extender bean defined in applicationContext.

<bean id="routeModelExtender"

class="org.openehealth.ipf.platform.camel.core.extend.DefaultModelExtender">
<property name="routeModelExtensions">
<list>
<ref bean="coreModelExtension" />
<ref bean="sampleModelExtension" />
<ref bean="flowModelExtension"/>
</list>
</property>
</bean>

Thanks & Regards
Venkatesh Laguduva

Dmytro Rud

unread,
Jun 12, 2011, 10:17:38 AM6/12/11
to ipf-...@googlegroups.com
What contents has sampleModelExtension?

Regadrs
Dmytro

Venkatesh

unread,
Jun 12, 2011, 10:31:36 AM6/12/11
to ipf-user
Mistake is from my side..did not make the route to depend on
'routeModelExtender' - your question about the Model Extender made to
look at the applicationContext again and it is working now..Btw, I
feel, the error (exception) is little off the context.

Thanks & Regards
Venkatesh Laguduva
Reply all
Reply to author
Forward
0 new messages