incubator-s4-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From 戴清灏 <rogerda...@gmail.com>
Subject Add a simple PE
Date Wed, 18 Jan 2012 14:41:22 GMT
I think I have this problem fixed.
On stackoverflow, I asked the same question.

http://stackoverflow.com/questions/8904157/array-index-out-of-bounds-when-s4-initiating-pe

Sent from my mobile phone
在 2012-1-18 下午5:59,"Matthieu Morel" <mmorel@apache.org <javascript:_e({},
'cvml', 'mmorel@apache.org');>>写道:

> Hi,
>
> this is quite weird.
>
> I suppose you are using S4 0.3.
>
> Are you able to run other examples correctly, or is the problem specific
> to your code?
>
> Also, this issue is related to some bytecode generation routine. Do you
> have other libraries in your classpath, such as a different version (than
> ours) of BCEL?
>
> Last, you seem to be using OpenJDK. Maybe you could try to use a
> Sun/Oracle JDK version 6 ? This would allow us to identify (or not) a
> possible bug.
>
>
> Thanks!
>
> Matthieu
>
> On 1/18/12 2:55 AM, Roger wrote:
>
>> Hi, all
>> I am now trying to add a simple PE into my app. This PE extends
>> AbstractPE and overrides output method.(doing nothing)
>> I also revised the xml file, adding a bean, like following:
>>
>> <bean id="rogerpe" class="cnu.roger.FPActor.**RogerPE">
>> <property name="keys">
>> <list>
>> <value>RawTransaction *</value>
>> </list>
>> </property>
>> </bean>
>>
>> But, when I was trying to run the platform. Some exception occurs.
>>
>> Caused by: org.springframework.beans.**BeanInstantiationException:
>> Could not instantiate bean class [cnu.roger.FPActor.RogerPE]:
>> Constructor threw exception; nested exception is
>> java.lang.**ArrayIndexOutOfBoundsException**: -1
>> at org.springframework.beans.**BeanUtils.instantiateClass(**
>> BeanUtils.java:115)
>> at
>> org.springframework.beans.**factory.support.**
>> SimpleInstantiationStrategy.**instantiate(**SimpleInstantiationStrategy.*
>> *java:61)
>> at
>> org.springframework.beans.**factory.support.**
>> AbstractAutowireCapableBeanFac**tory.instantiateBean(**
>> AbstractAutowireCapableBeanFac**tory.java:877)
>> ... 16 more
>> Caused by: *java.lang.**ArrayIndexOutOfBoundsException***: -1
>> at java.util.ArrayList.**elementData(ArrayList.java:**338)
>> at java.util.ArrayList.get(**ArrayList.java:351)
>> at
>> io.s4.processor.**OverloadDispatcherGenerator.**generate(**
>> OverloadDispatcherGenerator.**java:209)
>> at io.s4.processor.AbstractPE.<**init>(AbstractPE.java:126)
>> at cnu.roger.FPActor.RogerPE.<**init>(RogerPE.java:22)
>> at sun.reflect.**NativeConstructorAccessorImpl.**newInstance0(Native
>> Method)
>> at
>> sun.reflect.**NativeConstructorAccessorImpl.**newInstance(**
>> NativeConstructorAccessorImpl.**java:57)
>> at
>> sun.reflect.**DelegatingConstructorAccessorI**mpl.newInstance(**
>> DelegatingConstructorAccessorI**mpl.java:45)
>> at java.lang.reflect.Constructor.**newInstance(Constructor.java:**532)
>> at org.springframework.beans.**BeanUtils.instantiateClass(**
>> BeanUtils.java:100)
>> ... 18 more
>>
>> I am confusing now. I do not know which array it means.
>> Any help is appreciated!
>>
>> ------------------
>> Regards,
>> Q
>>
>
>

-- 
Regards,
Q

Mime
View raw message