Regards
Raman
-----Original Message-----
From: Simon Nash [mailto:[email protected]]
Sent: Monday, May 24, 2010 8:29 PM
To: [email protected]
Subject: Re: PolicyConfigurationException: The are unfulfilled intents
for binding in reference
Malisetti, Ramanjaneyulu wrote:
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?
This message means that there is no policySet in your definitions.xml
file that fulfils the "authentication" intent.
Simon
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.PolicyConfigurationExcepti
on_:
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.PolicyConfigurationExcepti
on_:
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.PolicyConfigurationExcepti
on_:
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.PolicyConfigurationExcepti
on_:
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.PolicyConfigurationExcepti
on_:
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.PolicyConfigurationExcepti
on_:
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:6
34_)
at
org.apache.tuscany.sca.node.impl.NodeImpl.<init>(_NodeImpl.java:447_)
at
org.apache.tuscany.sca.node.impl.NodeFactoryImpl.createSCANode(_NodeFact
oryImpl.java:52_)
at
org.apache.tuscany.sca.itest.TokenAuthTestCase.init(_TokenAuthTestCase.j
ava:99_)
at sun.reflect.NativeMethodAccessorImpl.invoke0(_Native Method_)
at
sun.reflect.NativeMethodAccessorImpl.invoke(_NativeMethodAccessorImpl.ja
va:39_)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(_DelegatingMethodAccesso
rImpl.java:25_)
at java.lang.reflect.Method.invoke(_Method.java:597_)
at
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(_FrameworkMe
thod.java:44_)
at
org.junit.internal.runners.model.ReflectiveCallable.run(_ReflectiveCalla
ble.java:15_)
at
org.junit.runners.model.FrameworkMethod.invokeExplosively(_FrameworkMeth
od.java:41_)
at
org.junit.internal.runners.statements.RunBefores.evaluate(_RunBefores.ja
va: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(_JUnit4Te
stReference.java:46_)
at
org.eclipse.jdt.internal.junit.runner.TestExecution.run(_TestExecution.j
ava:38_)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(_RemoteT
estRunner.java:467_)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(_RemoteT
estRunner.java:683_)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(_RemoteTestRu
nner.java:390_)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(_RemoteTestR
unner.java:197_)
Caused by: _org.apache.tuscany.sca.monitor.MonitorRuntimeException_:
_org.apache.tuscany.sca.assembly.builder.impl.PolicyConfigurationExcepti
on_:
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.PolicyConfigurationExcepti
on_:
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(_Run
timeBootStrapper.java:255_)
at
org.apache.tuscany.sca.node.impl.NodeImpl.configureNode(_NodeImpl.java:6
32_)
... 19 more
Regards
Raman