[xwiki-devs] Build error of fresh checkout on Windows Vista
Howdy, I've checked out the source code HEAD revision from: http://svn.xwiki.org/svnroot/xwiki/platform/trunks I've installed Maven, setup my .../.m2/settings.xml, and am running "mvn -Pwindows install". The build seems to proceed part way, then one of the tests fails: Running com.xpn.xwiki.tool.xar.XarMojoTest [info] Using the existing package.xml descriptor at [C:\temp\xwiki\tools\xwiki-x ar-plugin\target\test-classes\malformedXml\src\main\resources\package.xml] [error] The existing package.xml is invalid. java.lang.Exception: The supplied document contains no document list at com.xpn.xwiki.tool.xar.XarMojo.getDocumentNamesFromXML(XarMojo.java:2 72) at com.xpn.xwiki.tool.xar.XarMojo.addFilesToArchive(XarMojo.java:321) at com.xpn.xwiki.tool.xar.XarMojo.performArchive(XarMojo.java:124) at com.xpn.xwiki.tool.xar.XarMojo.execute(XarMojo.java:76) Any ideas? -- View this message in context: http://n2.nabble.com/Build-error-of-fresh-checkout-on-Windows-Vista-tp211170... Sent from the XWiki- Dev mailing list archive at Nabble.com.
smithmarkl wrote:
Howdy,
I've checked out the source code HEAD revision from: http://svn.xwiki.org/svnroot/xwiki/platform/trunks
I've installed Maven, setup my .../.m2/settings.xml, and am running "mvn -Pwindows install".
The build seems to proceed part way, then one of the tests fails: Running com.xpn.xwiki.tool.xar.XarMojoTest [info] Using the existing package.xml descriptor at [C:\temp\xwiki\tools\xwiki-x ar-plugin\target\test-classes\malformedXml\src\main\resources\package.xml] [error] The existing package.xml is invalid. java.lang.Exception: The supplied document contains no document list at com.xpn.xwiki.tool.xar.XarMojo.getDocumentNamesFromXML(XarMojo.java:2 72) at com.xpn.xwiki.tool.xar.XarMojo.addFilesToArchive(XarMojo.java:321) at com.xpn.xwiki.tool.xar.XarMojo.performArchive(XarMojo.java:124) at com.xpn.xwiki.tool.xar.XarMojo.execute(XarMojo.java:76)
Any ideas?
Are you sure this is the error stopping the build? This error is normal, it is actually expected in one of the tests. Which project is failing? Check the test reports at target\surefire-reports\ for that project. -- Sergiu Dumitriu http://purl.org/net/sergiu/
In fact, the error is on the ValidXML test... I've just reproduced the error while compiling under Windows XP... Apparently the split function function doesn't like the sourceDir String archivedFilePath = currentFile.getAbsolutePath().split(sourceDir.getAbsolutePath() + File.* separator*)[1];[info] I must leave now, I will take a look at this later if you don't have a quick solution... Using the existing package.xml descriptor at [I:\perso\taf\java\workspace_perso\tools\xwiki-xar-plugin\target\test-classes\validXml\src\main\resources\package.xml] * java.util.regex.PatternSyntaxException*: Unknown character property name {e} near index 4 I:\perso\taf\java\workspace_perso\tools\xwiki-xar-plugin\target\test-classes\validXml\target\classes\ ^ at java.util.regex.Pattern.error(*Pattern.java:1713*) at java.util.regex.Pattern.charPropertyNodeFor(*Pattern.java:2437*) at java.util.regex.Pattern.family(*Pattern.java:2412*) at java.util.regex.Pattern.sequence(*Pattern.java:1831*) at java.util.regex.Pattern.expr(*Pattern.java:1752*) at java.util.regex.Pattern.compile(*Pattern.java:1460*) at java.util.regex.Pattern.<init>(*Pattern.java:1133*) at java.util.regex.Pattern.compile(*Pattern.java:823*) at java.lang.String.split(*String.java:2293*) at java.lang.String.split(*String.java:2335*) at com.xpn.xwiki.tool.xar.XarMojo.addFilesToArchive(*XarMojo.java:340*) at com.xpn.xwiki.tool.xar.XarMojo.performArchive(*XarMojo.java:124*) at com.xpn.xwiki.tool.xar.XarMojo.execute(*XarMojo.java:76*) at com.xpn.xwiki.tool.xar.XarMojoTest.testValidXml(*XarMojoTest.java:136*) 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:597*) at junit.framework.TestCase.runTest(*TestCase.java:164*) at junit.framework.TestCase.runBare(*TestCase.java:130*) at junit.framework.TestResult$1.protect(*TestResult.java:106*) at junit.framework.TestResult.runProtected(*TestResult.java:124*) at junit.framework.TestResult.run(*TestResult.java:109*) at junit.framework.TestCase.run(*TestCase.java:120*) at junit.framework.TestSuite.runTest(*TestSuite.java:230*) at junit.framework.TestSuite.run(*TestSuite.java:225*) 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:597*) at org.apache.maven.surefire.junit.JUnitTestSet.execute(* JUnitTestSet.java:213*) at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(* AbstractDirectoryTestSuite.java:140*) at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(* AbstractDirectoryTestSuite.java:127*) at org.apache.maven.surefire.Surefire.run(*Surefire.java:177*) 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:597*) at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(* SurefireBooter.java:338*) at org.apache.maven.surefire.booter.SurefireBooter.main(* SurefireBooter.java:997*) [info] Generating package.xml descriptor at [I:\perso\taf\java\workspace_perso\tools\xwiki-xar-plugin\target\test-classes\noXml\target\classes\package.xml] [INFO] Building zip: I:\perso\taf\java\workspace_perso\tools\xwiki-xar-plugin\target\test-classes\noXml\target\xwiki-enterprise-wiki-test.xar Tests run: 3, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 10.797 sec <<< FAILURE! Results : Failed tests: testValidXml(com.xpn.xwiki.tool.xar.XarMojoTest) Tests run: 3, Failures: 1, Errors: 0, Skipped: 0 On Mon, Jan 5, 2009 at 6:44 AM, Sergiu Dumitriu <[email protected]> wrote:
smithmarkl wrote:
Howdy,
I've checked out the source code HEAD revision from: http://svn.xwiki.org/svnroot/xwiki/platform/trunks
I've installed Maven, setup my .../.m2/settings.xml, and am running "mvn -Pwindows install".
The build seems to proceed part way, then one of the tests fails: Running com.xpn.xwiki.tool.xar.XarMojoTest [info] Using the existing package.xml descriptor at [C:\temp\xwiki\tools\xwiki-x
ar-plugin\target\test-classes\malformedXml\src\main\resources\package.xml]
[error] The existing package.xml is invalid. java.lang.Exception: The supplied document contains no document list at com.xpn.xwiki.tool.xar.XarMojo.getDocumentNamesFromXML(XarMojo.java:2 72) at com.xpn.xwiki.tool.xar.XarMojo.addFilesToArchive(XarMojo.java:321) at com.xpn.xwiki.tool.xar.XarMojo.performArchive(XarMojo.java:124) at com.xpn.xwiki.tool.xar.XarMojo.execute(XarMojo.java:76)
Any ideas?
Are you sure this is the error stopping the build? This error is normal, it is actually expected in one of the tests. Which project is failing? Check the test reports at target\surefire-reports\ for that project. -- Sergiu Dumitriu http://purl.org/net/sergiu/ _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
Pascal Voitot wrote:
In fact, the error is on the ValidXML test... I've just reproduced the error while compiling under Windows XP... Apparently the split function function doesn't like the sourceDir String archivedFilePath = currentFile.getAbsolutePath().split(sourceDir.getAbsolutePath() + File.* separator*)[1];[info]
Hi Pascal, That's correct. Digging into the surefire-reports directory, what I'm seeing is: <failure message="The execution failed with the following error : Error while creating XAR file" type="junit.framework.AssertionFailedError">junit.framework.AssertionFailedError: The execution failed with the following error : Error while creating XAR file at junit.framework.Assert.fail(Assert.java:47) at com.xpn.xwiki.tool.xar.XarMojoTest.testValidXml(XarMojoTest.java:138) </failure> <system-err>java.util.regex.PatternSyntaxException: Illegal hexadecimal escape sequence near index 9 C:\temp\xwiki\tools\xwiki-xar-plugin\target\test-classes\validXml\target\classes\ "index 9" would mean it's upset about "\x". It almost feels like it's unhappy about the backslashes (because they aren't escaped). -- View this message in context: http://n2.nabble.com/Build-error-of-fresh-checkout-on-Windows-Vista-tp211170... Sent from the XWiki- Dev mailing list archive at Nabble.com.
On Mon, Jan 5, 2009 at 2:52 PM, smithmarkl <[email protected]> wrote:
Pascal Voitot wrote:
In fact, the error is on the ValidXML test... I've just reproduced the error while compiling under Windows XP... Apparently the split function function doesn't like the sourceDir String archivedFilePath = currentFile.getAbsolutePath().split(sourceDir.getAbsolutePath() + File.* separator*)[1];[info]
Hi Pascal,
That's correct.
Digging into the surefire-reports directory, what I'm seeing is: <failure message="The execution failed with the following error : Error while creating XAR file"
type="junit.framework.AssertionFailedError">junit.framework.AssertionFailedError: The execution failed with the following error : Error while creating XAR file at junit.framework.Assert.fail(Assert.java:47) at com.xpn.xwiki.tool.xar.XarMojoTest.testValidXml(XarMojoTest.java:138) </failure>
<system-err>java.util.regex.PatternSyntaxException: Illegal hexadecimal escape sequence near index 9
C:\temp\xwiki\tools\xwiki-xar-plugin\target\test-classes\validXml\target\classes\
"index 9" would mean it's upset about "\x". It almost feels like it's unhappy about the backslashes (because they aren't escaped).
hmmmmmmmmmmmmm windows is our friend, isnt it ? :) Will try to find a way around this tomorrow as I would like to compile everything cleanly on windows also even if I usually work on Linux...
-- View this message in context: http://n2.nabble.com/Build-error-of-fresh-checkout-on-Windows-Vista-tp211170... Sent from the XWiki- Dev mailing list archive at Nabble.com.
_______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
I created an JIRA issue for this bug and attached my ridiculous patch on it :) http://jira.xwiki.org/jira/browse/XPXARPLUGIN-11 (I'm not sure I created the patch using the right root directory) best regards Pascal On Mon, Jan 5, 2009 at 11:54 PM, Pascal Voitot <[email protected]>wrote:
On Mon, Jan 5, 2009 at 2:52 PM, smithmarkl <[email protected]> wrote:
Pascal Voitot wrote:
In fact, the error is on the ValidXML test... I've just reproduced the error while compiling under Windows XP... Apparently the split function function doesn't like the sourceDir String archivedFilePath = currentFile.getAbsolutePath().split(sourceDir.getAbsolutePath() + File.* separator*)[1];[info]
Hi Pascal,
That's correct.
Digging into the surefire-reports directory, what I'm seeing is: <failure message="The execution failed with the following error : Error while creating XAR file"
type="junit.framework.AssertionFailedError">junit.framework.AssertionFailedError: The execution failed with the following error : Error while creating XAR file at junit.framework.Assert.fail(Assert.java:47) at com.xpn.xwiki.tool.xar.XarMojoTest.testValidXml(XarMojoTest.java:138) </failure>
<system-err>java.util.regex.PatternSyntaxException: Illegal hexadecimal escape sequence near index 9
C:\temp\xwiki\tools\xwiki-xar-plugin\target\test-classes\validXml\target\classes\
"index 9" would mean it's upset about "\x". It almost feels like it's unhappy about the backslashes (because they aren't escaped).
hmmmmmmmmmmmmm windows is our friend, isnt it ? :) Will try to find a way around this tomorrow as I would like to compile everything cleanly on windows also even if I usually work on Linux...
-- View this message in context: http://n2.nabble.com/Build-error-of-fresh-checkout-on-Windows-Vista-tp211170... Sent from the XWiki- Dev mailing list archive at Nabble.com.
_______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
participants (3)
-
Pascal Voitot -
Sergiu Dumitriu -
smithmarkl