Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Java (http://www.chiefdelphi.com/forums/forumdisplay.php?f=184)
-   -   Remote command failed with exit status 1 (http://www.chiefdelphi.com/forums/showthread.php?t=133517)

Dinnesy 26-01-2015 09:20

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)]

hwu24110 29-01-2015 19:47

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

notmattlythgoe 30-01-2015 08:23

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.

TeamMagicSmoke 30-01-2015 15:53

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.

Joe Ross 30-01-2015 19:27

Re: Remote command failed with exit status 1
 
Quote:

Originally Posted by TeamMagicSmoke (Post 1436238)
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.

hwu24110 01-02-2015 00:19

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.


All times are GMT -5. The time now is 10:43.

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