Error occurred for Solace queue depth request message: 0 while reading from Solace using dataflow

It’s working with MsgBusSempUtil(JCSMPSession jcsmpSession), However when I tried with this MsgBusSempUtil( jcsmpSession, createProducer=false, createConsumer=true)  I got different error:
Error: Encountered a JCSMPException querying queue depth
jsonpayload: {com.solacesystems.jcsmp.InvalidOperationException: No producer to perform operation
at com.solacesystems.jcsmp.impl.requestreply.RequestorImpl.validateCanRequest(RequestorImpl.java:36)
at com.solacesystems.jcsmp.impl.requestreply.RequestorImpl.request(RequestorImpl.java:62)
at com.solace.connector.beam.MsgBusSempUtil.queryRouter(MsgBusSempUtil.java:125)
at com.solace.connector.beam.MsgBusSempUtil.queryRouter(MsgBusSempUtil.java:133)
at com.solace.connector.beam.UnboundedSolaceReader.queryQueueBytes(UnboundedSolaceReader.java:315)
at com.solace.connector.beam.UnboundedSolaceReader.getSplitBacklogBytes(UnboundedSolaceReader.java:330)
at org.apache.beam.runners.dataflow.worker.StreamingModeExecutionContext.flushState(StreamingModeExecutionContext.java:441)
at org.apache.beam.runners.dataflow.worker.StreamingDataflowWorker.process(StreamingDataflowWorker.java:1442)
at org.apache.beam.runners.dataflow.worker.StreamingDataflowWorker.access$1100(StreamingDataflowWorker.java:165)
at org.apache.beam.runners.dataflow.worker.StreamingDataflowWorker$7.run(StreamingDataflowWorker.java:1113)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748) }
Error : getSplitBacklogBytes() unable to read bytes from: {queue}
Exception : “Failed to execute message bus SEMP request, restarting Requestor: No producer to perform operation”