-
15. 'Invalid usage of undeployed classloader' in mvel
tcunning Apr 29, 2011 12:21 PM (in response to munimanjunath)Since this sounds like a smooks validation issue - is it something you can boil down to a small unit test with hard-coded input?
I'm still confused as to what error you are seeing here - are you sure that customerAddress is defined and that customerAddress isn't itself null?
-
16. 'Invalid usage of undeployed classloader' in mvel
munimanjunath Apr 29, 2011 1:29 PM (in response to tcunning)Hi Tom,
customerAddress is not null for sure but when customerAddress.Country is null, this error is happening eventhough I am defaulting this value to
US if it is null.
I changed the rule now and its working. I created new String bean for customerAddress.Country in smooks configuration and now I am checking the value if it is null.
Below modified rule
validateCustomerZip,"
java.util.regex.Pattern pattern = null;
java.util.regex.Matcher matcher = null;
if(customerAddressZip == nil )
return false;
if(customerAddressCountry == nil ) {
pattern = java.util.regex.Pattern.compile(""(^\\d{5}$)|(^\\d{5}-\\d{4}$)|(^\\d{9}$)"");
matcher = pattern.matcher(customerAddress.Zip);
if(matcher.find())
return true;
else
return false;
} else
if(customerAddressCountry == ""CA"")
{ pattern = java.util.regex.Pattern.compile(""^[A-Za-z][0-9][A-Za-z][ ][0-9][A-Za-z][0-9]$"");
matcher = pattern.matcher(customerAddress.Zip);
if(matcher.find())
return true;
else
return false;
}
else if (customerAddressCountry == ""US"")
{
pattern = java.util.regex.Pattern.compile(""(^\\d{5}$)|(^\\d{5}-\\d{4}$)|(^\\d{9}$)"");
matcher = pattern.matcher(customerAddress.Zip);
if(matcher.find())
return true;
else
return false;
} else return false;"
-
17. Re: 'Invalid usage of undeployed classloader' in mvel
subbasanvi Apr 6, 2013 2:50 PM (in response to tfennelly)Hello Tom,
Im hitting into the same issue in apach tomcat 6.0.36 with smooks 1.4 randomly.it happens when we restart the tomcat and redeploy the apps.The object is being set into the context.
Here is the expression that is complaning
The Exception Details Are Exception: org.milyn.expression.ExpressionEvaluationException: Error evaluating MVEL expression 'message.ovdcDate;' against object type 'org.milyn.javabean.context.StandaloneBeanContext$BeanContextMapAdapter'. Common issues include:
1. Referencing a variable that is not bound into the context. In this case use the 'isdef' operator to check if the variable is bound in the context.It would be great if you could have found the solution for this problem. i did clean-up all the work FOLDER in tomcat that doesn't help.We have same code is deployed on prod with lower version of the tomcat and it is not having any issues there..
Here is error partial error trace,
org.milyn.expression.ExpressionEvaluationException: Error evaluating MVEL expression 'message.ovdcDate;' against object type 'org.milyn.javabean.context.StandaloneBeanContext$BeanContextMapAdapter'. Common issues include:
1. Referencing a variable that is not bound into the context. In this case use the 'isdef' operator to check if the variable is bound in the context.
2. Invalid expression reference to a List/Array based variable token. Example List/Array referencing expression token: 'order.orderItems[0].productId'.
at org.milyn.expression.MVELExpressionEvaluator.exec(MVELExpressionEvaluator.java:110)
at org.milyn.javabean.BeanInstancePopulator.bindExpressionValue(BeanInstancePopulator.java:476)
at org.milyn.javabean.BeanInstancePopulator.bindSaxDataValue(BeanInstancePopulator.java:416)
at org.milyn.javabean.BeanInstancePopulator.visitAfter(BeanInstancePopulator.java:348)
at org.milyn.delivery.sax.SAXHandler.visitAfter(SAXHandler.java:389)
at org.milyn.delivery.sax.SAXHandler.endElement(SAXHandler.java:204)
at org.milyn.delivery.SmooksContentHandler.endElement(SmooksContentHandler.java:83)
at com.jpm.wss.paris.pfe.reader.impl.PFEFixedLengthReader.parse(PFEFixedLengthReader.java:300)
at org.milyn.delivery.sax.SAXParser.parse(SAXParser.java:70)
at org.milyn.delivery.sax.SmooksSAXFilter.doFilter(SmooksSAXFilter.java:75)
at org.milyn.delivery.sax.SmooksSAXFilter.doFilter(SmooksSAXFilter.java:61)
at org.milyn.Smooks._filter(Smooks.java:516)
at org.milyn.Smooks.filterSource(Smooks.java:475)
at com.jpm.wss.paris.pfe.subjectdata.transformer.PFESubjectDataTransformerHelper.runSmooksTransform(PFESubjectDataTransformerHelper.java:65)
at com.jpm.wss.paris.pfe.subjectdata.transformer.PFEPriceSubjectDataTransformer.transformData(PFEPriceSubjectDataTransformer.java:51)
at com.jpm.wss.paris.pbe.services.impl.PBEControllerServiceImpl.deleteAndBackupCustomExtractFeedData(PBEControllerServiceImpl.java:414)
at com.jpm.wss.paris.pbe.services.impl.PBEControllerServiceImpl.backupTrailerData(PBEControllerServiceImpl.java:310)
at com.jpm.wss.paris.pbe.services.impl.PBEControllerServiceImpl.control(PBEControllerServiceImpl.java:142)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
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:307)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
at org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:77)
at com.jpm.wss.paris.core.exceptions.handler.ExceptionHandlerAspect.logAndRouteException(ExceptionHandlerAspect.java:43)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:627)
at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:616)
at org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:64)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
at $Proxy29.control(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.springframework.integration.util.DefaultMethodInvoker.invokeMethod(DefaultMethodInvoker.java:110)
at org.springframework.integration.handler.MessageMappingMethodInvoker.doInvokeMethod(MessageMappingMethodInvoker.java:135)
at org.springframework.integration.handler.MessageMappingMethodInvoker.invokeMethod(MessageMappingMethodInvoker.java:107)
at org.springframework.integration.handler.ServiceActivatingHandler.handleRequestMessage(ServiceActivatingHandler.java:49)
at org.springframework.integration.handler.AbstractReplyProducingMessageHandler.handleMessageInternal(AbstractReplyProducingMessageHandler.java:91)
at org.springframework.integration.handler.AbstractMessageHandler.handleMessage(AbstractMessageHandler.java:59)
at org.springframework.integration.dispatcher.UnicastingDispatcher.doDispatch(UnicastingDispatcher.java:103)
at org.springframework.integration.dispatcher.UnicastingDispatcher.dispatch(UnicastingDispatcher.java:90)
at org.springframework.integration.channel.AbstractSubscribableChannel.doSend(AbstractSubscribableChannel.java:43)
at org.springframework.integration.channel.AbstractMessageChannel.send(AbstractMessageChannel.java:116)
at org.springframework.integration.channel.AbstractMessageChannel.send(AbstractMessageChannel.java:94)
at org.springframework.integration.channel.MessageChannelTemplate.doSend(MessageChannelTemplate.java:223)
at org.springframework.integration.channel.MessageChannelTemplate.send(MessageChannelTemplate.java:180)
at org.springframework.integration.channel.MessageChannelTemplate.send(MessageChannelTemplate.java:168)
at org.springframework.integration.jms.ChannelPublishingJmsMessageListener.onMessage(ChannelPublishingJmsMessageListener.java:203)
at org.springframework.jms.listener.AbstractMessageListenerContainer.doInvokeListener(AbstractMessageListenerContainer.java:518)
at org.springframework.jms.listener.AbstractMessageListenerContainer.invokeListener(AbstractMessageListenerContainer.java:479)
at org.springframework.jms.listener.AbstractMessageListenerContainer.doExecuteListener(AbstractMessageListenerContainer.java:451)
at org.springframework.jms.listener.AbstractPollingMessageListenerContainer.doReceiveAndExecute(AbstractPollingMessageListenerContainer.java:323)
at org.springframework.jms.listener.AbstractPollingMessageListenerContainer.receiveAndExecute(AbstractPollingMessageListenerContainer.java:241)
at org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.invokeListener(DefaultMessageListenerContainer.java:982)
at org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.executeOngoingLoop(DefaultMessageListenerContainer.java:974)
at org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.run(DefaultMessageListenerContainer.java:876)
at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.NullPointerException
at org.mvel2.DataConversion.convert(DataConversion.java:109)
at org.milyn.expression.MVELExpressionEvaluator.exec(MVELExpressionEvaluator.java:97)
... 66 more
</strong></font>
at com.jpm.wss.paris.pfe.reader.impl.PFEFixedLengthReader.parse(PFEFixedLengthReader.java:314)
at org.milyn.delivery.sax.SAXParser.parse(SAXParser.java:70)
at org.milyn.delivery.sax.SmooksSAXFilter.doFilter(SmooksSAXFilter.java:75)
... 57 more
Regards
Subba
-
18. Re: 'Invalid usage of undeployed classloader' in mvel
tcunning Apr 6, 2013 3:20 PM (in response to subbasanvi)subbaraj jeganathan wrote:
Hello Tom,
Im hitting into the same issue in apach tomcat 6.0.36 with smooks 1.4 randomly
I'd suggest taking it up on the Smooks mailing list then - this forum is for JBoss ESB questions and issues.
-
19. Re: 'Invalid usage of undeployed classloader' in mvel
subbasanvi Apr 6, 2013 4:17 PM (in response to tcunning)Tom,Thanks for the response. I will do the same.
-
20. Re: 'Invalid usage of undeployed classloader' in mvel
munimanjunath Apr 6, 2013 7:48 PM (in response to subbasanvi)Hi Subbaraj
I had similar issues using smooks what I did was moving all the validations to a java utility class instead of the csv file.
-Muni