Quantcast
Channel: Service Bus forum
Viewing all 1916 articles
Browse latest View live

Transaction Using Subscription?

$
0
0

I'm working a single subscription, a single listener. No sessions. I'm trying to implement a retry solution for transient business errors. When a db server goes down (for example), I want to clone and re-submit the message to the topic with a ScheduledEnqueueTimeUtc 5 seconds in the future. To prevent dupes with other subscriptions, i'm setting a filter on all my Subscriptions that will look for a user property with the subscription name (or blank).

First I call CompleteAsync() on the original message.

Then I call SendAsync() on the new (cloned) message, to the same topic.

Problem:

If I wrap these 2 calls in a transaction, I get the following exception:

"ServiceBusException: Transaction hasn't been declared yet, or has already been discharged"

Can't figure out why I'd be getting this error. One thing is, I cannot find an example transaction that uses subscriptions - they're all using queues. Are subscriptions possible for transactions?

I can do 2 SendAsync() calls within a transaction, but not a CompleteAsync() and a SendAsync() 

Thanks, any suggestions are appreciated.


Service Bus vs Event Hubs

$
0
0

Hi All, 

I am in early stage of investigating appropriate asynchronous communication between my application and various micro-services which communicate with other downstream subsystems. As an example my application maintains a product registry, when a product changes a downstream system is notified to come an get the updated details. I want to use a messaging for reliability in case the downstream system is offline. I am inclined to use Service Bus for this type of scenario as I have used queues and topics previously. However I have found other architectures online that use Event Hubs as an alternative.  Does anyone have experience using event hubs in this type of scenario and any reason as why you would choose them over service bus. 

Thanks

As a side not a change to a product can be scheduled for example price increase effective at the end of the month. If a user configures this I have used the scheduled enqueue feature of service bus to achieve this not sure of what the equivalent is in event hub  

[Announcement] Microsoft Q&A to replace MSDN community platform!

$
0
0

Azure is moving from our MSDN platform to the new Microsoft Q&A platform to help users find faster answers!  Some Azure services have already been migrated, while others (including this one) will be migrated in the near future.

Can I still post here?

Yes. Migration is happening in stages so until there is an announcement, please continue to use MSDN for this service. Be aware once a service has moved, the MSDN forum is closed and you can then post on Microsoft Q&A.

What has already moved?

There will be a notification in any MSDN forum that has already moved.  Additionally, you can look at our list of services on Microsoft Q&A.

When will the move happen?

This service will be migrated from MSDN to Microsoft Q&A over the next couple months.  When we do move, we will make an announcement here on MSDN.  After migrating to Microsoft Q&A, readers will no longer be able to make posts for this service on MSDN (old answers will still be readable, however).

How do I use Microsoft Q&A?

Microsoft Q&A uses tags instead of forums for each service.  To help ease you through this transition, please read our Microsoft Q&A getting started guide.

The Azure hybrid connection quota is calculated incorrectly for Azure App Services

$
0
0

I have an App Service Plan (B2) that supposed to support up to 5 hybrid connections. I added 5 connections to the app service plan, which works fine. Now I have two separate API Applications that need to work with these connections. I added the first four to both of those applications and everything seems to be fine. Then I added the last one to one of my applications, but when I tried to add the last connection to the second API app, it shows the following message:



According to the documentation, the quota is for the app service plan. How can I resolve this issue?

MassTransit Temporary queues

$
0
0

Hello

MassTransit created hundreds of temporary queues.

I upgraded to 5.5 version which supports a property :AutoDeleteOnIdle. I set it to 5 min.

I hope the new temp queues will self destry after 5 min

My questiion is : How can i get rid of the existing temporrary queues. There are hundreds or more.

In Azure portal i cannot find any feature for queues batch deletion.

Thank you


MassTransit Temporary queues

$
0
0

How can i delete hundreds of temporary queues created by mass transit?

I cant find any feature in Azure Portal to do it

Thank you

Operation not completed within the specified time 0

$
0
0

Hi.

I am only getting this error under small load when calling PeekAsync() on a queue using MessageReceiver.

"Operation is not completed within the specified time 0 out-connection 5436"

I cannot find any information related to it anywhere. Could anyone please help me troubleshoot this error?

My setup is like this:

1. A singleton service that makes all the calls to service bus. In it I have instance variables for MessageSender and MessageReceiver.

2. A HttpTrigger function that puts a message to the queue and does some peeking. This function calls singleton service methods.


Azure Service Bus queue limit for large applications

$
0
0

Hi folks,

 I am investigating using Azure Service bus for a large application that requires multiple queues of ordered messages.   

The issue that I have is that from time to time, downstream systems can be offline for a lengthy period of time.  This means that one can get a significant backlog of messages.  I would require a queue size of around 1 terabyte.

The Azure service bus has a limit of 80 gigabytes which may pose an issue for the requirement.

I was wondering if there is a different architecture pattern that could be leveraged to consolidate multiple queues into a larger virtual queue, or if there is a way of archiving messages into a store and resuming them in order later.

Alternatively, does anyone know if it is possible to request a larger queue size rather than use an out of the box limit?

Regards.


JMS message listener invoker failed, Cause: Identifier contains invalid JMS identifier character '-': 'x-request-id'

$
0
0

I'm working with JMS and queues (Azure Queues) for the first time. I'm required to make a queue where Rubi server would write some data and Java would read it from queue and will do further executions. This process is working fine locally on my machine, I've created a REST endpoint which is writing data in the queue and once data is written in the queue, the listener would take over and read the data and execute. When we deploy it to Azure. The error I can see in logs which is not letting the Queues start is

Setup of JMS message listener invoker failed for destination 'queue-name' - trying to recover. Cause: Identifier contains invalid JMS identifier character '-': 'x-request-id'

Zipkin is also present on azure server as a distributed tracing system and I guess this x-request-id is related to zipkin which is creating problem. I've searched google for the issue but couldn't understand it why its happening. Any help would be highly appreciated as I'm stuck on this issue for two days. many thanks.

guest account user with Azure Service Bus Data Owner role is unauthorized via managed service identity

$
0
0

Hello and thanks in advance for taking a look!

I am taking advantage of managed service identity (MSI) with azure service bus and this generally working great.

Some contractors have been added to the team and have been added to our directory as guest accounts.  I've had a little trouble getting MSI to work for them.  Here's where I'm at so far:

Visual Studio's Azure Account selection (under Tools > Options > Azure Service Authentication) doesn't let you pick the directory.  At first, this was using the guest account's "just in time" directory, not ours.  The sdk was throwing an exception because their token's issuer was invalid - makes sense.  I got around this via the Azure CLI

az login --tenant "<tenant id>"
az account set -s "<subscription id>"
After doing this, we're no longer getting the error about an invalid issuer - success!  However, we're getting a new exception that the guest account is unauthorized when trying to interact with service bus.  I can confirm that this guest account has the Azure Service Bus Data Owner role, so they should have full access.  In fact, both the guest account and my account are granted this role via a common security group.  Everything works fine for me (with non-guest account) but the guest account is unauthorized.  is there some limitation with MSI and guest accounts or is there some additional configuration I need to do?

Thanks!

Logic App Trigger for Service Bus Queue Topic failing with 401 Error

$
0
0

Hi,

I've Service Bus Queue Topic configured to fire Logic App whenever Message has been posted into Topic. I'm sending message through Postman into Message Topic. I've used Bearer Token Authorization and Application/JSON content type to send the message into queue. I've generated bearer token key for resource servicebus.azure.net using my client credentials i.e., Tenant Id, Client, Subscription Id for Azure Account.

When I post message through POSTMAN, I'm getting Status Code 201 and getting message sent successfully sent to TOPIC, Trigger getting fired to Invoke Logic App. But the Logic App is failing with Status Code 401, The erorr is

"40103: Invalid authorization token signature, Resource:sb://xxxx.servicebus.windows.net/messagerouting/subscriptions/yyyyyy

xxx - Servicebus Namespace

yyyy - logicapp name

How to resolve this error? How do I validate Logicapp thorough servicebus call?

My Logic App step is : When a message is received in topic subscription(peek-lock)

The Primary and Secondary SAS Keys are generated for Logicapp and I've granted Owner access for

My App to this Logic app and servicebus namespace through IAM.

Thanks
Kalyan.


https://servicebus.azure.net
I've Service Bus Queue Topic configured to fire Logic App whenever Message has been posted into Topic. I'm sending message through Postman into Message Topic. I've used Bearer Token Authorization and Application/JSON content type to send the message into queue. I've generated bearer token key for resource servicebus.azure.net using my client credentials i.e., Tenant Id, Client, Subscription Id for Azure Account.
I've Service Bus Queue Topic configured to fire Logic App whenever Message has been posted into Topic. I'm sending message through Postman into Message Topic. I've used Bearer Token Authorization and Application/JSON content type to send the message into queue. I've generated bearer token key for resource servicebus.azure.net using my client credentials i.e., Tenant Id, Client, Subscription Id for Azure Account.

ServiceBus Message Containers

$
0
0

Hi all,

I have ServiceBus cluster with 3 containers configured. Each container is a database within SQL. For some reason ServiceBus is not using all 3 containers, it tends to use only 1. All containers are active, healthy and with proper permissions.

Is there a configuration somewhere in ServiceBus where you can tell it to utilize all containers for messages?

I am no longer able to connect to Service Bus from within a Docker container

$
0
0

This used to work in the past with no issues :-(

I'm running a simple .Net Console application.  I'm trying to run it on my laptop.  The same code runs perfectly in Azure Container Instances.

At the point I call "new QueueListener(<connection string>) I'm getting the exception below.

Microsoft.ServiceBus.Messaging.MessagingCommunicationException: The remote name could not be resolved: '<namespace>.servicebus.windows.net' ---> System.ServiceModel.CommunicationException: The remote name could not be resolved: '<namespace>.servicebus.windows.net' ---> System.IO.IOException: The remote name could not be resolved: '<namespace>.servicebus.windows.net' ---> System.Net.WebException: The remote name could not be resolved: '<namespace>.servicebus.windows.net' 

1. I checked and the connection string is correct.

2. The container has network connection, I see this in Docker events: ... network connect 9cf78d18371e7aa59c75b093c3c2376718e6a297f3f14001d2710824bb50dda3 (container=4c3a4b4c785f8a2b31d908fa65147cada0c0207015fa05988493fc77588a75f9, name=nat, type=nat)

3. I tried adding " -p 5671:5671" on the "docker run" line, no difference.

Does anyone know what am I missing please?

Thank you,  eugen


Thank you, eugen_nw

Issue with Azure Eventhub (java) using proxy

$
0
0

I have a requirement to send messages from on premises to Event hub thru proxy,

I am using java  and getting an exception 

Followed the link on microsoft tech community(cant paste full link as it blocks) :  /t5/event-hubs-blog/azure-event-hubs-websockets-and-proxy-support/ba-p/371136

. Any help on this please

maven dependency : 

<dependency>
<groupId>com.microsoft.azure</groupId>
<artifactId>azure-eventhubs</artifactId>
<version>3.0.0</version>
</dependency>

public static void main(String[] args)
throws EventHubException, ExecutionException, InterruptedException, IOException {

final ConnectionStringBuilder connectionStringBuilder = new ConnectionStringBuilder()
.setNamespaceName("myeventhubnamespace")
.setEventHubName("myeventhubname")
.setSasKeyName("RootManageSharedAccessKey")
.setSasKey("xxxxxxxxxxxxxxxxx");

ProxySelector.setDefault(new ProxySelector() {
@Override
public List<Proxy> select(URI uri) {
LinkedList<Proxy> proxies = new LinkedList<>();
proxies.add(new Proxy(Proxy.Type.HTTP, new InetSocketAddress("xxx.xxxx.xxxx", 8085)));
return proxies;
}
@Override
public void connectFailed(URI uri, SocketAddress sa, IOException ioe) {
// trace and follow up on why proxy server is down
}
});
// step-2: configure EventHubClient transport to AmqpWebSockets
connectionStringBuilder.setTransportType(TransportType.AMQP_WEB_SOCKETS);


// step-2: configure EventHubClient transport to AmqpWebSockets
ScheduledExecutorService executorService = null;
try {
executorService = Executors.newScheduledThreadPool(1);
EventHubClient ehClient = EventHubClient.createSync(connectionStringBuilder.toString(), executorService);
ehClient.sendSync(EventData.create("Test Message".getBytes()));
}finally {
executorService.shutdown();
}

}

Exception stacktrace

Exception in thread "main" com.microsoft.azure.eventhubs.EventHubException: org.apache.qpid.proton.engine.TransportException: proxy connect request failed with error: HTTP/1.0 200 Connection established


at com.microsoft.azure.eventhubs.impl.ExceptionUtil.toException(ExceptionUtil.java:60)
at com.microsoft.azure.eventhubs.impl.MessagingFactory.onConnectionError(MessagingFactory.java:264)
at com.microsoft.azure.eventhubs.impl.ConnectionHandler.onTransportError(ConnectionHandler.java:171)
at org.apache.qpid.proton.engine.BaseHandler.handle(BaseHandler.java:191)
at org.apache.qpid.proton.engine.impl.EventImpl.dispatch(EventImpl.java:108)
at org.apache.qpid.proton.reactor.impl.ReactorImpl.dispatch(ReactorImpl.java:324)
at org.apache.qpid.proton.reactor.impl.ReactorImpl.process(ReactorImpl.java:291)
at com.microsoft.azure.eventhubs.impl.MessagingFactory$RunReactor.run(MessagingFactory.java:490)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)

Unable to receive messages frpm Azure Service Bus Queue & topics

$
0
0

Hello,

I have a tried with below sample for receiving messages from Azure Service Bus 

 https://docs.microsoft.com/en-us/azure/service-bus-messaging/service-bus-dotnet-how-to-use-topics-subscriptions

But getting below error on running for Queues & Topics from console app. Pls help

Message handler encountered an exception Microsoft.Azure.ServiceBus.ServiceBusCommunicationException: This is usually a temporary error during hostname resolution and means that the local server did not receive a response from an authoritative server ErrorCode: TryAgain ---> System.Net.Sockets.SocketException: This is usually a temporary error during hostname resolution and means that the local server did not receive a response from an authoritative server
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.Azure.ServiceBus.ServiceBusConnection.<CreateConnectionAsync>d__45.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.Azure.Amqp.FaultTolerantAmqpObject`1.<OnCreateAsync>d__6.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.Azure.Amqp.Singleton`1.<GetOrCreateAsync>d__13.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.Azure.Amqp.Singleton`1.<GetOrCreateAsync>d__13.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.Azure.ServiceBus.Amqp.AmqpLinkCreator.<CreateAndOpenAmqpLinkAsync>d__11.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
   at Microsoft.Azure.ServiceBus.Core.MessageReceiver.<CreateLinkAsync>d__101.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.Azure.Amqp.FaultTolerantAmqpObject`1.<OnCreateAsync>d__6.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.Azure.Amqp.Singleton`1.<GetOrCreateAsync>d__13.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.Azure.Amqp.Singleton`1.<GetOrCreateAsync>d__13.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.Azure.ServiceBus.Core.MessageReceiver.<OnReceiveAsync>d__86.MoveNext()
   --- End of inner exception stack trace ---
   at Microsoft.Azure.ServiceBus.Core.MessageReceiver.<OnReceiveAsync>d__86.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.Azure.ServiceBus.Core.MessageReceiver.<>c__DisplayClass64_0.<<ReceiveAsync>b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.Azure.ServiceBus.RetryPolicy.<RunOperation>d__19.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Microsoft.Azure.ServiceBus.RetryPolicy.<RunOperation>d__19.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.Azure.ServiceBus.Core.MessageReceiver.<ReceiveAsync>d__64.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.Azure.ServiceBus.Core.MessageReceiver.<ReceiveAsync>d__62.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.Azure.ServiceBus.MessageReceivePump.<<MessagePumpTaskAsync>b__11_0>d.MoveNext().
Exception context for troubleshooting:
- Endpoint: vicroadsservicebus.servicebus.windows.net
- Entity Path: userqueue
- Executing Action: Receive


Krishna


Getting a SessionLockLostException when trying to complete a message

$
0
0

I’m receiving messages using a session id “Commands” on a RequireSesssion=true subscription. I am using sessions so that I can make sure that my “command” messages are executed in the appropriate order. In my case some messages will be deferred while a range of other sub-commands do their job.

Unfortunately I cannot yet reproduce the issue in a simplified code example. But the steps in my code are as follows:

  1. Create a SubscriptionClient and call AcceptMessageSessionAsync() on it
  2. On the received session, start a loop to receive messages with session. ReceiveAsync()
    1. Handle the first message
      1. Write some data to session state using session. SetStateAsync()
      2. Process a file
      3. Send messages with the same SessionId to the topic for next steps to take using SendAsync()
    2. Receive the first message generated in the previous step
      1. Send a new message to the same topic using SendAsync(). But this message intended for another subscription (with the SessionId field of the BrokeredMessage left at null)
      2. Complete the message using CompleteAsync()

The SessionLockLostException is thrown at step 2.2.2.

Some experimentation showed that the exception is only thrown if I also execute step 2.2.1.

If I replace step 2.2.1 with just a Task.Delay(), then the message completes successfully.

I wonder if I am trying to do something with sessions that is not supported. I haven’t yet found good documentation on brokered message sessions features yet.

This is the exception:

Microsoft.ServiceBus.Messaging.SessionLockLostException was caught
  _HResult=-2146233088
  _message=Channel:uuid:04a0e531-3b8e-4b49-96ab-63288d9a39f7;id=2759;Link:7.TrackingId:ec3b5ee4-cfd9-462f-b2c2-cd32bb6c3656_G29_G29_B5,TimeStamp:2/11/2014 8:12:17 AM
  HResult=-2146233088
  IsTransient=false
  Message=Channel:uuid:04a0e531-3b8e-4b49-96ab-63288d9a39f7;id=2759;Link:7.TrackingId:ec3b5ee4-cfd9-462f-b2c2-cd32bb6c3656_G29_G29_B5,TimeStamp:2/11/2014 8:12:17 AM
  Source=Microsoft.ServiceBus
  StackTrace:
       at Microsoft.ServiceBus.Common.AsyncResult.End[TAsyncResult](IAsyncResult result)
       at Microsoft.ServiceBus.Messaging.IteratorAsyncResult`1.RunSynchronously()
       at Microsoft.ServiceBus.Messaging.MessageReceiver.OnComplete(TrackingContext trackingContext, IEnumerable`1 lockTokens, TimeSpan timeout)
       at Microsoft.ServiceBus.Messaging.MessageReceiver.Complete(TrackingContext trackingContext, IEnumerable`1 lockTokens, TimeSpan timeout)
       at Microsoft.ServiceBus.Messaging.MessageReceiver.Complete(IEnumerable`1 lockTokens, TimeSpan timeout)
       at Microsoft.ServiceBus.Messaging.ReceiveContext.Complete()
       at Microsoft.ServiceBus.Messaging.ReceiveContext.Complete()
       at Microsoft.ServiceBus.Messaging.BrokeredMessage.Complete()
       at FS.ServiceBus.Handlers.BaseBrokeredSessionHandler.<handlemessageinnerasync>d__6.MoveNext() in d:\Src\til-tfs-01\Src\ServiceBus\Handlers\BaseBrokeredSessionHandler.cs:line 105
  InnerException: System.ServiceModel.FaultException<system.servicemodel.exceptiondetail>
       _HResult=-2146233087
       _message=Channel:uuid:04a0e531-3b8e-4b49-96ab-63288d9a39f7;id=2759;Link:7.TrackingId:ec3b5ee4-cfd9-462f-b2c2-cd32bb6c3656_G29_G29_B5,TimeStamp:2/11/2014 8:12:17 AM
       HResult=-2146233087
       IsTransient=false
       Message=Channel:uuid:04a0e531-3b8e-4b49-96ab-63288d9a39f7;id=2759;Link:7.TrackingId:ec3b5ee4-cfd9-462f-b2c2-cd32bb6c3656_G29_G29_B5,TimeStamp:2/11/2014 8:12:17 AM
       RemoteStackTrace=
Server stack trace: 
   at Microsoft.ServiceBus.Messaging.Sbmp.DuplexRequestBindingElement.DuplexRequestSessionChannel.ThrowIfFaultMessage(Message wcfMessage)
   at Microsoft.ServiceBus.Messaging.Sbmp.DuplexRequestBindingElement.DuplexRequestSessionChannel.HandleMessageReceived(IAsyncResult result)

Exception rethrown at [0]: 
   at Microsoft.ServiceBus.Common.AsyncResult.End[TAsyncResult](IAsyncResult result)
   at Microsoft.ServiceBus.Messaging.Sbmp.DuplexRequestBindingElement.DuplexRequestSessionChannel.DuplexCorrelationAsyncResult.End(IAsyncResult result)
   at Microsoft.ServiceBus.Messaging.Sbmp.DuplexRequestBindingElement.DuplexRequestSessionChannel.EndRequest(IAsyncResult result)
   at Microsoft.ServiceBus.Messaging.Channels.ReconnectBindingElement.ReconnectChannelFactory`1.RequestSessionChannel.RequestAsyncResult.<getasyncsteps>b__4(RequestAsyncResult thisPtr, IAsyncResult r)
   at Microsoft.ServiceBus.Messaging.IteratorAsyncResult`1.StepCallback(IAsyncResult result)

Exception rethrown at [1]: 
   at Microsoft.ServiceBus.Common.AsyncResult.End[TAsyncResult](IAsyncResult result)
   at Microsoft.ServiceBus.Common.AsyncResult`1.End(IAsyncResult asyncResult)
   at Microsoft.ServiceBus.Messaging.Channels.ReconnectBindingElement.ReconnectChannelFactory`1.RequestSessionChannel.EndRequest(IAsyncResult result)
   at Microsoft.ServiceBus.Messaging.Sbmp.RedirectBindingElement.RedirectContainerChannelFactory`1.RedirectContainerSessionChannel.RequestAsyncResult.<>c__DisplayClass17.<getasyncsteps>b__a(RequestAsyncResult thisPtr, IAsyncResult r)
   at Microsoft.ServiceBus.Messaging.IteratorAsyncResult`1.StepCallback(IAsyncResult result)

Exception rethrown at [2]: 
   at Microsoft.ServiceBus.Common.AsyncResult.End[TAsyncResult](IAsyncResult result)
   at Microsoft.ServiceBus.Common.AsyncResult`1.End(IAsyncResult asyncResult)
   at Microsoft.ServiceBus.Messaging.Sbmp.RedirectBindingElement.RedirectContainerChannelFactory`1.RedirectContainerSessionChannel.EndRequest(IAsyncResult result)
   at Microsoft.ServiceBus.Messaging.Channels.ReconnectBindingElement.ReconnectChannelFactory`1.RequestSessionChannel.RequestAsyncResult.<getasyncsteps>b__4(RequestAsyncResult thisPtr, IAsyncResult r)
   at Microsoft.ServiceBus.Messaging.IteratorAsyncResult`1.StepCallback(IAsyncResult result)

Exception rethrown at [3]: 
   at Microsoft.ServiceBus.Common.AsyncResult.End[TAsyncResult](IAsyncResult result)
   at Microsoft.ServiceBus.Common.AsyncResult`1.End(IAsyncResult asyncResult)
   at Microsoft.ServiceBus.Messaging.Channels.ReconnectBindingElement.ReconnectChannelFactory`1.RequestSessionChannel.EndRequest(IAsyncResult result)
   at Microsoft.ServiceBus.Messaging.Sbmp.SbmpTransactionalAsyncResult`1.<getasyncsteps>b__36(TIteratorAsyncResult thisPtr, IAsyncResult a)
   at Microsoft.ServiceBus.Messaging.IteratorAsyncResult`1.StepCallback(IAsyncResult result)

Exception rethrown at [4]: 

       Source=Microsoft.ServiceBus
       Action=http://schemas.microsoft.com/net/2005/12/windowscommunicationfoundation/dispatcher/fault
       StackTrace:
         Server stack trace: 
            at Microsoft.ServiceBus.Messaging.Sbmp.DuplexRequestBindingElement.DuplexRequestSessionChannel.ThrowIfFaultMessage(Message wcfMessage)
            at Microsoft.ServiceBus.Messaging.Sbmp.DuplexRequestBindingElement.DuplexRequestSessionChannel.HandleMessageReceived(IAsyncResult result)
         Exception rethrown at [0]: 
            at Microsoft.ServiceBus.Common.AsyncResult.End[TAsyncResult](IAsyncResult result)
            at Microsoft.ServiceBus.Messaging.Sbmp.DuplexRequestBindingElement.DuplexRequestSessionChannel.DuplexCorrelationAsyncResult.End(IAsyncResult result)
            at Microsoft.ServiceBus.Messaging.Sbmp.DuplexRequestBindingElement.DuplexRequestSessionChannel.EndRequest(IAsyncResult result)
            at Microsoft.ServiceBus.Messaging.Channels.ReconnectBindingElement.ReconnectChannelFactory`1.RequestSessionChannel.RequestAsyncResult.<getasyncsteps>b__4(RequestAsyncResult thisPtr, IAsyncResult r)
            at Microsoft.ServiceBus.Messaging.IteratorAsyncResult`1.StepCallback(IAsyncResult result)
         Exception rethrown at [1]: 
            at Microsoft.ServiceBus.Common.AsyncResult.End[TAsyncResult](IAsyncResult result)
            at Microsoft.ServiceBus.Common.AsyncResult`1.End(IAsyncResult asyncResult)
            at Microsoft.ServiceBus.Messaging.Channels.ReconnectBindingElement.ReconnectChannelFactory`1.RequestSessionChannel.EndRequest(IAsyncResult result)
            at Microsoft.ServiceBus.Messaging.Sbmp.RedirectBindingElement.RedirectContainerChannelFactory`1.RedirectContainerSessionChannel.RequestAsyncResult.<>c__DisplayClass17.<getasyncsteps>b__a(RequestAsyncResult thisPtr, IAsyncResult r)
            at Microsoft.ServiceBus.Messaging.IteratorAsyncResult`1.StepCallback(IAsyncResult result)
         Exception rethrown at [2]: 
            at Microsoft.ServiceBus.Common.AsyncResult.End[TAsyncResult](IAsyncResult result)
            at Microsoft.ServiceBus.Common.AsyncResult`1.End(IAsyncResult asyncResult)
            at Microsoft.ServiceBus.Messaging.Sbmp.RedirectBindingElement.RedirectContainerChannelFactory`1.RedirectContainerSessionChannel.EndRequest(IAsyncResult result)
            at Microsoft.ServiceBus.Messaging.Channels.ReconnectBindingElement.ReconnectChannelFactory`1.RequestSessionChannel.RequestAsyncResult.<getasyncsteps>b__4(RequestAsyncResult thisPtr, IAsyncResult r)
            at Microsoft.ServiceBus.Messaging.IteratorAsyncResult`1.StepCallback(IAsyncResult result)
         Exception rethrown at [3]: 
            at Microsoft.ServiceBus.Common.AsyncResult.End[TAsyncResult](IAsyncResult result)
            at Microsoft.ServiceBus.Common.AsyncResult`1.End(IAsyncResult asyncResult)
            at Microsoft.ServiceBus.Messaging.Channels.ReconnectBindingElement.ReconnectChannelFactory`1.RequestSessionChannel.EndRequest(IAsyncResult result)
            at Microsoft.ServiceBus.Messaging.Sbmp.SbmpTransactionalAsyncResult`1.<getasyncsteps>b__36(TIteratorAsyncResult thisPtr, IAsyncResult a)
            at Microsoft.ServiceBus.Messaging.IteratorAsyncResult`1.StepCallback(IAsyncResult result)
         Exception rethrown at [4]: 
            at Microsoft.ServiceBus.Common.AsyncResult.End[TAsyncResult](IAsyncResult result)
            at Microsoft.ServiceBus.Common.AsyncResult`1.End(IAsyncResult asyncResult)
            at Microsoft.ServiceBus.Messaging.Sbmp.SbmpMessageReceiver.EndUpdateCommand(IAsyncResult result)
       InnerException:</getasyncsteps></getasyncsteps></getasyncsteps></getasyncsteps></getasyncsteps></getasyncsteps></getasyncsteps></getasyncsteps></system.servicemodel.exceptiondetail></handlemessageinnerasync>

Which connection string to use with Topic?

No session available to complete the message with the lock token Logic app

$
0
0

My logic app is not working and throwing below error when I pass session id for queue connector.

No session available to complete the message with the lock token

I already have enabled session while create a new queue.

enter image description here

Is there any other settings required to work this?


SE

ReceiveDisabled queue will not allow message sending

$
0
0

I have a requirement to use the Service Bus functionality to place a queue in receive disabled status in a given situation, where messages cannot be removed from the queue, but can still be added.

Having coded a simple test of this, the method seemed to work, however for reasons unknown to me I am now encountering problems when attempting to send messages to a queue in such a status.

The method I have employed to do this for PoC value is first placing the queue in received disabled status using:

    string path = "faultsqueue";
    ManagementClient managementClient = new ManagementClient(connectionString);
    QueueDescription queueDescription = new QueueDescription(path);
    EntityStatus status = EntityStatus.ReceiveDisabled;
    queueDescription.Status = status;
    await managementClient.UpdateQueueAsync(queueDescription);

This successfully places the queue in ReceiveDisabled as I can see through the portal.

Attempting to post messages to the queue with:

     MessageSender messageSender = new MessageSender(connectionString, queueName);
     string messageBody = "This is a test message";
     var message = new Message(Encoding.UTF8.GetBytes(messageBody));
     await messageSender.SendAsync(message);

returns error:

"Messaging entity 'sb://<namespace>.servicebus.windows.net/<queueName>' is currently disabled."

While attempting to pull a message from the queue using:

     MessageReceiver messageReceiver = new MessageReceiver(connectionString, queueName, ReceiveMode.PeekLock);
     Message message = await messageReceiver.ReceiveAsync();
     return new OkObjectResult($"{message.Body.ToString()}");

An error message is returned:

Messaging entity '<namespace>:Queue:<queueName>' is currently disabled for Receive operations.

The second error is as expected, however the message sender seems to see the queue as disabled and is unable to send messages. Any help on this would be much appreciated?

Thanks!

 

Service Bus HTTP Listener

$
0
0

We are having trouble implementing a solution using Azure Service Bus, however we are in the government space and having firewall issues.  I see there is a rest interface for the service bus.  Is there a REST Listener?

Viewing all 1916 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>