我在smooks表达式中遇到String.split问题,但只有当处理器中有超过52种此类元素时
<jb:expression property="propertyID" execOnElement="unitRowId" >
_VALUE.split("-")[0];
</jb:expression>
我尝试做substring(int,int)但是我得到了同样的错误。我可以删除表达式,它可以同时运行数千个这样的表达式,没有任何问题,所以我不认为这是一个内存问题。奇怪的是,我可以使用substring(int)没有问题。但我不能为我的生活弄清楚如何获得这个价值的第一部分。
639 [main] WARN org.milyn.delivery.ContentDeliveryConfigBuilder - ContentHandlerFactory [org.milyn.delivery.JavaContentHandlerFactory] unable to create resource processing instance for resource [Target Profile: [[*]], Selector: [cdu-creator], Selector Namespace URI: [null], Resource: [org.milyn.smooks.scripting.groovy.GroovyContentHandlerFactory], Num Params: [1]]. org/codehaus/groovy/control/CompilationFailedException
1905 [main] WARN org.milyn.delivery.ContentDeliveryConfigBuilder - ContentHandlerFactory [org.milyn.delivery.JavaContentHandlerFactory] unable to create resource processing instance for resource [Target Profile: [[*]], Selector: [cdu-creator], Selector Namespace URI: [null], Resource: [org.milyn.smooks.scripting.groovy.GroovyContentHandlerFactory], Num Params: [1]]. org/codehaus/groovy/control/CompilationFailedException
**** COMPILER BUG! REPORT THIS IMMEDIATELY AT http://jira.codehaus.org/browse/mvel2
Expression: _VALUE.split("-")[0];
Exception in thread "main" java.lang.RuntimeException: org.milyn.SmooksException: Unable to filter InputStream for target profile [org.milyn.profile.Profile#default_profile].
at testers.jpa.JpaTester.<init>(JpaTester.java:45)
at testers.jpa.JpaTester.main(JpaTester.java:159)
Caused by: org.milyn.SmooksException: Unable to filter InputStream for target profile [org.milyn.profile.Profile#default_profile].
at org.milyn.delivery.dom.SmooksDOMFilter.filter(SmooksDOMFilter.java:294)
at org.milyn.delivery.dom.SmooksDOMFilter.doFilter(SmooksDOMFilter.java:243)
...
Caused by: org.milyn.SmooksException: Failed to apply processing unit [org.milyn.javabean.BeanInstancePopulator] to [org:milyn:smooks:unknowndoc:/list/com.mike.beans.Unit[52]/unitRowId].
at org.milyn.delivery.dom.SmooksDOMFilter.processVisitorException(SmooksDOMFilter.java:823)
at org.milyn.delivery.dom.SmooksDOMFilter.access$700(SmooksDOMFilter.java:134)
...
Caused by: java.lang.VerifyError: (class: ASMAccessorImpl_14586215731457115318970, method: getKnownEgressType signature: ()Ljava/lang/Class;) Illegal type in constant pool
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Unknown Source)
...