You are viewing a plain text version of this content. The canonical link for it is here.
Posted to imperius-dev@incubator.apache.org by "David Wood (JIRA)" <ji...@apache.org> on 2009/08/19 17:09:14 UTC

[jira] Created: (IMPERIUS-29) Policy importing multiple instances of same class can not be evaluated (Java)

Policy importing multiple instances of same class can not be evaluated (Java)
-----------------------------------------------------------------------------

                 Key: IMPERIUS-29
                 URL: https://issues.apache.org/jira/browse/IMPERIUS-29
             Project: Imperius
          Issue Type: Bug
         Environment: Windows XP, Java 1.5
            Reporter: David Wood
            Assignee: Bill Stoddard


If  you have a policy that does something like the following:

Import  Class java.util.Map:props1;
Import  Class java.util.Map:props2; 	

we get 

	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:138)
	at org.apache.imperius.spl.parser.statements.impl.SPLPolicy.evaluateForResults(SPLPolicy.java:374)

Problem goes away if  you change to the following

Import  Class java.util.Map:props1;
Import  Class java.util.Properties:props2; 

But a change like this is not always acceptable.


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


Re: [jira] Commented: (IMPERIUS-29) Policy importing multiple instances of same class can not be evaluated (Java)

Posted by Xiping Wang <xi...@us.ibm.com>.
Cool! So this was just a syntax issue.

Xiping


                                                                                                                                               
  From:       "Neeraj Joshi (JIRA)" <ji...@apache.org>                                                                                          
                                                                                                                                               
  To:         imperius-dev@incubator.apache.org                                                                                                
                                                                                                                                               
  Date:       10/07/2009 03:48 PM                                                                                                              
                                                                                                                                               
  Subject:    [jira] Commented: (IMPERIUS-29) Policy importing multiple instances of same class can not be evaluated (Java)                    
                                                                                                                                               






    [
https://issues.apache.org/jira/browse/IMPERIUS-29?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12763219#action_12763219
 ]

Neeraj Joshi commented on IMPERIUS-29:
--------------------------------------

To import  multiple instances of the same class you should use a syntax as
follows:
Import Class java.util.Map:props1,props2;

> Policy importing multiple instances of same class can not be evaluated
(Java)
>
-----------------------------------------------------------------------------

>
>                 Key: IMPERIUS-29
>                 URL: https://issues.apache.org/jira/browse/IMPERIUS-29
>             Project: Imperius
>          Issue Type: Bug
>         Environment: Windows XP, Java 1.5
>            Reporter: David Wood
>            Assignee: Bill Stoddard
>         Attachments: Imperius29.java
>
>
> If  you have a policy that does something like the following:
> Import  Class java.util.Map:props1;
> Import  Class java.util.Map:props2;
> we get
> Exception in thread "main"
org.apache.imperius.spl.parser.exceptions.SPLException: Invalid instance
Name props1
>            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:138)
>            at
org.apache.imperius.spl.parser.statements.impl.SPLPolicy.evaluateForResults
(SPLPolicy.java:374)
> Problem goes away if  you change to the following
> Import  Class java.util.Map:props1;
> Import  Class java.util.Properties:props2;
> But a change like this is not always acceptable.

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



[jira] Updated: (IMPERIUS-29) Policy importing multiple instances of same class can not be evaluated (Java)

Posted by "David Wood (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/IMPERIUS-29?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

David Wood updated IMPERIUS-29:
-------------------------------

    Attachment: Imperius29.java

Reproduces the problem...

> Policy importing multiple instances of same class can not be evaluated (Java)
> -----------------------------------------------------------------------------
>
>                 Key: IMPERIUS-29
>                 URL: https://issues.apache.org/jira/browse/IMPERIUS-29
>             Project: Imperius
>          Issue Type: Bug
>         Environment: Windows XP, Java 1.5
>            Reporter: David Wood
>            Assignee: Bill Stoddard
>         Attachments: Imperius29.java
>
>
> If  you have a policy that does something like the following:
> Import  Class java.util.Map:props1;
> Import  Class java.util.Map:props2; 	
> we get 
> 	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:138)
> 	at org.apache.imperius.spl.parser.statements.impl.SPLPolicy.evaluateForResults(SPLPolicy.java:374)
> Problem goes away if  you change to the following
> Import  Class java.util.Map:props1;
> Import  Class java.util.Properties:props2; 
> But a change like this is not always acceptable.

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


[jira] Commented: (IMPERIUS-29) Policy importing multiple instances of same class can not be evaluated (Java)

Posted by "Neeraj Joshi (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/IMPERIUS-29?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12763219#action_12763219 ] 

Neeraj Joshi commented on IMPERIUS-29:
--------------------------------------

To import  multiple instances of the same class you should use a syntax as follows:
Import Class java.util.Map:props1,props2;

> Policy importing multiple instances of same class can not be evaluated (Java)
> -----------------------------------------------------------------------------
>
>                 Key: IMPERIUS-29
>                 URL: https://issues.apache.org/jira/browse/IMPERIUS-29
>             Project: Imperius
>          Issue Type: Bug
>         Environment: Windows XP, Java 1.5
>            Reporter: David Wood
>            Assignee: Bill Stoddard
>         Attachments: Imperius29.java
>
>
> If  you have a policy that does something like the following:
> Import  Class java.util.Map:props1;
> Import  Class java.util.Map:props2; 	
> we get 
> Exception in thread "main" org.apache.imperius.spl.parser.exceptions.SPLException: Invalid instance Name props1
> 	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:138)
> 	at org.apache.imperius.spl.parser.statements.impl.SPLPolicy.evaluateForResults(SPLPolicy.java:374)
> Problem goes away if  you change to the following
> Import  Class java.util.Map:props1;
> Import  Class java.util.Properties:props2; 
> But a change like this is not always acceptable.

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


[jira] Updated: (IMPERIUS-29) Policy importing multiple instances of same class can not be evaluated (Java)

Posted by "David Wood (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/IMPERIUS-29?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

David Wood updated IMPERIUS-29:
-------------------------------

    Description: 
If  you have a policy that does something like the following:

Import  Class java.util.Map:props1;
Import  Class java.util.Map:props2; 	

we get 

Exception in thread "main" org.apache.imperius.spl.parser.exceptions.SPLException: Invalid instance Name props1
	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:138)
	at org.apache.imperius.spl.parser.statements.impl.SPLPolicy.evaluateForResults(SPLPolicy.java:374)

Problem goes away if  you change to the following

Import  Class java.util.Map:props1;
Import  Class java.util.Properties:props2; 

But a change like this is not always acceptable.


  was:
If  you have a policy that does something like the following:

Import  Class java.util.Map:props1;
Import  Class java.util.Map:props2; 	

we get 

	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:138)
	at org.apache.imperius.spl.parser.statements.impl.SPLPolicy.evaluateForResults(SPLPolicy.java:374)

Problem goes away if  you change to the following

Import  Class java.util.Map:props1;
Import  Class java.util.Properties:props2; 

But a change like this is not always acceptable.



> Policy importing multiple instances of same class can not be evaluated (Java)
> -----------------------------------------------------------------------------
>
>                 Key: IMPERIUS-29
>                 URL: https://issues.apache.org/jira/browse/IMPERIUS-29
>             Project: Imperius
>          Issue Type: Bug
>         Environment: Windows XP, Java 1.5
>            Reporter: David Wood
>            Assignee: Bill Stoddard
>         Attachments: Imperius29.java
>
>
> If  you have a policy that does something like the following:
> Import  Class java.util.Map:props1;
> Import  Class java.util.Map:props2; 	
> we get 
> Exception in thread "main" org.apache.imperius.spl.parser.exceptions.SPLException: Invalid instance Name props1
> 	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:138)
> 	at org.apache.imperius.spl.parser.statements.impl.SPLPolicy.evaluateForResults(SPLPolicy.java:374)
> Problem goes away if  you change to the following
> Import  Class java.util.Map:props1;
> Import  Class java.util.Properties:props2; 
> But a change like this is not always acceptable.

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