You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@airavata.apache.org by "Raminderjeet Singh (JIRA)" <ji...@apache.org> on 2012/09/18 16:23:07 UTC

[jira] [Created] (AIRAVATA-576) Renew Messagebox subscription Unexpected character 'h' (code 104) in prolog; expected '<'

Raminderjeet Singh created AIRAVATA-576:
-------------------------------------------

             Summary: Renew Messagebox subscription Unexpected character 'h' (code 104) in prolog; expected '<'
                 Key: AIRAVATA-576
                 URL: https://issues.apache.org/jira/browse/AIRAVATA-576
             Project: Airavata
          Issue Type: Bug
            Reporter: Raminderjeet Singh


I am trying to reconnect to already created message box using MessageBoxNotificationHandler.renewMessageboxSubscription method

method parameters are renewMessageboxSubscription(subscription.getMessageBoxEPR().getAddress() , subscription.getSubscriptionID(), topic, xpath, true);

I am getting following error while creating EndpointReference endpointReference = EndpointReferenceHelper.fromString(epr);  Any idea what need to be passed? I am passing http://<ip>:8080/axis2/services/MsgBoxService/clientid/1517fdad-7319-4a29-a686-d08b7a09bfee as epr. 

org.apache.axiom.om.OMException: com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character 'h' (code 104) in prolog; expected '<'
 at [row,col {unknown-source}]: [1,1]
	at org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:260)
	at org.apache.axiom.om.impl.llom.OMDocumentImpl.getOMDocumentElement(OMDocumentImpl.java:133)
	at org.apache.axiom.om.impl.builder.StAXOMBuilder.getDocumentElement(StAXOMBuilder.java:502)
	at org.apache.axis2.addressing.EndpointReferenceHelper.fromString(EndpointReferenceHelper.java:157)
	at org.apache.airavata.workflow.tracking.impl.subscription.MessageBoxNotificationHandler.renewMessageboxSubscription(MessageBoxNotificationHandler.java:131)
	at org.apache.airavata.notification.NotificationListener.main(NotificationListener.java:49)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (AIRAVATA-576) Renew Messagebox subscription Unexpected character 'h' (code 104) in prolog; expected '<'

Posted by "Raminderjeet Singh (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AIRAVATA-576?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13458140#comment-13458140 ] 

Raminderjeet Singh commented on AIRAVATA-576:
---------------------------------------------

This is the EPR creation problem in renewMessageboxSubscription(String epr, String subscriptionId, String topic, String xpath, boolean subscribePermanatly). you cant pass http://$HOSTNAME:8080/axis2/services/MsgBoxService/clientid/1517fdad-7319-4a29-a686-d08b7a09bfee to EPR. If you do this EndpointReference endpointReference = new EndpointReference(epr); then this problem goes away but it still does not work. 
                
> Renew Messagebox subscription Unexpected character 'h' (code 104) in prolog; expected '<'
> -----------------------------------------------------------------------------------------
>
>                 Key: AIRAVATA-576
>                 URL: https://issues.apache.org/jira/browse/AIRAVATA-576
>             Project: Airavata
>          Issue Type: Bug
>            Reporter: Raminderjeet Singh
>
> I am trying to reconnect to already created message box using MessageBoxNotificationHandler.renewMessageboxSubscription method
> method parameters are renewMessageboxSubscription(subscription.getMessageBoxEPR().getAddress() , subscription.getSubscriptionID(), topic, xpath, true);
> I am getting following error while creating EndpointReference endpointReference = EndpointReferenceHelper.fromString(epr);  Any idea what need to be passed? I am passing http://<ip>:8080/axis2/services/MsgBoxService/clientid/1517fdad-7319-4a29-a686-d08b7a09bfee as epr. 
> org.apache.axiom.om.OMException: com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character 'h' (code 104) in prolog; expected '<'
>  at [row,col {unknown-source}]: [1,1]
> 	at org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:260)
> 	at org.apache.axiom.om.impl.llom.OMDocumentImpl.getOMDocumentElement(OMDocumentImpl.java:133)
> 	at org.apache.axiom.om.impl.builder.StAXOMBuilder.getDocumentElement(StAXOMBuilder.java:502)
> 	at org.apache.axis2.addressing.EndpointReferenceHelper.fromString(EndpointReferenceHelper.java:157)
> 	at org.apache.airavata.workflow.tracking.impl.subscription.MessageBoxNotificationHandler.renewMessageboxSubscription(MessageBoxNotificationHandler.java:131)
> 	at org.apache.airavata.notification.NotificationListener.main(NotificationListener.java:49)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira