You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by ma...@pnc.com on 2004/08/23 19:49:14 UTC

Strange Java Compile error

I am having an issue with the Java compile command of an ant script.  I get
the following issue:
 [javac]
/var/tmp/ccviews/pp24778_BuildMaster_view/TSC_isc/ISCJ2EEUTIL/Java
Source/com/pnc/tms/smallbusiness/ISCSummaryDashBoard.java
    [javac] error: IO exception sun.io.MalformedInputException
    [javac] 1 error
      [ant] Exiting
/var/tmp/ccviews/pp24778_BuildMaster_view/TSC_isc/APPBuildScripts/isc_ADP_build.xml.

BUILD FAILED
/app/dep/masterBuild.xml:362: The following error occurred while executing
this line:
/var/tmp/ccviews/pp24778_BuildMaster_view/TSC_isc/APPBuildScripts/isc_ADP_build.xml:96:

Compile failed; see the compiler error output for details.
        at
org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:539)
        at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:388)
        at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
        at org.apache.tools.ant.Task.perform(Task.java:364)
        at org.apache.tools.ant.Target.execute(Target.java:341)
        at org.apache.tools.ant.Target.performTasks(Target.java:369)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1062)
        at org.apache.tools.ant.Main.runBuild(Main.java:673)
        at org.apache.tools.ant.Main.startAnt(Main.java:188)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:196)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:55)

Here is a copy of the java compile target of the ant script:
      <!-- Compiles and Creates the ISCJ2EEUTIL.jar file -->
      <target name="create_util_jar" depends="create_prop_jar">
            <javac optimize="true" srcdir="${util_source_dir}/com/pnc"
includes="**/*.java" classpath="${isc_classpath}" destdir="
${util_class_dir}"/>
          <jar jarfile="${local_stage_dir}/jars/${util_jar}" manifest="
${util_source_dir}/META-INF/MANIFEST.MF">
                  <fileset dir="${util_class_dir}" includes="**/*.class"/>
            </jar>
      </target>

I've never seen anything list this
Mark Russell
PNC
412-768-9603



-----------------------------------------
The contents of this email are the property of PNC. If it was not addressed to you, you have no legal right to read it. If you think you received it in error, please notify the sender. Do not forward or copy without permission of the sender.


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


Re: Strange Java Compile error

Posted by Antoine Levy-Lambert <an...@gmx.de>.
Hello,

can it be that you have an encoding issue with your java source files ?
I did a small search in google concerning sun.io.MalformedInputException and
javac.
You may want to see this URL for an example :
http://forum.java.sun.com/thread.jsp?thread=495723&forum=16&message=2337630
Antoine
> I am having an issue with the Java compile command of an ant script.  I
> get
> the following issue:
>  [javac]
> /var/tmp/ccviews/pp24778_BuildMaster_view/TSC_isc/ISCJ2EEUTIL/Java
> Source/com/pnc/tms/smallbusiness/ISCSummaryDashBoard.java
>     [javac] error: IO exception sun.io.MalformedInputException
>     [javac] 1 error
>       [ant] Exiting
>
/var/tmp/ccviews/pp24778_BuildMaster_view/TSC_isc/APPBuildScripts/isc_ADP_build.xml.
> 
> BUILD FAILED
> /app/dep/masterBuild.xml:362: The following error occurred while executing
> this line:
> 


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


Re: Strange Java Compile error

Posted by Alexey Abashev <aa...@diasoft.ru>.
Maybe using some unicode chars in the source????

mark.russel@pnc.com wrote:

>I am having an issue with the Java compile command of an ant script.  I get
>the following issue:
> [javac]
>/var/tmp/ccviews/pp24778_BuildMaster_view/TSC_isc/ISCJ2EEUTIL/Java
>Source/com/pnc/tms/smallbusiness/ISCSummaryDashBoard.java
>    [javac] error: IO exception sun.io.MalformedInputException
>    [javac] 1 error
>      [ant] Exiting
>/var/tmp/ccviews/pp24778_BuildMaster_view/TSC_isc/APPBuildScripts/isc_ADP_build.xml.
>
>BUILD FAILED
>/app/dep/masterBuild.xml:362: The following error occurred while executing
>this line:
>/var/tmp/ccviews/pp24778_BuildMaster_view/TSC_isc/APPBuildScripts/isc_ADP_build.xml:96:
>
>Compile failed; see the compiler error output for details.
>        at
>org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:539)
>        at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:388)
>        at
>org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
>        at org.apache.tools.ant.Task.perform(Task.java:364)
>        at org.apache.tools.ant.Target.execute(Target.java:341)
>        at org.apache.tools.ant.Target.performTasks(Target.java:369)
>        at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
>        at org.apache.tools.ant.Project.executeTargets(Project.java:1062)
>        at org.apache.tools.ant.Main.runBuild(Main.java:673)
>        at org.apache.tools.ant.Main.startAnt(Main.java:188)
>        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:196)
>        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:55)
>
>Here is a copy of the java compile target of the ant script:
>      <!-- Compiles and Creates the ISCJ2EEUTIL.jar file -->
>      <target name="create_util_jar" depends="create_prop_jar">
>            <javac optimize="true" srcdir="${util_source_dir}/com/pnc"
>includes="**/*.java" classpath="${isc_classpath}" destdir="
>${util_class_dir}"/>
>          <jar jarfile="${local_stage_dir}/jars/${util_jar}" manifest="
>${util_source_dir}/META-INF/MANIFEST.MF">
>                  <fileset dir="${util_class_dir}" includes="**/*.class"/>
>            </jar>
>      </target>
>
>I've never seen anything list this
>Mark Russell
>PNC
>412-768-9603
>
>
>
>-----------------------------------------
>The contents of this email are the property of PNC. If it was not addressed to you, you have no legal right to read it. If you think you received it in error, please notify the sender. Do not forward or copy without permission of the sender.
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>For additional commands, e-mail: user-help@ant.apache.org
>
>
>
>  
>

-- 
С уважением,
Абашев Алексей Валерьевич
Инженер-программист
Центр Банковских Технологий компании "Диасофт"
Alexey V. Abashev
Programmer
Banking Technologies Center, Diasoft
Россия, 127018, Москва, ул.Полковая д.17, стр.15
Тел (095) 780-7575 факс (095) 780-7576
E-mail: aabashev@diasoft.ru
http://www.diasoft.ru


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