incubator-imperius-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Reza Asadollahi (JIRA)" <>
Subject [jira] Commented: (IMPERIUS-15) Policy execution exception when exist anchor objects with the same class
Date Thu, 21 Aug 2008 15:12:44 GMT


Reza Asadollahi commented on IMPERIUS-15:

If multiple import statements for objects with the same class is not acceptable for imperius,
the exceptiion must be thrown at policy compile time instead of evalution time. 
If there is no exception at compile time, there should be no exception at evalution time regarding
the policy syntax. 

> Policy execution exception when exist anchor objects with the same class 
> -------------------------------------------------------------------------
>                 Key: IMPERIUS-15
>                 URL:
>             Project: Imperius
>          Issue Type: Bug
>            Reporter: Reza Asadollahi
>            Assignee: Bill Stoddard
>         Attachments:, TwoObjectsPolicy.spl, TwoObjectsPolicy.spl.txt
> When having two or more objects with the same java class in a SPL policy , during the
evalution the following exception happens:
> org.apache.imperius.spl.parser.exceptions.SPLException: Invalid instance Name bean1
> 	at org.apache.imperius.spl.parser.compiler.symboltable.AnchorData.insertInstanceObject(
> 	at org.apache.imperius.spl.parser.compiler.symboltable.SPLSymbolTable._insertInstanceObject(
> 	at org.apache.imperius.spl.parser.compiler.symboltable.SPLSymbolTable.populateInstanceValuesForInstance(
> 	at org.apache.imperius.spl.parser.statements.impl.SPLPolicy._evaluatePolicies(
> 	at org.apache.imperius.spl.parser.statements.impl.SPLPolicy.evaluate(
> 	at org.apache.imperius.spl.evaluator.impl.PolicyEvaluatorImpl.evaluatePolicy(
> 	at org.apache.imperius.spl.manager.impl.PolicyManagerImpl.evaluatePolicy(
> 	at org.apache.imperius.javaspl.Java_SPLPolicyRuleProvider.executePolicy(
>                      ...

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message