I'm trying to get xwiki/utf-8/postgres working and ran into a couple
of snags.
I added some comments to http://www.xwiki.org/xwiki/bin/view/Dev/
CharactersSets
In there I mentioned that it should be safe to not set the content
length on the response as the http protocol (1.1 anyway) defaults to
using chunked encoding if there is no content length set. This way
you get the performance benefits of keepalive, without setting the
content length.
The code should probably be changed in the repository to remove this
line, or at the very least have a xwiki.cfg setting for it.
Comments?
Matt
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.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
(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)
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
On the very first login to my XWiki instance, I get strange behavior.
After submitting the login, in IE, I first load a stylesheet page in the
browser, but it is loaded as code (I am seeing the ASCII text)
For example, in IE, it spawns my XMLSpy program because that's what the
mime/type is registered to, I guess.
In Firefox, it loads the text in the browser.
If I click back on the browser, I am still on the login page, but I am
shown as being authenticated.
Do you think I have something configured wrong on TomCat such as a mime
type setting for example? Or do I have something messed up in the XWiki
configurations?
Following are example screenshots:
Screen 1 on IE
Screen 2 - on IE (launches my XMLSPy program and loads the following:
==================================
Cody Burleson
IBM, Business Consulting Services
On Demand Workplaces
"Simplifying access to content, applications, people and processes."
Current Client Office (Mon - Thur): (404) 828-4583
Home Office [Friday, Sat. Sun. or email a voice message]: (214) 233.3546
Cell [anytime]: (214) 537-8783
Email: cburleso(a)us.ibm.com
Hi,
I try to use XWiki as a CMS and communications platform for the
student-reps at my university. XWiki seems to be perfect! We would just
need one feature on top of it - a more sophisticated PDF export. We plan
to collect all kinds of Information on our platform and do a lot of
documentation - some of it also has to be available on paper. PDF
Templates would also be great!
Therefore I am also highliy interessted in aggregate PDF's with TOC (as
Stephen Schaub). Plus there should be a non-geek way to achieve such
PDF's. Perhaps like the "clippings"-feature on IHT.com where you mark
all the articles you are interessted in and they all appear in the
"clippings" dropdown right of the naviation bar.
So here is how I imagine it works (for the user):
1) Mark your articles
2) Go to the "PDF Generation" page
3) (Optionally) bring the articles into your favorite order and choose
the pdf template (Toc/No-Toc, 1 or 2 columns,...)
4) (Optionally) Save your selection for future use.
5) Click on generate
Although I am neither a Java nor XWiki pro I got some XSLT experience
and could help with the templates.
Please tell me what you think an if there is any chance an advanced pdf
generation will be introduced in the future. Or is there another
(external) way to achieve this?
Looking forward to reading your comments!
Thanks,
Sascha Oesterle.
I'd like to be able to use my own URLFactory in an xwiki instance, so
I thought the cleanest way to do this would be within an xwiki plugin
by calling context.setUrlFactory from within a plugin method early in
the request/response cycle. However, context.getURLFactory() seems
to get called before any of the plugin methods, so I can't do it this
way without a code modification.
Thus my options are to either add a new method to the plugin which
gets called early in the cycle (beginRequest(request,
context) ...? ), or make a modification to the xwiiki code base to
allow a URLFactory class to be chosen from xwiki.cfg.
I'm leaning towards the plugin interface modification, but before I
do this, I wanted to see if anyone has any suggestions.
Thanks,
Matt