-
Type:
Bug
-
Status: Resolved
-
Priority:
Major
-
Resolution: Done
-
Affects Version/s: 7.3.0.redhat-61
-
Fix Version/s: 1.2.0 Final
-
Component/s: None
-
Labels:None
-
Steps to Reproduce:
If I created a profile with a property that uses incorrect property resolver, for instance ${file:inputFile}, once I try to apply this profile to a newly created child container, it will cause the command line console completely unusable.
Before applying the faulty profile to the "child" container:
JBossFuse:karaf@root> container-list
|
[id] [version] [connected] [profiles] [provision status]
|
root* 1.0 true fabric, fabric-ensemble-0000-1, jboss-fuse-full success
|
child 1.0 true default success
|
After applying the profile to the "child" container:
JBossFuse:karaf@root> container-list
|
[id] [version] [connected] [profiles] [provision status]
|
root* 1.0 true fabric, fabric-ensemble-0000-1, jboss-fuse-full success
|
Error executing command: Missing Placeholder Resolvers: file
|
From hawtio, I can still browse the root container, but any operation on the "child" container will just hang.
It is not only limited to unsupported property resolver. If I use a supported property resolver but the property placeholder does not exist, for instance, ${container:test}, it will have the same effect as the unsupported property resolver ${file:xxx}. But I will get a slightly different error:
JBossFuse:karaf@root> container-list
|
[id] [version] [connected] [profiles] [provision status]
|
root* 1.0 true fabric, fabric-ensemble-0000-1, jboss-fuse-full success
|
Error executing command: java.lang.NullPointerException
|
We should be more fault tolerant for this type of user error rather than just let the fabric command line console to be completely unusable.