incubator-jspwiki-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Harry Metske <harry.met...@gmail.com>
Subject Re: double edit nok
Date Wed, 28 Apr 2010 19:47:21 GMT
when I try to save a page for the second time , I get various errors :

INFO: Initializing SessionManager...
Executing /jcr:root/pages/*/*
LOC = Node[jspwiki:/], check=
   MATCH
LOC = Node[jspwiki:/], check=pages
   MATCH
LOC = Node[jspwiki:/pages], check=null
LOC = Node[jspwiki:/pages/main], check=null
+ Root node
+ Select properties: *
  + PathQueryNode
    + LocationStepQueryNode:  NodeTest= Descendants=false Index=NONE
    + LocationStepQueryNode:  NodeTest=pages Descendants=false Index=NONE
    + LocationStepQueryNode:  NodeTest=* Descendants=false Index=NONE
    + LocationStepQueryNode:  NodeTest=* Descendants=false Index=NONE

---
java.io.StreamCorruptedException: invalid type code: AC
    at
java.io.ObjectInputStream$BlockDataInputStream.readBlockHeader(ObjectInputStream.java:2464)
    at
java.io.ObjectInputStream$BlockDataInputStream.available(ObjectInputStream.java:2611)
    at java.io.ObjectInputStream.available(ObjectInputStream.java:855)
    at
org.priha.providers.FileProvider$UUIDObjectStore.unserialize(FileProvider.java:1546)
    at
org.priha.providers.FileProvider$UUIDObjectStore.setObject(FileProvider.java:1480)
    at
org.priha.providers.FileProvider.saveUuidShortcut(FileProvider.java:735)
    at
org.priha.providers.FileProvider.putPropertyValue(FileProvider.java:622)
    at
org.priha.providers.EhCachingProvider.putPropertyValue(EhCachingProvider.java:428)
    at org.priha.core.ProviderManager.putProperty(ProviderManager.java:514)
    at org.priha.core.SessionProvider.save(SessionProvider.java:437)
    at org.priha.core.SessionImpl.saveNodes(SessionImpl.java:505)
    at org.priha.core.SessionImpl.save(SessionImpl.java:490)
    at
org.apache.wiki.content.ReferenceManager.getSafeNodeByUUID(ReferenceManager.java:1051)
    at
org.apache.wiki.content.ReferenceManager.getReferredBy(ReferenceManager.java:601)
    at
org.apache.wiki.plugin.ReferringPagesPlugin.execute(ReferringPagesPlugin.java:97)
    at org.apache.wiki.plugin.PluginManager.execute(PluginManager.java:382)
    at org.apache.wiki.tags.PluginTag.executePlugin(PluginTag.java:111)
    at org.apache.wiki.tags.PluginTag.doEndTag(PluginTag.java:127)
    at
org.apache.jsp.templates.default_.tabs.PageInfoTab_jsp._jspx_meth_wiki_005fPlugin_005f0(PageInfoTab_jsp.java:204)
    at
org.apache.jsp.templates.default_.tabs.PageInfoTab_jsp._jspService(PageInfoTab_jsp.java:133)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)
    at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at
net.sourceforge.stripes.controller.DynamicMappingFilter.doFilter(DynamicMappingFilter.java:352)
    at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)
    at
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:551)
    at
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:488)
    at
org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:968)
    at
org.apache.jsp.templates.default_.layout.EditorLayout_jsp._jspx_meth_wiki_005fTab_005f2(EditorLayout_jsp.java:353)
    at
org.apache.jsp.templates.default_.layout.EditorLayout_jsp._jspx_meth_wiki_005fTabbedSection_005f0(EditorLayout_jsp.java:185)
    at
org.apache.jsp.templates.default_.layout.EditorLayout_jsp._jspx_meth_s_005flayout_002ddefinition_005f0(EditorLayout_jsp.java:134)
    at
org.apache.jsp.templates.default_.layout.EditorLayout_jsp._jspService(EditorLayout_jsp.java:104)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)
    at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at
net.sourceforge.stripes.controller.DynamicMappingFilter.doFilter(DynamicMappingFilter.java:352)
    at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)
    at
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:551)
    at
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:488)
    at
org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:968)
    at
org.apache.jasper.runtime.PageContextImpl.doInclude(PageContextImpl.java:650)
    at
org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:644)
    at
net.sourceforge.stripes.tag.layout.LayoutRenderTag.doEndTag(LayoutRenderTag.java:119)
    at
org.apache.jsp.templates.default_.editors.plain_jsp._jspService(plain_jsp.java:607)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)
    at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at
net.sourceforge.stripes.controller.DynamicMappingFilter.doFilter(DynamicMappingFilter.java:352)
    at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)
    at
org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436)
    at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)
    at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)
    at
org.apache.wiki.ui.stripes.TemplateResolution.execute(TemplateResolution.java:53)
    at
net.sourceforge.stripes.controller.DispatcherHelper$7.intercept(DispatcherHelper.java:497)
    at
net.sourceforge.stripes.controller.ExecutionContext.proceed(ExecutionContext.java:176)
    at
net.sourceforge.stripes.controller.HttpCacheInterceptor.intercept(HttpCacheInterceptor.java:99)
    at
net.sourceforge.stripes.controller.ExecutionContext.proceed(ExecutionContext.java:173)
    at
net.sourceforge.stripes.controller.BeforeAfterMethodInterceptor.intercept(BeforeAfterMethodInterceptor.java:113)
    at
net.sourceforge.stripes.controller.ExecutionContext.proceed(ExecutionContext.java:173)
    at
net.sourceforge.stripes.controller.ExecutionContext.wrap(ExecutionContext.java:86)
    at
net.sourceforge.stripes.controller.DispatcherHelper.executeResolution(DispatcherHelper.java:491)
    at
net.sourceforge.stripes.controller.DispatcherServlet.executeResolution(DispatcherServlet.java:286)
    at
net.sourceforge.stripes.controller.DispatcherServlet.service(DispatcherServlet.java:170)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    at
net.sourceforge.stripes.controller.DynamicMappingFilter$2.doFilter(DynamicMappingFilter.java:374)
    at
net.sourceforge.stripes.controller.StripesFilter.doFilter(StripesFilter.java:247)
    at
net.sourceforge.stripes.controller.DynamicMappingFilter.doFilter(DynamicMappingFilter.java:361)
    at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at
net.sourceforge.stripes.controller.StripesFilter.doFilter(StripesFilter.java:247)
    at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
    at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
    at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
    at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
    at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852)
    at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
    at
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
    at java.lang.Thread.run(Thread.java:619)

or:


org.apache.wiki.providers.ProviderException: Save failed
    at org.apache.wiki.content.jcr.JCRWikiPage.save(JCRWikiPage.java:658)
    at
org.apache.wiki.content.ContentManager$SaveWikiPageTask.execute(ContentManager.java:1440)
    at
org.apache.wiki.workflow.Workflow.processCurrentStep(Workflow.java:766)
    at org.apache.wiki.workflow.Workflow.start(Workflow.java:681)
    at
org.apache.wiki.workflow.WorkflowManager.start(WorkflowManager.java:82)
    at org.apache.wiki.WikiEngine.saveText(WikiEngine.java:1756)
    at org.apache.wiki.action.EditActionBean.save(EditActionBean.java:473)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at
net.sourceforge.stripes.controller.DispatcherHelper$6.intercept(DispatcherHelper.java:456)
    at
net.sourceforge.stripes.controller.ExecutionContext.proceed(ExecutionContext.java:176)
    at
org.apache.wiki.ui.stripes.SpamInterceptor.intercept(SpamInterceptor.java:202)
    at
net.sourceforge.stripes.controller.ExecutionContext.proceed(ExecutionContext.java:173)
    at
net.sourceforge.stripes.controller.BeforeAfterMethodInterceptor.intercept(BeforeAfterMethodInterceptor.java:113)
    at
net.sourceforge.stripes.controller.ExecutionContext.proceed(ExecutionContext.java:173)
    at
net.sourceforge.stripes.controller.ExecutionContext.wrap(ExecutionContext.java:86)
    at
net.sourceforge.stripes.controller.DispatcherHelper.invokeEventHandler(DispatcherHelper.java:454)
    at
net.sourceforge.stripes.controller.DispatcherServlet.invokeEventHandler(DispatcherServlet.java:278)
    at
net.sourceforge.stripes.controller.DispatcherServlet.service(DispatcherServlet.java:160)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    at
net.sourceforge.stripes.controller.DynamicMappingFilter$2.doFilter(DynamicMappingFilter.java:374)
    at
net.sourceforge.stripes.controller.StripesFilter.doFilter(StripesFilter.java:247)
    at
net.sourceforge.stripes.controller.DynamicMappingFilter.doFilter(DynamicMappingFilter.java:361)
    at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at
net.sourceforge.stripes.controller.StripesFilter.doFilter(StripesFilter.java:247)
    at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
    at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
    at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
    at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
    at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852)
    at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
    at
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
    at java.lang.Thread.run(Thread.java:619)
Caused by: javax.jcr.ItemExistsException: Version already exists: 1. This is
a JSPWiki internal error, please report!
    at
org.apache.wiki.content.ContentManager.checkin(ContentManager.java:453)
    at org.apache.wiki.content.ContentManager.save(ContentManager.java:551)
    at org.apache.wiki.content.jcr.JCRWikiPage.save(JCRWikiPage.java:654)
    ... 39 more




2010/4/23 Dirk Frederickx <dirk.frederickx@gmail.com>

> Using the latest jspwki  3.0.0-svn-217 I'm not possible to edit a page
> twice.
> The second EDIT causes an illegalStateException thrown by Priha.
>
> Anybody a clue ?
>
>
> dirk
>
>
>
> 2010-04-23 13:25:13,256 [Timer-0] INFO
> org.apache.wiki.search.LuceneSearchProvider$LuceneUpdater  - Running
> Lucene Indexer.
> 2010-04-23 13:25:13,995 [http-8080-Processor21] INFO
> org.apache.wiki.action.EditActionBean  - Editing Slimbox. User=null,
> host=127.0.0.1
> 2010-04-23 13:25:13,995 [http-8080-Processor21] INFO
> org.apache.wiki.content.ContentManager$LockReaper  - Starting Lock
> Reaper.
> 2010-04-23 13:25:14,101 [http-8080-Processor21] INFO
> org.apache.wiki.content.inspect.ChangeRateInspector  - Spam filter
> initialized.  Temporary ban time 60 mins, max page changes/minute: 5
> 2010-04-23 13:25:21,045 [http-8080-Processor21] INFO
> org.apache.wiki.action.EditActionBean  - Saving page Slimbox.
> UserPrincipal=Sam Onze Poes, Author=Sam Onze Poes, Host=127.0.0.1
> 2010-04-23 13:25:27,605 [Timer-0] INFO
> org.apache.wiki.util.WatchDog$WatchDogThread  - Running WatchDog.
> 2010-04-23 13:25:28,257 [Timer-0] INFO
> org.apache.wiki.search.LuceneSearchProvider$LuceneUpdater  - Running
> Lucene Indexer.
> 2010-04-23 13:25:28,292 [http-8080-Processor23] INFO
> org.apache.wiki.action.EditActionBean  - Editing Slimbox. User=null,
> host=127.0.0.1
> 2010-04-23 13:25:28,317 [http-8080-Processor23] ERROR
> org.apache.wiki.tags.WikiTagBase  - Tag failed
> java.lang.IllegalStateException
>        at org.priha.core.values.ValueImpl.checkValue(ValueImpl.java:63)
>        at
> org.priha.core.values.StringValueImpl.getString(StringValueImpl.java:56)
>        at org.priha.core.PropertyImpl.getLength(PropertyImpl.java:119)
>        at org.priha.core.PropertyImpl.getLength(PropertyImpl.java:94)
>        at
> org.apache.wiki.content.jcr.JCRWikiPage.getSize(JCRWikiPage.java:376)
>        at
> org.apache.wiki.tags.PageSizeTag.doWikiStartTag(PageSizeTag.java:48)
>        at org.apache.wiki.tags.WikiTagBase.doStartTag(WikiTagBase.java:134)
>        at
> org.apache.jsp.templates.default_.tabs.PageInfoTab_jsp._jspx_meth_wiki_PageSize_0(PageInfoTab_jsp.java:1156)
>        at
> org.apache.jsp.templates.default_.tabs.PageInfoTab_jsp._jspx_meth_c_set_0(PageInfoTab_jsp.java:1130)
>        at
> org.apache.jsp.templates.default_.tabs.PageInfoTab_jsp._jspx_meth_c_forEach_0(PageInfoTab_jsp.java:964)
>        at
> org.apache.jsp.templates.default_.tabs.PageInfoTab_jsp._jspx_meth_c_if_1(PageInfoTab_jsp.java:817)
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message