Hi,

 

If Node is created with composite as a string , I mean something like
below. All policy intents are not recognized. I modified "
policy-security-token" itest  to load composite as a string, test is
throwing with exception PolicyConfigurationException.

 

private static String composite1 = "xxxxx";

             scaNodeFactory = SCANodeFactory.newInstance();

            String contribName1 = "HelloWorldService" +
"-contribution.xml";

                  node =
scaNodeFactory.createSCANode("HelloWorldService", composite1,new
SCAContribution("",""));

                  node.start();

 

The following is the exception. Could you help me on avoiding this
exception?

 

May 24, 2010 6:33:26 PM org.apache.tuscany.sca.node.impl.NodeImpl <init>

INFO: Creating node: HelloWorldService

May 24, 2010 6:33:26 PM org.apache.tuscany.sca.node.impl.NodeImpl <init>

INFO: Loading composite: HelloWorldService

May 24, 2010 6:33:27 PM org.apache.tuscany.sca.node.impl.NodeImpl
configureNode

INFO: Loading contribution:
file:/C:/development/source/tuscany-sca-1.6-src/itest/policy-security-to
ken/

May 24, 2010 6:33:27 PM
org.apache.tuscany.sca.assembly.builder.impl.CompositePolicyBuilderImpl

SEVERE: Policy Related Exception occured due to :
org.apache.tuscany.sca.assembly.builder.impl.PolicyConfigurationExceptio
n: The are unfulfilled intents for binding in reference - helloworldWS

Unfulfilled Intents =
[{http://www.osoa.org/xmlns/sca/1.0}authentication]

May 24, 2010 6:33:27 PM
org.apache.tuscany.sca.assembly.builder.impl.CompositePolicyBuilderImpl

SEVERE: Policy Related Exception occured due to :
org.apache.tuscany.sca.assembly.builder.impl.PolicyConfigurationExceptio
n: The are unfulfilled intents for binding in reference - helloworldJMS

Unfulfilled Intents =
[{http://www.osoa.org/xmlns/sca/1.0}authentication]

May 24, 2010 6:33:27 PM
org.apache.tuscany.sca.assembly.builder.impl.CompositePolicyBuilderImpl

SEVERE: Policy Related Exception occured due to :
org.apache.tuscany.sca.assembly.builder.impl.PolicyConfigurationExceptio
n: The following are unfulfilled intents for binding in service -
HelloWorldService

Unfulfilled Intents =
[{http://www.osoa.org/xmlns/sca/1.0}authentication]

May 24, 2010 6:33:27 PM
org.apache.tuscany.sca.assembly.builder.impl.CompositePolicyBuilderImpl

SEVERE: Policy Related Exception occured due to :
org.apache.tuscany.sca.assembly.builder.impl.PolicyConfigurationExceptio
n: The following are unfulfilled intents for binding in service -
HelloWorldService

Unfulfilled Intents =
[{http://www.osoa.org/xmlns/sca/1.0}authentication]

May 24, 2010 6:33:27 PM
org.apache.tuscany.sca.assembly.builder.DefaultEndpointBuilder

SEVERE: Policy Related Exception occured due to :
org.apache.tuscany.sca.assembly.builder.impl.PolicyConfigurationExceptio
n: The are unfulfilled intents for binding in reference - helloworldWS

Unfulfilled Intents =
[{http://www.osoa.org/xmlns/sca/1.0}authentication]

org.osoa.sca.ServiceRuntimeException:
org.apache.tuscany.sca.monitor.MonitorRuntimeException:
org.apache.tuscany.sca.assembly.builder.impl.PolicyConfigurationExceptio
n: The are unfulfilled intents for binding in reference - helloworldWS

Unfulfilled Intents =
[{http://www.osoa.org/xmlns/sca/1.0}authentication]

      at
org.apache.tuscany.sca.node.impl.NodeImpl.analyzeProblems(NodeImpl.java:
711)

      at
org.apache.tuscany.sca.node.impl.NodeImpl.configureNode(NodeImpl.java:63
4)

      at
org.apache.tuscany.sca.node.impl.NodeImpl.<init>(NodeImpl.java:447)

      at
org.apache.tuscany.sca.node.impl.NodeFactoryImpl.createSCANode(NodeFacto
ryImpl.java:52)

      at
org.apache.tuscany.sca.itest.TokenAuthTestCase.init(TokenAuthTestCase.ja
va:99)

      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)

      at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)

      at java.lang.reflect.Method.invoke(Method.java:597)

      at
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMet
hod.java:44)

      at
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallab
le.java:15)

      at
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMetho
d.java:41)

      at
org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.jav
a:27)

      at
org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:
31)

      at org.junit.runners.ParentRunner.run(ParentRunner.java:220)

      at
org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4Tes
tReference.java:46)

      at
org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.ja
va:38)

      at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTe
stRunner.java:467)

      at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTe
stRunner.java:683)

      at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRun
ner.java:390)

      at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRu
nner.java:197)

Caused by: org.apache.tuscany.sca.monitor.MonitorRuntimeException:
org.apache.tuscany.sca.assembly.builder.impl.PolicyConfigurationExceptio
n: The are unfulfilled intents for binding in reference - helloworldWS

Unfulfilled Intents =
[{http://www.osoa.org/xmlns/sca/1.0}authentication]

      ... 21 more

Caused by:
org.apache.tuscany.sca.assembly.builder.impl.PolicyConfigurationExceptio
n: The are unfulfilled intents for binding in reference - helloworldWS

Unfulfilled Intents =
[{http://www.osoa.org/xmlns/sca/1.0}authentication]

      at
org.apache.tuscany.sca.assembly.builder.impl.PolicyConfigurationUtil.det
ermineApplicableDomainPolicySets(PolicyConfigurationUtil.java:550)

      at
org.apache.tuscany.sca.assembly.builder.impl.PolicyConfigurationUtil.det
ermineApplicableBindingPolicySets(PolicyConfigurationUtil.java:525)

      at
org.apache.tuscany.sca.assembly.builder.impl.BaseWireBuilderImpl.compute
Policies(BaseWireBuilderImpl.java:1064)

      at
org.apache.tuscany.sca.assembly.builder.impl.CompositePolicyBuilderImpl.
build(CompositePolicyBuilderImpl.java:45)

      at
org.apache.tuscany.sca.assembly.builder.impl.CompositeBuilderImpl.build(
CompositeBuilderImpl.java:241)

      at
org.apache.tuscany.sca.node.impl.RuntimeBootStrapper.buildComposite(Runt
imeBootStrapper.java:255)

      at
org.apache.tuscany.sca.node.impl.NodeImpl.configureNode(NodeImpl.java:63
2)

      ... 19 more

 

 

Regards

Raman

Reply via email to