You are viewing a plain text version of this content. The canonical link for it is here.
Posted to muse-user@ws.apache.org by Gul Onural <on...@nortel.com> on 2007/07/06 21:05:09 UTC

DestinationUnreachable

Hi,
 
I am going through the producer/consumer example at
http://www.ibm.com/developerworks/autonomic/library/ac-musewsn2.html
<http://www.ibm.com/developerworks/autonomic/library/ac-musewsn2.html> .
I modified wsn-consumer and wsn-producer as instructed in the article
and I have created topics declaratively in the WsResources.rmd.
And also modified the WsnTestClient to publish messages with the new
topics.
 
But when I run the WsnTest client I am receiving error :
ID = 'DestinationUnreachable'] There is no resource available at the
given EPR:
 
I am fairly new to Muse. Can you help  me understand what is wrong ? 
 
What is the best way to debug this kind of problems ? Where should I
start ?
 
Gul
 
 
[CLIENT TRACE] SOAP envelope contents (outgoing):
 
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope
<http://www.w3.org/2003/05/soap-envelope> ">
    <soap:Header>
        <wsa:To
xmlns:wsa="http://www.w3.org/2005/08/addressing">http://47.128.22.193:80
80/wsn-producer/services/WsRe
<http://www.w3.org/2005/08/addressing">http://47.128.22.193:8080/wsn-pro
ducer/services/WsRe> 
source</wsa:To>
        <wsa:Action
xmlns:wsa="http://www.w3.org/2005/08/addressing">http://docs.oasis-open.
org/wsn/bw-2/Notification
<http://www.w3.org/2005/08/addressing">http://docs.oasis-open.org/wsn/bw
-2/Notification> 
Producer/SubscribeRequest</wsa:Action>
        <wsa:MessageID
xmlns:wsa="http://www.w3.org/2005/08/addressing">uuid:5b4e5e64-c90f-9d6d
-2a4e-34441d9dfd54</ws
<http://www.w3.org/2005/08/addressing">uuid:5b4e5e64-c90f-9d6d-2a4e-3444
1d9dfd54</ws> 
a:MessageID>
        <wsa:From xmlns:wsa="http://www.w3.org/2005/08/addressing
<http://www.w3.org/2005/08/addressing> ">
 
<wsa:Address>http://www.w3.org/2005/08/addressing/role/anonymous</wsa:Ad
dress>
        </wsa:From>
    </soap:Header>
    <soap:Body>
        <wsnt:Subscribe xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2
<http://docs.oasis-open.org/wsn/b-2> ">
            <wsnt:ConsumerReference>
                <wsa:Address
xmlns:wsa="http://www.w3.org/2005/08/addressing">http://47.128.22.193:80
80/wsn-consumer/
<http://www.w3.org/2005/08/addressing">http://47.128.22.193:8080/wsn-con
sumer/> 
services/consumer</wsa:Address>
            </wsnt:ConsumerReference>
            <wsnt:Filter>
                <wsnt:TopicExpression
 
Dialect="http://docs.oasis-open.org/wsn/t-1/TopicExpression/Concrete
<http://docs.oasis-open.org/wsn/t-1/TopicExpression/Concrete> "
xmlns:myns="http://my/topic <http://my/topic> 
/namespace">myns:GulMyFirstTopic</wsnt:TopicExpression>
            </wsnt:Filter>
        </wsnt:Subscribe>
    </soap:Body>
</soap:Envelope>
 
 
[CLIENT TRACE] SOAP envelope contents (incoming):
 
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope
<http://www.w3.org/2003/05/soap-envelope> ">
    <soap:Header>
        <wsa:To
xmlns:wsa="http://www.w3.org/2005/08/addressing">http://www.w3.org/2005/
08/addressing/role/anonymous
<http://www.w3.org/2005/08/addressing">http://www.w3.org/2005/08/address
ing/role/anonymous> <
/wsa:To>
        <wsa:Action
xmlns:wsa="http://www.w3.org/2005/08/addressing">http://www.w3.org/2005/
08/addressing/fault</wsa
<http://www.w3.org/2005/08/addressing">http://www.w3.org/2005/08/address
ing/fault</wsa> :
Action>
        <wsa:MessageID
xmlns:wsa="http://www.w3.org/2005/08/addressing">uuid:95dcca31-d9c6-1b73
-1ebd-4dcf92093f60</ws
<http://www.w3.org/2005/08/addressing">uuid:95dcca31-d9c6-1b73-1ebd-4dcf
92093f60</ws> 
a:MessageID>
        <wsa:RelatesTo RelationshipType="wsa:Reply"
xmlns:wsa="http://www.w3.org/2005/08/addressing">uuid:5b4e5e64-c9
<http://www.w3.org/2005/08/addressing">uuid:5b4e5e64-c9> 
0f-9d6d-2a4e-34441d9dfd54</wsa:RelatesTo>
        <wsa:From xmlns:wsa="http://www.w3.org/2005/08/addressing
<http://www.w3.org/2005/08/addressing> ">
 
<wsa:Address>http://47.128.22.193:8080/wsn-producer/services/WsResource<
/wsa:Address>
        </wsa:From>
    </soap:Header>
    <soap:Body>
        <soap:Fault>
            <soap:Code>
                <soap:Value>soap:Sender</soap:Value>
                <soap:Subcode
xmlns:wsa="http://www.w3.org/2005/08/addressing
<http://www.w3.org/2005/08/addressing> ">
                    <soap:Value>wsa:DestinationUnreachable</soap:Value>
                </soap:Subcode>
            </soap:Code>
            <soap:Reason>
                <soap:Text>[ID = 'DestinationUnreachable'] There is no
resource available at the given EPR:
 
&lt;wsa:EndpointReference
xmlns:wsa="http://www.w3.org/2005/08/addressing"&gt
<http://www.w3.org/2005/08/addressing"&gt> ;
 
&lt;wsa:Address&gt;http://47.128.22.193:8080/wsn-producer/services/WsRes
ource&lt;/wsa:Address&gt;
&lt;/wsa:EndpointReference&gt;
 
The existing EPRs hosted by this endpoint are:
</soap:Text>
            </soap:Reason>
        </soap:Fault>
    </soap:Body>
</soap:Envelope>
 
org.apache.muse.ws.addressing.soap.SoapFault: [ID =
'DestinationUnreachable'] There is no resource available at the g
iven EPR:
 
<wsa:EndpointReference xmlns:wsa="http://www.w3.org/2005/08/addressing
<http://www.w3.org/2005/08/addressing> ">
 
<wsa:Address>http://47.128.22.193:8080/wsn-producer/services/WsResource<
/wsa:Address>
</wsa:EndpointReference>
 
The existing EPRs hosted by this endpoint are:
        at
org.apache.muse.core.AbstractResourceClient.invoke(AbstractResourceClien
t.java:298)
        at
org.apache.muse.core.AbstractResourceClient.invoke(AbstractResourceClien
t.java:254)
        at
org.apache.muse.ws.notification.remote.NotificationProducerClient.subscr
ibe(NotificationProducerClient.jav
a:97)
        at org.apache.muse.test.wsn.WsnTestClient.main(Unknown Source)
 
D:\apache-tomcat-5.5.15\webapps\wsn-consumer\WEB-INF\classes>

 


RE: DestinationUnreachable

Posted by Gul Onural <on...@nortel.com>.

The only thing under the router-entries is resource-instance-1.xml file.
The content of the resource-instance-1.xml is :

<?xml version="1.0" encoding="UTF-8"?>
<wsa:ReferenceParameters
xmlns:wsa="http://www.w3.org/2005/08/addressing"/>

So, I don't see any initial subscription manager and the notification
producer endpoints defined
there.

Gul

-----Original Message-----
From: Balan Subramanian [mailto:bsubram@us.ibm.com] 
Sent: Friday, July 06, 2007 3:31 PM
To: muse-user@ws.apache.org
Cc: muse-user@ws.apache.org
Subject: Re: DestinationUnreachable

Please check the router-entries folder to see if any initial instances
of the subscription manager and the notification producer endpoint have
been defined.

Balan Subramanian
Autonomic Computing, IBM, RTP, NC
919.543.0197 | bsubram@us.ibm.com






"Gul Onural" <on...@nortel.com> 
07/06/2007 03:05 PM
Please respond to
muse-user@ws.apache.org


To
<mu...@ws.apache.org>
cc

Subject
DestinationUnreachable






Hi,
 
I am going through the producer/consumer example at
http://www.ibm.com/developerworks/autonomic/library/ac-musewsn2.html
<http://www.ibm.com/developerworks/autonomic/library/ac-musewsn2.html> .
I modified wsn-consumer and wsn-producer as instructed in the article
and I have created topics declaratively in the WsResources.rmd.
And also modified the WsnTestClient to publish messages with the new
topics.
 
But when I run the WsnTest client I am receiving error :
ID = 'DestinationUnreachable'] There is no resource available at the
given EPR:
 
I am fairly new to Muse. Can you help  me understand what is wrong ? 
 
What is the best way to debug this kind of problems ? Where should I
start ?
 
Gul
 
 
[CLIENT TRACE] SOAP envelope contents (outgoing):
 
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope
<http://www.w3.org/2003/05/soap-envelope> ">
    <soap:Header>
        <wsa:To
xmlns:wsa="http://www.w3.org/2005/08/addressing">http://47.128.22.193:80
80/wsn-producer/services/WsRe
<http://www.w3.org/2005/08/addressing">http://47.128.22.193:8080/wsn-pro
ducer/services/WsRe> 
source</wsa:To>
        <wsa:Action
xmlns:wsa="http://www.w3.org/2005/08/addressing">http://docs.oasis-open.
org/wsn/bw-2/Notification
<http://www.w3.org/2005/08/addressing">http://docs.oasis-open.org/wsn/bw
-2/Notification> 
Producer/SubscribeRequest</wsa:Action>
        <wsa:MessageID
xmlns:wsa="http://www.w3.org/2005/08/addressing">uuid:5b4e5e64-c90f-9d6d
-2a4e-34441d9dfd54</ws
<http://www.w3.org/2005/08/addressing">uuid:5b4e5e64-c90f-9d6d-2a4e-3444
1d9dfd54</ws> 
a:MessageID>
        <wsa:From xmlns:wsa="http://www.w3.org/2005/08/addressing
<http://www.w3.org/2005/08/addressing> ">
 
<wsa:Address>http://www.w3.org/2005/08/addressing/role/anonymous</wsa:Ad
dress>
        </wsa:From>
    </soap:Header>
    <soap:Body>
        <wsnt:Subscribe xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2
<http://docs.oasis-open.org/wsn/b-2> ">
            <wsnt:ConsumerReference>
                <wsa:Address
xmlns:wsa="http://www.w3.org/2005/08/addressing">http://47.128.22.193:80
80/wsn-consumer/
<http://www.w3.org/2005/08/addressing">http://47.128.22.193:8080/wsn-con
sumer/> 
services/consumer</wsa:Address>
            </wsnt:ConsumerReference>
            <wsnt:Filter>
                <wsnt:TopicExpression
 
Dialect="http://docs.oasis-open.org/wsn/t-1/TopicExpression/Concrete
<http://docs.oasis-open.org/wsn/t-1/TopicExpression/Concrete> "
xmlns:myns="http://my/topic <http://my/topic> 
/namespace">myns:GulMyFirstTopic</wsnt:TopicExpression>
            </wsnt:Filter>
        </wsnt:Subscribe>
    </soap:Body>
</soap:Envelope>
 
 
[CLIENT TRACE] SOAP envelope contents (incoming):
 
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope
<http://www.w3.org/2003/05/soap-envelope> ">
    <soap:Header>
        <wsa:To
xmlns:wsa="http://www.w3.org/2005/08/addressing">http://www.w3.org/2005/
08/addressing/role/anonymous
<http://www.w3.org/2005/08/addressing">http://www.w3.org/2005/08/address
ing/role/anonymous> <
/wsa:To>
        <wsa:Action
xmlns:wsa="http://www.w3.org/2005/08/addressing">http://www.w3.org/2005/
08/addressing/fault</wsa
<http://www.w3.org/2005/08/addressing">http://www.w3.org/2005/08/address
ing/fault</wsa> :
Action>
        <wsa:MessageID
xmlns:wsa="http://www.w3.org/2005/08/addressing">uuid:95dcca31-d9c6-1b73
-1ebd-4dcf92093f60</ws
<http://www.w3.org/2005/08/addressing">uuid:95dcca31-d9c6-1b73-1ebd-4dcf
92093f60</ws> 
a:MessageID>
        <wsa:RelatesTo RelationshipType="wsa:Reply"
xmlns:wsa="http://www.w3.org/2005/08/addressing">uuid:5b4e5e64-c9
<http://www.w3.org/2005/08/addressing">uuid:5b4e5e64-c9> 
0f-9d6d-2a4e-34441d9dfd54</wsa:RelatesTo>
        <wsa:From xmlns:wsa="http://www.w3.org/2005/08/addressing
<http://www.w3.org/2005/08/addressing> ">
 
<wsa:Address>http://47.128.22.193:8080/wsn-producer/services/WsResource<
/wsa:Address>
        </wsa:From>
    </soap:Header>
    <soap:Body>
        <soap:Fault>
            <soap:Code>
                <soap:Value>soap:Sender</soap:Value>
                <soap:Subcode
xmlns:wsa="http://www.w3.org/2005/08/addressing
<http://www.w3.org/2005/08/addressing> ">
                    <soap:Value>wsa:DestinationUnreachable</soap:Value>
                </soap:Subcode>
            </soap:Code>
            <soap:Reason>
                <soap:Text>[ID = 'DestinationUnreachable'] There is no
resource available at the given EPR:
 
&lt;wsa:EndpointReference
xmlns:wsa="http://www.w3.org/2005/08/addressing"&gt
<http://www.w3.org/2005/08/addressing"&gt> ;
 
&lt;wsa:Address&gt;http://47.128.22.193:8080/wsn-producer/services/WsRes
ource&lt;/wsa:Address&gt;
&lt;/wsa:EndpointReference&gt;
 
The existing EPRs hosted by this endpoint are:
</soap:Text>
            </soap:Reason>
        </soap:Fault>
    </soap:Body>
</soap:Envelope>
 
org.apache.muse.ws.addressing.soap.SoapFault: [ID =
'DestinationUnreachable'] There is no resource available at the g
iven EPR:
 
<wsa:EndpointReference xmlns:wsa="http://www.w3.org/2005/08/addressing
<http://www.w3.org/2005/08/addressing> ">
 
<wsa:Address>http://47.128.22.193:8080/wsn-producer/services/WsResource<
/wsa:Address>
</wsa:EndpointReference>
 
The existing EPRs hosted by this endpoint are:
        at
org.apache.muse.core.AbstractResourceClient.invoke(AbstractResourceClien
t.java:298)
        at
org.apache.muse.core.AbstractResourceClient.invoke(AbstractResourceClien
t.java:254)
        at
org.apache.muse.ws.notification.remote.NotificationProducerClient.subscr
ibe(NotificationProducerClient.jav
a:97)
        at org.apache.muse.test.wsn.WsnTestClient.main(Unknown Source)
 
D:\apache-tomcat-5.5.15\webapps\wsn-consumer\WEB-INF\classes>

 



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


RE: DestinationUnreachable

Posted by Saurabh Dravid <sa...@in.ibm.com>.
Hi,

We have provided a help document to create a notification producer and 
consumer resources using Eclipse TPTP BTM WSDM Tooling. Please try out the 
help document and let us know if you are still facing the same problem. 
Help document is available on this link.

http://wiki.eclipse.org/Create_notification_producer_and_consumer_using_tooling


To overcome the problem about the Notification producer resource 
initialization, you have to create following class to implement Muse 
Producer capability.

public class SimpleNotificationProducerImpl extends 
SimpleNotificationProducer implements NotificationProducer
{ 
        public void setTopicExpression(Element topicExpression)
        {
                // This should be empty 
        } 
}

and then you have to specify this class in muse.xml for Notification 
Producer Capability.

thanks 

With best regards,

Saurabh Dravid,
Staff Software Engineer - Autonomic Computing,
India Software Lab, IBM Software Group
Embassy Golf Links, 'B' Block, 4th Floor, Bangalore
Phone: +91-80-51055494, e-mail: sadravid@in.ibm.com
About India Software Lab 





"Gul Onural" <on...@nortel.com> 
09/07/2007 21:58
Please respond to
muse-user@ws.apache.org


To
<mu...@ws.apache.org>
cc

Subject
RE: DestinationUnreachable







I have checked the following, and here are my findings :

1.) The wsn-consumer.war is deployed. The server the application is
loaded is 47.128.22.193 with port 8080 open.
2.) muse.xml has the "consumer" resource listed.
3.) There is a router-entry for the "consumer" resource. What I am
seeing is a directory under the router-entries called "consumer". And
under this directory there is an xml file called
resource-instance-1.xml. The content of this file is  :
<?xml version="1.0" encoding="UTF-8"?>
<wsa:ReferenceParameters
xmlns:wsa="http://www.w3.org/2005/08/addressing"/>

Is this what I should expect ?

4.) I have noticed an excaption in the producer (shown below), after the
resource has been initialized.
I am not sure if this exception would cause "DestinationUnreachable"
exception on the consumer side.

Any thoughts ? By the way does anybody has an end-to-end working example
of the 
article
http://www.ibm.com/developerworks/autonomic/library/ac-musewsn2.html ?


Gul

Jul 9, 2007 11:42:21 AM org.apache.ws.muse.test.wsrf.MyCapabilityImpl$1
run
INFO: Waiting 10 seconds before sending message...
java.lang.RuntimeException: [ID = 'NoSetter'] The capability class class
org.apa
che.muse.ws.notification.impl.SimpleNotificationProducer does not have a
setter
method for property
'{http://docs.oasis-open.org/wsn/b-2}TopicExpression', so it
 cannot perform WSRP 'set' operations (delete, insert, update) on it.
        at
org.apache.muse.ws.resource.impl.AbstractWsResourceCapability.updateP
roperty(AbstractWsResourceCapability.java:386)
        at
org.apache.muse.ws.resource.impl.AbstractWsResourceCapability.insertP
roperty(AbstractWsResourceCapability.java:319)
        at
org.apache.muse.ws.resource.properties.impl.SimpleResourcePropertyCol
lection.insertResourceProperty(SimpleResourcePropertyCollection.java:703
)
        at
org.apache.muse.ws.resource.properties.impl.SimpleResourcePropertyCol
lection.insertResourceProperty(SimpleResourcePropertyCollection.java:669
)
        at
org.apache.muse.ws.resource.properties.impl.SimpleResourcePropertyCol
lection.addStaticValues(SimpleResourcePropertyCollection.java:262)
        at
org.apache.muse.ws.resource.properties.impl.SimpleResourcePropertyCol
lection.applyMetadata(SimpleResourcePropertyCollection.java:304)
        at
org.apache.muse.ws.resource.impl.SimpleWsResource.initialize(SimpleWs
Resource.java:219)
        at
org.apache.muse.core.routing.RouterFilePersistence.reloadResource(Rou
terFilePersistence.java:143)
        at
org.apache.muse.core.AbstractFilePersistence.reloadResources(Abstract
FilePersistence.java:414)
        at
org.apache.muse.core.AbstractFilePersistence.reload(AbstractFilePersi
stence.java:355)
        at
org.apache.muse.core.routing.SimpleResourceRouter.initialize(SimpleRe
sourceRouter.java:260)
        at
org.apache.muse.core.platform.AbstractIsolationLayer.initialize(Abstr
actIsolationLayer.java:180)
        at
org.apache.muse.core.platform.mini.MiniServlet.createIsolationLayer(M
iniServlet.java:55)
        at
org.apache.muse.core.platform.mini.MiniServlet.doPost(MiniServlet.jav
a:69)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:252)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:173)
        at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:213)
        at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:178)
        at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:126)
        at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:105)
        at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:107)
        at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
a:148)
        at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
:869)
        at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.p
rocessConnection(Http11BaseProtocol.java:667)
        at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpo
int.java:527)
        at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFol
lowerWorkerThread.java:80)
        at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
ool.java:684)
        at java.lang.Thread.run(Thread.java:595)
Jul 9, 2007 11:42:31 AM org.apache.ws.muse.test.wsrf.MyCapabilityImpl$1
run
INFO: Sending message to consumers...

 

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



RE: DestinationUnreachable

Posted by Gul Onural <on...@nortel.com>.
I have checked the following, and here are my findings :

1.) The wsn-consumer.war is deployed. The server the application is
loaded is 47.128.22.193 with port 8080 open.
2.) muse.xml has the "consumer" resource listed.
3.) There is a router-entry for the "consumer" resource. What I am
seeing is a directory under the router-entries called "consumer". And
under this directory there is an xml file called
resource-instance-1.xml. The content of this file is  :
<?xml version="1.0" encoding="UTF-8"?>
<wsa:ReferenceParameters
xmlns:wsa="http://www.w3.org/2005/08/addressing"/>

Is this what I should expect ?

4.) I have noticed an excaption in the producer (shown below), after the
resource has been initialized.
I am not sure if this exception would cause "DestinationUnreachable"
exception on the consumer side.

Any thoughts ? By the way does anybody has an end-to-end working example
of the 
article
http://www.ibm.com/developerworks/autonomic/library/ac-musewsn2.html ?


Gul

Jul 9, 2007 11:42:21 AM org.apache.ws.muse.test.wsrf.MyCapabilityImpl$1
run
INFO: Waiting 10 seconds before sending message...
java.lang.RuntimeException: [ID = 'NoSetter'] The capability class class
org.apa
che.muse.ws.notification.impl.SimpleNotificationProducer does not have a
setter
method for property
'{http://docs.oasis-open.org/wsn/b-2}TopicExpression', so it
 cannot perform WSRP 'set' operations (delete, insert, update) on it.
        at
org.apache.muse.ws.resource.impl.AbstractWsResourceCapability.updateP
roperty(AbstractWsResourceCapability.java:386)
        at
org.apache.muse.ws.resource.impl.AbstractWsResourceCapability.insertP
roperty(AbstractWsResourceCapability.java:319)
        at
org.apache.muse.ws.resource.properties.impl.SimpleResourcePropertyCol
lection.insertResourceProperty(SimpleResourcePropertyCollection.java:703
)
        at
org.apache.muse.ws.resource.properties.impl.SimpleResourcePropertyCol
lection.insertResourceProperty(SimpleResourcePropertyCollection.java:669
)
        at
org.apache.muse.ws.resource.properties.impl.SimpleResourcePropertyCol
lection.addStaticValues(SimpleResourcePropertyCollection.java:262)
        at
org.apache.muse.ws.resource.properties.impl.SimpleResourcePropertyCol
lection.applyMetadata(SimpleResourcePropertyCollection.java:304)
        at
org.apache.muse.ws.resource.impl.SimpleWsResource.initialize(SimpleWs
Resource.java:219)
        at
org.apache.muse.core.routing.RouterFilePersistence.reloadResource(Rou
terFilePersistence.java:143)
        at
org.apache.muse.core.AbstractFilePersistence.reloadResources(Abstract
FilePersistence.java:414)
        at
org.apache.muse.core.AbstractFilePersistence.reload(AbstractFilePersi
stence.java:355)
        at
org.apache.muse.core.routing.SimpleResourceRouter.initialize(SimpleRe
sourceRouter.java:260)
        at
org.apache.muse.core.platform.AbstractIsolationLayer.initialize(Abstr
actIsolationLayer.java:180)
        at
org.apache.muse.core.platform.mini.MiniServlet.createIsolationLayer(M
iniServlet.java:55)
        at
org.apache.muse.core.platform.mini.MiniServlet.doPost(MiniServlet.jav
a:69)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:252)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:173)
        at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:213)
        at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:178)
        at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:126)
        at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:105)
        at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:107)
        at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
a:148)
        at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
:869)
        at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.p
rocessConnection(Http11BaseProtocol.java:667)
        at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpo
int.java:527)
        at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFol
lowerWorkerThread.java:80)
        at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
ool.java:684)
        at java.lang.Thread.run(Thread.java:595)
Jul 9, 2007 11:42:31 AM org.apache.ws.muse.test.wsrf.MyCapabilityImpl$1
run
INFO: Sending message to consumers...

 

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


RE: DestinationUnreachable

Posted by "Vinh Nguyen (vinguye2)" <vi...@cisco.com>.
The producer is loaded fine.  The problem seems to be that the consumer
does not exist.  Make sure the consumer app is started properly and that
it is reachable by the URI you specified in the EPR passed to
Subscribe().

I see you are passing this consumer URI:
http://47.128.22.193:8080/wsn-consumer/services/consumer

So you should have deployed a wsn-consumer.war that contains a resource
named "consumer".  The server which this app is loaded on should be
47.128.22.193 with port 8080 open.  Make sure your muse.xml in this app
has this resource listed, and that you have the proper router-entry for
it.


-----Original Message-----
From: Gul Onural [mailto:onural@nortel.com] 
Sent: Friday, July 06, 2007 12:05 PM
To: muse-user@ws.apache.org
Subject: DestinationUnreachable

Hi,
 
I am going through the producer/consumer example at
http://www.ibm.com/developerworks/autonomic/library/ac-musewsn2.html
<http://www.ibm.com/developerworks/autonomic/library/ac-musewsn2.html> .
I modified wsn-consumer and wsn-producer as instructed in the article
and I have created topics declaratively in the WsResources.rmd.
And also modified the WsnTestClient to publish messages with the new
topics.
 
But when I run the WsnTest client I am receiving error :
ID = 'DestinationUnreachable'] There is no resource available at the
given EPR:
 
I am fairly new to Muse. Can you help  me understand what is wrong ? 
 
What is the best way to debug this kind of problems ? Where should I
start ?
 
Gul
 
 
[CLIENT TRACE] SOAP envelope contents (outgoing):
 
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope
<http://www.w3.org/2003/05/soap-envelope> ">
    <soap:Header>
        <wsa:To
xmlns:wsa="http://www.w3.org/2005/08/addressing">http://47.128.22.193:80
80/wsn-producer/services/WsRe
<http://www.w3.org/2005/08/addressing">http://47.128.22.193:8080/wsn-pro
ducer/services/WsRe>
source</wsa:To>
        <wsa:Action
xmlns:wsa="http://www.w3.org/2005/08/addressing">http://docs.oasis-open.
org/wsn/bw-2/Notification
<http://www.w3.org/2005/08/addressing">http://docs.oasis-open.org/wsn/bw
-2/Notification>
Producer/SubscribeRequest</wsa:Action>
        <wsa:MessageID
xmlns:wsa="http://www.w3.org/2005/08/addressing">uuid:5b4e5e64-c90f-9d6d
-2a4e-34441d9dfd54</ws
<http://www.w3.org/2005/08/addressing">uuid:5b4e5e64-c90f-9d6d-2a4e-3444
1d9dfd54</ws>
a:MessageID>
        <wsa:From xmlns:wsa="http://www.w3.org/2005/08/addressing
<http://www.w3.org/2005/08/addressing> ">
 
<wsa:Address>http://www.w3.org/2005/08/addressing/role/anonymous</wsa:Ad
dress>
        </wsa:From>
    </soap:Header>
    <soap:Body>
        <wsnt:Subscribe xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2
<http://docs.oasis-open.org/wsn/b-2> ">
            <wsnt:ConsumerReference>
                <wsa:Address
xmlns:wsa="http://www.w3.org/2005/08/addressing">http://47.128.22.193:80
80/wsn-consumer/
<http://www.w3.org/2005/08/addressing">http://47.128.22.193:8080/wsn-con
sumer/>
services/consumer</wsa:Address>
            </wsnt:ConsumerReference>
            <wsnt:Filter>
                <wsnt:TopicExpression
 
Dialect="http://docs.oasis-open.org/wsn/t-1/TopicExpression/Concrete
<http://docs.oasis-open.org/wsn/t-1/TopicExpression/Concrete> "
xmlns:myns="http://my/topic <http://my/topic>
/namespace">myns:GulMyFirstTopic</wsnt:TopicExpression>
            </wsnt:Filter>
        </wsnt:Subscribe>
    </soap:Body>
</soap:Envelope>
 
 
[CLIENT TRACE] SOAP envelope contents (incoming):
 
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope
<http://www.w3.org/2003/05/soap-envelope> ">
    <soap:Header>
        <wsa:To
xmlns:wsa="http://www.w3.org/2005/08/addressing">http://www.w3.org/2005/
08/addressing/role/anonymous
<http://www.w3.org/2005/08/addressing">http://www.w3.org/2005/08/address
ing/role/anonymous> <
/wsa:To>
        <wsa:Action
xmlns:wsa="http://www.w3.org/2005/08/addressing">http://www.w3.org/2005/
08/addressing/fault</wsa
<http://www.w3.org/2005/08/addressing">http://www.w3.org/2005/08/address
ing/fault</wsa> :
Action>
        <wsa:MessageID
xmlns:wsa="http://www.w3.org/2005/08/addressing">uuid:95dcca31-d9c6-1b73
-1ebd-4dcf92093f60</ws
<http://www.w3.org/2005/08/addressing">uuid:95dcca31-d9c6-1b73-1ebd-4dcf
92093f60</ws>
a:MessageID>
        <wsa:RelatesTo RelationshipType="wsa:Reply"
xmlns:wsa="http://www.w3.org/2005/08/addressing">uuid:5b4e5e64-c9
<http://www.w3.org/2005/08/addressing">uuid:5b4e5e64-c9>
0f-9d6d-2a4e-34441d9dfd54</wsa:RelatesTo>
        <wsa:From xmlns:wsa="http://www.w3.org/2005/08/addressing
<http://www.w3.org/2005/08/addressing> ">
 
<wsa:Address>http://47.128.22.193:8080/wsn-producer/services/WsResource<
/wsa:Address>
        </wsa:From>
    </soap:Header>
    <soap:Body>
        <soap:Fault>
            <soap:Code>
                <soap:Value>soap:Sender</soap:Value>
                <soap:Subcode
xmlns:wsa="http://www.w3.org/2005/08/addressing
<http://www.w3.org/2005/08/addressing> ">
                    <soap:Value>wsa:DestinationUnreachable</soap:Value>
                </soap:Subcode>
            </soap:Code>
            <soap:Reason>
                <soap:Text>[ID = 'DestinationUnreachable'] There is no
resource available at the given EPR:
 
&lt;wsa:EndpointReference
xmlns:wsa="http://www.w3.org/2005/08/addressing"&gt
<http://www.w3.org/2005/08/addressing"&gt> ;
 
&lt;wsa:Address&gt;http://47.128.22.193:8080/wsn-producer/services/WsRes
ource&lt;/wsa:Address&gt;
&lt;/wsa:EndpointReference&gt;
 
The existing EPRs hosted by this endpoint are:
</soap:Text>
            </soap:Reason>
        </soap:Fault>
    </soap:Body>
</soap:Envelope>
 
org.apache.muse.ws.addressing.soap.SoapFault: [ID =
'DestinationUnreachable'] There is no resource available at the g iven
EPR:
 
<wsa:EndpointReference xmlns:wsa="http://www.w3.org/2005/08/addressing
<http://www.w3.org/2005/08/addressing> ">
 
<wsa:Address>http://47.128.22.193:8080/wsn-producer/services/WsResource<
/wsa:Address>
</wsa:EndpointReference>
 
The existing EPRs hosted by this endpoint are:
        at
org.apache.muse.core.AbstractResourceClient.invoke(AbstractResourceClien
t.java:298)
        at
org.apache.muse.core.AbstractResourceClient.invoke(AbstractResourceClien
t.java:254)
        at
org.apache.muse.ws.notification.remote.NotificationProducerClient.subscr
ibe(NotificationProducerClient.jav
a:97)
        at org.apache.muse.test.wsn.WsnTestClient.main(Unknown Source)
 
D:\apache-tomcat-5.5.15\webapps\wsn-consumer\WEB-INF\classes>

 

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


Re: DestinationUnreachable

Posted by Balan Subramanian <bs...@us.ibm.com>.
Please check the router-entries folder to see if any initial instances of 
the subscription manager and the notification producer endpoint have been 
defined.

Balan Subramanian 
Autonomic Computing, IBM, RTP, NC
919.543.0197 | bsubram@us.ibm.com






"Gul Onural" <on...@nortel.com> 
07/06/2007 03:05 PM
Please respond to
muse-user@ws.apache.org


To
<mu...@ws.apache.org>
cc

Subject
DestinationUnreachable






Hi,
 
I am going through the producer/consumer example at
http://www.ibm.com/developerworks/autonomic/library/ac-musewsn2.html
<http://www.ibm.com/developerworks/autonomic/library/ac-musewsn2.html> .
I modified wsn-consumer and wsn-producer as instructed in the article
and I have created topics declaratively in the WsResources.rmd.
And also modified the WsnTestClient to publish messages with the new
topics.
 
But when I run the WsnTest client I am receiving error :
ID = 'DestinationUnreachable'] There is no resource available at the
given EPR:
 
I am fairly new to Muse. Can you help  me understand what is wrong ? 
 
What is the best way to debug this kind of problems ? Where should I
start ?
 
Gul
 
 
[CLIENT TRACE] SOAP envelope contents (outgoing):
 
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope
<http://www.w3.org/2003/05/soap-envelope> ">
    <soap:Header>
        <wsa:To
xmlns:wsa="http://www.w3.org/2005/08/addressing">http://47.128.22.193:80
80/wsn-producer/services/WsRe
<http://www.w3.org/2005/08/addressing">http://47.128.22.193:8080/wsn-pro
ducer/services/WsRe> 
source</wsa:To>
        <wsa:Action
xmlns:wsa="http://www.w3.org/2005/08/addressing">http://docs.oasis-open.
org/wsn/bw-2/Notification
<http://www.w3.org/2005/08/addressing">http://docs.oasis-open.org/wsn/bw
-2/Notification> 
Producer/SubscribeRequest</wsa:Action>
        <wsa:MessageID
xmlns:wsa="http://www.w3.org/2005/08/addressing">uuid:5b4e5e64-c90f-9d6d
-2a4e-34441d9dfd54</ws
<http://www.w3.org/2005/08/addressing">uuid:5b4e5e64-c90f-9d6d-2a4e-3444
1d9dfd54</ws> 
a:MessageID>
        <wsa:From xmlns:wsa="http://www.w3.org/2005/08/addressing
<http://www.w3.org/2005/08/addressing> ">
 
<wsa:Address>http://www.w3.org/2005/08/addressing/role/anonymous</wsa:Ad
dress>
        </wsa:From>
    </soap:Header>
    <soap:Body>
        <wsnt:Subscribe xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2
<http://docs.oasis-open.org/wsn/b-2> ">
            <wsnt:ConsumerReference>
                <wsa:Address
xmlns:wsa="http://www.w3.org/2005/08/addressing">http://47.128.22.193:80
80/wsn-consumer/
<http://www.w3.org/2005/08/addressing">http://47.128.22.193:8080/wsn-con
sumer/> 
services/consumer</wsa:Address>
            </wsnt:ConsumerReference>
            <wsnt:Filter>
                <wsnt:TopicExpression
 
Dialect="http://docs.oasis-open.org/wsn/t-1/TopicExpression/Concrete
<http://docs.oasis-open.org/wsn/t-1/TopicExpression/Concrete> "
xmlns:myns="http://my/topic <http://my/topic> 
/namespace">myns:GulMyFirstTopic</wsnt:TopicExpression>
            </wsnt:Filter>
        </wsnt:Subscribe>
    </soap:Body>
</soap:Envelope>
 
 
[CLIENT TRACE] SOAP envelope contents (incoming):
 
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope
<http://www.w3.org/2003/05/soap-envelope> ">
    <soap:Header>
        <wsa:To
xmlns:wsa="http://www.w3.org/2005/08/addressing">http://www.w3.org/2005/
08/addressing/role/anonymous
<http://www.w3.org/2005/08/addressing">http://www.w3.org/2005/08/address
ing/role/anonymous> <
/wsa:To>
        <wsa:Action
xmlns:wsa="http://www.w3.org/2005/08/addressing">http://www.w3.org/2005/
08/addressing/fault</wsa
<http://www.w3.org/2005/08/addressing">http://www.w3.org/2005/08/address
ing/fault</wsa> :
Action>
        <wsa:MessageID
xmlns:wsa="http://www.w3.org/2005/08/addressing">uuid:95dcca31-d9c6-1b73
-1ebd-4dcf92093f60</ws
<http://www.w3.org/2005/08/addressing">uuid:95dcca31-d9c6-1b73-1ebd-4dcf
92093f60</ws> 
a:MessageID>
        <wsa:RelatesTo RelationshipType="wsa:Reply"
xmlns:wsa="http://www.w3.org/2005/08/addressing">uuid:5b4e5e64-c9
<http://www.w3.org/2005/08/addressing">uuid:5b4e5e64-c9> 
0f-9d6d-2a4e-34441d9dfd54</wsa:RelatesTo>
        <wsa:From xmlns:wsa="http://www.w3.org/2005/08/addressing
<http://www.w3.org/2005/08/addressing> ">
 
<wsa:Address>http://47.128.22.193:8080/wsn-producer/services/WsResource<
/wsa:Address>
        </wsa:From>
    </soap:Header>
    <soap:Body>
        <soap:Fault>
            <soap:Code>
                <soap:Value>soap:Sender</soap:Value>
                <soap:Subcode
xmlns:wsa="http://www.w3.org/2005/08/addressing
<http://www.w3.org/2005/08/addressing> ">
                    <soap:Value>wsa:DestinationUnreachable</soap:Value>
                </soap:Subcode>
            </soap:Code>
            <soap:Reason>
                <soap:Text>[ID = 'DestinationUnreachable'] There is no
resource available at the given EPR:
 
&lt;wsa:EndpointReference
xmlns:wsa="http://www.w3.org/2005/08/addressing"&gt
<http://www.w3.org/2005/08/addressing"&gt> ;
 
&lt;wsa:Address&gt;http://47.128.22.193:8080/wsn-producer/services/WsRes
ource&lt;/wsa:Address&gt;
&lt;/wsa:EndpointReference&gt;
 
The existing EPRs hosted by this endpoint are:
</soap:Text>
            </soap:Reason>
        </soap:Fault>
    </soap:Body>
</soap:Envelope>
 
org.apache.muse.ws.addressing.soap.SoapFault: [ID =
'DestinationUnreachable'] There is no resource available at the g
iven EPR:
 
<wsa:EndpointReference xmlns:wsa="http://www.w3.org/2005/08/addressing
<http://www.w3.org/2005/08/addressing> ">
 
<wsa:Address>http://47.128.22.193:8080/wsn-producer/services/WsResource<
/wsa:Address>
</wsa:EndpointReference>
 
The existing EPRs hosted by this endpoint are:
        at
org.apache.muse.core.AbstractResourceClient.invoke(AbstractResourceClien
t.java:298)
        at
org.apache.muse.core.AbstractResourceClient.invoke(AbstractResourceClien
t.java:254)
        at
org.apache.muse.ws.notification.remote.NotificationProducerClient.subscr
ibe(NotificationProducerClient.jav
a:97)
        at org.apache.muse.test.wsn.WsnTestClient.main(Unknown Source)
 
D:\apache-tomcat-5.5.15\webapps\wsn-consumer\WEB-INF\classes>