I'm trying to use the latest Eclipse (Mars Milestone 2 (4.5.0M2), jdk1.8.0_25, and FRC Sunspot Plugin 1.0.8.5. On the surface, installation of all items were successful and I can build a simpleRobot program with no errors. However, I can't deploy due to the following error:
Buildfile: C:\Users\MJ\workspace\mySimple\build.xml
-pre-init:
-do-init:
-post-init:
-warn-jar-file:
init:
-set-selector-for-nonbasestation:
-prim-find-spots:
-checkhasremoteaddress:
-do-find-spots:
-jar-and-deploy:
-pre-init:
-do-init:
-post-init:
-warn-jar-file:
init:
-check-for-manifest:
-set-to-jar-name:
-pre-clean:
-do-clean:
[delete] Deleting directory C:\Users\MJ\workspace\mySimple\build
[delete] Deleting directory C:\Users\MJ\workspace\mySimple\suite
[delete] Deleting directory C:\Users\MJ\workspace\mySimple\j2meclasses
-post-clean:
clean:
-pre-compile:
-do-compile:
[mkdir] Created dir: C:\Users\MJ\workspace\mySimple\build
[javac] Compiling 1 source file to C:\Users\MJ\workspace\mySimple\build
[javac] warning: [options] source value 1.3 is obsolete and will be removed in a future release
[javac] warning: [options] target value 1.2 is obsolete and will be removed in a future release
[javac] warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
[javac] 3 warnings
-post-compile:
compile:
-pre-preverify:
-make-preverify-directory:
[mkdir] Created dir: C:\Users\MJ\workspace\mySimple\j2meclasses
-unjar-utility-jars:
-do-preverify:
-post-preverify:
preverify:
-pre-jar-app:
-do-jar-app:
[mkdir] Created dir: C:\Users\MJ\workspace\mySimple\suite
[jar] Building jar: C:\Users\MJ\workspace\mySimple\suite\Robot_1.0.0.j ar
-post-jar-app:
jar-app:
-set-from-jar-name:
-check-for-jar:
-pre-suite:
-do-suite:
[java] CompilerOracle: exclude com/sun/squawk/Method.getParameterTypes
[java] CompilerOracle: exclude com/sun/squawk/SymbolParser.getSignatureTypeAt
[java] CompilerOracle: exclude com/sun/squawk/SymbolParser.stripMethods
[java] [translating suite image [closed: false, parent: squawk] ...]
[java] ### Excluding compile: com.sun.squawk.SymbolParser::getSignatureTypeAt
[java] ### Excluding compile: com.sun.squawk.Method::getParameterTypes
[java] [Including resource: META-INF/MANIFEST.MF]
[java] Romizer processed 97 classes and generated 4 files.
[unzip] Expanding: C:\Users\MJ\workspace\mySimple\suite\Robot_1.0.0.j ar into C:\Users\MJ\workspace\mySimple\suite
[move] Moving 1 file to C:\Users\MJ\workspace\mySimple\suite
[move] Moving 1 file to C:\Users\MJ\workspace\mySimple\suite
[move] Moving 1 file to C:\Users\MJ\workspace\mySimple\suite
[delete] Deleting: C:\Users\MJ\workspace\mySimple\image.suite.api
-post-suite:
-prim-find-spots:
-checkhasremoteaddress:
-do-find-spots:
-pre-deploy:
-failIfRemote:
-do-upgrade:
Host OS: Windows 7 6.1, 6.1
Host JVM: Java HotSpot(TM) 64-Bit Server VM 25.25-b02
Target IP: 10.49.10.2
Network interfaces on host:
Intel(R) Centrino(R) Wireless-N 2230: address: 192.168.1.70 netmask: 255.255.255.0
Realtek PCIe FE Family Controller: address: 10.49.10.5 netmask: 255.0.0.0 <--- on robot's subnet
[frcupgrade] Connecting FTP @10.49.10.2
BUILD FAILED
C:\Users\MJ\sunspotfrcsdk\build.xml:96: The following error occurred while executing this line:
C:\Users\MJ\sunspotfrcsdk\ant\upgrade.xml:40: java.lang.NullPointerException
Total time: 7 seconds[/font][/font][/font][/font]
The error points to upgrade.xml:40 and suggests some configuration problem exists. I have followed 3 different sets of instructions from WPI and teams with all yielding the same error above. What configuration step have I missed?
build.xml:95-97
<target name="-jar-and-deploy" unless="from.jar.file">
<antcall target="-do-jar-and-deploy" />
</target>
ant/upgrade.xml:29-42
<target name="-do-upgrade">
<frcupgrade
remoteaddress = "${remoteaddress}"
localotaserverfile="${sunspot.home}/cRIO/FRC_UserProgram.out"
remoteotaserverfilepath="/ni-rt/system/FRC_JavaVM.out"
localvmfile = "${sunspot.home}/cRIO/squawk.out"
remotevmfilepath="/ni-rt/system/squawk.out"
localsuitefile = "${sunspot.home}/cRIO/squawk.suite"
remotesuitefilepath = "/ni-rt/system/squawk.suite"
remoteversionfilepath = "/FRC_ImageVersion.ini"
versionfailuremessage = "Go to
http://first.wpi.edu/FRC/frcjava.html to get latest software update"
>
<version name="Name" value="FRC_2012_v43.zip;"/>
<version name="Language" value='"Java;"'/>
Also, I noticed the wpilibj that gets installed with the plugin is missing some items namely Talon.class and LiveWindow.class and some others. Perhaps this version of wpilibj is dated. The getting started with Java manual lists a procedure for building a custom library using Netbeans. I have the wpilibj.project.zip archive, but there is no project file to open as the procedure instructs. I don't really need a custom library, but just looking for a way to get this setup working.