Article - CS404858
javax.xml.transform.Transformer API to convert xml to pdf is throwing error in Windchill PDMLink 12.1
Modified: 15-Nov-2023
Applies To
- Windchill PDMLink 12.1.2.2
Description
- javax.xml.transform.Transformer API to convert xml to pdf is throwing error at template generateURLHref on line 7 column 38 of linker.xsl:
- includes/linker.xsl:- Provides an XSLT template, generateURLHref, that is used by the provided HTML and XSL FO formats to produce hyperlinks to Windchill objects from XML result nodes that contain additional attribute information provided by the query layer when entire Windchill objects are selected. Object, version, e-mail, and content download links are currently supported.
- Following passed in the xsl file to generate links using includes/linker.xsl
<xsl:call-template name="generateURLHref"> <xsl:with-param name="sourceGateway" select="$sourceGateway" /> <xsl:with-param name="resultNode" select="current()/contextInfo" /> <xsl:with-param name="standardLink" select="false()" /> </xsl:call-template>
Following error in the logs
Error at char 49 in expression in xsl:variable/@select on line 12 column 89 of linker.xsl:
2023-10-30 11:09:07,555 INFO [RMI TCP Connection(28)-127.0.0.1] wt.system.err - XTDE1425 Cannot find a 2-argument function named
2023-10-30 11:09:07,555 INFO [RMI TCP Connection(28)-127.0.0.1] wt.system.err - Q{http://windchill-saxon-extension.com/url}genURL()
2023-10-30 11:09:07,555 INFO [RMI TCP Connection(28)-127.0.0.1] wt.system.err - at template generateURLHref on line 7 column 38 of linker.xsl:
2023-10-30 11:09:07,555 INFO [RMI TCP Connection(28)-127.0.0.1] wt.system.err - invoked by xsl:call-template at file:/D:/Windchill/codebase/templates/reports/xxxx.xsl#75
2023-10-30 11:09:07,555 INFO [RMI TCP Connection(28)-127.0.0.1] wt.system.err - at template generateContextTable on line 59 column 45 of xxxx.xsl:
2023-10-30 11:09:07,555 INFO [RMI TCP Connection(28)-127.0.0.1] wt.system.err - invoked by xsl:for-each at file:/D:/Windchill/codebase/templates/reports/xxxx.xsl#60
2023-10-30 11:09:07,555 INFO [RMI TCP Connection(28)-127.0.0.1] wt.system.err - at template generateContextTable on line 59 column 45 of xxxx.xsl:
2023-10-30 11:09:07,555 INFO [RMI TCP Connection(28)-127.0.0.1] wt.system.err - invoked by xsl:call-template at file:/D:/Windchill/codebase/templates/reports/xxxx.xsl#51
2023-10-30 11:09:07,555 INFO [RMI TCP Connection(28)-127.0.0.1] wt.system.err - In template rule with match="/" on line 19 of xxxx.xsl
2023-10-30 11:09:07,555 ERROR [RMI TCP Connection(28)-127.0.0.1] wt.method.MethodResultException - java.io.NotSerializableException: net.sf.saxon.expr.parser.XPathParser$NestedLocation
at java.base/java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1185)
at java.base/java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1553)
at java.base/java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1510)
at java.base/java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1433)
at java.base/java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1179)
at java.base/java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:349)
at wt.method.MethodResultException.writeExternal(MethodResultException.java:105)
at java.base/java.io.ObjectOutputStream.writeExternalData(ObjectOutputStream.java:1457)
at java.base/java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1431)
at java.base/java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1179)
at java.base/java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:349)
at wt.method.MethodResultWriter.writeExternal(MethodResultWriter.java:267)
at wt.method.MethodResult.writeExternal(MethodResult.java:226)
at java.base/java.io.ObjectOutputStream.writeExternalData(ObjectOutputStream.java:1457)
at java.base/java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1431)
at java.base/java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1179)
at java.base/java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:349)
at java.rmi/sun.rmi.server.UnicastRef.marshalValue(UnicastRef.java:293)
at java.rmi/sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:369)
at java.rmi/sun.rmi.transport.Transport$1.run(Transport.java:200)
at java.rmi/sun.rmi.transport.Transport$1.run(Transport.java:197)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.rmi/sun.rmi.transport.Transport.serviceCall(Transport.java:196)
at java.rmi/sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:562)
at java.rmi/sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:796)
at java.rmi/sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.lambda$run$0(TCPTransport.java:677)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.rmi/sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:676)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)
This is a printer-friendly version of Article 404858 and may be out of date. For the latest version click CS404858