使用JetSpeed2进行二次开发时突然出现在保存Portlet配置信息时出现PSML页面文件数据丢失的情况,几经测试,最终发现是因为Portlet中的dom4j.jar与jetspeed应用中的dom4j包冲突导致的,删除Portlet应用中的dom4j.jar包后重启即可。

关键错误:

org.apache.jetspeed.page.PageNotFoundException: Could not unmarshal the file /home/deploy/zhbg/PortalServer/webapps/portal/../../pages/NPC/default-page.psml

Caused by: org.xml.sax.SAXParseException; Premature end of file.

详细错误:

[Fatal Error] :-1:-1: Premature end of file.
org.apache.jetspeed.page.PageNotFoundException: Could not unmarshal the file /home/deploy/zhbg/PortalServer/webapps/portal/../../pages/NPC/default-page.psml
at org.apache.jetspeed.page.document.psml.CastorFileSystemDocumentHandler.unmarshallDocument(CastorFileSystemDocumentHandler.java:576)
at org.apache.jetspeed.page.document.psml.CastorFileSystemDocumentHandler.getDocument(CastorFileSystemDocumentHandler.java:690)
at org.apache.jetspeed.page.document.psml.CastorFileSystemDocumentHandler.refresh(CastorFileSystemDocumentHandler.java:744)
at org.apache.jetspeed.cache.file.FileCache$1.notifyElementChanged(FileCache.java:209)
at org.apache.jetspeed.cache.impl.EhCacheImpl$1.notifyElementUpdated(EhCacheImpl.java:146)
at net.sf.ehcache.event.RegisteredEventListeners.notifyListener(RegisteredEventListeners.java:306)
at net.sf.ehcache.event.RegisteredEventListeners.invokeListener(RegisteredEventListeners.java:284)
at net.sf.ehcache.event.RegisteredEventListeners.internalNotifyElementUpdated(RegisteredEventListeners.java:180)
at net.sf.ehcache.event.RegisteredEventListeners.notifyElementUpdated(RegisteredEventListeners.java:158)
at net.sf.ehcache.Cache.notifyPutInternalListeners(Cache.java:1479)
at net.sf.ehcache.Cache.putInternal(Cache.java:1456)
at net.sf.ehcache.Cache.put(Cache.java:1383)
at net.sf.ehcache.Cache.put(Cache.java:1348)
at org.apache.jetspeed.cache.impl.EhCacheImpl.put(EhCacheImpl.java:74)
at org.apache.jetspeed.cache.file.FileCache$FileCacheScanner.run(FileCache.java:348)
Caused by: Premature end of file.
at org.exolab.castor.xml.Unmarshaller.convertSAXExceptionToMarshalException(Unmarshaller.java:775)
at org.exolab.castor.xml.Unmarshaller.unmarshal(Unmarshaller.java:672)
at org.apache.jetspeed.page.document.psml.CastorFileSystemDocumentHandler.unmarshallDocument(CastorFileSystemDocumentHandler.java:429)
... 14 more
Caused by: org.xml.sax.SAXParseException; Premature end of file.
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
at org.apache.jetspeed.page.document.psml.CastorFileSystemDocumentHandler$2.start(CastorFileSystemDocumentHandler.java:547)
at org.exolab.castor.xml.Unmarshaller.unmarshal(Unmarshaller.java:669)
... 15 more

最新文章

  1. setCapture、releasCapture 浅析
  2. CentOS7.1配置源
  3. 未能加载文件或程序集“Newtonsoft.Json, Version=4.5.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed”或它的某一个依赖项 解决方法
  4. excel2013添加坐标轴名称label
  5. Qt Quick实现的涂鸦程序
  6. hdu 5584 gcd/lcm/数学公式
  7. MediaScanner
  8. 解决html5 canvas 绘制字体、图片与图形模糊问题
  9. 如何用tomcat实现类似weblogic那样的热部署方式
  10. Oracle中备份用户对象的两种方法
  11. 利用BLKTRACE分析IO性能
  12. Java 中int、String的类型转换
  13. application/json和application/x-www-form-urlencoded使用选择
  14. docker gitlab安装
  15. ACM-尼姆博弈之取(m堆)石子游戏——hdu2176
  16. HDU 1710 Binary Tree Traversals(二叉树)
  17. 控制图片在latex中的位置
  18. C# 压缩组件介绍与入门
  19. Unity3D必备知识: 物理学公式
  20. win32多线程(三) 死锁

热门文章

  1. Nginx安装教程(Centos6.8)
  2. android:textAppearance
  3. 腾讯Hermes设计概要——数据分析用的是列存储,词典文件前缀压缩,倒排文件递增id、变长压缩、依然是跳表-本质是lucene啊
  4. CodeForces813E:Army Creation (主席树---上一题的加强版)
  5. configure: error: APR not found. Please read the documentation
  6. [Codeforces 877E] Danil and a Part-time Job
  7. socket服务器并发处理
  8. storyBoard学习教程一(页面跳转)
  9. 2、css的存在形式及优先级
  10. webstrom打开多个项目,webstrom常用快捷键