Go to Post While we discuss this stuff, let's keep our heads on straight. Open your eyes and look around you. Let's celebrate our common goal while accepting our differences. - Andy Baker [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 Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 14-03-2015, 10:33
Jtbillick Jtbillick is offline
Registered User
FRC #4780
 
Join Date: Jan 2015
Location: Ohio
Posts: 18
Jtbillick is an unknown quantity at this point
Problem uploading code

When I upload my program to the practice bot, I am getting an error and I'm not sure how to fix it. This is my first year programming so any tips would be appreciated. This is the error in the Riolog:
➔ Launching «'/usr/local/frc/JRE/bin/java' '-jar' '/home/lvuser/FRCUserProgram.jar'»
➔ Launching «'/usr/local/frc/JRE/bin/java' '-jar' '/home/lvuser/FRCUserProgram.jar'»
ERROR Unhandled exception: java.lang.IllegalArgumentException: Subsystem must not be null. at [edu.wpi.first.wpilibj.command.Command.requires(Com mand.java:173), org.usfirst.frc.team4780.robot.commands.Elevate.<i nit>(Elevate.java:28), org.usfirst.frc.team4780.robot.commands.ElevateUp. <init>(ElevateUp.java:15), org.usfirst.frc.team4780.robot.OI.<init>(OI.java:5 9), org.usfirst.frc.team4780.robot.Robot.robotInit(Rob ot.java:38), edu.wpi.first.wpilibj.IterativeRobot.startCompetit ion(IterativeRobot.java:76), edu.wpi.first.wpilibj.RobotBase.main(RobotBase.jav a:234)]ERROR Unhandled exception: java.lang.IllegalArgumentException: Subsystem must not be null. at [edu.wpi.first.wpilibj.command.Command.requires(Com mand.java:173), org.usfirst.frc.team4780.robot.commands.Elevate.<i nit>(Elevate.java:28), org.usfirst.frc.team4780.robot.commands.ElevateUp. <init>(ElevateUp.java:15), org.usfirst.frc.team4780.robot.OI.<init>(OI.java:5 9), org.usfirst.frc.team4780.robot.Robot.robotInit(Rob ot.java:38), edu.wpi.first.wpilibj.IterativeRobot.startCompetit ion(IterativeRobot.java:76), edu.wpi.first.wpilibj.RobotBase.main(RobotBase.jav a:234)]

WARNING: Robots don't quit!
---> The startCompetition() method (or methods called by it) should have handled the exception above.
WARNING: Robots don't quit!
---> The startCompetition() method (or methods called by it) should have handled the exception above.
Reply With Quote
  #2   Spotlight this post!  
Unread 14-03-2015, 10:36
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,715
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: Problem uploading code

Please post your Robot class. Make sure to use code tags.
Reply With Quote
  #3   Spotlight this post!  
Unread 14-03-2015, 11:57
legts legts is offline
Autonomous Queen
FRC #2399 (The Fighting Unicorns)
Team Role: Programmer
 
Join Date: Jan 2015
Rookie Year: 2012
Location: Ohio
Posts: 73
legts is an unknown quantity at this point
Re: Problem uploading code

I have gotten this exact type of error before. Where it is naming a specific file and line (ex Elevate.java:28) it means there is an error in the file Elevate.java at line 28. You have to go through the error log and check the errors to see which lines in which files have errors. Then you need to fix them. PM me if you need more help.
Reply With Quote
  #4   Spotlight this post!  
Unread 14-03-2015, 23:02
Jtbillick Jtbillick is offline
Registered User
FRC #4780
 
Join Date: Jan 2015
Location: Ohio
Posts: 18
Jtbillick is an unknown quantity at this point
Re: Problem uploading code

thanks for the help. I fixed this issue by going into Robot.java and putting the elevator object before OI.
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 10:27.

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