ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 4936] New: - fixcrlf throwing java.io.IOException: Mark invalid
Date Fri, 16 Nov 2001 23:41:37 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4936>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4936

fixcrlf throwing java.io.IOException: Mark invalid

           Summary: fixcrlf throwing java.io.IOException: Mark invalid
           Product: Ant
           Version: 1.4.1
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Critical
          Priority: Other
         Component: Core tasks
        AssignedTo: ant-dev@jakarta.apache.org
        ReportedBy: joel.hughes@redknee.com


task [fixcrlf] options: eol=lf tab=asis eof=remove tablength=8
Generates java.io.IOException: Mark invalid
Exception attached below.
Exception occurs with and without nested <include/>, suggesting it is not a 
problem with the processing of any one particular file.  This issues is 
occuring across the majority of our builds.  A few do not exibit this problem; 
yet to understand the differences.  Broken builds are broken on all development 
machines.
Also, the exception occurs regardless of the attribute assignment. We've tried 
no attributes explicitly assigned and all the possible enumerations with no 
change in behaviour. When we assign an invalid enumeration, the task fails with 
an expected invalid argument exception "aa is not a legal value for this 
attribute".
And to confuse matters more, this same operation succeeds earlier in the same 
build.  I duplicated the first <fixcrlf/> task to test if the second always 
failed, but this was not the case.  Also moved the offending operation earlier 
in the build, but it refused to fail at that point.

Offending operation:
		<fixcrlf srcdir="${deploy.dir}" eol="lf" eof="remove">	
			<include name="bin/**"/>
			<include name="etc/**"/>
			<include name="sql/**"/>
			<include name="doc/*.txt"/>
			<include name="cfg/**"/>
			<include name="var/**"/>
		</fixcrlf>
c:\redknee\product\ussd\build.xml:275: java.io.IOException: Mark invalid
        at org.apache.tools.ant.taskdefs.FixCRLF$OneLiner.nextLine(FixCRLF.java:
909)
        at org.apache.tools.ant.taskdefs.FixCRLF$OneLiner.nextElement(FixCRLF.ja
va:938)
        at org.apache.tools.ant.taskdefs.FixCRLF.processFile(FixCRLF.java:431)
        at org.apache.tools.ant.taskdefs.FixCRLF.execute(FixCRLF.java:347)
        at org.apache.tools.ant.Task.perform(Task.java:217)
        at org.apache.tools.ant.Target.execute(Target.java:184)
        at java.lang.reflect.Method.invoke(Native Method)
        at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:21
6)
        at org.mozilla.javascript.ScriptRuntime.call(ScriptRuntime.java:1216)
        at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:1679)
        at org.mozilla.javascript.InterpretedScript.call(InterpretedScript.java:
63)
        at org.mozilla.javascript.InterpretedScript.exec(InterpretedScript.java:
54)
        at org.mozilla.javascript.Context.evaluateReader(Context.java:741)
        at org.mozilla.javascript.Context.evaluateString(Context.java:705)
        at com.ibm.bsf.engines.javascript.JavaScriptEngine.eval(JavaScriptEngine
.java:83)
        at com.ibm.bsf.util.BSFEngineImpl.exec(BSFEngineImpl.java:106)
        at com.ibm.bsf.BSFManager.exec(BSFManager.java:479)
        at org.apache.tools.ant.taskdefs.optional.Script.execute(Script.java:109
)
        at org.apache.tools.ant.Task.perform(Task.java:217)
        at org.apache.tools.ant.Target.execute(Target.java:184)
        at org.apache.tools.ant.Target.performTasks(Target.java:202)
        at org.apache.tools.ant.Project.executeTarget(Project.java:601)
        at org.apache.tools.ant.Project.executeTargets(Project.java:560)
        at org.apache.tools.ant.Main.runBuild(Main.java:454)
        at org.apache.tools.ant.Main.start(Main.java:153)
        at org.apache.tools.ant.Main.main(Main.java:176)
--- Nested Exception ---
java.io.IOException: Mark invalid
        at java.io.BufferedReader.reset(BufferedReader.java:485)
        at org.apache.tools.ant.taskdefs.FixCRLF$OneLiner.nextLine(FixCRLF.java:
857)
        at org.apache.tools.ant.taskdefs.FixCRLF$OneLiner.nextElement(FixCRLF.ja
va:938)
        at org.apache.tools.ant.taskdefs.FixCRLF.processFile(FixCRLF.java:431)
        at org.apache.tools.ant.taskdefs.FixCRLF.execute(FixCRLF.java:347)
        at org.apache.tools.ant.Task.perform(Task.java:217)
        at org.apache.tools.ant.Target.execute(Target.java:184)
        at java.lang.reflect.Method.invoke(Native Method)
        at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:21
6)
        at org.mozilla.javascript.ScriptRuntime.call(ScriptRuntime.java:1216)
        at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:1679)
        at org.mozilla.javascript.InterpretedScript.call(InterpretedScript.java:
63)
        at org.mozilla.javascript.InterpretedScript.exec(InterpretedScript.java:
54)
        at org.mozilla.javascript.Context.evaluateReader(Context.java:741)
        at org.mozilla.javascript.Context.evaluateString(Context.java:705)
        at com.ibm.bsf.engines.javascript.JavaScriptEngine.eval(JavaScriptEngine
.java:83)
        at com.ibm.bsf.util.BSFEngineImpl.exec(BSFEngineImpl.java:106)
        at com.ibm.bsf.BSFManager.exec(BSFManager.java:479)
        at org.apache.tools.ant.taskdefs.optional.Script.execute(Script.java:109
)
        at org.apache.tools.ant.Task.perform(Task.java:217)
        at org.apache.tools.ant.Target.execute(Target.java:184)
        at org.apache.tools.ant.Target.performTasks(Target.java:202)
        at org.apache.tools.ant.Project.executeTarget(Project.java:601)
        at org.apache.tools.ant.Project.executeTargets(Project.java:560)
        at org.apache.tools.ant.Main.runBuild(Main.java:454)
        at org.apache.tools.ant.Main.start(Main.java:153)
        at org.apache.tools.ant.Main.main(Main.java:176)

--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message