Policy parse error when invoking an anchor object with another object as its parameter --------------------------------------------------------------------------------------
Key: IMPERIUS-24 URL: https://issues.apache.org/jira/browse/IMPERIUS-24 Project: Imperius Issue Type: Bug Reporter: Reza Asadollahi Assignee: Bill Stoddard When an anchor object method is called with another anchor object as the parameter the following parse exception happens. Here is the sample policy: Import Class util.SimpleBean1 : b1; Import Class util.SimpleBean2 : b2; Strategy Execute_All_Applicable; Policy { Condition { 1 == 1 } Decision { b2.print(b1.id) } }:1; The exception is: Caused by: org.apache.imperius.spl.parser.exceptions.SPLException: Error encountered while parsing tree at org.apache.imperius.spl.datastore.impl.PolicyParserImpl.parseFile(PolicyParserImpl.java:166) at org.apache.imperius.spl.datastore.impl.PolicyParserImpl.createInternalPolicyObject(PolicyParserImpl.java:96) at org.apache.imperius.spl.datastore.impl.PolicyDataStoreImpl.createPolicy(PolicyDataStoreImpl.java:108) at org.apache.imperius.spl.manager.impl.PolicyManagerImpl.createPolicy(PolicyManagerImpl.java:136) at org.apache.imperius.javaspl.Java_SPLPolicyRuleProvider.createPolicy(Java_SPLPolicyRuleProvider.java:81) at org.starmx.policy.adapter.imperius.ImperiusPolicyAdapter.loadPolicy(ImperiusPolicyAdapter.java:45) ... 7 more Actually, I changed line 147 in PolicyManagerImpl to get the exception as shown above replaced "throw new SPLException(e.getMessage());" by "throw e;" -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.