[ 
https://issues.apache.org/jira/browse/PROTON-1297?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15472744#comment-15472744
 ] 

Matt Pavlovich commented on PROTON-1297:
----------------------------------------

Logging trace:

{noformat}
Sep 08, 2016 12:43:53 AM org.apache.qpid.proton.messenger.impl.MessengerImpl put
FINE: MessengerImpl [_name=9021806a-9561-48d2-a772-4d1b4d60e544] about to put 
message: Message{properties=Properties{messageId=null, userId=null, 
to='amqp://admin:admin@localhost:5670/Foo.Bar', subject='null', replyTo='null', 
correlationId=null, contentType=null, contentEncoding=null, 
absoluteExpiryTime=null, creationTime=null, groupId='null', groupSequence=null, 
replyToGroupId='null'}body=AmqpValue{Hello World!}}
Sep 08, 2016 12:43:53 AM org.apache.qpid.proton.messenger.impl.MessengerImpl 
getLink
FINE: Connecting to localhost:5670
Sep 08, 2016 12:43:53 AM org.apache.qpid.proton.messenger.impl.MessengerImpl 
pumpOut
FINE: Sending on delivery: DeliveryImpl [_tag=[49], 
_link=org.apache.qpid.proton.engine.impl.SenderImpl@98320df, 
_deliveryState=null, _settled=false, _remoteSettled=false, 
_remoteDeliveryState=null, _flags=0, _defaultDeliveryState=null, 
_transportDelivery=null, _dataSize=0, _complete=false, _updated=false, 
_done=false, _offset=0]
Sep 08, 2016 12:43:53 AM org.apache.qpid.proton.messenger.impl.MessengerImpl 
send
FINE: MessengerImpl [_name=9021806a-9561-48d2-a772-4d1b4d60e544] about to send
Sep 08, 2016 12:43:53 AM org.apache.qpid.proton.engine.impl.SaslImpl 
writeSaslOutput
FINER: Finished writing SASL output. Output Buffer : 
java.nio.HeapByteBuffer[pos=33 lim=512 cap=512]
Sep 08, 2016 12:43:53 AM org.apache.qpid.proton.engine.impl.SaslImpl 
writeSaslOutput
FINER: Finished writing SASL output. Output Buffer : 
java.nio.HeapByteBuffer[pos=33 lim=512 cap=512]
Sep 08, 2016 12:43:53 AM org.apache.qpid.proton.engine.impl.SaslImpl 
writeSaslOutput
FINER: Finished writing SASL output. Output Buffer : 
java.nio.HeapByteBuffer[pos=0 lim=512 cap=512]
Sep 08, 2016 12:43:53 AM org.apache.qpid.proton.engine.impl.SaslImpl 
writeSaslOutput
FINER: Finished writing SASL output. Output Buffer : 
java.nio.HeapByteBuffer[pos=0 lim=512 cap=512]
Sep 08, 2016 12:43:53 AM org.apache.qpid.proton.engine.impl.SaslImpl 
writeSaslOutput
FINER: Finished writing SASL output. Output Buffer : 
java.nio.HeapByteBuffer[pos=0 lim=512 cap=512]
Sep 08, 2016 12:43:53 AM org.apache.qpid.proton.messenger.impl.MessengerImpl 
processActive
FINE: Processing active connector ConnectorImpl 
[_channel=java.nio.channels.SocketChannel[connected local=/127.0.0.1:52506 
remote=localhost/127.0.0.1:5670]]
Sep 08, 2016 12:43:53 AM 
org.apache.qpid.proton.engine.impl.SaslImpl$SaslTransportWrapper 
reallyProcessInput
FINER: SaslImpl [_outcome=PN_SASL_NONE, state=PN_SASL_STEP, done=false, 
role=CLIENT] about to call input.
Sep 08, 2016 12:43:53 AM org.apache.qpid.proton.engine.impl.SaslImpl 
handleOutcome
FINE: Handled outcome: SaslImpl [_outcome=PN_SASL_OK, state=PN_SASL_PASS, 
done=true, role=CLIENT]
Sep 08, 2016 12:43:53 AM 
org.apache.qpid.proton.engine.impl.SaslImpl$SaslTransportWrapper 
reallyProcessInput
FINER: SaslImpl [_outcome=PN_SASL_OK, state=PN_SASL_PASS, done=true, 
role=CLIENT] about to call plain input
Sep 08, 2016 12:43:53 AM org.apache.qpid.proton.messenger.impl.MessengerImpl 
processActive
FINE: Processing active connector ConnectorImpl 
[_channel=java.nio.channels.SocketChannel[connected local=/127.0.0.1:52506 
remote=localhost/127.0.0.1:5670]]
Sep 08, 2016 12:43:53 AM 
org.apache.qpid.proton.engine.impl.SaslImpl$SaslTransportWrapper 
reallyProcessInput
FINER: SaslImpl [_outcome=PN_SASL_OK, state=PN_SASL_PASS, done=true, 
role=CLIENT] about to call plain input
Sep 08, 2016 12:43:53 AM org.apache.qpid.proton.engine.impl.FrameParser input
FINE: IN: CH[0] : Open{ containerId='', hostname='', maxFrameSize=4294967295, 
channelMax=32767, idleTimeOut=15000, outgoingLocales=null, 
incomingLocales=null, offeredCapabilities=[ANONYMOUS-RELAY], 
desiredCapabilities=null, properties={topic-prefix=topic://, 
queue-prefix=queue://}}
Sep 08, 2016 12:43:53 AM org.apache.qpid.proton.engine.impl.FrameParser input
FINE: IN: CH[0] : Begin{remoteChannel=0, nextOutgoingId=1, incomingWindow=0, 
outgoingWindow=0, handleMax=65535, offeredCapabilities=null, 
desiredCapabilities=null, properties=null}
Sep 08, 2016 12:43:53 AM org.apache.qpid.proton.engine.impl.FrameParser input
FINE: IN: CH[0] : Flow{nextIncomingId=1, incomingWindow=2147483647, 
nextOutgoingId=1, outgoingWindow=0, handle=null, deliveryCount=null, 
linkCredit=null, available=null, drain=false, echo=false, properties=null}
Sep 08, 2016 12:43:53 AM org.apache.qpid.proton.messenger.impl.MessengerImpl 
processActive
FINE: Processing active connector ConnectorImpl 
[_channel=java.nio.channels.SocketChannel[connected local=/127.0.0.1:52506 
remote=localhost/127.0.0.1:5670]]
Sep 08, 2016 12:43:53 AM 
org.apache.qpid.proton.engine.impl.SaslImpl$SaslTransportWrapper 
reallyProcessInput
FINER: SaslImpl [_outcome=PN_SASL_OK, state=PN_SASL_PASS, done=true, 
role=CLIENT] about to call plain input
Sep 08, 2016 12:43:53 AM org.apache.qpid.proton.engine.impl.FrameParser input
FINE: IN: CH[0] : Attach{name='Foo.Bar', handle=0, role=RECEIVER, 
sndSettleMode=MIXED, rcvSettleMode=FIRST, source=Source{address='Foo.Bar', 
durable=NONE, expiryPolicy=SESSION_END, timeout=0, dynamic=false, 
dynamicNodeProperties=null, distributionMode=null, filter=null, 
defaultOutcome=null, outcomes=null, capabilities=null}, 
target=Target{address='Foo.Bar', durable=NONE, expiryPolicy=SESSION_END, 
timeout=0, dynamic=false, dynamicNodeProperties=null, capabilities=null}, 
unsettled=null, incompleteUnsettled=false, initialDeliveryCount=null, 
maxMessageSize=null, offeredCapabilities=null, desiredCapabilities=null, 
properties=null}
Sep 08, 2016 12:43:53 AM org.apache.qpid.proton.engine.impl.FrameParser input
FINE: IN: CH[0] : Flow{nextIncomingId=1, incomingWindow=2147483647, 
nextOutgoingId=1, outgoingWindow=0, handle=0, deliveryCount=0, linkCredit=1000, 
available=null, drain=false, echo=false, properties=null}

{noformat}

> proton-j not passing user:pass to remote broker
> -----------------------------------------------
>
>                 Key: PROTON-1297
>                 URL: https://issues.apache.org/jira/browse/PROTON-1297
>             Project: Qpid Proton
>          Issue Type: Bug
>          Components: proton-j
>    Affects Versions: 0.14.0
>            Reporter: Matt Pavlovich
>
> Test environment: ActiveMQ amqp listener on :5672
> The test below fails if username+password authentication is enabled on the 
> remote broker. Appears that proton-j is ignoring the username and password 
> fields in the URI.
> {noformat}
>       @Test
>       public void testProduceMsg() throws Exception {
>               String[] bodies = new String[] { "Hello World!" };
>               Address addr = new 
> Address("amqp://admin:admin@localhost:5672/Foo.Bar");
>               Messenger mng = new MessengerImpl();
>               mng.start();
>               Message msg = new MessageImpl();
>               System.out.println("Addr: " + addr.toString());
>               msg.setAddress(addr.toString());
>               for (String body : bodies) {
>                       msg.setBody(new AmqpValue(body));
>                       mng.put(msg);
>               }
>               mng.send();
> }
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to