[ 
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to