Go to Post No matter what the weight limit is, a large number of teams will *ALWAYS* have trouble making it. - Cory [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #5   Spotlight this post!  
Unread 16-11-2014, 13:36
MJ Miller's Avatar
MJ Miller MJ Miller is offline
Control System Mentor
FRC #4910 (Robohounds)
Team Role: Mentor
 
Join Date: Jan 2009
Rookie Year: 2004
Location: Marietta, GA
Posts: 19
MJ Miller is an unknown quantity at this point
Re: Java 2015

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.
Reply With Quote
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 12:58.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi