[shrinkwrap-issues] [JBoss JIRA] (SHRINKDESC-137) Compilation fails under windows

Michal Matloka (JIRA) jira-events at lists.jboss.org
Sun Dec 2 16:35:21 EST 2012


    [ https://issues.jboss.org/browse/SHRINKDESC-137?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12738748#comment-12738748 ] 

Michal Matloka commented on SHRINKDESC-137:
-------------------------------------------

I have made simple test - I've added to every getter in MetadataParserPath
{noformat}
 return "file:///" +
{noformat}
And then it passes through that step! But then
{noformat}
-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running org.jboss.shrinkwrap.descriptor.metadata.task.AntTaskParserTestCase
Tests run: 6, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 2.074 sec <<< FAILURE!

Results :

Tests in error:
  testNestedElements(org.jboss.shrinkwrap.descriptor.metadata.task.AntTaskParserTestCase): javax.xml.transform.TransformerFactory.newInstance(Ljava/lang/String;Ljava/lang/ClassLoader;)Ljavax/xml/transform/TransformerFactory;
  testWithAuthors(org.jboss.shrinkwrap.descriptor.metadata.task.AntTaskParserTestCase): javax.xml.transform.TransformerFactory.newInstance(Ljava/lang/String;Ljava/lang/ClassLoader;)Ljavax/xml/transform/TransformerFactory;
{noformat}
{noformat}
javax.xml.transform.TransformerFactory.newInstance(Ljava/lang/String;Ljava/lang/ClassLoader;)Ljavax/xml/transform/TransformerFactory;
	at org.jboss.shrinkwrap.descriptor.extension.ant.task.MetadataParserTask.execute(MetadataParserTask.java:185)
	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:592)
	at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
	at org.apache.tools.ant.Task.perform(Task.java:348)
	at org.apache.tools.ant.Target.execute(Target.java:392)
	at org.apache.tools.ant.Target.performTasks(Target.java:413)
	at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
	at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
	at org.apache.tools.ant.BuildFileTest.executeTarget(BuildFileTest.java:324)
	at org.jboss.shrinkwrap.descriptor.metadata.task.AntTaskParserTestCase.testNestedElements(AntTaskParserTestCase.java:55)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:592)
	at junit.framework.TestCase.runTest(TestCase.java:168)
	at junit.framework.TestCase.runBare(TestCase.java:134)
	at junit.framework.TestResult$1.protect(TestResult.java:110)
	at junit.framework.TestResult.runProtected(TestResult.java:128)
	at junit.framework.TestResult.run(TestResult.java:113)
	at junit.framework.TestCase.run(TestCase.java:124)
	at junit.framework.TestSuite.runTest(TestSuite.java:232)
	at junit.framework.TestSuite.run(TestSuite.java:227)
	at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83)
	at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:53)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:123)
	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:104)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:592)
	at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:164)
	at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:110)
	at org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:175)
	at org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcessWhenForked(SurefireStarter.java:107)
	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:68)
Caused by: java.lang.NoSuchMethodError: javax.xml.transform.TransformerFactory.newInstance(Ljava/lang/String;Ljava/lang/ClassLoader;)Ljavax/xml/transform/TransformerFactory;
	at org.jboss.shrinkwrap.descriptor.metadata.xslt.XsltTransformer.simpleTransform(XsltTransformer.java:84)
	at org.jboss.shrinkwrap.descriptor.metadata.MetadataParser.generateCode(MetadataParser.java:186)
	at org.jboss.shrinkwrap.descriptor.metadata.MetadataParser.parse(MetadataParser.java:161)
	at org.jboss.shrinkwrap.descriptor.extension.ant.task.MetadataParserTask.execute(MetadataParserTask.java:181)
	... 38 more
{noformat}
                
> Compilation fails under windows
> -------------------------------
>
>                 Key: SHRINKDESC-137
>                 URL: https://issues.jboss.org/browse/SHRINKDESC-137
>             Project: ShrinkWrap Descriptors
>          Issue Type: Bug
>          Components: gen, metadata-parser
>    Affects Versions: 2.0.0-alpha-4
>         Environment: win7 x64
>            Reporter: Michal Matloka
>            Assignee: Michal Matloka
>            Priority: Critical
>
> mvn clean install results in
> {noformat}
> [INFO]
> [INFO] --- shrinkwrap-descriptors-metadata-parser:2.0.0-alpha-5-SNAPSHOT:parse (executionJ2ee13) @ shrinkwrap-descriptors-gen ---
> Error at xsl:result-document on line 249 of :
>   Resolved URL is malformed: unknown protocol: i
> [INFO] ------------------------------------------------------------------------
> {noformat}
> I've tried to upgrade to saxon-he 9.4, but under that version other error appears:
> {noformat}
> [INFO] --- shrinkwrap-descriptors-metadata-parser:2.0.0-alpha-5-SNAPSHOT:parse (executionJ2ee13) @ shrinkwrap-descriptors-gen ---
> Error on line 246
>   XPTY0004: Required item type of value of variable $gVerbose is xs:boolean; supplied value
>   has item type xs:string
>   at xsl:call-template name="WriteInterface2" (#74)
>   at xsl:call-template name="GenerateInterfaces" (#58)
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the shrinkwrap-issues mailing list