ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Antoine Levy Lambert <anto...@gmx.de>
Subject Re: RegExp help needed!
Date Mon, 07 Dec 2009 13:31:40 GMT
Hello,

the error below would not be an ant of xmltask error. The message

Invalid byte 3 of 3-byte UTF-8 sequence

 means that your XML file is not matching the UTF-8 convention. Does 
your XML file specify UTF-8 in the XML declaration ?

Can you read your XML file using another tool than ant, for instance a 
web browser, or the XML editor of Eclipse or another Java based 
development environment ?

Regards,

Antopine

Jowie wrote:
> Doh... Looks like I have a problem using xmltask anyway unfortunately... The
> GetAllQuestions.xml is too big for it to handle :-( it's nearly 1MB in size.
> At least I'm pretty sure that's why, since if I run another piece of XML
> which is a lot smaller it works fine. But in this case I get the error:
>
>
>   [xmltask]
> com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException:
> Invalid byte 3 of 3-byte UTF-8 sequence.
>   [xmltask] 	at
> com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.invalidByte(Unknown
> Source)
>   [xmltask] 	at
> com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.read(Unknown Source)
>   [xmltask] 	at
> com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.load(Unknown
> Source)
>   [xmltask] 	at
> com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.skipChar(Unknown
> Source)
>   [xmltask] 	at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown
> Source)
>   [xmltask] 	at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown
> Source)
>   [xmltask] 	at
> com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(Unknown
> Source)
>   [xmltask] 	at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
> Source)
>   [xmltask] 	at
> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown
> Source)
>   [xmltask] 	at
> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown
> Source)
>   [xmltask] 	at
> com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
>   [xmltask] 	at
> com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(Unknown Source)
>   [xmltask] 	at
> com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Unknown
> Source)
>   [xmltask] 	at
> com.oopsconsultancy.xmltask.ant.XmlTask.documentFromStream(XmlTask.java:343)
>   [xmltask] 	at
> com.oopsconsultancy.xmltask.ant.XmlTask.documentFromFile(XmlTask.java:387)
>   [xmltask] 	at
> com.oopsconsultancy.xmltask.ant.XmlTask.access$000(XmlTask.java:27)
>   [xmltask] 	at
> com.oopsconsultancy.xmltask.ant.XmlTask$InputFile.getDocument(XmlTask.java:203)
>   [xmltask] 	at
> com.oopsconsultancy.xmltask.ant.XmlTask.execute(XmlTask.java:638)
>   [xmltask] 	at
> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
>   [xmltask] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>   [xmltask] 	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>   [xmltask] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
> Source)
>   [xmltask] 	at java.lang.reflect.Method.invoke(Unknown Source)
>   [xmltask] 	at
> org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
>   [xmltask] 	at org.apache.tools.ant.Task.perform(Task.java:348)
>   [xmltask] 	at org.apache.tools.ant.Target.execute(Target.java:357)
>   [xmltask] 	at org.apache.tools.ant.Target.performTasks(Target.java:385)
>   [xmltask] 	at
> org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
>   [xmltask] 	at
> org.apache.tools.ant.Project.executeTarget(Project.java:1306)
>   [xmltask] 	at
> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
>   [xmltask] 	at
> org.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
>   [xmltask] 	at
> org.apache.tools.ant.Project.executeTargets(Project.java:1189)
>   [xmltask] 	at
> org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:423)
>   [xmltask] 	at
> org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:137)
>
> BUILD FAILED
> C:\Work\LSIS\Brain Games\Main\ant\update_offline.xml:77: Invalid byte 3 of
> 3-byte UTF-8 sequence.
>
>
> ----
>
>
> Bad times :(
>   


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message