| Summary: | New properties file in config directory causes Virgo to throw an exception on startup in certain cases | ||
|---|---|---|---|
| Product: | [RT] Virgo | Reporter: | Kaloyan Dimitrov <admin> |
| Component: | unknown | Assignee: | Chris Frost <eclipse> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | eclipse, glyn.normington |
| Version: | 2.1.1.RELEASE | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | |||
|
Description
Kaloyan Dimitrov
Thanks for raising this bug. I'm a little puzzled that it is marked as critical as there appears to be an easy workaround - just don't put such a file in config. Please could you kindly change the importance to "normal" to reflect this. By the way, the config directory is really intended for Virgo configuration files (so you'd really only need it there if you have added your own bundle to the kernel). If you want to make a configuration available in the user region, it is more usual to place the corresponding properties file in pickup or deploy it as part of a plan or via the initialArtifacts property in the user region configuration file. If you try any of those techniques, it would be interesting to know whether similar problems occur. But at least I would expect the first two of those techniques to have no impact on Virgo startup if they fail. Thanks for explaining how to properly configure Virgo. I have put "Critical" because of the bug login form instructions. There it says "Critical: The software crashes, hangs, or causes you to lose data". Since the server does not start as result of this I tough that it is the right category. Thanks for dropping the importance to normal - the description of critical really should mention workarounds. Out of interest I tried this in the pickup dir. The server starts fine but gives a small stack trace when trying to start the configuration complaining that it has a duplicate property. This is correct. As for the configuration dir, yup, it properly breaks it. You do get some decent output at the end of the serviceability log warning about the duplicate property but it should be able to handle such things. Virgo is now more tolerant of problem properties in the configuration folder. It will now give an error and a single stack trace in the log along with some useful message and continue on. Before it was giving loads of stack traces and finally failing. Tests updated in Nano repo to cover the new code. |