title: Java MQ Queue Message "Get" Completion Code 2 Reason 2195
body: <p>I have a simple MQ Queue read source as bellow, but I always get error on <strong>queue.get</strong> instruction.<br>
  <strong>MQJE001: Completion Code '2', Reason '2195'</strong><br>
  My simple source is as:   </p>
  
  <pre><code>    MQEnvironment.hostname = "60.1.6.24";
      MQEnvironment.port = 1414;
      MQEnvironment.channel = "ServerChannel";
      MQEnvironment.userID = "mq";
      MQEnvironment.password = "mqinfotest$2014";
      MQEnvironment.CCSID = Integer.parseInt("1098");
  
      MQQueueManager qMgr = new MQQueueManager("QMDevelop");
      int openOptions = CMQC.MQOO_INPUT_SHARED | CMQC.MQOO_INQUIRE | CMQC.MQOO_NO_READ_AHEAD;
  
      MQQueue queue = qMgr.accessQueue("SaptaQueue", openOptions);
  
      if (queue.getCurrentDepth() &gt; 0) {
          MQMessage getMessage = new MQMessage();
          getMessage.clearMessage();
          queue.get(getMessage, new MQGetMessageOptions());
  
          String txt = getMessage.readLine();
          System.out.println("txt = " + txt);
      }
  
      if (queue != null)
          queue.close();
      if (qMgr != null)
          qMgr.disconnect();
  </code></pre>
  
  <p>Data read successfully but get error!!<br>
  What should I do get ride of error.<br>
  Thanks</p>