Go to Post If I run into some of your team's student coaches/drivers on the field of battle someday, I still might ask 'em what they're doing after high school. :) - Ken Patton [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 Rating: Thread Rating: 8 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 26-01-2015, 09:20
Dinnesy Dinnesy is offline
Registered User
FRC #4968 (Robo Hawks)
Team Role: Teacher
 
Join Date: Dec 2013
Rookie Year: 2014
Location: Lively
Posts: 19
Dinnesy is an unknown quantity at this point
Exclamation Remote command failed with exit status 1

Rookie team 4968 here, and we've been having some issues trying to deploy code to our robot. We have updated the roboRIO firmware, imaged the roboRIO, and deployed java to the roboRIO. However, when we try to deploy our code, we get the error Remote command failed with exit status 1, and the code does not deploy. We have tried changing the username and passwords as suggested by this post http://www.chiefdelphi.com/forums/sh...07#post1432107 However, it makes no difference.

Here is the log (error bold):
Buildfile: C:\Users\Ryley Ongarato\workspace\Old Robot Code\build.xml
Trying to override old definition of task classloader
clean:
[delete] Deleting directory C:\Users\Ryley Ongarato\workspace\Old Robot Code\build
[delete] Deleting directory C:\Users\Ryley Ongarato\workspace\Old Robot Code\dist
compile:
[mkdir] Created dir: C:\Users\Ryley Ongarato\workspace\Old Robot Code\build
[echo] [athena-compile] Compiling src with classpath=C:\Users\Ryley Ongarato/wpilib/java/current/lib/WPILib.jar:C:\Users\Ryley Ongarato/wpilib/java/current/lib/NetworkTables.jar to build
[javac] Compiling 1 source file to C:\Users\Ryley Ongarato\workspace\Old Robot Code\build
jar:
[echo] [athena-jar] Making jar dist/FRCUserProgram.jar.
[mkdir] Created dir: C:\Users\Ryley Ongarato\workspace\Old Robot Code\dist
[mkdir] Created dir: C:\Users\Ryley Ongarato\workspace\Old Robot Code\build\jars
[echo] [athena-jar] Copying jars from C:\Users\Ryley Ongarato/wpilib/java/current/lib/WPILib.jar:C:\Users\Ryley Ongarato/wpilib/java/current/lib/NetworkTables.jar to build/jars.
[copy] Copying 2 files to C:\Users\Ryley Ongarato\workspace\Old Robot Code\build\jars
[jar] Building jar: C:\Users\Ryley Ongarato\workspace\Old Robot Code\dist\FRCUserProgram.jar
get-target-ip:
[echo] Trying Target: roboRIO-4968.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-4968.local:22
[sshexec] cmd : test -d /usr/local/frc/JRE
deploy:
[echo] [athena-deploy] Copying code over.
[scp] Connecting to roboRIO-4968.local:22
[scp] done.
[sshexec] Connecting to roboRIO-4968.local:22
[sshexec] cmd : killall netconsole-host
[sshexec] killall: netconsole-host: no process killed
[sshexec] Remote command failed with exit status 1
[scp] Connecting to roboRIO-4968.local:22
[scp] done.
[scp] Connecting to roboRIO-4968.local:22
[scp] done.
[echo] [athena-deploy] Starting program.
[sshexec] Connecting to roboRIO-4968.local:22
[sshexec] cmd : . /etc/profile.d/natinst-path.sh; /usr/local/frc/bin/frcKillRobot.sh -t -r;
[sshexec] no process in pidfile '/var/run/natinst/FRC_UserProgram.pid' found; none killed
BUILD SUCCESSFUL
Total time: 9 seconds

Also, when connecting to the robot with the driver station, we get the following error, (Not sure if this is just because of no code being on the robot, or if its another error, so im posting it):

ERROR Unhandled exception instantiating robot org.usfirst.frc.team4968.robot.Robot java.lang.ClassNotFoundException: org.usfirst.frc.team4968.robot.Robot at [java.net.URLClassLoader$1.run(URLClassLoader.java: 372), java.net.URLClassLoader$1.run(URLClassLoader.java: 361), java.security.AccessController.doPrivileged(Native Method), java.net.URLClassLoader.findClass(URLClassLoader.j ava:360), java.lang.ClassLoader.loadClass(ClassLoader.java:4 24), sun.misc.Launcher$AppClassLoader.loadClass(Launche r.java:308), java.lang.ClassLoader.loadClass(ClassLoader.java:3 57), java.lang.Class.forName0(Native Method), java.lang.Class.forName(Class.java:259), edu.wpi.first.wpilibj.RobotBase.main(RobotBase.jav a:197)]

Last edited by Dinnesy : 26-01-2015 at 12:49.
Reply With Quote
  #2   Spotlight this post!  
Unread 29-01-2015, 19:47
hwu24110 hwu24110 is offline
Registered User
FRC #0988
 
Join Date: Feb 2014
Location: Las Vegas
Posts: 44
hwu24110 is an unknown quantity at this point
Re: Remote command failed with exit status 1

My team is also having the same issues. I attempted to follow the steps here (http://khengineering.github.io/RoboRio/faq/java/), however when I do go to usr/local/frc/JRE/bin, I don't know which one is the jar file since it doesn't say if it is a jar file. (I see java, keytool, rmind, and rmiregistry)
We were previously able to get code working last week, but then this problem popped up this week. I've tried updating the firmware and re-imaging, but it didn't work.
Unfortunately, my team's programmer left last year, so we're back to being rookies in terms of programming. So, that means I have no idea what this means. Not sure if it'll help, but here's my log (the error is also bolded):

Buildfile: C:\Users\Robotics\Desktop\EclipseWorkspace\988_Sam ple_Code\build.xml
Trying to override old definition of task classloader
clean:
[delete] Deleting directory C:\Users\Robotics\Desktop\EclipseWorkspace\988_Sam ple_Code\build
[delete] Deleting directory C:\Users\Robotics\Desktop\EclipseWorkspace\988_Sam ple_Code\dist
compile:
[mkdir] Created dir: C:\Users\Robotics\Desktop\EclipseWorkspace\988_Sam ple_Code\build
[echo] [athena-compile] Compiling src with classpath=C:\Users\Robotics/wpilib/java/current/lib/WPILib.jar:C:\Users\Robotics/wpilib/java/current/lib/NetworkTables.jar to build
[javac] Compiling 1 source file to C:\Users\Robotics\Desktop\EclipseWorkspace\988_Sam ple_Code\build
jar:
[echo] [athena-jar] Making jar dist/FRCUserProgram.jar.
[mkdir] Created dir: C:\Users\Robotics\Desktop\EclipseWorkspace\988_Sam ple_Code\dist
[mkdir] Created dir: C:\Users\Robotics\Desktop\EclipseWorkspace\988_Sam ple_Code\build\jars
[echo] [athena-jar] Copying jars from C:\Users\Robotics/wpilib/java/current/lib/WPILib.jar:C:\Users\Robotics/wpilib/java/current/lib/NetworkTables.jar to build/jars.
[copy] Copying 2 files to C:\Users\Robotics\Desktop\EclipseWorkspace\988_Sam ple_Code\build\jars
[jar] Building jar: C:\Users\Robotics\Desktop\EclipseWorkspace\988_Sam ple_Code\dist\FRCUserProgram.jar
get-target-ip:
[echo] Trying Target: roboRIO-988.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-988.local:22
[sshexec] cmd : test -d /usr/local/frc/JRE
deploy:
[echo] [athena-deploy] Copying code over.
[scp] Connecting to roboRIO-988.local:22
[scp] done.
[sshexec] Connecting to roboRIO-988.local:22
[sshexec] cmd : killall netconsole-host
[sshexec] killall: netconsole-host: no process killed
[sshexec] Remote command failed with exit status 1
[scp] Connecting to roboRIO-988.local:22
[scp] done.
[scp] Connecting to roboRIO-988.local:22
[scp] done.
[echo] [athena-deploy] Starting program.
[sshexec] Connecting to roboRIO-988.local:22
[sshexec] cmd : . /etc/profile.d/natinst-path.sh; /usr/local/frc/bin/frcKillRobot.sh -t -r;
[sshexec] no process in pidfile '/var/run/natinst/FRC_UserProgram.pid' found; none killed
BUILD SUCCESSFUL
Total time: 8 seconds

Last edited by hwu24110 : 29-01-2015 at 19:51.
Reply With Quote
  #3   Spotlight this post!  
Unread 30-01-2015, 08:23
notmattlythgoe's Avatar
notmattlythgoe notmattlythgoe is offline
Flywheel Police
AKA: Matthew Lythgoe
FRC #2363 (Triple Helix)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2009
Location: Newport News, VA
Posts: 1,725
notmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond repute
Re: Remote command failed with exit status 1

Any chance both of you could post your code?

Please use code tags when doing so. To use a code tag place a [/code] at the end and a [code] at the beginning.
Reply With Quote
  #4   Spotlight this post!  
Unread 30-01-2015, 15:53
TeamMagicSmoke's Avatar
TeamMagicSmoke TeamMagicSmoke is offline
Registered User
AKA: The Entire Team
FRC #5259 (Magic Smoke)
Team Role: Leadership
 
Join Date: Mar 2014
Rookie Year: 2013
Location: Arkansas
Posts: 11
TeamMagicSmoke is an unknown quantity at this point
Re: Remote command failed with exit status 1

I was having a similar problem but I found that in the build.properties it was "frc.team5259" when it needs to be "frc5259"

if you go into your build.properties in Eclipse look for the package=, should be the first line, and just delete the ".team" out of it that should fix the problem. If not, it reads as if its opening files. If you go into the robot program project folder you can go into the src. it goes from org>usfirst>frc(teamnumber)>(projectname) to build.propreties its org.usfirst.frc(teamnumber).(projectname)
make sure that they match.

I think its an issue with the base program that Eclipse gives you and when Robotbuilder imports code.

Last edited by TeamMagicSmoke : 30-01-2015 at 16:02.
Reply With Quote
  #5   Spotlight this post!  
Unread 30-01-2015, 19:27
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,586
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: Remote command failed with exit status 1

Quote:
Originally Posted by TeamMagicSmoke View Post
I think its an issue with the base program that Eclipse gives you and when Robotbuilder imports code.
The eclipse project wizard uses a different package by default then Robot Builder. If you create a project in eclipse, and then point Robot Builder to that same directory, I expect you would see issues.
Reply With Quote
  #6   Spotlight this post!  
Unread 01-02-2015, 00:19
hwu24110 hwu24110 is offline
Registered User
FRC #0988
 
Join Date: Feb 2014
Location: Las Vegas
Posts: 44
hwu24110 is an unknown quantity at this point
Re: Remote command failed with exit status 1

I found the problem. Turns out it was a problem with the code.
Code:
 myRobot = new RobotDrive(0, 1, 2, 3);
        myRobot.setExpiration(0.1);
        xbox = new Joystick(0);
        xbox2 = new Joystick(1);
        LF = new Victor(0);
        LR = new Victor(1);
        RF = new Victor(2);
        RR = new Victor(3);
        FARM = new Talon(4);
        RARM = new Talon(5);
        lintake = new Talon(6);
        rintake = new Talon(7);
I didn't know that RobotDrive constructed/declared/identified (I don't know what the term is... oops) the motors, and then I constructed the motors later, so I constructed them twice and the builder didn't like that. Thanks for taking the time to respond though.
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 18:07.

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