at
org.apache.velocity.runtime.parser.node.ASTIndex.execute(ASTIndex.java:175)
at
org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:280)
at
org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:567)
at org.apache.velocity.runtime.parser.node.ASTEQNode.evaluate(ASTEQNode.java:84)
at
org.apache.velocity.runtime.parser.node.ASTExpression.evaluate(ASTExpression.java:62)
at
org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:85)
at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
at org.apache.velocity.runtime.directive.Foreach.render(Foreach.java:420)
at
org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:207)
at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:342)
at
org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:106)
at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:342)
at
org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:228)
... 108 more
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:597)
at
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:395)
at
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:384)
at org.apache.velocity.runtime.parser.node.ASTIndex.execute(ASTIndex.java:149)
... 121 more
Caused by: java.lang.IndexOutOfBoundsException: Index: 0
at java.util.Collections$EmptyList.get(Collections.java:2970)
... 128 more
-----Ursprüngliche Nachricht-----
Von: users-bounces(a)xwiki.org [mailto:users-bounces@xwiki.org] Im
Auftrag von Haimerl, Josef
Gesendet: Donnerstag, 13. September 2012 12:25
An: XWiki Users
Betreff: Re: [xwiki-users] PDFClass - PDFTemplate XAR import issue
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#HOve
r
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(XWikiHibernateSto
r
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:74
5) [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(Request
P
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(Appli
ca
tionFilterChain.java:343) [web-core.jar:3.1.1]
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFi
lt
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(Appli
ca
tionFilterChain.java:256) [web-core.jar:3.1.1]
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFi
lt
erChain.java:217) [web-core.jar:3.1.1]
at
org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFi
lt
er.java:144) [xwiki-platform-wysiwyg-server-3.5.1.jar:na]
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appli
ca
tionFilterChain.java:256) [web-core.jar:3.1.1]
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFi
lt
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(Appli
ca
tionFilterChain.java:256) [web-core.jar:3.1.1]
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFi
lt
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(Appli
ca
tionFilterChain.java:256) [web-core.jar:3.1.1]
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFi
lt
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(Appli
ca
tionFilterChain.java:256) [web-core.jar:3.1.1]
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFi
lt
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(StandardContextVa
l
v
e.java:175) [web-core.jar:3.1.1]
at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.ja
va
: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(PESessi
o
n
LockingStandardPipeline.java:91) [web-glue.jar:3.1.1]
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.ja
va
:162) [web-core.jar:3.1.1]
at
org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.ja
v
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(ContainerM
a
p
per.java:174) [kernel.jar:3.1.1]
at
com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:82
8)
[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(DefaultProtocolFilt
er
.java:225) [grizzly-http.jar:1.9.36]
at
com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProt
oc
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(ProtocolChainContextTa
sk
.java:54) [grizzly-framework.jar:1.9.36]
at
com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.j
av
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(AbstractThreadPo
o
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(XWikiHibern
a
t
eBaseStore.java:876) ~[xwiki-platform-legacy-oldcore-3.5.1.jar:na]
at
com.xpn.xwiki.store.XWikiHibernateBaseStore.endTransaction(XWikiHibern
a
t
eBaseStore.java:840) ~[xwiki-platform-legacy-oldcore-3.5.1.jar:na]
at
com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateSto
r
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
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________
users mailing list
users(a)xwiki.org