AMQP internal error with azure sdk for java client
ederaildo opened this issue · comments
Ederaildo Fontes commented
When i running a implementation with java client/spring as a sender using the azure-java-sdk. Having an issue in the log.
Error: condition:amqp:internal-error,description:Unable to cast object of type 'System.UInt64' to type 'System.String'.
The suspicion is that the delivery-tag generated by the Azure SDK is invalid.
ServiceBusEmulator.ServiceBusEmulatorHost[0]
AMQP SSL errors RemoteCertificateNotAvailable.
SEND AMQP 3 1 0 0
SEND sasl-mechanisms(sasl-server-mechanisms:[MSSBCBS,EXTERNAL,ANONYMOUS])
RECV sasl-init(mechanism:ANONYMOUS)
SEND sasl-outcome(code:Ok)
SEND AMQP 0 1.0.0
SEND (ch=0) open(container-id:AMQPNetLite-34d92b7e,host-name:localhost,max-frame-size:262144,channel-max:255,idle-time-out:1073741823)
RECV AMQP 0 1 0 0
RECV (ch=0) open(container-id:MF_d88451_1686853156801,host-name:localhost,max-frame-size:65536,channel-max:65535,idle-time-out:30000,properties:[product:azure-messaging-servicebus,framework:jre:null;vendor:null;jvm17.0.2+8-LTS-86,version:7.13.4,platform:Windows 10 10.0,user-agent:az-si-sb/5.1.0 azsdk-java-azure-messaging-servicebus/7.13.4 (17.0.2; Windows 10; 10.0)])
RECV (ch=0) begin(next-outgoing-id:1,incoming-window:2147483647,outgoing-window:2147483647,handle-max:65535)
SEND (ch=0) begin(remote-channel:0,next-outgoing-id:0,incoming-window:2048,outgoing-window:2147483647,handle-max:1023)
RECV (ch=1) begin(next-outgoing-id:1,incoming-window:2147483647,outgoing-window:2147483647,handle-max:65535)
SEND (ch=1) begin(remote-channel:1,next-outgoing-id:0,incoming-window:2048,outgoing-window:2147483647,handle-max:1023)
RECV (ch=1) attach(name:cbs:sender,handle:0,role:False,snd-settle-mode:Settled,rcv-settle-mode:First,source:source(),target:target(address:$cbs),incomplete-unsettled:False,initial-delivery-count:0)
SEND (ch=1) attach(name:cbs:sender,handle:0,role:True,snd-settle-mode:Settled,rcv-settle-mode:First,source:source(),target:target(address:$cbs),incomplete-unsettled:False,initial-delivery-count:0,max-message-size:2147483647)
SEND (ch=1) flow(next-in-id:1,in-window:2048,next-out-id:0,out-window:2147483647,handle:0,delivery-count:0,link-credit:100,drain:False)
RECV (ch=1) attach(name:cbs:receiver,handle:1,role:True,snd-settle-mode:Settled,rcv-settle-mode:First,source:source(address:$cbs),target:target(address:cbs-client-reply-to))
SEND (ch=1) attach(name:cbs:receiver,handle:1,role:False,snd-settle-mode:Settled,rcv-settle-mode:First,source:source(address:$cbs),target:target(address:cbs-client-reply-to),initial-delivery-count:0,max-message-size:2147483647)
RECV (ch=1) flow(next-in-id:0,in-window:2147483647,next-out-id:1,out-window:2147483647,handle:1,delivery-count:0,link-credit:1)
RECV (ch=1) transfer(handle:0,delivery-id:0,delivery-tag:6463336133343335653662353430613738323435623034626436653236663534,message-format:0,settled:True) payload 471
SEND (ch=0) close(error:error(condition:amqp:internal-error,description:Unable to cast object of type 'System.UInt64' to type 'System.String'.))
Xin Chen commented
What is ServiceBusEmulator? Is the library used by it? If you can run the emulator in debugger, try to get the call stack of the InvalidCastException.
Xin Chen commented
Close for now. Please reopen it if you have more data for investigation.