|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Java Deploy Error
Hello, I tried deploying my code (https://github.com/FRC2495/2016-Java-FRC-Code.git) and am getting this error when i do:
➔ Launching «'/usr/local/frc/JRE/bin/java' '-jar' '/home/lvuser/FRCUserProgram.jar'» platform: /Linux/arm/ ********** Robot program starting ********** Error at edu.wpi.first.wpilibj.RobotBase.main(RobotBase.jav a:244): ERROR Unhandled exception: java.lang.StackOverflowError at [edu.wpi.first.wpilibj.communication.UsageReporting .report(UsageReporting.java:21), edu.wpi.first.wpilibj.communication.UsageReporting .report(UsageReporting.java:17), edu.wpi.first.wpilibj.IterativeRobot.startCompetit ion(IterativeRobot.java:70), org.usfirst.frc.team2495.robot.Robot.robotInit(Rob ot.java:51), edu.wpi.first.wpilibj.IterativeRobot.startCompetit ion(IterativeRobot.java:72), org.usfirst.frc.team2495.robot.Robot.robotInit(Rob ot.java:51), edu.wpi.first.wpilibj.IterativeRobot.startCompetit ion(IterativeRobot.java:72), org.usfirst.frc.team2495.robot.Robot.robotInit(Rob ot.java:51), edu.wpi.first.wpilibj.IterativeRobot.startCompetit ion(IterativeRobot.java:72), org.usfirst.frc.team2495.robot.Robot.robotInit(Rob ot.java:51), edu.wpi.first.wpilibj.IterativeRobot.startCompetit ion(IterativeRobot.java:72), org.usfirst.frc.team2495.robot.Robot.robotInit(Rob ot.java:51), edu.wpi.first.wpilibj.IterativeRobot.startCompetit ion(IterativeRobot.java:72), org.usfirst.frc.team2495.robot.Robot.robotInit(Rob ot.java:51), edu.wpi.first.wpilibj.IterativeRobot.startCompetit ion(IterativeRobot.java:72), org.usfirst.frc.team2495.robot.Robot.robotInit(Rob ot.java:51), edu.wpi.first.wpilibj.IterativeRobot.startCompetit ion(IterativeRobot.java:72), org.usfirst.frc.team2495.robot.Robot.robotInit(Rob ot.java:51), edu.wpi.first.wpilibj.IterativeRobot.startCompetit ion(IterativeRobot.java:72), org.usfirst.frc.team2495.robot.Robot.robotInit(Rob ot.java:51), (Continues on for a really long time.)] WARNING: Robots don't quit! ---> The startCompetition() method (or methods called by it) should have handled the exception above. Last edited by Stevil99 : 03-03-2016 at 19:41. Reason: That error continues on for a long time, shouldnt have posted the whole thing. |
|
#2
|
||||
|
||||
|
Re: Java Deploy Error
Looks like you have a run-away recursion. What is on line 51 in robot.java? It is somehow calling startCompetition.
|
|
#3
|
|||||
|
|||||
|
Re: Java Deploy Error
The problem is here:
Code:
public void robotInit() {
oi = new OI();
// autochooser = new SendableChooser();
//autochooser.addDefault("Default Auto", new ExampleCommand());
// chooser.addObject("My Auto", new MyAutoCommand());
// SmartDashboard.putData("Auto mode", autochooser);
startCompetition();
}
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|