If injecting dependencies to a page fails in DefaultPageFactory.newPage, the exception message is a bit misleading:
"Can't instantiate page using constructor '...' and argument '...'. Might be it doesn't exist, may be it is not visible (public)."
It could also mention the possibility of failing to inject the dependencies, which seems to be the case in many occasions.
Even better, when calling the constructor fails, it could check the existence and visibility of the constructor instead of guessing what was the problem.
|Field||Original Value||New Value|
|Assignee||Martin Grigorov [ mgrigorov ]|
|Status||Open [ 1 ]||Resolved [ 5 ]|
|Fix Version/s||6.9.0 [ 12324357 ]|
|Fix Version/s||7.0.0 [ 12322958 ]|
|Resolution||Fixed [ 1 ]|
|Transition||Time In Source Status||Execution Times||Last Executer||Last Execution Date|
|6d 2h 39m||1||Martin Grigorov||10/Jun/13 11:40|