[jira] [Commented] (PROTON-1842) [c] Dispatch/Proton crashes when opening/closing connections

2018-08-14 Thread ASF subversion and git services (JIRA)


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

ASF subversion and git services commented on PROTON-1842:
-

Commit c601b98618dd4f45041501b080f761db4dd8285f in qpid-proton's branch 
refs/heads/master from Clifford Jansen
[ https://git-wip-us.apache.org/repos/asf?p=qpid-proton.git;h=c601b98 ]

PROTON-1842: revert 79d9019 temporary mitigation for follow-on long term fix


> [c] Dispatch/Proton crashes when opening/closing connections
> 
>
> Key: PROTON-1842
> URL: https://issues.apache.org/jira/browse/PROTON-1842
> Project: Qpid Proton
>  Issue Type: Bug
>  Components: proton-c
>Affects Versions: proton-c-0.22.0
>Reporter: Chuck Rolke
>Assignee: Alan Conway
>Priority: Major
> Attachments: helloworld.cpp, race.tsan, race.vg
>
>
> Using proton cpp example code that is modified to open and close connections 
> by the thousands in the main loop and having the event loop short circuit any 
> messaging with:
> {{  void on_connection_open(proton::connection& c) {}}
> {{  c.close();}}
> {{  }}}
> and then directing this client example to a dispatch router 1.1.0. Eventually 
> (after 100,000 to 1,000,000 connection open/closes) the router crashes with:
> {{qdrouterd: /home/chug/git/qpid-proton/c/src/proactor/epoll.c:466: 
> wake_pop_front: Assertion `p->wakes_in_progress' failed.}}
> and with:
> {{qdrouterd: /home/chug/git/qpid-proton/c/src/proactor/epoll.c:2014: 
> proactor_do_epoll: Assertion `ee->type == PCONNECTION_TIMER' failed.}}
> This issue seems to happen only with qpid-dispatch accepting the open/close 
> event stream. Proton cpp example _server_direct_ and c example _direct_ work 
> properly with the same open/close event stream mounting into the 10s of 
> millions of connections.
> A core dump backtrace with the PCONNECTION_TIMER failure reads as:
> {{(gdb) bt}}
> {{#0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51}}
> {{#1  0x7f795c712c41 in __GI_abort () at abort.c:79}}
> {{#2  0x7f795c709f7a in __assert_fail_base (fmt=0x7f795c85a260 
> "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", 
> assertion=assertion@entry=0x7f795d72e15a "ee->type == PCONNECTION_TIMER", }}
> {{    file=file@entry=0x7f795d72de98 
> "/home/chug/git/qpid-proton/c/src/proactor/epoll.c", line=line@entry=2014, }}
> {{    function=function@entry=0x7f795d72e320 <__PRETTY_FUNCTION__.6307> 
> "proactor_do_epoll") at assert.c:92}}
> {{#3  0x7f795c709ff2 in __GI___assert_fail (assertion=0x7f795d72e15a 
> "ee->type == PCONNECTION_TIMER", file=0x7f795d72de98 
> "/home/chug/git/qpid-proton/c/src/proactor/epoll.c", line=2014, }}
> {{    function=0x7f795d72e320 <__PRETTY_FUNCTION__.6307> "proactor_do_epoll") 
> at assert.c:101}}
> {{#4  0x7f795d72d29f in proactor_do_epoll (p=0x26b7310, can_block=true) 
> at /home/chug/git/qpid-proton/c/src/proactor/epoll.c:2014}}
> {{#5  0x7f795d72d30e in pn_proactor_wait (p=0x26b7310) at 
> /home/chug/git/qpid-proton/c/src/proactor/epoll.c:2030}}
> {{#6  0x7f795dbe89ad in thread_run (arg=0x26be750) at 
> /home/chug/git/qpid-dispatch/src/server.c:946}}
> {{#7  0x7f795d50e50b in start_thread (arg=0x7f794f486700) at 
> pthread_create.c:465}}
> {{#8  0x7f795c7d216f in clone () at 
> ../sysdeps/unix/sysv/linux/x86_64/clone.S:95}}
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

-
To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org
For additional commands, e-mail: dev-h...@qpid.apache.org



[jira] [Commented] (PROTON-1842) [c] Dispatch/Proton crashes when opening/closing connections

2018-08-14 Thread ASF subversion and git services (JIRA)


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

ASF subversion and git services commented on PROTON-1842:
-

Commit 803a47ed386497f6467dd4f5fb4f9f57d545695d in qpid-proton's branch 
refs/heads/master from Clifford Jansen
[ https://git-wip-us.apache.org/repos/asf?p=qpid-proton.git;h=803a47e ]

PROTON-1842: epoll proactor - add secondary/chained epollfd to maintain 1-1 
count between epoll registrations and eventual callbacks on pconnections


> [c] Dispatch/Proton crashes when opening/closing connections
> 
>
> Key: PROTON-1842
> URL: https://issues.apache.org/jira/browse/PROTON-1842
> Project: Qpid Proton
>  Issue Type: Bug
>  Components: proton-c
>Affects Versions: proton-c-0.22.0
>Reporter: Chuck Rolke
>Assignee: Alan Conway
>Priority: Major
> Attachments: helloworld.cpp, race.tsan, race.vg
>
>
> Using proton cpp example code that is modified to open and close connections 
> by the thousands in the main loop and having the event loop short circuit any 
> messaging with:
> {{  void on_connection_open(proton::connection& c) {}}
> {{  c.close();}}
> {{  }}}
> and then directing this client example to a dispatch router 1.1.0. Eventually 
> (after 100,000 to 1,000,000 connection open/closes) the router crashes with:
> {{qdrouterd: /home/chug/git/qpid-proton/c/src/proactor/epoll.c:466: 
> wake_pop_front: Assertion `p->wakes_in_progress' failed.}}
> and with:
> {{qdrouterd: /home/chug/git/qpid-proton/c/src/proactor/epoll.c:2014: 
> proactor_do_epoll: Assertion `ee->type == PCONNECTION_TIMER' failed.}}
> This issue seems to happen only with qpid-dispatch accepting the open/close 
> event stream. Proton cpp example _server_direct_ and c example _direct_ work 
> properly with the same open/close event stream mounting into the 10s of 
> millions of connections.
> A core dump backtrace with the PCONNECTION_TIMER failure reads as:
> {{(gdb) bt}}
> {{#0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51}}
> {{#1  0x7f795c712c41 in __GI_abort () at abort.c:79}}
> {{#2  0x7f795c709f7a in __assert_fail_base (fmt=0x7f795c85a260 
> "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", 
> assertion=assertion@entry=0x7f795d72e15a "ee->type == PCONNECTION_TIMER", }}
> {{    file=file@entry=0x7f795d72de98 
> "/home/chug/git/qpid-proton/c/src/proactor/epoll.c", line=line@entry=2014, }}
> {{    function=function@entry=0x7f795d72e320 <__PRETTY_FUNCTION__.6307> 
> "proactor_do_epoll") at assert.c:92}}
> {{#3  0x7f795c709ff2 in __GI___assert_fail (assertion=0x7f795d72e15a 
> "ee->type == PCONNECTION_TIMER", file=0x7f795d72de98 
> "/home/chug/git/qpid-proton/c/src/proactor/epoll.c", line=2014, }}
> {{    function=0x7f795d72e320 <__PRETTY_FUNCTION__.6307> "proactor_do_epoll") 
> at assert.c:101}}
> {{#4  0x7f795d72d29f in proactor_do_epoll (p=0x26b7310, can_block=true) 
> at /home/chug/git/qpid-proton/c/src/proactor/epoll.c:2014}}
> {{#5  0x7f795d72d30e in pn_proactor_wait (p=0x26b7310) at 
> /home/chug/git/qpid-proton/c/src/proactor/epoll.c:2030}}
> {{#6  0x7f795dbe89ad in thread_run (arg=0x26be750) at 
> /home/chug/git/qpid-dispatch/src/server.c:946}}
> {{#7  0x7f795d50e50b in start_thread (arg=0x7f794f486700) at 
> pthread_create.c:465}}
> {{#8  0x7f795c7d216f in clone () at 
> ../sysdeps/unix/sysv/linux/x86_64/clone.S:95}}
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

-
To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org
For additional commands, e-mail: dev-h...@qpid.apache.org



[jira] [Commented] (QPIDJMS-408) update to proton-j 0.29.0

2018-08-14 Thread ASF subversion and git services (JIRA)


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

ASF subversion and git services commented on QPIDJMS-408:
-

Commit c5c90534c2a761cd32e2462b942d00b420a7358d in qpid-jms's branch 
refs/heads/master from [~tabish121]
[ https://git-wip-us.apache.org/repos/asf?p=qpid-jms.git;h=c5c9053 ]

QPIDJMS-408 Implement the string write method of WritableBuffer

Implement the put(String) method for the WritableBuffer interface
introduced in proton-j 0.29.0 which allows us to use the Netty ByteBuf
string encoding to perform string encodes faster than the default
version in proton-j

> update to proton-j 0.29.0
> -
>
> Key: QPIDJMS-408
> URL: https://issues.apache.org/jira/browse/QPIDJMS-408
> Project: Qpid JMS
>  Issue Type: Task
>  Components: qpid-jms-client
>Reporter: Robbie Gemmell
>Assignee: Robbie Gemmell
>Priority: Major
> Fix For: 0.36.0
>
>
> Update to proton-j 0.29.0, get the latest fixes such as PROTON-1901, and 
> improvements such as PROTON-1911.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

-
To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org
For additional commands, e-mail: dev-h...@qpid.apache.org



[jira] [Resolved] (QPIDJMS-408) update to proton-j 0.29.0

2018-08-14 Thread Robbie Gemmell (JIRA)


 [ 
https://issues.apache.org/jira/browse/QPIDJMS-408?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Robbie Gemmell resolved QPIDJMS-408.

Resolution: Fixed

> update to proton-j 0.29.0
> -
>
> Key: QPIDJMS-408
> URL: https://issues.apache.org/jira/browse/QPIDJMS-408
> Project: Qpid JMS
>  Issue Type: Task
>  Components: qpid-jms-client
>Reporter: Robbie Gemmell
>Assignee: Robbie Gemmell
>Priority: Major
> Fix For: 0.36.0
>
>
> Update to proton-j 0.29.0, get the latest fixes such as PROTON-1901, and 
> improvements such as PROTON-1911.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

-
To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org
For additional commands, e-mail: dev-h...@qpid.apache.org



[jira] [Commented] (QPIDJMS-408) update to proton-j 0.29.0

2018-08-14 Thread ASF subversion and git services (JIRA)


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

ASF subversion and git services commented on QPIDJMS-408:
-

Commit e72a72c9d21abdf97f51d2d90464483c8c0cc26b in qpid-jms's branch 
refs/heads/master from [~gemmellr]
[ https://git-wip-us.apache.org/repos/asf?p=qpid-jms.git;h=e72a72c ]

QPIDJMS-408: update to proton-j-0.29.0


> update to proton-j 0.29.0
> -
>
> Key: QPIDJMS-408
> URL: https://issues.apache.org/jira/browse/QPIDJMS-408
> Project: Qpid JMS
>  Issue Type: Task
>  Components: qpid-jms-client
>Reporter: Robbie Gemmell
>Assignee: Robbie Gemmell
>Priority: Major
> Fix For: 0.36.0
>
>
> Update to proton-j 0.29.0, get the latest fixes such as PROTON-1901, and 
> improvements such as PROTON-1911.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

-
To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org
For additional commands, e-mail: dev-h...@qpid.apache.org



[jira] [Updated] (QPIDJMS-408) update to proton-j 0.29.0

2018-08-14 Thread Robbie Gemmell (JIRA)


 [ 
https://issues.apache.org/jira/browse/QPIDJMS-408?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Robbie Gemmell updated QPIDJMS-408:
---
Description: Update to proton-j 0.29.0, get the latest fixes such as 
PROTON-1901, and improvements such as PROTON-1911.  (was: Update to proton-j 
0.28.1, get the latest fixes such as PROTON-1901)

> update to proton-j 0.29.0
> -
>
> Key: QPIDJMS-408
> URL: https://issues.apache.org/jira/browse/QPIDJMS-408
> Project: Qpid JMS
>  Issue Type: Task
>  Components: qpid-jms-client
>Reporter: Robbie Gemmell
>Assignee: Robbie Gemmell
>Priority: Major
> Fix For: 0.36.0
>
>
> Update to proton-j 0.29.0, get the latest fixes such as PROTON-1901, and 
> improvements such as PROTON-1911.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

-
To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org
For additional commands, e-mail: dev-h...@qpid.apache.org



[jira] [Updated] (QPIDJMS-408) update to proton-j 0.29.0

2018-08-14 Thread Robbie Gemmell (JIRA)


 [ 
https://issues.apache.org/jira/browse/QPIDJMS-408?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Robbie Gemmell updated QPIDJMS-408:
---
Summary: update to proton-j 0.29.0  (was: update to proton-j 0.28.1)

> update to proton-j 0.29.0
> -
>
> Key: QPIDJMS-408
> URL: https://issues.apache.org/jira/browse/QPIDJMS-408
> Project: Qpid JMS
>  Issue Type: Task
>  Components: qpid-jms-client
>Reporter: Robbie Gemmell
>Assignee: Robbie Gemmell
>Priority: Major
> Fix For: 0.36.0
>
>
> Update to proton-j 0.28.1, get the latest fixes such as PROTON-1901



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

-
To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org
For additional commands, e-mail: dev-h...@qpid.apache.org



[jira] [Reopened] (QPIDJMS-408) update to proton-j 0.28.1

2018-08-14 Thread Robbie Gemmell (JIRA)


 [ 
https://issues.apache.org/jira/browse/QPIDJMS-408?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Robbie Gemmell reopened QPIDJMS-408:


> update to proton-j 0.28.1
> -
>
> Key: QPIDJMS-408
> URL: https://issues.apache.org/jira/browse/QPIDJMS-408
> Project: Qpid JMS
>  Issue Type: Task
>  Components: qpid-jms-client
>Reporter: Robbie Gemmell
>Assignee: Robbie Gemmell
>Priority: Major
> Fix For: 0.36.0
>
>
> Update to proton-j 0.28.1, get the latest fixes such as PROTON-1901



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

-
To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org
For additional commands, e-mail: dev-h...@qpid.apache.org



[jira] [Commented] (QPIDJMS-391) Add support for the use of native OpenSSL based providers

2018-08-14 Thread ASF subversion and git services (JIRA)


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

ASF subversion and git services commented on QPIDJMS-391:
-

Commit 8f0e35bd5502c77227a5d3eb8f8c67b90bdd49c8 in qpid-jms's branch 
refs/heads/master from [~gemmellr]
[ https://git-wip-us.apache.org/repos/asf?p=qpid-jms.git;h=8f0e35b ]

QPIDJMS-391: reorg the dep props/entries for clarity, fix some typos


> Add support for the use of native OpenSSL based providers
> -
>
> Key: QPIDJMS-391
> URL: https://issues.apache.org/jira/browse/QPIDJMS-391
> Project: Qpid JMS
>  Issue Type: New Feature
>  Components: qpid-jms-client
>Reporter: Johan Stenberg
>Priority: Minor
>  Labels: performance
> Fix For: 0.36.0
>
>
> It would be great to have an option to use netty-tcnative-boringssl-static 
> instead of the java based SSL provider. In the ActiveMQ Artemis this was 
> implemented as part of  https://issues.apache.org/jira/browse/ARTEMIS-1649
> In Netty 4.1.26 a new OpenSslX509KeyManagerFactory for easier configuration 
> was introduced. https://github.com/netty/netty/pull/8084 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

-
To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org
For additional commands, e-mail: dev-h...@qpid.apache.org



[GitHub] qpid-dispatch pull request #363: Dispatch 1103

2018-08-14 Thread ganeshmurthy
GitHub user ganeshmurthy opened a pull request:

https://github.com/apache/qpid-dispatch/pull/363

Dispatch 1103



You can merge this pull request into a Git repository by running:

$ git pull https://github.com/ganeshmurthy/qpid-dispatch DISPATCH-1103

Alternatively you can review and apply these changes as the patch at:

https://github.com/apache/qpid-dispatch/pull/363.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

This closes #363


commit 98156cb32eb7a2d5e40f0a898adc662e83669523
Author: Ganesh Murthy 
Date:   2018-08-13T15:46:52Z

DISPATCH-1099 - Added core timer API

commit a6d1c8727704616bde4575d77e8b537420598151
Author: Ganesh Murthy 
Date:   2018-08-14T15:21:30Z

DISPATCH-1103 - Added code to retry failed auto links using the core timeer 
API




---

-
To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org
For additional commands, e-mail: dev-h...@qpid.apache.org



[jira] [Updated] (PROTON-1915) [Proton-J] Message codec encodes messageId values with types other than those permitted

2018-08-14 Thread Keith Wall (JIRA)


 [ 
https://issues.apache.org/jira/browse/PROTON-1915?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Keith Wall updated PROTON-1915:
---
Description: 
The message codec (message format 0) codec of Proton-J is prepared to send 
{{message-id}} (and {{correlation-id}}) values with types other than those 
permitted by sections 3.2.1.1 through 3.2.14 of the AMQP 1.0 specification.  
This means the library allows the caller to send illegally encoded AMQP 1.0 
annotated messages.

Here's a trace from the Proton-J example 
{{org.apache.qpid.proton.example.reactor.Send}} modified to set a message id 
{{message.setMessageId(256);}} on the transmitted message.

The {{q\x00\x00\x01\x00}} corresponds to the message id, with q (0x71) being 
the type code of the primitive type {{int}}.


{noformat}
[250421012:0] -> Open{ containerId='', hostname='localhost', 
maxFrameSize=4294967295, channelMax=65535, idleTimeOut=null, 
outgoingLocales=null, incomingLocales=null, offeredCapabilities=null, 
desiredCapabilities=null, properties=null}
[250421012:0] -> Begin{remoteChannel=null, nextOutgoingId=1, 
incomingWindow=2147483647, outgoingWindow=2147483647, handleMax=65535, 
offeredCapabilities=null, desiredCapabilities=null, properties=null}
[250421012:0] -> Attach{name='sender', handle=0, role=SENDER, 
sndSettleMode=MIXED, rcvSettleMode=FIRST, source=Source{address='mysource', 
durable=NONE, expiryPolicy=SESSION_END, timeout=0, dynamic=false, 
dynamicNodeProperties=null, distributionMode=null, filter=null, 
defaultOutcome=null, outcomes=null, capabilities=null}, 
target=Target{address='queue', durable=NONE, expiryPolicy=SESSION_END, 
timeout=0, dynamic=false, dynamicNodeProperties=null, capabilities=null}, 
unsettled=null, incompleteUnsettled=false, initialDeliveryCount=0, 
maxMessageSize=null, offeredCapabilities=null, desiredCapabilities=null, 
properties=null}
[250421012:0] <- Open{ containerId='14dd72ea-f2c1-44d6-bd04-8d5cb3fea97d', 
hostname='null', maxFrameSize=262144, channelMax=255, idleTimeOut=0, 
outgoingLocales=null, incomingLocales=null, 
offeredCapabilities=[ANONYMOUS-RELAY, SHARED-SUBS, 
sole-connection-for-container], desiredCapabilities=null, 
properties={product=unknown, version=7.1.0-SNAPSHOT, qpid.build=unknown, 
qpid.instance_name=Broker, qpid.virtualhost_properties_supported=true}}
[250421012:0] <- Begin{remoteChannel=0, nextOutgoingId=0, incomingWindow=8192, 
outgoingWindow=2048, handleMax=4294967295, offeredCapabilities=null, 
desiredCapabilities=null, properties=null}
[250421012:0] <- Attach{name='sender', handle=0, role=RECEIVER, 
sndSettleMode=MIXED, rcvSettleMode=FIRST, source=Source{address='mysource', 
durable=NONE, expiryPolicy=SESSION_END, timeout=0, dynamic=false, 
dynamicNodeProperties=null, distributionMode=null, filter=null, 
defaultOutcome=null, outcomes=null, capabilities=null}, 
target=Target{address='queue', durable=NONE, expiryPolicy=SESSION_END, 
timeout=0, dynamic=false, dynamicNodeProperties=null, 
capabilities=[REJECT_UNROUTABLE, DELAYED_DELIVERY]}, unsettled={}, 
incompleteUnsettled=false, initialDeliveryCount=null, 
maxMessageSize=10, offeredCapabilities=[REJECT_UNROUTABLE, 
DELAYED_DELIVERY], desiredCapabilities=null, properties={}}
[250421012:0] <- Flow{nextIncomingId=1, incomingWindow=8192, nextOutgoingId=0, 
outgoingWindow=2048, handle=0, deliveryCount=0, linkCredit=2, 
available=null, drain=false, echo=false, properties=null}
[250421012:0] -> Transfer{handle=0, deliveryId=0, deliveryTag=0, 
messageFormat=0, settled=true, more=false, rcvSettleMode=null, state=null, 
resume=false, aborted=false, batchable=false} (34) 
"\x00Ss\xd0\x00\x00\x00\x09\x00\x00\x00\x01q\x00\x00\x01\x00\x00Sw\xa1\x0cHello 
World!"
[250421012:0] -> Detach{handle=0, closed=true, error=null}
[250421012:0] -> End{error=null}
[250421012:0] -> Close{error=null}
[250421012:0] <- Detach{handle=0, closed=true, error=null}
[250421012:0] <- End{error=null}
[250421012:0] <- Close{error=null}
{noformat}


  was:
The message codec (message format 0) codec of Proton-J is prepared to send 
{{message-id}} (and {{correlation-id}}) values with types other than those 
permitted by sections 3.2.1.1 through 3.2.14 of the AMQP 1.0 specification.  
This means the library allows the caller to send illegally encoded AMQP 1.0 
annotated messages.

Here's a trace from the Proton-J example 
{{org.apache.qpid.proton.example.reactor.Send}} modified to set a message id 
{{message.setMessageId(256);}} on the transmitted message.

The {{q\x00\x00\x01\x00}} corresponds to the message id, with q (0x71) being 
the type code of the primate type {{int}}.


{noformat}
[250421012:0] -> Open{ containerId='', hostname='localhost', 
maxFrameSize=4294967295, channelMax=65535, idleTimeOut=null, 
outgoingLocales=null, incomingLocales=null, offeredCapabilities=null, 
desiredCapabilities=null, properties=null}
[250421012:0] -> Begin{remoteChannel=null, nextOutgoingId=1, 
incomingWindo

[jira] [Commented] (QPIDJMS-388) Unhandled RuntimeException in MessageListener#onMessage does not increment AMQP delivery count in AUTO_ACK

2018-08-14 Thread Robbie Gemmell (JIRA)


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

Robbie Gemmell commented on QPIDJMS-388:


Its not that interesting really, its probably becuase Spring uses a polling 
synchronous receive call with timeout under the covers (unless configured 
otherwise), and so is entirely different than a JMS MessageListener. For 
non-Spring uses, you could follow the JMS instruction that throwing exceptions 
from onMessage is a programming error and don't do it.

> Unhandled RuntimeException in MessageListener#onMessage does not increment 
> AMQP delivery count in AUTO_ACK
> --
>
> Key: QPIDJMS-388
> URL: https://issues.apache.org/jira/browse/QPIDJMS-388
> Project: Qpid JMS
>  Issue Type: Bug
>  Components: qpid-jms-client
>Affects Versions: 0.32.0
>Reporter: Johan Stenberg
>Priority: Minor
> Attachments: QpidJms388_RuntimeExectionInOnMessageTest.java
>
>
> The JMS spec states: "The result of a listener throwing a RuntimeException 
> depends on the session's acknowledgment mode. AUTO_ACKNOWLEDGE or 
> DUPS_OK_ACKNOWLEDGE: the message will be immediately redelivered. ... The 
> 'JMSRedelivered' message header field will be set, and the 
> 'JMSXDeliveryCount' message property incremented, for a message  redelivered 
> under these circumstances." 
> Currently qpid-jms however is not incrementing the deliveryCount or setting 
> the redelivered message header to true when a listener throws a 
> runtimeexception while in AUTO_ACK.
> This results in "jms.redeliveryPolicy.maxRedeliveries" being ignored and 
> endless redelivery attempts.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

-
To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org
For additional commands, e-mail: dev-h...@qpid.apache.org



[jira] [Updated] (PROTON-1915) [Proton-J] Message codec encodes messageId values with types other than those permitted

2018-08-14 Thread Keith Wall (JIRA)


 [ 
https://issues.apache.org/jira/browse/PROTON-1915?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Keith Wall updated PROTON-1915:
---
Description: 
The message codec (message format 0) codec of Proton-J is prepared to send 
{{message-id}} (and {{correlation-id}}) values with types other than those 
permitted by sections 3.2.1.1 through 3.2.14 of the AMQP 1.0 specification.  
This means the library allows the caller to send illegally encoded AMQP 1.0 
annotated messages.

Here's a trace from the Proton-J example 
{{org.apache.qpid.proton.example.reactor.Send}} modified to set a message id 
{{message.setMessageId(256);}} on the transmitted message.

The {{q\x00\x00\x01\x00}} corresponds to the message id, with q (0x71) being 
the type code of the primate type {{int}}.


{noformat}
[250421012:0] -> Open{ containerId='', hostname='localhost', 
maxFrameSize=4294967295, channelMax=65535, idleTimeOut=null, 
outgoingLocales=null, incomingLocales=null, offeredCapabilities=null, 
desiredCapabilities=null, properties=null}
[250421012:0] -> Begin{remoteChannel=null, nextOutgoingId=1, 
incomingWindow=2147483647, outgoingWindow=2147483647, handleMax=65535, 
offeredCapabilities=null, desiredCapabilities=null, properties=null}
[250421012:0] -> Attach{name='sender', handle=0, role=SENDER, 
sndSettleMode=MIXED, rcvSettleMode=FIRST, source=Source{address='mysource', 
durable=NONE, expiryPolicy=SESSION_END, timeout=0, dynamic=false, 
dynamicNodeProperties=null, distributionMode=null, filter=null, 
defaultOutcome=null, outcomes=null, capabilities=null}, 
target=Target{address='queue', durable=NONE, expiryPolicy=SESSION_END, 
timeout=0, dynamic=false, dynamicNodeProperties=null, capabilities=null}, 
unsettled=null, incompleteUnsettled=false, initialDeliveryCount=0, 
maxMessageSize=null, offeredCapabilities=null, desiredCapabilities=null, 
properties=null}
[250421012:0] <- Open{ containerId='14dd72ea-f2c1-44d6-bd04-8d5cb3fea97d', 
hostname='null', maxFrameSize=262144, channelMax=255, idleTimeOut=0, 
outgoingLocales=null, incomingLocales=null, 
offeredCapabilities=[ANONYMOUS-RELAY, SHARED-SUBS, 
sole-connection-for-container], desiredCapabilities=null, 
properties={product=unknown, version=7.1.0-SNAPSHOT, qpid.build=unknown, 
qpid.instance_name=Broker, qpid.virtualhost_properties_supported=true}}
[250421012:0] <- Begin{remoteChannel=0, nextOutgoingId=0, incomingWindow=8192, 
outgoingWindow=2048, handleMax=4294967295, offeredCapabilities=null, 
desiredCapabilities=null, properties=null}
[250421012:0] <- Attach{name='sender', handle=0, role=RECEIVER, 
sndSettleMode=MIXED, rcvSettleMode=FIRST, source=Source{address='mysource', 
durable=NONE, expiryPolicy=SESSION_END, timeout=0, dynamic=false, 
dynamicNodeProperties=null, distributionMode=null, filter=null, 
defaultOutcome=null, outcomes=null, capabilities=null}, 
target=Target{address='queue', durable=NONE, expiryPolicy=SESSION_END, 
timeout=0, dynamic=false, dynamicNodeProperties=null, 
capabilities=[REJECT_UNROUTABLE, DELAYED_DELIVERY]}, unsettled={}, 
incompleteUnsettled=false, initialDeliveryCount=null, 
maxMessageSize=10, offeredCapabilities=[REJECT_UNROUTABLE, 
DELAYED_DELIVERY], desiredCapabilities=null, properties={}}
[250421012:0] <- Flow{nextIncomingId=1, incomingWindow=8192, nextOutgoingId=0, 
outgoingWindow=2048, handle=0, deliveryCount=0, linkCredit=2, 
available=null, drain=false, echo=false, properties=null}
[250421012:0] -> Transfer{handle=0, deliveryId=0, deliveryTag=0, 
messageFormat=0, settled=true, more=false, rcvSettleMode=null, state=null, 
resume=false, aborted=false, batchable=false} (34) 
"\x00Ss\xd0\x00\x00\x00\x09\x00\x00\x00\x01q\x00\x00\x01\x00\x00Sw\xa1\x0cHello 
World!"
[250421012:0] -> Detach{handle=0, closed=true, error=null}
[250421012:0] -> End{error=null}
[250421012:0] -> Close{error=null}
[250421012:0] <- Detach{handle=0, closed=true, error=null}
[250421012:0] <- End{error=null}
[250421012:0] <- Close{error=null}
{noformat}


  was:
The message codec (message format 0) codec of Proton-J is prepared to send 
{{message-id}} (and {{correlation-id}}) values with types other than those 
permitted by sections 3.2.1.1 through 3.2.14 of the AMQP 1.0 specification.  
This means the library allows the caller to sent illegally encoded AMQP 1.0 
annotated messages.

Here's a trace from the Proton-J example 
{{org.apache.qpid.proton.example.reactor.Send}} modified to set a message id 
{{message.setMessageId(256);}} on the transmitted message.

The {{q\x00\x00\x01\x00}} corresponds to the message id, with q (0x71) being 
the type code of the primate type {{int}}.


{noformat}
[250421012:0] -> Open{ containerId='', hostname='localhost', 
maxFrameSize=4294967295, channelMax=65535, idleTimeOut=null, 
outgoingLocales=null, incomingLocales=null, offeredCapabilities=null, 
desiredCapabilities=null, properties=null}
[250421012:0] -> Begin{remoteChannel=null, nextOutgoingId=1, 
incomingWindow=

[jira] [Updated] (PROTON-1915) [Proton-J] Message codec encodes messageId values with types other than those permitted

2018-08-14 Thread Keith Wall (JIRA)


 [ 
https://issues.apache.org/jira/browse/PROTON-1915?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Keith Wall updated PROTON-1915:
---
Description: 
The message codec (message format 0) codec of Proton-J is prepared to send 
{{message-id}} (and {{correlation-id}}) values with types other than those 
permitted by sections 3.2.1.1 through 3.2.14 of the AMQP 1.0 specification.  
This means the library allows the caller to sent illegally encoded AMQP 1.0 
annotated messages.

Here's a trace from the Proton-J example 
{{org.apache.qpid.proton.example.reactor.Send}} modified to set a message id 
{{message.setMessageId(256);}} on the transmitted message.

The {{q\x00\x00\x01\x00}} corresponds to the message id, with q (0x71) being 
the type code of the primate type {{int}}.


{noformat}
[250421012:0] -> Open{ containerId='', hostname='localhost', 
maxFrameSize=4294967295, channelMax=65535, idleTimeOut=null, 
outgoingLocales=null, incomingLocales=null, offeredCapabilities=null, 
desiredCapabilities=null, properties=null}
[250421012:0] -> Begin{remoteChannel=null, nextOutgoingId=1, 
incomingWindow=2147483647, outgoingWindow=2147483647, handleMax=65535, 
offeredCapabilities=null, desiredCapabilities=null, properties=null}
[250421012:0] -> Attach{name='sender', handle=0, role=SENDER, 
sndSettleMode=MIXED, rcvSettleMode=FIRST, source=Source{address='mysource', 
durable=NONE, expiryPolicy=SESSION_END, timeout=0, dynamic=false, 
dynamicNodeProperties=null, distributionMode=null, filter=null, 
defaultOutcome=null, outcomes=null, capabilities=null}, 
target=Target{address='queue', durable=NONE, expiryPolicy=SESSION_END, 
timeout=0, dynamic=false, dynamicNodeProperties=null, capabilities=null}, 
unsettled=null, incompleteUnsettled=false, initialDeliveryCount=0, 
maxMessageSize=null, offeredCapabilities=null, desiredCapabilities=null, 
properties=null}
[250421012:0] <- Open{ containerId='14dd72ea-f2c1-44d6-bd04-8d5cb3fea97d', 
hostname='null', maxFrameSize=262144, channelMax=255, idleTimeOut=0, 
outgoingLocales=null, incomingLocales=null, 
offeredCapabilities=[ANONYMOUS-RELAY, SHARED-SUBS, 
sole-connection-for-container], desiredCapabilities=null, 
properties={product=unknown, version=7.1.0-SNAPSHOT, qpid.build=unknown, 
qpid.instance_name=Broker, qpid.virtualhost_properties_supported=true}}
[250421012:0] <- Begin{remoteChannel=0, nextOutgoingId=0, incomingWindow=8192, 
outgoingWindow=2048, handleMax=4294967295, offeredCapabilities=null, 
desiredCapabilities=null, properties=null}
[250421012:0] <- Attach{name='sender', handle=0, role=RECEIVER, 
sndSettleMode=MIXED, rcvSettleMode=FIRST, source=Source{address='mysource', 
durable=NONE, expiryPolicy=SESSION_END, timeout=0, dynamic=false, 
dynamicNodeProperties=null, distributionMode=null, filter=null, 
defaultOutcome=null, outcomes=null, capabilities=null}, 
target=Target{address='queue', durable=NONE, expiryPolicy=SESSION_END, 
timeout=0, dynamic=false, dynamicNodeProperties=null, 
capabilities=[REJECT_UNROUTABLE, DELAYED_DELIVERY]}, unsettled={}, 
incompleteUnsettled=false, initialDeliveryCount=null, 
maxMessageSize=10, offeredCapabilities=[REJECT_UNROUTABLE, 
DELAYED_DELIVERY], desiredCapabilities=null, properties={}}
[250421012:0] <- Flow{nextIncomingId=1, incomingWindow=8192, nextOutgoingId=0, 
outgoingWindow=2048, handle=0, deliveryCount=0, linkCredit=2, 
available=null, drain=false, echo=false, properties=null}
[250421012:0] -> Transfer{handle=0, deliveryId=0, deliveryTag=0, 
messageFormat=0, settled=true, more=false, rcvSettleMode=null, state=null, 
resume=false, aborted=false, batchable=false} (34) 
"\x00Ss\xd0\x00\x00\x00\x09\x00\x00\x00\x01q\x00\x00\x01\x00\x00Sw\xa1\x0cHello 
World!"
[250421012:0] -> Detach{handle=0, closed=true, error=null}
[250421012:0] -> End{error=null}
[250421012:0] -> Close{error=null}
[250421012:0] <- Detach{handle=0, closed=true, error=null}
[250421012:0] <- End{error=null}
[250421012:0] <- Close{error=null}
{noformat}


  was:
The message codec (message format 0) codec of Proton-J is prepared to send 
{{message-id}} (and {{correlation-id}}) values with types other than those 
permitted by sections 3.2.1.1 through 3.2.14 of the AMQP 1.0 specification.

Here's a trace from the Proton-J example 
{{org.apache.qpid.proton.example.reactor.Send}} modified to set a message id {{ 
message.setMessageId(256);}} on the transmitted message.

The {{q\x00\x00\x01\x00}} corresponds to the message id, with q (0x71) being 
the type code of the primate type {{int}}.


{noformat}
[250421012:0] -> Open{ containerId='', hostname='localhost', 
maxFrameSize=4294967295, channelMax=65535, idleTimeOut=null, 
outgoingLocales=null, incomingLocales=null, offeredCapabilities=null, 
desiredCapabilities=null, properties=null}
[250421012:0] -> Begin{remoteChannel=null, nextOutgoingId=1, 
incomingWindow=2147483647, outgoingWindow=2147483647, handleMax=65535, 
offeredCapabilities=null, desiredCapabili

[jira] [Commented] (PROTON-1915) [Proton-J] Message codec encodes messageId values with types other than those permitted

2018-08-14 Thread Keith Wall (JIRA)


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

Keith Wall commented on PROTON-1915:


>From a brief look at Proton-C, I would say Proton-C is unaffected by this 
>issue.

> [Proton-J] Message codec encodes messageId values with types other than those 
> permitted
> ---
>
> Key: PROTON-1915
> URL: https://issues.apache.org/jira/browse/PROTON-1915
> Project: Qpid Proton
>  Issue Type: Bug
>  Components: proton-j
>Reporter: Keith Wall
>Priority: Major
>
> The message codec (message format 0) codec of Proton-J is prepared to send 
> {{message-id}} (and {{correlation-id}}) values with types other than those 
> permitted by sections 3.2.1.1 through 3.2.14 of the AMQP 1.0 specification.
> Here's a trace from the Proton-J example 
> {{org.apache.qpid.proton.example.reactor.Send}} modified to set a message id 
> {{ message.setMessageId(256);}} on the transmitted message.
> The {{q\x00\x00\x01\x00}} corresponds to the message id, with q (0x71) being 
> the type code of the primate type {{int}}.
> {noformat}
> [250421012:0] -> Open{ containerId='', hostname='localhost', 
> maxFrameSize=4294967295, channelMax=65535, idleTimeOut=null, 
> outgoingLocales=null, incomingLocales=null, offeredCapabilities=null, 
> desiredCapabilities=null, properties=null}
> [250421012:0] -> Begin{remoteChannel=null, nextOutgoingId=1, 
> incomingWindow=2147483647, outgoingWindow=2147483647, handleMax=65535, 
> offeredCapabilities=null, desiredCapabilities=null, properties=null}
> [250421012:0] -> Attach{name='sender', handle=0, role=SENDER, 
> sndSettleMode=MIXED, rcvSettleMode=FIRST, source=Source{address='mysource', 
> durable=NONE, expiryPolicy=SESSION_END, timeout=0, dynamic=false, 
> dynamicNodeProperties=null, distributionMode=null, filter=null, 
> defaultOutcome=null, outcomes=null, capabilities=null}, 
> target=Target{address='queue', durable=NONE, expiryPolicy=SESSION_END, 
> timeout=0, dynamic=false, dynamicNodeProperties=null, capabilities=null}, 
> unsettled=null, incompleteUnsettled=false, initialDeliveryCount=0, 
> maxMessageSize=null, offeredCapabilities=null, desiredCapabilities=null, 
> properties=null}
> [250421012:0] <- Open{ containerId='14dd72ea-f2c1-44d6-bd04-8d5cb3fea97d', 
> hostname='null', maxFrameSize=262144, channelMax=255, idleTimeOut=0, 
> outgoingLocales=null, incomingLocales=null, 
> offeredCapabilities=[ANONYMOUS-RELAY, SHARED-SUBS, 
> sole-connection-for-container], desiredCapabilities=null, 
> properties={product=unknown, version=7.1.0-SNAPSHOT, qpid.build=unknown, 
> qpid.instance_name=Broker, qpid.virtualhost_properties_supported=true}}
> [250421012:0] <- Begin{remoteChannel=0, nextOutgoingId=0, 
> incomingWindow=8192, outgoingWindow=2048, handleMax=4294967295, 
> offeredCapabilities=null, desiredCapabilities=null, properties=null}
> [250421012:0] <- Attach{name='sender', handle=0, role=RECEIVER, 
> sndSettleMode=MIXED, rcvSettleMode=FIRST, source=Source{address='mysource', 
> durable=NONE, expiryPolicy=SESSION_END, timeout=0, dynamic=false, 
> dynamicNodeProperties=null, distributionMode=null, filter=null, 
> defaultOutcome=null, outcomes=null, capabilities=null}, 
> target=Target{address='queue', durable=NONE, expiryPolicy=SESSION_END, 
> timeout=0, dynamic=false, dynamicNodeProperties=null, 
> capabilities=[REJECT_UNROUTABLE, DELAYED_DELIVERY]}, unsettled={}, 
> incompleteUnsettled=false, initialDeliveryCount=null, 
> maxMessageSize=10, offeredCapabilities=[REJECT_UNROUTABLE, 
> DELAYED_DELIVERY], desiredCapabilities=null, properties={}}
> [250421012:0] <- Flow{nextIncomingId=1, incomingWindow=8192, 
> nextOutgoingId=0, outgoingWindow=2048, handle=0, deliveryCount=0, 
> linkCredit=2, available=null, drain=false, echo=false, properties=null}
> [250421012:0] -> Transfer{handle=0, deliveryId=0, deliveryTag=0, 
> messageFormat=0, settled=true, more=false, rcvSettleMode=null, state=null, 
> resume=false, aborted=false, batchable=false} (34) 
> "\x00Ss\xd0\x00\x00\x00\x09\x00\x00\x00\x01q\x00\x00\x01\x00\x00Sw\xa1\x0cHello
>  World!"
> [250421012:0] -> Detach{handle=0, closed=true, error=null}
> [250421012:0] -> End{error=null}
> [250421012:0] -> Close{error=null}
> [250421012:0] <- Detach{handle=0, closed=true, error=null}
> [250421012:0] <- End{error=null}
> [250421012:0] <- Close{error=null}
> {noformat}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

-
To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org
For additional commands, e-mail: dev-h...@qpid.apache.org



[jira] [Updated] (PROTON-1915) [Proton-J] Message codec encodes messageId values with types other than those permitted

2018-08-14 Thread Keith Wall (JIRA)


 [ 
https://issues.apache.org/jira/browse/PROTON-1915?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Keith Wall updated PROTON-1915:
---
Summary: [Proton-J] Message codec encodes messageId values with types other 
than those permitted  (was: [Proton-J] Message codec encodes messageId values 
with types other than permitted)

> [Proton-J] Message codec encodes messageId values with types other than those 
> permitted
> ---
>
> Key: PROTON-1915
> URL: https://issues.apache.org/jira/browse/PROTON-1915
> Project: Qpid Proton
>  Issue Type: Bug
>  Components: proton-j
>Reporter: Keith Wall
>Priority: Major
>
> The message codec (message format 0) codec of Proton-J is prepared to send 
> {{message-id}} (and {{correlation-id}} values with types other than those 
> permitted by sections 3.2.1.1 through 3.2.14 of the AMQP 1.0 specification.
> Here's a trace from the Proton-J example 
> {{org.apache.qpid.proton.example.reactor.Send}} modified to set a message id 
> {{ message.setMessageId(256);}} on the transmitted message.
> The {{q\x00\x00\x01\x00}} corresponds to the message id, with q (0x71) being 
> the type code of the primate type {{int}}.
> {noformat}
> [250421012:0] -> Open{ containerId='', hostname='localhost', 
> maxFrameSize=4294967295, channelMax=65535, idleTimeOut=null, 
> outgoingLocales=null, incomingLocales=null, offeredCapabilities=null, 
> desiredCapabilities=null, properties=null}
> [250421012:0] -> Begin{remoteChannel=null, nextOutgoingId=1, 
> incomingWindow=2147483647, outgoingWindow=2147483647, handleMax=65535, 
> offeredCapabilities=null, desiredCapabilities=null, properties=null}
> [250421012:0] -> Attach{name='sender', handle=0, role=SENDER, 
> sndSettleMode=MIXED, rcvSettleMode=FIRST, source=Source{address='mysource', 
> durable=NONE, expiryPolicy=SESSION_END, timeout=0, dynamic=false, 
> dynamicNodeProperties=null, distributionMode=null, filter=null, 
> defaultOutcome=null, outcomes=null, capabilities=null}, 
> target=Target{address='queue', durable=NONE, expiryPolicy=SESSION_END, 
> timeout=0, dynamic=false, dynamicNodeProperties=null, capabilities=null}, 
> unsettled=null, incompleteUnsettled=false, initialDeliveryCount=0, 
> maxMessageSize=null, offeredCapabilities=null, desiredCapabilities=null, 
> properties=null}
> [250421012:0] <- Open{ containerId='14dd72ea-f2c1-44d6-bd04-8d5cb3fea97d', 
> hostname='null', maxFrameSize=262144, channelMax=255, idleTimeOut=0, 
> outgoingLocales=null, incomingLocales=null, 
> offeredCapabilities=[ANONYMOUS-RELAY, SHARED-SUBS, 
> sole-connection-for-container], desiredCapabilities=null, 
> properties={product=unknown, version=7.1.0-SNAPSHOT, qpid.build=unknown, 
> qpid.instance_name=Broker, qpid.virtualhost_properties_supported=true}}
> [250421012:0] <- Begin{remoteChannel=0, nextOutgoingId=0, 
> incomingWindow=8192, outgoingWindow=2048, handleMax=4294967295, 
> offeredCapabilities=null, desiredCapabilities=null, properties=null}
> [250421012:0] <- Attach{name='sender', handle=0, role=RECEIVER, 
> sndSettleMode=MIXED, rcvSettleMode=FIRST, source=Source{address='mysource', 
> durable=NONE, expiryPolicy=SESSION_END, timeout=0, dynamic=false, 
> dynamicNodeProperties=null, distributionMode=null, filter=null, 
> defaultOutcome=null, outcomes=null, capabilities=null}, 
> target=Target{address='queue', durable=NONE, expiryPolicy=SESSION_END, 
> timeout=0, dynamic=false, dynamicNodeProperties=null, 
> capabilities=[REJECT_UNROUTABLE, DELAYED_DELIVERY]}, unsettled={}, 
> incompleteUnsettled=false, initialDeliveryCount=null, 
> maxMessageSize=10, offeredCapabilities=[REJECT_UNROUTABLE, 
> DELAYED_DELIVERY], desiredCapabilities=null, properties={}}
> [250421012:0] <- Flow{nextIncomingId=1, incomingWindow=8192, 
> nextOutgoingId=0, outgoingWindow=2048, handle=0, deliveryCount=0, 
> linkCredit=2, available=null, drain=false, echo=false, properties=null}
> [250421012:0] -> Transfer{handle=0, deliveryId=0, deliveryTag=0, 
> messageFormat=0, settled=true, more=false, rcvSettleMode=null, state=null, 
> resume=false, aborted=false, batchable=false} (34) 
> "\x00Ss\xd0\x00\x00\x00\x09\x00\x00\x00\x01q\x00\x00\x01\x00\x00Sw\xa1\x0cHello
>  World!"
> [250421012:0] -> Detach{handle=0, closed=true, error=null}
> [250421012:0] -> End{error=null}
> [250421012:0] -> Close{error=null}
> [250421012:0] <- Detach{handle=0, closed=true, error=null}
> [250421012:0] <- End{error=null}
> [250421012:0] <- Close{error=null}
> {noformat}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

-
To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org
For additional commands, e-mail: dev-h...@qpid.apache.org



[jira] [Updated] (PROTON-1915) [Proton-J] Message codec encodes messageId values with types other than those permitted

2018-08-14 Thread Keith Wall (JIRA)


 [ 
https://issues.apache.org/jira/browse/PROTON-1915?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Keith Wall updated PROTON-1915:
---
Description: 
The message codec (message format 0) codec of Proton-J is prepared to send 
{{message-id}} (and {{correlation-id}}) values with types other than those 
permitted by sections 3.2.1.1 through 3.2.14 of the AMQP 1.0 specification.

Here's a trace from the Proton-J example 
{{org.apache.qpid.proton.example.reactor.Send}} modified to set a message id {{ 
message.setMessageId(256);}} on the transmitted message.

The {{q\x00\x00\x01\x00}} corresponds to the message id, with q (0x71) being 
the type code of the primate type {{int}}.


{noformat}
[250421012:0] -> Open{ containerId='', hostname='localhost', 
maxFrameSize=4294967295, channelMax=65535, idleTimeOut=null, 
outgoingLocales=null, incomingLocales=null, offeredCapabilities=null, 
desiredCapabilities=null, properties=null}
[250421012:0] -> Begin{remoteChannel=null, nextOutgoingId=1, 
incomingWindow=2147483647, outgoingWindow=2147483647, handleMax=65535, 
offeredCapabilities=null, desiredCapabilities=null, properties=null}
[250421012:0] -> Attach{name='sender', handle=0, role=SENDER, 
sndSettleMode=MIXED, rcvSettleMode=FIRST, source=Source{address='mysource', 
durable=NONE, expiryPolicy=SESSION_END, timeout=0, dynamic=false, 
dynamicNodeProperties=null, distributionMode=null, filter=null, 
defaultOutcome=null, outcomes=null, capabilities=null}, 
target=Target{address='queue', durable=NONE, expiryPolicy=SESSION_END, 
timeout=0, dynamic=false, dynamicNodeProperties=null, capabilities=null}, 
unsettled=null, incompleteUnsettled=false, initialDeliveryCount=0, 
maxMessageSize=null, offeredCapabilities=null, desiredCapabilities=null, 
properties=null}
[250421012:0] <- Open{ containerId='14dd72ea-f2c1-44d6-bd04-8d5cb3fea97d', 
hostname='null', maxFrameSize=262144, channelMax=255, idleTimeOut=0, 
outgoingLocales=null, incomingLocales=null, 
offeredCapabilities=[ANONYMOUS-RELAY, SHARED-SUBS, 
sole-connection-for-container], desiredCapabilities=null, 
properties={product=unknown, version=7.1.0-SNAPSHOT, qpid.build=unknown, 
qpid.instance_name=Broker, qpid.virtualhost_properties_supported=true}}
[250421012:0] <- Begin{remoteChannel=0, nextOutgoingId=0, incomingWindow=8192, 
outgoingWindow=2048, handleMax=4294967295, offeredCapabilities=null, 
desiredCapabilities=null, properties=null}
[250421012:0] <- Attach{name='sender', handle=0, role=RECEIVER, 
sndSettleMode=MIXED, rcvSettleMode=FIRST, source=Source{address='mysource', 
durable=NONE, expiryPolicy=SESSION_END, timeout=0, dynamic=false, 
dynamicNodeProperties=null, distributionMode=null, filter=null, 
defaultOutcome=null, outcomes=null, capabilities=null}, 
target=Target{address='queue', durable=NONE, expiryPolicy=SESSION_END, 
timeout=0, dynamic=false, dynamicNodeProperties=null, 
capabilities=[REJECT_UNROUTABLE, DELAYED_DELIVERY]}, unsettled={}, 
incompleteUnsettled=false, initialDeliveryCount=null, 
maxMessageSize=10, offeredCapabilities=[REJECT_UNROUTABLE, 
DELAYED_DELIVERY], desiredCapabilities=null, properties={}}
[250421012:0] <- Flow{nextIncomingId=1, incomingWindow=8192, nextOutgoingId=0, 
outgoingWindow=2048, handle=0, deliveryCount=0, linkCredit=2, 
available=null, drain=false, echo=false, properties=null}
[250421012:0] -> Transfer{handle=0, deliveryId=0, deliveryTag=0, 
messageFormat=0, settled=true, more=false, rcvSettleMode=null, state=null, 
resume=false, aborted=false, batchable=false} (34) 
"\x00Ss\xd0\x00\x00\x00\x09\x00\x00\x00\x01q\x00\x00\x01\x00\x00Sw\xa1\x0cHello 
World!"
[250421012:0] -> Detach{handle=0, closed=true, error=null}
[250421012:0] -> End{error=null}
[250421012:0] -> Close{error=null}
[250421012:0] <- Detach{handle=0, closed=true, error=null}
[250421012:0] <- End{error=null}
[250421012:0] <- Close{error=null}
{noformat}


  was:
The message codec (message format 0) codec of Proton-J is prepared to send 
{{message-id}} (and {{correlation-id}} values with types other than those 
permitted by sections 3.2.1.1 through 3.2.14 of the AMQP 1.0 specification.

Here's a trace from the Proton-J example 
{{org.apache.qpid.proton.example.reactor.Send}} modified to set a message id {{ 
message.setMessageId(256);}} on the transmitted message.

The {{q\x00\x00\x01\x00}} corresponds to the message id, with q (0x71) being 
the type code of the primate type {{int}}.


{noformat}
[250421012:0] -> Open{ containerId='', hostname='localhost', 
maxFrameSize=4294967295, channelMax=65535, idleTimeOut=null, 
outgoingLocales=null, incomingLocales=null, offeredCapabilities=null, 
desiredCapabilities=null, properties=null}
[250421012:0] -> Begin{remoteChannel=null, nextOutgoingId=1, 
incomingWindow=2147483647, outgoingWindow=2147483647, handleMax=65535, 
offeredCapabilities=null, desiredCapabilities=null, properties=null}
[250421012:0] -> Attach{name='sender', handle=0, role=SENDER, 
sndSettl

[jira] [Created] (PROTON-1915) [Proton-J] Message codec encodes messageId values with types other than permitted

2018-08-14 Thread Keith Wall (JIRA)
Keith Wall created PROTON-1915:
--

 Summary: [Proton-J] Message codec encodes messageId values with 
types other than permitted
 Key: PROTON-1915
 URL: https://issues.apache.org/jira/browse/PROTON-1915
 Project: Qpid Proton
  Issue Type: Bug
  Components: proton-j
Reporter: Keith Wall


The message codec (message format 0) codec of Proton-J is prepared to send 
{{message-id}} (and {{correlation-id}} values with types other than those 
permitted by sections 3.2.1.1 through 3.2.14 of the AMQP 1.0 specification.

Here's a trace from the Proton-J example 
{{org.apache.qpid.proton.example.reactor.Send}} modified to set a message id {{ 
message.setMessageId(256);}} on the transmitted message.

The {{q\x00\x00\x01\x00}} corresponds to the message id, with q (0x71) being 
the type code of the primate type {{int}}.


{noformat}
[250421012:0] -> Open{ containerId='', hostname='localhost', 
maxFrameSize=4294967295, channelMax=65535, idleTimeOut=null, 
outgoingLocales=null, incomingLocales=null, offeredCapabilities=null, 
desiredCapabilities=null, properties=null}
[250421012:0] -> Begin{remoteChannel=null, nextOutgoingId=1, 
incomingWindow=2147483647, outgoingWindow=2147483647, handleMax=65535, 
offeredCapabilities=null, desiredCapabilities=null, properties=null}
[250421012:0] -> Attach{name='sender', handle=0, role=SENDER, 
sndSettleMode=MIXED, rcvSettleMode=FIRST, source=Source{address='mysource', 
durable=NONE, expiryPolicy=SESSION_END, timeout=0, dynamic=false, 
dynamicNodeProperties=null, distributionMode=null, filter=null, 
defaultOutcome=null, outcomes=null, capabilities=null}, 
target=Target{address='queue', durable=NONE, expiryPolicy=SESSION_END, 
timeout=0, dynamic=false, dynamicNodeProperties=null, capabilities=null}, 
unsettled=null, incompleteUnsettled=false, initialDeliveryCount=0, 
maxMessageSize=null, offeredCapabilities=null, desiredCapabilities=null, 
properties=null}
[250421012:0] <- Open{ containerId='14dd72ea-f2c1-44d6-bd04-8d5cb3fea97d', 
hostname='null', maxFrameSize=262144, channelMax=255, idleTimeOut=0, 
outgoingLocales=null, incomingLocales=null, 
offeredCapabilities=[ANONYMOUS-RELAY, SHARED-SUBS, 
sole-connection-for-container], desiredCapabilities=null, 
properties={product=unknown, version=7.1.0-SNAPSHOT, qpid.build=unknown, 
qpid.instance_name=Broker, qpid.virtualhost_properties_supported=true}}
[250421012:0] <- Begin{remoteChannel=0, nextOutgoingId=0, incomingWindow=8192, 
outgoingWindow=2048, handleMax=4294967295, offeredCapabilities=null, 
desiredCapabilities=null, properties=null}
[250421012:0] <- Attach{name='sender', handle=0, role=RECEIVER, 
sndSettleMode=MIXED, rcvSettleMode=FIRST, source=Source{address='mysource', 
durable=NONE, expiryPolicy=SESSION_END, timeout=0, dynamic=false, 
dynamicNodeProperties=null, distributionMode=null, filter=null, 
defaultOutcome=null, outcomes=null, capabilities=null}, 
target=Target{address='queue', durable=NONE, expiryPolicy=SESSION_END, 
timeout=0, dynamic=false, dynamicNodeProperties=null, 
capabilities=[REJECT_UNROUTABLE, DELAYED_DELIVERY]}, unsettled={}, 
incompleteUnsettled=false, initialDeliveryCount=null, 
maxMessageSize=10, offeredCapabilities=[REJECT_UNROUTABLE, 
DELAYED_DELIVERY], desiredCapabilities=null, properties={}}
[250421012:0] <- Flow{nextIncomingId=1, incomingWindow=8192, nextOutgoingId=0, 
outgoingWindow=2048, handle=0, deliveryCount=0, linkCredit=2, 
available=null, drain=false, echo=false, properties=null}
[250421012:0] -> Transfer{handle=0, deliveryId=0, deliveryTag=0, 
messageFormat=0, settled=true, more=false, rcvSettleMode=null, state=null, 
resume=false, aborted=false, batchable=false} (34) 
"\x00Ss\xd0\x00\x00\x00\x09\x00\x00\x00\x01q\x00\x00\x01\x00\x00Sw\xa1\x0cHello 
World!"
[250421012:0] -> Detach{handle=0, closed=true, error=null}
[250421012:0] -> End{error=null}
[250421012:0] -> Close{error=null}
[250421012:0] <- Detach{handle=0, closed=true, error=null}
[250421012:0] <- End{error=null}
[250421012:0] <- Close{error=null}
{noformat}




--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

-
To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org
For additional commands, e-mail: dev-h...@qpid.apache.org