[jbossseam-issues] [JBoss JIRA] Commented: (JBSEAM-3047) The version of the JVM impacts which version of mvel*.jar should be included.

Earl Baugh (JIRA) jira-events at lists.jboss.org
Wed May 28 17:25:30 EDT 2008


    [ http://jira.jboss.com/jira/browse/JBSEAM-3047?page=comments#action_12414692 ] 
            
Earl Baugh commented on JBSEAM-3047:
------------------------------------

I was able to re-create the error:

The stack trace is : 

org.mvel.CompileException: can not resolve identifier: 'declr'
	at org.mvel.ASTNode.getReducedValue(ASTNode.java:315)
	at org.mvel.ast.PropertyASTNode.getReducedValue(PropertyASTNode.java:29)
	at org.mvel.MVELInterpretedRuntime.parseAndExecuteInterpreted(MVELInterpretedRuntime.java:115)
	at org.mvel.MVELInterpretedRuntime.parse(MVELInterpretedRuntime.java:63)
	at org.mvel.TemplateInterpreter.execute(TemplateInterpreter.java:428)
	at org.mvel.TemplateInterpreter.parse(TemplateInterpreter.java:320)
	at org.drools.rule.builder.dialect.java.AbstractJavaBuilder.generatTemplates(AbstractJavaBuilder.java:110)
	at org.drools.rule.builder.dialect.java.JavaConsequenceBuilder.build(JavaConsequenceBuilder.java:95)
	at org.drools.rule.builder.RuleBuilder.build(RuleBuilder.java:67)
	at org.drools.compiler.PackageBuilder.addRule(PackageBuilder.java:426)
	at org.drools.compiler.PackageBuilder.addPackage(PackageBuilder.java:284)
	at org.drools.compiler.PackageBuilder.addPackageFromDrl(PackageBuilder.java:158)
	at com.allconnect.viper.rules.RulesFlowProcessor.readRule(RulesFlowProcessor.java:100)
	at com.allconnect.viper.rules.RulesFlowProcessor.main(RulesFlowProcessor.java:29)

Which after some digging lead me to : 
http://www.nabble.com/having-a-little-problem-when-using-LHS-variable-in-RHS-td15309829.html

And I knew that I should have had a consistent version of Drools, given it all came packaged together with the Seam download.
I noticed on this the specific JVM listed in the build, and then found the  posting (http://mvel.codehaus.org/Downloading+MVEL)   with the 
recommendation for the version vs the JVM.

Further digging yielded the 1.6 release.  Now I dug thru some archives here, and it's not clear which version of mvel was in the Seam release (there is no Manifest in the jar that i have...)  So, it is possible that the version I downloaded also upgraded the version of mvel, which may have been the real problem.  I was able to realize that it was Seam 2.0.0GA which had the issue, and it's resolved in the Seam 2.0.2GA release.    I verified that I can still break the rules with the earlier Seam distribution  and it works properly either with the mval 1.6 compiled version (which is 1.2.23) or the latest from the current Seam 2.0.2GA release.   So, in either case it looks like it's resolved.

The rules are simply ones that do something like this:

rule "CallOpeningWelcome3" ruleflow-group "Welcome"
	when
		$agent: AgentBean( firstName != null, lastName != null ) &&
		$call : IncomingCallBean (extensionCalled == $agent.extension )
	then
		System.out.println("Welcome to Allconnect, my name is "+$agent.getFirstName() + " " +$agent.getLastName() +" and I am here to assist you with your move.");
end

Where the RHS refers to something from the LHS.



> The version of the JVM impacts which version of mvel*.jar should be included.
> -----------------------------------------------------------------------------
>
>                 Key: JBSEAM-3047
>                 URL: http://jira.jboss.com/jira/browse/JBSEAM-3047
>             Project: Seam
>          Issue Type: Task
>    Affects Versions: 2.0.2.GA
>         Environment: Seam and Java 1.4, 1.5 or 1.6
>            Reporter: Earl Baugh
>         Assigned To: Pete Muir
>            Priority: Minor
>             Fix For: 2.1.0.BETA1
>
>
> As described on the MVEL web site, MVEL has some "compiler specific" issues.   You can experience some odd behavior without the correct mvel*.jar that matches the JVM you are utilizing.  The set up scripts should take this into consideration and/or the Seam  package should include something to tell the developer that a different version may be required based on the JVM selected. 
> See : http://mvel.codehaus.org/Downloading+MVEL  for the different versions.
> They also state: "... if you are deploying to a specific environment, it is recommended you choose the build which matches your JRE version_"

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the seam-issues mailing list