Error with xalan xsltc transformation
Hi Everybody,
I am currently working on a performance enhancement change for my project which uses xsl for jsp html display. Due to some client requirement, we have decided to convert all our xsl stylesheets to XSLTC translet class files. Although I have managed to compile all the stylesheets to java classes, I am getting a strange runtime error for some of the xsl-jsp pages. please kindly help me as I have no clue about this error. It has now become a showstopper issue for my project delivery. I am using Websphere 5.1 jre and xml jar libraries for doing the transform. The tranformation works fine with the default xalan transformer(not xsltc). The XSLTC version is 4.0 .
[2/6/06 17:41:33:979 IST] beb3ed2 WebGroup E SRVE0026E: [Servlet Error]-[(class: com/synergy/xsl/translet/mmtoolb, method: topLevel signature: (Lorg/apache/xalan/xsltc/DOM;Lorg/apache/xml/dtm/DTMAxisIterator;Lorg/apache/xml/serializer/SerializationHandler;)V) Incompatible object argument for method call]: java.lang.VerifyError: (class: com/synergy/xsl/translet/mmtoolb, method: topLevel signature: (Lorg/apache/xalan/xsltc/DOM;Lorg/apache/xml/dtm/DTMAxisIterator;Lorg/apache/xml/serializer/SerializationHandler;)V) Incompatible object argument for method call
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java(Compiled Code))
at java.lang.Class.getConstructor1(Class.java(Compiled Code))
at java.lang.Class.newInstance3(Class.java(Compiled Code))
at java.lang.Class.newInstance(Class.java(Compiled Code))
at org.apache.xalan.xsltc.trax.TemplatesImpl.getTransletInstance(TemplatesImpl.java:345)
at org.apache.xalan.xsltc.trax.TemplatesImpl.newTransformer(TemplatesImpl.java:374)
at org.apache.xalan.xsltc.trax.TemplatesImplProxy.newTransformer(TemplatesImplProxy.java:106)
at org.apache.xalan.xsltc.trax.TransformerFactoryImpl.newTransformer(TransformerFactoryImpl.java:570)
at com.synergy.service.XSLTTransformServiceHelper.getTransformer(XSLTTransformServiceHelper.java:296)
at com.synergy.service.XSLTTransformServiceHelper.getTransformer(XSLTTransformServiceHelper.java:243)
at com.synergy.service.XSLTTransformServiceHelper.transform(XSLTTransformServiceHelper.java:155)
at com.synergy.tags.xslt.XSLTTransformTag.doEndTag(Unknown Source)
at org.apache.jsp._mmtoolb._jspService(_mmtoolb.java:2392)
at com.ibm.ws.webcontainer.jsp.runtime.HttpJspBase.service(HttpJspBase.java:89)
at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code))
at com.ibm.ws.webcontainer.jsp.servlet.JspServlet$JspServletWrapper.service(JspServlet.java(Compiled Code))
at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.serviceJspFile(JspServlet.java:683)
at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.service(JspServlet.java:781)
at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code))
at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java(Compiled Code))
at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java(Compiled Code))
at com.ibm.ws.webcontainer.servlet.ServicingServletState.service(StrictLifecycleServlet.java:333)
at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java(Inlined Compiled Code))
at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java(Compiled Code))
at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java(Compiled Code))
at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java(Compiled Code))
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:61)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java(Compiled Code))
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java(Compiled Code))
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:204)
at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:125)
at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:286)
at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:182)
at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:334)
at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:615)
at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:439)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java(Compiled Code))
Please reply incase you need more information about the error.
Thanks and Regards,
sunil kumar
Polaris software lab ltd
India
The XSLTC version is 4.0Is that the version under which you compiled the classes, or the version in Websphere where you are running the classes? The error message seems to suggest there is some incompatibility happening.
Similar Messages
-
How can I use JavaScript extention functions with Xalan for transforming XML with XSL
While transforming standart XML and XSL files to HTML with this servlet:
package mypackage1;
import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;
import java.util.*;
import java.net.URL;
import javax.xml.transform.*;
import javax.xml.transform.stream.StreamSource;
import javax.xml.transform.stream.StreamResult;
import org.mozilla.javascript;
public class Servlet2 extends HttpServlet
private static final String CONTENT_TYPE = "text/html; charset=windows-1252";
public void init(ServletConfig config) throws ServletException
super.init(config);
public void doGet(HttpServletRequest request, HttpServletResponse response)throws ServletException, IOException
try
response.setContentType(CONTENT_TYPE);
PrintWriter out = response.getWriter();
TransformerFactory tFactory = TransformerFactory.newInstance();
Source xmlSource = new StreamSource(new FileReader("c:/aaa.xml"));
Source xslSource = new StreamSource(new FileReader("c:/bbb.xsl"));
Transformer transformer = tFactory.newTransformer(xslSource);
transformer.transform (xmlSource, new StreamResult(out));
catch (Exception e)
e.printStackTrace();
everything is going ok,
but when try to use javascript function in XSL file, for example like in this:
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
xmlns:lxslt="http://xml.apache.org/xslt" xmlns:my-ext="ext1"
extension-element-prefixes="my-ext">
<lxslt:component prefix="my-ext"
functions="getdate">
<lxslt:script lang="javascript">
function getdate() {
var d = new Date();
return d.toUTCString();
</lxslt:script>
</lxslt:component>
<xsl:template match="/">
<p><xsl:copy-of select="my-ext:getdate()"/></p>
</xsl:template>
</xsl:stylesheet>
recieve error-message:
XSL-1000: (Fatal Error) Error while parsing XSL file (Extension function namespace should start with 'http://www.oracle.com/XSL/Transform/java/'.).
What kind of namespace I should specify?Hello, Paul.
I'm sure you may not use JavaScript as a language for creating XSLT extention functions with Oracle XDK Parser. This is since parser might have JavaScript interpreter to work with JavaScript, but it has not.
If you need to build any XSLT extention functions you must build them as Java class' static methods.
After that, you define the usage of the class by mean of namespace declaration as:
xmlns:your-ns="http://www.oracle.com/XSL/Transform/java/yourpackage.Yourclass"
(Prefix "http://www.oracle.com/XSL/Transform/java/" may differs if you use non-Oracle XML parser)
and use class' static method in XSLT:
<xsl:value-of select="your-ns.staticMethodName(paramsIfAny)"/>
In your case you may wish to use standard Date class:
xmlns:date="http://www.oracle.com/XSL/Transform/java/java.util.Date"
<xsl:value-of select="date:toString(date:new)"/> -
(newbie) Xalan XSLTC problem
Hi all,
I'm using latest versions of jdk and xalan-j, if try to transform the following xml+xsl with XSLTC
<?xml version="1.0" encoding="UTF-8" ?>
<root>
<XWC:surname xmlns:XWC="http://www.something.it/XWC/2.0">
Jones
</XWC:surname>
</root>
<?xml version="1.0" encoding="UTF-8" ?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:XWC="http://www.something.it/XWC/2.0">
<xsl:output method="html"/>
<xsl:template match="XWC:*">
<xsl:element name="{name()}">
<xsl:apply-templates/>
</xsl:element>
</xsl:template>
</xsl:stylesheet>
I get the following exception:
ERROR: ''
javax.xml.transform.TransformerException: java.lang.NullPointerException
at org.apache.xalan.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:604)
at org.apache.xalan.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:277)
at it.wecode.jfx.xml.sax.Pipeline.transform(Pipeline.java:20)
at it.wecode.jfx.test.Main.main(Main.java:74)
Caused by: java.lang.NullPointerException
at org.apache.xml.serializer.ToHTMLStream.endElement(ToHTMLStream.java:822)
at org.apache.xml.serializer.ToHTMLStream.endElement(ToHTMLStream.java:1606)
at xsl.template$dot$0()
at xsl.applyTemplates()
at xsl.applyTemplates()
at xsl.applyTemplates()
at xsl.transform()
at org.apache.xalan.xsltc.runtime.AbstractTranslet.transform(AbstractTranslet.java:580)
at org.apache.xalan.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:597)
... 3 more
java.lang.NullPointerException
at org.apache.xml.serializer.ToHTMLStream.endElement(ToHTMLStream.java:822)
at org.apache.xml.serializer.ToHTMLStream.endElement(ToHTMLStream.java:1606)
at xsl.template$dot$0()
at xsl.applyTemplates()
at xsl.applyTemplates()
at xsl.applyTemplates()
at xsl.transform()
at org.apache.xalan.xsltc.runtime.AbstractTranslet.transform(AbstractTranslet.java:580)
at org.apache.xalan.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:597)
at org.apache.xalan.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:277)
at it.wecode.jfx.xml.sax.Pipeline.transform(Pipeline.java:20)
at it.wecode.jfx.test.Main.main(Main.java:74)
Exception in thread "main"
It works well usign interpretative Xalan or if I change the output-method to "xml".
Any help will be appreciated!
Giuseppe MoscarellaA clue: it doesn't throw an exception if the output-method is 'xml' instead of 'html'...
-
I've been trying to do a simple XSLTC transformation using JDK 1.4.2, but I get the following error:
java.lang.IllegalAccessError: class org.apache.xml.dtm.ref.sax2dtm.SAX2DTM2$AncestorIterator cannot access its superclass
org.apache.xml.dtm.ref.DTMDefaultBaseIterators$InternalAxisIteratorBaseI believe this is because of the fact that the JDK files comes with some XML libraries bundled and this clashes with the downloaded Xalan libraries.
I'm just wondering if anybody has managed to do a XSLTC transformation using the JDK 1.4.2. and if they encountered any problems.
Thank you for everything!
GustavoUsing JRE 1.4.x, the Applet that used XSLT, stared giving exception. The reason, the Xalan-Java package (older version)had been included from JDK 1.4 release on-wards. The suggested work around was to use Endrosed mechanism. But how do we use endrosed mechanism for Applets (which uses browser's JRE) ?
-
Hello,
I have a strange problem... I have a XML and a XSL. Sometimes it works, sometime not....
I'm working with xalan 2.3.4
here is my XSL:<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" omit-xml-declaration="yes"/>
<xsl:template match="/">
<xsl:variable name="uDocuments" select="//object[object_name='uDocuments']" />
<root>
<UploadRootfolder name="{$uDocuments/object_name}" id="{$uDocuments/@ID}" isUploadFolder="true">
<xsl:call-template name="createTreeLevel">
<xsl:with-param name="level" select="0" />
<xsl:with-param name="node" select="//object[i_folder_id=$uDocuments/@ID]" />
</xsl:call-template>
</UploadRootfolder>
<xsl:call-template name="createTreeLevel">
<xsl:with-param name="level" select="0" />
<xsl:with-param name="node" select="//object[i_folder_id=$uDocuments/i_folder_id and object_name != 'uDocuments']" />
</xsl:call-template>
</root>
</xsl:template>
<xsl:template name="createTreeLevel">
<xsl:param name="level" />
<xsl:param name="node" />
<xsl:for-each select="$node">
<xsl:sort select="object_name" order="ascending"/>
<xsl:variable name="LevelId" select="@ID" />
<xsl:choose>
<xsl:when test="r_object_type = 'wcm_folder'">
<xsl:choose>
<xsl:when test="a_is_upload_doc_folder = 1">
<Uploadfolder name="{object_name}" id="{@ID}" isUploadFolder="true">
<xsl:call-template name="createTreeLevel">
<xsl:with-param name="level" select="$level" />
<xsl:with-param name="node" select="//object[i_folder_id=$LevelId]" />
</xsl:call-template>
</Uploadfolder>
</xsl:when>
<xsl:otherwise>
<folder name="{object_name}" id="{@ID}">
<xsl:call-template name="createTreeLevel">
<xsl:with-param name="level" select="$level" />
<xsl:with-param name="node" select="//object[i_folder_id=$LevelId]" />
</xsl:call-template>
</folder>
</xsl:otherwise>
</xsl:choose>
</xsl:when>
<xsl:otherwise>
<xsl:choose>
<xsl:when test="wcm_object_type = 'uploaded'">
<Uploaddocument name="{object_name}" id="{@ID}" currentstate="{r_current_state}" language="{wcm_language}">
<xsl:attribute name="isUploaded">
<xsl:choose>
<xsl:when test="wcm_object_type = 'uploaded'">
<xsl:text>true</xsl:text>
</xsl:when>
<xsl:otherwise>
<xsl:text>false</xsl:text>
</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
<xsl:attribute name="checkedoutstatus">
<xsl:choose>
<xsl:when test="r_lock_owner != ''">
<xsl:text>true</xsl:text>
</xsl:when>
<xsl:otherwise>
<xsl:text>false</xsl:text>
</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
</Uploaddocument>
</xsl:when>
<xsl:otherwise>
<document name="{object_name}" id="{@ID}" currentstate="{r_current_state}" r_lock_owner="{r_lock_owner}" language="{wcm_language}">
<xsl:attribute name="checkedoutstatus">
<xsl:choose>
<xsl:when test="r_lock_owner != ''">
<xsl:text>true</xsl:text>
</xsl:when>
<xsl:otherwise>
<xsl:text>false</xsl:text>
</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
<xsl:attribute name="isWorkflowEnabled">
<xsl:choose>
<xsl:when test="isworkflowenabled = 1">
<xsl:text>true</xsl:text>
</xsl:when>
<xsl:otherwise>
<xsl:text>false</xsl:text>
</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
<xsl:attribute name="isUploaded">
<xsl:choose>
<xsl:when test="wcm_object_type = 'uploaded'">
<xsl:text>true</xsl:text>
</xsl:when>
<xsl:otherwise>
<xsl:text>false</xsl:text>
</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
</document>
</xsl:otherwise>
</xsl:choose>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>
with that XML it works<root>
<object ID="0900348b8003df71">
<object_name>LogoCountry_fr_FR.gif</object_name>
<r_object_type>wcm_copy_document</r_object_type>
<r_object_id>0900348b8003df71</r_object_id>
<i_folder_id>0b00348b8003df5f</i_folder_id>
<r_current_state>3</r_current_state>
<a_is_upload_doc_folder>0</a_is_upload_doc_folder>
<wcm_object_type>uploaded</wcm_object_type>
<isworkflowenabled>1</isworkflowenabled>
<r_lock_owner/>
<wcm_language/>
</object>
<object ID="0900348b8003df72">
<object_name>LogoCountry_nl_NL.gif</object_name>
<r_object_type>wcm_copy_document</r_object_type>
<r_object_id>0900348b8003df72</r_object_id>
<i_folder_id>0b00348b8003df5f</i_folder_id>
<r_current_state>3</r_current_state>
<a_is_upload_doc_folder>0</a_is_upload_doc_folder>
<wcm_object_type>uploaded</wcm_object_type>
<isworkflowenabled>1</isworkflowenabled>
<r_lock_owner/>
<wcm_language/>
</object>
<object ID="0b00348b8003e247">
<object_name>Parfait</object_name>
<r_object_type>wcm_folder</r_object_type>
<r_object_id>0b00348b8003e247</r_object_id>
<i_folder_id>0b00348b8003df60</i_folder_id>
<r_current_state>0</r_current_state>
<a_is_upload_doc_folder>1</a_is_upload_doc_folder>
<wcm_object_type/>
<isworkflowenabled>1</isworkflowenabled>
<r_lock_owner/>
<wcm_language/>
</object>
<object ID="0900348b8003df76">
<object_name>constantlib.xml</object_name>
<r_object_type>wcm_document</r_object_type>
<r_object_id>0900348b8003df76</r_object_id>
<i_folder_id>0b00348b8003df61</i_folder_id>
<r_current_state>3</r_current_state>
<a_is_upload_doc_folder>0</a_is_upload_doc_folder>
<wcm_object_type/>
<isworkflowenabled>0</isworkflowenabled>
<r_lock_owner/>
<wcm_language/>
</object>
<object ID="0900348b8003df70">
<object_name>site_const.asp</object_name>
<r_object_type>wcm_document</r_object_type>
<r_object_id>0900348b8003df70</r_object_id>
<i_folder_id>0b00348b8003df61</i_folder_id>
<r_current_state>3</r_current_state>
<a_is_upload_doc_folder>0</a_is_upload_doc_folder>
<wcm_object_type/>
<isworkflowenabled>0</isworkflowenabled>
<r_lock_owner/>
<wcm_language/>
</object>
<object ID="0900348b8003df6e">
<object_name>siteinfo.xml</object_name>
<r_object_type>wcm_document</r_object_type>
<r_object_id>0900348b8003df6e</r_object_id>
<i_folder_id>0b00348b8003df64</i_folder_id>
<r_current_state>3</r_current_state>
<a_is_upload_doc_folder>0</a_is_upload_doc_folder>
<wcm_object_type/>
<isworkflowenabled>0</isworkflowenabled>
<r_lock_owner/>
<wcm_language/>
</object>
<object ID="0900348b8003df6f">
<object_name>sitevisual.xml</object_name>
<r_object_type>wcm_document</r_object_type>
<r_object_id>0900348b8003df6f</r_object_id>
<i_folder_id>0b00348b8003df61</i_folder_id>
<r_current_state>3</r_current_state>
<a_is_upload_doc_folder>0</a_is_upload_doc_folder>
<wcm_object_type/>
<isworkflowenabled>0</isworkflowenabled>
<r_lock_owner/>
<wcm_language/>
</object>
<object ID="0b00348b8003df60">
<object_name>uDocuments</object_name>
<r_object_type>wcm_folder</r_object_type>
<r_object_id>0b00348b8003df60</r_object_id>
<i_folder_id>0c00348b8003df5e</i_folder_id>
<r_current_state>0</r_current_state>
<a_is_upload_doc_folder>1</a_is_upload_doc_folder>
<wcm_object_type/>
<isworkflowenabled>1</isworkflowenabled>
<r_lock_owner/>
<wcm_language/>
</object>
<object ID="0900348b8003e211">
<object_name>yo_fr_FR.xml</object_name>
<r_object_type>wcm_document</r_object_type>
<r_object_id>0900348b8003e211</r_object_id>
<i_folder_id>0c00348b8003df5e</i_folder_id>
<r_current_state>3</r_current_state>
<a_is_upload_doc_folder>0</a_is_upload_doc_folder>
<wcm_object_type>page</wcm_object_type>
<isworkflowenabled>0</isworkflowenabled>
<r_lock_owner/>
<wcm_language>fr_FR</wcm_language>
</object>
<object ID="0900348b8003df74">
<object_name>z_20060321a.css</object_name>
<r_object_type>wcm_document</r_object_type>
<r_object_id>0900348b8003df74</r_object_id>
<i_folder_id>0b00348b8003df61</i_folder_id>
<r_current_state>3</r_current_state>
<a_is_upload_doc_folder>0</a_is_upload_doc_folder>
<wcm_object_type/>
<isworkflowenabled>0</isworkflowenabled>
<r_lock_owner/>
<wcm_language/>
</object>
</root>
Result<root>
<UploadRootfolder isUploadFolder="true" id="0b00348b8003df60" name="uDocuments">
<Uploadfolder isUploadFolder="true" id="0b00348b8003e247" name="Parfait"/>
</UploadRootfolder>
<document language="fr_FR" r_lock_owner="" currentstate="3" id="0900348b8003e211" name="yo_fr_FR.xml" checkedoutstatus="false" isWorkflowEnabled="false" isUploaded="false"/>
</root>
with that one it does not<root>
<object ID="0b00348b8003e248">
<object_name>FolderVide</object_name>
<r_object_type>wcm_folder</r_object_type>
<r_object_id>0b00348b8003e248</r_object_id>
<i_folder_id>0b00348b8003df60</i_folder_id>
<r_current_state>0</r_current_state>
<a_is_upload_doc_folder>1</a_is_upload_doc_folder>
<wcm_object_type/>
<isworkflowenabled>1</isworkflowenabled>
<r_lock_owner/>
<wcm_language/>
</object>
<object ID="0900348b8003df71">
<object_name>LogoCountry_fr_FR.gif</object_name>
<r_object_type>wcm_copy_document</r_object_type>
<r_object_id>0900348b8003df71</r_object_id>
<i_folder_id>0b00348b8003df5f</i_folder_id>
<r_current_state>3</r_current_state>
<a_is_upload_doc_folder>0</a_is_upload_doc_folder>
<wcm_object_type>uploaded</wcm_object_type>
<isworkflowenabled>1</isworkflowenabled>
<r_lock_owner/>
<wcm_language/>
</object>
<object ID="0900348b8003df72">
<object_name>LogoCountry_nl_NL.gif</object_name>
<r_object_type>wcm_copy_document</r_object_type>
<r_object_id>0900348b8003df72</r_object_id>
<i_folder_id>0b00348b8003df5f</i_folder_id>
<r_current_state>3</r_current_state>
<a_is_upload_doc_folder>0</a_is_upload_doc_folder>
<wcm_object_type>uploaded</wcm_object_type>
<isworkflowenabled>1</isworkflowenabled>
<r_lock_owner/>
<wcm_language/>
</object>
<object ID="0900348b8003df76">
<object_name>constantlib.xml</object_name>
<r_object_type>wcm_document</r_object_type>
<r_object_id>0900348b8003df76</r_object_id>
<i_folder_id>0b00348b8003df61</i_folder_id>
<r_current_state>3</r_current_state>
<a_is_upload_doc_folder>0</a_is_upload_doc_folder>
<wcm_object_type/>
<isworkflowenabled>0</isworkflowenabled>
<r_lock_owner/>
<wcm_language/>
</object>
<object ID="0900348b8003df70">
<object_name>site_const.asp</object_name>
<r_object_type>wcm_document</r_object_type>
<r_object_id>0900348b8003df70</r_object_id>
<i_folder_id>0b00348b8003df61</i_folder_id>
<r_current_state>3</r_current_state>
<a_is_upload_doc_folder>0</a_is_upload_doc_folder>
<wcm_object_type/>
<isworkflowenabled>0</isworkflowenabled>
<r_lock_owner/>
<wcm_language/>
</object>
<object ID="0900348b8003df6e">
<object_name>siteinfo.xml</object_name>
<r_object_type>wcm_document</r_object_type>
<r_object_id>0900348b8003df6e</r_object_id>
<i_folder_id>0b00348b8003df64</i_folder_id>
<r_current_state>3</r_current_state>
<a_is_upload_doc_folder>0</a_is_upload_doc_folder>
<wcm_object_type/>
<isworkflowenabled>0</isworkflowenabled>
<r_lock_owner/>
<wcm_language/>
</object>
<object ID="0900348b8003df6f">
<object_name>sitevisual.xml</object_name>
<r_object_type>wcm_document</r_object_type>
<r_object_id>0900348b8003df6f</r_object_id>
<i_folder_id>0b00348b8003df61</i_folder_id>
<r_current_state>3</r_current_state>
<a_is_upload_doc_folder>0</a_is_upload_doc_folder>
<wcm_object_type/>
<isworkflowenabled>0</isworkflowenabled>
<r_lock_owner/>
<wcm_language/>
</object>
<object ID="0b00348b8003df60">
<object_name>uDocuments</object_name>
<r_object_type>wcm_folder</r_object_type>
<r_object_id>0b00348b8003df60</r_object_id>
<i_folder_id>0c00348b8003df5e</i_folder_id>
<r_current_state>0</r_current_state>
<a_is_upload_doc_folder>1</a_is_upload_doc_folder>
<wcm_object_type/>
<isworkflowenabled>1</isworkflowenabled>
<r_lock_owner/>
<wcm_language/>
</object>
<object ID="0900348b8003e211">
<object_name>yo_fr_FR.xml</object_name>
<r_object_type>wcm_document</r_object_type>
<r_object_id>0900348b8003e211</r_object_id>
<i_folder_id>0c00348b8003df5e</i_folder_id>
<r_current_state>3</r_current_state>
<a_is_upload_doc_folder>0</a_is_upload_doc_folder>
<wcm_object_type>page</wcm_object_type>
<isworkflowenabled>0</isworkflowenabled>
<r_lock_owner/>
<wcm_language>fr_FR</wcm_language>
</object>
<object ID="0900348b8003df74">
<object_name>z_20060321a.css</object_name>
<r_object_type>wcm_document</r_object_type>
<r_object_id>0900348b8003df74</r_object_id>
<i_folder_id>0b00348b8003df61</i_folder_id>
<r_current_state>3</r_current_state>
<a_is_upload_doc_folder>0</a_is_upload_doc_folder>
<wcm_object_type/>
<isworkflowenabled>0</isworkflowenabled>
<r_lock_owner/>
<wcm_language/>
</object>
</root>
Result:0 [main] WARN com.documentum.fc.common.DfLogger - Failed to load log4j.properties. Using default log4j configuration
Warning: popContextNodeList when stack is empty!
2812 [main] ERROR com.aventis.wcm.xmlhandler.Transformation - javax.xml.transform.TransformerException: java.lang.NullPointerException
; Line#: 30; Column#: 34
javax.xml.transform.TransformerException: java.lang.NullPointerException
at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2263)
at org.apache.xalan.templates.ElemTemplate.execute(ElemTemplate.java:432)
at org.apache.xalan.templates.ElemCallTemplate.execute(ElemCallTemplate.java:273)
at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2258)
at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:710)
at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2258)
at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:710)
at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2258)
at org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(TransformerImpl.java:2081)
at org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1137)
at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:600)
at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1054)
at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1032)
at com.aventis.wcm.xmlhandler.Transformation.applyStyleSheet(Transformation.java:599)
at com.sanofiaventis.documentum.CreateNavTree.applyXslFromString(CreateNavTree.java:150)
at com.sanofiaventis.documentum.CreateNavTree.getFolderContentStructure(CreateNavTree.java:98)
at com.sanofiaventis.documentum.CreateNavTree.main(CreateNavTree.java:211)
Caused by: java.lang.NullPointerException
at org.apache.xpath.axes.DescendantIterator.nextNode(DescendantIterator.java:250)
at org.apache.xpath.axes.NodeSequence.nextNode(NodeSequence.java:320)
at org.apache.xpath.axes.FilterExprWalker.getNextNode(FilterExprWalker.java:235)
at org.apache.xpath.axes.AxesWalker.nextNode(AxesWalker.java:400)
at org.apache.xpath.axes.WalkingIterator.nextNode(WalkingIterator.java:165)
at org.apache.xpath.axes.NodeSequence.nextNode(NodeSequence.java:320)
at org.apache.xpath.objects.XNodeSet.compare(XNodeSet.java:538)
at org.apache.xpath.objects.XNodeSet.equals(XNodeSet.java:736)
at org.apache.xpath.operations.Equals.operate(Equals.java:84)
at org.apache.xpath.operations.Operation.execute(Operation.java:150)
at org.apache.xpath.axes.PredicatedNodeTest.executePredicates(PredicatedNodeTest.java:326)
at org.apache.xpath.axes.PredicatedNodeTest.acceptNode(PredicatedNodeTest.java:458)
at org.apache.xpath.axes.DescendantIterator.nextNode(DescendantIterator.java:264)
at org.apache.xpath.axes.NodeSequence.nextNode(NodeSequence.java:320)
at org.apache.xpath.axes.NodeSequence.runTo(NodeSequence.java:474)
at org.apache.xalan.templates.ElemForEach.sortNodes(ElemForEach.java:340)
at org.apache.xalan.templates.ElemForEach.transformSelectedNodes(ElemForEach.java:383)
at org.apache.xalan.templates.ElemForEach.execute(ElemForEach.java:300)
at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2258)
... 16 more
java.lang.NullPointerException
at org.apache.xpath.axes.DescendantIterator.nextNode(DescendantIterator.java:250)
at org.apache.xpath.axes.NodeSequence.nextNode(NodeSequence.java:320)
at org.apache.xpath.axes.FilterExprWalker.getNextNode(FilterExprWalker.java:235)
at org.apache.xpath.axes.AxesWalker.nextNode(AxesWalker.java:400)
at org.apache.xpath.axes.WalkingIterator.nextNode(WalkingIterator.java:165)
at org.apache.xpath.axes.NodeSequence.nextNode(NodeSequence.java:320)
at org.apache.xpath.objects.XNodeSet.compare(XNodeSet.java:538)
at org.apache.xpath.objects.XNodeSet.equals(XNodeSet.java:736)
at org.apache.xpath.operations.Equals.operate(Equals.java:84)
at org.apache.xpath.operations.Operation.execute(Operation.java:150)
at org.apache.xpath.axes.PredicatedNodeTest.executePredicates(PredicatedNodeTest.java:326)
at org.apache.xpath.axes.PredicatedNodeTest.acceptNode(PredicatedNodeTest.java:458)
at org.apache.xpath.axes.DescendantIterator.nextNode(DescendantIterator.java:264)
at org.apache.xpath.axes.NodeSequence.nextNode(NodeSequence.java:320)
at org.apache.xpath.axes.NodeSequence.runTo(NodeSequence.java:474)
at org.apache.xalan.templates.ElemForEach.sortNodes(ElemForEach.java:340)
at org.apache.xalan.templates.ElemForEach.transformSelectedNodes(ElemForEach.java:383)
at org.apache.xalan.templates.ElemForEach.execute(ElemForEach.java:300)
at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2258)
at org.apache.xalan.templates.ElemTemplate.execute(ElemTemplate.java:432)
at org.apache.xalan.templates.ElemCallTemplate.execute(ElemCallTemplate.java:273)
at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2258)
at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:710)
at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2258)
at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:710)
at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2258)
at org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(TransformerImpl.java:2081)
at org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1137)
at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:600)
at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1054)
at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1032)
at com.aventis.wcm.xmlhandler.Transformation.applyStyleSheet(Transformation.java:599)
at com.sanofiaventis.documentum.CreateNavTree.applyXslFromString(CreateNavTree.java:150)
at com.sanofiaventis.documentum.CreateNavTree.getFolderContentStructure(CreateNavTree.java:98)
at com.sanofiaventis.documentum.CreateNavTree.main(CreateNavTree.java:211)
com.aventis.wcm.exception.WcmSystemException: error while applying stylesheet
at com.aventis.wcm.xmlhandler.Transformation.applyStyleSheet(Transformation.java:605)
at com.sanofiaventis.documentum.CreateNavTree.applyXslFromString(CreateNavTree.java:150)
at com.sanofiaventis.documentum.CreateNavTree.getFolderContentStructure(CreateNavTree.java:98)
at com.sanofiaventis.documentum.CreateNavTree.main(CreateNavTree.java:211)Thanks for your help
Patrickthis seems to be a bug in your xalan version - i tried with xalan 2.6.1 - it worked fine.
-
ERROR WHILE ACTIVATION OF transformation in cube?
hi friends,
i am getting below error while activationg my transformations in cube, please let me know solution, how to assign field to infoobject, which tab i need to use.
Rule (target: S1_SUN, group: 01 Standard Group): Conversion type missing
Rule 2 (target field: S1_SUN): Field /BIC/S1_SUN must be assigned to an InfoObject
Rule (target field: S1_SUN): No source unit assigned
regards
suneel.Hi Suneel,
Hope u doing good!
Well in case of BW 3.5 if you have worked on it. To extract data to a cube or dso we use the standard process of creating infosource,linking it to datasource and creating infopackage. In infopackage we determine the characteristics of the extraction, for eg: should it be delta or full, what would be the error handling method so and so forth.
Well in case of BI 7.0 and higher we no longer need to use the long way. On the concerned Infocube you can right click and hit on create Data Transfer Process which would pop up with another window asking you where your data is residing, you can choose from the options specify the source system and then create the DTP instance.Which it is being created the system generates some rules automatically. This is what I was talking abt. Once you have created you can configure it as if you were configuring the Infopackage.
The update rules which are automatically generated can be checked by clicking on it and seeing if all the rules are appropriate.
Hope I am making it clear for you.
Good Luck,
Raj -
Error in Data Load - Transformation inactive
Hi
While running DTPs to DSO or cube I am getting error saying that a Transformation called up by the request is inactive and hence the request cannot be executed.
But when I checked, I found all the transformations in the flow for the Data Load were active with Executable version = Active version.
I had been getting such error before also but at the time I executed the DTP using a Process Chain, then it ran fine without any errors, but now even the Process Chauin run is giving error.
Does anyone have an idea about what this error exactly is or the solution for the same?
Is this got anything to do with authorization issues?
Thanks,
NinadI had an experience with similar issue
Transformation Inactive;request cannot be executed
Message no. RSBK257
By debugging that DTP load, we found the root cause of problem, which is the following.
Error when writing the SID 10033950 (value "10033950") in table /BIC/SZPERSON
Since, a particular record can't be deleted from PSA, I modified that record in PSA and tried a load, but no use.
To fix this, I deleted (from SE14) complete data from the above SID table, and scheduled the main PC in Dev, and it worked fine this time. -
TransformerConfigurationException with Xalan 2.1, WL 6.0 sp2
On Solaris, jdk 1.3:
I'm using:
public void transform( AdviewsXMLDocument xmlDoc, PrintWriter outWriter )
throws CorporateException {
String media= null , title = null, charset = null;
try{
TransformerFactory tFactory = TransformerFactory.newInstance();
StringReader xmlReader = new StringReader( xmlDoc.toString() );
StreamSource streamSource = new StreamSource( xmlReader ) ;
Source stylesheet = tFactory.getAssociatedStylesheet( streamSource,
media, title, charset);
Transformer transformer = tFactory.newTransformer(stylesheet);
StreamResult streamResult = new StreamResult( outWriter ) ;
transformer.transform( streamSource , streamResult ) ;
} catch (Exception ex ) {
throw new CorporateException(
"XSLT transform exception: " + ex.toString(),
CorporateException.ERROR );
but getting:
XSLT transform exception:
javax.xml.transform.TransformerConfigurationException:
getAssociatedStylesheets failed
The startup script does set the Transformer property:
.. -Djavax.xml.transform.TransformerFactory=org.apache.xalan.processor.Trans
formerFactoryImpl ...
The xml document ( inherited from the ecs XMLDocument ) passed has:
<?xml-stylesheet href="style/portal.xsl" type="text/xsl"?>
and it parses successfully when used against the command line of Xalan.
( The "style" directory is directly under the application's root directory
within the war within the ear ).
Apparently the org.apache.xalan.processor.TransformerFactoryImpl is throwing
a org.xml.sax.SAXException, which then produces the
"getAssociatedStylesheets failed", but why?
Any ideas?
Charlie Crook
Nielsen Media ResearchOn Solaris, jdk 1.3:
I'm using:
public void transform( AdviewsXMLDocument xmlDoc, PrintWriter outWriter )
throws CorporateException {
String media= null , title = null, charset = null;
try{
TransformerFactory tFactory = TransformerFactory.newInstance();
StringReader xmlReader = new StringReader( xmlDoc.toString() );
StreamSource streamSource = new StreamSource( xmlReader ) ;
Source stylesheet = tFactory.getAssociatedStylesheet( streamSource,
media, title, charset);
Transformer transformer = tFactory.newTransformer(stylesheet);
StreamResult streamResult = new StreamResult( outWriter ) ;
transformer.transform( streamSource , streamResult ) ;
} catch (Exception ex ) {
throw new CorporateException(
"XSLT transform exception: " + ex.toString(),
CorporateException.ERROR );
but getting:
XSLT transform exception:
javax.xml.transform.TransformerConfigurationException:
getAssociatedStylesheets failed
The startup script does set the Transformer property:
.. -Djavax.xml.transform.TransformerFactory=org.apache.xalan.processor.Trans
formerFactoryImpl ...
The xml document ( inherited from the ecs XMLDocument ) passed has:
<?xml-stylesheet href="style/portal.xsl" type="text/xsl"?>
and it parses successfully when used against the command line of Xalan.
( The "style" directory is directly under the application's root directory
within the war within the ear ).
Apparently the org.apache.xalan.processor.TransformerFactoryImpl is throwing
a org.xml.sax.SAXException, which then produces the
"getAssociatedStylesheets failed", but why?
Any ideas?
Charlie Crook
Nielsen Media Research -
SAP Netweaver 04 SP16 deployed with Xalan 2.60 or Xalan 2.70
SAP Netweaver 04 SP16 deployed with Xalan 2.60 or Xalan 2.70
Have you tried to port and run (Sneak Preview) SAPNetWeaver java 04 SP16 or 04S SP7 with a later version on Xalan version 2.60 or Xalan version 2.70 along with jdk 1.4.2_(8 or greater)?
What specifically is failing? What patches or work around have you used to overcome compatibility issues with Xalan?
When we run Sneak Preview SAPNetWeaver java 04 SP16 SP7 with a version on Xalan version 2.60 or Xalan version 2.70 along with jdk 1.4.2_11, We get error 503 Service Unavailable, Application cannot be started
Details: com.sap.engine.services.deploy.container.ExceptionInfo: Error while parsing file data-source-aliases.xml.Hi
SAP does not allow usage of any other XML parsers with SAP web AS.
please have a look at this link
http://help.sap.com/saphelp_nw04/helpdata/en/36/ef353e39011a38e10000000a114084/frameset.htm
"Setting system properties in a system that supports more than one parser is prohibited".
The Error which you are getting is because one of the
java.system properties for parsing is
getting changed by xalan. These system properties are explictly set by the SAP XML implementation which it does not allow you to change.
Also can you please let me know where are you placing the xalan jar file ? is it deployed as a j2ee library or part of war ?
Hope this helps. please mark points for helpful answers
regards
rajesh kr -
Route pattern with called party transformations
HI All,
i wanto to add route pattern with transformation
i want to add RP with 9.001! predot
and want to convert to 9.01017! with called party transformations.
How we replace ! ? i've tried and it's error with message
Called Party Transform Mask - allowed characters are numeric (0-9),plus (+),asterisk (*),pound (#),X.
I've give screen shot for the configuration
Please anybody help.
Thanks in advance
Regards,
ATommyYou can create the RP with 9001.! and in the called party, discard predot and prefix 901017.
see below screenshot: -
HelloThank's for your helpsI hope this document is helpfulBest Regards,
Date: Sun, 22 Jun 2014 17:10:17 -0700
From: [email protected]
To: [email protected]
Subject: when i open pdf file it open all the pages but some pages give error massage (there was error processing a page,there was a problem reading this document 110) but if i open this page which give me error with google chrome it's work ? if you can help me th
when i open pdf file it open all the pages but some pages give error massage (there was error processing a page,there was a problem reading this document 110) but if i open this page which give me error with google chrome it's work ? if you can help m
created by Anoop9178 in Adobe Reader - View the full discussion
Hi,
Would it be possible for you to share the document?
Regards,
Anoop
Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at https://forums.adobe.com/message/6485431#6485431
Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page:
To unsubscribe from this thread, please visit the message page at . In the Actions box on the right, click the Stop Email Notifications link.
Start a new discussion in Adobe Reader by email or at Adobe Community
For more information about maintaining your forum email notifications please go to http://forums.adobe.com/thread/416458?tstart=0.thank's for reply and your help
i did the step's that you told me but i still have the same problem
i have the latest v.11.0.7
i
i disable the protected mode -
Odd Error with decode function in Order By Clause
I am trying to compile a procedure and can't get around an error with a dynamic order by that doesn't make much sense to me. I can repoduce the error with a plain select statment in sql plus so I can rule out a declaration error. Here is an example with 2 numeric columns and a date column.
select task_id, display_date, remark_id from task_list
where task_id > 1000
order by decode('Task_ID', 'Task_ID',Task_ID, 'Display_Date', Display_Date, 'Remark_ID',Remark_ID)
returns the error:
select task_id, display_date, remark_id from task_list
ERROR at line 1:
ORA-00932: inconsistent datatypes: expected NUMBER got DATE
I'm not sure why this error is occuring, because it doesn't even hit the Display_Date field in the Decode statment. If I take the Display_date out of the statement, it runs properly. If I change Display_Date to To_Char(Display_Date) it also runs fine, but the sorting is incorrect. Also I'm running 9.2, and do not want to use dynamic sql to build my query. Any Ideas out there as to the cause of this error?I did find a workaround to this issue by breaking the decode statment into three separate statement, but I still think that the way it is written above should work, and may be a bug, or an error that I don't understand fully.
The Order by was rewritten like this:
order by decode(pSort, 'Task_ID',Task_ID), decode(pSort, 'Display_Date', Display_Date),
decode(pSort, 'Remark_ID',Remark_ID);
Thanks -
XML Publisher Error with reports published in XML publisher
Hi All,
I am geting the following error with a report published using XML Publisher
The XML page cannot be displayed
Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later.
The system cannot locate the resource specified. Error processing resource 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.d...
How can i Rectify this?Hi Ark,
In order to generate a report using xml publisher. we need the following.
1. XML Data
2. Template file (RTF/PDF/..)
XML data will not be created by the template file.
We will be required to create XML data. One of the easiest way to create xml output is using the RDF. We can change the rdf output type in the concurrent program to XML.
Once the xml and the template is available, "XML Report Publisher" will be able to generate the output in the required format.
Thanks,
K.Nataraja Suthan, -
Graphic problems/errors with Mainstage 3 and MBP (15'' 2011)
Hi,
I bought Mainstage 3 for my MBP (15'' 2011).
When i click con "perform" i get graphic errors.
I have the same issue with the old Mainstage version since Mountain Lion.
Also a fresh installation didn't help.
I think i'm not the only one with this issue!
I don't know how to report a bug?
Perhaps someone can help me.
(and I'm probably not the only one (see feedback in Apple Store) If you also have this problem, please add a comment with your configuration (Hardware, Software))
/forgotten ebi
So, here an example how it looks like when i click on "perform":Same configuration,same problem. BUT I found a workaround.
Mainstage has this error with the AMD video card and/or a second monitor connected.
With a little app (http://gfx.io) it's possible to really force the MBPro to use the Intel Graphics card.
This will work only with the internal screen, not with a second screen connected.
And sometimes you need to restart, to really make the Intel video card free.
This works fine...In the meantime of a fix. -
HI BI gurus,
we have a problem with an infoset.
We create an infoset in RSA1 linked to a cube and a DSO.
We activate it in english without problems and I can create a query with no errors (with a english logon).
If I try to create a query in italian language the query designer show mw this error: " unexpected error - RCF_SYSTEM_FAILURE. You must restart the query designer."
Do you have any idea how to fix and solve this problem? We try to activete the infoset in Italian but the error remains.
Thanks for any help.
SBHi,
is italien installed as a language in your system?
Siggi
Maybe you are looking for
-
Media Encoder CC crashes on startup
I just bought and installed the lasted version of the CS suite through the cloud. Everything else seems to be working so far, except Media Encoder CC. When I downloaded all of the software, it came with both Media Encoder CC and CS6. CS6 works just f
-
Hi All, Im using applet to access a wav file which is located in the jar file, 1st of all im compiling the applet class, making a jar file(which has the welcome.jar in it) and signing the jar file and then archiving the jar file in the HTML code. fol
-
Hi all, I have an iphone and ipod classic. Recently, I had to re-format my HDD due to motherboard failure, and I forgot to retrieve the itunes library backup and iphone backup before I re-format. Now I have already installed itunes and loaded back my
-
Acrobat 8 - Default opening view
how do I make sure that my Acrobat 8 pdf news letter opens in 'One page at a time' mode by recipient
-
Leading zeros deleted while downloading to excel sheet
Hi , i am downloading data to excel sheet from internal table, iam using gui_download but its deletin leading zeros can any one tell me as to how i go about this for ex i ahve a mterial no : 00123 i see 123 i want it to be 00123 Thanks kajol