Help Deploying the Code

We are trying to put code on our old robot so that we can use it for our open house. However we’ve been having problems putting the code on the robot. This is the code that we’re using:

/*----------------------------------------------------------------------------*/
/* Copyright (c) FIRST 2008. All Rights Reserved.                             */
/* Open Source Software - may be modified and shared by FRC teams. The code   */
/* must be accompanied by the FIRST BSD license file in the root directory of */
/* the project.                                                               */
/*----------------------------------------------------------------------------*/

package edu.wpi.first.wpilibj.templates;


import edu.wpi.first.wpilibj.DigitalInput;
import edu.wpi.first.wpilibj.Joystick;
import edu.wpi.first.wpilibj.Servo;
import edu.wpi.first.wpilibj.SimpleRobot;
import edu.wpi.first.wpilibj.Timer;
import edu.wpi.first.wpilibj.Victor;
/**
 * The VM is configured to automatically run this class, and to call the
 * functions corresponding to each mode, as described in the SimpleRobot
 * documentation. If you change the name of this class or the package after
 * creating this project, you must also update the manifest file in the resource
 * directory.
 */
public class RobotTemplate extends SimpleRobot {
    
    public Joystick stickLeft = new Joystick(1);
    public Joystick stickRight = new Joystick(2);
    public Servo flag = new Servo(5);
    public Victor motorLeft = new Victor(1);
    public Victor motorRight = new Victor(2);
    
    /**
     * This function is called once each time the robot enters autonomous mode.
     */
    public void autonomous() {
        
    }

    /**
     * This function is called once each time the robot enters operator control.
     */
    public void checkUserInputs() {
       
     double leftStick = stickLeft.getX(); 
        
        motorLeft.set(leftStick);
    
     double rightStick = stickRight.getX();
     double rawThrottle = stickRight.getThrottle();
     double throttle = ((rawThrottle+1)/2);
    
        motorRight.set(rightStick);
        
     if(stickRight.getRawButton(3)){
        System.out.println("Button 3 pressed");
        System.out.println("raw "+rawThrottle+" and final"+throttle);
     }
    }

    /**
     * This function is called once each time the robot enters operator control.
     */
    public void operatorControl() {
       while (isOperatorControl() && isEnabled()) {
          checkUserInputs();
       }
    }
}

and this is what shows up when we try to deploy it:

ant -f C:\\Users\\Team2634\\Documents\\NetBeansProjects\\2013Gryphon deploy run
clean:
Deleting directory C:\Users\Team2634\Documents\NetBeansProjects\2013Gryphon\build
Created dir: C:\Users\Team2634\Documents\NetBeansProjects\2013Gryphon\build
Created dir: C:\Users\Team2634\Documents\NetBeansProjects\2013Gryphon\build\classes
[crio-compile] ./src, C:/Users/Team2634/sunspotfrcsdk\lib\wpilibj.jar;C:/Users/Team2634/sunspotfrcsdk\lib
etworktables-crio.jar, C:/Users/Team2634/sunspotfrcsdk\lib\squawk.jar -> ./build/classes
Compiling 1 source file to C:\Users\Team2634\Documents\NetBeansProjects\2013Gryphon\build\classes
compile:
preverify:
Created dir: C:\Users\Team2634\Documents\NetBeansProjects\2013Gryphon\build\preverify
Created dir: C:\Users\Team2634\Documents\NetBeansProjects\2013Gryphon\build\preverify.raw.util
[crio-preverify] ./build/classes, , C:/Users/Team2634/sunspotfrcsdk\lib\wpilibj.jar;C:/Users/Team2634/sunspotfrcsdk\lib
etworktables-crio.jar, C:/Users/Team2634/sunspotfrcsdk\lib\squawk.jar -> ./build/preverify
Expanding: C:\Users\Team2634\sunspotfrcsdk\lib\wpilibj.jar into C:\Users\Team2634\Documents\NetBeansProjects\2013Gryphon\build\preverify
Expanding: C:\Users\Team2634\sunspotfrcsdk\lib
etworktables-crio.jar into C:\Users\Team2634\Documents\NetBeansProjects\2013Gryphon\build\preverify
jar:
[crio-jar] ./build/preverify, ./resources -> ./build/app.jar
Building jar: C:\Users\Team2634\Documents\NetBeansProjects\2013Gryphon\build\app.jar
suite:
Created dir: C:\Users\Team2634\Documents\NetBeansProjects\2013Gryphon\build\suite
[crio-suite] ./build/app.jar -> ./build/suite/image
CompilerOracle: exclude com/sun/squawk/Method.getParameterTypes
CompilerOracle: exclude com/sun/squawk/SymbolParser.getSignatureTypeAt
CompilerOracle: exclude com/sun/squawk/SymbolParser.stripMethods
[translating suite image [closed: false, parent: squawk] ...]
### Excluding compile: com.sun.squawk.Method::getParameterTypes
### Excluding compile: com.sun.squawk.SymbolParser::getSignatureTypeAt
[Including resource: META-INF/MANIFEST.MF]
Romizer processed 378 classes and generated 4 files.
Expanding: C:\Users\Team2634\Documents\NetBeansProjects\2013Gryphon\build\app.jar into C:\Users\Team2634\Documents\NetBeansProjects\2013Gryphon\build\suite
Moving 1 file to C:\Users\Team2634\Documents\NetBeansProjects\2013Gryphon\build\suite
Moving 1 file to C:\Users\Team2634\Documents\NetBeansProjects\2013Gryphon\build\suite
Moving 1 file to C:\Users\Team2634\Documents\NetBeansProjects\2013Gryphon\build\suite
Deleting: C:\Users\Team2634\Documents\NetBeansProjects\2013Gryphon\image.suite.api
deploy:
[crio-configure] Configuration files not included in this version of the sdk
[crio-configure] Checking that crio is configured for Java
[crio-deploy] ./build/suite/image.suite -> 10.26.34.2
Sending local file image.suite
run:
Waiting to connect to OTA command server of 10.26.34.2:8001 for past 11s
Waiting to connect to OTA command server of 10.26.34.2:8001 for past 12s
Waiting to connect to OTA command server of 10.26.34.2:8001 for past 13s
[cRIO] task 0xe7f960 (FTP Server Connection Thread) deleted: errno=0 (0) status=0 (0)
Waiting to connect to OTA command server of 10.26.34.2:8001 for past 14s
Waiting to connect to OTA command server of 10.26.34.2:8001 for past 15s
Waiting to connect to OTA command server of 10.26.34.2:8001 for past 16s
Waiting to connect to OTA command server of 10.26.34.2:8001 for past 17s
Waiting to connect to OTA command server of 10.26.34.2:8001 for past 18s
Waiting to connect to OTA command server of 10.26.34.2:8001 for past 19s
Waiting to connect to OTA command server of 10.26.34.2:8001 for past 20s
Waiting to connect to OTA command server of 10.26.34.2:8001 for past 21s
Waiting to connect to OTA command server of 10.26.34.2:8001 for past 22s
Waiting to connect to OTA command server of 10.26.34.2:8001 for past 23s
Waiting to connect to OTA command server of 10.26.34.2:8001 for past 24s
Waiting to connect to OTA command server of 10.26.34.2:8001 for past 25s
Waiting to connect to OTA command server of 10.26.34.2:8001 for past 26s
Waiting to connect to OTA command server of 10.26.34.2:8001 for past 27s
Waiting to connect to OTA command server of 10.26.34.2:8001 for past 28s
Waiting to connect to OTA command server of 10.26.34.2:8001 for past 29s
[cRIO] 
[cRIO] -> * Loading debug.o: debug
[cRIO] Debugging is up, target server mounted at /tsfs
[cRIO] 
[cRIO] 
[cRIO]                 VxWorks
[cRIO] 
[cRIO] Copyright 1984-2006  Wind River Systems, Inc.
[cRIO] 
[cRIO]              CPU: MPC5200 -- Wind River Lite5200 BSP.
[cRIO]     Runtime Name: VxWorks
[cRIO]  Runtime Version: 6.3
[cRIO]      BSP version: 2.0/10
[cRIO]          Created: Jun 14 2012, 08:46:35
[cRIO] ED&R Policy Mode: Deployed
[cRIO]    WDB Comm Type: WDB_COMM_END
[cRIO]              WDB: Ready.
[cRIO] 
[cRIO] * Loading nisysrpc.out: nisysrpc
[cRIO] * Loading NiRioRpc.out: NiRioRpc
[cRIO] * Loading nivissvc.out: nivissvc
Waiting to connect to OTA command server of 10.26.34.2:8001 for past 30s
[cRIO] * Loading nivision.out: nivision
[cRIO] NI-RIO Server 12.0.0b10 started successfully.
[cRIO] task 0xbbd7d0 (NiRioRpc) deleted: errno=0 (0) status=0 (0)
[cRIO] * Loading visa32.out: visa32
[cRIO] * Loading niserial.out: niserial
Waiting to connect to OTA command server of 10.26.34.2:8001 for past 31s
[cRIO] * Loading NiFpgaLv.out: NiFpgaLv
[cRIO] * Loading FRC_FPGA.out: FRC_FPGA
[cRIO] * Loading FRC_NetworkCommunication.out: FRC_NetworkCommunication
[cRIO] FRC_NetworkCommunication version: p4-1.4.0a10
Waiting to connect to OTA command server of 10.26.34.2:8001 for past 32s
Waiting to connect to OTA command server of 10.26.34.2:8001 for past 33s
Waiting to connect to OTA command server of 10.26.34.2:8001 for past 34s
Waiting to connect to OTA command server of 10.26.34.2:8001 for past 35s
[cRIO] FPGA Hardware GUID: 0xA14C11BDE4BB64AEF6A86FC52A294CD9
[cRIO] FPGA Software GUID: 0xA14C11BDE4BB64AEF6A86FC52A294CD9
[cRIO] FPGA Hardware Version: 2012
[cRIO] FPGA Software Version: 2012
[cRIO] FPGA Hardware Revision: 1.6.4
[cRIO] FPGA Software Revision: 1.6.4
[cRIO] * Loading FRC_JavaVM.out: FRC_JavaVM
[cRIO] ...FRC_JavaVM failed to load.
[cRIO] 
[cRIO] Welcome to LabVIEW Real-Time 12.0rc7
[cRIO] task 0xcf3790 (sysapi-rpc) deleted: errno=0 (0) status=0 (0)
Waiting to connect to OTA command server of 10.26.34.2:8001 for past 36s
Waiting to connect to OTA command server of 10.26.34.2:8001 for past 37s
Waiting to connect to OTA command server of 10.26.34.2:8001 for past 38s
Waiting to connect to OTA command server of 10.26.34.2:8001 for past 39s
Waiting to connect to OTA command server of 10.26.34.2:8001 for past 40s
Waiting to connect to OTA command server of 10.26.34.2:8001 for past 41s
Waiting to connect to OTA command server of 10.26.34.2:8001 for past 42s
Waiting to connect to OTA command server of 10.26.34.2:8001 for past 43s
Waiting to connect to OTA command server of 10.26.34.2:8001 for past 44s
Waiting to connect to OTA command server of 10.26.34.2:8001 for past 45s
Waiting to connect to OTA command server of 10.26.34.2:8001 for past 46s
Waiting to connect to OTA command server of 10.26.34.2:8001 for past 47s
Waiting to connect to OTA command server of 10.26.34.2:8001 for past 48s
Waiting to connect to OTA command server of 10.26.34.2:8001 for past 49s
Waiting to connect to OTA command server of 10.26.34.2:8001 for past 50s
Waiting to connect to OTA command server of 10.26.34.2:8001 for past 51s
BUILD STOPPED (total time: 1 minute 41 seconds)

Are you running the latest cRIO image for Java? Looking at these two lines of output…

...
[cRIO] * Loading FRC_JavaVM.out: FRC_JavaVM
[cRIO] ...FRC_JavaVM failed to load.
...

…suggests a library is missing on the cRIO. The other thing that looks suspicious is the number of messages regarding the OTA Server. Remember that when you download a FRC Java program to the cRIO for the first time you will need to reboot it manually. I’d look into possibly re-imaging your cRIO though.

We’ve re-imaged it using v47 for the image I’ll try updating it though. We’ve already manually rebooted it a few times so that shouldn’t be a problem.