Also this error I came up with the track. The problem was that I was trying to import the file into a wiki running on MySql where xwiki.objects.LargeStringProperty has a length of about 65k, but the content in my textarea xhtml2xsl is over 170k. While importing the PDFTemplate I caused a lost reference in the DB, which destroyed the document's name for infinity. So I had to delete the lost reference in the db.
Have you any advice how I could configure my DB to not destroy something and get the PDFTemplate running?
> -----Ursprüngliche Nachricht-----
> Von: users-bounces(a)xwiki.org [mailto:users-bounces@xwiki.org] Im
> Auftrag von Haimerl, Josef
> Gesendet: Donnerstag, 13. September 2012 09:24
> An: users(a)xwiki.org
> Betreff: [xwiki-users] PDFClass - PDFTemplate
>
> For a custom PDF export I'm using a PDFTemplate based on the PDFClass as
> described here
> http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Configuration#HOver
> r
> idetheCSSrules
>
> I overwrote the xhtml2xsl transformation. Everything worked fine in the test
> environment, but when importing the xar with the relevant files into the
> productive system I got following exception:
>
> (I already got this exception, the problem was an invalid byte sequence
> which was easy to solve)
>
> (already tried to create the document manually -> same error)
>
>
>
> 2012-09-12 15:05:35,470 ERROR
> [http://localhost:8148/wiki/bin/import/XWiki/XWikiPreferences?section=Im
> port] c.x.x.p.p.Package [Package.java:767] Failed to save document
> Code.PDFTemplate
>
> com.xpn.xwiki.XWikiException: Error number 3201 in 3: Exception while
> saving document xwiki: Code.PDFTemplate
>
> Wrapped Exception: Failed to commit or rollback transaction. Root cause []
>
> at
> com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateStor
> e
> .java:693) ~[xwiki-platform-legacy-oldcore-3.5.1.jar:na]
>
> at
> com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:1
> 7
> 4) ~[xwiki-platform-legacy-oldcore-3.5.1.jar:na]
>
> at
> com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:1
> 6
> 7) ~[xwiki-platform-legacy-oldcore-3.5.1.jar:na]
>
> at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:1381)
> ~[xwiki-platform-legacy-oldcore-3.5.1.jar:na]
>
> at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:1337)
> ~[xwiki-platform-legacy-oldcore-3.5.1.jar:na]
>
> at
> com.xpn.xwiki.plugin.packaging.Package.installDocument(Package.java:745)
> [xwiki-platform-legacy-oldcore-3.5.1.jar:na]
>
> at
> com.xpn.xwiki.plugin.packaging.Package.install(Package.java:603)
> [xwiki-platform-legacy-oldcore-3.5.1.jar:na]
>
> at
> com.xpn.xwiki.plugin.packaging.PackageAPI.install(PackageAPI.java:316)
> [xwiki-platform-legacy-oldcore-3.5.1.jar:na]
>
> at
> com.xpn.xwiki.web.ImportAction.render(ImportAction.java:137)
> [xwiki-platform-legacy-oldcore-3.5.1.jar:na]
>
> at
> com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:231)
> [xwiki-platform-legacy-oldcore-3.5.1.jar:na]
>
> at
> com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:116)
> [xwiki-platform-legacy-oldcore-3.5.1.jar:na]
>
> at
> org.apache.struts.action.RequestProcessor.processActionPerform(RequestP
> r
> ocessor.java:431) [struts-1.2.9.jar:1.2.9]
>
> at
> org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:
> 236) [struts-1.2.9.jar:1.2.9]
>
> at
> org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
> [struts-1.2.9.jar:1.2.9]
>
> at
> org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
> [struts-1.2.9.jar:1.2.9]
>
> at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:754)
> [javax.servlet.jar:na]
>
> at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
> [javax.servlet.jar:na]
>
> at
> org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:15
> 39) [web-core.jar:3.1.1]
>
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
> tionFilterChain.java:343) [web-core.jar:3.1.1]
>
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
> erChain.java:217) [web-core.jar:3.1.1]
>
> at
> com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:128)
> [xwiki-platform-legacy-oldcore-3.5.1.jar:na]
>
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
> tionFilterChain.java:256) [web-core.jar:3.1.1]
>
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
> erChain.java:217) [web-core.jar:3.1.1]
>
> at
> org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilt
> er.java:144) [xwiki-platform-wysiwyg-server-3.5.1.jar:na]
>
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
> tionFilterChain.java:256) [web-core.jar:3.1.1]
>
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
> erChain.java:217) [web-core.jar:3.1.1]
>
> at
> com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:
> 68) [xwiki-platform-webdav-server-3.5.1.jar:na]
>
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
> tionFilterChain.java:256) [web-core.jar:3.1.1]
>
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
> erChain.java:217) [web-core.jar:3.1.1]
>
> at
> org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.
> doFilter(SavedRequestRestorerFilter.java:217)
> [xwiki-platform-container-servlet-3.5.1.jar:na]
>
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
> tionFilterChain.java:256) [web-core.jar:3.1.1]
>
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
> erChain.java:217) [web-core.jar:3.1.1]
>
> at
> org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.
> doFilter(SetCharacterEncodingFilter.java:109)
> [xwiki-platform-container-servlet-3.5.1.jar:na]
>
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
> tionFilterChain.java:256) [web-core.jar:3.1.1]
>
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
> erChain.java:217) [web-core.jar:3.1.1]
>
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
> alv
> e.java:279) [web-core.jar:3.1.1]
>
> at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextVal
> v
> e.java:175) [web-core.jar:3.1.1]
>
> at
> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java
> :655) [web-core.jar:3.1.1]
>
> at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5
> 95) [web-core.jar:3.1.1]
>
> at
> com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:98)
> [web-glue.jar:3.1.1]
>
> at
> com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessio
> n
> LockingStandardPipeline.java:91) [web-glue.jar:3.1.1]
>
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
> :162) [web-core.jar:3.1.1]
>
> at
> org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.jav
> a
> :330) [web-core.jar:3.1.1]
>
> at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:2
> 31) [web-core.jar:3.1.1]
>
> at
> com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMa
> p
> per.java:174) [kernel.jar:3.1.1]
>
> at
> com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:828)
> [grizzly-http.jar:1.9.36]
>
> at
> com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:725)
> [grizzly-http.jar:1.9.36]
>
> at
> com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1019)
> [grizzly-http.jar:1.9.36]
>
> at
> com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter
> .java:225) [grizzly-http.jar:1.9.36]
>
> at
> com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtoc
> olChain.java:137) [grizzly-framework.jar:1.9.36]
>
> at
> com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:1
> 04) [grizzly-framework.jar:1.9.36]
>
> at
> com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:9
> 0) [grizzly-framework.jar:1.9.36]
>
> at
> com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79
> ) [grizzly-http.jar:1.9.36]
>
> at
> com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask
> .java:54) [grizzly-framework.jar:1.9.36]
>
> at
> com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.jav
> a:59) [grizzly-framework.jar:1.9.36]
>
> at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
> [grizzly-framework.jar:1.9.36]
>
> at
> com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPoo
> l
> .java:532) [grizzly-utils.jar:1.9.36]
>
> at
> com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.ja
> va:513) [grizzly-utils.jar:1.9.36]
>
> at java.lang.Thread.run(Thread.java:619) [na:1.6.0_20]
>
> Caused by: org.hibernate.HibernateException: Failed to commit or rollback
> transaction. Root cause []
>
> at
> com.xpn.xwiki.store.XWikiHibernateBaseStore.endTransaction(XWikiHiberna
> t
> eBaseStore.java:876) ~[xwiki-platform-legacy-oldcore-3.5.1.jar:na]
>
> at
> com.xpn.xwiki.store.XWikiHibernateBaseStore.endTransaction(XWikiHiberna
> t
> eBaseStore.java:840) ~[xwiki-platform-legacy-oldcore-3.5.1.jar:na]
>
> at
> com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateStor
> e
> .java:683) ~[xwiki-platform-legacy-oldcore-3.5.1.jar:na]
>
> ... 58 common frames omitted
>
> Caused by: org.hibernate.StaleObjectStateException: Row was updated or
> deleted by another transaction (or unsaved-value mapping was incorrect):
> [com.xpn.xwiki.objects.LargeStringProperty#<?xml version="1.0"
> encoding="UTF-8"?>
>
>
>
> <xhtmlxsl><?xml version="1.0" encoding="UTF-8"?>
>
>
>
>
>
> Many thanks in advance! Regards,
>
>
>
> Josef
>
>
>
> _______________________________________________
> users mailing list
> users(a)xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
Obviously even if the other files of the xar import are going through, there is something wrong with all of them.
First the code of all imported files doesn't work, but when I put an enter somewhere in and save, they do.
Other files can't even be edited, the source is greyed out in xwiki editor. I deleted the file, created it and put the source-code with copy & paste manually in and it works.
What could be the reason for this?
I already checked for invalid bytes, persistent utf8 encoding, etc.
> -----Ursprüngliche Nachricht-----
> Von: users-bounces(a)xwiki.org [mailto:users-bounces@xwiki.org] Im
> Auftrag von Haimerl, Josef
> Gesendet: Donnerstag, 13. September 2012 09:24
> An: users(a)xwiki.org
> Betreff: [xwiki-users] PDFClass - PDFTemplate
>
> For a custom PDF export I'm using a PDFTemplate based on the PDFClass as
> described here
> http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Configuration#HOver
> r
> idetheCSSrules
>
> I overwrote the xhtml2xsl transformation. Everything worked fine in the test
> environment, but when importing the xar with the relevant files into the
> productive system I got following exception:
>
> (I already got this exception, the problem was an invalid byte sequence
> which was easy to solve)
>
> (already tried to create the document manually -> same error)
>
>
>
> 2012-09-12 15:05:35,470 ERROR
> [http://localhost:8148/wiki/bin/import/XWiki/XWikiPreferences?section=Im
> port] c.x.x.p.p.Package [Package.java:767] Failed to save document
> Code.PDFTemplate
>
> com.xpn.xwiki.XWikiException: Error number 3201 in 3: Exception while
> saving document xwiki: Code.PDFTemplate
>
> Wrapped Exception: Failed to commit or rollback transaction. Root cause []
>
> at
> com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateStor
> e
> .java:693) ~[xwiki-platform-legacy-oldcore-3.5.1.jar:na]
>
> at
> com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:1
> 7
> 4) ~[xwiki-platform-legacy-oldcore-3.5.1.jar:na]
>
> at
> com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:1
> 6
> 7) ~[xwiki-platform-legacy-oldcore-3.5.1.jar:na]
>
> at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:1381)
> ~[xwiki-platform-legacy-oldcore-3.5.1.jar:na]
>
> at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:1337)
> ~[xwiki-platform-legacy-oldcore-3.5.1.jar:na]
>
> at
> com.xpn.xwiki.plugin.packaging.Package.installDocument(Package.java:745)
> [xwiki-platform-legacy-oldcore-3.5.1.jar:na]
>
> at
> com.xpn.xwiki.plugin.packaging.Package.install(Package.java:603)
> [xwiki-platform-legacy-oldcore-3.5.1.jar:na]
>
> at
> com.xpn.xwiki.plugin.packaging.PackageAPI.install(PackageAPI.java:316)
> [xwiki-platform-legacy-oldcore-3.5.1.jar:na]
>
> at
> com.xpn.xwiki.web.ImportAction.render(ImportAction.java:137)
> [xwiki-platform-legacy-oldcore-3.5.1.jar:na]
>
> at
> com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:231)
> [xwiki-platform-legacy-oldcore-3.5.1.jar:na]
>
> at
> com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:116)
> [xwiki-platform-legacy-oldcore-3.5.1.jar:na]
>
> at
> org.apache.struts.action.RequestProcessor.processActionPerform(RequestP
> r
> ocessor.java:431) [struts-1.2.9.jar:1.2.9]
>
> at
> org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:
> 236) [struts-1.2.9.jar:1.2.9]
>
> at
> org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
> [struts-1.2.9.jar:1.2.9]
>
> at
> org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
> [struts-1.2.9.jar:1.2.9]
>
> at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:754)
> [javax.servlet.jar:na]
>
> at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
> [javax.servlet.jar:na]
>
> at
> org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:15
> 39) [web-core.jar:3.1.1]
>
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
> tionFilterChain.java:343) [web-core.jar:3.1.1]
>
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
> erChain.java:217) [web-core.jar:3.1.1]
>
> at
> com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:128)
> [xwiki-platform-legacy-oldcore-3.5.1.jar:na]
>
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
> tionFilterChain.java:256) [web-core.jar:3.1.1]
>
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
> erChain.java:217) [web-core.jar:3.1.1]
>
> at
> org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilt
> er.java:144) [xwiki-platform-wysiwyg-server-3.5.1.jar:na]
>
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
> tionFilterChain.java:256) [web-core.jar:3.1.1]
>
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
> erChain.java:217) [web-core.jar:3.1.1]
>
> at
> com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:
> 68) [xwiki-platform-webdav-server-3.5.1.jar:na]
>
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
> tionFilterChain.java:256) [web-core.jar:3.1.1]
>
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
> erChain.java:217) [web-core.jar:3.1.1]
>
> at
> org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.
> doFilter(SavedRequestRestorerFilter.java:217)
> [xwiki-platform-container-servlet-3.5.1.jar:na]
>
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
> tionFilterChain.java:256) [web-core.jar:3.1.1]
>
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
> erChain.java:217) [web-core.jar:3.1.1]
>
> at
> org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.
> doFilter(SetCharacterEncodingFilter.java:109)
> [xwiki-platform-container-servlet-3.5.1.jar:na]
>
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
> tionFilterChain.java:256) [web-core.jar:3.1.1]
>
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
> erChain.java:217) [web-core.jar:3.1.1]
>
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
> alv
> e.java:279) [web-core.jar:3.1.1]
>
> at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextVal
> v
> e.java:175) [web-core.jar:3.1.1]
>
> at
> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java
> :655) [web-core.jar:3.1.1]
>
> at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5
> 95) [web-core.jar:3.1.1]
>
> at
> com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:98)
> [web-glue.jar:3.1.1]
>
> at
> com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessio
> n
> LockingStandardPipeline.java:91) [web-glue.jar:3.1.1]
>
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
> :162) [web-core.jar:3.1.1]
>
> at
> org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.jav
> a
> :330) [web-core.jar:3.1.1]
>
> at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:2
> 31) [web-core.jar:3.1.1]
>
> at
> com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMa
> p
> per.java:174) [kernel.jar:3.1.1]
>
> at
> com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:828)
> [grizzly-http.jar:1.9.36]
>
> at
> com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:725)
> [grizzly-http.jar:1.9.36]
>
> at
> com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1019)
> [grizzly-http.jar:1.9.36]
>
> at
> com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter
> .java:225) [grizzly-http.jar:1.9.36]
>
> at
> com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtoc
> olChain.java:137) [grizzly-framework.jar:1.9.36]
>
> at
> com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:1
> 04) [grizzly-framework.jar:1.9.36]
>
> at
> com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:9
> 0) [grizzly-framework.jar:1.9.36]
>
> at
> com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79
> ) [grizzly-http.jar:1.9.36]
>
> at
> com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask
> .java:54) [grizzly-framework.jar:1.9.36]
>
> at
> com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.jav
> a:59) [grizzly-framework.jar:1.9.36]
>
> at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
> [grizzly-framework.jar:1.9.36]
>
> at
> com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPoo
> l
> .java:532) [grizzly-utils.jar:1.9.36]
>
> at
> com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.ja
> va:513) [grizzly-utils.jar:1.9.36]
>
> at java.lang.Thread.run(Thread.java:619) [na:1.6.0_20]
>
> Caused by: org.hibernate.HibernateException: Failed to commit or rollback
> transaction. Root cause []
>
> at
> com.xpn.xwiki.store.XWikiHibernateBaseStore.endTransaction(XWikiHiberna
> t
> eBaseStore.java:876) ~[xwiki-platform-legacy-oldcore-3.5.1.jar:na]
>
> at
> com.xpn.xwiki.store.XWikiHibernateBaseStore.endTransaction(XWikiHiberna
> t
> eBaseStore.java:840) ~[xwiki-platform-legacy-oldcore-3.5.1.jar:na]
>
> at
> com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateStor
> e
> .java:683) ~[xwiki-platform-legacy-oldcore-3.5.1.jar:na]
>
> ... 58 common frames omitted
>
> Caused by: org.hibernate.StaleObjectStateException: Row was updated or
> deleted by another transaction (or unsaved-value mapping was incorrect):
> [com.xpn.xwiki.objects.LargeStringProperty#<?xml version="1.0"
> encoding="UTF-8"?>
>
>
>
> <xhtmlxsl><?xml version="1.0" encoding="UTF-8"?>
>
>
>
>
>
> Many thanks in advance! Regards,
>
>
>
> Josef
>
>
>
> _______________________________________________
> users mailing list
> users(a)xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
For a custom PDF export I'm using a PDFTemplate based on the PDFClass as
described here
http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Configuration#HOverr
idetheCSSrules
I overwrote the xhtml2xsl transformation. Everything worked fine in the
test environment, but when importing the xar with the relevant files
into the productive system I got following exception:
(I already got this exception, the problem was an invalid byte sequence
which was easy to solve)
(already tried to create the document manually -> same error)
2012-09-12 15:05:35,470 ERROR
[http://localhost:8148/wiki/bin/import/XWiki/XWikiPreferences?section=Im
port] c.x.x.p.p.Package [Package.java:767] Failed to save document
Code.PDFTemplate
com.xpn.xwiki.XWikiException: Error number 3201 in 3: Exception while
saving document xwiki: Code.PDFTemplate
Wrapped Exception: Failed to commit or rollback transaction. Root cause
[]
at
com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateStore
.java:693) ~[xwiki-platform-legacy-oldcore-3.5.1.jar:na]
at
com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:17
4) ~[xwiki-platform-legacy-oldcore-3.5.1.jar:na]
at
com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:16
7) ~[xwiki-platform-legacy-oldcore-3.5.1.jar:na]
at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:1381)
~[xwiki-platform-legacy-oldcore-3.5.1.jar:na]
at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:1337)
~[xwiki-platform-legacy-oldcore-3.5.1.jar:na]
at
com.xpn.xwiki.plugin.packaging.Package.installDocument(Package.java:745)
[xwiki-platform-legacy-oldcore-3.5.1.jar:na]
at
com.xpn.xwiki.plugin.packaging.Package.install(Package.java:603)
[xwiki-platform-legacy-oldcore-3.5.1.jar:na]
at
com.xpn.xwiki.plugin.packaging.PackageAPI.install(PackageAPI.java:316)
[xwiki-platform-legacy-oldcore-3.5.1.jar:na]
at
com.xpn.xwiki.web.ImportAction.render(ImportAction.java:137)
[xwiki-platform-legacy-oldcore-3.5.1.jar:na]
at
com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:231)
[xwiki-platform-legacy-oldcore-3.5.1.jar:na]
at
com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:116)
[xwiki-platform-legacy-oldcore-3.5.1.jar:na]
at
org.apache.struts.action.RequestProcessor.processActionPerform(RequestPr
ocessor.java:431) [struts-1.2.9.jar:1.2.9]
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:
236) [struts-1.2.9.jar:1.2.9]
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
[struts-1.2.9.jar:1.2.9]
at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
[struts-1.2.9.jar:1.2.9]
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:754)
[javax.servlet.jar:na]
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
[javax.servlet.jar:na]
at
org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:15
39) [web-core.jar:3.1.1]
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:343) [web-core.jar:3.1.1]
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:217) [web-core.jar:3.1.1]
at
com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:128)
[xwiki-platform-legacy-oldcore-3.5.1.jar:na]
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:256) [web-core.jar:3.1.1]
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:217) [web-core.jar:3.1.1]
at
org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilt
er.java:144) [xwiki-platform-wysiwyg-server-3.5.1.jar:na]
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:256) [web-core.jar:3.1.1]
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:217) [web-core.jar:3.1.1]
at
com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:
68) [xwiki-platform-webdav-server-3.5.1.jar:na]
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:256) [web-core.jar:3.1.1]
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:217) [web-core.jar:3.1.1]
at
org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.
doFilter(SavedRequestRestorerFilter.java:217)
[xwiki-platform-container-servlet-3.5.1.jar:na]
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:256) [web-core.jar:3.1.1]
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:217) [web-core.jar:3.1.1]
at
org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.
doFilter(SetCharacterEncodingFilter.java:109)
[xwiki-platform-container-servlet-3.5.1.jar:na]
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:256) [web-core.jar:3.1.1]
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:217) [web-core.jar:3.1.1]
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:279) [web-core.jar:3.1.1]
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.java:175) [web-core.jar:3.1.1]
at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java
:655) [web-core.jar:3.1.1]
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5
95) [web-core.jar:3.1.1]
at
com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:98)
[web-glue.jar:3.1.1]
at
com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESession
LockingStandardPipeline.java:91) [web-glue.jar:3.1.1]
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:162) [web-core.jar:3.1.1]
at
org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java
:330) [web-core.jar:3.1.1]
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:2
31) [web-core.jar:3.1.1]
at
com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMap
per.java:174) [kernel.jar:3.1.1]
at
com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:828)
[grizzly-http.jar:1.9.36]
at
com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:725)
[grizzly-http.jar:1.9.36]
at
com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1019)
[grizzly-http.jar:1.9.36]
at
com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter
.java:225) [grizzly-http.jar:1.9.36]
at
com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtoc
olChain.java:137) [grizzly-framework.jar:1.9.36]
at
com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:1
04) [grizzly-framework.jar:1.9.36]
at
com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:9
0) [grizzly-framework.jar:1.9.36]
at
com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79
) [grizzly-http.jar:1.9.36]
at
com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask
.java:54) [grizzly-framework.jar:1.9.36]
at
com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.jav
a:59) [grizzly-framework.jar:1.9.36]
at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
[grizzly-framework.jar:1.9.36]
at
com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool
.java:532) [grizzly-utils.jar:1.9.36]
at
com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.ja
va:513) [grizzly-utils.jar:1.9.36]
at java.lang.Thread.run(Thread.java:619) [na:1.6.0_20]
Caused by: org.hibernate.HibernateException: Failed to commit or
rollback transaction. Root cause []
at
com.xpn.xwiki.store.XWikiHibernateBaseStore.endTransaction(XWikiHibernat
eBaseStore.java:876) ~[xwiki-platform-legacy-oldcore-3.5.1.jar:na]
at
com.xpn.xwiki.store.XWikiHibernateBaseStore.endTransaction(XWikiHibernat
eBaseStore.java:840) ~[xwiki-platform-legacy-oldcore-3.5.1.jar:na]
at
com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateStore
.java:683) ~[xwiki-platform-legacy-oldcore-3.5.1.jar:na]
... 58 common frames omitted
Caused by: org.hibernate.StaleObjectStateException: Row was updated or
deleted by another transaction (or unsaved-value mapping was incorrect):
[com.xpn.xwiki.objects.LargeStringProperty#<?xml version="1.0"
encoding="UTF-8"?>
<xhtmlxsl><?xml version="1.0" encoding="UTF-8"?>
Many thanks in advance! Regards,
Josef
Hello,
i'm using (% id="tableid" class="sortable filterable doOddEven
xwikidatatable")(% class="sortHeader" %) to create a dynamic sortable
table. Tried a lot with css modifications to set a fixed table-layout,
but i did not get that far.
In my despair also tried following code, but then the filter function
disappears.
(% id="tableid" class="sortable filterable doOddEven xwikidatatable" %)
(% class="sortHeader" style="width:100%"%)|= Column1|= Column2|=
Column3|= Column4|= Column5
{{html clean="false" wiki="true"}}<col style="width:114px"><col
style="width:114px"><col style="width:114px"><col
style="width:114px"><col style="width:114px"><col
style="width:28px">{{/html}}
Anybody any hints?
Many thanks in advance! Regards,
Josef Haimerl
I installed xwiki via devian-package. All is working, but I want to configure
xwiki as root webapp. I am not a specialist in this (configuring tomcat) ...
How I can do this especially in situation, when was used debian package
(with not standart path-s). For example, xwiki app didn't placed in
tomcat/webapps ...
I founded file \etc\xwiki\xwiki-tomcat.xml with this content:
<Context path="/xwiki" docBase="/usr/lib/xwiki"
debug="0" privileged="true" allowLinking="true" crossContext="true">
<Resources className="org.apache.naming.resources.FileDirContext"
allowLinking="true" />
</Context>
I tried to change path="/xwiki" with path="/" or path="/ROOT" - but no any
changes in a realty (of course after restarting tomcat) - xwiki opened with
path localhost://8080/xwiki ...
Maybe need another modifications?
--
Thanks beforehand
Eugen Colesnicov
--
View this message in context: http://xwiki.475771.n2.nabble.com/xwiki-as-root-webapp-tp7581242.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
Hi.
I installed tomcat7 and xwiki on a Ubuntu 12.04 following the
instructions from here: [1]. All is working great, but I noticed in
the catalina.out log a small warning:
WARNING: [SetContextPropertiesRule]{Context} Setting property 'debug'
to '0' did not find a matching property.
1. http://platform.xwiki.org/xwiki/bin/view/AdminGuide/InstallationViaAPT
I looked in /etc/tomcat7/Catalina/localhost/xwiki.xml and the
"<Context" definition contains the debug="0" atribute, which,
according to the tomcat7's (and tomcat6's for that matter)
documentation does not exist for this tag [2], [3].
2. http://tomcat.apache.org/tomcat-7.0-doc/config/context.html
3. http://tomcat.apache.org/tomcat-6.0-doc/config/context.html
After I removed debug="0" from the context definition, I didn't got
that warning anymore.
I think you should take this into consideration for the future update
of the packages.
Regards,
--
Fita Adrian
I have one e-learning tutorial for my application created through
articulate storyline. My question is is there any
way i can include the e-learning application with in wiki page? I did not
came across any kind of this utility.