The container-id is required to be globally unique, so there isn't exactly a default, however if you don't supply one then the impl is supposed to generate one for you based on a UUID.
--Rafael On Mon, Feb 24, 2014 at 4:36 AM, Piotr Kliczewski < [email protected]> wrote: > Rafael, > > I pulled the latest from git.apache.org. The stack trace looks like > NPE is thrown during processing incoming message. > > I will check my python code whether a container uuid or name is set > and let you know (is there default id?). > > Thanks, > Piotr > > On Fri, Feb 21, 2014 at 8:07 PM, Rafael Schloming <[email protected]> > wrote: > > What version are you using? I recall seeing the same issue on trunk, > > however I thought I had fixed it and I didn't think it had made it into a > > release. (I could be wrong.) > > > > In any case you can probably work around the problem by supplying an > > explicit name when you construct the messenger, e.g. Messenger("foo"). > Note > > that the name you use is required to be unique, so using a host/port or > > something like that would be advisable. The implementation is supposed to > > internally default the container to a UUID if you don't supply anything, > > but I suspect the defaulting is broken on whatever version you are using. > > > > --Rafael > > > > > > On Fri, Feb 21, 2014 at 9:02 AM, Piotr Kliczewski < > > [email protected]> wrote: > > > >> Hello, > >> > >> I am sending message from java to python. Python code uses sasl > >> authentication. > >> > >> During processing response from python code I see following exception. > >> Can you tell me how to set the container-id in python? > >> > >> Piotr > >> > >> Exception in thread "main" > >> org.apache.qpid.proton.engine.TransportException: > >> org.apache.qpid.proton.codec.DecodeException: Unexpected null value - > >> mandatory field not set? (the container-id field is mandatory) > >> at > >> > org.apache.qpid.proton.engine.impl.FrameParser.input(FrameParser.java:432) > >> at > >> > org.apache.qpid.proton.engine.impl.FrameParser.process(FrameParser.java:502) > >> at > >> > org.apache.qpid.proton.engine.impl.ByteBufferUtils.pourAll(ByteBufferUtils.java:78) > >> at > >> > org.apache.qpid.proton.engine.impl.SaslImpl$SaslTransportWrapper.reallyProcessInput(SaslImpl.java:621) > >> at > >> > org.apache.qpid.proton.engine.impl.SaslImpl$SaslTransportWrapper.process(SaslImpl.java:588) > >> at > >> > org.apache.qpid.proton.engine.impl.TransportImpl.process(TransportImpl.java:1213) > >> at > >> > org.apache.qpid.proton.driver.impl.ConnectorImpl.read(ConnectorImpl.java:132) > >> at > >> > org.apache.qpid.proton.driver.impl.ConnectorImpl.process(ConnectorImpl.java:93) > >> at > >> > org.apache.qpid.proton.messenger.impl.MessengerImpl.processActive(MessengerImpl.java:695) > >> at > >> > org.apache.qpid.proton.messenger.impl.MessengerImpl.waitUntil(MessengerImpl.java:847) > >> at > >> > org.apache.qpid.proton.messenger.impl.MessengerImpl.waitUntil(MessengerImpl.java:796) > >> at > >> > org.apache.qpid.proton.messenger.impl.MessengerImpl.send(MessengerImpl.java:375) > >> at > >> > org.apache.qpid.proton.messenger.impl.MessengerImpl.send(MessengerImpl.java:352) > >> at > >> > org.ovirt.vdsm.jsonrpc.client.qpid.ProtonClient.<init>(ProtonClient.java:23) > >> at > >> > org.ovirt.vdsm.jsonrpc.client.qpid.ProtonClient.main(ProtonClient.java:28) > >> Caused by: org.apache.qpid.proton.codec.DecodeException: Unexpected > >> null value - mandatory field not set? (the container-id field is > >> mandatory) > >> at > >> > org.apache.qpid.proton.codec.DynamicTypeConstructor.readValue(DynamicTypeConstructor.java:43) > >> at > >> > org.apache.qpid.proton.codec.DecoderImpl.readObject(DecoderImpl.java:887) > >> at > >> > org.apache.qpid.proton.engine.impl.FrameParser.input(FrameParser.java:374) > >> ... 14 more > >> Caused by: java.lang.NullPointerException: the container-id field is > >> mandatory > >> at > org.apache.qpid.proton.amqp.transport.Open.setContainerId(Open.java:57) > >> at > >> > org.apache.qpid.proton.codec.transport.OpenType.newInstance(OpenType.java:202) > >> at > >> > org.apache.qpid.proton.codec.transport.OpenType.newInstance(OpenType.java:1) > >> at > >> > org.apache.qpid.proton.codec.DynamicTypeConstructor.readValue(DynamicTypeConstructor.java:39) > >> ... 16 more > >> > >> --------------------------------------------------------------------- > >> To unsubscribe, e-mail: [email protected] > >> For additional commands, e-mail: [email protected] > >> > >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >
