[Upgrade to 2.3] Html test results are missing

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

[Upgrade to 2.3] Html test results are missing

rsom@certifydatasystems.com
Hi all,

I tried both approaches:
`grails test-app unit:`

as well as

`grails` and then running `test-app unit:` in the interactive shell.

I get the xml and text results. I don't get html results. In the html directory, all I see is `all.html` which is a 0 byte file.

Has anyone else encountered this? Is there a known fix for it?

TIA

R,
rahul

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|

Re: [Upgrade to 2.3] Html test results are missing

rsom@certifydatasystems.com
I think I've found the cause.  Any suggestions on getting around it?

| Error Error running forked test-app: Errors while applying transformations: Fatal error during transformation (NOTE: Stack trace has been filtered. Use --verbose to see entire trace.)
Fatal error during transformation
        at org.apache.tools.ant.taskdefs.XSLTProcess.handleTransformationError(XSLTProcess.java:1274)
        at org.apache.tools.ant.taskdefs.XSLTProcess.process(XSLTProcess.java:863)
        at org.apache.tools.ant.taskdefs.XSLTProcess.execute(XSLTProcess.java:389)
        at org.apache.tools.ant.taskdefs.optional.junit.AggregateTransformer.transform(AggregateTransformer.java:265)
        at org.apache.tools.ant.taskdefs.optional.junit.XMLResultAggregator.execute(XMLResultAggregator.java:158)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
        at org.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1259)
        at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
        at org.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1259)
        at org.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1259)
Caused by: Fatal error during transformation
        at org.apache.tools.ant.taskdefs.optional.TraXLiaison.fatalError(TraXLiaison.java:531)
        at org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1329)
        at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:673)
        at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1192)
        at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1170)
        at org.apache.tools.ant.taskdefs.optional.TraXLiaison.transform(TraXLiaison.java:195)
        at org.apache.tools.ant.taskdefs.XSLTProcess.process(XSLTProcess.java:853)
        ... 8 more
Caused by: javax.xml.transform.TransformerException: Fatal error during transformation
        at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2341)
        at org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(TransformerImpl.java:2202)
        at org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1276)
        ... 13 more
Caused by: Fatal error during transformation
        at org.apache.tools.ant.taskdefs.optional.TraXLiaison.fatalError(TraXLiaison.java:531)
        at org.apache.xalan.templates.ElemExtensionCall.execute(ElemExtensionCall.java:246)
        at org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes(ElemApplyTemplates.java:395)
        at org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.java:177)
        at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2336)
        ... 15 more
Caused by: javax.xml.transform.TransformerException: tried to access class org.apache.xml.serializer.XSLOutputAttributes from class org.apache.xalan.transformer.TransformerImpl
        at org.apache.xalan.extensions.ExtensionHandlerJavaClass.processElement(ExtensionHandlerJavaClass.java:504)
        at org.apache.xalan.templates.ElemExtensionCall.execute(ElemExtensionCall.java:230)
        ... 18 more
Caused by: java.lang.IllegalAccessError: tried to access class org.apache.xml.serializer.XSLOutputAttributes from class org.apache.xalan.transformer.TransformerImpl
        at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2387)
        at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2255)
        at org.apache.xalan.lib.Redirect.write(Redirect.java:212)
        at org.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1259)
        at org.apache.xalan.extensions.ExtensionHandlerJavaClass.processElement(ExtensionHandlerJavaClass.java:495)
        ... 19 more
| Error Error running forked test-app: Errors while applying transformations: Fatal error during transformation
| Error Forked Grails VM exited with error




On Sat 09/14/13 11:20 AM , Rahul Somasunderam <[hidden email]> wrote:

> Hi all,
> I tried both approaches:
> `grails test-app unit:`
> as well as
> `grails` and then running `test-app unit:` in the interactive shell.
> I get the xml and text results. I don't get html results. In the html
> directory, all I see is `all.html` which is a 0 byte file.
> Has anyone else encountered this? Is there a known fix for it?
> TIA
> R,
> rahul
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
> http://xircles.codehaus.org/manage_email
>
>

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|

Re: [Upgrade to 2.3] Html test results are missing

Graeme Rocher-2
Please raise a JIRA issue with steps to reproduce.

Thanks


On Sun, Sep 15, 2013 at 7:47 PM, Rahul Somasunderam <[hidden email]> wrote:
I think I've found the cause.  Any suggestions on getting around it?

| Error Error running forked test-app: Errors while applying transformations: Fatal error during transformation (NOTE: Stack trace has been filtered. Use --verbose to see entire trace.)
Fatal error during transformation
        at org.apache.tools.ant.taskdefs.XSLTProcess.handleTransformationError(XSLTProcess.java:1274)
        at org.apache.tools.ant.taskdefs.XSLTProcess.process(XSLTProcess.java:863)
        at org.apache.tools.ant.taskdefs.XSLTProcess.execute(XSLTProcess.java:389)
        at org.apache.tools.ant.taskdefs.optional.junit.AggregateTransformer.transform(AggregateTransformer.java:265)
        at org.apache.tools.ant.taskdefs.optional.junit.XMLResultAggregator.execute(XMLResultAggregator.java:158)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
        at org.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1259)
        at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
        at org.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1259)
        at org.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1259)
Caused by: Fatal error during transformation
        at org.apache.tools.ant.taskdefs.optional.TraXLiaison.fatalError(TraXLiaison.java:531)
        at org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1329)
        at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:673)
        at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1192)
        at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1170)
        at org.apache.tools.ant.taskdefs.optional.TraXLiaison.transform(TraXLiaison.java:195)
        at org.apache.tools.ant.taskdefs.XSLTProcess.process(XSLTProcess.java:853)
        ... 8 more
Caused by: javax.xml.transform.TransformerException: Fatal error during transformation
        at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2341)
        at org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(TransformerImpl.java:2202)
        at org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1276)
        ... 13 more
Caused by: Fatal error during transformation
        at org.apache.tools.ant.taskdefs.optional.TraXLiaison.fatalError(TraXLiaison.java:531)
        at org.apache.xalan.templates.ElemExtensionCall.execute(ElemExtensionCall.java:246)
        at org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes(ElemApplyTemplates.java:395)
        at org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.java:177)
        at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2336)
        ... 15 more
Caused by: javax.xml.transform.TransformerException: tried to access class org.apache.xml.serializer.XSLOutputAttributes from class org.apache.xalan.transformer.TransformerImpl
        at org.apache.xalan.extensions.ExtensionHandlerJavaClass.processElement(ExtensionHandlerJavaClass.java:504)
        at org.apache.xalan.templates.ElemExtensionCall.execute(ElemExtensionCall.java:230)
        ... 18 more
Caused by: java.lang.IllegalAccessError: tried to access class org.apache.xml.serializer.XSLOutputAttributes from class org.apache.xalan.transformer.TransformerImpl
        at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2387)
        at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2255)
        at org.apache.xalan.lib.Redirect.write(Redirect.java:212)
        at org.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1259)
        at org.apache.xalan.extensions.ExtensionHandlerJavaClass.processElement(ExtensionHandlerJavaClass.java:495)
        ... 19 more
| Error Error running forked test-app: Errors while applying transformations: Fatal error during transformation
| Error Forked Grails VM exited with error




On Sat 09/14/13 11:20 AM , Rahul Somasunderam <[hidden email]> wrote:

> Hi all,
> I tried both approaches:
> `grails test-app unit:`
> as well as
> `grails` and then running `test-app unit:` in the interactive shell.
> I get the xml and text results. I don't get html results. In the html
> directory, all I see is `all.html` which is a 0 byte file.
> Has anyone else encountered this? Is there a known fix for it?
> TIA
> R,
> rahul
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
> http://xircles.codehaus.org/manage_email
>
>

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email





--
Graeme Rocher
Grails Project Lead
SpringSource
Reply | Threaded
Open this post in threaded view
|

Re: [Upgrade to 2.3] Html test results are missing

lance.staples
In reply to this post by rsom@certifydatasystems.com
We ran into something similar.  I didn't grab the entire stack trace but the error message was the same.  In our case the problem stemmed from using the simple order API from cybersource.

http://www.cybersource.com/developers/develop/integration_methods/simple_order_and_soap_toolkit_api/java_all_platforms/

They have a series of jars we were required to drop into our lib.  One of which was xalan.jar.  My very uneducated guess is that it was stomping on the serializer at grails-2.3.0\lib\xalan

Anyway, we tossed the version provided by cybersource and upgraded to the latest version.  This resolved the issue with generating test reports and still worked with the simple order API.

Not sure if this is your use case but thought I would mention what we found.    

Lance
Reply | Threaded
Open this post in threaded view
|

Re: [Upgrade to 2.3] Html test results are missing

flaz14
In reply to this post by rsom@certifydatasystems.com
I've faced similar issue within the following environment:
  • Oracle JDK 1.7.0_80
  • Maven 3.3.3
  • Gradle 1.4
  • Grails 2.3.5
I didn't get 0 bytes all.html, but

Error Error running forked test-app: Errors while applying transformations: Fatal error during transformation

message followed by long stacktrace).

I've noticed that tests run OK, the issues was related to XSLT routines during HTML report construction. So I took a look at XML libraries. After I excluded jaxen dependency from BuildConfig.groovy

compile('com.mycompany.myapp:1.1.0') { excludes 'jaxen' }

everything works fine.