Go to Post After all, professional engineers know The Right Way To Do It (TM) and if we knew that we'd be deprived of the educational experience of screwing up. - phrontist [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

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 11-01-2016, 14:39
origamitaco origamitaco is offline
Registered User
FRC #4328
 
Join Date: Nov 2015
Location: Richmond, TX
Posts: 35
origamitaco is an unknown quantity at this point
2016 Java code not deploying

I have a demonstration tonight for STEM and the robot code will not deploy. Im using old 2015 code that I ported over to 2016 (all i had to do was change gyro to analoggyro) but it simply will not work. I have installed the update suite and updated the Eclipse plugins. Here is the output file
Code:
Buildfile: C:\Users\FuriousFalcons\workspace\Judy\build.xml
Trying to override old definition of task classloader
clean:
   [delete] Deleting directory C:\Users\FuriousFalcons\workspace\Judy\build
   [delete] Deleting directory C:\Users\FuriousFalcons\workspace\Judy\dist
compile:
    [mkdir] Created dir: C:\Users\FuriousFalcons\workspace\Judy\build
     [echo] [athena-compile] Compiling src with classpath=C:\Users\FuriousFalcons/wpilib/java/current/lib/WPILib.jar:C:\Users\FuriousFalcons/wpilib/java/current/lib/NetworkTables.jar: to build
    [javac] Compiling 21 source files to C:\Users\FuriousFalcons\workspace\Judy\build
jar:
     [echo] [athena-jar] Making jar dist/FRCUserProgram.jar.
    [mkdir] Created dir: C:\Users\FuriousFalcons\workspace\Judy\dist
    [mkdir] Created dir: C:\Users\FuriousFalcons\workspace\Judy\build\jars
     [echo] [athena-jar] Copying jars from C:\Users\FuriousFalcons/wpilib/java/current/lib/WPILib.jar:C:\Users\FuriousFalcons/wpilib/java/current/lib/NetworkTables.jar: to build/jars.
     [copy] Copying 2 files to C:\Users\FuriousFalcons\workspace\Judy\build\jars
      [jar] Building jar: C:\Users\FuriousFalcons\workspace\Judy\dist\FRCUserProgram.jar
get-target-ip:
     [echo] Trying Target: roboRIO-4328-FRC.local
     [echo] roboRIO found via mDNS
dependencies:
     [echo] roboRIO image version validated
     [echo] Checking for JRE. If this fails install the JRE using these instructions: https://wpilib.screenstepslive.com/s...ller-java-only
  [sshexec] Connecting to roboRIO-4328-FRC.local:22
  [sshexec] cmd : test -d /usr/local/frc/JRE
deploy:
     [echo] [athena-deploy] Copying code over.
      [scp] Connecting to roboRIO-4328-FRC.local:22
      [scp] done.
  [sshexec] Connecting to roboRIO-4328-FRC.local:22
  [sshexec] cmd : killall -q netconsole-host || :
      [scp] Connecting to roboRIO-4328-FRC.local:22
      [scp] done.
     [echo] [athena-deploy] Starting program.
  [sshexec] Connecting to roboRIO-4328-FRC.local:22
  [sshexec] cmd : . /etc/profile.d/natinst-path.sh; /usr/local/frc/bin/frcKillRobot.sh -t -r;
  [sshexec] killall: lvrt: no process killed
  [sshexec] Remote command failed with exit status 1
  [sshexec] Connecting to roboRIO-4328-FRC.local:22
  [sshexec] cmd : sync
BUILD SUCCESSFUL
Total time: 9 seconds
I have reimaged the RIO, reinstalled Java, switched batteries, everything. IPv4 settings are on automatic. I cannot figure this out. No errors in code. Sample code does not work either. Please help.

Last edited by origamitaco : 11-01-2016 at 15:17. Reason: code tags
Reply With Quote
  #2   Spotlight this post!  
Unread 11-01-2016, 15:27
frcStuff's Avatar
frcStuff frcStuff is offline
フォスタ--
FRC #4268 (Beehive Robotics)
Team Role: Programmer
 
Join Date: Jan 2016
Rookie Year: 2014
Location: Salt Lake City
Posts: 10
frcStuff is an unknown quantity at this point
Re: 2016 Java code not deploying

Maybe try setting the IPv4 settings to 10.XX.XX.5 where XXXX is your team's number. Like 10.43.28.5 for your team.
Reply With Quote
  #3   Spotlight this post!  
Unread 11-01-2016, 15:36
origamitaco origamitaco is offline
Registered User
FRC #4328
 
Join Date: Nov 2015
Location: Richmond, TX
Posts: 35
origamitaco is an unknown quantity at this point
Re: 2016 Java code not deploying

Quote:
Originally Posted by Foster Crane View Post
Maybe try setting the IPv4 settings to 10.XX.XX.5 where XXXX is your team's number. Like 10.43.28.5 for your team.
Tried that. Same error. Driver station communicates with both scenarios.
Reply With Quote
  #4   Spotlight this post!  
Unread 11-01-2016, 15:36
origamitaco origamitaco is offline
Registered User
FRC #4328
 
Join Date: Nov 2015
Location: Richmond, TX
Posts: 35
origamitaco is an unknown quantity at this point
Re: 2016 Java code not deploying

I'm looking to see if i can reflash the 2015 image and backport my code again. I can't find the image though.
Reply With Quote
  #5   Spotlight this post!  
Unread 11-01-2016, 15:47
frcStuff's Avatar
frcStuff frcStuff is offline
フォスタ--
FRC #4268 (Beehive Robotics)
Team Role: Programmer
 
Join Date: Jan 2016
Rookie Year: 2014
Location: Salt Lake City
Posts: 10
frcStuff is an unknown quantity at this point
Re: 2016 Java code not deploying

I don't know if this will help or not but...
https://wpilib.screenstepslive.com/s...ller-java-only
Reply With Quote
  #6   Spotlight this post!  
Unread 11-01-2016, 16:00
Brian Selle's Avatar
Brian Selle Brian Selle is offline
Mentor
FRC #3310 (Black Hawk Robotics)
Team Role: Engineer
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Texas
Posts: 165
Brian Selle has a spectacular aura aboutBrian Selle has a spectacular aura aboutBrian Selle has a spectacular aura about
Re: 2016 Java code not deploying

Try deleting the bin, build, and dist directories for the project and then re-deploy.
__________________
2015 Newton Semi-Finalist (3130, 2468, 3310, 537)
2015 Lubbock Regional Winner (2468, 3310, 4799)
2014 Galileo Quarter-Finalist (2052, 70, 3310, 3360)
2014 Colorado Regional Winner (1138, 3310, 2543)
2013 Texas Robot Roundup Winner (3310, 624, 2848)
2013 Archimedes Semi-Finalist (126, 3310, 1756)
2013 Dallas Regional Winner (148, 3310, 4610)
2012 Dallas West Regional Winner (935, 3310, 4206)
Reply With Quote
  #7   Spotlight this post!  
Unread 11-01-2016, 16:48
origamitaco origamitaco is offline
Registered User
FRC #4328
 
Join Date: Nov 2015
Location: Richmond, TX
Posts: 35
origamitaco is an unknown quantity at this point
Re: 2016 Java code not deploying

Reinstalled java and deleted those folders. Didn't work either. Any other suggestions?
Reply With Quote
  #8   Spotlight this post!  
Unread 11-01-2016, 19:03
origamitaco origamitaco is offline
Registered User
FRC #4328
 
Join Date: Nov 2015
Location: Richmond, TX
Posts: 35
origamitaco is an unknown quantity at this point
Frickin just realized I've got the wrong version of Java on the RIO. Used HardFP instead of SoftFP. Not near the robot right now, just browsing the instructions when I saw that. Will try tomorrow and report status
Reply With Quote
  #9   Spotlight this post!  
Unread 11-01-2016, 19:19
RufflesRidge RufflesRidge is offline
Registered User
no team
 
Join Date: Jan 2012
Location: USA
Posts: 989
RufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant future
Re: 2016 Java code not deploying

Quote:
Originally Posted by origamitaco View Post
Frickin just realized I've got the wrong version of Java on the RIO. Used HardFP instead of SoftFP. Not near the robot right now, just browsing the instructions when I saw that. Will try tomorrow and report status
If that doesn't do anything, try enabling Warnings + Prints using the little gear in the DS Messages window or use RioLog in Eclipse. They may tell you your code is crashing and give you a clue why.
Reply With Quote
  #10   Spotlight this post!  
Unread 12-01-2016, 07:56
origamitaco origamitaco is offline
Registered User
FRC #4328
 
Join Date: Nov 2015
Location: Richmond, TX
Posts: 35
origamitaco is an unknown quantity at this point
Quote:
Originally Posted by RufflesRidge View Post
If that doesn't do anything, try enabling Warnings + Prints using the little gear in the DS Messages window or use RioLog in Eclipse. They may tell you your code is crashing and give you a clue why.
I'm on my way to try what I posted previously but I have enabled those before and they kept giving me bad ping and that its switched to driver station mode, it would happen 4 times and stop. I'm assuming that was it crashing and starting because this year's image restarts on crash 4 times and then quits so that your not isn't dead on field from one lousy command.
Reply With Quote
  #11   Spotlight this post!  
Unread 12-01-2016, 11:13
origamitaco origamitaco is offline
Registered User
FRC #4328
 
Join Date: Nov 2015
Location: Richmond, TX
Posts: 35
origamitaco is an unknown quantity at this point
Quote:
Originally Posted by origamitaco View Post
I'm on my way to try what I posted previously but I have enabled those before and they kept giving me bad ping and that its switched to driver station mode, it would happen 4 times and stop. I'm assuming that was it crashing and starting because this year's image restarts on crash 4 times and then quits so that your not isn't dead on field from one lousy command.
That was the issue. Fixed it with the correct version of java.
Reply With Quote
Reply


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 10:52.

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