Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.2-M1
-
None
Description
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