You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Venkatakrishnan (JIRA)" <tu...@ws.apache.org> on 2008/03/25 13:03:25 UTC

[jira] Resolved: (TUSCANY-2125) Calculator-implementation-policies, SCA 1.2 RC1 Fails

     [ https://issues.apache.org/jira/browse/TUSCANY-2125?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Venkatakrishnan resolved TUSCANY-2125.
--------------------------------------

    Resolution: Fixed

This is no failure.  The demo runs successfully and the console does show messages that convey that the logging and authentication policies are working.   The issue is there are WARNINGS which might be a bit unnerving to the user.  I have fixed this in the branch under r640777.  

The reason for this is that there are now two mechanisms for inserting PolicyInterceptors to deal with ImplementationPolicies - 1) the PolicyProviders 2) JavaPolicyHandlingRuntimeWireProcessor.  The Calculator-implementation policies samples had moved over to use 1).   So whatever was required for 2) no longer existed and that was what the warnings were about.

Though this fix solves this sample, it will affect the 'authorization' function of the bigbank demo i.e. the authorization policy will not work.  This is because this demo depends on mechanism 2) and I cannot quite figure out now how the two can co-exist.

The bigbank demo will run successfully, just that the authorization will not be functional.  The authentication and integrity functions will work.  So I don't think this is a show stopper.

> Calculator-implementation-policies, SCA 1.2 RC1 Fails
> -----------------------------------------------------
>
>                 Key: TUSCANY-2125
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-2125
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SCA Samples
>         Environment: windows xp, java 5
>            Reporter: haleh mahbod
>            Assignee: Venkatakrishnan
>             Fix For: Java-SCA-1.2
>
>
> When I run the calculator policy sample (calculator-implementation-policy), I get warnings saying that the No PolicyHandler has been registered. The sample says, just go to the directory and type ant run and that is what I followed.   
>  
> Here is what I am seeing:
> C:\tuscany\sca\tuscany-sca-1.2-incubating-SNAPSHOT\samples\calculator-implementation-policies>ant ru
> n
> Buildfile: build.xml
> run:
>      [java] Mar 23, 2008 8:18:43 PM org.apache.tuscany.sca.contribution.processor.ValidatingXMLStrea
> mReader$1 error
>      [java] WARNING: XMLSchema validation problem in: null, line: 22, column: 4
>      [java] cvc-complex-type.2.4.a: Invalid content was found starting with element 'operation'. One
>  of '{WC[##other:"http://www.osoa.org/xmlns/sca/1.0"]}' is expected.
>      [java] Calling CalculatorServiceComponent configured with 'logging' policy for subtract and div
> ide operations...
>      [java] Mar 23, 2008 8:18:43 PM org.apache.tuscany.sca.implementation.java.invocation.JavaPolicy
> HandlingRuntimeWireProcessor process
>      [java] WARNING: No PolicyHandler registered for {http://tuscany.apache.org/xmlns/sca/1.0}JDKLog
> gingPolicy
>      [java] Mar 23, 2008 8:18:43 PM org.apache.tuscany.sca.implementation.java.invocation.JavaPolicy
> HandlingRuntimeWireProcessor process
>      [java] WARNING: No PolicyHandler registered for {http://tuscany.apache.org/xmlns/sca/1.0}JDKLog
> gingPolicy
>      [java] Mar 23, 2008 8:18:43 PM org.apache.tuscany.sca.implementation.java.invocation.JavaPolicy
> HandlingRuntimeWireProcessor process
>      [java] WARNING: No PolicyHandler registered for {http://tuscany.apache.org/xmlns/sca/1.0}JDKLog
> gingPolicy
>      [java] Mar 23, 2008 8:18:43 PM org.apache.tuscany.sca.implementation.java.invocation.JavaPolicy
> HandlingRuntimeWireProcessor process
>      [java] WARNING: No PolicyHandler registered for {http://tuscany.apache.org/xmlns/sca/1.0}JDKLog
> gingPolicy
>      [java] Mar 23, 2008 8:18:43 PM component.implementation: CalculatorServiceComponent(org.apache.
> tuscany.sca.implementation.java.impl.JavaImplementationImpl)
>      [java] INFO: Invoking operation - add
>      [java] Mar 23, 2008 8:18:43 PM component.implementation: CalculatorServiceComponent(org.apache.
> tuscany.sca.implementation.java.impl.JavaImplementationImpl)
>      [java] FINER: Invoking operation add with arguments 3.0, 2.0
>      [java] Mar 23, 2008 8:18:43 PM org.apache.tuscany.sca.implementation.java.invocation.JavaPolicy
> HandlingRuntimeWireProcessor process
>      [java] WARNING: No PolicyHandler registered for PolicySet - {http://tuscany.apache.org/xmlns/sc
> a/1.0}JDKLoggingPolicy
>      [java] Mar 23, 2008 8:18:43 PM org.apache.tuscany.sca.implementation.java.invocation.JavaPolicy
> HandlingRuntimeWireProcessor process
>      [java] WARNING: No PolicyHandler registered for PolicySet - {http://tuscany.apache.org/xmlns/sc
> a/1.0}JDKLoggingPolicy
>      [java] Mar 23, 2008 8:18:43 PM component.implementation: AddServiceComponent(org.apache.tuscany
> .sca.implementation.java.impl.JavaImplementationImpl)
>      [java] INFO: Invoking operation - add
>      [java] Mar 23, 2008 8:18:43 PM component.implementation: AddServiceComponent(org.apache.tuscany
> .sca.implementation.java.impl.JavaImplementationImpl)
>      [java] FINER: Invoking operation add with arguments 3.0, 2.0
>      [java] Mar 23, 2008 8:18:43 PM component.implementation: AddServiceComponent(org.apache.tuscany
> .sca.implementation.java.impl.JavaImplementationImpl)
>      [java] INFO: Returned from operation - add
>      [java] 3 + 2=5.0
>      [java] Mar 23, 2008 8:18:43 PM component.implementation: AddServiceComponent(org.apache.tuscany
> .sca.implementation.java.impl.JavaImplementationImpl)
>      [java] FINER: Returning from operation add with return value 5
>      [java] Mar 23, 2008 8:18:43 PM component.implementation: CalculatorServiceComponent(org.apache.
> tuscany.sca.implementation.java.impl.JavaImplementationImpl)
>      [java] INFO: Returned from operation - add
>      [java] Mar 23, 2008 8:18:43 PM component.implementation: CalculatorServiceComponent(org.apache.
> tuscany.sca.implementation.java.impl.JavaImplementationImpl)
>      [java] FINER: Returning from operation add with return value 5
>      [java] Mar 23, 2008 8:18:43 PM component.implementation: CalculatorServiceComponent(org.apache.
> tuscany.sca.implementation.java.impl.JavaImplementationImpl)
>      [java] INFO: Invoking operation - subtract
>      [java] Mar 23, 2008 8:18:43 PM component.implementation: CalculatorServiceComponent(org.apache.
> tuscany.sca.implementation.java.impl.JavaImplementationImpl)
>      [java] FINER: Invoking operation subtract with arguments 3.0, 2.0
>      [java] Mar 23, 2008 8:18:43 PM component.implementation: SubtractServiceComponent(org.apache.tu
> scany.sca.implementation.java.impl.JavaImplementationImpl)
>      [java] INFO: Invoking operation - subtract
>      [java] Mar 23, 2008 8:18:43 PM component.implementation: SubtractServiceComponent(org.apache.tu
> scany.sca.implementation.java.impl.JavaImplementationImpl)
>      [java] FINER: Invoking operation subtract with arguments 3.0, 2.0
>      [java] Mar 23, 2008 8:18:43 PM component.implementation: SubtractServiceComponent(org.apache.tu
> scany.sca.implementation.java.impl.JavaImplementationImpl)
>      [java] INFO: Returned from operation - subtract
>      [java] Mar 23, 2008 8:18:43 PM component.implementation: SubtractServiceComponent(org.apache.tu
> scany.sca.implementation.java.impl.JavaImplementationImpl)
>      [java] 3 - 2=1.0
>      [java] FINER: Returning from operation subtract with return value 1
>      [java] Mar 23, 2008 8:18:43 PM component.implementation: CalculatorServiceComponent(org.apache.
> tuscany.sca.implementation.java.impl.JavaImplementationImpl)
>      [java] INFO: Returned from operation - subtract
>      [java] Mar 23, 2008 8:18:43 PM component.implementation: CalculatorServiceComponent(org.apache.
> tuscany.sca.implementation.java.impl.JavaImplementationImpl)
>      [java] FINER: Returning from operation subtract with return value 1
>      [java] Mar 23, 2008 8:18:43 PM component.implementation: CalculatorServiceComponent(org.apache.
> tuscany.sca.implementation.java.impl.JavaImplementationImpl)
>      [java] INFO: Invoking operation - multiply
>      [java] Mar 23, 2008 8:18:43 PM component.implementation: CalculatorServiceComponent(org.apache.
> tuscany.sca.implementation.java.impl.JavaImplementationImpl)
>      [java] FINER: Invoking operation multiply with arguments 3.0, 2.0
>      [java] Mar 23, 2008 8:18:43 PM org.apache.tuscany.sca.implementation.java.invocation.JavaPolicy
> HandlingRuntimeWireProcessor process
>      [java] WARNING: No PolicyHandler registered for PolicySet - {http://tuscany.apache.org/xmlns/sc
> a/1.0}JaasPolicy
>      [java] Mar 23, 2008 8:18:43 PM org.apache.tuscany.sca.implementation.java.invocation.JavaPolicy
> HandlingRuntimeWireProcessor process
>      [java] WARNING: No PolicyHandler registered for PolicySet - {http://tuscany.apache.org/xmlns/sc
> a/1.0}JaasPolicy
>      [java] Mar 23, 2008 8:18:43 PM component.implementation: MultiplyServiceComponent(org.apache.tu
> scany.sca.implementation.java.impl.JavaImplementationImpl)
>      [java] INFO: Invoking operation - multiply
>      [java] Mar 23, 2008 8:18:43 PM component.implementation: MultiplyServiceComponent(org.apache.tu
> scany.sca.implementation.java.impl.JavaImplementationImpl)
>      [java] FINER: Invoking operation multiply with arguments 3.0, 2.0
>      [java] Mar 23, 2008 8:18:43 PM component.implementation: MultiplyServiceComponent(org.apache.tu
> scany.sca.implementation.java.impl.JavaImplementationImpl)
>      [java] INFO: Returned from operation - multiply
>      [java] Mar 23, 2008 8:18:43 PM component.implementation: MultiplyServiceComponent(org.apache.tu
> scany.sca.implementation.java.impl.JavaImplementationImpl)
>      [java] 3 * 2=6.0
>      [java] FINER: Returning from operation multiply with return value 6
>      [java] Mar 23, 2008 8:18:43 PM component.implementation: CalculatorServiceComponent(org.apache.
> tuscany.sca.implementation.java.impl.JavaImplementationImpl)
>      [java] INFO: Returned from operation - multiply
>      [java] Mar 23, 2008 8:18:43 PM component.implementation: CalculatorServiceComponent(org.apache.
> tuscany.sca.implementation.java.impl.JavaImplementationImpl)
>      [java] FINER: Returning from operation multiply with return value 6
>      [java] Mar 23, 2008 8:18:43 PM component.implementation: CalculatorServiceComponent(org.apache.
> tuscany.sca.implementation.java.impl.JavaImplementationImpl)
>      [java] INFO: Invoking operation - divide
>      [java] Mar 23, 2008 8:18:43 PM component.implementation: CalculatorServiceComponent(org.apache.
> tuscany.sca.implementation.java.impl.JavaImplementationImpl)
>      [java] FINER: Invoking operation divide with arguments 3.0, 2.0
>      [java] Mar 23, 2008 8:18:43 PM component.implementation: DivideServiceComponent(org.apache.tusc
> any.sca.implementation.java.impl.JavaImplementationImpl)
>      [java] INFO: Invoking operation - divide
>      [java] Mar 23, 2008 8:18:43 PM component.implementation: DivideServiceComponent(org.apache.tusc
> any.sca.implementation.java.impl.JavaImplementationImpl)
>      [java] FINER: Invoking operation divide with arguments 3.0, 2.0
>      [java] Mar 23, 2008 8:18:43 PM component.implementation: DivideServiceComponent(org.apache.tusc
> any.sca.implementation.java.impl.JavaImplementationImpl)
>      [java] INFO: Returned from operation - divide
>      [java] Mar 23, 2008 8:18:43 PM component.implementation: DivideServiceComponent(org.apache.tusc
> any.sca.implementation.java.impl.JavaImplementationImpl)
>      [java] FINER: Returning from operation divide with return value 1.5
>      [java] Mar 23, 2008 8:18:43 PM component.implementation: CalculatorServiceComponent(org.apache.
> tuscany.sca.implementation.java.impl.JavaImplementationImpl)
>      [java] INFO: Returned from operation - divide
>      [java] 3 / 2=1.5
>      [java] Calling CalculatorServiceComponent configured with 'logging' for all operations in the i
> mplementation...
>      [java] Mar 23, 2008 8:18:43 PM component.implementation: CalculatorServiceComponent(org.apache.
> tuscany.sca.implementation.java.impl.JavaImplementationImpl)
>      [java] FINER: Returning from operation divide with return value 1.5
>      [java] Mar 23, 2008 8:18:43 PM org.apache.tuscany.sca.implementation.java.invocation.JavaPolicy
> HandlingRuntimeWireProcessor process
>      [java] WARNING: No PolicyHandler registered for PolicySet - {http://tuscany.apache.org/xmlns/sc
> a/1.0}JDKLoggingPolicy
>      [java] Mar 23, 2008 8:18:43 PM org.apache.tuscany.sca.implementation.java.invocation.JavaPolicy
> HandlingRuntimeWireProcessor process
>      [java] WARNING: No PolicyHandler registered for PolicySet - {http://tuscany.apache.org/xmlns/sc
> a/1.0}JDKLoggingPolicy
>      [java] Mar 23, 2008 8:18:43 PM component.implementation: AnotherCalculatorServiceComponent(org.
> apache.tuscany.sca.implementation.java.impl.JavaImplementationImpl)
>      [java] INFO: Invoking operation - add
>      [java] Mar 23, 2008 8:18:43 PM component.implementation: AnotherCalculatorServiceComponent(org.
> apache.tuscany.sca.implementation.java.impl.JavaImplementationImpl)
>      [java] FINER: Invoking operation add with arguments 3.0, 2.0
>      [java] Mar 23, 2008 8:18:43 PM org.apache.tuscany.sca.implementation.java.invocation.JavaPolicy
> HandlingRuntimeWireProcessor process
>      [java] WARNING: No PolicyHandler registered for PolicySet - {http://tuscany.apache.org/xmlns/sc
> a/1.0}JDKLoggingPolicy
>      [java] Mar 23, 2008 8:18:43 PM org.apache.tuscany.sca.implementation.java.invocation.JavaPolicy
> HandlingRuntimeWireProcessor process
>      [java] WARNING: No PolicyHandler registered for PolicySet - {http://tuscany.apache.org/xmlns/sc
> a/1.0}JDKLoggingPolicy
>      [java] Mar 23, 2008 8:18:43 PM component.implementation: AddServiceComponent(org.apache.tuscany
> .sca.implementation.java.impl.JavaImplementationImpl)
>      [java] INFO: Invoking operation - add
>      [java] Mar 23, 2008 8:18:43 PM component.implementation: AddServiceComponent(org.apache.tuscany
> .sca.implementation.java.impl.JavaImplementationImpl)
>      [java] FINER: Invoking operation add with arguments 3.0, 2.0
>      [java] Mar 23, 2008 8:18:43 PM component.implementation: AddServiceComponent(org.apache.tuscany
> .sca.implementation.java.impl.JavaImplementationImpl)
>      [java] INFO: Returned from operation - add
>      [java] Mar 23, 2008 8:18:43 PM component.implementation: AddServiceComponent(org.apache.tuscany
> .sca.implementation.java.impl.JavaImplementationImpl)
>      [java] 3 + 2=5.0
>      [java] FINER: Returning from operation add with return value 5
>      [java] Mar 23, 2008 8:18:43 PM component.implementation: AnotherCalculatorServiceComponent(org.
> apache.tuscany.sca.implementation.java.impl.JavaImplementationImpl)
>      [java] INFO: Returned from operation - add
>      [java] Mar 23, 2008 8:18:43 PM component.implementation: AnotherCalculatorServiceComponent(org.
> apache.tuscany.sca.implementation.java.impl.JavaImplementationImpl)
>      [java] FINER: Returning from operation add with return value 5
>      [java] Mar 23, 2008 8:18:43 PM component.implementation: AnotherCalculatorServiceComponent(org.
> apache.tuscany.sca.implementation.java.impl.JavaImplementationImpl)
>      [java] INFO: Invoking operation - subtract
>      [java] Mar 23, 2008 8:18:43 PM component.implementation: AnotherCalculatorServiceComponent(org.
> apache.tuscany.sca.implementation.java.impl.JavaImplementationImpl)
>      [java] FINER: Invoking operation subtract with arguments 3.0, 2.0
>      [java] Mar 23, 2008 8:18:43 PM component.implementation: SubtractServiceComponent(org.apache.tu
> scany.sca.implementation.java.impl.JavaImplementationImpl)
>      [java] INFO: Invoking operation - subtract
>      [java] Mar 23, 2008 8:18:43 PM component.implementation: SubtractServiceComponent(org.apache.tu
> scany.sca.implementation.java.impl.JavaImplementationImpl)
>      [java] FINER: Invoking operation subtract with arguments 3.0, 2.0
>      [java] Mar 23, 2008 8:18:43 PM component.implementation: SubtractServiceComponent(org.apache.tu
> scany.sca.implementation.java.impl.JavaImplementationImpl)
>      [java] INFO: Returned from operation - subtract
>      [java] Mar 23, 2008 8:18:43 PM component.implementation: SubtractServiceComponent(org.apache.tu
> scany.sca.implementation.java.impl.JavaImplementationImpl)
>      [java] 3 - 2=1.0
>      [java] FINER: Returning from operation subtract with return value 1
>      [java] Mar 23, 2008 8:18:43 PM component.implementation: AnotherCalculatorServiceComponent(org.
> apache.tuscany.sca.implementation.java.impl.JavaImplementationImpl)
>      [java] INFO: Returned from operation - subtract
>      [java] Mar 23, 2008 8:18:43 PM component.implementation: AnotherCalculatorServiceComponent(org.
> apache.tuscany.sca.implementation.java.impl.JavaImplementationImpl)
>      [java] FINER: Returning from operation subtract with return value 1
>      [java] Mar 23, 2008 8:18:43 PM component.implementation: AnotherCalculatorServiceComponent(org.
> apache.tuscany.sca.implementation.java.impl.JavaImplementationImpl)
>      [java] INFO: Invoking operation - multiply
>      [java] Mar 23, 2008 8:18:43 PM component.implementation: AnotherCalculatorServiceComponent(org.
> apache.tuscany.sca.implementation.java.impl.JavaImplementationImpl)
>      [java] FINER: Invoking operation multiply with arguments 3.0, 2.0
>      [java] Mar 23, 2008 8:18:43 PM org.apache.tuscany.sca.implementation.java.invocation.JavaPolicy
> HandlingRuntimeWireProcessor process
>      [java] WARNING: No PolicyHandler registered for PolicySet - {http://tuscany.apache.org/xmlns/sc
> a/1.0}JaasPolicy
>      [java] Mar 23, 2008 8:18:43 PM org.apache.tuscany.sca.implementation.java.invocation.JavaPolicy
> HandlingRuntimeWireProcessor process
>      [java] WARNING: No PolicyHandler registered for PolicySet - {http://tuscany.apache.org/xmlns/sc
> a/1.0}JaasPolicy
>      [java] Mar 23, 2008 8:18:43 PM component.implementation: MultiplyServiceComponent(org.apache.tu
> scany.sca.implementation.java.impl.JavaImplementationImpl)
>      [java] INFO: Invoking operation - multiply
>      [java] Mar 23, 2008 8:18:43 PM component.implementation: MultiplyServiceComponent(org.apache.tu
> scany.sca.implementation.java.impl.JavaImplementationImpl)
>      [java] FINER: Invoking operation multiply with arguments 3.0, 2.0
>      [java] Mar 23, 2008 8:18:43 PM component.implementation: MultiplyServiceComponent(org.apache.tu
> scany.sca.implementation.java.impl.JavaImplementationImpl)
>      [java] INFO: Returned from operation - multiply
>      [java] Mar 23, 2008 8:18:43 PM component.implementation: MultiplyServiceComponent(org.apache.tu
> scany.sca.implementation.java.impl.JavaImplementationImpl)
>      [java] 3 * 2=6.0
>      [java] FINER: Returning from operation multiply with return value 6
>      [java] Mar 23, 2008 8:18:43 PM component.implementation: AnotherCalculatorServiceComponent(org.
> apache.tuscany.sca.implementation.java.impl.JavaImplementationImpl)
>      [java] INFO: Returned from operation - multiply
>      [java] Mar 23, 2008 8:18:43 PM component.implementation: AnotherCalculatorServiceComponent(org.
> apache.tuscany.sca.implementation.java.impl.JavaImplementationImpl)
>      [java] FINER: Returning from operation multiply with return value 6
>      [java] Mar 23, 2008 8:18:43 PM component.implementation: AnotherCalculatorServiceComponent(org.
> apache.tuscany.sca.implementation.java.impl.JavaImplementationImpl)
>      [java] INFO: Invoking operation - divide
>      [java] Mar 23, 2008 8:18:43 PM component.implementation: AnotherCalculatorServiceComponent(org.
> apache.tuscany.sca.implementation.java.impl.JavaImplementationImpl)
>      [java] FINER: Invoking operation divide with arguments 3.0, 2.0
>      [java] Mar 23, 2008 8:18:43 PM component.implementation: DivideServiceComponent(org.apache.tusc
> any.sca.implementation.java.impl.JavaImplementationImpl)
>      [java] INFO: Invoking operation - divide
>      [java] Mar 23, 2008 8:18:43 PM component.implementation: DivideServiceComponent(org.apache.tusc
> any.sca.implementation.java.impl.JavaImplementationImpl)
>      [java] FINER: Invoking operation divide with arguments 3.0, 2.0
>      [java] Mar 23, 2008 8:18:43 PM component.implementation: DivideServiceComponent(org.apache.tusc
> any.sca.implementation.java.impl.JavaImplementationImpl)
>      [java] INFO: Returned from operation - divide
>      [java] Mar 23, 2008 8:18:43 PM component.implementation: DivideServiceComponent(org.apache.tusc
> any.sca.implementation.java.impl.JavaImplementationImpl)
>      [java] FINER: Returning from operation divide with return value 1.5
>      [java] Mar 23, 2008 8:18:43 PM component.implementation: AnotherCalculatorServiceComponent(org.
> apache.tuscany.sca.implementation.java.impl.JavaImplementationImpl)
>      [java] INFO: Returned from operation - divide
>      [java] Mar 23, 2008 8:18:43 PM component.implementation: AnotherCalculatorServiceComponent(org.
> apache.tuscany.sca.implementation.java.impl.JavaImplementationImpl)
>      [java] FINER: Returning from operation divide with return value 1.5
>      [java] 3 / 2=1.5

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


---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org