[jira] Created: (MUSE-149) Error 500 getting the current message

View: New views
20 Messages — Rating Filter:   Alert me  
< Prev | 1 - 2 | Next >

[jira] Created: (MUSE-149) Error 500 getting the current message

by JIRA jira@apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Error 500 getting the current message
-------------------------------------

                 Key: MUSE-149
                 URL: http://issues.apache.org/jira/browse/MUSE-149
             Project: Muse
          Issue Type: Bug
          Components: WSN NotificationProducer
    Affects Versions: 2.0.0, 2.1.0
         Environment: Apache Tomcat 5.5 in a Ubuntu 6.06 box. JDK 1.5 from Sun Microsystems
            Reporter: Jose Antonio
         Assigned To: Dan Jemiolo


When calling to getCurrentMessage from a Notification client, I get an error 500. It's the only operation that generates this kind of error as I can subscribe to a topic and notifications are generated when needed, but that operation is generating an error before it reaches Muse.
Attached are some files that could be used to reproduce it. This is the SOAP messages that gets exchanged when running the test:

[CLIENT TRACE] SOAP envelope contents (outgoing):

<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
    <soap:Header>
        <wsa:To xmlns:wsa="http://www.w3.org/2005/08/addressing">http://localhost:8080/NotificationServiceTest/services/WsResource</wsa:To>
        <wsa:Action xmlns:wsa="http://www.w3.org/2005/08/addressing">http://docs.oasis-open.org/wsn/bw-2/NotificationProducer/SubscribeRequest</wsa:Action>
        <wsa:MessageID xmlns:wsa="http://www.w3.org/2005/08/addressing">uuid:2806625d-4a8d-dcfe-90a6-1c826dc07912</wsa:MessageID>
        <wsa:From xmlns:wsa="http://www.w3.org/2005/08/addressing">
            <wsa:Address>http://www.w3.org/2005/08/addressing/role/anonymous</wsa:Address>
        </wsa:From>
    </soap:Header>
    <soap:Body>
        <wsnt:Subscribe xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2">
            <wsnt:ConsumerReference>
                <wsa:Address xmlns:wsa="http://www.w3.org/2005/08/addressing">http://localhost:8080/FicticiousService/services/WsResource</wsa:Address>
            </wsnt:ConsumerReference>
        </wsnt:Subscribe>
    </soap:Body>
</soap:Envelope>

[CLIENT TRACE] SOAP envelope contents (incoming):

<soapenv:Envelope
    xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope" xmlns:wsa="http://www.w3.org/2005/08/addressing">
    <soapenv:Header>
        <wsa:To>http://www.w3.org/2005/08/addressing/anonymous</wsa:To>
        <wsa:ReplyTo>
            <wsa:Address>http://www.w3.org/2005/08/addressing/none</wsa:Address>
        </wsa:ReplyTo>
        <wsa:MessageID>urn:uuid:F9202DB4CDDD77D74E11641126874342</wsa:MessageID>
        <wsa:Action>http://docs.oasis-open.org/wsn/bw-2/NotificationProducer/SubscribeRequest</wsa:Action>
        <wsa:RelatesTo wsa:RelationshipType="http://www.w3.org/2005/08/addressing/reply">uuid:2806625d-4a8d-dcfe-90a6-1c826dc07912</wsa:RelatesTo>
    </soapenv:Header>
    <soapenv:Body>
        <wsnt:SubscribeResponse xmlns:tns="http://ws.apache.org/axis2" xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2">
            <wsnt:SubscriptionReference>
                <wsa:Address>http://127.0.0.1:8080/NotificationServiceTest/services/SubscriptionManager</wsa:Address>
                <wsa:ReferenceParameters>
                    <muse-wsa:ResourceId xmlns:muse-wsa="http://ws.apache.org/muse/addressing">MuseResource-1</muse-wsa:ResourceId>
                </wsa:ReferenceParameters>
            </wsnt:SubscriptionReference>
            <wsnt:CurrentTime>2006-11-21T13:38:12+01:00</wsnt:CurrentTime>
        </wsnt:SubscribeResponse>
    </soapenv:Body>
</soapenv:Envelope>

[CLIENT TRACE] SOAP envelope contents (outgoing):

<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
    <soap:Header>
        <wsa:To xmlns:wsa="http://www.w3.org/2005/08/addressing">http://localhost:8080/NotificationServiceTest/services/WsResource</wsa:To>
        <wsa:Action xmlns:wsa="http://www.w3.org/2005/08/addressing">http://ws.apache.org/muse/test/wsrf/GenerateNotificationRequest</wsa:Action>
        <wsa:MessageID xmlns:wsa="http://www.w3.org/2005/08/addressing">uuid:20380101-53f5-c614-4cd1-d21e29f3989a</wsa:MessageID>
        <wsa:From xmlns:wsa="http://www.w3.org/2005/08/addressing">
            <wsa:Address>http://www.w3.org/2005/08/addressing/role/anonymous</wsa:Address>
        </wsa:From>
    </soap:Header>
    <soap:Body>
        <pfx0:GenerateNotification xmlns:pfx0="http://ws.apache.org/muse/test/wsrf">
            <pfx0:NotificationText>This is a notification that must be delivered</pfx0:NotificationText>
        </pfx0:GenerateNotification>
    </soap:Body>
</soap:Envelope>

[CLIENT TRACE] SOAP envelope contents (incoming):

<soapenv:Envelope
    xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope" xmlns:wsa="http://www.w3.org/2005/08/addressing">
    <soapenv:Header>
        <wsa:To>http://www.w3.org/2005/08/addressing/anonymous</wsa:To>
        <wsa:ReplyTo>
            <wsa:Address>http://www.w3.org/2005/08/addressing/none</wsa:Address>
        </wsa:ReplyTo>
        <wsa:MessageID>urn:uuid:F9202DB4CDDD77D74E11641126939044</wsa:MessageID>
        <wsa:Action>http://ws.apache.org/muse/test/wsrf/GenerateNotificationRequest</wsa:Action>
        <wsa:RelatesTo wsa:RelationshipType="http://www.w3.org/2005/08/addressing/reply">uuid:20380101-53f5-c614-4cd1-d21e29f3989a</wsa:RelatesTo>
    </soapenv:Header>
    <soapenv:Body>
        <muse-op:GenerateNotificationResponse
            xmlns:muse-op="http://ws.apache.org/muse/test/wsrf" xmlns:tns="http://ws.apache.org/axis2"/>
    </soapenv:Body>
</soapenv:Envelope>

[CLIENT TRACE] SOAP envelope contents (outgoing):

<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
    <soap:Header>
        <wsa:To xmlns:wsa="http://www.w3.org/2005/08/addressing">http://localhost:8080/NotificationServiceTest/services/WsResource</wsa:To>
        <wsa:Action xmlns:wsa="http://www.w3.org/2005/08/addressing">http://docs.oasis-open.org/wsn/bw-2/NotificationProducer/GetCurrentMessageRequest</wsa:Action>
        <wsa:MessageID xmlns:wsa="http://www.w3.org/2005/08/addressing">uuid:19f3dd63-a3bc-09c1-00d2-bcf64dea0dab</wsa:MessageID>
        <wsa:From xmlns:wsa="http://www.w3.org/2005/08/addressing">
            <wsa:Address>http://www.w3.org/2005/08/addressing/role/anonymous</wsa:Address>
        </wsa:From>
    </soap:Header>
    <soap:Body>
        <wsnt:GetCurrentMessage
            xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2" xmlns:="http://ws.apache.org/muse/test/wsrf">Notification</wsnt:GetCurrentMessage>
    </soap:Body>
</soap:Envelope>

org.apache.muse.ws.addressing.soap.SoapFault: Server returned HTTP response code: 500 for URL: http://localhost:8080/NotificationServiceTest/services/WsResource
        at org.apache.muse.core.AbstractResourceClient.invoke(AbstractResourceClient.java:254)
        at org.apache.muse.ws.notification.remote.NotificationProducerClient.getCurrentMessage(NotificationProducerClient.java:80)
        at org.apache.ws.muse.test.wsrf.NotificationTest.main(NotificationTest.java:32)

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe, e-mail: muse-dev-unsubscribe@...
For additional commands, e-mail: muse-dev-help@...


[jira] Updated: (MUSE-149) Error 500 getting the current message

by JIRA jira@apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

     [ http://issues.apache.org/jira/browse/MUSE-149?page=all ]

Jose Antonio updated MUSE-149:
------------------------------

    Attachment: NotificationServiceTest.zip

This is a simple NotificationProducer project. I have removed the WebContent/.../lib directory to upload it. It was generated from the wsdl/WsResource.wsdl file.

> Error 500 getting the current message
> -------------------------------------
>
>                 Key: MUSE-149
>                 URL: http://issues.apache.org/jira/browse/MUSE-149
>             Project: Muse
>          Issue Type: Bug
>          Components: WSN NotificationProducer
>    Affects Versions: 2.0.0, 2.1.0
>         Environment: Apache Tomcat 5.5 in a Ubuntu 6.06 box. JDK 1.5 from Sun Microsystems
>            Reporter: Jose Antonio
>         Assigned To: Dan Jemiolo
>         Attachments: NotificationServiceTest.zip, NotificationTest.java
>
>
> When calling to getCurrentMessage from a Notification client, I get an error 500. It's the only operation that generates this kind of error as I can subscribe to a topic and notifications are generated when needed, but that operation is generating an error before it reaches Muse.
> Attached are some files that could be used to reproduce it. This is the SOAP messages that gets exchanged when running the test:
> [CLIENT TRACE] SOAP envelope contents (outgoing):
> <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
>     <soap:Header>
>         <wsa:To xmlns:wsa="http://www.w3.org/2005/08/addressing">http://localhost:8080/NotificationServiceTest/services/WsResource</wsa:To>
>         <wsa:Action xmlns:wsa="http://www.w3.org/2005/08/addressing">http://docs.oasis-open.org/wsn/bw-2/NotificationProducer/SubscribeRequest</wsa:Action>
>         <wsa:MessageID xmlns:wsa="http://www.w3.org/2005/08/addressing">uuid:2806625d-4a8d-dcfe-90a6-1c826dc07912</wsa:MessageID>
>         <wsa:From xmlns:wsa="http://www.w3.org/2005/08/addressing">
>             <wsa:Address>http://www.w3.org/2005/08/addressing/role/anonymous</wsa:Address>
>         </wsa:From>
>     </soap:Header>
>     <soap:Body>
>         <wsnt:Subscribe xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2">
>             <wsnt:ConsumerReference>
>                 <wsa:Address xmlns:wsa="http://www.w3.org/2005/08/addressing">http://localhost:8080/FicticiousService/services/WsResource</wsa:Address>
>             </wsnt:ConsumerReference>
>         </wsnt:Subscribe>
>     </soap:Body>
> </soap:Envelope>
> [CLIENT TRACE] SOAP envelope contents (incoming):
> <soapenv:Envelope
>     xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope" xmlns:wsa="http://www.w3.org/2005/08/addressing">
>     <soapenv:Header>
>         <wsa:To>http://www.w3.org/2005/08/addressing/anonymous</wsa:To>
>         <wsa:ReplyTo>
>             <wsa:Address>http://www.w3.org/2005/08/addressing/none</wsa:Address>
>         </wsa:ReplyTo>
>         <wsa:MessageID>urn:uuid:F9202DB4CDDD77D74E11641126874342</wsa:MessageID>
>         <wsa:Action>http://docs.oasis-open.org/wsn/bw-2/NotificationProducer/SubscribeRequest</wsa:Action>
>         <wsa:RelatesTo wsa:RelationshipType="http://www.w3.org/2005/08/addressing/reply">uuid:2806625d-4a8d-dcfe-90a6-1c826dc07912</wsa:RelatesTo>
>     </soapenv:Header>
>     <soapenv:Body>
>         <wsnt:SubscribeResponse xmlns:tns="http://ws.apache.org/axis2" xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2">
>             <wsnt:SubscriptionReference>
>                 <wsa:Address>http://127.0.0.1:8080/NotificationServiceTest/services/SubscriptionManager</wsa:Address>
>                 <wsa:ReferenceParameters>
>                     <muse-wsa:ResourceId xmlns:muse-wsa="http://ws.apache.org/muse/addressing">MuseResource-1</muse-wsa:ResourceId>
>                 </wsa:ReferenceParameters>
>             </wsnt:SubscriptionReference>
>             <wsnt:CurrentTime>2006-11-21T13:38:12+01:00</wsnt:CurrentTime>
>         </wsnt:SubscribeResponse>
>     </soapenv:Body>
> </soapenv:Envelope>
> [CLIENT TRACE] SOAP envelope contents (outgoing):
> <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
>     <soap:Header>
>         <wsa:To xmlns:wsa="http://www.w3.org/2005/08/addressing">http://localhost:8080/NotificationServiceTest/services/WsResource</wsa:To>
>         <wsa:Action xmlns:wsa="http://www.w3.org/2005/08/addressing">http://ws.apache.org/muse/test/wsrf/GenerateNotificationRequest</wsa:Action>
>         <wsa:MessageID xmlns:wsa="http://www.w3.org/2005/08/addressing">uuid:20380101-53f5-c614-4cd1-d21e29f3989a</wsa:MessageID>
>         <wsa:From xmlns:wsa="http://www.w3.org/2005/08/addressing">
>             <wsa:Address>http://www.w3.org/2005/08/addressing/role/anonymous</wsa:Address>
>         </wsa:From>
>     </soap:Header>
>     <soap:Body>
>         <pfx0:GenerateNotification xmlns:pfx0="http://ws.apache.org/muse/test/wsrf">
>             <pfx0:NotificationText>This is a notification that must be delivered</pfx0:NotificationText>
>         </pfx0:GenerateNotification>
>     </soap:Body>
> </soap:Envelope>
> [CLIENT TRACE] SOAP envelope contents (incoming):
> <soapenv:Envelope
>     xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope" xmlns:wsa="http://www.w3.org/2005/08/addressing">
>     <soapenv:Header>
>         <wsa:To>http://www.w3.org/2005/08/addressing/anonymous</wsa:To>
>         <wsa:ReplyTo>
>             <wsa:Address>http://www.w3.org/2005/08/addressing/none</wsa:Address>
>         </wsa:ReplyTo>
>         <wsa:MessageID>urn:uuid:F9202DB4CDDD77D74E11641126939044</wsa:MessageID>
>         <wsa:Action>http://ws.apache.org/muse/test/wsrf/GenerateNotificationRequest</wsa:Action>
>         <wsa:RelatesTo wsa:RelationshipType="http://www.w3.org/2005/08/addressing/reply">uuid:20380101-53f5-c614-4cd1-d21e29f3989a</wsa:RelatesTo>
>     </soapenv:Header>
>     <soapenv:Body>
>         <muse-op:GenerateNotificationResponse
>             xmlns:muse-op="http://ws.apache.org/muse/test/wsrf" xmlns:tns="http://ws.apache.org/axis2"/>
>     </soapenv:Body>
> </soapenv:Envelope>
> [CLIENT TRACE] SOAP envelope contents (outgoing):
> <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
>     <soap:Header>
>         <wsa:To xmlns:wsa="http://www.w3.org/2005/08/addressing">http://localhost:8080/NotificationServiceTest/services/WsResource</wsa:To>
>         <wsa:Action xmlns:wsa="http://www.w3.org/2005/08/addressing">http://docs.oasis-open.org/wsn/bw-2/NotificationProducer/GetCurrentMessageRequest</wsa:Action>
>         <wsa:MessageID xmlns:wsa="http://www.w3.org/2005/08/addressing">uuid:19f3dd63-a3bc-09c1-00d2-bcf64dea0dab</wsa:MessageID>
>         <wsa:From xmlns:wsa="http://www.w3.org/2005/08/addressing">
>             <wsa:Address>http://www.w3.org/2005/08/addressing/role/anonymous</wsa:Address>
>         </wsa:From>
>     </soap:Header>
>     <soap:Body>
>         <wsnt:GetCurrentMessage
>             xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2" xmlns:="http://ws.apache.org/muse/test/wsrf">Notification</wsnt:GetCurrentMessage>
>     </soap:Body>
> </soap:Envelope>
> org.apache.muse.ws.addressing.soap.SoapFault: Server returned HTTP response code: 500 for URL: http://localhost:8080/NotificationServiceTest/services/WsResource
> at org.apache.muse.core.AbstractResourceClient.invoke(AbstractResourceClient.java:254)
> at org.apache.muse.ws.notification.remote.NotificationProducerClient.getCurrentMessage(NotificationProducerClient.java:80)
> at org.apache.ws.muse.test.wsrf.NotificationTest.main(NotificationTest.java:32)

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe, e-mail: muse-dev-unsubscribe@...
For additional commands, e-mail: muse-dev-help@...


[jira] Updated: (MUSE-149) Error 500 getting the current message

by JIRA jira@apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

     [ http://issues.apache.org/jira/browse/MUSE-149?page=all ]

Jose Antonio updated MUSE-149:
------------------------------

    Attachment: NotificationTest.java

The test file I'm using. It success invoking the first two operations but fails to invoke the third (getCurrentMessage).

> Error 500 getting the current message
> -------------------------------------
>
>                 Key: MUSE-149
>                 URL: http://issues.apache.org/jira/browse/MUSE-149
>             Project: Muse
>          Issue Type: Bug
>          Components: WSN NotificationProducer
>    Affects Versions: 2.0.0, 2.1.0
>         Environment: Apache Tomcat 5.5 in a Ubuntu 6.06 box. JDK 1.5 from Sun Microsystems
>            Reporter: Jose Antonio
>         Assigned To: Dan Jemiolo
>         Attachments: NotificationServiceTest.zip, NotificationTest.java
>
>
> When calling to getCurrentMessage from a Notification client, I get an error 500. It's the only operation that generates this kind of error as I can subscribe to a topic and notifications are generated when needed, but that operation is generating an error before it reaches Muse.
> Attached are some files that could be used to reproduce it. This is the SOAP messages that gets exchanged when running the test:
> [CLIENT TRACE] SOAP envelope contents (outgoing):
> <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
>     <soap:Header>
>         <wsa:To xmlns:wsa="http://www.w3.org/2005/08/addressing">http://localhost:8080/NotificationServiceTest/services/WsResource</wsa:To>
>         <wsa:Action xmlns:wsa="http://www.w3.org/2005/08/addressing">http://docs.oasis-open.org/wsn/bw-2/NotificationProducer/SubscribeRequest</wsa:Action>
>         <wsa:MessageID xmlns:wsa="http://www.w3.org/2005/08/addressing">uuid:2806625d-4a8d-dcfe-90a6-1c826dc07912</wsa:MessageID>
>         <wsa:From xmlns:wsa="http://www.w3.org/2005/08/addressing">
>             <wsa:Address>http://www.w3.org/2005/08/addressing/role/anonymous</wsa:Address>
>         </wsa:From>
>     </soap:Header>
>     <soap:Body>
>         <wsnt:Subscribe xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2">
>             <wsnt:ConsumerReference>
>                 <wsa:Address xmlns:wsa="http://www.w3.org/2005/08/addressing">http://localhost:8080/FicticiousService/services/WsResource</wsa:Address>
>             </wsnt:ConsumerReference>
>         </wsnt:Subscribe>
>     </soap:Body>
> </soap:Envelope>
> [CLIENT TRACE] SOAP envelope contents (incoming):
> <soapenv:Envelope
>     xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope" xmlns:wsa="http://www.w3.org/2005/08/addressing">
>     <soapenv:Header>
>         <wsa:To>http://www.w3.org/2005/08/addressing/anonymous</wsa:To>
>         <wsa:ReplyTo>
>             <wsa:Address>http://www.w3.org/2005/08/addressing/none</wsa:Address>
>         </wsa:ReplyTo>
>         <wsa:MessageID>urn:uuid:F9202DB4CDDD77D74E11641126874342</wsa:MessageID>
>         <wsa:Action>http://docs.oasis-open.org/wsn/bw-2/NotificationProducer/SubscribeRequest</wsa:Action>
>         <wsa:RelatesTo wsa:RelationshipType="http://www.w3.org/2005/08/addressing/reply">uuid:2806625d-4a8d-dcfe-90a6-1c826dc07912</wsa:RelatesTo>
>     </soapenv:Header>
>     <soapenv:Body>
>         <wsnt:SubscribeResponse xmlns:tns="http://ws.apache.org/axis2" xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2">
>             <wsnt:SubscriptionReference>
>                 <wsa:Address>http://127.0.0.1:8080/NotificationServiceTest/services/SubscriptionManager</wsa:Address>
>                 <wsa:ReferenceParameters>
>                     <muse-wsa:ResourceId xmlns:muse-wsa="http://ws.apache.org/muse/addressing">MuseResource-1</muse-wsa:ResourceId>
>                 </wsa:ReferenceParameters>
>             </wsnt:SubscriptionReference>
>             <wsnt:CurrentTime>2006-11-21T13:38:12+01:00</wsnt:CurrentTime>
>         </wsnt:SubscribeResponse>
>     </soapenv:Body>
> </soapenv:Envelope>
> [CLIENT TRACE] SOAP envelope contents (outgoing):
> <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
>     <soap:Header>
>         <wsa:To xmlns:wsa="http://www.w3.org/2005/08/addressing">http://localhost:8080/NotificationServiceTest/services/WsResource</wsa:To>
>         <wsa:Action xmlns:wsa="http://www.w3.org/2005/08/addressing">http://ws.apache.org/muse/test/wsrf/GenerateNotificationRequest</wsa:Action>
>         <wsa:MessageID xmlns:wsa="http://www.w3.org/2005/08/addressing">uuid:20380101-53f5-c614-4cd1-d21e29f3989a</wsa:MessageID>
>         <wsa:From xmlns:wsa="http://www.w3.org/2005/08/addressing">
>             <wsa:Address>http://www.w3.org/2005/08/addressing/role/anonymous</wsa:Address>
>         </wsa:From>
>     </soap:Header>
>     <soap:Body>
>         <pfx0:GenerateNotification xmlns:pfx0="http://ws.apache.org/muse/test/wsrf">
>             <pfx0:NotificationText>This is a notification that must be delivered</pfx0:NotificationText>
>         </pfx0:GenerateNotification>
>     </soap:Body>
> </soap:Envelope>
> [CLIENT TRACE] SOAP envelope contents (incoming):
> <soapenv:Envelope
>     xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope" xmlns:wsa="http://www.w3.org/2005/08/addressing">
>     <soapenv:Header>
>         <wsa:To>http://www.w3.org/2005/08/addressing/anonymous</wsa:To>
>         <wsa:ReplyTo>
>             <wsa:Address>http://www.w3.org/2005/08/addressing/none</wsa:Address>
>         </wsa:ReplyTo>
>         <wsa:MessageID>urn:uuid:F9202DB4CDDD77D74E11641126939044</wsa:MessageID>
>         <wsa:Action>http://ws.apache.org/muse/test/wsrf/GenerateNotificationRequest</wsa:Action>
>         <wsa:RelatesTo wsa:RelationshipType="http://www.w3.org/2005/08/addressing/reply">uuid:20380101-53f5-c614-4cd1-d21e29f3989a</wsa:RelatesTo>
>     </soapenv:Header>
>     <soapenv:Body>
>         <muse-op:GenerateNotificationResponse
>             xmlns:muse-op="http://ws.apache.org/muse/test/wsrf" xmlns:tns="http://ws.apache.org/axis2"/>
>     </soapenv:Body>
> </soapenv:Envelope>
> [CLIENT TRACE] SOAP envelope contents (outgoing):
> <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
>     <soap:Header>
>         <wsa:To xmlns:wsa="http://www.w3.org/2005/08/addressing">http://localhost:8080/NotificationServiceTest/services/WsResource</wsa:To>
>         <wsa:Action xmlns:wsa="http://www.w3.org/2005/08/addressing">http://docs.oasis-open.org/wsn/bw-2/NotificationProducer/GetCurrentMessageRequest</wsa:Action>
>         <wsa:MessageID xmlns:wsa="http://www.w3.org/2005/08/addressing">uuid:19f3dd63-a3bc-09c1-00d2-bcf64dea0dab</wsa:MessageID>
>         <wsa:From xmlns:wsa="http://www.w3.org/2005/08/addressing">
>             <wsa:Address>http://www.w3.org/2005/08/addressing/role/anonymous</wsa:Address>
>         </wsa:From>
>     </soap:Header>
>     <soap:Body>
>         <wsnt:GetCurrentMessage
>             xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2" xmlns:="http://ws.apache.org/muse/test/wsrf">Notification</wsnt:GetCurrentMessage>
>     </soap:Body>
> </soap:Envelope>
> org.apache.muse.ws.addressing.soap.SoapFault: Server returned HTTP response code: 500 for URL: http://localhost:8080/NotificationServiceTest/services/WsResource
> at org.apache.muse.core.AbstractResourceClient.invoke(AbstractResourceClient.java:254)
> at org.apache.muse.ws.notification.remote.NotificationProducerClient.getCurrentMessage(NotificationProducerClient.java:80)
> at org.apache.ws.muse.test.wsrf.NotificationTest.main(NotificationTest.java:32)

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe, e-mail: muse-dev-unsubscribe@...
For additional commands, e-mail: muse-dev-help@...


[jira] Updated: (MUSE-149) Error 500 getting the current message

by JIRA jira@apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

     [ http://issues.apache.org/jira/browse/MUSE-149?page=all ]

Jose Antonio updated MUSE-149:
------------------------------

    Attachment: catalina.out

Tomcat log file from the startup to the test's execution.

> Error 500 getting the current message
> -------------------------------------
>
>                 Key: MUSE-149
>                 URL: http://issues.apache.org/jira/browse/MUSE-149
>             Project: Muse
>          Issue Type: Bug
>          Components: WSN NotificationProducer
>    Affects Versions: 2.0.0, 2.1.0
>         Environment: Apache Tomcat 5.5 in a Ubuntu 6.06 box. JDK 1.5 from Sun Microsystems
>            Reporter: Jose Antonio
>         Assigned To: Dan Jemiolo
>         Attachments: catalina.out, muse.log, NotificationServiceTest.zip, NotificationTest.java
>
>
> When calling to getCurrentMessage from a Notification client, I get an error 500. It's the only operation that generates this kind of error as I can subscribe to a topic and notifications are generated when needed, but that operation is generating an error before it reaches Muse.
> Attached are some files that could be used to reproduce it. This is the SOAP messages that gets exchanged when running the test:
> [CLIENT TRACE] SOAP envelope contents (outgoing):
> <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
>     <soap:Header>
>         <wsa:To xmlns:wsa="http://www.w3.org/2005/08/addressing">http://localhost:8080/NotificationServiceTest/services/WsResource</wsa:To>
>         <wsa:Action xmlns:wsa="http://www.w3.org/2005/08/addressing">http://docs.oasis-open.org/wsn/bw-2/NotificationProducer/SubscribeRequest</wsa:Action>
>         <wsa:MessageID xmlns:wsa="http://www.w3.org/2005/08/addressing">uuid:2806625d-4a8d-dcfe-90a6-1c826dc07912</wsa:MessageID>
>         <wsa:From xmlns:wsa="http://www.w3.org/2005/08/addressing">
>             <wsa:Address>http://www.w3.org/2005/08/addressing/role/anonymous</wsa:Address>
>         </wsa:From>
>     </soap:Header>
>     <soap:Body>
>         <wsnt:Subscribe xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2">
>             <wsnt:ConsumerReference>
>                 <wsa:Address xmlns:wsa="http://www.w3.org/2005/08/addressing">http://localhost:8080/FicticiousService/services/WsResource</wsa:Address>
>             </wsnt:ConsumerReference>
>         </wsnt:Subscribe>
>     </soap:Body>
> </soap:Envelope>
> [CLIENT TRACE] SOAP envelope contents (incoming):
> <soapenv:Envelope
>     xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope" xmlns:wsa="http://www.w3.org/2005/08/addressing">
>     <soapenv:Header>
>         <wsa:To>http://www.w3.org/2005/08/addressing/anonymous</wsa:To>
>         <wsa:ReplyTo>
>             <wsa:Address>http://www.w3.org/2005/08/addressing/none</wsa:Address>
>         </wsa:ReplyTo>
>         <wsa:MessageID>urn:uuid:F9202DB4CDDD77D74E11641126874342</wsa:MessageID>
>         <wsa:Action>http://docs.oasis-open.org/wsn/bw-2/NotificationProducer/SubscribeRequest</wsa:Action>
>         <wsa:RelatesTo wsa:RelationshipType="http://www.w3.org/2005/08/addressing/reply">uuid:2806625d-4a8d-dcfe-90a6-1c826dc07912</wsa:RelatesTo>
>     </soapenv:Header>
>     <soapenv:Body>
>         <wsnt:SubscribeResponse xmlns:tns="http://ws.apache.org/axis2" xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2">
>             <wsnt:SubscriptionReference>
>                 <wsa:Address>http://127.0.0.1:8080/NotificationServiceTest/services/SubscriptionManager</wsa:Address>
>                 <wsa:ReferenceParameters>
>                     <muse-wsa:ResourceId xmlns:muse-wsa="http://ws.apache.org/muse/addressing">MuseResource-1</muse-wsa:ResourceId>
>                 </wsa:ReferenceParameters>
>             </wsnt:SubscriptionReference>
>             <wsnt:CurrentTime>2006-11-21T13:38:12+01:00</wsnt:CurrentTime>
>         </wsnt:SubscribeResponse>
>     </soapenv:Body>
> </soapenv:Envelope>
> [CLIENT TRACE] SOAP envelope contents (outgoing):
> <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
>     <soap:Header>
>         <wsa:To xmlns:wsa="http://www.w3.org/2005/08/addressing">http://localhost:8080/NotificationServiceTest/services/WsResource</wsa:To>
>         <wsa:Action xmlns:wsa="http://www.w3.org/2005/08/addressing">http://ws.apache.org/muse/test/wsrf/GenerateNotificationRequest</wsa:Action>
>         <wsa:MessageID xmlns:wsa="http://www.w3.org/2005/08/addressing">uuid:20380101-53f5-c614-4cd1-d21e29f3989a</wsa:MessageID>
>         <wsa:From xmlns:wsa="http://www.w3.org/2005/08/addressing">
>             <wsa:Address>http://www.w3.org/2005/08/addressing/role/anonymous</wsa:Address>
>         </wsa:From>
>     </soap:Header>
>     <soap:Body>
>         <pfx0:GenerateNotification xmlns:pfx0="http://ws.apache.org/muse/test/wsrf">
>             <pfx0:NotificationText>This is a notification that must be delivered</pfx0:NotificationText>
>         </pfx0:GenerateNotification>
>     </soap:Body>
> </soap:Envelope>
> [CLIENT TRACE] SOAP envelope contents (incoming):
> <soapenv:Envelope
>     xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope" xmlns:wsa="http://www.w3.org/2005/08/addressing">
>     <soapenv:Header>
>         <wsa:To>http://www.w3.org/2005/08/addressing/anonymous</wsa:To>
>         <wsa:ReplyTo>
>             <wsa:Address>http://www.w3.org/2005/08/addressing/none</wsa:Address>
>         </wsa:ReplyTo>
>         <wsa:MessageID>urn:uuid:F9202DB4CDDD77D74E11641126939044</wsa:MessageID>
>         <wsa:Action>http://ws.apache.org/muse/test/wsrf/GenerateNotificationRequest</wsa:Action>
>         <wsa:RelatesTo wsa:RelationshipType="http://www.w3.org/2005/08/addressing/reply">uuid:20380101-53f5-c614-4cd1-d21e29f3989a</wsa:RelatesTo>
>     </soapenv:Header>
>     <soapenv:Body>
>         <muse-op:GenerateNotificationResponse
>             xmlns:muse-op="http://ws.apache.org/muse/test/wsrf" xmlns:tns="http://ws.apache.org/axis2"/>
>     </soapenv:Body>
> </soapenv:Envelope>
> [CLIENT TRACE] SOAP envelope contents (outgoing):
> <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
>     <soap:Header>
>         <wsa:To xmlns:wsa="http://www.w3.org/2005/08/addressing">http://localhost:8080/NotificationServiceTest/services/WsResource</wsa:To>
>         <wsa:Action xmlns:wsa="http://www.w3.org/2005/08/addressing">http://docs.oasis-open.org/wsn/bw-2/NotificationProducer/GetCurrentMessageRequest</wsa:Action>
>         <wsa:MessageID xmlns:wsa="http://www.w3.org/2005/08/addressing">uuid:19f3dd63-a3bc-09c1-00d2-bcf64dea0dab</wsa:MessageID>
>         <wsa:From xmlns:wsa="http://www.w3.org/2005/08/addressing">
>             <wsa:Address>http://www.w3.org/2005/08/addressing/role/anonymous</wsa:Address>
>         </wsa:From>
>     </soap:Header>
>     <soap:Body>
>         <wsnt:GetCurrentMessage
>             xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2" xmlns:="http://ws.apache.org/muse/test/wsrf">Notification</wsnt:GetCurrentMessage>
>     </soap:Body>
> </soap:Envelope>
> org.apache.muse.ws.addressing.soap.SoapFault: Server returned HTTP response code: 500 for URL: http://localhost:8080/NotificationServiceTest/services/WsResource
> at org.apache.muse.core.AbstractResourceClient.invoke(AbstractResourceClient.java:254)
> at org.apache.muse.ws.notification.remote.NotificationProducerClient.getCurrentMessage(NotificationProducerClient.java:80)
> at org.apache.ws.muse.test.wsrf.NotificationTest.main(NotificationTest.java:32)

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe, e-mail: muse-dev-unsubscribe@...
For additional commands, e-mail: muse-dev-help@...


[jira] Updated: (MUSE-149) Error 500 getting the current message

by JIRA jira@apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

     [ http://issues.apache.org/jira/browse/MUSE-149?page=all ]

Jose Antonio updated MUSE-149:
------------------------------

    Attachment: muse.log

Muse log file of the generated service.

> Error 500 getting the current message
> -------------------------------------
>
>                 Key: MUSE-149
>                 URL: http://issues.apache.org/jira/browse/MUSE-149
>             Project: Muse
>          Issue Type: Bug
>          Components: WSN NotificationProducer
>    Affects Versions: 2.0.0, 2.1.0
>         Environment: Apache Tomcat 5.5 in a Ubuntu 6.06 box. JDK 1.5 from Sun Microsystems
>            Reporter: Jose Antonio
>         Assigned To: Dan Jemiolo
>         Attachments: catalina.out, muse.log, NotificationServiceTest.zip, NotificationTest.java
>
>
> When calling to getCurrentMessage from a Notification client, I get an error 500. It's the only operation that generates this kind of error as I can subscribe to a topic and notifications are generated when needed, but that operation is generating an error before it reaches Muse.
> Attached are some files that could be used to reproduce it. This is the SOAP messages that gets exchanged when running the test:
> [CLIENT TRACE] SOAP envelope contents (outgoing):
> <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
>     <soap:Header>
>         <wsa:To xmlns:wsa="http://www.w3.org/2005/08/addressing">http://localhost:8080/NotificationServiceTest/services/WsResource</wsa:To>
>         <wsa:Action xmlns:wsa="http://www.w3.org/2005/08/addressing">http://docs.oasis-open.org/wsn/bw-2/NotificationProducer/SubscribeRequest</wsa:Action>
>         <wsa:MessageID xmlns:wsa="http://www.w3.org/2005/08/addressing">uuid:2806625d-4a8d-dcfe-90a6-1c826dc07912</wsa:MessageID>
>         <wsa:From xmlns:wsa="http://www.w3.org/2005/08/addressing">
>             <wsa:Address>http://www.w3.org/2005/08/addressing/role/anonymous</wsa:Address>
>         </wsa:From>
>     </soap:Header>
>     <soap:Body>
>         <wsnt:Subscribe xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2">
>             <wsnt:ConsumerReference>
>                 <wsa:Address xmlns:wsa="http://www.w3.org/2005/08/addressing">http://localhost:8080/FicticiousService/services/WsResource</wsa:Address>
>             </wsnt:ConsumerReference>
>         </wsnt:Subscribe>
>     </soap:Body>
> </soap:Envelope>
> [CLIENT TRACE] SOAP envelope contents (incoming):
> <soapenv:Envelope
>     xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope" xmlns:wsa="http://www.w3.org/2005/08/addressing">
>     <soapenv:Header>
>         <wsa:To>http://www.w3.org/2005/08/addressing/anonymous</wsa:To>
>         <wsa:ReplyTo>
>             <wsa:Address>http://www.w3.org/2005/08/addressing/none</wsa:Address>
>         </wsa:ReplyTo>
>         <wsa:MessageID>urn:uuid:F9202DB4CDDD77D74E11641126874342</wsa:MessageID>
>         <wsa:Action>http://docs.oasis-open.org/wsn/bw-2/NotificationProducer/SubscribeRequest</wsa:Action>
>         <wsa:RelatesTo wsa:RelationshipType="http://www.w3.org/2005/08/addressing/reply">uuid:2806625d-4a8d-dcfe-90a6-1c826dc07912</wsa:RelatesTo>
>     </soapenv:Header>
>     <soapenv:Body>
>         <wsnt:SubscribeResponse xmlns:tns="http://ws.apache.org/axis2" xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2">
>             <wsnt:SubscriptionReference>
>                 <wsa:Address>http://127.0.0.1:8080/NotificationServiceTest/services/SubscriptionManager</wsa:Address>
>                 <wsa:ReferenceParameters>
>                     <muse-wsa:ResourceId xmlns:muse-wsa="http://ws.apache.org/muse/addressing">MuseResource-1</muse-wsa:ResourceId>
>                 </wsa:ReferenceParameters>
>             </wsnt:SubscriptionReference>
>             <wsnt:CurrentTime>2006-11-21T13:38:12+01:00</wsnt:CurrentTime>
>         </wsnt:SubscribeResponse>
>     </soapenv:Body>
> </soapenv:Envelope>
> [CLIENT TRACE] SOAP envelope contents (outgoing):
> <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
>     <soap:Header>
>         <wsa:To xmlns:wsa="http://www.w3.org/2005/08/addressing">http://localhost:8080/NotificationServiceTest/services/WsResource</wsa:To>
>         <wsa:Action xmlns:wsa="http://www.w3.org/2005/08/addressing">http://ws.apache.org/muse/test/wsrf/GenerateNotificationRequest</wsa:Action>
>         <wsa:MessageID xmlns:wsa="http://www.w3.org/2005/08/addressing">uuid:20380101-53f5-c614-4cd1-d21e29f3989a</wsa:MessageID>
>         <wsa:From xmlns:wsa="http://www.w3.org/2005/08/addressing">
>             <wsa:Address>http://www.w3.org/2005/08/addressing/role/anonymous</wsa:Address>
>         </wsa:From>
>     </soap:Header>
>     <soap:Body>
>         <pfx0:GenerateNotification xmlns:pfx0="http://ws.apache.org/muse/test/wsrf">
>             <pfx0:NotificationText>This is a notification that must be delivered</pfx0:NotificationText>
>         </pfx0:GenerateNotification>
>     </soap:Body>
> </soap:Envelope>
> [CLIENT TRACE] SOAP envelope contents (incoming):
> <soapenv:Envelope
>     xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope" xmlns:wsa="http://www.w3.org/2005/08/addressing">
>     <soapenv:Header>
>         <wsa:To>http://www.w3.org/2005/08/addressing/anonymous</wsa:To>
>         <wsa:ReplyTo>
>             <wsa:Address>http://www.w3.org/2005/08/addressing/none</wsa:Address>
>         </wsa:ReplyTo>
>         <wsa:MessageID>urn:uuid:F9202DB4CDDD77D74E11641126939044</wsa:MessageID>
>         <wsa:Action>http://ws.apache.org/muse/test/wsrf/GenerateNotificationRequest</wsa:Action>
>         <wsa:RelatesTo wsa:RelationshipType="http://www.w3.org/2005/08/addressing/reply">uuid:20380101-53f5-c614-4cd1-d21e29f3989a</wsa:RelatesTo>
>     </soapenv:Header>
>     <soapenv:Body>
>         <muse-op:GenerateNotificationResponse
>             xmlns:muse-op="http://ws.apache.org/muse/test/wsrf" xmlns:tns="http://ws.apache.org/axis2"/>
>     </soapenv:Body>
> </soapenv:Envelope>
> [CLIENT TRACE] SOAP envelope contents (outgoing):
> <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
>     <soap:Header>
>         <wsa:To xmlns:wsa="http://www.w3.org/2005/08/addressing">http://localhost:8080/NotificationServiceTest/services/WsResource</wsa:To>
>         <wsa:Action xmlns:wsa="http://www.w3.org/2005/08/addressing">http://docs.oasis-open.org/wsn/bw-2/NotificationProducer/GetCurrentMessageRequest</wsa:Action>
>         <wsa:MessageID xmlns:wsa="http://www.w3.org/2005/08/addressing">uuid:19f3dd63-a3bc-09c1-00d2-bcf64dea0dab</wsa:MessageID>
>         <wsa:From xmlns:wsa="http://www.w3.org/2005/08/addressing">
>             <wsa:Address>http://www.w3.org/2005/08/addressing/role/anonymous</wsa:Address>
>         </wsa:From>
>     </soap:Header>
>     <soap:Body>
>         <wsnt:GetCurrentMessage
>             xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2" xmlns:="http://ws.apache.org/muse/test/wsrf">Notification</wsnt:GetCurrentMessage>
>     </soap:Body>
> </soap:Envelope>
> org.apache.muse.ws.addressing.soap.SoapFault: Server returned HTTP response code: 500 for URL: http://localhost:8080/NotificationServiceTest/services/WsResource
> at org.apache.muse.core.AbstractResourceClient.invoke(AbstractResourceClient.java:254)
> at org.apache.muse.ws.notification.remote.NotificationProducerClient.getCurrentMessage(NotificationProducerClient.java:80)
> at org.apache.ws.muse.test.wsrf.NotificationTest.main(NotificationTest.java:32)

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe, e-mail: muse-dev-unsubscribe@...
For additional commands, e-mail: muse-dev-help@...


[jira] Commented: (MUSE-149) Error 500 getting the current message

by JIRA jira@apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

    [ http://issues.apache.org/jira/browse/MUSE-149?page=comments#action_12453709 ]
           
Dan Jemiolo commented on MUSE-149:
----------------------------------

Once I add the GetCurrentMessage Action URI to services.xml, I get the proper response:

<?xml version="1.0" encoding="http://www.w3.org/2005/08/addressing"?>
<soapenv:Envelope xmlns:wsa="http://www.w3.org/2005/08/addressing" xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
<soapenv:Header>
<wsa:To>http://www.w3.org/2005/08/addressing/anonymous</wsa:To>
<wsa:ReplyTo>
<wsa:Address>http://www.w3.org/2005/08/addressing/none</wsa:Address>
</wsa:ReplyTo>
<wsa:MessageID>urn:uuid:42B5A4756734C053CD11646629202674</wsa:MessageID>
<wsa:Action>http://docs.oasis-open.org/wsn/bw-2/NotificationProducer/GetCurrentMessageRequest</wsa:Action>
<wsa:RelatesTo wsa:RelationshipType="http://www.w3.org/2005/08/addressing/reply">uuid:63b34714-8034-6066-38e3-e0fd2543471a</wsa:RelatesTo>
</soapenv:Header>
<soapenv:Body>
<muse-op:GetCurrentMessageResponse xmlns:tns="http://ws.apache.org/axis2" xmlns:muse-op="http://docs.oasis-open.org/wsn/b-2" xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2">
    <wsnt:Topic xmlns:tns="http://ws.apache.org/muse/test/wsrf" Dialect="http://docs.oasis-open.org/wsn/t-1/TopicExpression/Concrete">tns:MyTopic</wsnt:Topic>
    <wsnt:Message>
        <tns:MyMessage xmlns:tns="http://ws.apache.org/muse/test/wsrf">This is a message from muse-test.apache.org</tns:MyMessage>
    </wsnt:Message>
</muse-op:GetCurrentMessageResponse>
</soapenv:Body>
</soapenv:Envelope>

I'm wondering - is the malformed XML in your first post due to your changing the brackets to the <, etc, or is that how the trace came out? I'd be curious to know what the response is from the TCP/IP monitor. That would tell us what Axis2 is sending back as an error message.

Also, are you using wsdl2java to build this? Or just running 'ant' from the wsn-producer directory? If I modify wsn-producer/config/services.xml with the GetCurrentMessage Action URI, then run 'ant', the WAR I get works properly when a GetCurrentMessage request is sent. What is your process?


> Error 500 getting the current message
> -------------------------------------
>
>                 Key: MUSE-149
>                 URL: http://issues.apache.org/jira/browse/MUSE-149
>             Project: Muse
>          Issue Type: Bug
>          Components: WSN NotificationProducer
>    Affects Versions: 2.0.0, 2.1.0
>         Environment: Apache Tomcat 5.5 in a Ubuntu 6.06 box. JDK 1.5 from Sun Microsystems
>            Reporter: Jose Antonio
>         Assigned To: Dan Jemiolo
>             Fix For: 2.1.0
>
>         Attachments: catalina.out, muse.log, NotificationServiceTest.zip, NotificationTest.java
>
>
> When calling to getCurrentMessage from a Notification client, I get an error 500. It's the only operation that generates this kind of error as I can subscribe to a topic and notifications are generated when needed, but that operation is generating an error before it reaches Muse.
> Attached are some files that could be used to reproduce it. This is the SOAP messages that gets exchanged when running the test:
> [CLIENT TRACE] SOAP envelope contents (outgoing):
> <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
>     <soap:Header>
>         <wsa:To xmlns:wsa="http://www.w3.org/2005/08/addressing">http://localhost:8080/NotificationServiceTest/services/WsResource</wsa:To>
>         <wsa:Action xmlns:wsa="http://www.w3.org/2005/08/addressing">http://docs.oasis-open.org/wsn/bw-2/NotificationProducer/SubscribeRequest</wsa:Action>
>         <wsa:MessageID xmlns:wsa="http://www.w3.org/2005/08/addressing">uuid:2806625d-4a8d-dcfe-90a6-1c826dc07912</wsa:MessageID>
>         <wsa:From xmlns:wsa="http://www.w3.org/2005/08/addressing">
>             <wsa:Address>http://www.w3.org/2005/08/addressing/role/anonymous</wsa:Address>
>         </wsa:From>
>     </soap:Header>
>     <soap:Body>
>         <wsnt:Subscribe xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2">
>             <wsnt:ConsumerReference>
>                 <wsa:Address xmlns:wsa="http://www.w3.org/2005/08/addressing">http://localhost:8080/FicticiousService/services/WsResource</wsa:Address>
>             </wsnt:ConsumerReference>
>         </wsnt:Subscribe>
>     </soap:Body>
> </soap:Envelope>
> [CLIENT TRACE] SOAP envelope contents (incoming):
> <soapenv:Envelope
>     xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope" xmlns:wsa="http://www.w3.org/2005/08/addressing">
>     <soapenv:Header>
>         <wsa:To>http://www.w3.org/2005/08/addressing/anonymous</wsa:To>
>         <wsa:ReplyTo>
>             <wsa:Address>http://www.w3.org/2005/08/addressing/none</wsa:Address>
>         </wsa:ReplyTo>
>         <wsa:MessageID>urn:uuid:F9202DB4CDDD77D74E11641126874342</wsa:MessageID>
>         <wsa:Action>http://docs.oasis-open.org/wsn/bw-2/NotificationProducer/SubscribeRequest</wsa:Action>
>         <wsa:RelatesTo wsa:RelationshipType="http://www.w3.org/2005/08/addressing/reply">uuid:2806625d-4a8d-dcfe-90a6-1c826dc07912</wsa:RelatesTo>
>     </soapenv:Header>
>     <soapenv:Body>
>         <wsnt:SubscribeResponse xmlns:tns="http://ws.apache.org/axis2" xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2">
>             <wsnt:SubscriptionReference>
>                 <wsa:Address>http://127.0.0.1:8080/NotificationServiceTest/services/SubscriptionManager</wsa:Address>
>                 <wsa:ReferenceParameters>
>                     <muse-wsa:ResourceId xmlns:muse-wsa="http://ws.apache.org/muse/addressing">MuseResource-1</muse-wsa:ResourceId>
>                 </wsa:ReferenceParameters>
>             </wsnt:SubscriptionReference>
>             <wsnt:CurrentTime>2006-11-21T13:38:12+01:00</wsnt:CurrentTime>
>         </wsnt:SubscribeResponse>
>     </soapenv:Body>
> </soapenv:Envelope>
> [CLIENT TRACE] SOAP envelope contents (outgoing):
> <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
>     <soap:Header>
>         <wsa:To xmlns:wsa="http://www.w3.org/2005/08/addressing">http://localhost:8080/NotificationServiceTest/services/WsResource</wsa:To>
>         <wsa:Action xmlns:wsa="http://www.w3.org/2005/08/addressing">http://ws.apache.org/muse/test/wsrf/GenerateNotificationRequest</wsa:Action>
>         <wsa:MessageID xmlns:wsa="http://www.w3.org/2005/08/addressing">uuid:20380101-53f5-c614-4cd1-d21e29f3989a</wsa:MessageID>
>         <wsa:From xmlns:wsa="http://www.w3.org/2005/08/addressing">
>             <wsa:Address>http://www.w3.org/2005/08/addressing/role/anonymous</wsa:Address>
>         </wsa:From>
>     </soap:Header>
>     <soap:Body>
>         <pfx0:GenerateNotification xmlns:pfx0="http://ws.apache.org/muse/test/wsrf">
>             <pfx0:NotificationText>This is a notification that must be delivered</pfx0:NotificationText>
>         </pfx0:GenerateNotification>
>     </soap:Body>
> </soap:Envelope>
> [CLIENT TRACE] SOAP envelope contents (incoming):
> <soapenv:Envelope
>     xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope" xmlns:wsa="http://www.w3.org/2005/08/addressing">
>     <soapenv:Header>
>         <wsa:To>http://www.w3.org/2005/08/addressing/anonymous</wsa:To>
>         <wsa:ReplyTo>
>             <wsa:Address>http://www.w3.org/2005/08/addressing/none</wsa:Address>
>         </wsa:ReplyTo>
>         <wsa:MessageID>urn:uuid:F9202DB4CDDD77D74E11641126939044</wsa:MessageID>
>         <wsa:Action>http://ws.apache.org/muse/test/wsrf/GenerateNotificationRequest</wsa:Action>
>         <wsa:RelatesTo wsa:RelationshipType="http://www.w3.org/2005/08/addressing/reply">uuid:20380101-53f5-c614-4cd1-d21e29f3989a</wsa:RelatesTo>
>     </soapenv:Header>
>     <soapenv:Body>
>         <muse-op:GenerateNotificationResponse
>             xmlns:muse-op="http://ws.apache.org/muse/test/wsrf" xmlns:tns="http://ws.apache.org/axis2"/>
>     </soapenv:Body>
> </soapenv:Envelope>
> [CLIENT TRACE] SOAP envelope contents (outgoing):
> <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
>     <soap:Header>
>         <wsa:To xmlns:wsa="http://www.w3.org/2005/08/addressing">http://localhost:8080/NotificationServiceTest/services/WsResource</wsa:To>
>         <wsa:Action xmlns:wsa="http://www.w3.org/2005/08/addressing">http://docs.oasis-open.org/wsn/bw-2/NotificationProducer/GetCurrentMessageRequest</wsa:Action>
>         <wsa:MessageID xmlns:wsa="http://www.w3.org/2005/08/addressing">uuid:19f3dd63-a3bc-09c1-00d2-bcf64dea0dab</wsa:MessageID>
>         <wsa:From xmlns:wsa="http://www.w3.org/2005/08/addressing">
>             <wsa:Address>http://www.w3.org/2005/08/addressing/role/anonymous</wsa:Address>
>         </wsa:From>
>     </soap:Header>
>     <soap:Body>
>         <wsnt:GetCurrentMessage
>             xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2" xmlns:="http://ws.apache.org/muse/test/wsrf">Notification</wsnt:GetCurrentMessage>
>     </soap:Body>
> </soap:Envelope>
> org.apache.muse.ws.addressing.soap.SoapFault: Server returned HTTP response code: 500 for URL: http://localhost:8080/NotificationServiceTest/services/WsResource
> at org.apache.muse.core.AbstractResourceClient.invoke(AbstractResourceClient.java:254)
> at org.apache.muse.ws.notification.remote.NotificationProducerClient.getCurrentMessage(NotificationProducerClient.java:80)
> at org.apache.ws.muse.test.wsrf.NotificationTest.main(NotificationTest.java:32)

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe, e-mail: muse-dev-unsubscribe@...
For additional commands, e-mail: muse-dev-help@...


[jira] Updated: (MUSE-149) Error 500 getting the current message

by JIRA jira@apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

     [ http://issues.apache.org/jira/browse/MUSE-149?page=all ]

Dan Jemiolo updated MUSE-149:
-----------------------------

    Fix Version/s: 2.1.0

> Error 500 getting the current message
> -------------------------------------
>
>                 Key: MUSE-149
>                 URL: http://issues.apache.org/jira/browse/MUSE-149
>             Project: Muse
>          Issue Type: Bug
>          Components: WSN NotificationProducer
>    Affects Versions: 2.0.0, 2.1.0
>         Environment: Apache Tomcat 5.5 in a Ubuntu 6.06 box. JDK 1.5 from Sun Microsystems
>            Reporter: Jose Antonio
>         Assigned To: Dan Jemiolo
>             Fix For: 2.1.0
>
>         Attachments: catalina.out, muse.log, NotificationServiceTest.zip, NotificationTest.java
>
>
> When calling to getCurrentMessage from a Notification client, I get an error 500. It's the only operation that generates this kind of error as I can subscribe to a topic and notifications are generated when needed, but that operation is generating an error before it reaches Muse.
> Attached are some files that could be used to reproduce it. This is the SOAP messages that gets exchanged when running the test:
> [CLIENT TRACE] SOAP envelope contents (outgoing):
> <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
>     <soap:Header>
>         <wsa:To xmlns:wsa="http://www.w3.org/2005/08/addressing">http://localhost:8080/NotificationServiceTest/services/WsResource</wsa:To>
>         <wsa:Action xmlns:wsa="http://www.w3.org/2005/08/addressing">http://docs.oasis-open.org/wsn/bw-2/NotificationProducer/SubscribeRequest</wsa:Action>
>         <wsa:MessageID xmlns:wsa="http://www.w3.org/2005/08/addressing">uuid:2806625d-4a8d-dcfe-90a6-1c826dc07912</wsa:MessageID>
>         <wsa:From xmlns:wsa="http://www.w3.org/2005/08/addressing">
>             <wsa:Address>http://www.w3.org/2005/08/addressing/role/anonymous</wsa:Address>
>         </wsa:From>
>     </soap:Header>
>     <soap:Body>
>         <wsnt:Subscribe xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2">
>             <wsnt:ConsumerReference>
>                 <wsa:Address xmlns:wsa="http://www.w3.org/2005/08/addressing">http://localhost:8080/FicticiousService/services/WsResource</wsa:Address>
>             </wsnt:ConsumerReference>
>         </wsnt:Subscribe>
>     </soap:Body>
> </soap:Envelope>
> [CLIENT TRACE] SOAP envelope contents (incoming):
> <soapenv:Envelope
>     xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope" xmlns:wsa="http://www.w3.org/2005/08/addressing">
>     <soapenv:Header>
>         <wsa:To>http://www.w3.org/2005/08/addressing/anonymous</wsa:To>
>         <wsa:ReplyTo>
>             <wsa:Address>http://www.w3.org/2005/08/addressing/none</wsa:Address>
>         </wsa:ReplyTo>
>         <wsa:MessageID>urn:uuid:F9202DB4CDDD77D74E11641126874342</wsa:MessageID>
>         <wsa:Action>http://docs.oasis-open.org/wsn/bw-2/NotificationProducer/SubscribeRequest</wsa:Action>
>         <wsa:RelatesTo wsa:RelationshipType="http://www.w3.org/2005/08/addressing/reply">uuid:2806625d-4a8d-dcfe-90a6-1c826dc07912</wsa:RelatesTo>
>     </soapenv:Header>
>     <soapenv:Body>
>         <wsnt:SubscribeResponse xmlns:tns="http://ws.apache.org/axis2" xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2">
>             <wsnt:SubscriptionReference>
>                 <wsa:Address>http://127.0.0.1:8080/NotificationServiceTest/services/SubscriptionManager</wsa:Address>
>                 <wsa:ReferenceParameters>
>                     <muse-wsa:ResourceId xmlns:muse-wsa="http://ws.apache.org/muse/addressing">MuseResource-1</muse-wsa:ResourceId>
>                 </wsa:ReferenceParameters>
>             </wsnt:SubscriptionReference>
>             <wsnt:CurrentTime>2006-11-21T13:38:12+01:00</wsnt:CurrentTime>
>         </wsnt:SubscribeResponse>
>     </soapenv:Body>
> </soapenv:Envelope>
> [CLIENT TRACE] SOAP envelope contents (outgoing):
> <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
>     <soap:Header>
>         <wsa:To xmlns:wsa="http://www.w3.org/2005/08/addressing">http://localhost:8080/NotificationServiceTest/services/WsResource</wsa:To>
>         <wsa:Action xmlns:wsa="http://www.w3.org/2005/08/addressing">http://ws.apache.org/muse/test/wsrf/GenerateNotificationRequest</wsa:Action>
>         <wsa:MessageID xmlns:wsa="http://www.w3.org/2005/08/addressing">uuid:20380101-53f5-c614-4cd1-d21e29f3989a</wsa:MessageID>
>         <wsa:From xmlns:wsa="http://www.w3.org/2005/08/addressing">
>             <wsa:Address>http://www.w3.org/2005/08/addressing/role/anonymous</wsa:Address>
>         </wsa:From>
>     </soap:Header>
>     <soap:Body>
>         <pfx0:GenerateNotification xmlns:pfx0="http://ws.apache.org/muse/test/wsrf">
>             <pfx0:NotificationText>This is a notification that must be delivered</pfx0:NotificationText>
>         </pfx0:GenerateNotification>
>     </soap:Body>
> </soap:Envelope>
> [CLIENT TRACE] SOAP envelope contents (incoming):
> <soapenv:Envelope
>     xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope" xmlns:wsa="http://www.w3.org/2005/08/addressing">
>     <soapenv:Header>
>         <wsa:To>http://www.w3.org/2005/08/addressing/anonymous</wsa:To>
>         <wsa:ReplyTo>
>             <wsa:Address>http://www.w3.org/2005/08/addressing/none</wsa:Address>
>         </wsa:ReplyTo>
>         <wsa:MessageID>urn:uuid:F9202DB4CDDD77D74E11641126939044</wsa:MessageID>
>         <wsa:Action>http://ws.apache.org/muse/test/wsrf/GenerateNotificationRequest</wsa:Action>
>         <wsa:RelatesTo wsa:RelationshipType="http://www.w3.org/2005/08/addressing/reply">uuid:20380101-53f5-c614-4cd1-d21e29f3989a</wsa:RelatesTo>
>     </soapenv:Header>
>     <soapenv:Body>
>         <muse-op:GenerateNotificationResponse
>             xmlns:muse-op="http://ws.apache.org/muse/test/wsrf" xmlns:tns="http://ws.apache.org/axis2"/>
>     </soapenv:Body>
> </soapenv:Envelope>
> [CLIENT TRACE] SOAP envelope contents (outgoing):
> <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
>     <soap:Header>
>         <wsa:To xmlns:wsa="http://www.w3.org/2005/08/addressing">http://localhost:8080/NotificationServiceTest/services/WsResource</wsa:To>
>         <wsa:Action xmlns:wsa="http://www.w3.org/2005/08/addressing">http://docs.oasis-open.org/wsn/bw-2/NotificationProducer/GetCurrentMessageRequest</wsa:Action>
>         <wsa:MessageID xmlns:wsa="http://www.w3.org/2005/08/addressing">uuid:19f3dd63-a3bc-09c1-00d2-bcf64dea0dab</wsa:MessageID>
>         <wsa:From xmlns:wsa="http://www.w3.org/2005/08/addressing">
>             <wsa:Address>http://www.w3.org/2005/08/addressing/role/anonymous</wsa:Address>
>         </wsa:From>
>     </soap:Header>
>     <soap:Body>
>         <wsnt:GetCurrentMessage
>             xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2" xmlns:="http://ws.apache.org/muse/test/wsrf">Notification</wsnt:GetCurrentMessage>
>     </soap:Body>
> </soap:Envelope>
> org.apache.muse.ws.addressing.soap.SoapFault: Server returned HTTP response code: 500 for URL: http://localhost:8080/NotificationServiceTest/services/WsResource
> at org.apache.muse.core.AbstractResourceClient.invoke(AbstractResourceClient.java:254)
> at org.apache.muse.ws.notification.remote.NotificationProducerClient.getCurrentMessage(NotificationProducerClient.java:80)
> at org.apache.ws.muse.test.wsrf.NotificationTest.main(NotificationTest.java:32)

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe, e-mail: muse-dev-unsubscribe@...
For additional commands, e-mail: muse-dev-help@...


[jira] Commented: (MUSE-149) Error 500 getting the current message

by JIRA jira@apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

    [ http://issues.apache.org/jira/browse/MUSE-149?page=comments#action_12453831 ]
           
Jose Antonio commented on MUSE-149:
-----------------------------------

I just realized now about the bad xml encoding. It was not in the original trace so I think maybe it's an encoding error when copying and pasting the trace in the browser.
About the process, I generated it through wsdl2java tool from the attached WsResource.wsdl. I did not use the wsn-producer sample at all. I added the SubscriptionManager resource as described in the tutorial but I didn't add anything to the generated WsResource xml files (only I completed the capability code) so that files are just as they are generated by wsdl2java tool (apart from the SubscriptionManager section).
In the generated services.xml file there is a GetCurrentMessage action URI so I didn't add anything to it.

> Error 500 getting the current message
> -------------------------------------
>
>                 Key: MUSE-149
>                 URL: http://issues.apache.org/jira/browse/MUSE-149
>             Project: Muse
>          Issue Type: Bug
>          Components: WSN NotificationProducer
>    Affects Versions: 2.0.0, 2.1.0
>         Environment: Apache Tomcat 5.5 in a Ubuntu 6.06 box. JDK 1.5 from Sun Microsystems
>            Reporter: Jose Antonio
>         Assigned To: Dan Jemiolo
>             Fix For: 2.1.0
>
>         Attachments: catalina.out, muse.log, NotificationServiceTest.zip, NotificationTest.java
>
>
> When calling to getCurrentMessage from a Notification client, I get an error 500. It's the only operation that generates this kind of error as I can subscribe to a topic and notifications are generated when needed, but that operation is generating an error before it reaches Muse.
> Attached are some files that could be used to reproduce it. This is the SOAP messages that gets exchanged when running the test:
> [CLIENT TRACE] SOAP envelope contents (outgoing):
> <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
>     <soap:Header>
>         <wsa:To xmlns:wsa="http://www.w3.org/2005/08/addressing">http://localhost:8080/NotificationServiceTest/services/WsResource</wsa:To>
>         <wsa:Action xmlns:wsa="http://www.w3.org/2005/08/addressing">http://docs.oasis-open.org/wsn/bw-2/NotificationProducer/SubscribeRequest</wsa:Action>
>         <wsa:MessageID xmlns:wsa="http://www.w3.org/2005/08/addressing">uuid:2806625d-4a8d-dcfe-90a6-1c826dc07912</wsa:MessageID>
>         <wsa:From xmlns:wsa="http://www.w3.org/2005/08/addressing">
>             <wsa:Address>http://www.w3.org/2005/08/addressing/role/anonymous</wsa:Address>
>         </wsa:From>
>     </soap:Header>
>     <soap:Body>
>         <wsnt:Subscribe xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2">
>             <wsnt:ConsumerReference>
>                 <wsa:Address xmlns:wsa="http://www.w3.org/2005/08/addressing">http://localhost:8080/FicticiousService/services/WsResource</wsa:Address>
>             </wsnt:ConsumerReference>
>         </wsnt:Subscribe>
>     </soap:Body>
> </soap:Envelope>
> [CLIENT TRACE] SOAP envelope contents (incoming):
> <soapenv:Envelope
>     xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope" xmlns:wsa="http://www.w3.org/2005/08/addressing">
>     <soapenv:Header>
>         <wsa:To>http://www.w3.org/2005/08/addressing/anonymous</wsa:To>
>         <wsa:ReplyTo>
>             <wsa:Address>http://www.w3.org/2005/08/addressing/none</wsa:Address>
>         </wsa:ReplyTo>
>         <wsa:MessageID>urn:uuid:F9202DB4CDDD77D74E11641126874342</wsa:MessageID>
>         <wsa:Action>http://docs.oasis-open.org/wsn/bw-2/NotificationProducer/SubscribeRequest</wsa:Action>
>         <wsa:RelatesTo wsa:RelationshipType="http://www.w3.org/2005/08/addressing/reply">uuid:2806625d-4a8d-dcfe-90a6-1c826dc07912</wsa:RelatesTo>
>     </soapenv:Header>
>     <soapenv:Body>
>         <wsnt:SubscribeResponse xmlns:tns="http://ws.apache.org/axis2" xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2">
>             <wsnt:SubscriptionReference>
>                 <wsa:Address>http://127.0.0.1:8080/NotificationServiceTest/services/SubscriptionManager</wsa:Address>
>                 <wsa:ReferenceParameters>
>                     <muse-wsa:ResourceId xmlns:muse-wsa="http://ws.apache.org/muse/addressing">MuseResource-1</muse-wsa:ResourceId>
>                 </wsa:ReferenceParameters>
>             </wsnt:SubscriptionReference>
>             <wsnt:CurrentTime>2006-11-21T13:38:12+01:00</wsnt:CurrentTime>
>         </wsnt:SubscribeResponse>
>     </soapenv:Body>
> </soapenv:Envelope>
> [CLIENT TRACE] SOAP envelope contents (outgoing):
> <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
>     <soap:Header>
>         <wsa:To xmlns:wsa="http://www.w3.org/2005/08/addressing">http://localhost:8080/NotificationServiceTest/services/WsResource</wsa:To>
>         <wsa:Action xmlns:wsa="http://www.w3.org/2005/08/addressing">http://ws.apache.org/muse/test/wsrf/GenerateNotificationRequest</wsa:Action>
>         <wsa:MessageID xmlns:wsa="http://www.w3.org/2005/08/addressing">uuid:20380101-53f5-c614-4cd1-d21e29f3989a</wsa:MessageID>
>         <wsa:From xmlns:wsa="http://www.w3.org/2005/08/addressing">
>             <wsa:Address>http://www.w3.org/2005/08/addressing/role/anonymous</wsa:Address>
>         </wsa:From>
>     </soap:Header>
>     <soap:Body>
>         <pfx0:GenerateNotification xmlns:pfx0="http://ws.apache.org/muse/test/wsrf">
>             <pfx0:NotificationText>This is a notification that must be delivered</pfx0:NotificationText>
>         </pfx0:GenerateNotification>
>     </soap:Body>
> </soap:Envelope>
> [CLIENT TRACE] SOAP envelope contents (incoming):
> <soapenv:Envelope
>     xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope" xmlns:wsa="http://www.w3.org/2005/08/addressing">
>     <soapenv:Header>
>         <wsa:To>http://www.w3.org/2005/08/addressing/anonymous</wsa:To>
>         <wsa:ReplyTo>
>             <wsa:Address>http://www.w3.org/2005/08/addressing/none</wsa:Address>
>         </wsa:ReplyTo>
>         <wsa:MessageID>urn:uuid:F9202DB4CDDD77D74E11641126939044</wsa:MessageID>
>         <wsa:Action>http://ws.apache.org/muse/test/wsrf/GenerateNotificationRequest</wsa:Action>
>         <wsa:RelatesTo wsa:RelationshipType="http://www.w3.org/2005/08/addressing/reply">uuid:20380101-53f5-c614-4cd1-d21e29f3989a</wsa:RelatesTo>
>     </soapenv:Header>
>     <soapenv:Body>
>         <muse-op:GenerateNotificationResponse
>             xmlns:muse-op="http://ws.apache.org/muse/test/wsrf" xmlns:tns="http://ws.apache.org/axis2"/>
>     </soapenv:Body>
> </soapenv:Envelope>
> [CLIENT TRACE] SOAP envelope contents (outgoing):
> <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
>     <soap:Header>
>         <wsa:To xmlns:wsa="http://www.w3.org/2005/08/addressing">http://localhost:8080/NotificationServiceTest/services/WsResource</wsa:To>
>         <wsa:Action xmlns:wsa="http://www.w3.org/2005/08/addressing">http://docs.oasis-open.org/wsn/bw-2/NotificationProducer/GetCurrentMessageRequest</wsa:Action>
>         <wsa:MessageID xmlns:wsa="http://www.w3.org/2005/08/addressing">uuid:19f3dd63-a3bc-09c1-00d2-bcf64dea0dab</wsa:MessageID>
>         <wsa:From xmlns:wsa="http://www.w3.org/2005/08/addressing">
>             <wsa:Address>http://www.w3.org/2005/08/addressing/role/anonymous</wsa:Address>
>         </wsa:From>
>     </soap:Header>
>     <soap:Body>
>         <wsnt:GetCurrentMessage
>             xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2" xmlns:="http://ws.apache.org/muse/test/wsrf">Notification</wsnt:GetCurrentMessage>
>     </soap:Body>
> </soap:Envelope>
> org.apache.muse.ws.addressing.soap.SoapFault: Server returned HTTP response code: 500 for URL: http://localhost:8080/NotificationServiceTest/services/WsResource
> at org.apache.muse.core.AbstractResourceClient.invoke(AbstractResourceClient.java:254)
> at org.apache.muse.ws.notification.remote.NotificationProducerClient.getCurrentMessage(NotificationProducerClient.java:80)
> at org.apache.ws.muse.test.wsrf.NotificationTest.main(NotificationTest.java:32)

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe, e-mail: muse-dev-unsubscribe@...
For additional commands, e-mail: muse-dev-help@...


[jira] Commented: (MUSE-149) Error 500 getting the current message

by JIRA jira@apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

    [ http://issues.apache.org/jira/browse/MUSE-149?page=comments#action_12457133 ]
           
Dan Jemiolo commented on MUSE-149:
----------------------------------

Can you try with the new nightly build - http://ws.apache.org/muse/nightly - there are a lot of fixes for 2.1 in there, I'd like to see what the behavior is on that build.

> Error 500 getting the current message
> -------------------------------------
>
>                 Key: MUSE-149
>                 URL: http://issues.apache.org/jira/browse/MUSE-149
>             Project: Muse
>          Issue Type: Bug
>          Components: WSN NotificationProducer
>    Affects Versions: 2.0.0, 2.1.0
>         Environment: Apache Tomcat 5.5 in a Ubuntu 6.06 box. JDK 1.5 from Sun Microsystems
>            Reporter: Jose Antonio
>         Assigned To: Dan Jemiolo
>             Fix For: 2.1.0
>
>         Attachments: catalina.out, muse.log, NotificationServiceTest.zip, NotificationTest.java
>
>
> When calling to getCurrentMessage from a Notification client, I get an error 500. It's the only operation that generates this kind of error as I can subscribe to a topic and notifications are generated when needed, but that operation is generating an error before it reaches Muse.
> Attached are some files that could be used to reproduce it. This is the SOAP messages that gets exchanged when running the test:
> [CLIENT TRACE] SOAP envelope contents (outgoing):
> <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
>     <soap:Header>
>         <wsa:To xmlns:wsa="http://www.w3.org/2005/08/addressing">http://localhost:8080/NotificationServiceTest/services/WsResource</wsa:To>
>         <wsa:Action xmlns:wsa="http://www.w3.org/2005/08/addressing">http://docs.oasis-open.org/wsn/bw-2/NotificationProducer/SubscribeRequest</wsa:Action>
>         <wsa:MessageID xmlns:wsa="http://www.w3.org/2005/08/addressing">uuid:2806625d-4a8d-dcfe-90a6-1c826dc07912</wsa:MessageID>
>         <wsa:From xmlns:wsa="http://www.w3.org/2005/08/addressing">
>             <wsa:Address>http://www.w3.org/2005/08/addressing/role/anonymous</wsa:Address>
>         </wsa:From>
>     </soap:Header>
>     <soap:Body>
>         <wsnt:Subscribe xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2">
>             <wsnt:ConsumerReference>
>                 <wsa:Address xmlns:wsa="http://www.w3.org/2005/08/addressing">http://localhost:8080/FicticiousService/services/WsResource</wsa:Address>
>             </wsnt:ConsumerReference>
>         </wsnt:Subscribe>
>     </soap:Body>
> </soap:Envelope>
> [CLIENT TRACE] SOAP envelope contents (incoming):
> <soapenv:Envelope
>     xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope" xmlns:wsa="http://www.w3.org/2005/08/addressing">
>     <soapenv:Header>
>         <wsa:To>http://www.w3.org/2005/08/addressing/anonymous</wsa:To>
>         <wsa:ReplyTo>
>             <wsa:Address>http://www.w3.org/2005/08/addressing/none</wsa:Address>
>         </wsa:ReplyTo>
>         <wsa:MessageID>urn:uuid:F9202DB4CDDD77D74E11641126874342</wsa:MessageID>
>         <wsa:Action>http://docs.oasis-open.org/wsn/bw-2/NotificationProducer/SubscribeRequest</wsa:Action>
>         <wsa:RelatesTo wsa:RelationshipType="http://www.w3.org/2005/08/addressing/reply">uuid:2806625d-4a8d-dcfe-90a6-1c826dc07912</wsa:RelatesTo>
>     </soapenv:Header>
>     <soapenv:Body>
>         <wsnt:SubscribeResponse xmlns:tns="http://ws.apache.org/axis2" xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2">
>             <wsnt:SubscriptionReference>
>                 <wsa:Address>http://127.0.0.1:8080/NotificationServiceTest/services/SubscriptionManager</wsa:Address>
>                 <wsa:ReferenceParameters>
>                     <muse-wsa:ResourceId xmlns:muse-wsa="http://ws.apache.org/muse/addressing">MuseResource-1</muse-wsa:ResourceId>
>                 </wsa:ReferenceParameters>
>             </wsnt:SubscriptionReference>
>             <wsnt:CurrentTime>2006-11-21T13:38:12+01:00</wsnt:CurrentTime>
>         </wsnt:SubscribeResponse>
>     </soapenv:Body>
> </soapenv:Envelope>
> [CLIENT TRACE] SOAP envelope contents (outgoing):
> <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
>     <soap:Header>
>         <wsa:To xmlns:wsa="http://www.w3.org/2005/08/addressing">http://localhost:8080/NotificationServiceTest/services/WsResource</wsa:To>
>         <wsa:Action xmlns:wsa="http://www.w3.org/2005/08/addressing">http://ws.apache.org/muse/test/wsrf/GenerateNotificationRequest</wsa:Action>
>         <wsa:MessageID xmlns:wsa="http://www.w3.org/2005/08/addressing">uuid:20380101-53f5-c614-4cd1-d21e29f3989a</wsa:MessageID>
>         <wsa:From xmlns:wsa="http://www.w3.org/2005/08/addressing">
>             <wsa:Address>http://www.w3.org/2005/08/addressing/role/anonymous</wsa:Address>
>         </wsa:From>
>     </soap:Header>
>     <soap:Body>
>         <pfx0:GenerateNotification xmlns:pfx0="http://ws.apache.org/muse/test/wsrf">
>             <pfx0:NotificationText>This is a notification that must be delivered</pfx0:NotificationText>
>         </pfx0:GenerateNotification>
>     </soap:Body>
> </soap:Envelope>
> [CLIENT TRACE] SOAP envelope contents (incoming):
> <soapenv:Envelope
>     xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope" xmlns:wsa="http://www.w3.org/2005/08/addressing">
>     <soapenv:Header>
>         <wsa:To>http://www.w3.org/2005/08/addressing/anonymous</wsa:To>
>         <wsa:ReplyTo>
>             <wsa:Address>http://www.w3.org/2005/08/addressing/none</wsa:Address>
>         </wsa:ReplyTo>
>         <wsa:MessageID>urn:uuid:F9202DB4CDDD77D74E11641126939044</wsa:MessageID>
>         <wsa:Action>http://ws.apache.org/muse/test/wsrf/GenerateNotificationRequest</wsa:Action>
>         <wsa:RelatesTo wsa:RelationshipType="http://www.w3.org/2005/08/addressing/reply">uuid:20380101-53f5-c614-4cd1-d21e29f3989a</wsa:RelatesTo>
>     </soapenv:Header>
>     <soapenv:Body>
>         <muse-op:GenerateNotificationResponse
>             xmlns:muse-op="http://ws.apache.org/muse/test/wsrf" xmlns:tns="http://ws.apache.org/axis2"/>
>     </soapenv:Body>
> </soapenv:Envelope>
> [CLIENT TRACE] SOAP envelope contents (outgoing):
> <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
>     <soap:Header>
>         <wsa:To xmlns:wsa="http://www.w3.org/2005/08/addressing">http://localhost:8080/NotificationServiceTest/services/WsResource</wsa:To>
>         <wsa:Action xmlns:wsa="http://www.w3.org/2005/08/addressing">http://docs.oasis-open.org/wsn/bw-2/NotificationProducer/GetCurrentMessageRequest</wsa:Action>
>         <wsa:MessageID xmlns:wsa="http://www.w3.org/2005/08/addressing">uuid:19f3dd63-a3bc-09c1-00d2-bcf64dea0dab</wsa:MessageID>
>         <wsa:From xmlns:wsa="http://www.w3.org/2005/08/addressing">
>             <wsa:Address>http://www.w3.org/2005/08/addressing/role/anonymous</wsa:Address>
>         </wsa:From>
>     </soap:Header>
>     <soap:Body>
>         <wsnt:GetCurrentMessage
>             xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2" xmlns:="http://ws.apache.org/muse/test/wsrf">Notification</wsnt:GetCurrentMessage>
>     </soap:Body>
> </soap:Envelope>
> org.apache.muse.ws.addressing.soap.SoapFault: Server returned HTTP response code: 500 for URL: http://localhost:8080/NotificationServiceTest/services/WsResource
> at org.apache.muse.core.AbstractResourceClient.invoke(AbstractResourceClient.java:254)
> at org.apache.muse.ws.notification.remote.NotificationProducerClient.getCurrentMessage(NotificationProducerClient.java:80)
> at org.apache.ws.muse.test.wsrf.NotificationTest.main(NotificationTest.java:32)

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe, e-mail: muse-dev-unsubscribe@...
For additional commands, e-mail: muse-dev-help@...


[jira] Commented: (MUSE-149) Error 500 getting the current message

by JIRA jira@apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

    [ http://issues.apache.org/jira/browse/MUSE-149?page=comments#action_12457718 ]
           
Jose Antonio commented on MUSE-149:
-----------------------------------

Just tried with Muse 2.1 and I get the same but I've finally found the problem. I was using the following request:

public static void main(String[] args) {
                String NAMESPACE_URI = "http://ws.apache.org/muse/test/wsrf";
                QName NOTIFICATION_TOPIC = new QName(NAMESPACE_URI,"Notification");
               
                try {
                        URI serviceURI = new URI("http://localhost:8080/NotificationServiceTest/services/WsResource");
                        URI consumerURI = new URI("http://localhost:8080/FicticiousService/services/WsResource");
                       
                        EndpointReference serviceEpr = new EndpointReference(serviceURI);
                        EndpointReference consumerEpr = new EndpointReference(consumerURI);
                       
                        WsResourceProxy proxy = new WsResourceProxy(serviceEpr);
                        proxy.setTrace(true);

                        proxy.getCurrentMessage(NOTIFICATION_TOPIC);
                       
                } catch (URISyntaxException e) {
                        // TODO Auto-generated catch block
                        e.printStackTrace();
                } catch (SoapFault e) {
                        // TODO Auto-generated catch block
                        e.printStackTrace();
                }
        }

So it generated the SOAP Message:

<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
    <soap:Header>
        <wsa:To xmlns:wsa="http://www.w3.org/2005/08/addressing">http://localhost:8080/NotificationServiceTest/services/WsResource</wsa:To>
        <wsa:Action xmlns:wsa="http://www.w3.org/2005/08/addressing">http://docs.oasis-open.org/wsn/bw-2/NotificationProducer/GetCurrentMessageRequest</wsa:Action>
        <wsa:MessageID xmlns:wsa="http://www.w3.org/2005/08/addressing">uuid:68934fe5-fffd-e27d-5144-5c6fc90c2f5b</wsa:MessageID>
        <wsa:From xmlns:wsa="http://www.w3.org/2005/08/addressing">
            <wsa:Address>http://www.w3.org/2005/08/addressing/role/anonymous</wsa:Address>
        </wsa:From>
    </soap:Header>
    <soap:Body>
        <wsnt:GetCurrentMessage
            xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2" xmlns:="http://ws.apache.org/muse/test/wsrf">Notification</wsnt:GetCurrentMessage>
    </soap:Body>
</soap:Envelope>

As you can see the topic name has no qualification. Using the code

QName NOTIFICATION_TOPIC = new QName(NAMESPACE_URI,"Notification","nm");

Generates the SOAP message:

<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
    <soap:Header>
        <wsa:To xmlns:wsa="http://www.w3.org/2005/08/addressing">http://localhost:8080/NotificationServiceTest/services/WsResource</wsa:To>
        <wsa:Action xmlns:wsa="http://www.w3.org/2005/08/addressing">http://docs.oasis-open.org/wsn/bw-2/NotificationProducer/GetCurrentMessageRequest</wsa:Action>
        <wsa:MessageID xmlns:wsa="http://www.w3.org/2005/08/addressing">uuid:98807d9b-665f-f009-84f9-5f8760aa35e3</wsa:MessageID>
        <wsa:From xmlns:wsa="http://www.w3.org/2005/08/addressing">
            <wsa:Address>http://www.w3.org/2005/08/addressing/role/anonymous</wsa:Address>
        </wsa:From>
    </soap:Header>
    <soap:Body>
        <wsnt:GetCurrentMessage
            xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2" xmlns:nm="http://ws.apache.org/muse/test/wsrf">nm:Notification</wsnt:GetCurrentMessage>
    </soap:Body>
</soap:Envelope>

And so, I get a response:

<soapenv:Envelope
    xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope" xmlns:wsa="http://www.w3.org/2005/08/addressing">
    <soapenv:Header>
        <wsa:To>http://www.w3.org/2005/08/addressing/anonymous</wsa:To>
        <wsa:ReplyTo>
            <wsa:Address>http://www.w3.org/2005/08/addressing/none</wsa:Address>
        </wsa:ReplyTo>
        <wsa:MessageID>urn:uuid:5A6170A5F52E3BF9DD11659307403972</wsa:MessageID>
        <wsa:Action>http://docs.oasis-open.org/wsn/bw-2/NotificationProducer/GetCurrentMessageRequest</wsa:Action>
        <wsa:RelatesTo wsa:RelationshipType="http://www.w3.org/2005/08/addressing/reply">uuid:98807d9b-665f-f009-84f9-5f8760aa35e3</wsa:RelatesTo>
    </soapenv:Header>
    <soapenv:Body>
        <soap:Fault xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:tns="http://axis2.platform.core.muse.apache.org">
            <soap:Code>
                <soap:Value>soap:Receiver</soap:Value>
            </soap:Code>
            <soap:Reason>
                <soap:Text>[ID = 'NoMessageAvailable'] The topic '{http://ws.apache.org/muse/test/wsrf}Notification' has not published any messages.</soap:Text>
            </soap:Reason>
            <soap:Detail>
                <wsnt:NoCurrentMessageOnTopicFault xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2">[ID = 'NoMessageAvailable'] The topic '{http://ws.apache.org/muse/test/wsrf}Notification' has not published any messages.</wsnt:NoCurrentMessageOnTopicFault>
            </soap:Detail>
        </soap:Fault>
    </soapenv:Body>
</soapenv:Envelope>

The problem now is that using that code:

public static void main(String[] args) {
                String NAMESPACE_URI = "http://ws.apache.org/muse/test/wsrf";
                QName NOTIFICATION_TOPIC = new QName(NAMESPACE_URI,"Notification","nm");
               
                try {
                        URI serviceURI = new URI("http://localhost:8080/NotificationServiceTest/services/WsResource");
                        URI consumerURI = new URI("http://localhost:8080/FicticiousService/services/WsResource");
                       
                        EndpointReference serviceEpr = new EndpointReference(serviceURI);
                        EndpointReference consumerEpr = new EndpointReference(consumerURI);
                       
                        WsResourceProxy proxy = new WsResourceProxy(serviceEpr);
                        proxy.setTrace(true);
                       
                        proxy.subscribe(consumerEpr, null, null);
                        proxy.generateNotification("This is a notification that must be delivered");
                        proxy.getCurrentMessage(NOTIFICATION_TOPIC);
                       
                } catch (URISyntaxException e) {
                        // TODO Auto-generated catch block
                        e.printStackTrace();
                } catch (SoapFault e) {
                        // TODO Auto-generated catch block
                        e.printStackTrace();
                }
        }

Generates that SOAP Trace:

[CLIENT TRACE] SOAP envelope contents (outgoing):

<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
    <soap:Header>
        <wsa:To xmlns:wsa="http://www.w3.org/2005/08/addressing">http://localhost:8080/NotificationServiceTest/services/WsResource</wsa:To>
        <wsa:Action xmlns:wsa="http://www.w3.org/2005/08/addressing">http://docs.oasis-open.org/wsn/bw-2/NotificationProducer/SubscribeRequest</wsa:Action>
        <wsa:MessageID xmlns:wsa="http://www.w3.org/2005/08/addressing">uuid:b11f0217-dacb-9a60-bc05-e637ffcd7641</wsa:MessageID>
        <wsa:From xmlns:wsa="http://www.w3.org/2005/08/addressing">
            <wsa:Address>http://www.w3.org/2005/08/addressing/role/anonymous</wsa:Address>
        </wsa:From>
    </soap:Header>
    <soap:Body>
        <wsnt:Subscribe xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2">
            <wsnt:ConsumerReference>
                <wsa:Address xmlns:wsa="http://www.w3.org/2005/08/addressing">http://localhost:8080/FicticiousService/services/WsResource</wsa:Address>
            </wsnt:ConsumerReference>
        </wsnt:Subscribe>
    </soap:Body>
</soap:Envelope>

[CLIENT TRACE] SOAP envelope contents (incoming):

<soapenv:Envelope
    xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope" xmlns:wsa="http://www.w3.org/2005/08/addressing">
    <soapenv:Header>
        <wsa:To>http://www.w3.org/2005/08/addressing/anonymous</wsa:To>
        <wsa:ReplyTo>
            <wsa:Address>http://www.w3.org/2005/08/addressing/none</wsa:Address>
        </wsa:ReplyTo>
        <wsa:MessageID>urn:uuid:44F52D8FB526AC125D11659309786152</wsa:MessageID>
        <wsa:Action>http://docs.oasis-open.org/wsn/bw-2/NotificationProducer/SubscribeRequest</wsa:Action>
        <wsa:RelatesTo wsa:RelationshipType="http://www.w3.org/2005/08/addressing/reply">uuid:b11f0217-dacb-9a60-bc05-e637ffcd7641</wsa:RelatesTo>
    </soapenv:Header>
    <soapenv:Body>
        <wsnt:SubscribeResponse
            xmlns:tns="http://axis2.platform.core.muse.apache.org" xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2">
            <wsnt:SubscriptionReference>
                <wsa:Address>http://127.0.0.1:8080/NotificationServiceTest/services/SubscriptionManager</wsa:Address>
                <wsa:ReferenceParameters>
                    <muse-wsa:ResourceId xmlns:muse-wsa="http://ws.apache.org/muse/addressing">MuseResource-1</muse-wsa:ResourceId>
                </wsa:ReferenceParameters>
            </wsnt:SubscriptionReference>
            <wsnt:CurrentTime>2006-12-12T14:43:01+01:00</wsnt:CurrentTime>
        </wsnt:SubscribeResponse>
    </soapenv:Body>
</soapenv:Envelope>

[CLIENT TRACE] SOAP envelope contents (outgoing):

<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
    <soap:Header>
        <wsa:To xmlns:wsa="http://www.w3.org/2005/08/addressing">http://localhost:8080/NotificationServiceTest/services/WsResource</wsa:To>
        <wsa:Action xmlns:wsa="http://www.w3.org/2005/08/addressing">http://ws.apache.org/muse/test/wsrf/GenerateNotificationRequest</wsa:Action>
        <wsa:MessageID xmlns:wsa="http://www.w3.org/2005/08/addressing">uuid:7ed37cf8-0348-547f-5120-70d3ca545581</wsa:MessageID>
        <wsa:From xmlns:wsa="http://www.w3.org/2005/08/addressing">
            <wsa:Address>http://www.w3.org/2005/08/addressing/role/anonymous</wsa:Address>
        </wsa:From>
    </soap:Header>
    <soap:Body>
        <pfx0:GenerateNotification xmlns:pfx0="http://ws.apache.org/muse/test/wsrf">
            <pfx0:NotificationText>This is a notification that must be delivered</pfx0:NotificationText>
        </pfx0:GenerateNotification>
    </soap:Body>
</soap:Envelope>

[CLIENT TRACE] SOAP envelope contents (incoming):

<soapenv:Envelope
    xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope" xmlns:wsa="http://www.w3.org/2005/08/addressing">
    <soapenv:Header>
        <wsa:To>http://www.w3.org/2005/08/addressing/anonymous</wsa:To>
        <wsa:ReplyTo>
            <wsa:Address>http://www.w3.org/2005/08/addressing/none</wsa:Address>
        </wsa:ReplyTo>
        <wsa:MessageID>urn:uuid:44F52D8FB526AC125D11659309814304</wsa:MessageID>
        <wsa:Action>http://ws.apache.org/muse/test/wsrf/GenerateNotificationRequest</wsa:Action>
        <wsa:RelatesTo wsa:RelationshipType="http://www.w3.org/2005/08/addressing/reply">uuid:7ed37cf8-0348-547f-5120-70d3ca545581</wsa:RelatesTo>
    </soapenv:Header>
    <soapenv:Body>
        <muse-op:GenerateNotificationResponse
            xmlns:muse-op="http://ws.apache.org/muse/test/wsrf" xmlns:tns="http://axis2.platform.core.muse.apache.org"/>
    </soapenv:Body>
</soapenv:Envelope>

[CLIENT TRACE] SOAP envelope contents (outgoing):

<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
    <soap:Header>
        <wsa:To xmlns:wsa="http://www.w3.org/2005/08/addressing">http://localhost:8080/NotificationServiceTest/services/WsResource</wsa:To>
        <wsa:Action xmlns:wsa="http://www.w3.org/2005/08/addressing">http://docs.oasis-open.org/wsn/bw-2/NotificationProducer/GetCurrentMessageRequest</wsa:Action>
        <wsa:MessageID xmlns:wsa="http://www.w3.org/2005/08/addressing">uuid:5550a629-28c5-e900-0d5a-109ebc063400</wsa:MessageID>
        <wsa:From xmlns:wsa="http://www.w3.org/2005/08/addressing">
            <wsa:Address>http://www.w3.org/2005/08/addressing/role/anonymous</wsa:Address>
        </wsa:From>
    </soap:Header>
    <soap:Body>
        <wsnt:GetCurrentMessage
            xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2" xmlns:nm="http://ws.apache.org/muse/test/wsrf">nm:Notification</wsnt:GetCurrentMessage>
    </soap:Body>
</soap:Envelope>

org.apache.muse.ws.addressing.soap.SoapFault: Server returned HTTP response code: 500 for URL: http://localhost:8080/NotificationServiceTest/services/WsResource
        at org.apache.muse.core.AbstractResourceClient.invoke(AbstractResourceClient.java:279)
        at org.apache.muse.core.AbstractResourceClient.invoke(AbstractResourceClient.java:235)
        at org.apache.muse.ws.notification.remote.NotificationProducerClient.getCurrentMessage(NotificationProducerClient.java:80)
        at org.apache.ws.muse.test.wsrf.NotificationTest.main(NotificationTest.java:33)

> Error 500 getting the current message
> -------------------------------------
>
>                 Key: MUSE-149
>                 URL: http://issues.apache.org/jira/browse/MUSE-149
>             Project: Muse
>          Issue Type: Bug
>          Components: WSN NotificationProducer
>    Affects Versions: 2.0.0, 2.1.0
>         Environment: Apache Tomcat 5.5 in a Ubuntu 6.06 box. JDK 1.5 from Sun Microsystems
>            Reporter: Jose Antonio
>         Assigned To: Dan Jemiolo
>             Fix For: 2.1.0
>
>         Attachments: catalina.out, muse.log, NotificationServiceTest.zip, NotificationTest.java
>
>
> When calling to getCurrentMessage from a Notification client, I get an error 500. It's the only operation that generates this kind of error as I can subscribe to a topic and notifications are generated when needed, but that operation is generating an error before it reaches Muse.
> Attached are some files that could be used to reproduce it. This is the SOAP messages that gets exchanged when running the test:
> [CLIENT TRACE] SOAP envelope contents (outgoing):
> <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
>     <soap:Header>
>         <wsa:To xmlns:wsa="http://www.w3.org/2005/08/addressing">http://localhost:8080/NotificationServiceTest/services/WsResource</wsa:To>
>         <wsa:Action xmlns:wsa="http://www.w3.org/2005/08/addressing">http://docs.oasis-open.org/wsn/bw-2/NotificationProducer/SubscribeRequest</wsa:Action>
>         <wsa:MessageID xmlns:wsa="http://www.w3.org/2005/08/addressing">uuid:2806625d-4a8d-dcfe-90a6-1c826dc07912</wsa:MessageID>
>         <wsa:From xmlns:wsa="http://www.w3.org/2005/08/addressing">
>             <wsa:Address>http://www.w3.org/2005/08/addressing/role/anonymous</wsa:Address>
>         </wsa:From>
>     </soap:Header>
>     <soap:Body>
>         <wsnt:Subscribe xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2">
>             <wsnt:ConsumerReference>
>                 <wsa:Address xmlns:wsa="http://www.w3.org/2005/08/addressing">http://localhost:8080/FicticiousService/services/WsResource</wsa:Address>
>             </wsnt:ConsumerReference>
>         </wsnt:Subscribe>
>     </soap:Body>
> </soap:Envelope>
> [CLIENT TRACE] SOAP envelope contents (incoming):
> <soapenv:Envelope
>     xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope" xmlns:wsa="http://www.w3.org/2005/08/addressing">
>     <soapenv:Header>
>         <wsa:To>http://www.w3.org/2005/08/addressing/anonymous</wsa:To>
>         <wsa:ReplyTo>
>             <wsa:Address>http://www.w3.org/2005/08/addressing/none</wsa:Address>
>         </wsa:ReplyTo>
>         <wsa:MessageID>urn:uuid:F9202DB4CDDD77D74E11641126874342</wsa:MessageID>
>         <wsa:Action>http://docs.oasis-open.org/wsn/bw-2/NotificationProducer/SubscribeRequest</wsa:Action>
>         <wsa:RelatesTo wsa:RelationshipType="http://www.w3.org/2005/08/addressing/reply">uuid:2806625d-4a8d-dcfe-90a6-1c826dc07912</wsa:RelatesTo>
>     </soapenv:Header>
>     <soapenv:Body>
>         <wsnt:SubscribeResponse xmlns:tns="http://ws.apache.org/axis2" xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2">
>             <wsnt:SubscriptionReference>
>                 <wsa:Address>http://127.0.0.1:8080/NotificationServiceTest/services/SubscriptionManager</wsa:Address>
>                 <wsa:ReferenceParameters>
>                     <muse-wsa:ResourceId xmlns:muse-wsa="http://ws.apache.org/muse/addressing">MuseResource-1</muse-wsa:ResourceId>
>                 </wsa:ReferenceParameters>
>             </wsnt:SubscriptionReference>
>             <wsnt:CurrentTime>2006-11-21T13:38:12+01:00</wsnt:CurrentTime>
>         </wsnt:SubscribeResponse>
>     </soapenv:Body>
> </soapenv:Envelope>
> [CLIENT TRACE] SOAP envelope contents (outgoing):
> <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
>     <soap:Header>
>         <wsa:To xmlns:wsa="http://www.w3.org/2005/08/addressing">http://localhost:8080/NotificationServiceTest/services/WsResource</wsa:To>
>         <wsa:Action xmlns:wsa="http://www.w3.org/2005/08/addressing">http://ws.apache.org/muse/test/wsrf/GenerateNotificationRequest</wsa:Action>
>         <wsa:MessageID xmlns:wsa="http://www.w3.org/2005/08/addressing">uuid:20380101-53f5-c614-4cd1-d21e29f3989a</wsa:MessageID>
>         <wsa:From xmlns:wsa="http://www.w3.org/2005/08/addressing">
>             <wsa:Address>http://www.w3.org/2005/08/addressing/role/anonymous</wsa:Address>
>         </wsa:From>
>     </soap:Header>
>     <soap:Body>
>         <pfx0:GenerateNotification xmlns:pfx0="http://ws.apache.org/muse/test/wsrf">
>             <pfx0:NotificationText>This is a notification that must be delivered</pfx0:NotificationText>
>         </pfx0:GenerateNotification>
>     </soap:Body>
> </soap:Envelope>
> [CLIENT TRACE] SOAP envelope contents (incoming):
> <soapenv:Envelope
>     xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope" xmlns:wsa="http://www.w3.org/2005/08/addressing">
>     <soapenv:Header>
>         <wsa:To>http://www.w3.org/2005/08/addressing/anonymous</wsa:To>
>         <wsa:ReplyTo>
>             <wsa:Address>http://www.w3.org/2005/08/addressing/none</wsa:Address>
>         </wsa:ReplyTo>
>         <wsa:MessageID>urn:uuid:F9202DB4CDDD77D74E11641126939044</wsa:MessageID>
>         <wsa:Action>http://ws.apache.org/muse/test/wsrf/GenerateNotificationRequest</wsa:Action>
>         <wsa:RelatesTo wsa:RelationshipType="http://www.w3.org/2005/08/addressing/reply">uuid:20380101-53f5-c614-4cd1-d21e29f3989a</wsa:RelatesTo>
>     </soapenv:Header>
>     <soapenv:Body>
>         <muse-op:GenerateNotificationResponse
>             xmlns:muse-op="http://ws.apache.org/muse/test/wsrf" xmlns:tns="http://ws.apache.org/axis2"/>
>     </soapenv:Body>
> </soapenv:Envelope>
> [CLIENT TRACE] SOAP envelope contents (outgoing):
> <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
>     <soap:Header>
>         <wsa:To xmlns:wsa="http://www.w3.org/2005/08/addressing">http://localhost:8080/NotificationServiceTest/services/WsResource</wsa:To>
>         <wsa:Action xmlns:wsa="http://www.w3.org/2005/08/addressing">http://docs.oasis-open.org/wsn/bw-2/NotificationProducer/GetCurrentMessageRequest</wsa:Action>
>         <wsa:MessageID xmlns:wsa="http://www.w3.org/2005/08/addressing">uuid:19f3dd63-a3bc-09c1-00d2-bcf64dea0dab</wsa:MessageID>
>         <wsa:From xmlns:wsa="http://www.w3.org/2005/08/addressing">
>             <wsa:Address>http://www.w3.org/2005/08/addressing/role/anonymous</wsa:Address>
>         </wsa:From>
>     </soap:Header>
>     <soap:Body>
>         <wsnt:GetCurrentMessage
>             xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2" xmlns:="http://ws.apache.org/muse/test/wsrf">Notification</wsnt:GetCurrentMessage>
>     </soap:Body>
> </soap:Envelope>
> org.apache.muse.ws.addressing.soap.SoapFault: Server returned HTTP response code: 500 for URL: http://localhost:8080/NotificationServiceTest/services/WsResource
> at org.apache.muse.core.AbstractResourceClient.invoke(AbstractResourceClient.java:254)
> at org.apache.muse.ws.notification.remote.NotificationProducerClient.getCurrentMessage(NotificationProducerClient.java:80)
> at org.apache.ws.muse.test.wsrf.NotificationTest.main(NotificationTest.java:32)

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe, e-mail: muse-dev-unsubscribe@...
For additional commands, e-mail: muse-dev-help@...


[jira] Commented: (MUSE-149) Error 500 getting the current message

by JIRA jira@apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

    [ http://issues.apache.org/jira/browse/MUSE-149?page=comments#action_12457723 ]
           
Dan Jemiolo commented on MUSE-149:
----------------------------------

Can you send:

a) the wsdl2java command you're using (so I know if you're using Axis2 or not)

b) SOAP monitor trace so we can see what the server error is. HTTP 500 errors usually mean a problem with the underlying SOAP engine config, and the request hasn't gotten to Muse yet.

> Error 500 getting the current message
> -------------------------------------
>
>                 Key: MUSE-149
>                 URL: http://issues.apache.org/jira/browse/MUSE-149
>             Project: Muse
>          Issue Type: Bug
>          Components: WSN NotificationProducer
>    Affects Versions: 2.0.0, 2.1.0
>         Environment: Apache Tomcat 5.5 in a Ubuntu 6.06 box. JDK 1.5 from Sun Microsystems
>            Reporter: Jose Antonio
>         Assigned To: Dan Jemiolo
>             Fix For: 2.1.0
>
>         Attachments: catalina.out, muse.log, NotificationServiceTest.zip, NotificationTest.java
>
>
> When calling to getCurrentMessage from a Notification client, I get an error 500. It's the only operation that generates this kind of error as I can subscribe to a topic and notifications are generated when needed, but that operation is generating an error before it reaches Muse.
> Attached are some files that could be used to reproduce it. This is the SOAP messages that gets exchanged when running the test:
> [CLIENT TRACE] SOAP envelope contents (outgoing):
> <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
>     <soap:Header>
>         <wsa:To xmlns:wsa="http://www.w3.org/2005/08/addressing">http://localhost:8080/NotificationServiceTest/services/WsResource</wsa:To>
>         <wsa:Action xmlns:wsa="http://www.w3.org/2005/08/addressing">http://docs.oasis-open.org/wsn/bw-2/NotificationProducer/SubscribeRequest</wsa:Action>
>         <wsa:MessageID xmlns:wsa="http://www.w3.org/2005/08/addressing">uuid:2806625d-4a8d-dcfe-90a6-1c826dc07912</wsa:MessageID>
>         <wsa:From xmlns:wsa="http://www.w3.org/2005/08/addressing">
>             <wsa:Address>http://www.w3.org/2005/08/addressing/role/anonymous</wsa:Address>
>         </wsa:From>
>     </soap:Header>
>     <soap:Body>
>         <wsnt:Subscribe xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2">
>             <wsnt:ConsumerReference>
>                 <wsa:Address xmlns:wsa="http://www.w3.org/2005/08/addressing">http://localhost:8080/FicticiousService/services/WsResource</wsa:Address>
>             </wsnt:ConsumerReference>
>         </wsnt:Subscribe>
>     </soap:Body>
> </soap:Envelope>
> [CLIENT TRACE] SOAP envelope contents (incoming):
> <soapenv:Envelope
>     xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope" xmlns:wsa="http://www.w3.org/2005/08/addressing">
>     <soapenv:Header>
>         <wsa:To>http://www.w3.org/2005/08/addressing/anonymous</wsa:To>
>         <wsa:ReplyTo>
>             <wsa:Address>http://www.w3.org/2005/08/addressing/none</wsa:Address>
>         </wsa:ReplyTo>
>         <wsa:MessageID>urn:uuid:F9202DB4CDDD77D74E11641126874342</wsa:MessageID>
>         <wsa:Action>http://docs.oasis-open.org/wsn/bw-2/NotificationProducer/SubscribeRequest</wsa:Action>
>         <wsa:RelatesTo wsa:RelationshipType="http://www.w3.org/2005/08/addressing/reply">uuid:2806625d-4a8d-dcfe-90a6-1c826dc07912</wsa:RelatesTo>
>     </soapenv:Header>
>     <soapenv:Body>
>         <wsnt:SubscribeResponse xmlns:tns="http://ws.apache.org/axis2" xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2">
>             <wsnt:SubscriptionReference>
>                 <wsa:Address>http://127.0.0.1:8080/NotificationServiceTest/services/SubscriptionManager</wsa:Address>
>                 <wsa:ReferenceParameters>
>                     <muse-wsa:ResourceId xmlns:muse-wsa="http://ws.apache.org/muse/addressing">MuseResource-1</muse-wsa:ResourceId>
>                 </wsa:ReferenceParameters>
>             </wsnt:SubscriptionReference>
>             <wsnt:CurrentTime>2006-11-21T13:38:12+01:00</wsnt:CurrentTime>
>         </wsnt:SubscribeResponse>
>     </soapenv:Body>
> </soapenv:Envelope>
> [CLIENT TRACE] SOAP envelope contents (outgoing):
> <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
>     <soap:Header>
>         <wsa:To xmlns:wsa="http://www.w3.org/2005/08/addressing">http://localhost:8080/NotificationServiceTest/services/WsResource</wsa:To>
>         <wsa:Action xmlns:wsa="http://www.w3.org/2005/08/addressing">http://ws.apache.org/muse/test/wsrf/GenerateNotificationRequest</wsa:Action>
>         <wsa:MessageID xmlns:wsa="http://www.w3.org/2005/08/addressing">uuid:20380101-53f5-c614-4cd1-d21e29f3989a</wsa:MessageID>
>         <wsa:From xmlns:wsa="http://www.w3.org/2005/08/addressing">
>             <wsa:Address>http://www.w3.org/2005/08/addressing/role/anonymous</wsa:Address>
>         </wsa:From>
>     </soap:Header>
>     <soap:Body>
>         <pfx0:GenerateNotification xmlns:pfx0="http://ws.apache.org/muse/test/wsrf">
>             <pfx0:NotificationText>This is a notification that must be delivered</pfx0:NotificationText>
>         </pfx0:GenerateNotification>
>     </soap:Body>
> </soap:Envelope>
> [CLIENT TRACE] SOAP envelope contents (incoming):
> <soapenv:Envelope
>     xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope" xmlns:wsa="http://www.w3.org/2005/08/addressing">
>     <soapenv:Header>
>         <wsa:To>http://www.w3.org/2005/08/addressing/anonymous</wsa:To>
>         <wsa:ReplyTo>
>             <wsa:Address>http://www.w3.org/2005/08/addressing/none</wsa:Address>
>         </wsa:ReplyTo>
>         <wsa:MessageID>urn:uuid:F9202DB4CDDD77D74E11641126939044</wsa:MessageID>
>         <wsa:Action>http://ws.apache.org/muse/test/wsrf/GenerateNotificationRequest</wsa:Action>
>         <wsa:RelatesTo wsa:RelationshipType="http://www.w3.org/2005/08/addressing/reply">uuid:20380101-53f5-c614-4cd1-d21e29f3989a</wsa:RelatesTo>
>     </soapenv:Header>
>     <soapenv:Body>
>         <muse-op:GenerateNotificationResponse
>             xmlns:muse-op="http://ws.apache.org/muse/test/wsrf" xmlns:tns="http://ws.apache.org/axis2"/>
>     </soapenv:Body>
> </soapenv:Envelope>
> [CLIENT TRACE] SOAP envelope contents (outgoing):
> <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
>     <soap:Header>
>         <wsa:To xmlns:wsa="http://www.w3.org/2005/08/addressing">http://localhost:8080/NotificationServiceTest/services/WsResource</wsa:To>
>         <wsa:Action xmlns:wsa="http://www.w3.org/2005/08/addressing">http://docs.oasis-open.org/wsn/bw-2/NotificationProducer/GetCurrentMessageRequest</wsa:Action>
>         <wsa:MessageID xmlns:wsa="http://www.w3.org/2005/08/addressing">uuid:19f3dd63-a3bc-09c1-00d2-bcf64dea0dab</wsa:MessageID>
>         <wsa:From xmlns:wsa="http://www.w3.org/2005/08/addressing">
>             <wsa:Address>http://www.w3.org/2005/08/addressing/role/anonymous</wsa:Address>
>         </wsa:From>
>     </soap:Header>
>     <soap:Body>
>         <wsnt:GetCurrentMessage
>             xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2" xmlns:="http://ws.apache.org/muse/test/wsrf">Notification</wsnt:GetCurrentMessage>
>     </soap:Body>
> </soap:Envelope>
> org.apache.muse.ws.addressing.soap.SoapFault: Server returned HTTP response code: 500 for URL: http://localhost:8080/NotificationServiceTest/services/WsResource
> at org.apache.muse.core.AbstractResourceClient.invoke(AbstractResourceClient.java:254)
> at org.apache.muse.ws.notification.remote.NotificationProducerClient.getCurrentMessage(NotificationProducerClient.java:80)
> at org.apache.ws.muse.test.wsrf.NotificationTest.main(NotificationTest.java:32)

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe, e-mail: muse-dev-unsubscribe@...
For additional commands, e-mail: muse-dev-help@...


[jira] Commented: (MUSE-149) Error 500 getting the current message

by JIRA jira@apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

    [ http://issues.apache.org/jira/browse/MUSE-149?page=comments#action_12457745 ]
           
Jose Antonio commented on MUSE-149:
-----------------------------------

1. I'm using the following command:
/opt/muse-2.1.0-bin/bin/wsdl2java.sh -axis2 -wsdl wsdl/WsResource.wsdl

2. I'm tracing messages with tcpmon (http://ws.apache.org/commons/tcpmon) . Attached are the sent and received messages.


> Error 500 getting the current message
> -------------------------------------
>
>                 Key: MUSE-149
>                 URL: http://issues.apache.org/jira/browse/MUSE-149
>             Project: Muse
>          Issue Type: Bug
>          Components: WSN NotificationProducer
>    Affects Versions: 2.0.0, 2.1.0
>         Environment: Apache Tomcat 5.5 in a Ubuntu 6.06 box. JDK 1.5 from Sun Microsystems
>            Reporter: Jose Antonio
>         Assigned To: Dan Jemiolo
>             Fix For: 2.1.0
>
>         Attachments: catalina.out, muse.log, NotificationServiceTest.zip, NotificationTest.java
>
>
> When calling to getCurrentMessage from a Notification client, I get an error 500. It's the only operation that generates this kind of error as I can subscribe to a topic and notifications are generated when needed, but that operation is generating an error before it reaches Muse.
> Attached are some files that could be used to reproduce it. This is the SOAP messages that gets exchanged when running the test:
> [CLIENT TRACE] SOAP envelope contents (outgoing):
> <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
>     <soap:Header>
>         <wsa:To xmlns:wsa="http://www.w3.org/2005/08/addressing">http://localhost:8080/NotificationServiceTest/services/WsResource</wsa:To>
>         <wsa:Action xmlns:wsa="http://www.w3.org/2005/08/addressing">http://docs.oasis-open.org/wsn/bw-2/NotificationProducer/SubscribeRequest</wsa:Action>
>         <wsa:MessageID xmlns:wsa="http://www.w3.org/2005/08/addressing">uuid:2806625d-4a8d-dcfe-90a6-1c826dc07912</wsa:MessageID>
>         <wsa:From xmlns:wsa="http://www.w3.org/2005/08/addressing">
>             <wsa:Address>http://www.w3.org/2005/08/addressing/role/anonymous</wsa:Address>
>         </wsa:From>
>     </soap:Header>
>     <soap:Body>
>         <wsnt:Subscribe xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2">
>             <wsnt:ConsumerReference>
>                 <wsa:Address xmlns:wsa="http://www.w3.org/2005/08/addressing">http://localhost:8080/FicticiousService/services/WsResource</wsa:Address>
>             </wsnt:ConsumerReference>
>         </wsnt:Subscribe>
>     </soap:Body>
> </soap:Envelope>
> [CLIENT TRACE] SOAP envelope contents (incoming):
> <soapenv:Envelope
>     xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope" xmlns:wsa="http://www.w3.org/2005/08/addressing">
>     <soapenv:Header>
>         <wsa:To>http://www.w3.org/2005/08/addressing/anonymous</wsa:To>
>         <wsa:ReplyTo>
>             <wsa:Address>http://www.w3.org/2005/08/addressing/none</wsa:Address>
>         </wsa:ReplyTo>
>         <wsa:MessageID>urn:uuid:F9202DB4CDDD77D74E11641126874342</wsa:MessageID>
>         <wsa:Action>http://docs.oasis-open.org/wsn/bw-2/NotificationProducer/SubscribeRequest</wsa:Action>
>         <wsa:RelatesTo wsa:RelationshipType="http://www.w3.org/2005/08/addressing/reply">uuid:2806625d-4a8d-dcfe-90a6-1c826dc07912</wsa:RelatesTo>
>     </soapenv:Header>
>     <soapenv:Body>
>         <wsnt:SubscribeResponse xmlns:tns="http://ws.apache.org/axis2" xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2">
>             <wsnt:SubscriptionReference>
>                 <wsa:Address>http://127.0.0.1:8080/NotificationServiceTest/services/SubscriptionManager</wsa:Address>
>                 <wsa:ReferenceParameters>
>                     <muse-wsa:ResourceId xmlns:muse-wsa="http://ws.apache.org/muse/addressing">MuseResource-1</muse-wsa:ResourceId>
>                 </wsa:ReferenceParameters>
>             </wsnt:SubscriptionReference>
>             <wsnt:CurrentTime>2006-11-21T13:38:12+01:00</wsnt:CurrentTime>
>         </wsnt:SubscribeResponse>
>     </soapenv:Body>
> </soapenv:Envelope>
> [CLIENT TRACE] SOAP envelope contents (outgoing):
> <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
>     <soap:Header>
>         <wsa:To xmlns:wsa="http://www.w3.org/2005/08/addressing">http://localhost:8080/NotificationServiceTest/services/WsResource</wsa:To>
>         <wsa:Action xmlns:wsa="http://www.w3.org/2005/08/addressing">http://ws.apache.org/muse/test/wsrf/GenerateNotificationRequest</wsa:Action>
>         <wsa:MessageID xmlns:wsa="http://www.w3.org/2005/08/addressing">uuid:20380101-53f5-c614-4cd1-d21e29f3989a</wsa:MessageID>
>         <wsa:From xmlns:wsa="http://www.w3.org/2005/08/addressing">
>             <wsa:Address>http://www.w3.org/2005/08/addressing/role/anonymous</wsa:Address>
>         </wsa:From>
>     </soap:Header>
>     <soap:Body>
>         <pfx0:GenerateNotification xmlns:pfx0="http://ws.apache.org/muse/test/wsrf">
>             <pfx0:NotificationText>This is a notification that must be delivered</pfx0:NotificationText>
>         </pfx0:GenerateNotification>
>     </soap:Body>
> </soap:Envelope>
> [CLIENT TRACE] SOAP envelope contents (incoming):
> <soapenv:Envelope
>     xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope" xmlns:wsa="http://www.w3.org/2005/08/addressing">
>     <soapenv:Header>
>         <wsa:To>http://www.w3.org/2005/08/addressing/anonymous</wsa:To>
>         <wsa:ReplyTo>
>             <wsa:Address>http://www.w3.org/2005/08/addressing/none</wsa:Address>
>         </wsa:ReplyTo>
>         <wsa:MessageID>urn:uuid:F9202DB4CDDD77D74E11641126939044</wsa:MessageID>
>         <wsa:Action>http://ws.apache.org/muse/test/wsrf/GenerateNotificationRequest</wsa:Action>
>         <wsa:RelatesTo wsa:RelationshipType="http://www.w3.org/2005/08/addressing/reply">uuid:20380101-53f5-c614-4cd1-d21e29f3989a</wsa:RelatesTo>
>     </soapenv:Header>
>     <soapenv:Body>
>         <muse-op:GenerateNotificationResponse
>             xmlns:muse-op="http://ws.apache.org/muse/test/wsrf" xmlns:tns="http://ws.apache.org/axis2"/>
>     </soapenv:Body>
> </soapenv:Envelope>
> [CLIENT TRACE] SOAP envelope contents (outgoing):
> <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
>     <soap:Header>
>         <wsa:To xmlns:wsa="http://www.w3.org/2005/08/addressing">http://localhost:8080/NotificationServiceTest/services/WsResource</wsa:To>
>         <wsa:Action xmlns:wsa="http://www.w3.org/2005/08/addressing">http://docs.oasis-open.org/wsn/bw-2/NotificationProducer/GetCurrentMessageRequest</wsa:Action>
>         <wsa:MessageID xmlns:wsa="http://www.w3.org/2005/08/addressing">uuid:19f3dd63-a3bc-09c1-00d2-bcf64dea0dab</wsa:MessageID>
>         <wsa:From xmlns:wsa="http://www.w3.org/2005/08/addressing">
>             <wsa:Address>http://www.w3.org/2005/08/addressing/role/anonymous</wsa:Address>
>         </wsa:From>
>     </soap:Header>
>     <soap:Body>
>         <wsnt:GetCurrentMessage
>             xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2" xmlns:="http://ws.apache.org/muse/test/wsrf">Notification</wsnt:GetCurrentMessage>
>     </soap:Body>
> </soap:Envelope>
> org.apache.muse.ws.addressing.soap.SoapFault: Server returned HTTP response code: 500 for URL: http://localhost:8080/NotificationServiceTest/services/WsResource
> at org.apache.muse.core.AbstractResourceClient.invoke(AbstractResourceClient.java:254)
> at org.apache.muse.ws.notification.remote.NotificationProducerClient.getCurrentMessage(NotificationProducerClient.java:80)
> at org.apache.ws.muse.test.wsrf.NotificationTest.main(NotificationTest.java:32)

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe, e-mail: muse-dev-unsubscribe@...
For additional commands, e-mail: muse-dev-help@...


[jira] Updated: (MUSE-149) Error 500 getting the current message

by JIRA jira@apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

     [ http://issues.apache.org/jira/browse/MUSE-149?page=all ]

Jose Antonio updated MUSE-149:
------------------------------

    Attachment: request1.txt

Subscribe operation.

> Error 500 getting the current message
> -------------------------------------
>
>                 Key: MUSE-149
>                 URL: http://issues.apache.org/jira/browse/MUSE-149
>             Project: Muse
>          Issue Type: Bug
>          Components: WSN NotificationProducer
>    Affects Versions: 2.0.0, 2.1.0
>         Environment: Apache Tomcat 5.5 in a Ubuntu 6.06 box. JDK 1.5 from Sun Microsystems
>            Reporter: Jose Antonio
>         Assigned To: Dan Jemiolo
>             Fix For: 2.1.0
>
>         Attachments: catalina.out, muse.log, NotificationServiceTest.zip, NotificationTest.java, request1.txt
>
>
> When calling to getCurrentMessage from a Notification client, I get an error 500. It's the only operation that generates this kind of error as I can subscribe to a topic and notifications are generated when needed, but that operation is generating an error before it reaches Muse.
> Attached are some files that could be used to reproduce it. This is the SOAP messages that gets exchanged when running the test:
> [CLIENT TRACE] SOAP envelope contents (outgoing):
> <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
>     <soap:Header>
>         <wsa:To xmlns:wsa="http://www.w3.org/2005/08/addressing">http://localhost:8080/NotificationServiceTest/services/WsResource</wsa:To>
>         <wsa:Action xmlns:wsa="http://www.w3.org/2005/08/addressing">http://docs.oasis-open.org/wsn/bw-2/NotificationProducer/SubscribeRequest</wsa:Action>
>         <wsa:MessageID xmlns:wsa="http://www.w3.org/2005/08/addressing">uuid:2806625d-4a8d-dcfe-90a6-1c826dc07912</wsa:MessageID>
>         <wsa:From xmlns:wsa="http://www.w3.org/2005/08/addressing">
>             <wsa:Address>http://www.w3.org/2005/08/addressing/role/anonymous</wsa:Address>
>         </wsa:From>
>     </soap:Header>
>     <soap:Body>
>         <wsnt:Subscribe xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2">
>             <wsnt:ConsumerReference>
>                 <wsa:Address xmlns:wsa="http://www.w3.org/2005/08/addressing">http://localhost:8080/FicticiousService/services/WsResource</wsa:Address>
>             </wsnt:ConsumerReference>
>         </wsnt:Subscribe>
>     </soap:Body>
> </soap:Envelope>
> [CLIENT TRACE] SOAP envelope contents (incoming):
> <soapenv:Envelope
>     xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope" xmlns:wsa="http://www.w3.org/2005/08/addressing">
>     <soapenv:Header>
>         <wsa:To>http://www.w3.org/2005/08/addressing/anonymous</wsa:To>
>         <wsa:ReplyTo>
>             <wsa:Address>http://www.w3.org/2005/08/addressing/none</wsa:Address>
>         </wsa:ReplyTo>
>         <wsa:MessageID>urn:uuid:F9202DB4CDDD77D74E11641126874342</wsa:MessageID>
>         <wsa:Action>http://docs.oasis-open.org/wsn/bw-2/NotificationProducer/SubscribeRequest</wsa:Action>
>         <wsa:RelatesTo wsa:RelationshipType="http://www.w3.org/2005/08/addressing/reply">uuid:2806625d-4a8d-dcfe-90a6-1c826dc07912</wsa:RelatesTo>
>     </soapenv:Header>
>     <soapenv:Body>
>         <wsnt:SubscribeResponse xmlns:tns="http://ws.apache.org/axis2" xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2">
>             <wsnt:SubscriptionReference>
>                 <wsa:Address>http://127.0.0.1:8080/NotificationServiceTest/services/SubscriptionManager</wsa:Address>
>                 <wsa:ReferenceParameters>
>                     <muse-wsa:ResourceId xmlns:muse-wsa="http://ws.apache.org/muse/addressing">MuseResource-1</muse-wsa:ResourceId>
>                 </wsa:ReferenceParameters>
>             </wsnt:SubscriptionReference>
>             <wsnt:CurrentTime>2006-11-21T13:38:12+01:00</wsnt:CurrentTime>
>         </wsnt:SubscribeResponse>
>     </soapenv:Body>
> </soapenv:Envelope>
> [CLIENT TRACE] SOAP envelope contents (outgoing):
> <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
>     <soap:Header>
>         <wsa:To xmlns:wsa="http://www.w3.org/2005/08/addressing">http://localhost:8080/NotificationServiceTest/services/WsResource</wsa:To>
>         <wsa:Action xmlns:wsa="http://www.w3.org/2005/08/addressing">http://ws.apache.org/muse/test/wsrf/GenerateNotificationRequest</wsa:Action>
>         <wsa:MessageID xmlns:wsa="http://www.w3.org/2005/08/addressing">uuid:20380101-53f5-c614-4cd1-d21e29f3989a</wsa:MessageID>
>         <wsa:From xmlns:wsa="http://www.w3.org/2005/08/addressing">
>             <wsa:Address>http://www.w3.org/2005/08/addressing/role/anonymous</wsa:Address>
>         </wsa:From>
>     </soap:Header>
>     <soap:Body>
>         <pfx0:GenerateNotification xmlns:pfx0="http://ws.apache.org/muse/test/wsrf">
>             <pfx0:NotificationText>This is a notification that must be delivered</pfx0:NotificationText>
>         </pfx0:GenerateNotification>
>     </soap:Body>
> </soap:Envelope>
> [CLIENT TRACE] SOAP envelope contents (incoming):
> <soapenv:Envelope
>     xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope" xmlns:wsa="http://www.w3.org/2005/08/addressing">
>     <soapenv:Header>
>         <wsa:To>http://www.w3.org/2005/08/addressing/anonymous</wsa:To>
>         <wsa:ReplyTo>
>             <wsa:Address>http://www.w3.org/2005/08/addressing/none</wsa:Address>
>         </wsa:ReplyTo>
>         <wsa:MessageID>urn:uuid:F9202DB4CDDD77D74E11641126939044</wsa:MessageID>
>         <wsa:Action>http://ws.apache.org/muse/test/wsrf/GenerateNotificationRequest</wsa:Action>
>         <wsa:RelatesTo wsa:RelationshipType="http://www.w3.org/2005/08/addressing/reply">uuid:20380101-53f5-c614-4cd1-d21e29f3989a</wsa:RelatesTo>
>     </soapenv:Header>
>     <soapenv:Body>
>         <muse-op:GenerateNotificationResponse
>             xmlns:muse-op="http://ws.apache.org/muse/test/wsrf" xmlns:tns="http://ws.apache.org/axis2"/>
>     </soapenv:Body>
> </soapenv:Envelope>
> [CLIENT TRACE] SOAP envelope contents (outgoing):
> <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
>     <soap:Header>
>         <wsa:To xmlns:wsa="http://www.w3.org/2005/08/addressing">http://localhost:8080/NotificationServiceTest/services/WsResource</wsa:To>
>         <wsa:Action xmlns:wsa="http://www.w3.org/2005/08/addressing">http://docs.oasis-open.org/wsn/bw-2/NotificationProducer/GetCurrentMessageRequest</wsa:Action>
>         <wsa:MessageID xmlns:wsa="http://www.w3.org/2005/08/addressing">uuid:19f3dd63-a3bc-09c1-00d2-bcf64dea0dab</wsa:MessageID>
>         <wsa:From xmlns:wsa="http://www.w3.org/2005/08/addressing">
>             <wsa:Address>http://www.w3.org/2005/08/addressing/role/anonymous</wsa:Address>
>         </wsa:From>
>     </soap:Header>
>     <soap:Body>
>         <wsnt:GetCurrentMessage
>             xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2" xmlns:="http://ws.apache.org/muse/test/wsrf">Notification</wsnt:GetCurrentMessage>
>     </soap:Body>
> </soap:Envelope>
> org.apache.muse.ws.addressing.soap.SoapFault: Server returned HTTP response code: 500 for URL: http://localhost:8080/NotificationServiceTest/services/WsResource
> at org.apache.muse.core.AbstractResourceClient.invoke(AbstractResourceClient.java:254)
> at org.apache.muse.ws.notification.remote.NotificationProducerClient.getCurrentMessage(NotificationProducerClient.java:80)
> at org.apache.ws.muse.test.wsrf.NotificationTest.main(NotificationTest.java:32)

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe, e-mail: muse-dev-unsubscribe@...
For additional commands, e-mail: muse-dev-help@...


[jira] Updated: (MUSE-149) Error 500 getting the current message

by JIRA jira@apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

     [ http://issues.apache.org/jira/browse/MUSE-149?page=all ]

Jose Antonio updated MUSE-149:
------------------------------

    Attachment: request2.txt

GenerateNotification operation

> Error 500 getting the current message
> -------------------------------------
>
>                 Key: MUSE-149
>                 URL: http://issues.apache.org/jira/browse/MUSE-149
>             Project: Muse
>          Issue Type: Bug
>          Components: WSN NotificationProducer
>    Affects Versions: 2.0.0, 2.1.0
>         Environment: Apache Tomcat 5.5 in a Ubuntu 6.06 box. JDK 1.5 from Sun Microsystems
>            Reporter: Jose Antonio
>         Assigned To: Dan Jemiolo
>             Fix For: 2.1.0
>
>         Attachments: catalina.out, muse.log, NotificationServiceTest.zip, NotificationTest.java, request1.txt, request2.txt
>
>
> When calling to getCurrentMessage from a Notification client, I get an error 500. It's the only operation that generates this kind of error as I can subscribe to a topic and notifications are generated when needed, but that operation is generating an error before it reaches Muse.
> Attached are some files that could be used to reproduce it. This is the SOAP messages that gets exchanged when running the test:
> [CLIENT TRACE] SOAP envelope contents (outgoing):
> <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
>     <soap:Header>
>         <wsa:To xmlns:wsa="http://www.w3.org/2005/08/addressing">http://localhost:8080/NotificationServiceTest/services/WsResource</wsa:To>
>         <wsa:Action xmlns:wsa="http://www.w3.org/2005/08/addressing">http://docs.oasis-open.org/wsn/bw-2/NotificationProducer/SubscribeRequest</wsa:Action>
>         <wsa:MessageID xmlns:wsa="http://www.w3.org/2005/08/addressing">uuid:2806625d-4a8d-dcfe-90a6-1c826dc07912</wsa:MessageID>
>         <wsa:From xmlns:wsa="http://www.w3.org/2005/08/addressing">
>             <wsa:Address>http://www.w3.org/2005/08/addressing/role/anonymous</wsa:Address>
>         </wsa:From>
>     </soap:Header>
>     <soap:Body>
>         <wsnt:Subscribe xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2">
>             <wsnt:ConsumerReference>
>                 <wsa:Address xmlns:wsa="http://www.w3.org/2005/08/addressing">http://localhost:8080/FicticiousService/services/WsResource</wsa:Address>
>             </wsnt:ConsumerReference>
>         </wsnt:Subscribe>
>     </soap:Body>
> </soap:Envelope>
> [CLIENT TRACE] SOAP envelope contents (incoming):
> <soapenv:Envelope
>     xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope" xmlns:wsa="http://www.w3.org/2005/08/addressing">
>     <soapenv:Header>
>         <wsa:To>http://www.w3.org/2005/08/addressing/anonymous</wsa:To>
>         <wsa:ReplyTo>
>             <wsa:Address>http://www.w3.org/2005/08/addressing/none</wsa:Address>
>         </wsa:ReplyTo>
>         <wsa:MessageID>urn:uuid:F9202DB4CDDD77D74E11641126874342</wsa:MessageID>
>         <wsa:Action>http://docs.oasis-open.org/wsn/bw-2/NotificationProducer/SubscribeRequest</wsa:Action>
>         <wsa:RelatesTo wsa:RelationshipType="http://www.w3.org/2005/08/addressing/reply">uuid:2806625d-4a8d-dcfe-90a6-1c826dc07912</wsa:RelatesTo>
>     </soapenv:Header>
>     <soapenv:Body>
>         <wsnt:SubscribeResponse xmlns:tns="http://ws.apache.org/axis2" xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2">
>             <wsnt:SubscriptionReference>
>                 <wsa:Address>http://127.0.0.1:8080/NotificationServiceTest/services/SubscriptionManager</wsa:Address>
>                 <wsa:ReferenceParameters>
>                     <muse-wsa:ResourceId xmlns:muse-wsa="http://ws.apache.org/muse/addressing">MuseResource-1</muse-wsa:ResourceId>
>                 </wsa:ReferenceParameters>
>             </wsnt:SubscriptionReference>
>             <wsnt:CurrentTime>2006-11-21T13:38:12+01:00</wsnt:CurrentTime>
>         </wsnt:SubscribeResponse>
>     </soapenv:Body>
> </soapenv:Envelope>
> [CLIENT TRACE] SOAP envelope contents (outgoing):
> <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
>     <soap:Header>
>         <wsa:To xmlns:wsa="http://www.w3.org/2005/08/addressing">http://localhost:8080/NotificationServiceTest/services/WsResource</wsa:To>
>         <wsa:Action xmlns:wsa="http://www.w3.org/2005/08/addressing">http://ws.apache.org/muse/test/wsrf/GenerateNotificationRequest</wsa:Action>
>         <wsa:MessageID xmlns:wsa="http://www.w3.org/2005/08/addressing">uuid:20380101-53f5-c614-4cd1-d21e29f3989a</wsa:MessageID>
>         <wsa:From xmlns:wsa="http://www.w3.org/2005/08/addressing">
>             <wsa:Address>http://www.w3.org/2005/08/addressing/role/anonymous</wsa:Address>
>         </wsa:From>
>     </soap:Header>
>     <soap:Body>
>         <pfx0:GenerateNotification xmlns:pfx0="http://ws.apache.org/muse/test/wsrf">
>             <pfx0:NotificationText>This is a notification that must be delivered</pfx0:NotificationText>
>         </pfx0:GenerateNotification>
>     </soap:Body>
> </soap:Envelope>
> [CLIENT TRACE] SOAP envelope contents (incoming):
> <soapenv:Envelope
>     xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope" xmlns:wsa="http://www.w3.org/2005/08/addressing">
>     <soapenv:Header>
>         <wsa:To>http://www.w3.org/2005/08/addressing/anonymous</wsa:To>
>         <wsa:ReplyTo>
>             <wsa:Address>http://www.w3.org/2005/08/addressing/none</wsa:Address>
>         </wsa:ReplyTo>
>         <wsa:MessageID>urn:uuid:F9202DB4CDDD77D74E11641126939044</wsa:MessageID>
>         <wsa:Action>http://ws.apache.org/muse/test/wsrf/GenerateNotificationRequest</wsa:Action>
>         <wsa:RelatesTo wsa:RelationshipType="http://www.w3.org/2005/08/addressing/reply">uuid:20380101-53f5-c614-4cd1-d21e29f3989a</wsa:RelatesTo>
>     </soapenv:Header>
>     <soapenv:Body>
>         <muse-op:GenerateNotificationResponse
>             xmlns:muse-op="http://ws.apache.org/muse/test/wsrf" xmlns:tns="http://ws.apache.org/axis2"/>
>     </soapenv:Body>
> </soapenv:Envelope>
> [CLIENT TRACE] SOAP envelope contents (outgoing):
> <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
>     <soap:Header>
>         <wsa:To xmlns:wsa="http://www.w3.org/2005/08/addressing">http://localhost:8080/NotificationServiceTest/services/WsResource</wsa:To>
>         <wsa:Action xmlns:wsa="http://www.w3.org/2005/08/addressing">http://docs.oasis-open.org/wsn/bw-2/NotificationProducer/GetCurrentMessageRequest</wsa:Action>
>         <wsa:MessageID xmlns:wsa="http://www.w3.org/2005/08/addressing">uuid:19f3dd63-a3bc-09c1-00d2-bcf64dea0dab</wsa:MessageID>
>         <wsa:From xmlns:wsa="http://www.w3.org/2005/08/addressing">
>             <wsa:Address>http://www.w3.org/2005/08/addressing/role/anonymous</wsa:Address>
>         </wsa:From>
>     </soap:Header>
>     <soap:Body>
>         <wsnt:GetCurrentMessage
>             xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2" xmlns:="http://ws.apache.org/muse/test/wsrf">Notification</wsnt:GetCurrentMessage>
>     </soap:Body>
> </soap:Envelope>
> org.apache.muse.ws.addressing.soap.SoapFault: Server returned HTTP response code: 500 for URL: http://localhost:8080/NotificationServiceTest/services/WsResource
> at org.apache.muse.core.AbstractResourceClient.invoke(AbstractResourceClient.java:254)
> at org.apache.muse.ws.notification.remote.NotificationProducerClient.getCurrentMessage(NotificationProducerClient.java:80)
> at org.apache.ws.muse.test.wsrf.NotificationTest.main(NotificationTest.java:32)

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe, e-mail: muse-dev-unsubscribe@...
For additional commands, e-mail: muse-dev-help@...


[jira] Updated: (MUSE-149) Error 500 getting the current message

by JIRA jira@apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

     [ http://issues.apache.org/jira/browse/MUSE-149?page=all ]

Jose Antonio updated MUSE-149:
------------------------------

    Attachment: request3.txt

GetCurrentMessage operation

> Error 500 getting the current message
> -------------------------------------
>
>                 Key: MUSE-149
>                 URL: http://issues.apache.org/jira/browse/MUSE-149
>             Project: Muse
>          Issue Type: Bug
>          Components: WSN NotificationProducer
>    Affects Versions: 2.0.0, 2.1.0
>         Environment: Apache Tomcat 5.5 in a Ubuntu 6.06 box. JDK 1.5 from Sun Microsystems
>            Reporter: Jose Antonio
>         Assigned To: Dan Jemiolo
>             Fix For: 2.1.0
>
>         Attachments: catalina.out, muse.log, NotificationServiceTest.zip, NotificationTest.java, request1.txt, request2.txt, request3.txt
>
>
> When calling to getCurrentMessage from a Notification client, I get an error 500. It's the only operation that generates this kind of error as I can subscribe to a topic and notifications are generated when needed, but that operation is generating an error before it reaches Muse.
> Attached are some files that could be used to reproduce it. This is the SOAP messages that gets exchanged when running the test:
> [CLIENT TRACE] SOAP envelope contents (outgoing):
> <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
>     <soap:Header>
>         <wsa:To xmlns:wsa="http://www.w3.org/2005/08/addressing">http://localhost:8080/NotificationServiceTest/services/WsResource</wsa:To>
>         <wsa:Action xmlns:wsa="http://www.w3.org/2005/08/addressing">http://docs.oasis-open.org/wsn/bw-2/NotificationProducer/SubscribeRequest</wsa:Action>
>         <wsa:MessageID xmlns:wsa="http://www.w3.org/2005/08/addressing">uuid:2806625d-4a8d-dcfe-90a6-1c826dc07912</wsa:MessageID>
>         <wsa:From xmlns:wsa="http://www.w3.org/2005/08/addressing">
>             <wsa:Address>http://www.w3.org/2005/08/addressing/role/anonymous</wsa:Address>
>         </wsa:From>
>     </soap:Header>
>     <soap:Body>
>         <wsnt:Subscribe xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2">
>             <wsnt:ConsumerReference>
>                 <wsa:Address xmlns:wsa="http://www.w3.org/2005/08/addressing">http://localhost:8080/FicticiousService/services/WsResource</wsa:Address>
>             </wsnt:ConsumerReference>
>         </wsnt:Subscribe>
>     </soap:Body>
> </soap:Envelope>
> [CLIENT TRACE] SOAP envelope contents (incoming):
> <soapenv:Envelope
>     xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope" xmlns:wsa="http://www.w3.org/2005/08/addressing">
>     <soapenv:Header>
>         <wsa:To>http://www.w3.org/2005/08/addressing/anonymous</wsa:To>
>         <wsa:ReplyTo>
>             <wsa:Address>http://www.w3.org/2005/08/addressing/none</wsa:Address>
>         </wsa:ReplyTo>
>         <wsa:MessageID>urn:uuid:F9202DB4CDDD77D74E11641126874342</wsa:MessageID>
>         <wsa:Action>http://docs.oasis-open.org/wsn/bw-2/NotificationProducer/SubscribeRequest</wsa:Action>
>         <wsa:RelatesTo wsa:RelationshipType="http://www.w3.org/2005/08/addressing/reply">uuid:2806625d-4a8d-dcfe-90a6-1c826dc07912</wsa:RelatesTo>
>     </soapenv:Header>
>     <soapenv:Body>
>         <wsnt:SubscribeResponse xmlns:tns="http://ws.apache.org/axis2" xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2">
>             <wsnt:SubscriptionReference>
>                 <wsa:Address>http://127.0.0.1:8080/NotificationServiceTest/services/SubscriptionManager</wsa:Address>
>                 <wsa:ReferenceParameters>
>                     <muse-wsa:ResourceId xmlns:muse-wsa="http://ws.apache.org/muse/addressing">MuseResource-1</muse-wsa:ResourceId>
>                 </wsa:ReferenceParameters>
>             </wsnt:SubscriptionReference>
>             <wsnt:CurrentTime>2006-11-21T13:38:12+01:00</wsnt:CurrentTime>
>         </wsnt:SubscribeResponse>
>     </soapenv:Body>
> </soapenv:Envelope>
> [CLIENT TRACE] SOAP envelope contents (outgoing):
> <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
>     <soap:Header>
>         <wsa:To xmlns:wsa="http://www.w3.org/2005/08/addressing">http://localhost:8080/NotificationServiceTest/services/WsResource</wsa:To>
>         <wsa:Action xmlns:wsa="http://www.w3.org/2005/08/addressing">http://ws.apache.org/muse/test/wsrf/GenerateNotificationRequest</wsa:Action>
>         <wsa:MessageID xmlns:wsa="http://www.w3.org/2005/08/addressing">uuid:20380101-53f5-c614-4cd1-d21e29f3989a</wsa:MessageID>
>         <wsa:From xmlns:wsa="http://www.w3.org/2005/08/addressing">
>             <wsa:Address>http://www.w3.org/2005/08/addressing/role/anonymous</wsa:Address>
>         </wsa:From>
>     </soap:Header>
>     <soap:Body>
>         <pfx0:GenerateNotification xmlns:pfx0="http://ws.apache.org/muse/test/wsrf">
>             <pfx0:NotificationText>This is a notification that must be delivered</pfx0:NotificationText>
>         </pfx0:GenerateNotification>
>     </soap:Body>
> </soap:Envelope>
> [CLIENT TRACE] SOAP envelope contents (incoming):
> <soapenv:Envelope
>     xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope" xmlns:wsa="http://www.w3.org/2005/08/addressing">
>     <soapenv:Header>
>         <wsa:To>http://www.w3.org/2005/08/addressing/anonymous</wsa:To>
>         <wsa:ReplyTo>
>             <wsa:Address>http://www.w3.org/2005/08/addressing/none</wsa:Address>
>         </wsa:ReplyTo>
>         <wsa:MessageID>urn:uuid:F9202DB4CDDD77D74E11641126939044</wsa:MessageID>
>         <wsa:Action>http://ws.apache.org/muse/test/wsrf/GenerateNotificationRequest</wsa:Action>
>         <wsa:RelatesTo wsa:RelationshipType="http://www.w3.org/2005/08/addressing/reply">uuid:20380101-53f5-c614-4cd1-d21e29f3989a</wsa:RelatesTo>
>     </soapenv:Header>
>     <soapenv:Body>
>         <muse-op:GenerateNotificationResponse
>             xmlns:muse-op="http://ws.apache.org/muse/test/wsrf" xmlns:tns="http://ws.apache.org/axis2"/>
>     </soapenv:Body>
> </soapenv:Envelope>
> [CLIENT TRACE] SOAP envelope contents (outgoing):
> <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
>     <soap:Header>
>         <wsa:To xmlns:wsa="http://www.w3.org/2005/08/addressing">http://localhost:8080/NotificationServiceTest/services/WsResource</wsa:To>
>         <wsa:Action xmlns:wsa="http://www.w3.org/2005/08/addressing">http://docs.oasis-open.org/wsn/bw-2/NotificationProducer/GetCurrentMessageRequest</wsa:Action>
>         <wsa:MessageID xmlns:wsa="http://www.w3.org/2005/08/addressing">uuid:19f3dd63-a3bc-09c1-00d2-bcf64dea0dab</wsa:MessageID>
>         <wsa:From xmlns:wsa="http://www.w3.org/2005/08/addressing">
>             <wsa:Address>http://www.w3.org/2005/08/addressing/role/anonymous</wsa:Address>
>         </wsa:From>
>     </soap:Header>
>     <soap:Body>
>         <wsnt:GetCurrentMessage
>             xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2" xmlns:="http://ws.apache.org/muse/test/wsrf">Notification</wsnt:GetCurrentMessage>
>     </soap:Body>
> </soap:Envelope>
> org.apache.muse.ws.addressing.soap.SoapFault: Server returned HTTP response code: 500 for URL: http://localhost:8080/NotificationServiceTest/services/WsResource
> at org.apache.muse.core.AbstractResourceClient.invoke(AbstractResourceClient.java:254)
> at org.apache.muse.ws.notification.remote.NotificationProducerClient.getCurrentMessage(NotificationProducerClient.java:80)
> at org.apache.ws.muse.test.wsrf.NotificationTest.main(NotificationTest.java:32)

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe, e-mail: muse-dev-unsubscribe@...
For additional commands, e-mail: muse-dev-help@...


[jira] Updated: (MUSE-149) Error 500 getting the current message

by JIRA jira@apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

     [ http://issues.apache.org/jira/browse/MUSE-149?page=all ]

Jose Antonio updated MUSE-149:
------------------------------

    Attachment: notification.txt

The generated notification. It doesn't reach its target because it doesn't exist.

> Error 500 getting the current message
> -------------------------------------
>
>                 Key: MUSE-149
>                 URL: http://issues.apache.org/jira/browse/MUSE-149
>             Project: Muse
>          Issue Type: Bug
>          Components: WSN NotificationProducer
>    Affects Versions: 2.0.0, 2.1.0
>         Environment: Apache Tomcat 5.5 in a Ubuntu 6.06 box. JDK 1.5 from Sun Microsystems
>            Reporter: Jose Antonio
>         Assigned To: Dan Jemiolo
>             Fix For: 2.1.0
>
>         Attachments: catalina.out, muse.log, notification.txt, NotificationServiceTest.zip, NotificationTest.java, request1.txt, request2.txt, request3.txt
>
>
> When calling to getCurrentMessage from a Notification client, I get an error 500. It's the only operation that generates this kind of error as I can subscribe to a topic and notifications are generated when needed, but that operation is generating an error before it reaches Muse.
> Attached are some files that could be used to reproduce it. This is the SOAP messages that gets exchanged when running the test:
> [CLIENT TRACE] SOAP envelope contents (outgoing):
> <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
>     <soap:Header>
>         <wsa:To xmlns:wsa="http://www.w3.org/2005/08/addressing">http://localhost:8080/NotificationServiceTest/services/WsResource</wsa:To>
>         <wsa:Action xmlns:wsa="http://www.w3.org/2005/08/addressing">http://docs.oasis-open.org/wsn/bw-2/NotificationProducer/SubscribeRequest</wsa:Action>
>         <wsa:MessageID xmlns:wsa="http://www.w3.org/2005/08/addressing">uuid:2806625d-4a8d-dcfe-90a6-1c826dc07912</wsa:MessageID>
>         <wsa:From xmlns:wsa="http://www.w3.org/2005/08/addressing">
>             <wsa:Address>http://www.w3.org/2005/08/addressing/role/anonymous</wsa:Address>
>         </wsa:From>
>     </soap:Header>
>     <soap:Body>
>         <wsnt:Subscribe xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2">
>             <wsnt:ConsumerReference>
>                 <wsa:Address xmlns:wsa="http://www.w3.org/2005/08/addressing">http://localhost:8080/FicticiousService/services/WsResource</wsa:Address>
>             </wsnt:ConsumerReference>
>         </wsnt:Subscribe>
>     </soap:Body>
> </soap:Envelope>
> [CLIENT TRACE] SOAP envelope contents (incoming):
> <soapenv:Envelope
>     xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope" xmlns:wsa="http://www.w3.org/2005/08/addressing">
>     <soapenv:Header>
>         <wsa:To>http://www.w3.org/2005/08/addressing/anonymous</wsa:To>
>         <wsa:ReplyTo>
>             <wsa:Address>http://www.w3.org/2005/08/addressing/none</wsa:Address>
>         </wsa:ReplyTo>
>         <wsa:MessageID>urn:uuid:F9202DB4CDDD77D74E11641126874342</wsa:MessageID>
>         <wsa:Action>http://docs.oasis-open.org/wsn/bw-2/NotificationProducer/SubscribeRequest</wsa:Action>
>         <wsa:RelatesTo wsa:RelationshipType="http://www.w3.org/2005/08/addressing/reply">uuid:2806625d-4a8d-dcfe-90a6-1c826dc07912</wsa:RelatesTo>
>     </soapenv:Header>
>     <soapenv:Body>
>         <wsnt:SubscribeResponse xmlns:tns="http://ws.apache.org/axis2" xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2">
>             <wsnt:SubscriptionReference>
>                 <wsa:Address>http://127.0.0.1:8080/NotificationServiceTest/services/SubscriptionManager</wsa:Address>
>                 <wsa:ReferenceParameters>
>                     <muse-wsa:ResourceId xmlns:muse-wsa="http://ws.apache.org/muse/addressing">MuseResource-1</muse-wsa:ResourceId>
>                 </wsa:ReferenceParameters>
>             </wsnt:SubscriptionReference>
>             <wsnt:CurrentTime>2006-11-21T13:38:12+01:00</wsnt:CurrentTime>
>         </wsnt:SubscribeResponse>
>     </soapenv:Body>
> </soapenv:Envelope>
> [CLIENT TRACE] SOAP envelope contents (outgoing):
> <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
>     <soap:Header>
>         <wsa:To xmlns:wsa="http://www.w3.org/2005/08/addressing">http://localhost:8080/NotificationServiceTest/services/WsResource</wsa:To>
>         <wsa:Action xmlns:wsa="http://www.w3.org/2005/08/addressing">http://ws.apache.org/muse/test/wsrf/GenerateNotificationRequest</wsa:Action>
>         <wsa:MessageID xmlns:wsa="http://www.w3.org/2005/08/addressing">uuid:20380101-53f5-c614-4cd1-d21e29f3989a</wsa:MessageID>
>         <wsa:From xmlns:wsa="http://www.w3.org/2005/08/addressing">
>             <wsa:Address>http://www.w3.org/2005/08/addressing/role/anonymous</wsa:Address>
>         </wsa:From>
>     </soap:Header>
>     <soap:Body>
>         <pfx0:GenerateNotification xmlns:pfx0="http://ws.apache.org/muse/test/wsrf">
>             <pfx0:NotificationText>This is a notification that must be delivered</pfx0:NotificationText>
>         </pfx0:GenerateNotification>
>     </soap:Body>
> </soap:Envelope>
> [CLIENT TRACE] SOAP envelope contents (incoming):
> <soapenv:Envelope
>     xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope" xmlns:wsa="http://www.w3.org/2005/08/addressing">
>     <soapenv:Header>
>         <wsa:To>http://www.w3.org/2005/08/addressing/anonymous</wsa:To>
>         <wsa:ReplyTo>
>             <wsa:Address>http://www.w3.org/2005/08/addressing/none</wsa:Address>
>         </wsa:ReplyTo>
>         <wsa:MessageID>urn:uuid:F9202DB4CDDD77D74E11641126939044</wsa:MessageID>
>         <wsa:Action>http://ws.apache.org/muse/test/wsrf/GenerateNotificationRequest</wsa:Action>
>         <wsa:RelatesTo wsa:RelationshipType="http://www.w3.org/2005/08/addressing/reply">uuid:20380101-53f5-c614-4cd1-d21e29f3989a</wsa:RelatesTo>
>     </soapenv:Header>
>     <soapenv:Body>
>         <muse-op:GenerateNotificationResponse
>             xmlns:muse-op="http://ws.apache.org/muse/test/wsrf" xmlns:tns="http://ws.apache.org/axis2"/>
>     </soapenv:Body>
> </soapenv:Envelope>
> [CLIENT TRACE] SOAP envelope contents (outgoing):
> <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
>     <soap:Header>
>         <wsa:To xmlns:wsa="http://www.w3.org/2005/08/addressing">http://localhost:8080/NotificationServiceTest/services/WsResource</wsa:To>
>         <wsa:Action xmlns:wsa="http://www.w3.org/2005/08/addressing">http://docs.oasis-open.org/wsn/bw-2/NotificationProducer/GetCurrentMessageRequest</wsa:Action>
>         <wsa:MessageID xmlns:wsa="http://www.w3.org/2005/08/addressing">uuid:19f3dd63-a3bc-09c1-00d2-bcf64dea0dab</wsa:MessageID>
>         <wsa:From xmlns:wsa="http://www.w3.org/2005/08/addressing">
>             <wsa:Address>http://www.w3.org/2005/08/addressing/role/anonymous</wsa:Address>
>         </wsa:From>
>     </soap:Header>
>     <soap:Body>
>         <wsnt:GetCurrentMessage
>             xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2" xmlns:="http://ws.apache.org/muse/test/wsrf">Notification</wsnt:GetCurrentMessage>
>     </soap:Body>
> </soap:Envelope>
> org.apache.muse.ws.addressing.soap.SoapFault: Server returned HTTP response code: 500 for URL: http://localhost:8080/NotificationServiceTest/services/WsResource
> at org.apache.muse.core.AbstractResourceClient.invoke(AbstractResourceClient.java:254)
> at org.apache.muse.ws.notification.remote.NotificationProducerClient.getCurrentMessage(NotificationProducerClient.java:80)
> at org.apache.ws.muse.test.wsrf.NotificationTest.main(NotificationTest.java:32)

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe, e-mail: muse-dev-unsubscribe@...
For additional commands, e-mail: muse-dev-help@...


[jira] Commented: (MUSE-149) Error 500 getting the current message

by JIRA jira@apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

    [ http://issues.apache.org/jira/browse/MUSE-149?page=comments#action_12457761 ]
           
Dan Jemiolo commented on MUSE-149:
----------------------------------

The error is:

com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character '=' (code 61) (expected a name start character) at [row,col {unknown-source}]: [3,11]

And the only immediate difference I find between the GetCurrentMsg request and the others is that there is an unusual amount of whitespace between the element name and the namespace declarations. I will debug this later today and see if I can find the difference between our two setups.

> Error 500 getting the current message
> -------------------------------------
>
>                 Key: MUSE-149
>                 URL: http://issues.apache.org/jira/browse/MUSE-149
>             Project: Muse
>          Issue Type: Bug
>          Components: WSN NotificationProducer
>    Affects Versions: 2.0.0, 2.1.0
>         Environment: Apache Tomcat 5.5 in a Ubuntu 6.06 box. JDK 1.5 from Sun Microsystems
>            Reporter: Jose Antonio
>         Assigned To: Dan Jemiolo
>             Fix For: 2.1.0
>
>         Attachments: catalina.out, muse.log, notification.txt, NotificationServiceTest.zip, NotificationTest.java, request1.txt, request2.txt, request3.txt
>
>
> When calling to getCurrentMessage from a Notification client, I get an error 500. It's the only operation that generates this kind of error as I can subscribe to a topic and notifications are generated when needed, but that operation is generating an error before it reaches Muse.
> Attached are some files that could be used to reproduce it. This is the SOAP messages that gets exchanged when running the test:
> [CLIENT TRACE] SOAP envelope contents (outgoing):
> <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
>     <soap:Header>
>         <wsa:To xmlns:wsa="http://www.w3.org/2005/08/addressing">http://localhost:8080/NotificationServiceTest/services/WsResource</wsa:To>
>         <wsa:Action xmlns:wsa="http://www.w3.org/2005/08/addressing">http://docs.oasis-open.org/wsn/bw-2/NotificationProducer/SubscribeRequest</wsa:Action>
>         <wsa:MessageID xmlns:wsa="http://www.w3.org/2005/08/addressing">uuid:2806625d-4a8d-dcfe-90a6-1c826dc07912</wsa:MessageID>
>         <wsa:From xmlns:wsa="http://www.w3.org/2005/08/addressing">
>             <wsa:Address>http://www.w3.org/2005/08/addressing/role/anonymous</wsa:Address>
>         </wsa:From>
>     </soap:Header>
>     <soap:Body>
>         <wsnt:Subscribe xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2">
>             <wsnt:ConsumerReference>
>                 <wsa:Address xmlns:wsa="http://www.w3.org/2005/08/addressing">http://localhost:8080/FicticiousService/services/WsResource</wsa:Address>
>             </wsnt:ConsumerReference>
>         </wsnt:Subscribe>
>     </soap:Body>
> </soap:Envelope>
> [CLIENT TRACE] SOAP envelope contents (incoming):
> <soapenv:Envelope
>     xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope" xmlns:wsa="http://www.w3.org/2005/08/addressing">
>     <soapenv:Header>
>         <wsa:To>http://www.w3.org/2005/08/addressing/anonymous</wsa:To>
>         <wsa:ReplyTo>
>             <wsa:Address>http://www.w3.org/2005/08/addressing/none</wsa:Address>
>         </wsa:ReplyTo>
>         <wsa:MessageID>urn:uuid:F9202DB4CDDD77D74E11641126874342</wsa:MessageID>
>         <wsa:Action>http://docs.oasis-open.org/wsn/bw-2/NotificationProducer/SubscribeRequest</wsa:Action>
>         <wsa:RelatesTo wsa:RelationshipType="http://www.w3.org/2005/08/addressing/reply">uuid:2806625d-4a8d-dcfe-90a6-1c826dc07912</wsa:RelatesTo>
>     </soapenv:Header>
>     <soapenv:Body>
>         <wsnt:SubscribeResponse xmlns:tns="http://ws.apache.org/axis2" xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2">
>             <wsnt:SubscriptionReference>
>                 <wsa:Address>http://127.0.0.1:8080/NotificationServiceTest/services/SubscriptionManager</wsa:Address>
>                 <wsa:ReferenceParameters>
>                     <muse-wsa:ResourceId xmlns:muse-wsa="http://ws.apache.org/muse/addressing">MuseResource-1</muse-wsa:ResourceId>
>                 </wsa:ReferenceParameters>
>             </wsnt:SubscriptionReference>
>             <wsnt:CurrentTime>2006-11-21T13:38:12+01:00</wsnt:CurrentTime>
>         </wsnt:SubscribeResponse>
>     </soapenv:Body>
> </soapenv:Envelope>
> [CLIENT TRACE] SOAP envelope contents (outgoing):
> <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
>     <soap:Header>
>         <wsa:To xmlns:wsa="http://www.w3.org/2005/08/addressing">http://localhost:8080/NotificationServiceTest/services/WsResource</wsa:To>
>         <wsa:Action xmlns:wsa="http://www.w3.org/2005/08/addressing">http://ws.apache.org/muse/test/wsrf/GenerateNotificationRequest</wsa:Action>
>         <wsa:MessageID xmlns:wsa="http://www.w3.org/2005/08/addressing">uuid:20380101-53f5-c614-4cd1-d21e29f3989a</wsa:MessageID>
>         <wsa:From xmlns:wsa="http://www.w3.org/2005/08/addressing">
>             <wsa:Address>http://www.w3.org/2005/08/addressing/role/anonymous</wsa:Address>
>         </wsa:From>
>     </soap:Header>
>     <soap:Body>
>         <pfx0:GenerateNotification xmlns:pfx0="http://ws.apache.org/muse/test/wsrf">
>             <pfx0:NotificationText>This is a notification that must be delivered</pfx0:NotificationText>
>         </pfx0:GenerateNotification>
>     </soap:Body>
> </soap:Envelope>
> [CLIENT TRACE] SOAP envelope contents (incoming):
> <soapenv:Envelope
>     xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope" xmlns:wsa="http://www.w3.org/2005/08/addressing">
>     <soapenv:Header>
>         <wsa:To>http://www.w3.org/2005/08/addressing/anonymous</wsa:To>
>         <wsa:ReplyTo>
>             <wsa:Address>http://www.w3.org/2005/08/addressing/none</wsa:Address>
>         </wsa:ReplyTo>
>         <wsa:MessageID>urn:uuid:F9202DB4CDDD77D74E11641126939044</wsa:MessageID>
>         <wsa:Action>http://ws.apache.org/muse/test/wsrf/GenerateNotificationRequest</wsa:Action>
>         <wsa:RelatesTo wsa:RelationshipType="http://www.w3.org/2005/08/addressing/reply">uuid:20380101-53f5-c614-4cd1-d21e29f3989a</wsa:RelatesTo>
>     </soapenv:Header>
>     <soapenv:Body>
>         <muse-op:GenerateNotificationResponse
>             xmlns:muse-op="http://ws.apache.org/muse/test/wsrf" xmlns:tns="http://ws.apache.org/axis2"/>
>     </soapenv:Body>
> </soapenv:Envelope>
> [CLIENT TRACE] SOAP envelope contents (outgoing):
> <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
>     <soap:Header>
>         <wsa:To xmlns:wsa="http://www.w3.org/2005/08/addressing">http://localhost:8080/NotificationServiceTest/services/WsResource</wsa:To>
>         <wsa:Action xmlns:wsa="http://www.w3.org/2005/08/addressing">http://docs.oasis-open.org/wsn/bw-2/NotificationProducer/GetCurrentMessageRequest</wsa:Action>
>         <wsa:MessageID xmlns:wsa="http://www.w3.org/2005/08/addressing">uuid:19f3dd63-a3bc-09c1-00d2-bcf64dea0dab</wsa:MessageID>
>         <wsa:From xmlns:wsa="http://www.w3.org/2005/08/addressing">
>             <wsa:Address>http://www.w3.org/2005/08/addressing/role/anonymous</wsa:Address>
>         </wsa:From>
>     </soap:Header>
>     <soap:Body>
>         <wsnt:GetCurrentMessage
>             xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2" xmlns:="http://ws.apache.org/muse/test/wsrf">Notification</wsnt:GetCurrentMessage>
>     </soap:Body>
> </soap:Envelope>
> org.apache.muse.ws.addressing.soap.SoapFault: Server returned HTTP response code: 500 for URL: http://localhost:8080/NotificationServiceTest/services/WsResource
> at org.apache.muse.core.AbstractResourceClient.invoke(AbstractResourceClient.java:254)
> at org.apache.muse.ws.notification.remote.NotificationProducerClient.getCurrentMessage(NotificationProducerClient.java:80)
> at org.apache.ws.muse.test.wsrf.NotificationTest.main(NotificationTest.java:32)

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe, e-mail: muse-dev-unsubscribe@...
For additional commands, e-mail: muse-dev-help@...


[jira] Updated: (MUSE-149) Error 500 getting the current message

by JIRA jira@apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

     [ http://issues.apache.org/jira/browse/MUSE-149?page=all ]

Dan Jemiolo updated MUSE-149:
-----------------------------

    Fix Version/s: 2.2.0
                       (was: 2.1.0)

> Error 500 getting the current message
> -------------------------------------
>
>                 Key: MUSE-149
>                 URL: http://issues.apache.org/jira/browse/MUSE-149
>             Project: Muse
>          Issue Type: Bug
>          Components: WSN NotificationProducer
>    Affects Versions: 2.0.0, 2.1.0
>         Environment: Apache Tomcat 5.5 in a Ubuntu 6.06 box. JDK 1.5 from Sun Microsystems
>            Reporter: Jose Antonio
>         Assigned To: Dan Jemiolo
>             Fix For: 2.2.0
>
>         Attachments: catalina.out, muse.log, notification.txt, NotificationServiceTest.zip, NotificationTest.java, request1.txt, request2.txt, request3.txt
>
>
> When calling to getCurrentMessage from a Notification client, I get an error 500. It's the only operation that generates this kind of error as I can subscribe to a topic and notifications are generated when needed, but that operation is generating an error before it reaches Muse.
> Attached are some files that could be used to reproduce it. This is the SOAP messages that gets exchanged when running the test:
> [CLIENT TRACE] SOAP envelope contents (outgoing):
> <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
>     <soap:Header>
>         <wsa:To xmlns:wsa="http://www.w3.org/2005/08/addressing">http://localhost:8080/NotificationServiceTest/services/WsResource</wsa:To>
>         <wsa:Action xmlns:wsa="http://www.w3.org/2005/08/addressing">http://docs.oasis-open.org/wsn/bw-2/NotificationProducer/SubscribeRequest</wsa:Action>
>         <wsa:MessageID xmlns:wsa="http://www.w3.org/2005/08/addressing">uuid:2806625d-4a8d-dcfe-90a6-1c826dc07912</wsa:MessageID>
>         <wsa:From xmlns:wsa="http://www.w3.org/2005/08/addressing">
>             <wsa:Address>http://www.w3.org/2005/08/addressing/role/anonymous</wsa:Address>
>         </wsa:From>
>     </soap:Header>
>     <soap:Body>
>         <wsnt:Subscribe xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2">
>             <wsnt:ConsumerReference>
>                 <wsa:Address xmlns:wsa="http://www.w3.org/2005/08/addressing">http://localhost:8080/FicticiousService/services/WsResource</wsa:Address>
>             </wsnt:ConsumerReference>
>         </wsnt:Subscribe>
>     </soap:Body>
> </soap:Envelope>
> [CLIENT TRACE] SOAP envelope contents (incoming):
> <soapenv:Envelope
>     xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope" xmlns:wsa="http://www.w3.org/2005/08/addressing">
>     <soapenv:Header>
>         <wsa:To>http://www.w3.org/2005/08/addressing/anonymous</wsa:To>
>         <wsa:ReplyTo>
>             <wsa:Address>http://www.w3.org/2005/08/addressing/none</wsa:Address>
>         </wsa:ReplyTo>
>         <wsa:MessageID>urn:uuid:F9202DB4CDDD77D74E11641126874342</wsa:MessageID>
>         <wsa:Action>http://docs.oasis-open.org/wsn/bw-2/NotificationProducer/SubscribeRequest</wsa:Action>
>         <wsa:RelatesTo wsa:RelationshipType="http://www.w3.org/2005/08/addressing/reply">uuid:2806625d-4a8d-dcfe-90a6-1c826dc07912</wsa:RelatesTo>
>     </soapenv:Header>
>     <soapenv:Body>
>         <wsnt:SubscribeResponse xmlns:tns="http://ws.apache.org/axis2" xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2">
>             <wsnt:SubscriptionReference>
>                 <wsa:Address>http://127.0.0.1:8080/NotificationServiceTest/services/SubscriptionManager</wsa:Address>
>                 <wsa:ReferenceParameters>
>                     <muse-wsa:ResourceId xmlns:muse-wsa="http://ws.apache.org/muse/addressing">MuseResource-1</muse-wsa:ResourceId>
>                 </wsa:ReferenceParameters>
>             </wsnt:SubscriptionReference>
>             <wsnt:CurrentTime>2006-11-21T13:38:12+01:00</wsnt:CurrentTime>
>         </wsnt:SubscribeResponse>
>     </soapenv:Body>
> </soapenv:Envelope>
> [CLIENT TRACE] SOAP envelope contents (outgoing):
> <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
>     <soap:Header>
>         <wsa:To xmlns:wsa="http://www.w3.org/2005/08/addressing">http://localhost:8080/NotificationServiceTest/services/WsResource</wsa:To>
>         <wsa:Action xmlns:wsa="http://www.w3.org/2005/08/addressing">http://ws.apache.org/muse/test/wsrf/GenerateNotificationRequest</wsa:Action>
>         <wsa:MessageID xmlns:wsa="http://www.w3.org/2005/08/addressing">uuid:20380101-53f5-c614-4cd1-d21e29f3989a</wsa:MessageID>
>         <wsa:From xmlns:wsa="http://www.w3.org/2005/08/addressing">
>             <wsa:Address>http://www.w3.org/2005/08/addressing/role/anonymous</wsa:Address>
>         </wsa:From>
>     </soap:Header>
>     <soap:Body>
>         <pfx0:GenerateNotification xmlns:pfx0="http://ws.apache.org/muse/test/wsrf">
>             <pfx0:NotificationText>This is a notification that must be delivered</pfx0:NotificationText>
>         </pfx0:GenerateNotification>
>     </soap:Body>
> </soap:Envelope>
> [CLIENT TRACE] SOAP envelope contents (incoming):
> <soapenv:Envelope
>     xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope" xmlns:wsa="http://www.w3.org/2005/08/addressing">
>     <soapenv:Header>
>         <wsa:To>http://www.w3.org/2005/08/addressing/anonymous</wsa:To>
>         <wsa:ReplyTo>
>             <wsa:Address>http://www.w3.org/2005/08/addressing/none</wsa:Address>
>         </wsa:ReplyTo>
>         <wsa:MessageID>urn:uuid:F9202DB4CDDD77D74E11641126939044</wsa:MessageID>
>         <wsa:Action>http://ws.apache.org/muse/test/wsrf/GenerateNotificationRequest</wsa:Action>
>         <wsa:RelatesTo wsa:RelationshipType="http://www.w3.org/2005/08/addressing/reply">uuid:20380101-53f5-c614-4cd1-d21e29f3989a</wsa:RelatesTo>
>     </soapenv:Header>
>     <soapenv:Body>
>         <muse-op:GenerateNotificationResponse
>             xmlns:muse-op="http://ws.apache.org/muse/test/wsrf" xmlns:tns="http://ws.apache.org/axis2"/>
>     </soapenv:Body>
> </soapenv:Envelope>
> [CLIENT TRACE] SOAP envelope contents (outgoing):
> <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
>     <soap:Header>
>         <wsa:To xmlns:wsa="http://www.w3.org/2005/08/addressing">http://localhost:8080/NotificationServiceTest/services/WsResource</wsa:To>
>         <wsa:Action xmlns:wsa="http://www.w3.org/2005/08/addressing">http://docs.oasis-open.org/wsn/bw-2/NotificationProducer/GetCurrentMessageRequest</wsa:Action>
>         <wsa:MessageID xmlns:wsa="http://www.w3.org/2005/08/addressing">uuid:19f3dd63-a3bc-09c1-00d2-bcf64dea0dab</wsa:MessageID>
>         <wsa:From xmlns:wsa="http://www.w3.org/2005/08/addressing">
>             <wsa:Address>http://www.w3.org/2005/08/addressing/role/anonymous</wsa:Address>
>         </wsa:From>
>     </soap:Header>
>     <soap:Body>
>         <wsnt:GetCurrentMessage
>             xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2" xmlns:="http://ws.apache.org/muse/test/wsrf">Notification</wsnt:GetCurrentMessage>
>     </soap:Body>
> </soap:Envelope>
> org.apache.muse.ws.addressing.soap.SoapFault: Server returned HTTP response code: 500 for URL: http://localhost:8080/NotificationServiceTest/services/WsResource
> at org.apache.muse.core.AbstractResourceClient.invoke(AbstractResourceClient.java:254)
> at org.apache.muse.ws.notification.remote.NotificationProducerClient.getCurrentMessage(NotificationProducerClient.java:80)
> at org.apache.ws.muse.test.wsrf.NotificationTest.main(NotificationTest.java:32)

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe, e-mail: muse-dev-unsubscribe@...
For additional commands, e-mail: muse-dev-help@...


[jira] Commented: (MUSE-149) Error 500 getting the current message

by JIRA jira@apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

    [ http://issues.apache.org/jira/browse/MUSE-149?page=comments#action_12459631 ]
           
Jose Antonio commented on MUSE-149:
-----------------------------------

Well, this seems to be happening not only with getCurrentMessage but with other operations too.
I have a factory service that returns an EndpointReference pointing to the new created resource. I have traced this:

Get the properties document from the factory service.

POST /FactoryService/services/Factory HTTP/1.1

Content-type: application/soap+xml

User-Agent: Java/1.5.0_06

Host: 127.0.0.1:8081

Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2

Connection: keep-alive

Content-Length: 952



<?xml version="1.0" encoding="UTF-8"?>
   <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">    
      <soap:Header>        
         <wsa:To xmlns:wsa="http://www.w3.org/2005/08/addressing">http://localhost:8081/FactoryService/services/Factory</wsa:To>        
         <wsa:Action xmlns:wsa="http://www.w3.org/2005/08/addressing">http://docs.oasis-open.org/wsrf/rpw-2/GetResourcePropertyDocument/GetResourcePropertyDocumentRequest</wsa:Action>        
         <wsa:MessageID xmlns:wsa="http://www.w3.org/2005/08/addressing">uuid:44f5cdce-984e-c738-1e4d-05cafeb9901a</wsa:MessageID>        
         <wsa:From xmlns:wsa="http://www.w3.org/2005/08/addressing">            
            <wsa:Address>http://www.w3.org/2005/08/addressing/role/anonymous</wsa:Address>        
         </wsa:From>    
      </soap:Header>    
      <soap:Body>        
         <pfx1:GetResourcePropertyDocument xmlns:pfx1="http://docs.oasis-open.org/wsrf/rp-2"/>    
      </soap:Body>
   </soap:Envelope>

And I get a response:

HTTP/1.1 200 OK

Server: Apache-Coyote/1.1

Set-Cookie: JSESSIONID=F6B7D61DDCB15794CFB766CB54F3C2F3; Path=/FactoryService

Content-Type: application/soap+xml;charset=UTF-8

Transfer-Encoding: chunked

Date: Tue, 19 Dec 2006 12:30:41 GMT



8df

<?xml version='1.0' encoding='UTF-8'?>
   <soapenv:Envelope xmlns:wsa="http://www.w3.org/2005/08/addressing" xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
      <soapenv:Header>
         <wsa:To>http://www.w3.org/2005/08/addressing/anonymous</wsa:To>
         <wsa:ReplyTo>
            <wsa:Address>http://www.w3.org/2005/08/addressing/none</wsa:Address>
         </wsa:ReplyTo>
         <wsa:MessageID>urn:uuid:7DDD8CF3383DF6F103116653144166462</wsa:MessageID>
         <wsa:Action>http://docs.oasis-open.org/wsrf/rpw-2/GetResourcePropertyDocument/GetResourcePropertyDocumentRequest</wsa:Action>
         <wsa:RelatesTo wsa:RelationshipType="http://www.w3.org/2005/08/addressing/reply">uuid:44f5cdce-984e-c738-1e4d-05cafeb9901a</wsa:RelatesTo>
      </soapenv:Header>
      <soapenv:Body>
         <wsrf-rp:GetResourcePropertyDocumentResponse xmlns:tns="http://axis2.platform.core.muse.apache.org" xmlns:wsrf-rp="http://docs.oasis-open.org/wsrf/rp-2">    
            <tns:WsResourceProperties xmlns:tns="http://lsd.org/wsdm/Factory">        
               <wsnt:FixedTopicSet xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2">true</wsnt:FixedTopicSet>        
               <wsrf-rp:QueryExpressionDialect>http://www.w3.org/TR/1999/REC-xpath-19991116</wsrf-rp:QueryExpressionDialect>        
               <wsnt:TopicExpressionDialect xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2">http://docs.oasis-open.org/wsn/t-1/TopicExpression/Concrete</wsnt:TopicExpressionDialect>        
               <wsnt:TopicExpression xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2">wsnt:FixedTopicSet</wsnt:TopicExpression>        
               <wsnt:TopicExpression xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2">wsrf-rp:QueryExpressionDialect</wsnt:TopicExpression>        
               <wsnt:TopicExpression xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2">wsnt:TopicExpressionDialect</wsnt:TopicExpression>        
               <wsnt:TopicExpression xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2">wsnt:TopicExpression</wsnt:TopicExpression>        
               <wsnt:TopicExpression xmlns:wst="http://docs.oasis-open.org/wsn/t-1" xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2">wst:TopicSet</wsnt:TopicExpression>        
               <wst:TopicSet xmlns:wst="http://docs.oasis-open.org/wsn/t-1">Serialization of the wst:TopicSet property has not been implemented yet.</wst:TopicSet>    
            </tns:WsResourceProperties>
         </wsrf-rp:GetResourcePropertyDocumentResponse>
      </soapenv:Body>
   </soapenv:Envelope>0

Then I invoke the creation operation.

POST /FactoryService/services/Factory HTTP/1.1

Content-type: application/soap+xml

User-Agent: Java/1.5.0_06

Host: localhost:8081

Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2

Connection: keep-alive

Content-Length: 1794




   <?xml version="1.0" encoding="UTF-8"?>
      <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">    
         <soap:Header>        
            <wsa:To xmlns:wsa="http://www.w3.org/2005/08/addressing">http://localhost:8081/FactoryService/services/Factory</wsa:To>        
            <wsa:Action xmlns:wsa="http://www.w3.org/2005/08/addressing">http://lsd.org/wsdm/Factory/Create</wsa:Action>        
            <wsa:MessageID xmlns:wsa="http://www.w3.org/2005/08/addressing">uuid:dfd439b5-7997-ff10-af6e-d8845994fd85</wsa:MessageID>        
            <wsa:From xmlns:wsa="http://www.w3.org/2005/08/addressing">            
               <wsa:Address>http://www.w3.org/2005/08/addressing/role/anonymous</wsa:Address>        
            </wsa:From>    
         </soap:Header>    
         <soap:Body>        
            <pfx3:Create xmlns:pfx3="http://lsd.org/wsdm/Factory">            
               <HostCreation xmlns="http://lsd.org/wsdm/HostCreationSchema">                
                  <HostLocation>                    
                     <wsa:Address xmlns:wsa="http://www.w3.org/2005/08/addressing">http://localhost:8081/FactoryService/services/Factory</wsa:Address>                
                  </HostLocation>                
               </HostCreation>            
               <HostCreation xmlns="http://lsd.org/wsdm/HostCreationSchema">                
                  <HostLocation>                    
                     <wsa:Address xmlns:wsa="http://www.w3.org/2005/08/addressing">http://server</wsa:Address>                
                  </HostLocation>                
                  <ScriptLocation>file:///path/to/script</ScriptLocation>            
               </HostCreation>        
            </pfx3:Create>    
         </soap:Body>
      </soap:Envelope>

And it returns an endpoint:

HTTP/1.1 200 OK

Server: Apache-Coyote/1.1

Set-Cookie: JSESSIONID=E55755EC2101D0A82DE650821F7920A5; Path=/FactoryService

Content-Type: application/soap+xml;charset=UTF-8

Transfer-Encoding: chunked

Date: Tue, 19 Dec 2006 12:30:41 GMT



475


   <?xml version='1.0' encoding='UTF-8'?>
      <soapenv:Envelope xmlns:wsa="http://www.w3.org/2005/08/addressing" xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
         <soapenv:Header>
            <wsa:To>http://www.w3.org/2005/08/addressing/anonymous</wsa:To>
            <wsa:ReplyTo>
               <wsa:Address>http://www.w3.org/2005/08/addressing/none</wsa:Address>
            </wsa:ReplyTo>
            <wsa:MessageID>urn:uuid:7DDD8CF3383DF6F103116653144189664</wsa:MessageID>
            <wsa:Action>http://lsd.org/wsdm/Factory/Create</wsa:Action>
            <wsa:RelatesTo wsa:RelationshipType="http://www.w3.org/2005/08/addressing/reply">uuid:dfd439b5-7997-ff10-af6e-d8845994fd85</wsa:RelatesTo>
         </soapenv:Header>
         <soapenv:Body>
            <muse-op:CreateResponse xmlns:tns="http://axis2.platform.core.muse.apache.org" xmlns:muse-op="http://lsd.org/wsdm/Factory">    
               <wsa:Address>http://127.0.0.1:8081/FactoryService/services/Creation</wsa:Address>    
               <wsa:ReferenceParameters>        
                  <muse-wsa:ResourceId xmlns:muse-wsa="http://ws.apache.org/muse/addressing">MuseResource-5</muse-wsa:ResourceId>    
               </wsa:ReferenceParameters>
            </muse-op:CreateResponse>
         </soapenv:Body>
      </soapenv:Envelope>
0


Using that same returned endpoint, I try to get the same properties as the first request:

POST /FactoryService/services/Creation HTTP/1.1

Content-type: application/soap+xml

User-Agent: Java/1.5.0_06

Host: 127.0.0.1:8081

Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2

Connection: keep-alive

Content-Length: 1155



<?xml version="1.0" encoding="UTF-8"?>
   <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">    
      <soap:Header>        
         <wsa:To xmlns:wsa="http://www.w3.org/2005/08/addressing">http://127.0.0.1:8081/FactoryService/services/Creation</wsa:To>        
         <wsa:Action xmlns:wsa="http://www.w3.org/2005/08/addressing">http://docs.oasis-open.org/wsrf/rpw-2/GetResourcePropertyDocument/GetResourcePropertyDocumentRequest</wsa:Action>        
         <wsa:MessageID xmlns:wsa="http://www.w3.org/2005/08/addressing">uuid:0a3f6baf-4bd2-af26-7d51-e2a20ceaac76</wsa:MessageID>        
         <wsa:From xmlns:wsa="http://www.w3.org/2005/08/addressing">            
            <wsa:Address>http://www.w3.org/2005/08/addressing/role/anonymous</wsa:Address>        
         </wsa:From>        
         <muse-wsa:ResourceId            xmlns:wsa="http://www.w3.org/2005/08/addressing"            wsa:IsReferenceParameter="true" xmlns:muse-wsa="http://ws.apache.org/muse/addressing">MuseResource-5</muse-wsa:ResourceId>    
      </soap:Header>    
      <soap:Body>        
         <pfx2:GetResourcePropertyDocument xmlns:pfx2="http://docs.oasis-open.org/wsrf/rp-2"/>    
      </soap:Body>
   </soap:Envelope>


But instead I get the same strange error:

HTTP/1.1 500 Error Interno del Servidor

Server: Apache-Coyote/1.1

Set-Cookie: JSESSIONID=1AB5D6F02930FA35A89036EB587F51F1; Path=/FactoryService

Content-Type: application/soap+xml;charset=UTF-8

Transfer-Encoding: chunked

Date: Tue, 19 Dec 2006 12:30:41 GMT

Connection: close



41d

<?xml version='1.0' encoding='UTF-8'?>
   <soapenv:Envelope xmlns:wsa="http://www.w3.org/2005/08/addressing" xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
      <soapenv:Header>
         <wsa:To>http://www.w3.org/2005/08/addressing/anonymous</wsa:To>
         <wsa:ReplyTo>
            <wsa:Address>http://www.w3.org/2005/08/addressing/none</wsa:Address>
         </wsa:ReplyTo>
         <wsa:MessageID>urn:uuid:7DDD8CF3383DF6F103116653144213467</wsa:MessageID>
         <wsa:Action>http://www.w3.org/2005/08/addressing/soap/fault</wsa:Action>
         <wsa:RelatesTo wsa:RelationshipType="http://www.w3.org/2005/08/addressing/reply">uuid:0a3f6baf-4bd2-af26-7d51-e2a20ceaac76</wsa:RelatesTo>
      </soapenv:Header>
      <soapenv:Body>
         <soapenv:Fault>
            <soapenv:Code>
               <soapenv:Value>soapenv:Sender</soapenv:Value>
            </soapenv:Code>
            <soapenv:Reason>
               <soapenv:Text xml:lang="en-US">com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character '=' (code 61) (expected a name start character) at [row,col {unknown-source}]: [4,73]</soapenv:Text>
            </soapenv:Reason>
            <soapenv:Detail></soapenv:Detail>
         </soapenv:Fault>
      </soapenv:Body>
   </soapenv:Envelope>0

Also, in the muse log (muse.log), the request gets registered:

FINA: [SERVER TRACE] SOAP envelope contents (incoming):

<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
    <soap:Header>
        <wsa:To xmlns:wsa="http://www.w3.org/2005/08/addressing" xmlns:wsa="http://www.w3.org/2005/08/addressing">http://127.0.0.1:8081/FactoryService/services/Creation</wsa:To>
        <wsa:Action xmlns:wsa="http://www.w3.org/2005/08/addressing" xmlns:wsa="http://www.w3.org/2005/08/addressing">http://docs.oasis-open.org/wsrf/rpw-2/GetResourcePropertyDocument/GetResourcePropertyDocumentRequest</wsa:Action>
        <wsa:MessageID xmlns:wsa="http://www.w3.org/2005/08/addressing" xmlns:wsa="http://www.w3.org/2005/08/addressing">uuid:0a3f6baf-4bd2-af26-7d51-e2a20ceaac76</wsa:MessageID>
        <wsa:From xmlns:wsa="http://www.w3.org/2005/08/addressing" xmlns:wsa="http://www.w3.org/2005/08/addressing">
            <wsa:Address>http://www.w3.org/2005/08/addressing/role/anonymous</wsa:Address>
        </wsa:From>
        <muse-wsa:ResourceId
            xmlns:muse-wsa="http://ws.apache.org/muse/addressing"
            xmlns:NS1="http://www.w3.org/2005/08/addressing"
            NS1:IsReferenceParameter="true"
            xmlns:muse-wsa="http://ws.apache.org/muse/addressing" xmlns:wsa="http://www.w3.org/2005/08/addressing">MuseResource-5</muse-wsa:ResourceId>
    </soap:Header>
    <soap:Body>
        <pfx2:GetResourcePropertyDocument
            xmlns:pfx2="http://docs.oasis-open.org/wsrf/rp-2" xmlns:pfx2="http://docs.oasis-open.org/wsrf/rp-2"/>
    </soap:Body>
</soap:Envelope>


But that is the last thing that gets written to the log. Maybe can it be a problem returning the SOAP response?
Also, playing with SoapUI I've found that it fails with a wsa:ActionMissmatch if I send an action in this way:

<wsa:Action xmlns:wsa="http://www.w3.org/2005/08/addressing">
  http://docs.oasis-open.org/wsrf/rpw-2/GetResourcePropertyDocument/GetResourcePropertyDocumentRequest
</wsa:Action>

but not when sending it as:
<wsa:Action xmlns:wsa="http://www.w3.org/2005/08/addressing">http://docs.oasis-open.org/wsrf/rpw-2/GetResourcePropertyDocument/GetResourcePropertyDocumentRequest</wsa:Action>

So maybe white spaces (and maybe tabs) are important for that parser. Anyway, sending it with soapui 1.6 removing the extra white spaces:

<?xml version="1.0" encoding="UTF-8"?>
   <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">    
      <soap:Header>        
         <wsa:To xmlns:wsa="http://www.w3.org/2005/08/addressing">http://127.0.0.1:8081/FactoryService/services/Creation</wsa:To>        
         <wsa:Action xmlns:wsa="http://www.w3.org/2005/08/addressing">http://docs.oasis-open.org/wsrf/rpw-2/GetResourcePropertyDocument/GetResourcePropertyDocumentRequest</wsa:Action>        
         <wsa:MessageID xmlns:wsa="http://www.w3.org/2005/08/addressing">uuid:0a3f6baf-4bd2-af26-7d51-e2a20ceaac76</wsa:MessageID>        
         <wsa:From xmlns:wsa="http://www.w3.org/2005/08/addressing">            
            <wsa:Address>http://www.w3.org/2005/08/addressing/role/anonymous</wsa:Address>        
         </wsa:From>        
         <muse-wsa:ResourceId xmlns:wsa="http://www.w3.org/2005/08/addressing" wsa:IsReferenceParameter="true" xmlns:muse-wsa="http://ws.apache.org/muse/addressing">MuseResource-5</muse-wsa:ResourceId>    
      </soap:Header>    
      <soap:Body>        
         <pfx2:GetResourcePropertyDocument xmlns:pfx2="http://docs.oasis-open.org/wsrf/rp-2"/>    
      </soap:Body>
   </soap:Envelope>

I get the same

<soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope" xmlns:wsa="http://www.w3.org/2005/08/addressing">
   <soapenv:Header>
      <wsa:To>http://www.w3.org/2005/08/addressing/anonymous</wsa:To>
      <wsa:ReplyTo>
         <wsa:Address>http://www.w3.org/2005/08/addressing/none</wsa:Address>
      </wsa:ReplyTo>
      <wsa:MessageID>urn:uuid:7DDD8CF3383DF6F103116653331205275</wsa:MessageID>
      <wsa:Action>http://www.w3.org/2005/08/addressing/soap/fault</wsa:Action>
      <wsa:RelatesTo wsa:RelationshipType="http://www.w3.org/2005/08/addressing/reply">uuid:0a3f6baf-4bd2-af26-7d51-e2a20ceaac76</wsa:RelatesTo>
   </soapenv:Header>
   <soapenv:Body>
      <soapenv:Fault>
         <soapenv:Code>
            <soapenv:Value>soapenv:Sender</soapenv:Value>
         </soapenv:Code>
         <soapenv:Reason>
            <soapenv:Text xml:lang="en-US">com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character '=' (code 61) (expected a name start character)
 at [row,col {unknown-source}]: [4,73]</soapenv:Text>
         </soapenv:Reason>
         <soapenv:Detail/>
      </soapenv:Fault>
   </soapenv:Body>
</soapenv:Envelope>

> Error 500 getting the current message
> -------------------------------------
>
>                 Key: MUSE-149
>                 URL: http://issues.apache.org/jira/browse/MUSE-149
>             Project: Muse
>          Issue Type: Bug
>          Components: WSN NotificationProducer
>    Affects Versions: 2.0.0, 2.1.0
>         Environment: Apache Tomcat 5.5 in a Ubuntu 6.06 box. JDK 1.5 from Sun Microsystems
>            Reporter: Jose Antonio
>         Assigned To: Dan Jemiolo
>             Fix For: 2.2.0
>
>         Attachments: catalina.out, muse.log, notification.txt, NotificationServiceTest.zip, NotificationTest.java, request1.txt, request2.txt, request3.txt
>
>
> When calling to getCurrentMessage from a Notification client, I get an error 500. It's the only operation that generates this kind of error as I can subscribe to a topic and notifications are generated when needed, but that operation is generating an error before it reaches Muse.
> Attached are some files that could be used to reproduce it. This is the SOAP messages that gets exchanged when running the test:
> [CLIENT TRACE] SOAP envelope contents (outgoing):
> <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
>     <soap:Header>
>         <wsa:To xmlns:wsa="http://www.w3.org/2005/08/addressing">http://localhost:8080/NotificationServiceTest/services/WsResource</wsa:To>
>         <wsa:Action xmlns:wsa="http://www.w3.org/2005/08/addressing">http://docs.oasis-open.org/wsn/bw-2/NotificationProducer/SubscribeRequest</wsa:Action>
>         <wsa:MessageID xmlns:wsa="http://www.w3.org/2005/08/addressing">uuid:2806625d-4a8d-dcfe-90a6-1c826dc07912</wsa:MessageID>
>         <wsa:From xmlns:wsa="http://www.w3.org/2005/08/addressing">
>             <wsa:Address>http://www.w3.org/2005/08/addressing/role/anonymous</wsa:Address>
>         </wsa:From>
>     </soap:Header>
>     <soap:Body>
>         <wsnt:Subscribe xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2">
>             <wsnt:ConsumerReference>
>                 <wsa:Address xmlns:wsa="http://www.w3.org/2005/08/addressing">http://localhost:8080/FicticiousService/services/WsResource</wsa:Address>
>             </wsnt:ConsumerReference>
>         </wsnt:Subscribe>
>     </soap:Body>
> </soap:Envelope>
> [CLIENT TRACE] SOAP envelope contents (incoming):
> <soapenv:Envelope
>     xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope" xmlns:wsa="http://www.w3.org/2005/08/addressing">
>     <soapenv:Header>
>         <wsa:To>http://www.w3.org/2005/08/addressing/anonymous</wsa:To>
>         <wsa:ReplyTo>
>             <wsa:Address>http://www.w3.org/2005/08/addressing/none</wsa:Address>
>         </wsa:ReplyTo>
>         <wsa:MessageID>urn:uuid:F9202DB4CDDD77D74E11641126874342</wsa:MessageID>
>         <wsa:Action>http://docs.oasis-open.org/wsn/bw-2/NotificationProducer/SubscribeRequest</wsa:Action>
>         <wsa:RelatesTo wsa:RelationshipType="http://www.w3.org/2005/08/addressing/reply">uuid:2806625d-4a8d-dcfe-90a6-1c826dc07912</wsa:RelatesTo>
>     </soapenv:Header>
>     <soapenv:Body>
>         <wsnt:SubscribeResponse xmlns:tns="http://ws.apache.org/axis2" xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2">
>             <wsnt:SubscriptionReference>
>                 <wsa:Address>http://127.0.0.1:8080/NotificationServiceTest/services/SubscriptionManager</wsa:Address>
>                 <wsa:ReferenceParameters>
>                     <muse-wsa:ResourceId xmlns:muse-wsa="http://ws.apache.org/muse/addressing">MuseResource-1</muse-wsa:ResourceId>
>                 </wsa:ReferenceParameters>
>             </wsnt:SubscriptionReference>
>             <wsnt:CurrentTime>2006-11-21T13:38:12+01:00</wsnt:CurrentTime>
>         </wsnt:SubscribeResponse>
>     </soapenv:Body>
> </soapenv:Envelope>
> [CLIENT TRACE] SOAP envelope contents (outgoing):
> <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
>     <soap:Header>
>         <wsa:To xmlns:wsa="http://www.w3.org/2005/08/addressing">http://localhost:8080/NotificationServiceTest/services/WsResource</wsa:To>
>         <wsa:Action xmlns:wsa="http://www.w3.org/2005/08/addressing">http://ws.apache.org/muse/test/wsrf/GenerateNotificationRequest</wsa:Action>
>         <wsa:MessageID xmlns:wsa="http://www.w3.org/2005/08/addressing">uuid:20380101-53f5-c614-4cd1-d21e29f3989a</wsa:MessageID>
>         <wsa:From xmlns:wsa="http://www.w3.org/2005/08/addressing">
>             <wsa:Address>http://www.w3.org/2005/08/addressing/role/anonymous</wsa:Address>
>         </wsa:From>
>     </soap:Header>
>     <soap:Body>
>         <pfx0:GenerateNotification xmlns:pfx0="http://ws.apache.org/muse/test/wsrf">
>             <pfx0:NotificationText>This is a notification that must be delivered</pfx0:NotificationText>
>         </pfx0:GenerateNotification>
>     </soap:Body>
> </soap:Envelope>
> [CLIENT TRACE] SOAP envelope contents (incoming):
> <soapenv:Envelope
>     xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope" xmlns:wsa="http://www.w3.org/2005/08/addressing">
>     <soapenv:Header>
>         <wsa:To>http://www.w3.org/2005/08/addressing/anonymous</wsa:To>
>         <wsa:ReplyTo>
>             <wsa:Address>http://www.w3.org/2005/08/addressing/none</wsa:Address>
>         </wsa:ReplyTo>
>         <wsa:MessageID>urn:uuid:F9202DB4CDDD77D74E11641126939044</wsa:MessageID>
>         <wsa:Action>http://ws.apache.org/muse/test/wsrf/GenerateNotificationRequest</wsa:Action>
>         <wsa:RelatesTo wsa:RelationshipType="http://www.w3.org/2005/08/addressing/reply">uuid:20380101-53f5-c614-4cd1-d21e29f3989a</wsa:RelatesTo>
>     </soapenv:Header>
>     <soapenv:Body>
>         <muse-op:GenerateNotificationResponse
>             xmlns:muse-op="http://ws.apache.org/muse/test/wsrf" xmlns:tns="http://ws.apache.org/axis2"/>
>     </soapenv:Body>
> </soapenv:Envelope>
> [CLIENT TRACE] SOAP envelope contents (outgoing):
> <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
>     <soap:Header>
>         <wsa:To xmlns:wsa="http://www.w3.org/2005/08/addressing">http://localhost:8080/NotificationServiceTest/services/WsResource</wsa:To>
>         <wsa:Action xmlns:wsa="http://www.w3.org/2005/08/addressing">http://docs.oasis-open.org/wsn/bw-2/NotificationProducer/GetCurrentMessageRequest</wsa:Action>
>         <wsa:MessageID xmlns:wsa="http://www.w3.org/2005/08/addressing">uuid:19f3dd63-a3bc-09c1-00d2-bcf64dea0dab</wsa:MessageID>
>         <wsa:From xmlns:wsa="http://www.w3.org/2005/08/addressing">
>             <wsa:Address>http://www.w3.org/2005/08/addressing/role/anonymous</wsa:Address>
>         </wsa:From>
>     </soap:Header>
>     <soap:Body>
>         <wsnt:GetCurrentMessage
>             xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2" xmlns:="http://ws.apache.org/muse/test/wsrf">Notification</wsnt:GetCurrentMessage>
>     </soap:Body>
> </soap:Envelope>
> org.apache.muse.ws.addressing.soap.SoapFault: Server returned HTTP response code: 500 for URL: http://localhost:8080/NotificationServiceTest/services/WsResource
> at org.apache.muse.core.AbstractResourceClient.invoke(AbstractResourceClient.java:254)
> at org.apache.muse.ws.notification.remote.NotificationProducerClient.getCurrentMessage(NotificationProducerClient.java:80)
> at org.apache.ws.muse.test.wsrf.NotificationTest.main(NotificationTest.java:32)

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe, e-mail: muse-dev-unsubscribe@...
For additional commands, e-mail: muse-dev-help@...


[jira] Commented: (MUSE-149) Error 500 getting the current message

by JIRA jira@apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

    [ http://issues.apache.org/jira/browse/MUSE-149?page=comments#action_12460020 ]
           
Jose Antonio commented on MUSE-149:
-----------------------------------

Definitively this seems related to QName elements without prefix.
I get the following code when executing this code:

inst.getResourceProperty(HostCreationConstants.HOSTCREATION_NAME);

where

public static String NAMESPACE = "http://lsd.org/wsdm/HostCreationSchema";
public static QName HOSTCREATION_NAME = new QName(NAMESPACE,"HostCreation");

the SOAP request is the following one:

<?xml version="1.0" encoding="UTF-8"?>
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
    <soap:Header>
        <wsa:To xmlns:wsa="http://www.w3.org/2005/08/addressing">http://127.0.0.1:8081/FactoryService/services/Creation</wsa:To>
        <wsa:Action xmlns:wsa="http://www.w3.org/2005/08/addressing">http://docs.oasis-open.org/wsrf/rpw-2/GetResourceProperty/GetResourcePropertyRequest</wsa:Action>
        <wsa:MessageID xmlns:wsa="http://www.w3.org/2005/08/addressing">uuid:7da38f22-0104-7b05-8c4c-53293a53dfaa</wsa:MessageID>
        <wsa:From xmlns:wsa="http://www.w3.org/2005/08/addressing">
            <wsa:Address>http://www.w3.org/2005/08/addressing/role/anonymous</wsa:Address>
        </wsa:From>
        <muse-wsa:ResourceId
            xmlns:wsa="http://www.w3.org/2005/08/addressing"
            wsa:IsReferenceParameter="true" xmlns:muse-wsa="http://ws.apache.org/muse/addressing">MuseResource-1</muse-wsa:ResourceId>
    </soap:Header>
    <soap:Body>
        <wsrf-rp:GetResourceProperty
            xmlns:wsrf-rp="http://docs.oasis-open.org/wsrf/rp-2" xmlns:="http://lsd.org/wsdm/HostCreationSchema">HostCreation</wsrf-rp:GetResourceProperty>
    </soap:Body>
</soap:Envelope>

Note the xmlns:="http://lsd.org/wsdm/HostCreationSchema" part. Now it fails with com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character '=' (code 61) (expected a name start character) at [row,col {unknown-source}]: [16,72] but this time it makes sense. That could be the main problem, being it in the request or the response. Maybe there's a bug when generating elements without prefix.

Anyway, adding a prefix to every possible element and sending this request:

<?xml version="1.0" encoding="UTF-8"?>
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
    <soap:Header>
        <wsa:To xmlns:wsa="http://www.w3.org/2005/08/addressing">http://127.0.0.1:8081/FactoryService/services/Creation</wsa:To>
        <wsa:Action xmlns:wsa="http://www.w3.org/2005/08/addressing">http://docs.oasis-open.org/wsrf/rpw-2/GetResourceProperty/GetResourcePropertyRequest</wsa:Action>
        <wsa:MessageID xmlns:wsa="http://www.w3.org/2005/08/addressing">uuid:7da38f22-0104-7b05-8c4c-53293a53dfaa</wsa:MessageID>
        <wsa:From xmlns:wsa="http://www.w3.org/2005/08/addressing">
            <wsa:Address>http://www.w3.org/2005/08/addressing/role/anonymous</wsa:Address>
        </wsa:From>
        <muse-wsa:ResourceId
            xmlns:wsa="http://www.w3.org/2005/08/addressing"
            wsa:IsReferenceParameter="true" xmlns:muse-wsa="http://ws.apache.org/muse/addressing">MuseResource-1</muse-wsa:ResourceId>
    </soap:Header>
    <soap:Body>
        <wsrf-rp:GetResourceProperty
            xmlns:wsrf-rp="http://docs.oasis-open.org/wsrf/rp-2" xmlns:lsd-his="http://lsd.org/wsdm/HostCreationSchema">lsd-his:HostCreation</wsrf-rp:GetResourceProperty>
    </soap:Body>
</soap:Envelope>

Gets the same error but this time at [row,col {unknown-source}]: [5,76].

> Error 500 getting the current message
> -------------------------------------
>
>                 Key: MUSE-149
>                 URL: http://issues.apache.org/jira/browse/MUSE-149
>             Project: Muse
>          Issue Type: Bug
>          Components: WSN NotificationProducer
>    Affects Versions: 2.0.0, 2.1.0
>         Environment: Apache Tomcat 5.5 in a Ubuntu 6.06 box. JDK 1.5 from Sun Microsystems
>            Reporter: Jose Antonio
>         Assigned To: Dan Jemiolo
>             Fix For: 2.2.0
>
>         Attachments: catalina.out, muse.log, notification.txt, NotificationServiceTest.zip, NotificationTest.java, request1.txt, request2.txt, request3.txt
>
>
> When calling to getCurrentMessage from a Notification client, I get an error 500. It's the only operation that generates this kind of error as I can subscribe to a topic and notifications are generated when needed, but that operation is generating an error before it reaches Muse.
> Attached are some files that could be used to reproduce it. This is the SOAP messages that gets exchanged when running the test:
> [CLIENT TRACE] SOAP envelope contents (outgoing):
> <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
>     <soap:Header>
>         <wsa:To xmlns:wsa="http://www.w3.org/2005/08/addressing">http://localhost:8080/NotificationServiceTest/services/WsResource</wsa:To>
>         <wsa:Action xmlns:wsa="http://www.w3.org/2005/08/addressing">http://docs.oasis-open.org/wsn/bw-2/NotificationProducer/SubscribeRequest</wsa:Action>
>         <wsa:MessageID xmlns:wsa="http://www.w3.org/2005/08/addressing">uuid:2806625d-4a8d-dcfe-90a6-1c826dc07912</wsa:MessageID>
>         <wsa:From xmlns:wsa="http://www.w3.org/2005/08/addressing">
>             <wsa:Address>http://www.w3.org/2005/08/addressing/role/anonymous</wsa:Address>
>         </wsa:From>
>     </soap:Header>
>     <soap:Body>
>         <wsnt:Subscribe xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2">
>             <wsnt:ConsumerReference>
>                 <wsa:Address xmlns:wsa="http://www.w3.org/2005/08/addressing">http://localhost:8080/FicticiousService/services/WsResource</wsa:Address>
>             </wsnt:ConsumerReference>
>         </wsnt:Subscribe>
>     </soap:Body>
> </soap:Envelope>
> [CLIENT TRACE] SOAP envelope contents (incoming):
> <soapenv:Envelope
>     xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope" xmlns:wsa="http://www.w3.org/2005/08/addressing">
>     <soapenv:Header>
>         <wsa:To>http://www.w3.org/2005/08/addressing/anonymous</wsa:To>
>         <wsa:ReplyTo>
>             <wsa:Address>http://www.w3.org/2005/08/addressing/none</wsa:Address>
>         </wsa:ReplyTo>
>         <wsa:MessageID>urn:uuid:F9202DB4CDDD77D74E11641126874342</wsa:MessageID>
>         <wsa:Action>http://docs.oasis-open.org/wsn/bw-2/NotificationProducer/SubscribeRequest</wsa:Action>
>         <wsa:RelatesTo wsa:RelationshipType="http://www.w3.org/2005/08/addressing/reply">uuid:2806625d-4a8d-dcfe-90a6-1c826dc07912</wsa:RelatesTo>
>     </soapenv:Header>
>     <soapenv:Body>
>         <wsnt:SubscribeResponse xmlns:tns="http://ws.apache.org/axis2" xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2">
>             <wsnt:SubscriptionReference>
>                 <wsa:Address>http://127.0.0.1:8080/NotificationServiceTest/services/SubscriptionManager</wsa:Address>
>                 <wsa:ReferenceParameters>
>                     <muse-wsa:ResourceId xmlns:muse-wsa="http://ws.apache.org/muse/addressing">MuseResource-1</muse-wsa:ResourceId>
>                 </wsa:ReferenceParameters>
>             </wsnt:SubscriptionReference>
>             <wsnt:CurrentTime>2006-11-21T13:38:12+01:00</wsnt:CurrentTime>
>         </wsnt:SubscribeResponse>
>     </soapenv:Body>
> </soapenv:Envelope>
> [CLIENT TRACE] SOAP envelope contents (outgoing):
> <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
>     <soap:Header>
>         <wsa:To xmlns:wsa="http://www.w3.org/2005/08/addressing">http://localhost:8080/NotificationServiceTest/services/WsResource</wsa:To>
>         <wsa:Action xmlns:wsa="http://www.w3.org/2005/08/addressing">http://ws.apache.org/muse/test/wsrf/GenerateNotificationRequest</wsa:Action>
>         <wsa:MessageID xmlns:wsa="http://www.w3.org/2005/08/addressing">uuid:20380101-53f5-c614-4cd1-d21e29f3989a</wsa:MessageID>
>         <wsa:From xmlns:wsa="http://www.w3.org/2005/08/addressing">
>             <wsa:Address>http://www.w3.org/2005/08/addressing/role/anonymous</wsa:Address>
>         </wsa:From>
>     </soap:Header>
>     <soap:Body>
>         <pfx0:GenerateNotification xmlns:pfx0="http://ws.apache.org/muse/test/wsrf">
>             <pfx0:NotificationText>This is a notification that must be delivered</pfx0:NotificationText>
>         </pfx0:GenerateNotification>
>     </soap:Body>
> </soap:Envelope>
> [CLIENT TRACE] SOAP envelope contents (incoming):
> <soapenv:Envelope
>     xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope" xmlns:wsa="http://www.w3.org/2005/08/addressing">
>     <soapenv:Header>
>         <wsa:To>http://www.w3.org/2005/08/addressing/anonymous</wsa:To>
>         <wsa:ReplyTo>
>             <wsa:Address>http://www.w3.org/2005/08/addressing/none</wsa:Address>
>         </wsa:ReplyTo>
>         <wsa:MessageID>urn:uuid:F9202DB4CDDD77D74E11641126939044</wsa:MessageID>
>         <wsa:Action>http://ws.apache.org/muse/test/wsrf/GenerateNotificationRequest</wsa:Action>
>         <wsa:RelatesTo wsa:RelationshipType="http://www.w3.org/2005/08/addressing/reply">uuid:20380101-53f5-c614-4cd1-d21e29f3989a</wsa:RelatesTo>
>     </soapenv:Header>
>     <soapenv:Body>
>         <muse-op:GenerateNotificationResponse
>             xmlns:muse-op="http://ws.apache.org/muse/test/wsrf" xmlns:tns="http://ws.apache.org/axis2"/>
>     </soapenv:Body>
> </soapenv:Envelope>
> [CLIENT TRACE] SOAP envelope contents (outgoing):
> <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
>     <soap:Header>
>         <wsa:To xmlns:wsa="http://www.w3.org/2005/08/addressing">http://localhost:8080/NotificationServiceTest/services/WsResource</wsa:To>
>         <wsa:Action xmlns:wsa="http://www.w3.org/2005/08/addressing">http://docs.oasis-open.org/wsn/bw-2/NotificationProducer/GetCurrentMessageRequest</wsa:Action>
>         <wsa:MessageID xmlns:wsa="http://www.w3.org/2005/08/addressing">uuid:19f3dd63-a3bc-09c1-00d2-bcf64dea0dab</wsa:MessageID>
>         <wsa:From xmlns:wsa="http://www.w3.org/2005/08/addressing">
>             <wsa:Address>http://www.w3.org/2005/08/addressing/role/anonymous</wsa:Address>
>         </wsa:From>
>     </soap:Header>
>     <soap:Body>
>         <wsnt:GetCurrentMessage
>             xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2" xmlns:="http://ws.apache.org/muse/test/wsrf">Notification</wsnt:GetCurrentMessage>
>     </soap:Body>
> </soap:Envelope>
> org.apache.muse.ws.addressing.soap.SoapFault: Server returned HTTP response code: 500 for URL: http://localhost:8080/NotificationServiceTest/services/WsResource
> at org.apache.muse.core.AbstractResourceClient.invoke(AbstractResourceClient.java:254)
> at org.apache.muse.ws.notification.remote.NotificationProducerClient.getCurrentMessage(NotificationProducerClient.java:80)
> at org.apache.ws.muse.test.wsrf.NotificationTest.main(NotificationTest.java:32)

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe, e-mail: muse-dev-unsubscribe@...
For additional commands, e-mail: muse-dev-help@...

< Prev | 1 - 2 | Next >