Go to Post You know you've been involved with robotics too long when you see a remote-controlled traffic barrel coming up behind people and honking - and it doens't faze you. - GaryVoshol [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 20-01-2017, 16:33
FRCTeam2988 FRCTeam2988 is offline
Registered User
FRC #2988
 
Join Date: Jan 2017
Location: a
Posts: 5
FRCTeam2988 is an unknown quantity at this point
Unable to deploy code to Roborio

Currently we are unable to deploy code, even though we can connect when we navigate to the RoboRio's website. This is what we get

Code:
C:\Users\Team 2988\wpilib\java\current\ant\build.xml:293: com.jcraft.jsch.JSchException: Algorithm negotiation fail
full deploy message
Code:
Buildfile: C:\Users\Team 2988\workspace\testie\build.xml
Trying to override old definition of task classloader
clean:
   [delete] Deleting directory C:\Users\Team 2988\workspace\testie\build
   [delete] Deleting directory C:\Users\Team 2988\workspace\testie\dist
compile:
    [mkdir] Created dir: C:\Users\Team 2988\workspace\testie\build
     [echo] [athena-compile] Compiling src with classpath=C:\Users\Team 2988\wpilib\java\current\lib\WPILib.jar;C:\Users\Team 2988\wpilib\java\current\lib\NetworkTables.jar;C:\Users\Team 2988\wpilib\java\current\lib\opencv.jar;C:\Users\Team 2988\wpilib\java\current\lib\cscore.jar to build
    [javac] Compiling 5 source files to C:\Users\Team 2988\workspace\testie\build
    [javac] warning: C:\Users\Team 2988\wpilib\java\current\lib\WPILib.jar(edu/wpi/first/wpilibj/buttons/Button.class): major version 52 is newer than 51, the highest major version supported by this compiler.
    [javac]   It is recommended that the compiler be upgraded.
    [javac] warning: C:\Users\Team 2988\wpilib\java\current\lib\WPILib.jar(edu/wpi/first/wpilibj/IterativeRobot.class): major version 52 is newer than 51, the highest major version supported by this compiler.
    [javac]   It is recommended that the compiler be upgraded.
    [javac] warning: C:\Users\Team 2988\wpilib\java\current\lib\WPILib.jar(edu/wpi/first/wpilibj/command/Command.class): major version 52 is newer than 51, the highest major version supported by this compiler.
    [javac]   It is recommended that the compiler be upgraded.
    [javac] warning: C:\Users\Team 2988\wpilib\java\current\lib\WPILib.jar(edu/wpi/first/wpilibj/command/Scheduler.class): major version 52 is newer than 51, the highest major version supported by this compiler.
    [javac]   It is recommended that the compiler be upgraded.
    [javac] warning: C:\Users\Team 2988\wpilib\java\current\lib\WPILib.jar(edu/wpi/first/wpilibj/livewindow/LiveWindow.class): major version 52 is newer than 51, the highest major version supported by this compiler.
    [javac]   It is recommended that the compiler be upgraded.
    [javac] warning: C:\Users\Team 2988\wpilib\java\current\lib\WPILib.jar(edu/wpi/first/wpilibj/smartdashboard/SendableChooser.class): major version 52 is newer than 51, the highest major version supported by this compiler.
    [javac]   It is recommended that the compiler be upgraded.
    [javac] warning: C:\Users\Team 2988\wpilib\java\current\lib\WPILib.jar(edu/wpi/first/wpilibj/smartdashboard/SmartDashboard.class): major version 52 is newer than 51, the highest major version supported by this compiler.
    [javac]   It is recommended that the compiler be upgraded.
    [javac] warning: C:\Users\Team 2988\wpilib\java\current\lib\WPILib.jar(edu/wpi/first/wpilibj/RobotBase.class): major version 52 is newer than 51, the highest major version supported by this compiler.
    [javac]   It is recommended that the compiler be upgraded.
    [javac] warning: C:\Users\Team 2988\wpilib\java\current\lib\WPILib.jar(edu/wpi/first/wpilibj/command/Subsystem.class): major version 52 is newer than 51, the highest major version supported by this compiler.
    [javac]   It is recommended that the compiler be upgraded.
    [javac] warning: C:\Users\Team 2988\wpilib\java\current\lib\WPILib.jar(edu/wpi/first/wpilibj/NamedSendable.class): major version 52 is newer than 51, the highest major version supported by this compiler.
    [javac]   It is recommended that the compiler be upgraded.
    [javac] warning: C:\Users\Team 2988\wpilib\java\current\lib\WPILib.jar(edu/wpi/first/wpilibj/Sendable.class): major version 52 is newer than 51, the highest major version supported by this compiler.
    [javac]   It is recommended that the compiler be upgraded.
    [javac] 11 warnings
jar:
     [echo] [athena-jar] Making jar dist/FRCUserProgram.jar.
    [mkdir] Created dir: C:\Users\Team 2988\workspace\testie\dist
    [mkdir] Created dir: C:\Users\Team 2988\workspace\testie\build\jars
     [echo] [athena-jar] Copying jars to build/jars.
     [copy] Copying 4 files to C:\Users\Team 2988\workspace\testie\build\jars
      [jar] Building jar: C:\Users\Team 2988\workspace\testie\dist\FRCUserProgram.jar
get-target-ip:
     [echo] Trying Target: roboRIO-2988-FRC.local
Unknown host: roboRIO-2988-FRC.local
     [echo]  roboRIO not found via mDNS, falling back to DNS
Unknown host: roboRIO-2988-FRC.lan
     [echo]  roboRIO not found via DNS, falling back to static USB
     [echo] roboRIO found via static USB
dependencies:
     [echo] roboRIO image version validated
     [echo] Checking for JRE. If this fails install the JRE using these instructions: https://wpilib.screenstepslive.com/s/4485/m/13503/l/288822-installing-java-8-on-the-roborio-using-the-frc-roborio-java-installer-java-only
  [sshexec] Connecting to 172.22.11.2:22

BUILD FAILED
C:\Users\Team 2988\wpilib\java\current\ant\build.xml:293: com.jcraft.jsch.JSchException: Algorithm negotiation fail

Total time: 4 seconds
Reply With Quote
  #2   Spotlight this post!  
Unread 20-01-2017, 17:50
soundfx's Avatar
soundfx soundfx is offline
Registered User
AKA: Aaron J
FRC #3238 (Cyborg Ferrets)
Team Role: Programmer
 
Join Date: Jan 2016
Rookie Year: 2014
Location: Anacortes, WA
Posts: 17
soundfx is an unknown quantity at this point
Re: Unable to deploy code to Roborio

As the second to last line before the build fails says, check that you have installed java on the roborio. I think this must be done after every time you reimage or update the firmware for a roborio. If that doesn't work, try uploading to a different roborio if you can, and let us know how it works.
__________________


"I got 99 problems but 0.999 ain't 1."
~Orteil
Reply With Quote
  #3   Spotlight this post!  
Unread 20-01-2017, 19:17
Psychicowl's Avatar
Psychicowl Psychicowl is offline
Registered User
FRC #3039
 
Join Date: Jan 2017
Location: Destrehan, Louisiana
Posts: 7
Psychicowl is an unknown quantity at this point
Re: Unable to deploy code to Roborio

Quote:
Originally Posted by soundfx View Post
As the second to last line before the build fails says, check that you have installed java on the roborio. I think this must be done after every time you reimage or update the firmware for a roborio. If that doesn't work, try uploading to a different roborio if you can, and let us know how it works.
Yeah my team just ran i into this same error I had to reinstall Java on my roboRio
Reply With Quote
  #4   Spotlight this post!  
Unread 21-01-2017, 09:52
FRCTeam2988 FRCTeam2988 is offline
Registered User
FRC #2988
 
Join Date: Jan 2017
Location: a
Posts: 5
FRCTeam2988 is an unknown quantity at this point
Re: Unable to deploy code to Roborio

I'll try re-installing java, however we had already try'd that, hopefully we have better luck this time.
Reply With Quote
  #5   Spotlight this post!  
Unread 21-01-2017, 10:06
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,590
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Unable to deploy code to Roborio

What version of eclipse and JDK are installed on your computer. It looks like one of them is old.
Reply With Quote
  #6   Spotlight this post!  
Unread 21-01-2017, 10:08
FRCTeam2988 FRCTeam2988 is offline
Registered User
FRC #2988
 
Join Date: Jan 2017
Location: a
Posts: 5
FRCTeam2988 is an unknown quantity at this point
Re: Unable to deploy code to Roborio

Quote:
Originally Posted by FRCTeam2988 View Post
I'll try re-installing java, however we had already try'd that, hopefully we have better luck this time.
Reformatted Rio using
C:\Program Files (x86)\National Instruments\LabVIEW 2016\project\roboRIO Tool\roboRIO_ImagingTool.exe

Then flashed Java Using
C:\Users\Team 2988\wpilib\tools

I re-downloaded the JRE to make sure I got the correct JRE, however it still won't deploy and the error message is still the same.
Reply With Quote
  #7   Spotlight this post!  
Unread 21-01-2017, 10:10
FRCTeam2988 FRCTeam2988 is offline
Registered User
FRC #2988
 
Join Date: Jan 2017
Location: a
Posts: 5
FRCTeam2988 is an unknown quantity at this point
Re: Unable to deploy code to Roborio

Quote:
Originally Posted by Joe Ross View Post
What version of eclipse and JDK are installed on your computer. It looks like one of them is old.
That fixed it, I had Eclipse pointed to an older jdk, what in the error message tipped you off so I can fix it next time?
Reply With Quote
  #8   Spotlight this post!  
Unread 21-01-2017, 10:24
FRCTeam2988 FRCTeam2988 is offline
Registered User
FRC #2988
 
Join Date: Jan 2017
Location: a
Posts: 5
FRCTeam2988 is an unknown quantity at this point
Re: Unable to deploy code to Roborio

Quote:
Originally Posted by FRCTeam2988 View Post
That fixed it, I had Eclipse pointed to an older jdk, what in the error message tipped you off so I can fix it next time?
Nevermind just re-read error message and saw the 11 warnings that JDKS are out of date.
Reply With Quote
  #9   Spotlight this post!  
Unread 21-01-2017, 20:16
GoldenGollem's Avatar
GoldenGollem GoldenGollem is offline
Java Programmer
FRC #2509 (Hutchinson Tigerbots)
Team Role: Programmer
 
Join Date: Dec 2015
Rookie Year: 2015
Location: Minnesota
Posts: 26
GoldenGollem is an unknown quantity at this point
Re: Unable to deploy code to Roborio

Another thing my team has found, is that you will get this error if you are connected on the 5G radio connection. You must use the regular radio connection.
__________________
GoldenGollem -Hutchinson Tigerbots 2509
2015 - Mini-MN Regional 2nd Place Finalist
2016 - Mini-MN Regional 1st Place Finalist
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 13:15.

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