When there are no decorator defaults in root folder, causes stack trace in
browser
----------------------------------------------------------------------------------
Key: JS2-942
URL: https://issues.apache.org/jira/browse/JS2-942
Project: Jetspeed 2
Issue Type: Bug
Components: Decorations/Themes
Affects Versions: 2.2-M1
Reporter: David Sean Taylor
Assignee: David Sean Taylor
Fix For: 2.2-M1
During testing and usage, I suddenly started getting errors like:
java.lang.NullPointerException
org.apache.jetspeed.util.Path.splitPath(Path.java:288)
org.apache.jetspeed.util.Path.<init>(Path.java:100)
org.apache.jetspeed.util.Path.addSegment(Path.java:339)
org.apache.jetspeed.decoration.DecorationFactoryImpl.getLayoutDecorationBasePath(DecorationFactoryImpl.java:469)
I discovered that the PSML root folder.metadata had no default decorators. I am
not sure if I somehow I deleted this XML element with the customizer (I don't
remember doing so), or if its a bug in the system. I have never seen this bug
in the 2.1.x branch, so I will keep an eye out for it happening again. This
work provided to fix this issue will:
* make the decorator factory defaults more robust, so that it can be configured
to fallback to a system-wide default if it fails to find defaults anywhere else
(like in the desktop)
* configure a fatal exception handler in the Jetpeed Servlet so our end users
do not have to view a stack trace
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]