[
https://issues.apache.org/jira/browse/QPID-7039?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15147235#comment-15147235
]
Keith Wall commented on QPID-7039:
----------------------------------
If the resource specified by {{qpid.initialConfigurationLocation}} does not
exist, I currently see a NPE. I think it should throw a clear error message
indicating the name of the resource that cannot be found.
{noformat}
java.lang.NullPointerException: null
at
org.apache.qpid.server.BrokerOptions.getInitialConfigurationLocation(BrokerOptions.java:220)
~[qpid-broker-core-6.1.0-SNAPSHOT.jar:6.1.0-SNAPSHOT]
at
org.apache.qpid.server.BrokerOptions.convertToSystemConfigAttributes(BrokerOptions.java:87)
~[qpid-broker-core-6.1.0-SNAPSHOT.jar:6.1.0-SNAPSHOT]
at org.apache.qpid.server.Broker.startupImpl(Broker.java:188)
[qpid-broker-core-6.1.0-SNAPSHOT.jar:6.1.0-SNAPSHOT]
at org.apache.qpid.server.Broker.access$000(Broker.java:58)
[qpid-broker-core-6.1.0-SNAPSHOT.jar:6.1.0-SNAPSHOT]
at org.apache.qpid.server.Broker$1.run(Broker.java:147)
~[qpid-broker-core-6.1.0-SNAPSHOT.jar:6.1.0-SNAPSHOT]
at java.security.AccessController.doPrivileged(Native Method)
[na:1.7.0_67]
at javax.security.auth.Subject.doAs(Subject.java:415)
[na:1.7.0_67]
at org.apache.qpid.server.Broker.startup(Broker.java:127)
[qpid-broker-core-6.1.0-SNAPSHOT.jar:6.1.0-SNAPSHOT]
at org.apache.qpid.server.Main.startBroker(Main.java:406)
[qpid-broker-6.1.0-SNAPSHOT.jar:6.1.0-SNAPSHOT]
at org.apache.qpid.server.Main.execute(Main.java:274)
[qpid-broker-6.1.0-SNAPSHOT.jar:6.1.0-SNAPSHOT]
at org.apache.qpid.server.Main.<init>(Main.java:124)
[qpid-broker-6.1.0-SNAPSHOT.jar:6.1.0-SNAPSHOT]
at org.apache.qpid.server.Main.main(Main.java:115)
[qpid-broker-6.1.0-SNAPSHOT.jar:6.1.0-SNAPSHOT]
{noformat}
> [Java Broker] Allow overriding of default initial configuration location via
> system property
> --------------------------------------------------------------------------------------------
>
> Key: QPID-7039
> URL: https://issues.apache.org/jira/browse/QPID-7039
> Project: Qpid
> Issue Type: Improvement
> Components: Java Broker
> Reporter: Alex Rudyy
> Fix For: qpid-java-6.0.1, qpid-java-6.1
>
> Attachments: override-default-initial-config.diff
>
>
> At the moment initial configuration location can be overridden only with
> command line argument (\-icp,\--initial-config-path). If command line
> argument for initial configuration path is not specified a default initial
> configuration (bundled with broker) is used. We need a way to override the
> default initial configuration path with system property in order to be able
> to configure brokers with different defaults. In future we are going to
> introduce profiles and provide a set of predefined default configurations as
> part of different profiles. The purpose of this JIRA is just to provide a
> tactical improvement in order to be able to override the default initial
> configuration location before profile work is done.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]