Quantcast

Running SenderNonTransacted class from sample gives error

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Running SenderNonTransacted class from sample gives error

prabhs.dbg
Please let me know why we are seeing this error while connecting to azure topic when using the SenderNonTransacted class from the amqp sample. It gives an error called "Invalid Destination".



Host        : swiftmq.servicebus.windows.net
Port        : 5671
Target      : testtopic
Number Msgs : 100
QoS         : EXACTLY_ONCE
Auth as Anon: false
User        : null
Password    : null

Using SSL on port 5671
ConnectionDispatcher, , visit, po=[POProtocolRequest, header=[ProtocolHeader, name=AMQP, id=0, major=1, minor=0, revision=0]] ...
ConnectionDispatcher, , visit, po=[POProtocolRequest, header=[ProtocolHeader, name=AMQP, id=0, major=1, minor=0, revision=0]] done
amqp, SND: [ProtocolHeader, name=AMQP, id=0, major=1, minor=0, revision=0]
amqp, RCV: [ProtocolHeader, name=AMQP, id=0, major=1, minor=0, revision=0]
ConnectionDispatcher, , visit, po=[POProtocolResponse, header=[ProtocolHeader, name=AMQP, id=0, major=1, minor=0, revision=0]] ...
ConnectionDispatcher, , visit, po=[POProtocolResponse, header=[ProtocolHeader, name=AMQP, id=0, major=1, minor=0, revision=0]] done
ConnectionDispatcher, , visit, po=[POOpen, containerId=8b6e6c1d-b44b-4e47-a098-40f79004d222@IE3BLT33J9T72, maxFrameSize=2147483647, maxChannel=255, idleTimeout=9223372036854775807] ...
ConnectionDispatcher, , visit, po=[POOpen, containerId=8b6e6c1d-b44b-4e47-a098-40f79004d222@IE3BLT33J9T72, maxFrameSize=2147483647, maxChannel=255, idleTimeout=9223372036854775807] done
amqp, SND[0] (size=118): [Open containerId=8b6e6c1d-b44b-4e47-a098-40f79004d222@IE3BLT33J9T72, hostname=swiftmq.servicebus.windows.net, maxFrameSize=2147483647, channelMax=255, idleTimeOut=4294967295]
amqp, RCV[0] (size=90): [Open containerId=c71cc4dc5e2b4130a20e2e91353f93f4_G62, maxFrameSize=65536, channelMax=255, idleTimeOut=240000, offeredCapabilities=[amqp:link:redirect]]
ConnectionDispatcher, , visit, po=[POConnectionFrameReceived, frame=[Open containerId=c71cc4dc5e2b4130a20e2e91353f93f4_G62, maxFrameSize=65536, channelMax=255, idleTimeOut=240000, offeredCapabilities=[amqp:link:redirect]], sassl=false] ...
ConnectionVisitor, , visit=[Open containerId=c71cc4dc5e2b4130a20e2e91353f93f4_G62, maxFrameSize=65536, channelMax=255, idleTimeOut=240000, offeredCapabilities=[amqp:link:redirect]]
ConnectionDispatcher, , visit, po=[POConnectionFrameReceived, frame=[Open containerId=c71cc4dc5e2b4130a20e2e91353f93f4_G62, maxFrameSize=65536, channelMax=255, idleTimeOut=240000, offeredCapabilities=[amqp:link:redirect]], sassl=false] done
SessionDispatcher, channel=0, , visit, po=[POBegin] ...
SessionDispatcher, channel=0, , visit, po=[POBegin] done
amqp, SND[0] (size=42): [Begin nextOutgoingId=1, incomingWindow=50, outgoingWindow=50, handleMax=2147483647]
amqp, RCV[0] (size=31): [Begin remoteChannel=0, nextOutgoingId=1, incomingWindow=5000, outgoingWindow=50, handleMax=255]
ConnectionDispatcher, , visit, po=[POConnectionFrameReceived, frame=[Begin remoteChannel=0, nextOutgoingId=1, incomingWindow=5000, outgoingWindow=50, handleMax=255], sassl=false] ...
ConnectionVisitor, , visit=[Begin remoteChannel=0, nextOutgoingId=1, incomingWindow=5000, outgoingWindow=50, handleMax=255]
ConnectionDispatcher, , visit, po=[POConnectionFrameReceived, frame=[Begin remoteChannel=0, nextOutgoingId=1, incomingWindow=5000, outgoingWindow=50, handleMax=255], sassl=false] done
SessionDispatcher, channel=0, , visit, po=[POConnectionFrameReceived, frame=[Begin remoteChannel=0, nextOutgoingId=1, incomingWindow=5000, outgoingWindow=50, handleMax=255]] ...
SessionDispatcherFrameVisitor, , visit=[Begin remoteChannel=0, nextOutgoingId=1, incomingWindow=5000, outgoingWindow=50, handleMax=255]
SessionDispatcher, channel=0, , visit, po=[POConnectionFrameReceived, frame=[Begin remoteChannel=0, nextOutgoingId=1, incomingWindow=5000, outgoingWindow=50, handleMax=255]] done
SessionDispatcher, channel=0, , visit, po=[POAttachProducer, target=testtopic, link=null, qoS=2, deliveryMemory=com.swiftmq.amqp.v100.client.DefaultDeliveryMemory@9c6f444] ...
SessionDispatcher, channel=0, , visit, po=[POAttachProducer, target=testtopic, link=com.swiftmq.amqp.v100.client.Producer@45831816, qoS=2, deliveryMemory=com.swiftmq.amqp.v100.client.DefaultDeliveryMemory@9c6f444] done
amqp, SND[0] (size=169): [Attach name=5916158152350797304/0/testtopic/0, handle=0, role=FALSE, sndSettleMode=2, rcvSettleMode=1, source=[Source address=5916158152350797304/0/testtopic/0, durable=0, expiryPolicy=link-detach, timeout=0, dynamic=FALSE], target=[Target address=testtopic, durable=0, expiryPolicy=link-detach, timeout=0, dynamic=FALSE], incompleteUnsettled=FALSE, initialDeliveryCount=0]
amqp, RCV[0] (size=72): [Attach name=5916158152350797304/0/testtopic/0, handle=0, role=TRUE, sndSettleMode=2, rcvSettleMode=1, incompleteUnsettled=FALSE, maxMessageSize=262144]
SessionDispatcher, channel=0, , visit, po=[POConnectionFrameReceived, frame=[Attach name=5916158152350797304/0/testtopic/0, handle=0, role=TRUE, sndSettleMode=2, rcvSettleMode=1, incompleteUnsettled=FALSE, maxMessageSize=262144]] ...
SessionDispatcherFrameVisitor, , visit=[Attach name=5916158152350797304/0/testtopic/0, handle=0, role=TRUE, sndSettleMode=2, rcvSettleMode=1, incompleteUnsettled=FALSE, maxMessageSize=262144]
SessionDispatcher, channel=0, , visit, po=[POConnectionFrameReceived, frame=[Attach name=5916158152350797304/0/testtopic/0, handle=0, role=TRUE, sndSettleMode=2, rcvSettleMode=1, incompleteUnsettled=FALSE, maxMessageSize=262144]] done
com.swiftmq.amqp.v100.client.AMQPException: Invalid destination
        at com.swiftmq.amqp.v100.client.Session.createProducer(Unknown Source)
        at com.swiftmq.amqp.v100.client.Session.createProducer(Unknown Source)
        at com.honeywell.novar.cloud.SenderNonTransacted.main(SenderNonTransacted.java:134)
amqp, RCV[0] (size=266): [Detach handle=0, closed=TRUE, error=[Error condition=amqp:unauthorized-access, description=Unauthorized access. 'Send' claim(s) are required to perform this operation. Resource: 'sb://swiftmq.servicebus.windows.net/testtopic'. TrackingId:c71cc4dc5e2b4130a20e2e91353f93f4_G62,TimeStamp:2/24/2016 11:53:32 AM]]
SessionDispatcher, channel=0, , visit, po=[POConnectionFrameReceived, frame=[Detach handle=0, closed=TRUE, error=[Error condition=amqp:unauthorized-access, description=Unauthorized access. 'Send' claim(s) are required to perform this operation. Resource: 'sb://swiftmq.servicebus.windows.net/testtopic'. TrackingId:c71cc4dc5e2b4130a20e2e91353f93f4_G62,TimeStamp:2/24/2016 11:53:32 AM]]] ...
SessionDispatcherFrameVisitor, , visit=[Detach handle=0, closed=TRUE, error=[Error condition=amqp:unauthorized-access, description=Unauthorized access. 'Send' claim(s) are required to perform this operation. Resource: 'sb://swiftmq.servicebus.windows.net/testtopic'. TrackingId:c71cc4dc5e2b4130a20e2e91353f93f4_G62,TimeStamp:2/24/2016 11:53:32 AM]]
SessionDispatcher, channel=0, , visit, po=[POConnectionFrameReceived, frame=[Detach handle=0, closed=TRUE, error=[Error condition=amqp:unauthorized-access, description=Unauthorized access. 'Send' claim(s) are required to perform this operation. Resource: 'sb://swiftmq.servicebus.windows.net/testtopic'. TrackingId:c71cc4dc5e2b4130a20e2e91353f93f4_G62,TimeStamp:2/24/2016 11:53:32 AM]]] done
SessionDispatcher, channel=0, , visit, po=[POCloseLink, link=com.swiftmq.amqp.v100.client.Producer@45831816] ...
SessionDispatcher, channel=0, , visit, po=[POCloseLink, link=com.swiftmq.amqp.v100.client.Producer@45831816] done
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Running SenderNonTransacted class from sample gives error

IIT Software
Administrator
That seems to be obviously:

Unauthorized access. 'Send' claim(s) are required to perform this operation. Resource: 'sb://swiftmq.servicebus.windows.net/testtopic'.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Running SenderNonTransacted class from sample gives error

prabhs.dbg
Do we have any samples on how do we do it. I could not find it in downloads. Or else can you please point me to any documentation which could help me to get it working.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Running SenderNonTransacted class from sample gives error

IIT Software
Administrator
We provide the AMQP Java Client. If you connect to ServiceBus and have problems with the config, look there. It seems you just need to specify a "send" grant on that destination.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Running SenderNonTransacted class from sample gives error

prabhs.dbg
It looks like something in the Azure Service bus topics have changed. Sample examples for amqp in the swiftmq_9_7_2 distribution no longer works with Azure Service bus topics. We followed all the instructions from the swiftMq website. We have used the same examples a year back and it used to work. Do you know if the samples distribution with the SwiftMq package still works with Azure Service Bus.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Running SenderNonTransacted class from sample gives error

IIT Software
Administrator
Don't you understand what I write? You don't have permissions to write to the destination "testtopic" at ServiceBus. Please read the trace output before posting in this forum!
Loading...