[ant-contrib - Help] RE: Exception on running client xml

"SourceForge.net" <[email protected]> Wed, 17 Sep 2008 05:02:42 +0000
Newsgroups gmane.comp.java.ant-contrib.devel
Message-ID <[email protected]>
Read and respond to this message at: 
https://sourceforge.net/forum/message.php?msg_id=5283605
By: brianmurphy165

I'm getting the same problem with almost identical files. In fact my "antClient.xml"
equivalent just calls the "echoMessage" target and nothing more. I get the Exception
below.

Surely this is working for someone, if anyone has a full sample?

Thanks,

Brian


runAntServer.xml
=============

<project name="antServer" default="runAntServer">

	<taskdef resource="net/sf/antcontrib/antcontrib.properties">
		<classpath>
			<pathelement location="ant-contrib-1.0b3.jar"/>
		</classpath>
	</taskdef>

	<target name="runAntServer">
		<antserver port="12345" />
	</target>

	<target name="testMessage">
		<echo message="Remotely run target." />
	</target>

</project>



callRemoteTarget.xml
===============

<project name="remoteClient" default="callServerTarget">

	<taskdef resource="net/sf/antcontrib/antcontrib.properties">
		<classpath>
			<pathelement location="ant-contrib-1.0b3.jar"/>
		</classpath>
	</taskdef>

    <target name="callServerTarget">
	<remoteant machine="localhost" port="12345">
		<runtarget target="testMessage"/>
    	</remoteant>
    </target>

</project>


D:\Data\dev\antservertest>ant -v -f remoteclient.xml
Apache Ant version 1.6.5 compiled on June 2 2005
Buildfile: remoteclient.xml
Detected Java version: 1.5 in: C:\Program Files\Java\jdk1.6.0_03\jre
Detected OS: Windows XP
parsing buildfile D:\Data\dev\antservertest\remoteclient.xml with URI =
file:///
D:/Data/dev/antservertest/remoteclient.xml
Project base dir set to: D:\Data\dev\antservertest
Build sequence for target(s) `callServerTarget' is [callServerTarget]
Complete build sequence is [callServerTarget, ]

callServerTarget:

BUILD FAILED


D:\Data\dev\antservertest\remoteclient.xml:9: java.io.EOFException
        at net.sf.antcontrib.antserver.client.ClientTask.execute(ClientTask.java
:200)
        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.helper.ProjectHelper2.parse(ProjectHelper2.java:
142)
        at org.apache.tools.ant.ProjectHelper.configureProject(ProjectHelper.jav
a:91)
        at org.apache.tools.ant.Main.runBuild(Main.java:653)
        at org.apache.tools.ant.Main.startAnt(Main.java:187)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
Caused by: java.io.EOFException
        at java.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputSt
ream.java:2552)
        at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1297)
        at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
        at net.sf.antcontrib.antserver.client.Client.sendCommand(Client.java:233
)
        at net.sf.antcontrib.antserver.client.ClientTask.execute(ClientTask.java
:144)
        ... 9 more
--- Nested Exception ---
java.io.EOFException
        at java.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputSt
ream.java:2552)
        at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1297)
        at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
        at net.sf.antcontrib.antserver.client.Client.sendCommand(Client.java:233
)
        at net.sf.antcontrib.antserver.client.ClientTask.execute(ClientTask.java
:144)
        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.helper.ProjectHelper2.parse(ProjectHelper2.java:
142)
        at org.apache.tools.ant.ProjectHelper.configureProject(ProjectHelper.jav
a:91)
        at org.apache.tools.ant.Main.runBuild(Main.java:653)
        at org.apache.tools.ant.Main.startAnt(Main.java:187)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)


______________________________________________________________________
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit: 
https://sourceforge.net/forum/unmonitor.php?forum_id=113701

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/