java.lang.RuntimeException: Failed to transform document

Apereo Issues | Drew Wills | 5 years ago
  1. 0

    I'm not sure why I'm seeing this failure yet (presumably) the builds are running fine on Hudson. Stack trace... [artifact:mvn] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.035 sec <<< FAILURE! [artifact:mvn] testRenderingPipeline(org.jasig.portal.rendering.RenderingPipelineIntegrationTest) Time elapsed: 0.034 s ec <<< ERROR! [artifact:mvn] java.lang.RuntimeException: Failed to transform document [artifact:mvn] at org.jasig.portal.rendering.xslt.XSLTComponent.getEventReader(XSLTComponent.java:155) [artifact:mvn] at org.jasig.portal.rendering.LoggingStAXComponent.getEventReader(LoggingStAXComponent.java:79) [artifact:mvn] at org.jasig.portal.rendering.StAXSerializingComponent.getEventReader(StAXSerializingComponent.java:92) [artifact:mvn] at org.jasig.portal.rendering.RenderingPipelineIntegrationTest.testRenderingPipeline(RenderingPipelineIn tegrationTest.java:149) [artifact:mvn] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [artifact:mvn] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [artifact:mvn] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [artifact:mvn] at java.lang.reflect.Method.invoke(Method.java:597) [artifact:mvn] at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:45) [artifact:mvn] at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15) [artifact:mvn] at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:42) [artifact:mvn] at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20) [artifact:mvn] at org.springframework.test.context.junit4.statements.RunBeforeTestMethodCallbacks.evaluate(RunBeforeTes tMethodCallbacks.java:74) [artifact:mvn] at org.springframework.test.context.junit4.statements.RunAfterTestMethodCallbacks.evaluate(RunAfterTestM ethodCallbacks.java:82) [artifact:mvn] at org.springframework.test.context.junit4.statements.SpringRepeat.evaluate(SpringRepeat.java:72) [artifact:mvn] at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java :231) [artifact:mvn] at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:47) [artifact:mvn] at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231) [artifact:mvn] at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60) [artifact:mvn] at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229) [artifact:mvn] at org.junit.runners.ParentRunner.access$000(ParentRunner.java:50) [artifact:mvn] at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222) [artifact:mvn] at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTest ClassCallbacks.java:61) [artifact:mvn] at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestCl assCallbacks.java:70) [artifact:mvn] at org.junit.runners.ParentRunner.run(ParentRunner.java:300) [artifact:mvn] at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:174) [artifact:mvn] at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:53) [artifact:mvn] at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:123) [artifact:mvn] at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:104) [artifact:mvn] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [artifact:mvn] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [artifact:mvn] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [artifact:mvn] at java.lang.reflect.Method.invoke(Method.java:597) [artifact:mvn] at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:164) [artifact:mvn] at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:110) [artifact:mvn] at org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:172) [artifact:mvn] at org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcessWhenForked(SurefireStarter.java:10 4) [artifact:mvn] at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:70) [artifact:mvn] Caused by: javax.xml.transform.TransformerException: java.lang.NullPointerException [artifact:mvn] at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:716) [artifact:mvn] at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:313) [artifact:mvn] at org.jasig.portal.rendering.xslt.XSLTComponent.getEventReader(XSLTComponent.java:151) [artifact:mvn] ... 37 more [artifact:mvn] Caused by: java.lang.NullPointerException [artifact:mvn] at com.sun.org.apache.xalan.internal.xsltc.runtime.BasisLibrary.copyNodes(BasisLibrary.java:1140) [artifact:mvn] at com.sun.org.apache.xalan.internal.xsltc.runtime.BasisLibrary.nodeList2Iterator(BasisLibrary.java:1240 ) [artifact:mvn] at universality.skinResources() [artifact:mvn] at universality.template$dot$3() [artifact:mvn] at universality.applyTemplates() [artifact:mvn] at universality.applyTemplates() [artifact:mvn] at universality.transform() [artifact:mvn] at com.sun.org.apache.xalan.internal.xsltc.runtime.AbstractTranslet.transform(AbstractTranslet.java:603) [artifact:mvn] at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:709) [artifact:mvn] ... 39 more And interestingly... attempting some diagnosis I found a (somewhat) recent change the the skinResources template (resourcesTemplates.xsl) that LOOKS LIKE it would cause an error... C:\Users\awills\clients\ohio\portal\trunk\jasig\uPortal4>svn diff -r 21800:21801 uportal-war\src\main\resources\layout\t heme\resourcesTemplates.xsl Index: uportal-war/src/main/resources/layout/theme/resourcesTemplates.xsl =================================================================== --- uportal-war/src/main/resources/layout/theme/resourcesTemplates.xsl (revision 21800) +++ uportal-war/src/main/resources/layout/theme/resourcesTemplates.xsl (revision 21801) @@ -22,19 +22,29 @@ <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" - xmlns:resources="http://xml.apache.org/xalan/java/org.jasig.portal.web.skin.ResourcesElementsProvider" + xmlns:resources="http://xml.apache.org/xalan/java/org.jasig.portal.web.skin.ResourcesElementsXsltcHelper" exclude-result-prefixes="resources"> <xsl:param name="RESOURCES_ELEMENTS_PROVIDER" /> <xsl:param name="CURRENT_REQUEST" /> - <xsl:variable name="resourceProvider" select="resources:getElmenentsProvider($RESOURCES_ELEMENTS_PROVIDER)" /> - <xsl:variable name="request" select="resources:getHttpServletRequest($CURRENT_REQUEST)" /> - - <xsl:template name="skinResources"> <xsl:param name="path" /> - <xsl:copy-of select="resources:output($resourceProvider, $request, $path)" /> + + <xsl:variable name="resourceHelper" select="resources:getElmenentsProvider($RESOURCES_ELEMENTS_HELPER)" /> + <xsl:variable name="request" select="resources:getHttpServletRequest($CURRENT_REQUEST)" /> + + <xsl:copy-of select="resources:getResourcesXmlFragment($resourceHelper, $request, $path)" /> </xsl:template> + + <xsl:template name="skinParameter"> + <xsl:param name="path" /> + <xsl:param name="name" /> + + <xsl:variable name="resourceHelper" select="resources:getElmenentsProvider($RESOURCES_ELEMENTS_HELPER)" /> + <xsl:variable name="request" select="resources:getHttpServletRequest($CURRENT_REQUEST)" /> + <xsl:value-of select="resources:getResourcesParameter($resourceHelper, $request, $path, $name)" /> + </xsl:template> + </xsl:stylesheet> \ No newline at end of file The <xsl:param> RESOURCES_ELEMENTS_PROVIDER doesn't match the name $RESOURCES_ELEMENTS_HELPER that's actually used in the file. But changing them both to RESOURCES_ELEMENTS_HELPER -- which I chose because that one actually seems to be populated by the code -- doesn't correct the issue.

    Apereo Issues | 5 years ago | Drew Wills
    java.lang.RuntimeException: Failed to transform document
  2. 0

    I'm not sure why I'm seeing this failure yet (presumably) the builds are running fine on Hudson. Stack trace... [artifact:mvn] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.035 sec <<< FAILURE! [artifact:mvn] testRenderingPipeline(org.jasig.portal.rendering.RenderingPipelineIntegrationTest) Time elapsed: 0.034 s ec <<< ERROR! [artifact:mvn] java.lang.RuntimeException: Failed to transform document [artifact:mvn] at org.jasig.portal.rendering.xslt.XSLTComponent.getEventReader(XSLTComponent.java:155) [artifact:mvn] at org.jasig.portal.rendering.LoggingStAXComponent.getEventReader(LoggingStAXComponent.java:79) [artifact:mvn] at org.jasig.portal.rendering.StAXSerializingComponent.getEventReader(StAXSerializingComponent.java:92) [artifact:mvn] at org.jasig.portal.rendering.RenderingPipelineIntegrationTest.testRenderingPipeline(RenderingPipelineIn tegrationTest.java:149) [artifact:mvn] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [artifact:mvn] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [artifact:mvn] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [artifact:mvn] at java.lang.reflect.Method.invoke(Method.java:597) [artifact:mvn] at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:45) [artifact:mvn] at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15) [artifact:mvn] at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:42) [artifact:mvn] at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20) [artifact:mvn] at org.springframework.test.context.junit4.statements.RunBeforeTestMethodCallbacks.evaluate(RunBeforeTes tMethodCallbacks.java:74) [artifact:mvn] at org.springframework.test.context.junit4.statements.RunAfterTestMethodCallbacks.evaluate(RunAfterTestM ethodCallbacks.java:82) [artifact:mvn] at org.springframework.test.context.junit4.statements.SpringRepeat.evaluate(SpringRepeat.java:72) [artifact:mvn] at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java :231) [artifact:mvn] at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:47) [artifact:mvn] at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231) [artifact:mvn] at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60) [artifact:mvn] at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229) [artifact:mvn] at org.junit.runners.ParentRunner.access$000(ParentRunner.java:50) [artifact:mvn] at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222) [artifact:mvn] at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTest ClassCallbacks.java:61) [artifact:mvn] at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestCl assCallbacks.java:70) [artifact:mvn] at org.junit.runners.ParentRunner.run(ParentRunner.java:300) [artifact:mvn] at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:174) [artifact:mvn] at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:53) [artifact:mvn] at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:123) [artifact:mvn] at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:104) [artifact:mvn] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [artifact:mvn] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [artifact:mvn] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [artifact:mvn] at java.lang.reflect.Method.invoke(Method.java:597) [artifact:mvn] at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:164) [artifact:mvn] at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:110) [artifact:mvn] at org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:172) [artifact:mvn] at org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcessWhenForked(SurefireStarter.java:10 4) [artifact:mvn] at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:70) [artifact:mvn] Caused by: javax.xml.transform.TransformerException: java.lang.NullPointerException [artifact:mvn] at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:716) [artifact:mvn] at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:313) [artifact:mvn] at org.jasig.portal.rendering.xslt.XSLTComponent.getEventReader(XSLTComponent.java:151) [artifact:mvn] ... 37 more [artifact:mvn] Caused by: java.lang.NullPointerException [artifact:mvn] at com.sun.org.apache.xalan.internal.xsltc.runtime.BasisLibrary.copyNodes(BasisLibrary.java:1140) [artifact:mvn] at com.sun.org.apache.xalan.internal.xsltc.runtime.BasisLibrary.nodeList2Iterator(BasisLibrary.java:1240 ) [artifact:mvn] at universality.skinResources() [artifact:mvn] at universality.template$dot$3() [artifact:mvn] at universality.applyTemplates() [artifact:mvn] at universality.applyTemplates() [artifact:mvn] at universality.transform() [artifact:mvn] at com.sun.org.apache.xalan.internal.xsltc.runtime.AbstractTranslet.transform(AbstractTranslet.java:603) [artifact:mvn] at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:709) [artifact:mvn] ... 39 more And interestingly... attempting some diagnosis I found a (somewhat) recent change the the skinResources template (resourcesTemplates.xsl) that LOOKS LIKE it would cause an error... C:\Users\awills\clients\ohio\portal\trunk\jasig\uPortal4>svn diff -r 21800:21801 uportal-war\src\main\resources\layout\t heme\resourcesTemplates.xsl Index: uportal-war/src/main/resources/layout/theme/resourcesTemplates.xsl =================================================================== --- uportal-war/src/main/resources/layout/theme/resourcesTemplates.xsl (revision 21800) +++ uportal-war/src/main/resources/layout/theme/resourcesTemplates.xsl (revision 21801) @@ -22,19 +22,29 @@ <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" - xmlns:resources="http://xml.apache.org/xalan/java/org.jasig.portal.web.skin.ResourcesElementsProvider" + xmlns:resources="http://xml.apache.org/xalan/java/org.jasig.portal.web.skin.ResourcesElementsXsltcHelper" exclude-result-prefixes="resources"> <xsl:param name="RESOURCES_ELEMENTS_PROVIDER" /> <xsl:param name="CURRENT_REQUEST" /> - <xsl:variable name="resourceProvider" select="resources:getElmenentsProvider($RESOURCES_ELEMENTS_PROVIDER)" /> - <xsl:variable name="request" select="resources:getHttpServletRequest($CURRENT_REQUEST)" /> - - <xsl:template name="skinResources"> <xsl:param name="path" /> - <xsl:copy-of select="resources:output($resourceProvider, $request, $path)" /> + + <xsl:variable name="resourceHelper" select="resources:getElmenentsProvider($RESOURCES_ELEMENTS_HELPER)" /> + <xsl:variable name="request" select="resources:getHttpServletRequest($CURRENT_REQUEST)" /> + + <xsl:copy-of select="resources:getResourcesXmlFragment($resourceHelper, $request, $path)" /> </xsl:template> + + <xsl:template name="skinParameter"> + <xsl:param name="path" /> + <xsl:param name="name" /> + + <xsl:variable name="resourceHelper" select="resources:getElmenentsProvider($RESOURCES_ELEMENTS_HELPER)" /> + <xsl:variable name="request" select="resources:getHttpServletRequest($CURRENT_REQUEST)" /> + <xsl:value-of select="resources:getResourcesParameter($resourceHelper, $request, $path, $name)" /> + </xsl:template> + </xsl:stylesheet> \ No newline at end of file The <xsl:param> RESOURCES_ELEMENTS_PROVIDER doesn't match the name $RESOURCES_ELEMENTS_HELPER that's actually used in the file. But changing them both to RESOURCES_ELEMENTS_HELPER -- which I chose because that one actually seems to be populated by the code -- doesn't correct the issue.

    Apereo Issues | 5 years ago | Drew Wills
    java.lang.RuntimeException: Failed to transform document
  3. 0

    Android: Saving Map State in Google map

    Stack Overflow | 11 months ago | Junie Negentien
    java.lang.RuntimeException: Unable to resume activity {com.ourThesis.junieNegentien2015/com.ourThesis.junieNegentien2015.MainActivity}: java.lang.NullPointerException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at com.sun.org.apache.xalan.internal.xsltc.runtime.BasisLibrary.copyNodes()
    2. Java RT
      BasisLibrary.copyNodes
      1. com.sun.org.apache.xalan.internal.xsltc.runtime.BasisLibrary.copyNodes(BasisLibrary.java:1140)
      1 frame