Uploaded image for project: 'Tuscany'
  1. Tuscany
  2. TUSCANY-2125

Calculator-implementation-policies, SCA 1.2 RC1 Fails

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • Java-SCA-1.2
    • Java SCA Samples
    • None
    • windows xp, java 5

    Description

      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

      Attachments

        Activity

          People

            svkrish S Venkatakrishnan
            hmahbod Haleh Mahbod
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: