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

Message Session start and end

$
0
0
Could anyone help me to understand in session enabled queue/topic, how to recognize session start and end when sending/receiving messages? And is it always compulsory to start/end sessions?

How to enable Azure Event Grid Webhook to Azure VM

$
0
0
We're using Azure Event Grid Webhooks (https://docs.microsoft.com/en-us/azure/event-grid/receive-events) with the endpoint configured as a server running in an azure virtual machine.

The VM is running with a security group that only enables known addresses. The problem is that the source of these events, (somewhere in Azure is not known. Therefore we currently have to disable the security group, sniff the source of the events, and <g class="gr_ gr_10 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling ins-del" data-gr-id="10" id="10">reenable</g> the security group with allowing the source IP. Is there a better way to go about this then doing this for all possible sources? 

If not, is there a means of getting the source addresses of these events somehow?

Unit test BrokeredMessage

$
0
0

Hi!

I have troubles writing unit tests of methods that uses BrokeredMessage, since I do not know how to set the state of the message. For example, I have message.Complete() inside a method that I want to test, but it throws exceptions since the message is not in the correct state. Any ideas of how to fix this?

This is the exception I get: System.InvalidOperationException : Operation is not valid due to the current state of the object.

BR
Arthur

Inspect server errors from storage account

$
0
0

I have configured several event hubs. I connect to these hubs using the Spark event hub connector.

After successfully processing numerous of messages I encountered problems now. My Spark app does not consume any messages anymore (without any exceptions) but in the Event hub portal view I see some server errors in the charts.

I configured to output logging to storage account (in the diagnostic settings), but when I try to view the logs in my storage account (using the Storage Explorer) I do not see any logging (only some general metrics).

How can I view the reported server errors from my storage account?

Load balancing consumer with Azure Topics

$
0
0

I want to know how i can achieve below behavior using Azure Service Bus Topics.

Sender sends different message (say A1, B1, C1, A2, B2, C2). Service1 should process messages of type A , Service 2 should process messages  of type B and so on. 


But if i have 2 instances of Service1, how can i ensure that a message of type A is received by only one of them. I need two instances of Service1 as this task is resource-intensive and huge requests are expected for this.


Avoid Converting DateTimeOffset to UTC time in Azure EventGrid

$
0
0

I've been testing out Azure's EventGrid and one of the things I'm trying to do is send an event where part of the PayLoad is a DateTimeOffset field. I'm publishing the event using the standard EventGridClient:

using (var client = new EventGridClient(topicCredentials))
{
    await client.PublishEventsAsync(topicHostname, eventGridEvents).ConfigureAwait(false);
}

I've fired up Fiddler and verified that the date portion is getting serialized as I would expect: "CheckInDate": "2018-12-26T14:47:42.8-08:00"

But when my subscribed Azure Functions listener receives the HttpTrigger and reads the message's content, the same item has somehow been formatted as UTC: "CheckInDate": "2018-12-26T22:47:42.8+00:00".

Is there a setting or something I need to enable to get it to preserve the original offset?

App developed on Android 7.0 throws NoClassDefFoundError while connecting to Azure EventHub

$
0
0

We have created an Azure Event Hub and are getting an exception when the following line of code is executed. we are getting the below exception where in Android studio suggests that java/time/Duration is available only for API level 26 and above. 

Is there a EventHub library available that supports Android 7.0 ?

EventHubClient client = EventHubClient.createSync(conn.toString(), Executors.newSingleThreadExecutor());

We get the following exception.

    demo.eventhubsample E/AndroidRuntime: FATAL EXCEPTION: main

    Process: demo.eventhubsample, PID: 24833

    java.lang.NoClassDefFoundError: Failed resolution of: Ljava/time/Duration;

        at com.microsoft.azure.eventhubs.impl.MessagingFactory.<clinit>(MessagingFactory.java:46)

        at com.microsoft.azure.eventhubs.impl.EventHubClientImpl.create(EventHubClientImpl.java:53)

        at com.microsoft.azure.eventhubs.EventHubClient$-CC.create(EventHubClient.java:84)

        at com.microsoft.azure.eventhubs.EventHubClient$-CC.lambda$createSync$0(EventHubClient.java:50)

        at com.microsoft.azure.eventhubs.-$$Lambda$EventHubClient$c5UbZzYQx71Hbh8oGZBMd2lKXRw.execute(lambda)

        at com.microsoft.azure.eventhubs.impl.ExceptionUtil.syncWithIOException(ExceptionUtil.java:200)

        at com.microsoft.azure.eventhubs.EventHubClient$-CC.createSync(EventHubClient.java:50)

        at com.microsoft.azure.eventhubs.EventHubClient$-CC.createSync(EventHubClient.java:35)

        at demo.eventhubsample.MainActivity.sendEvent(MainActivity.java:65)

        at demo.eventhubsample.MainActivity$1.onClick(MainActivity.java:44)

        at android.view.View.performClick(View.java:5714)

        at android.widget.TextView.performClick(TextView.java:10926)

        at android.view.View$PerformClick.run(View.java:22589)

        at android.os.Handler.handleCallback(Handler.java:739)

        at android.os.Handler.dispatchMessage(Handler.java:95)

        at android.os.Looper.loop(Looper.java:148)

        at android.app.ActivityThread.main(ActivityThread.java:7325)

        at java.lang.reflect.Method.invoke(Native Method)

        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)

        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)

     Caused by: java.lang.ClassNotFoundException: Didn't find class "java.time.Duration" on path: DexPathList[[zip file "/data/app/demo.eventhubsample-1/base.apk"],nativeLibraryDirectories=[/data/app/demo.eventhubsample-1/lib/arm, /vendor/lib, /system/lib]]

        at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)

        at java.lang.ClassLoader.loadClass(ClassLoader.java:511)

        at java.lang.ClassLoader.loadClass(ClassLoader.java:469)

        at com.microsoft.azure.eventhubs.impl.MessagingFactory.<clinit>(MessagingFactory.java:46) 

        at com.microsoft.azure.eventhubs.impl.EventHubClientImpl.create(EventHubClientImpl.java:53) 

        at com.microsoft.azure.eventhubs.EventHubClient$-CC.create(EventHubClient.java:84) 

        at com.microsoft.azure.eventhubs.EventHubClient$-CC.lambda$createSync$0(EventHubClient.java:50) 

        at com.microsoft.azure.eventhubs.-$$Lambda$EventHubClient$c5UbZzYQx71Hbh8oGZBMd2lKXRw.execute(lambda) 

        at com.microsoft.azure.eventhubs.impl.ExceptionUtil.syncWithIOException(ExceptionUtil.java:200) 

        at com.microsoft.azure.eventhubs.EventHubClient$-CC.createSync(EventHubClient.java:50) 

        at com.microsoft.azure.eventhubs.EventHubClient$-CC.createSync(EventHubClient.java:35) 

        at demo.eventhubsample.MainActivity.sendEvent(MainActivity.java:65) 

        at demo.eventhubsample.MainActivity$1.onClick(MainActivity.java:44) 

        at android.view.View.performClick(View.java:5714) 

        at android.widget.TextView.performClick(TextView.java:10926) 

        at android.view.View$PerformClick.run(View.java:22589) 

        at android.os.Handler.handleCallback(Handler.java:739) 

        at android.os.Handler.dispatchMessage(Handler.java:95) 

        at android.os.Looper.loop(Looper.java:148) 

        at android.app.ActivityThread.main(ActivityThread.java:7325) 

        at java.lang.reflect.Method.invoke(Native Method) 

        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230) 

        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120) 

               Suppressed: java.lang.ClassNotFoundException: java.time.Duration

        at java.lang.Class.classForName(Native Method)

        at java.lang.BootClassLoader.findClass(ClassLoader.java:781)

        at java.lang.BootClassLoader.loadClass(ClassLoader.java:841)

        at java.lang.ClassLoader.loadClass(ClassLoader.java:504)

                              ... 21 more

     Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack trace available

Dependencies used

 implementation 'com.microsoft.azure:azure-eventhubs:1.3.0'

API Level defined in gradle

 minSdkVersion  21  targetSdkVersion 26

Java Version

 compileOptions {         sourceCompatibility JavaVersion.VERSION_1_8         targetCompatibility JavaVersion.VERSION_1_8     }

Azure Service Bus: single producer and multiple consumers scenario for Service Fabric applications

$
0
0

I am new to Azure Service Bus and having a difficult time wrapping my mind around a few concepts, so any help is greatly appreciated!

I have distributed (Service Fabric) applications, say A and B where each consists of instances running on different nodes (say A1, A2, B1, and B2). There are two scenarios that I need to support:

  1. a producer publishes a single message and EVERY consumer receives it (A1, A2, B1, B2)
  2. a producer publishes a single message and a single instance per application receives (say A2 and B1) 

Should I be publishing a message to a queue and then forward it to another set of queues?

Thank you in advance and my apologies if I didn’t ask this in the right forum.


Azure event hub - Auto infalte

$
0
0

Need clarification on Auto-inflate feature for Azure Event Hub, documentation does not have enough details.

  1.       Confirmation on scale up and scale down of TU
  2.       How quickly it adapts the changes
  3.       Does it support basic, standard and dedicated version?
  4. Does it accommodate Brokered connection as well ?


Azure event hub - Brokered connection

$
0
0

Need to understand how are the brokered connection considered / counted in Azure Event Hub.

Do we count each input and Consumer Group as an individual brokered connection ?

 

Problems with AZURE SERVICE BUS QUEUES

$
0
0

Hello everybody!

I am developing a JAVA Service that requires two different processes, one is the REST service, an the other one the WORKER SERVICE. There is a QUEUE between both services. The REST service sends messages with info to the worker, and the worker processes those messages that arrive in the queue.

I would like to know if it is possible that once the message is treated, we can update it in the queue, and that it is accessed through the REST services again with the message identifier in the queue. And finally to be able to eliminate this message once treated and recovered.

So my question is that if once the message is taken from the queue, this message is deleted or can we return it to the queue to access the final result?

Integrating with Salesforce Platform Events

$
0
0

Is there anything in the roadmap which will support utilizing Service Bus, Logic Apps in order to integrate with Salesforce Platform Events? 

I'm happy with the features available in Logic Apps and Service Hub which lets me integrate with Outbound Messaging in Salesforce. But, Outbound messaging has its own flaws and messages may go missing without a way to track success - whereas Platform Event subscriptions have the status and retries. 


Chandra Sekhar

ReceiveTransport Faulted: TimeoutException

$
0
0

Hi, 

We use azure service bus (with masstransit) and regularly get Timeout exceptions causing receive transport faults.

TrackingIds : 2c64265a-147a-4f0b-b476-07f34daeabc2 , 75c9d0e7-e5b5-45cc-9dd9-63ca0a908dfb

Exception:

Message
ReceiveTransport Faulted: sb://teal-calculation-acceptance.servicebus.windows.net/RD281878615D57_w3wp_bus_mimoyydacrwbtaixbdm8tbi8gh?express=true&autodelete=300
Exception
System.TimeoutException: The request has timed out after 5000 milliseconds. The successful completion of the request cannot be determined. Additional queries should be made to determine whether or not the operation has succeeded. For more information on exception types and proper exception handling, please refer to TrackingId:2c64265a-147a-4f0b-b476-07f34daeabc2, SystemTracker:teal-calculation-acceptance.servicebus.windows.net:RD281878615D57_w3wp_bus_mimoyydacrwbtaixbdm8tbi8gh, Timestamp:1/12/2019 12:08:34 PM ---> System.Net.WebException: The request was aborted: The request was canceled. at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult) at Microsoft.ServiceBus.Messaging.ServiceBusResourceOperations.GetAsyncResult`1.<>c.b__22_1(GetAsyncResult`1 thisPtr, IAsyncResult r) at Microsoft.ServiceBus.Messaging.IteratorAsyncResult`1.StepCallback(IAsyncResult result) --- End of inner exception stack trace --- at Microsoft.ServiceBus.Common.AsyncResult.End[TAsyncResult](IAsyncResult result) at Microsoft.ServiceBus.Common.AsyncResult`1.End(IAsyncResult asyncResult) at Microsoft.ServiceBus.Messaging.ServiceBusResourceOperations.EndGet[TEntityDescription](IAsyncResult asyncResult, String[]& resourceNames) at Microsoft.ServiceBus.NamespaceManager.EndGetQueue(IAsyncResult result) at System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization) --- 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 MassTransit.AzureServiceBusTransport.Contexts.ServiceBusNamespaceContext.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 MassTransit.AzureServiceBusTransport.Pipeline.ConfigureTopologyFilter`1.d__7.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 MassTransit.AzureServiceBusTransport.Pipeline.ConfigureTopologyFilter`1.<>c__DisplayClass5_0.<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 GreenPipes.PipeExtensions.d__1`1.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 MassTransit.AzureServiceBusTransport.Pipeline.ConfigureTopologyFilter`1.d__5.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 GreenPipes.Agents.AsyncPipeContextPipe`1.d__3.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 GreenPipes.Agents.PipeContextSupervisor`1.-Send>d__8.MoveNext() --- End of stack trace from previous location where exception was thrown --- at GreenPipes.Agents.PipeContextSupervisor`1.-Send>d__8.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at GreenPipes.Agents.PipeContextSupervisor`1.-Send>d__8.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 MassTransit.AzureServiceBusTransport.Pipeline.JoinContextFactory`3.<>c__DisplayClass8_0.<g__Join|0>d.MoveNext()
Exception
System.Net.WebException: The request was aborted: The request was canceled. at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult) at Microsoft.ServiceBus.Messaging.ServiceBusResourceOperations.GetAsyncResult`1.<>c.b__22_1(GetAsyncResult`1 thisPtr, IAsyncResult r) at Microsoft.ServiceBus.Messaging.IteratorAsyncResult`1.StepCallback(IAsyncResult result)
SourceContext
"MassTransit.AzureServiceBusTransport.Transport.ReceiveTransport"

The load during those time was not huge (<2K messages ) and none of the requests was throttled.

Could you please point us into a direction on how to solve this? 

Kind regards,

Tim.

Microsoft Azure ServiceBus Nuget package update issue with visual studio 2015

$
0
0

Hi, 

I am getting below error when i tried to install azure service bus nuget package against visual studio 2015

Attempting to gather dependency information for package 'Microsoft.Azure.ServiceBus.3.2.1' with respect to project 'ServiceBusAzure', targeting '.NETFramework,Version=v4.5.2'
Gathering dependency information took 1.23 sec
Attempting to resolve dependencies for package 'Microsoft.Azure.ServiceBus.3.2.1' with DependencyBehavior 'Lowest'
Resolving dependency information took 0 ms
Resolving actions to install package 'Microsoft.Azure.ServiceBus.3.2.1'
Resolved actions to install package 'Microsoft.Azure.ServiceBus.3.2.1'
Retrieving package 'Microsoft.Azure.ServiceBus 3.2.1' from 'Microsoft and .NET'.
Install failed. Rolling back...
Package 'Microsoft.Azure.ServiceBus.3.2.1' does not exist in project 'ServiceBusAzure'
Package 'Microsoft.Azure.ServiceBus.3.2.1' does not exist in folder 'C:\Users\bharath.baggavarapu\Desktop\Files\Azure\ServiceBusContext\ServiceBusAzure\packages'
Executing nuget actions took 118.77 ms
Install-Package : Could not install package 'Microsoft.Azure.ServiceBus 3.2.1'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.5.2', but the package 
does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.
At line:1 char:1
+ Install-Package Microsoft.Azure.ServiceBus
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Install-Package], Exception
    + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand
 
Time Elapsed: 00:00:03.6492565

Can anyone help me on this?

Thanks

Deepti Bharath

Microsoft Service Bus Gateway Event ID 1000

$
0
0

I have Error when i have run the Services Bus 

Message:Failed to start Service Bus Gateway Service.

The description for Event ID 1000 from source Application Error cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.

 

If the event originated on another computer, the display information had to be saved with the event.

 

The following information was included with the event:

 

Microsoft.ServiceBus.Gateway.exe

--

C:\Program Files\Service Bus\1.0\Microsoft.ServiceBus.Gateway

unknown

d2370348-66d6-11e5-80ba-00155d78a712

The description for Event ID 1025 from source .NET Runtime cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.

 

If the event originated on another computer, the display information had to be saved with the event.

 

The following information was included with the event:

 

Application: Microsoft.ServiceBus.Gateway.exe

Framework Version: v4.0.30319

Description: The application requested process termination through System.Environment.FailFast(string message).

Message: Failed to start Service Bus Gateway Service.

Stack:

   at System.Environment.FailFast(System.String, System.Exception)

   at Microsoft.ServiceBus.Gateway.Gateway.OnStart(System.String[])

   at System.ServiceProcess.ServiceBase.ServiceQueuedMainCallback(System.Object)

   at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)

   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)

   at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()

   at System.Threading.ThreadPoolWorkQueue.Dispatch()

 

 

The handle is invalid


Deepesh Yevle - MCTS MCITP



Check if the EventHub namespace and instance exists

$
0
0

Hi,

I am writing a C# app which sends data to evenhub. How do I check in my program to ensure that the namespace and instance of eventhub does exist?

thanks

 

Hybrid Connection Manager UI Setup

$
0
0

Hi,

I logged the following with @AzureSupport Twitter:

"I have just downloaded the hybrid connection manager ui. I am stuck in an endless loop of 'Configure another Hybrid Connection' > log in > Nothing is listed > 'Configure another Hybrid Connection' > repeat ... I have tried on Windows 10 and Windows Server 2016. All I want to do is set up a hybrid connection relay"

The conclusion the agent came to was that Server 2016 is not supported but this doesn't sound right to me. Could I be missing some pre-requisites on the server?

Thanks in advance

Alex

Service Bus - Fail Back

$
0
0
All documentation talks about initiating fail over with Alias, but I need to know how to accomplish Fail Back once primary service bus is  back again on the same Alias. 

Service Bus Disaster swap exception type and how to do a drill

Messages transferred automatically from "active message" to "dead letter queue"

$
0
0

Hi,

I would like to understand the behaviour of service bus regarding the dead letter queue.

We are using service bus premium.

I send message to a queue in order to reach the queue size limit.

When the queue is full, let's say I have 20k messages in the "active message count" and 0% free space. 

When the queue is full, I stop sending new messages.

The next morning, I can see that all my 20k messages are now in the dead letter queue and my queue is still at 0 % free space.

If I read the message in the dead letter queue, I can notice that the reason is : 'MaxDeliveryCountExceeded': 'Message could not be consumed after 10 delivery attempts.'

Can anyone explains this behavior ? 

Thanks  

Viewing all 1916 articles
Browse latest View live


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