[
https://issues.apache.org/jira/browse/IMPERIUS-15?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12624004#action_12624004
]
Neeraj Joshi commented on IMPERIUS-15:
--------------------------------------
Hey Reza,
To use 2 instances of the same class in a policy you should do the import as
follows:
Import Class imperius.SimpleBean : bean1 , bean2;
Thanks
Neeraj
> Policy execution exception when exist anchor objects with the same class
> -------------------------------------------------------------------------
>
> Key: IMPERIUS-15
> URL: https://issues.apache.org/jira/browse/IMPERIUS-15
> Project: Imperius
> Issue Type: Bug
> Reporter: Reza Asadollahi
> Assignee: Bill Stoddard
> Attachments: SimpleBean.java, 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(AnchorData.java:131)
> at
> org.apache.imperius.spl.parser.compiler.symboltable.SPLSymbolTable._insertInstanceObject(SPLSymbolTable.java:546)
> at
> org.apache.imperius.spl.parser.compiler.symboltable.SPLSymbolTable.populateInstanceValuesForInstance(SPLSymbolTable.java:499)
> at
> org.apache.imperius.spl.parser.statements.impl.SPLPolicy._evaluatePolicies(SPLPolicy.java:134)
> at
> org.apache.imperius.spl.parser.statements.impl.SPLPolicy.evaluate(SPLPolicy.java:362)
> at
> org.apache.imperius.spl.evaluator.impl.PolicyEvaluatorImpl.evaluatePolicy(PolicyEvaluatorImpl.java:118)
> at
> org.apache.imperius.spl.manager.impl.PolicyManagerImpl.evaluatePolicy(PolicyManagerImpl.java:209)
> at
> org.apache.imperius.javaspl.Java_SPLPolicyRuleProvider.executePolicy(Java_SPLPolicyRuleProvider.java:134)
> ...
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.