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