MessageImplde.decode(ByteBuffer)

2014-06-25 Thread Clebert Suconic


I have a case where I have a ByteBuffer (which could be a native buffer 
(ByteBuffer.allocateNative (whatever method name that is)), and using the 
decode (byte[] ) would make me duplicate the byte region.


Would be ok if someone merged this simple commit on qpid-proton-j? It's a very 
simple change... current code still works.


https://github.com/clebertsuconic/qpid-proton/commit/2515b60ee69cb4d7ee240ff54d311cb8cf763f59


You could make the method as part of the interface if you like.. but I would be 
happy on casting MessageImpl for now.

[jira] [Resolved] (PROTON-615) Cmake binding dependencies wrong (building python binding always; no dependency for include/proton/cproton.i)

2014-06-25 Thread Andrew Stitcher (JIRA)

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

Andrew Stitcher resolved PROTON-615.


   Resolution: Fixed
Fix Version/s: 0.8

> Cmake binding dependencies wrong (building python binding always; no 
> dependency for include/proton/cproton.i)
> -
>
> Key: PROTON-615
> URL: https://issues.apache.org/jira/browse/PROTON-615
> Project: Qpid Proton
>  Issue Type: Bug
>Affects Versions: 0.7
>Reporter: Andrew Stitcher
>Assignee: Andrew Stitcher
> Fix For: 0.8
>
>
> The CMake dependencies for the script language bindings are wrong in 2 ways:
> * The python binding always gets rebuilt, because the cmake swig module has 
> specific naming requirements for python.
> * The bindings do not have a dependency on the common included swig include 
> file so that when it changes they will not automatically get rebuilt.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (PROTON-615) Cmake binding dependencies wrong (building python binding always; no dependency for include/proton/cproton.i)

2014-06-25 Thread ASF subversion and git services (JIRA)

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

ASF subversion and git services commented on PROTON-615:


Commit 1605624 from [~astitcher] in branch 'proton/trunk'
[ https://svn.apache.org/r1605624 ]

PROTON-615: Fix binding dependencies

> Cmake binding dependencies wrong (building python binding always; no 
> dependency for include/proton/cproton.i)
> -
>
> Key: PROTON-615
> URL: https://issues.apache.org/jira/browse/PROTON-615
> Project: Qpid Proton
>  Issue Type: Bug
>Affects Versions: 0.7
>Reporter: Andrew Stitcher
>Assignee: Andrew Stitcher
>
> The CMake dependencies for the script language bindings are wrong in 2 ways:
> * The python binding always gets rebuilt, because the cmake swig module has 
> specific naming requirements for python.
> * The bindings do not have a dependency on the common included swig include 
> file so that when it changes they will not automatically get rebuilt.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Assigned] (PROTON-615) Cmake binding dependencies wrong (building python binding always; no dependency for include/proton/cproton.i)

2014-06-25 Thread Andrew Stitcher (JIRA)

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

Andrew Stitcher reassigned PROTON-615:
--

Assignee: Andrew Stitcher

> Cmake binding dependencies wrong (building python binding always; no 
> dependency for include/proton/cproton.i)
> -
>
> Key: PROTON-615
> URL: https://issues.apache.org/jira/browse/PROTON-615
> Project: Qpid Proton
>  Issue Type: Bug
>Affects Versions: 0.7
>Reporter: Andrew Stitcher
>Assignee: Andrew Stitcher
>
> The CMake dependencies for the script language bindings are wrong in 2 ways:
> * The python binding always gets rebuilt, because the cmake swig module has 
> specific naming requirements for python.
> * The bindings do not have a dependency on the common included swig include 
> file so that when it changes they will not automatically get rebuilt.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Created] (PROTON-615) Cmake binding dependencies wrong (building python binding always; no dependency for include/proton/cproton.i)

2014-06-25 Thread Andrew Stitcher (JIRA)
Andrew Stitcher created PROTON-615:
--

 Summary: Cmake binding dependencies wrong (building python binding 
always; no dependency for include/proton/cproton.i)
 Key: PROTON-615
 URL: https://issues.apache.org/jira/browse/PROTON-615
 Project: Qpid Proton
  Issue Type: Bug
Affects Versions: 0.7
Reporter: Andrew Stitcher


The CMake dependencies for the script language bindings are wrong in 2 ways:

* The python binding always gets rebuilt, because the cmake swig module has 
specific naming requirements for python.
* The bindings do not have a dependency on the common included swig include 
file so that when it changes they will not automatically get rebuilt.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Created] (PROTON-614) PHP Fatal error: Uncaught exception 'MessengerException' with message '[-5]: no valid sources'

2014-06-25 Thread Jose Berardo Cunha (JIRA)
Jose Berardo Cunha created PROTON-614:
-

 Summary: PHP Fatal error:  Uncaught exception 'MessengerException' 
with message '[-5]: no valid sources'
 Key: PROTON-614
 URL: https://issues.apache.org/jira/browse/PROTON-614
 Project: Qpid Proton
  Issue Type: Bug
  Components: php-binding
Affects Versions: 0.7
 Environment: Ubuntu Linux on Amazon EC2
Reporter: Jose Berardo Cunha
Priority: Minor


Sorry, but I don't know if it is really a bug or I'm doing something wrong. 
There is no documentation for Proton PHP, so here I am.

Every time I try to execute recv.php sample I get this error:

[0x16d2180]:ERROR[0] (null)

[0x16d2180]:ERROR[0] (null)

CONNECTION ERROR connection aborted (remote)
PHP Fatal error:  Uncaught exception 'MessengerException' with message '[-5]: 
no valid sources' in /usr/share/php/proton.php:61
Stack trace:
#0 /usr/share/php/proton.php(146): Messenger->_check(-5)
#1 /home/ubuntu/qpid-proton-0.7/tests/smoke/recv.php(20): Messenger->recv()
#2 {main}
  thrown in /usr/share/php/proton.php on line 61

I've tried all of this command lines:

$ php recv.php 
$ php recv.php "amqp://0.0.0.0"
$ php recv.php "amqp://127.0.0.1"
$ php recv.php "amqp://localhost"
$ php recv.php "amqp://localhost:5672"
$ php recv.php "amqp://localhost/myqueue"
$ php recv.php "amqp://localhost:5672/myqueue"

Where myqueue is my first queue created at Qpid 0.28 Web Console.

I'got the same Connection aborted on send.php but what is weird is when I run 
send.php against an ActiveMQ Apollo broker I have no error message and I can 
see for just one or two seconds one line referring my message sent to it at its 
web console. So I presumed that send.php is able to connect an amqp broker but 
I don't know why it doesn't connect to Qpid 0.28. 

Please, What am I doing wrong, what are valid sources and where can I find more 
documentation about the Proton PHP library?
Even the proton.php and cproton.php created by Swig have no comments.

Thank you.



--
This message was sent by Atlassian JIRA
(v6.2#6252)