Skip to Content
author's profile photo Former Member
Former Member

Getting error "Error applying XSL stylesheet to XML" when creating KM/Coll content

Hello Experts,

I'd like to ask for your help.

We're running Netweaver 7.30, when I try to create "News" content (click on link to open News form), I'm getting new error window named "XMLFormsServletResponse" with follow error:


XML - Forms Error applying XSL stylesheet to XML



Default trace output:


com.sapportals.wcm.WcmException: java.lang.NullPointerException: while trying to invoke the method javax.xml.transform.Templates.newTransformer() of a null object loaded from local variable 'templates'

at com.sapportals.wcm.service.pipeline.Pipeline.handle(Pipeline.java:300)

at com.sapportals.wcm.service.pipeline.XSLTPipeline.handle(XSLTPipeline.java:118)

at com.sapportals.wcm.service.xmlforms.transformation.Transformer.pipeIt(Transformer.java:135)

at com.sapportals.wcm.service.xmlforms.transformation.Transformer.transform(Transformer.java:105)

at com.sapportals.wcm.service.xmlforms.transformation.Transformer.transform(Transformer.java:77)

at com.sapportals.wcm.service.xmlforms.transformation.HtmlGenerator.getHtmlStream(HtmlGenerator.java:122)

at com.sapportals.wcm.service.xmlforms.transformation.Transformation.render(Transformation.java:492)

at com.sapportals.wcm.service.xmlforms.transformation.Transformation.renderTemplate(Transformation.java:358)

at com.sapportals.wcm.app.xmlforms.EditServlet.doGetAction(EditServlet.java:450)

at com.sapportals.wcm.app.xmlforms.XFBaseServlet.doGet(XFBaseServlet.java:241)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:734)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)

at com.sapportals.wcm.app.xmlforms.XFBaseServlet.service(XFBaseServlet.java:134)

at com.sapportals.wcm.portal.proxy.PCProxyServlet.service(PCProxyServlet.java:344)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)

at com.sap.portal.prt.broker.ServletComponentItem$ServletWrapperComponent.doContent(ServletComponentItem.java:99)

at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:213)

at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:129)

at com.sap.portal.prt.core.RequestDispatcherFactory$PortalComponentRequestDispatcher$5.service(RequestDispatcherFactory.java:308)

at com.sap.engine.services.servlets_jsp.server.deploy.impl.module.IRequestDispatcherImpl.dispatch(IRequestDispatcherImpl.java:292)

at com.sap.portal.prt.core.RequestDispatcherFactory$PortalComponentRequestDispatcher.service(RequestDispatcherFactory.java:298)

at com.sap.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:229)

at com.sap.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:107)

at com.sap.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:141)

at com.sap.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:206)

at com.sap.portal.prt.pom.PortalNode.service(PortalNode.java:590)

at com.sap.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:233)

at com.sap.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:107)

at com.sap.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:141)

at com.sap.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:520)

at com.sapportals.portal.prt.connection.ServletConnection._handleRequest(ServletConnection.java:224)

at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:101)

at com.sap.portal.prt.dispatcher.DispatcherServlet.service(DispatcherServlet.java:132)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)

at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.runServlet(FilterChainImpl.java:202)

at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.doFilter(FilterChainImpl.java:103)

at com.sap.portal.http.EnrichNavRequestFilter.doFilter(EnrichNavRequestFilter.java:49)

at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.doFilter(FilterChainImpl.java:79)

at n38v.exe.N38FiltroSAPXLNetS.doFilter(N38FiltroSAPXLNetS.java:247)

at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.doFilter(FilterChainImpl.java:79)

at com.ejie.web.auth.sap.filter.FilterSAP.doFilter(FilterSAP.java:134)

at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.doFilter(FilterChainImpl.java:79)

at com.sap.portal.prt.dispatcher.CustomHeaderFilter.doFilter(CustomHeaderFilter.java:58)

at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.doFilter(FilterChainImpl.java:79)

at com.sap.portal.http.EnrichNavRequestFilter.doFilter(EnrichNavRequestFilter.java:49)

at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.doFilter(FilterChainImpl.java:79)

at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:441)

at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:210)

at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:441)

at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:430)

at com.sap.engine.services.servlets_jsp.filters.DSRWebContainerFilter.process(DSRWebContainerFilter.java:38)

at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)

at com.sap.engine.services.servlets_jsp.filters.ServletSelector.process(ServletSelector.java:81)

at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)

at com.sap.engine.services.servlets_jsp.filters.ApplicationSelector.process(ApplicationSelector.java:278)

at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)

at com.sap.engine.services.httpserver.filters.WebContainerInvoker.process(WebContainerInvoker.java:81)

at com.sap.engine.services.httpserver.chain.HostFilter.process(HostFilter.java:9)

at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)

at com.sap.engine.services.httpserver.filters.ResponseLogWriter.process(ResponseLogWriter.java:60)

at com.sap.engine.services.httpserver.chain.HostFilter.process(HostFilter.java:9)

at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)

at com.sap.engine.services.httpserver.filters.DefineHostFilter.process(DefineHostFilter.java:27)

at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)

at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)

at com.sap.engine.services.httpserver.filters.MonitoringFilter.process(MonitoringFilter.java:29)

at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)

at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)

at com.sap.engine.services.httpserver.filters.SessionSizeFilter.process(SessionSizeFilter.java:26)

at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)

at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)

at com.sap.engine.services.httpserver.filters.MemoryStatisticFilter.process(MemoryStatisticFilter.java:57)

at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)

at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)

at com.sap.engine.services.httpserver.filters.DSRHttpFilter.process(DSRHttpFilter.java:43)

at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)

at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)

at com.sap.engine.services.httpserver.server.Processor.chainedRequest(Processor.java:475)

at com.sap.engine.services.httpserver.server.Processor$FCAProcessorThread.process(Processor.java:269)

at com.sap.engine.services.httpserver.server.rcm.RequestProcessorThread.run(RequestProcessorThread.java:56)

at com.sap.engine.core.thread.execution.Executable.run(Executable.java:122)

at com.sap.engine.core.thread.execution.Executable.run(Executable.java:101)

at com.sap.engine.core.thread.execution.CentralExecutor$SingleThread.run(CentralExecutor.java:328)

Caused by: java.lang.NullPointerException: while trying to invoke the method javax.xml.transform.Templates.newTransformer() of a null object loaded from local variable 'templates'

at com.sapportals.wcm.service.pipeline.tools.JaxpTransformer.process(JaxpTransformer.java:143)

at com.sapportals.wcm.service.pipeline.processor.XSLTProcessor.process(XSLTProcessor.java:221)

at com.sapportals.wcm.service.pipeline.Pipeline.handle(Pipeline.java:280)

... 82 more



Components versions

ENGINEAPI sap.com SAP AG 1000.7.30.13.3.20150519070928 KMC-BC sap.com SAP AG 1000.7.30.13.0.20150301225000 KMC-CM sap.com SAP AG 1000.7.30.13.2.20150611082059 KMC-COLL sap.com SAP AG 1000.7.30.13.0.20150319061200 KMC-WPC sap.com SAP AG 1000.7.30.13.0.20150319061200


Thank you

best regards,

Joana

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Posted on Jan 13, 2016 at 09:15 AM

    Hi Joana,

    Did you try regenerating the News XML form project ?

    I'd suggest that you regenerate all the XML form projects in the XML form builder.

    Regards,

    Tanush

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 13, 2016 at 10:19 AM

    Hi Joana,

    Open the XML form builder and open the NEWS project. then regenerate the same from the file menu. Once you have done this clear the browser cache and try again. It should work.

    Thanks,

    Mahendran B.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.