Error while deleting attachment

classic Classic list List threaded Threaded
10 messages Options
Reply | Threaded
Open this post in threaded view
|

Error while deleting attachment

Matthew Conway
I'm getting the following error while deleting attachments in an xwiki instance configured for UTF-8 and postgres.  Anyone have any ideas?

Matt

Error number 3233 in 3: Exception while deleting attachment emily_bib.jpg of document Main.Sandbox
Wrapped Exception: Error number 3231 in 3: Exception while loading attachment emily_bib.jpg of document Main.Sandbox
Wrapped Exception: Exception occurred inside setter of com.xpn.xwiki.doc.XWikiAttachmentArchive.archive
com.xpn.xwiki.XWikiException: Error number 3233 in 3: Exception while deleting attachment emily_bib.jpg of document Main.Sandbox
Wrapped Exception: Error number 3231 in 3: Exception while loading attachment emily_bib.jpg of document Main.Sandbox
Wrapped Exception: Exception occurred inside setter of com.xpn.xwiki.doc.XWikiAttachmentArchive.archive
        at com.xpn.xwiki.store.XWikiHibernateStore.deleteXWikiAttachment(XWikiHibernateStore.java:1762)
        at com.xpn.xwiki.store.XWikiHibernateStore.deleteXWikiAttachment(XWikiHibernateStore.java:1640)
        at com.xpn.xwiki.doc.XWikiDocument.deleteAttachment(XWikiDocument.java:1519)
        at com.xpn.xwiki.web.DeleteAttachmentAction.action(DeleteAttachmentAction.java:26)
        at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:123)
        at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
        at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
        at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
        at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:127)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
        at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
        at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
        at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
        at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
        at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
        at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
        at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
        at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
        at java.lang.Thread.run(Thread.java:552)


Wrapped Exception:

com.xpn.xwiki.XWikiException: Error number 3231 in 3: Exception while loading attachment emily_bib.jpg of document Main.Sandbox
Wrapped Exception: Exception occurred inside setter of com.xpn.xwiki.doc.XWikiAttachmentArchive.archive
        at com.xpn.xwiki.store.XWikiHibernateStore.loadAttachmentArchive(XWikiHibernateStore.java:1629)
        at com.xpn.xwiki.store.XWikiHibernateStore.deleteXWikiAttachment(XWikiHibernateStore.java:1741)
        at com.xpn.xwiki.store.XWikiHibernateStore.deleteXWikiAttachment(XWikiHibernateStore.java:1640)
        at com.xpn.xwiki.doc.XWikiDocument.deleteAttachment(XWikiDocument.java:1519)
        at com.xpn.xwiki.web.DeleteAttachmentAction.action(DeleteAttachmentAction.java:26)
        at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:123)
        at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
        at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
        at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
        at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:127)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
        at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
        at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
        at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
        at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
        at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
        at org.apache.catalina.core
Reply | Threaded
Open this post in threaded view
|

Re: Error while deleting attachment

Ludovic Dubost

I would say you need to upgrade the JRCS module (see the CharacterSets
page) and start with a clean DB (export/import which will get rid of the
versioned files)

Ludovic

Matthew Conway wrote:

> I'm getting the following error while deleting attachments in an xwiki
> instance configured for UTF-8 and postgres.  Anyone have any ideas?
>
> Matt
>
> Error number 3233 in 3: Exception while deleting attachment
> emily_bib.jpg of document Main.Sandbox
> Wrapped Exception: Error number 3231 in 3: Exception while loading
> attachment emily_bib.jpg of document Main.Sandbox
> Wrapped Exception: Exception occurred inside setter of
> com.xpn.xwiki.doc.XWikiAttachmentArchive.archive
> com.xpn.xwiki.XWikiException: Error number 3233 in 3: Exception while
> deleting attachment emily_bib.jpg of document Main.Sandbox
> Wrapped Exception: Error number 3231 in 3: Exception while loading
> attachment emily_bib.jpg of document Main.Sandbox
> Wrapped Exception: Exception occurred inside setter of
> com.xpn.xwiki.doc.XWikiAttachmentArchive.archive
>         at
> com.xpn.xwiki.store.XWikiHibernateStore.deleteXWikiAttachment(XWikiHibernateStore.java:1762)
>         at
> com.xpn.xwiki.store.XWikiHibernateStore.deleteXWikiAttachment(XWikiHibernateStore.java:1640)
>         at
> com.xpn.xwiki.doc.XWikiDocument.deleteAttachment(XWikiDocument.java:1519)
>         at com.xpn.xwiki.web.DeleteAttachmentAction.action
> <http://web.DeleteAttachmentAction.action>(DeleteAttachmentAction.java:26)
>         at com.xpn.xwiki.web.XWikiAction.execute
> <http://web.XWikiAction.execute>(XWikiAction.java:123)
>         at
> org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
>         at
> org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
>         at
> org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
>         at
> org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>         at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
>         at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>         at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter
> <http://web.SetCharacterEncodingFilter.doFilter>(SetCharacterEncodingFilter.java:127)
>         at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
>         at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>         at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
>         at
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
>         at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
>         at
> org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
>         at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
>         at
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
>         at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
>         at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
>         at
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
>         at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
>         at
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
>         at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
>         at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
>         at
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
>         at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
>         at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
>         at
> org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
>         at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
>         at
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
>         at
> org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
>         at
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
>         at java.lang.Thread.run(Thread.java:552)
>
>
> Wrapped Exception:
>
> com.xpn.xwiki.XWikiException: Error number 3231 in 3: Exception while
> loading attachment emily_bib.jpg of document Main.Sandbox
> Wrapped Exception: Exception occurred inside setter of
> com.xpn.xwiki.doc.XWikiAttachmentArchive.archive
>         at
> com.xpn.xwiki.store.XWikiHibernateStore.loadAttachmentArchive(XWikiHibernateStore.java:1629)
>         at
> com.xpn.xwiki.store.XWikiHibernateStore.deleteXWikiAttachment(XWikiHibernateStore.java:1741)
>         at
> com.xpn.xwiki.store.XWikiHibernateStore.deleteXWikiAttachment(XWikiHibernateStore.java:1640)
>         at
> com.xpn.xwiki.doc.XWikiDocument.deleteAttachment(XWikiDocument.java:1519)
>         at com.xpn.xwiki.web.DeleteAttachmentAction.action
> <http://web.DeleteAttachmentAction.action>(DeleteAttachmentAction.java:26)
>         at com.xpn.xwiki.web.XWikiAction.execute
> <http://web.XWikiAction.execute>(XWikiAction.java:123)
>         at
> org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
>         at
> org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
>         at
> org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
>         at
> org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>         at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
>         at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>         at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter
> <http://web.SetCharacterEncodingFilter.doFilter>(SetCharacterEncodingFilter.java:127)
>         at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
>         at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>         at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
>         at
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
>         at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
>         at
> org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
>         at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
>         at
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
>         at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
>         at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
>         at
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
>         at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
>         at
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
>         at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
>         at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
>         at
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
>         at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
>         at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
>         at
> org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
>         at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
>         at
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
>         at
> org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
>         at
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
>         at java.lang.Thread.run(Thread.java:552)
>
>
> Wrapped Exception:
>
> org.hibernate.PropertyAccessException: Exception occurred inside
> setter of com.xpn.xwiki.doc.XWikiAttachmentArchive.archive
>         at
> org.hibernate.property.BasicPropertyAccessor$BasicSetter.set(BasicPropertyAccessor.java:51)
>         at
> org.hibernate.tuple.AbstractTuplizer.setPropertyValues(AbstractTuplizer.java:207)
>         at
> org.hibernate.tuple.PojoTuplizer.setPropertyValues(PojoTuplizer.java:176)
>         at
> org.hibernate.persister.entity.BasicEntityPersister.setPropertyValues(BasicEntityPersister.java:2900)
>         at
> org.hibernate.engine.TwoPhaseLoad.initializeEntity(TwoPhaseLoad.java:113)
>         at
> org.hibernate.loader.Loader.initializeEntitiesAndCollections(Loader.java:510)
>         at org.hibernate.loader.Loader.doQuery(Loader.java:419)
>         at
> org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:210)
>         at org.hibernate.loader.Loader.loadEntity(Loader.java:1312)
>         at
> org.hibernate.loader.entity.EntityLoader.load(EntityLoader.java:116)
>         at
> org.hibernate.loader.entity.EntityLoader.load(EntityLoader.java:101)
>         at
> org.hibernate.persister.entity.BasicEntityPersister.load(BasicEntityPersister.java:2461)
>         at
> org.hibernate.event.def.DefaultLoadEventListener.loadFromDatasource(DefaultLoadEventListener.java:350)
>         at
> org.hibernate.event.def.DefaultLoadEventListener.doLoad(DefaultLoadEventListener.java:331)
>         at
> org.hibernate.event.def.DefaultLoadEventListener.load(DefaultLoadEventListener.java:113)
>         at
> org.hibernate.event.def.DefaultLoadEventListener.proxyOrLoad(DefaultLoadEventListener.java:167)
>         at
> org.hibernate.event.def.DefaultLoadEventListener.onLoad(DefaultLoadEventListener.java:79)
>         at org.hibernate.impl.SessionImpl.load(SessionImpl.java:588)
>         at
> com.xpn.xwiki.store.XWikiHibernateStore.loadAttachmentArchive(XWikiHibernateStore.java:1622)
>         at
> com.xpn.xwiki.store.XWikiHibernateStore.deleteXWikiAttachment(XWikiHibernateStore.java:1741)
>         at
> com.xpn.xwiki.store.XWikiHibernateStore.deleteXWikiAttachment(XWikiHibernateStore.java:1640)
>         at
> com.xpn.xwiki.doc.XWikiDocument.deleteAttachment(XWikiDocument.java:1519)
>         at com.xpn.xwiki.web.DeleteAttachmentAction.action
> <http://web.DeleteAttachmentAction.action>(DeleteAttachmentAction.java:26)
>         at com.xpn.xwiki.web.XWikiAction.execute
> <http://web.XWikiAction.execute>(XWikiAction.java:123)
>         at
> org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
>         at
> org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
>         at
> org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
>         at
> org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>         at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
>         at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>         at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter
> <http://web.SetCharacterEncodingFilter.doFilter>(SetCharacterEncodingFilter.java:127)
>         at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
>         at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>         at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
>         at
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
>         at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
>         at
> org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
>         at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
>         at
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
>         at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
>         at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
>         at
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
>         at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
>         at
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
>         at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
>         at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
>         at
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
>         at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
>         at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
>         at
> org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
>         at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
>         at
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
>         at
> org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
>         at
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
>         at java.lang.Thread.run(Thread.java:552)
> Caused by: java.lang.reflect.InvocationTargetException
>         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:324)
>         at
> org.hibernate.property.BasicPropertyAccessor$BasicSetter.set(BasicPropertyAccessor.java:40)
>         ... 56 more
> Caused by: org.apache.commons.jrcs.rcs.TokenMgrError: Lexical error at
> line 1, column 5.  Encountered: "\\" (92), after : ""
>         at
> org.apache.commons.jrcs.rcs.ArchiveParserTokenManager.getNextToken(ArchiveParserTokenManager.java:822)
>         at
> org.apache.commons.jrcs.rcs.ArchiveParser.jj_consume_token(ArchiveParser.java:558)
>         at
> org.apache.commons.jrcs.rcs.ArchiveParser.head(ArchiveParser.java:167)
>         at
> org.apache.commons.jrcs.rcs.ArchiveParser.admin(ArchiveParser.java:108)
>         at
> org.apache.commons.jrcs.rcs.ArchiveParser.archive(ArchiveParser.java:80)
>         at
> org.apache.commons.jrcs.rcs.ArchiveParser.load(ArchiveParser.java:55)
>         at org.apache.commons.jrcs.rcs.Archive.(Archive.java:229)
>         at
> com.xpn.xwiki.doc.XWikiAttachmentArchive.setArchive(XWikiAttachmentArchive.java:89)
>         ... 61 more
>
> ------------------------------------------------------------------------
>
>
> --
> You receive this message as a subscriber of the [hidden email] mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
>  

--
Ludovic Dubost
XPertNet: http://www.xpertnet.fr/
Blog: http://www.ludovic.org/blog/
XWiki: http://www.xwiki.com
Skype: ldubost AIM: nvludo Yahoo: ludovic




--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Error while deleting attachment

Matthew Conway

On Aug 31, 2005, at 7:32 PM, Ludovic Dubost wrote:


I would say you need to upgrade the JRCS module (see the CharacterSets page) and start with a clean DB (export/import which will get rid of the versioned files)

When you say upgrade JRCS, where should I get it from?  I'm experiencing this failure _after_ patching/compiling JRCS from its home page as I described on the CharacterSets Page.  If I'm supposed to be using a dfferent version, let me know.  I also started with a fresh DB from a psql conversion of the 0.9.1 sample db.  Note that if I change my db to mysql using utf-8 (change to hibernate.cfg.xml only), I don't have this problem.

Matt



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Error while deleting attachment

Matthew Conway

On Aug 31, 2005, at 9:09 PM, Matthew Conway wrote:
DB from a psql conversion of the 0.9.1 sample db.  Note that if I change my db to mysql using utf-8 (change to hibernate.cfg.xml only), I don't have this problem.

Actually, I take that back, I wasn't actually running mysql as utf8. =)

I restarted it with default_character_set=utf8, and now "show variables" says utf8 for character_*

I installed a fresh sample db 0.9.1 into a new xwiki db.

Now I get errors when hitting any page, e.g. Main/WebHome partially displays, and the console reports the exception trace below.

 I am using a modified JRCS.  However I noticed that on the wiki page,  http://www.xwiki.org/xwiki/bin/view/Dev/CharactersSets , JAVA_UNICODE_ESCAPE is set to false, but in the dev mailing list message, http://mail-archive.objectweb.org/xwiki-users/2005-05/msg00033.html , it is set to true.  I used false when rebuilding JRCS.

Could it be that I have to convert the sample db to utf8 before putting it in the mysql database?  IF so, how would I do this?

22:10:08,514  WARN http-8180-Processor23  RequestUtils:createActionForm:177 - No FormBeanConfig found under 'view'
org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getDocument' in  class com.xpn.xwiki.api.XWiki threw exception class com.xpn.xwiki.XWikiException : Error number 3202 in 3: Exception while reading document Main.LaunchOfXWiki
Wrapped Exception: Error number 3202 in 3: Exception while reading document XWiki.ArticleClass
Wrapped Exception: exception setting property value with CGLIB (set hibernate.cglib.use_reflection_optimizer=false for more info) setter of com.xpn.xwiki.doc.XWikiDocument.setArchive
at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:246)
at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:175)
at org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:327)
at org.apache.velocity.runtime.parser.node.ASTExpression.value(ASTExpression.java:51)
at org.apache.velocity.runtime.parser.node.ASTSetDirective.render(ASTSetDirective.java:95)
at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:55)
at org.apache.velocity.runtime.directive.Foreach.render(Foreach.java:166)
at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:114)
at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:230)
at org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:172)
at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:114)
at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:230)
at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:227)
at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:129)
at com.xpn.xwiki.render.XWikiVelocityRenderer.render(XWikiVelocityRenderer.java:91)
at com.xpn.xwiki.render.XWikiRenderingEngine.renderText(XWikiRenderingEngine.java:122)
at com.xpn.xwiki.XWiki.include(XWiki.java:1947)
at com.xpn.xwiki.api.XWiki.includeForm(XWiki.java:472)
at com.xpn.xwiki.api.XWiki.includeForm(XWiki.java:460)
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:324)
at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:267)
at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:197)
at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:175)
at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:220)
at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:230)
at org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:172)
at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:114)
at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:230)
at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:227)
at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:129)
at com.xpn.xwiki.render.XWikiVelocityRenderer.render(XWikiVelocityRenderer.java:91)
at com.xpn.xwiki.render.XWikiRenderingEngine.renderText(XWikiRenderingEngine.java:122)
at com.xpn.xwiki.render.XWikiRenderingEngine.renderText(XWikiRenderingEngine.java:93)
at com.xpn.xwiki.render.XWikiRenderingEngine.renderDocument(XWikiRenderingEngine.java:85)
at com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:222)
at com.xpn.xwiki.api.Document.getRenderedContent(Document.java:157)
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:324)
at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:267)
at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:197
Reply | Threaded
Open this post in threaded view
|

Re: Error while deleting attachment

Matthew Conway

On Aug 31, 2005, at 10:16 PM, Matthew Conway wrote:

Sorry to keep replying to myself, but I figured others might want to see how I resolved my issues =)

Could it be that I have to convert the sample db to utf8 before putting it in the mysql database?  IF so, how would I do this?

This was it!  Now I'm able to view pages like Main.WebHome on a UTF-8 mysql instance without any problems.  To convert from ISO8859-1 to UTF-8, I used the command:

iconv -f ISO-8859-1 -t UTF-8 xwiki-db-0.9.1.sql > xwiki-db-0.9.1-utf8.sql

on an OSX system, but it should work on any unix like system.

Now I'm getting another error when trying to add an attachment, any ideas?

Matt


22:26:44,060 ERROR http-8180-Processor24 http://localhost:8180/nexus/bin/view/Main/WebHome XWikiHibernateStore:updateSchema:193 - Schema update for wiki xwiki
22:27:18,394  WARN http-8180-Processor25  RequestUtils:createActionForm:177 - No FormBeanConfig found under 'view'
22:27:30,659  WARN http-8180-Processor21  RequestUtils:createActionForm:177 - No FormBeanConfig found under 'view'
22:27:34,061  WARN http-8180-Processor23  RequestUtils:createActionForm:177 - No FormBeanConfig found under 'attach'
22:27:34,444  WARN http-8180-Processor21  RequestUtils:createActionForm:177 - No FormBeanConfig found under 'attach'
22:27:44,736  WARN http-8180-Processor21  RequestUtils:createActionForm:177 - No FormBeanConfig found under 'upload'
java.lang.NullPointerException
at org.securityfilter.filter.SecurityFilter.getSaveableURL(SecurityFilter.java:349)
at org.securityfilter.filter.SecurityFilter.saveRequestInformation(SecurityFilter.java:324)
at org.securityfilter.authenticator.BasicAuthenticator.showLogin(BasicAuthenticator.java:147)
at com.xpn.xwiki.user.impl.xwiki.MyBasicAuthenticator.processLogin(MyBasicAuthenticator.java:53)
at com.xpn.xwiki.user.impl.xwiki.XWikiAuthServiceImpl.checkAuth(XWikiAuthServiceImpl.java:161)
at com.xpn.xwiki.XWiki.checkAuth(XWiki.java:1870)
at com.xpn.xwiki.user.impl.xwiki.XWikiRightServiceImpl.checkAccess(XWikiRightServiceImpl.java:127)
at com.xpn.xwiki.XWiki.checkAccess(XWiki.java:1875)
at com.xpn.xwiki.XWiki.prepareDocuments(XWiki.java:2446)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:115)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:127)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:552)
22:27:44,816  WARN http-8180-Processor21 http://localhost:8180/nexus/bin/upload/Main/Sandbox XWikiAction:execute:153 - Uncaught exception: Error number 0 in 11: Uncaught exception
Wrapped Exception: null
com.xpn.xwiki.XWikiException: Error number 0 in 11: Uncaught exception
Wrapped Exception: null
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:134)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:127)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.StandardContextValve.
Reply | Threaded
Open this post in threaded view
|

Re: Error while deleting attachment

Ludovic Dubost

Aren't you using a specific authentication system ?  This looks like a
problem in the authentication..
I heard about problems with attachments when using basic auth.

Ludovic

Matthew Conway wrote:

>
> On Aug 31, 2005, at 10:16 PM, Matthew Conway wrote:
>
> Sorry to keep replying to myself, but I figured others might want to
> see how I resolved my issues =)
>
>> Could it be that I have to convert the sample db to utf8 before
>> putting it in the mysql database?  IF so, how would I do this?
>
> This was it!  Now I'm able to view pages like Main.WebHome on a UTF-8
> mysql instance without any problems.  To convert from ISO8859-1 to
> UTF-8, I used the command:
>
> iconv -f ISO-8859-1 -t UTF-8 xwiki-db-0.9.1.sql > xwiki-db-0.9.1-utf8.sql
>
> on an OSX system, but it should work on any unix like system.
>
> Now I'm getting another error when trying to add an attachment, any ideas?
>
> Matt
>
>
> 22:26:44,060 ERROR http-8180-Processor24
> http://localhost:8180/nexus/bin/view/Main/WebHome 
> XWikiHibernateStore:updateSchema:193 - Schema update for wiki xwiki
> 22:27:18,394  WARN http-8180-Processor25  
> RequestUtils:createActionForm:177 - No FormBeanConfig found under 'view'
> 22:27:30,659  WARN http-8180-Processor21  
> RequestUtils:createActionForm:177 - No FormBeanConfig found under 'view'
> 22:27:34,061  WARN http-8180-Processor23  
> RequestUtils:createActionForm:177 - No FormBeanConfig found under 'attach'
> 22:27:34,444  WARN http-8180-Processor21  
> RequestUtils:createActionForm:177 - No FormBeanConfig found under 'attach'
> 22:27:44,736  WARN http-8180-Processor21  
> RequestUtils:createActionForm:177 - No FormBeanConfig found under 'upload'
> java.lang.NullPointerException
> at
> org.securityfilter.filter.SecurityFilter.getSaveableURL(SecurityFilter.java:349)
> at
> org.securityfilter.filter.SecurityFilter.saveRequestInformation(SecurityFilter.java:324)
> at
> org.securityfilter.authenticator.BasicAuthenticator.showLogin(BasicAuthenticator.java:147)
> at
> com.xpn.xwiki.user.impl.xwiki.MyBasicAuthenticator.processLogin(MyBasicAuthenticator.java:53)
> at
> com.xpn.xwiki.user.impl.xwiki.XWikiAuthServiceImpl.checkAuth(XWikiAuthServiceImpl.java:161)
> at com.xpn.xwiki.XWiki.checkAuth(XWiki.java:1870)
> at
> com.xpn.xwiki.user.impl.xwiki.XWikiRightServiceImpl.checkAccess(XWikiRightServiceImpl.java:127)
> at com.xpn.xwiki.XWiki.checkAccess(XWiki.java:1875)
> at com.xpn.xwiki.XWiki.prepareDocuments(XWiki.java:2446)
> at com.xpn.xwiki.web.XWikiAction.execute
> <http://web.XWikiAction.execute>(XWikiAction.java:115)
> at
> org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
> at
> org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
> at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
> at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
> at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter
> <http://web.SetCharacterEncodingFilter.doFilter>(SetCharacterEncodingFilter.java:127)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
> at
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
> at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
> at
> org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
> at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
> at
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
> at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
> at
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
> at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
> at
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
> at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
> at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> at
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
> at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
> at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
> at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
> at
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
> at
> org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
> at
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
> at java.lang.Thread.run(Thread.java:552)
> 22:27:44,816  WARN http-8180-Processor21
> http://localhost:8180/nexus/bin/upload/Main/Sandbox 
> XWikiAction:execute:153 - Uncaught exception: Error number 0 in 11:
> Uncaught exception
> Wrapped Exception: null
> com.xpn.xwiki.XWikiException: Error number 0 in 11: Uncaught exception
> Wrapped Exception: null
> at com.xpn.xwiki.web.XWikiAction.execute
> <http://web.XWikiAction.execute>(XWikiAction.java:134)
> at
> org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
> at
> org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
> at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
> at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
> at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter
> <http://web.SetCharacterEncodingFilter.doFilter>(SetCharacterEncodingFilter.java:127)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
> at
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
> at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
> at
> org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
> at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
> at
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
> at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
> at
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
> at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
> at
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
> at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
> at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> at
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
> at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
> at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
> at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
> at
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
> at
> org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
> at
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
> at java.lang.Thread.run(Thread.java:552)
>
>
> Wrapped Exception:
>
>
> java.lang.NullPointerException
> at
> org.securityfilter.filter.SecurityFilter.getSaveableURL(SecurityFilter.java:349)
> at
> org.securityfilter.filter.SecurityFilter.saveRequestInformation(SecurityFilter.java:324)
> at
> com.xpn.xwiki.user.impl.xwiki.MyBasicAuthenticator.showLogin(MyBasicAuthenticator.java:139)
> at
> com.xpn.xwiki.user.impl.xwiki.MyBasicAuthenticator.showLogin(MyBasicAuthenticator.java:161)
> at
> com.xpn.xwiki.user.impl.xwiki.XWikiAuthServiceImpl.showLogin(XWikiAuthServiceImpl.java:184)
> at
> com.xpn.xwiki.user.impl.xwiki.XWikiRightServiceImpl.checkAccess(XWikiRightServiceImpl.java:182)
> at com.xpn.xwiki.XWiki.checkAccess(XWiki.java:1875)
> at com.xpn.xwiki.XWiki.prepareDocuments(XWiki.java:2446)
> at com.xpn.xwiki.web.XWikiAction.execute
> <http://web.XWikiAction.execute>(XWikiAction.java:115)
> at
> org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
> at
> org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
> at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
> at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
> at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter
> <http://web.SetCharacterEncodingFilter.doFilter>(SetCharacterEncodingFilter.java:127)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
> at
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
> at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
> at
> org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
> at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
> at
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
> at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
> at
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
> at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
> at
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
> at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
> at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> at
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
> at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
> at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
> at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
> at
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
> at
> org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
> at
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
> at java.lang.Thread.run(Thread.java:552)
>
> ------------------------------------------------------------------------
>
>
> --
> You receive this message as a subscriber of the [hidden email] mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
>  

--
Ludovic Dubost
XPertNet: http://www.xpertnet.fr/
Blog: http://www.ludovic.org/blog/
XWiki: http://www.xwiki.com
Skype: ldubost AIM: nvludo Yahoo: ludovic




--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Error while deleting attachment

Matthew Conway

On Sep 1, 2005, at 3:13 AM, Ludovic Dubost wrote:


Aren't you using a specific authentication system ?  This looks like a problem in the authentication..
I heard about problems with attachments when using basic auth.

If I switch to form authentication, the problem goes away, so there is definitely something wrong with basic auth and attachments.
I'll see if I can debug it further unless someone else knows how to fix it.

Matt



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Error while deleting attachment

Matthew Conway

On Sep 1, 2005, at 11:30 AM, Matthew Conway wrote:


On Sep 1, 2005, at 3:13 AM, Ludovic Dubost wrote:


Aren't you using a specific authentication system ?  This looks like a problem in the authentication..
I heard about problems with attachments when using basic auth.

If I switch to form authentication, the problem goes away, so there is definitely something wrong with basic auth and attachments.
I'll see if I can debug it further unless someone else knows how to fix it.

Matt


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: [hidden email]
For general help: [hidden email]
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws


The reason this is happening is because on the multi-part POST, the http authorization header is not getting sent, and for some reason this causes a NPE in securityfilter.  I used ethereal to sniff the headers, and on all other requests to the xwiki server, the authorization header is present, so I don't know what is special about multi-part posts that is causing the browser to not send the header?  I tried using both firefox and safari on OSX with the same effect.  I don't know enough about the http protocol to understand what is going on here, anyone care to explain it to me?  Thanks,

Matt



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Error while deleting attachment

Ludovic Dubost


This is annoying because it would mean that it's not a server problem..
It seems a little weird to me because I don't think it wasn't working
before I switched the default to form authentication.. Weird also that
it would happen on two different browser.. Couldn't that be a Mac only
problem ? Is there any differences in the URL transmitted ? Would you
have a dump of the request/responses headers ?

Ludovic

Matthew Conway wrote:

>
>
> The reason this is happening is because on the multi-part POST, the
> http authorization header is not getting sent, and for some reason
> this causes a NPE in securityfilter.  I used ethereal to sniff the
> headers, and on all other requests to the xwiki server, the
> authorization header is present, so I don't know what is special about
> multi-part posts that is causing the browser to not send the header?  
> I tried using both firefox and safari on OSX with the same effect.  I
> don't know enough about the http protocol to understand what is going
> on here, anyone care to explain it to me?  Thanks,
>
> Matt
>
> ------------------------------------------------------------------------
>
>
> --
> You receive this message as a subscriber of the [hidden email] mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
>  

--
Ludovic Dubost
XPertNet: http://www.xpertnet.fr/
Blog: http://www.ludovic.org/blog/
XWiki: http://www.xwiki.com
Skype: ldubost AIM: nvludo Yahoo: ludovic




--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Error while deleting attachment

Matthew Conway

On Sep 2, 2005, at 2:59 AM, Ludovic Dubost wrote:
>
> This is annoying because it would mean that it's not a server  
> problem.. It seems a little weird to me because I don't think it  
> wasn't working before I switched the default to form  
> authentication.. Weird also that it would happen on two different  
> browser.. Couldn't that be a Mac only problem ? Is there any  
> differences in the URL transmitted ? Would you have a dump of the  
> request/responses headers ?

I haven't tried it on any other platforms, so it _may_ be a mac only  
problem, though since it happens in firefox, that would be unlikely.  
Are you on another platform that you could try it too?  Of course, it  
could just be my lack of http protocol understanding and this is the  
correct behavior.  =)

I also tried using a bookmarklet to convert the POST to a GET for the  
same request that was failing, and in that case the header was  
present, though the server barfed for obvious reasons.  Don't have a  
dump handy, but I could do another run and save it if you want.  
Would you prefer a raw packet dump or just a copy/paste from firefox  
live headers plugin?

Matt





--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws