Friday 15 March 2013

Can perform getQueue() for nonexistent Azure SerivceBus Queue using JAVA sdk -


calls ServiceBusConstract.getQueue (path) in the last 26 or so hours where the path is a non-existent queue Service Access Whose final reason is the binding problem.

Reason by: javax.xml.bind.UnmarshalException: Unexpected element (Yuri: "", local: "feed"). Expected element & lt; {} Quassessation>, & lt; {} Subscription description & gt;, & lt; {} Subject Disecution & gt ;, & lt; {} Entry & gt; At com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext.handleEvent (UnmarshallingContext.java:647)

This is true when using both versions of 0.4.0 and 0.4.1 of SDK .

Earlier, this call returned a GetQueueResult, whose .getValue () method was returned to the empty space. It was found that my test is now failing.

Is production services not now compatible with this call? What is the expected behavior of ServiceBusContract.getQueue (nonExistentPath)?

It is expected to throw a ServiceException to validate this behavior, we actually have a unit test , Please see getNonExistQueueFail () in the following file.



No comments:

Post a Comment