DO NOT REPLY [Bug 15846] New: - Phoenix 4.0.3 cannot use empty strings as configuration element values anymore
[email protected] 7 Jan 2003 16:22:19 -0000
| Newsgroups | gmane.comp.jakarta.avalon.apps.devel,gmane.comp.jakarta.avalon.phoenix.devel |
|---|---|
| Message-ID | <[email protected]> |
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15846>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15846
Phoenix 4.0.3 cannot use empty strings as configuration element values anymore
Summary: Phoenix 4.0.3 cannot use empty strings as configuration
element values anymore
Product: Avalon
Version: unspecified
Platform: All
URL: http://marc.theaimsgroup.com/?l=avalon-
users&m=104124194502554&w=2
OS/Version: All
Status: NEW
Severity: Normal
Priority: Other
Component: Phoenix
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
Add the following line to the configure-method of
org/apache/avalon/apps/demos/helloworldserver/HelloWorldServerImpl.java:
String test = configuration.getChild("test").getValue();
Plus add the following line to avalon-demo-config.xml in the section for
the HelloWorldServer:
<test></test>
Now build the SAR-file and start up. The following exception is thrown:
org.apache.avalon.framework.configuration.ConfigurationException: No value is
associated with the configuration element "test" at
file:/export/vol01/local/phoenix-4.0.3/apps/avalon-demo/SAR-INF/config.xml
This used to work in pre-4.0 Phoenix. It is fairly important in some scenarios
to have the empty string as configuration element value (for example when
several elements are concatenated). It would be possible to use getValue(""),
but the semantics are different - subtly so, but different.