![]() |
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. |
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.
|
Re: Java Deploy Error
The problem is here:
Code:
public void robotInit() { |
| All times are GMT -5. The time now is 07:56 AM. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi