Gordon Sim wrote:
Kevin Smith wrote:
Gordon Sim wrote:
Kevin Smith wrote:
I'm trying to test my SSL changes so I can submit the finalized
patch. I'm getting NullPointerExceptions during connection setup and
I think it might have something to do with how I've got the broker
configured. Can someone point me at some resources about how to
configure the broker?
If you mean how to tell the broker which configuration file to use
then I believe you can specify the config file as a command line
option (--config or -c then the path). The default path is
$(QPID_HOME)/etc/config.xml.
Or is it the contents of the config file itself you are inquiring about?
Yeah, I was a little vague :-)
I'm looking for info on the contents of the config file. I figured out
how to specify a config file and all of that. I'm suspecting that my
actual config isn't quite right. Attached is the config I'm currently
using.
Sorry; misunderstood! I'm no expert on the config file format, so if its
an authoritative statement on config file structure you're after I'll
need to leave that to someone else.
However, I know the example in broker/etc works without error and it has:
<connector>
<ssl>false</ssl>
...
<sslport>8672</sslport>
...
</connector>
Assuming you have modified the code that reads that section as part of
your SSL work, the NPE is most likely from some part that isn't
specified in your file and is required but not checked. Whats the stack
trace you see? Probably easiest to figure it out from that.
Sorry for the delay - my day job has been a bit demanding of late.
Attached is the broker stack trace I get when a client just tries to connect to
the broker.
--Kevin
0 [main] DEBUG org.apache.commons.configuration.ConfigurationUtils -
Configuration loaded from the base path config.xml
main 2007-02-02 09:18:34,045 INFO [qpid.server.registry.ApplicationRegistry]
Initialising Application Registry:1
669 [main] INFO org.apache.qpid.server.registry.ApplicationRegistry -
Initialising Application Registry:1
main 2007-02-02 09:18:34,078 INFO
[qpid.server.management.JMXManagedObjectRegistry] Initialising managed object
registry using platform MBean server
702 [main] INFO org.apache.qpid.server.management.JMXManagedObjectRegistry -
Initialising managed object registry using platform MBean server
main 2007-02-02 09:18:34,186 INFO
[server.security.auth.SASLAuthenticationManager] Initialising SASL
authentication manager
810 [main] INFO org.apache.qpid.server.security.auth.SASLAuthenticationManager
- Initialising SASL authentication manager
main 2007-02-02 09:18:34,187 INFO [apache.qpid.server.Main] Starting Qpid.AMQP
broker
811 [main] INFO org.apache.qpid.server.Main - Starting Qpid.AMQP broker
961 [main] DEBUG org.apache.qpid.server.protocol.AMQPFastProtocolHandler -
AMQPFastProtocolHandler created
main 2007-02-02 09:18:34,353 INFO [apache.qpid.server.Main] Qpid.AMQP listening
on SSL port 8672
977 [main] INFO org.apache.qpid.server.Main - Qpid.AMQP listening on SSL port
8672
16691 [SocketAcceptorIoProcessor-0.0] DEBUG
org.apache.qpid.framing.AMQMethodBodyFactory - Creating content header body
factory
16694 [SocketAcceptorIoProcessor-0.0] DEBUG
org.apache.qpid.framing.AMQMethodBodyFactory - Creating content body factory
SocketAcceptorIoProcessor-0.0 2007-02-02 09:18:50,533 INFO
[qpid.server.protocol.AMQPFastProtocolHandler] Protocol session created
17157 [SocketAcceptorIoProcessor-0.0] INFO
org.apache.qpid.server.protocol.AMQPFastProtocolHandler - Protocol session
created
AnonymousIoService-1 2007-02-02 09:18:51,303 INFO
[qpid.server.protocol.AMQPFastProtocolHandler] Session opened
17927 [AnonymousIoService-1] INFO
org.apache.qpid.server.protocol.AMQPFastProtocolHandler - Session opened
18971 [AnonymousIoService-7] DEBUG org.apache.qpid.framing.AMQDataBlockEncoder
- Encoded frame byte-buffer is '0x0100000000000b000a003c00c80000000000ce'
AnonymousIoService-7 2007-02-02 09:18:52,352 ERROR
[qpid.server.protocol.AMQPFastProtocolHandler] Exception caught
inAMQProtocolSession(/127.0.0.1:51243), closing session explictly:
java.lang.NullPointerException
java.lang.NullPointerException
at
org.apache.qpid.server.protocol.AMQMinaProtocolSession.dataBlockReceived(AMQMinaProtocolSession.java:206)
at
org.apache.qpid.server.protocol.AMQPFastProtocolHandler.messageReceived(AMQPFastProtocolHandler.java:205)
at
org.apache.mina.common.support.AbstractIoFilterChain$2.messageReceived(AbstractIoFilterChain.java:189)
at
org.apache.mina.common.support.AbstractIoFilterChain.callNextMessageReceived(AbstractIoFilterChain.java:502)
at
org.apache.mina.common.support.AbstractIoFilterChain.access$1000(AbstractIoFilterChain.java:52)
at
org.apache.mina.common.support.AbstractIoFilterChain$EntryImpl$1.messageReceived(AbstractIoFilterChain.java:777)
at
org.apache.mina.filter.codec.support.SimpleProtocolDecoderOutput.flush(SimpleProtocolDecoderOutput.java:60)
at
org.apache.mina.filter.codec.ProtocolCodecFilter.messageReceived(ProtocolCodecFilter.java:185)
at
org.apache.mina.common.support.AbstractIoFilterChain.callNextMessageReceived(AbstractIoFilterChain.java:502)
at
org.apache.mina.common.support.AbstractIoFilterChain.access$1000(AbstractIoFilterChain.java:52)
at
org.apache.mina.common.support.AbstractIoFilterChain$EntryImpl$1.messageReceived(AbstractIoFilterChain.java:777)
at
org.apache.mina.filter.SSLFilter.handleAppDataRead(SSLFilter.java:626)
at org.apache.mina.filter.SSLFilter.handleSSLData(SSLFilter.java:604)
at org.apache.mina.filter.SSLFilter.messageReceived(SSLFilter.java:395)
at
org.apache.mina.common.support.AbstractIoFilterChain.callNextMessageReceived(AbstractIoFilterChain.java:502)
at
org.apache.mina.common.support.AbstractIoFilterChain.access$1000(AbstractIoFilterChain.java:52)
at
org.apache.mina.common.support.AbstractIoFilterChain$EntryImpl$1.messageReceived(AbstractIoFilterChain.java:777)
at
org.apache.mina.filter.executor.ExecutorFilter.processEvent(ExecutorFilter.java:243)
at
org.apache.mina.filter.executor.ExecutorFilter$ProcessEventsRunnable.run(ExecutorFilter.java:305)
at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:665)
at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:690)
at java.lang.Thread.run(Thread.java:595)