Followup to my own post below. We ended up doing the upgrade from
3.0.5 to 3.5.8 and can once again activate the page. However, I'm
noticing that none of our pages have any versions even after upgrading
and making changes. This makes me wonder if we're on our way to more
trouble. Does anyone know what I can do to get versions working?
Tom
On Jul 7, 2008, at 3:56 PM, Tom Duffey wrote:
We can't activate one of our pages. Magnolia complains "Can't
version: null." Here's the stacktrace:
ERROR info.magnolia.module.admininterface.commands.VersionCommand
VersionCommand.java(execute:62) 07.07.2008 15:45:44 can't version
java.lang.NullPointerException
at
org
.apache
.jackrabbit
.core
.version.VersionIteratorImpl.addVersion(VersionIteratorImpl.java:147)
at
org
.apache
.jackrabbit
.core.version.VersionIteratorImpl.<init>(VersionIteratorImpl.java:68)
at
org
.apache
.jackrabbit
.core
.version.VersionHistoryImpl.getAllVersions(VersionHistoryImpl.java:97)
at
info
.magnolia
.cms
.core
.version.VersionManager.setMaxVersionHistory(VersionManager.java:74)
at
info
.magnolia
.cms
.core
.version.BaseVersionManager.createVersion(BaseVersionManager.java:215)
at
info
.magnolia
.cms
.core.version.BaseVersionManager.addVersion(BaseVersionManager.java:
139)
at info.magnolia.cms.core.Content.addVersion(Content.java:1071)
at
info
.magnolia
.module
.admininterface.commands.VersionCommand.execute(VersionCommand.java:
57)
at
info
.magnolia
.commands.MgnlCommand.executePooledOrSynchronized(MgnlCommand.java:
141)
at info.magnolia.commands.MgnlCommand.execute(MgnlCommand.java:128)
at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:
190)
at
info
.magnolia
.cms
.servlets
.CommandBasedMVCServletHandler
.execute(CommandBasedMVCServletHandler.java:78)
at info.magnolia.cms.servlets.MVCServlet.doPost(MVCServlet.java:111).
I get something similarly nasty when I try to view versions for this
page:
ERROR info.magnolia.cms.gui.controlx.list.AbstractListModel
AbstractListModel.java(getListModelIterator:80) 07.07.2008 15:51:01
can't create the list model iterator, will return an empty list
java.lang.NullPointerException
at
org
.apache
.jackrabbit
.core
.version.VersionIteratorImpl.addVersion(VersionIteratorImpl.java:147)
at
org
.apache
.jackrabbit
.core.version.VersionIteratorImpl.<init>(VersionIteratorImpl.java:68)
at
org
.apache
.jackrabbit
.core
.version.VersionHistoryImpl.getAllVersions(VersionHistoryImpl.java:97)
at
info
.magnolia
.cms
.gui
.controlx.version.VersionListModel.getResult(VersionListModel.java:77)
at
info
.magnolia
.cms
.gui
.controlx
.list.AbstractListModel.getListModelIterator(AbstractListModel.java:
77)
at
info
.magnolia
.cms.gui.controlx.list.ListControl.getIterator(ListControl.java:95)
Typical solution for us has been to export/import the page but this
time it's the home page which means some significant downtime so I'm
wondering if anyone has any other ideas to try first?
Magnolia 3.0.5 + Jackrabbit 1.3.3 + BDB
Unless someone has a good idea I'm thinking I will just upgrade to
3.5.8 and see what happens.
Tom
----------------------------------------------------------------
for list details see
http://documentation.magnolia.info/
----------------------------------------------------------------