title: Azure Service Bus Exception
body: <p>I've been trying to make a client to connect my Azure service bus queue.
  I've been referring to this documentation:<br>
  <a href="https://docs.microsoft.com/en-us/azure/service-bus-messaging/service-bus-java-how-to-use-queues#send-messages-to-a-queue" rel="nofollow noreferrer">https://docs.microsoft.com/en-us/azure/service-bus-messaging/service-bus-java-how-to-use-queues#send-messages-to-a-queue</a>.</p>
  
  <p>My code : </p>
  
  <pre><code>public void run() throws Exception {
  
      try {
          final String ConnectionString = "&lt;My connection String&gt; ";
          final String QueueName = "queue1";
          QueueClient sendClient = new QueueClient(new 
          ConnectionStringBuilder(ConnectionString, QueueName), 
          ReceiveMode.PEEKLOCK); 
          System.out.println("sendClient created");
          sendClient.close();
      } catch(Exception e) {
          System.err.println(e);
      }
  }
  </code></pre>
  
  <p>While making a client i'm getting the following error :</p>
  
  <blockquote>
    <p>com.microsoft.azure.servicebus.primitives.ServiceBusException: Error{condition=amqp:connection:framing-error, description='org.apache.qpid.proton.engine.TransportException: connection aborted', info=null}</p>
  </blockquote>