Go to Post "We put the eek in Geek" - Wayne Doenges [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 Rating: Thread Rating: 4 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 07-02-2015, 13:34
gappleto97 gappleto97 is offline
Registered User
FRC #3617
 
Join Date: Oct 2013
Location: Marquette, MI
Posts: 12
gappleto97 is an unknown quantity at this point
The RoboRIO is suddenly not accepting/running code

We get the following log when trying to build code:

Code:
Buildfile: C:\Users\Programmer\workspace\Robot-Code\build.xml
Trying to override old definition of task classloader
clean:
   [delete] Deleting directory C:\Users\Programmer\workspace\Robot-Code\build
   [delete] Deleting directory C:\Users\Programmer\workspace\Robot-Code\dist
compile:
    [mkdir] Created dir: C:\Users\Programmer\workspace\Robot-Code\build
     [echo] [athena-compile] Compiling src with classpath=C:\Users\Programmer/wpilib/java/current/lib/WPILib.jar:C:\Users\Programmer/wpilib/java/current/lib/NetworkTables.jar to build
    [javac] Compiling 8 source files to C:\Users\Programmer\workspace\Robot-Code\build
jar:
     [echo] [athena-jar] Making jar dist/FRCUserProgram.jar.
    [mkdir] Created dir: C:\Users\Programmer\workspace\Robot-Code\dist
    [mkdir] Created dir: C:\Users\Programmer\workspace\Robot-Code\build\jars
     [echo] [athena-jar] Copying jars from C:\Users\Programmer/wpilib/java/current/lib/WPILib.jar:C:\Users\Programmer/wpilib/java/current/lib/NetworkTables.jar to build/jars.
     [copy] Copying 2 files to C:\Users\Programmer\workspace\Robot-Code\build\jars
      [jar] Building jar: C:\Users\Programmer\workspace\Robot-Code\dist\FRCUserProgram.jar
get-target-ip:
     [echo] Trying Target: roboRIO-3617.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-3617.local:22
  [sshexec] cmd : test -d /usr/local/frc/JRE
deploy:
     [echo] [athena-deploy] Copying code over.
      [scp] Connecting to roboRIO-3617.local:22
      [scp] done.
  [sshexec] Connecting to roboRIO-3617.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-3617.local:22
      [scp] done.
      [scp] Connecting to roboRIO-3617.local:22
      [scp] done.
     [echo] [athena-deploy] Starting program.
  [sshexec] Connecting to roboRIO-3617.local:22
  [sshexec] cmd : . /etc/profile.d/natinst-path.sh; /usr/local/frc/bin/frcKillRobot.sh -t -r;
  [sshexec] start-stop-daemon: warning: killing process 3031: No such process
BUILD SUCCESSFUL
Total time: 7 seconds
This log has not changed despite reimaging the RoboRIO. We're getting desperate here. Any ideas?
Reply With Quote
  #2   Spotlight this post!  
Unread 07-02-2015, 13:42
RufflesRidge RufflesRidge is offline
Registered User
no team
 
Join Date: Jan 2012
Location: USA
Posts: 989
RufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant future
Re: The RoboRIO is suddenly not accepting/running code

The code is deploying fine, the problem is likely that your code is crashing. Do you get any message on the Driver Station messages window or in rioLog after deploying?
Reply With Quote
  #3   Spotlight this post!  
Unread 07-02-2015, 13:57
gappleto97 gappleto97 is offline
Registered User
FRC #3617
 
Join Date: Oct 2013
Location: Marquette, MI
Posts: 12
gappleto97 is an unknown quantity at this point
Re: The RoboRIO is suddenly not accepting/running code

We also have tried it with the sample code, and with known working code. The RIOLog says

Code:
ERROR Unhandled exception instantiating robot edu.cold.logic.Robot java.lang.ExceptionInInitializerError at [java.lang.Class.forName0(Native Method), java.lang.Class.forName(Class.java:259), edu.wpi.first.wpilibj.RobotBase.main(RobotBase.java:197)]
Reply With Quote
  #4   Spotlight this post!  
Unread 07-02-2015, 15:15
Ben Wolsieffer Ben Wolsieffer is offline
Dartmouth 2020
AKA: lopsided98
FRC #2084 (Robots by the C)
Team Role: Alumni
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Manchester, MA (Hanover, NH)
Posts: 520
Ben Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud of
Re: The RoboRIO is suddenly not accepting/running code

Quote:
Originally Posted by gappleto97 View Post
We also have tried it with the sample code, and with known working code. The RIOLog says

Code:
ERROR Unhandled exception instantiating robot edu.cold.logic.Robot java.lang.ExceptionInInitializerError at [java.lang.Class.forName0(Native Method), java.lang.Class.forName(Class.java:259), edu.wpi.first.wpilibj.RobotBase.main(RobotBase.java:197)]
There should probably be more lines after that which will tell you what the real error is.
__________________



2016 North Shore District - Semifinalists and Excellence in Engineering Award
2015 Northeastern University District - Semifinalists and Creativity Award
2014 Granite State District - Semifinalists and Innovation in Control Award
2012 Boston Regional - Finalists
Reply With Quote
  #5   Spotlight this post!  
Unread 07-02-2015, 16:43
Team3266Spencer's Avatar
Team3266Spencer Team3266Spencer is offline
Team Captain and Lead Programmer
AKA: Spencer Lanman
FRC #3266 (Robots-R-US)
Team Role: Programmer
 
Join Date: Oct 2011
Rookie Year: 2012
Location: Richmond, Indiana
Posts: 280
Team3266Spencer is an unknown quantity at this point
Re: The RoboRIO is suddenly not accepting/running code

There isn't. It's weird but if you get an error in one of your constructors (e.g. a subsystem constructor) it throws this error. Could you post your code here?
__________________
2012: Buckeye Regional, Queen City Regional, Human Player
2013: Queen City Regional, Buckeye Regional, Crossroads Regional
Shooter Operator
2014: Crossroads Regional, Queen City Regional
Catapult Operator
2015: Georgia Southern Classic Regional (Winner), Queen City Regional
Chainsaw Operator
Want to talk? TeamSpeak: team3266.noip.me
Reply With Quote
  #6   Spotlight this post!  
Unread 09-02-2015, 22:31
Zalmay's Avatar
Zalmay Zalmay is offline
Registered User
FRC #4528
 
Join Date: Feb 2015
Location: United States
Posts: 11
Zalmay is an unknown quantity at this point
Re: The RoboRIO is suddenly not accepting/running code

My team is also having the same issues with the RoboRio and I was wondering how you solved it, assuming that you have. If you have I would appreciate some advice on how you did so and what the problem ended up being. Thanks in advance.
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 12:35.

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