Go to Post The easiest and most effective way to do this for the Championship event is pre-competition scouting, with statistics. Nothing beats it. Hands down. Period. The End. Nothing's better. - Tom Bottiglieri [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 02-07-2014, 00:44
Fluffy21 Fluffy21 is offline
Registered User
FRC #0702
 
Join Date: Jul 2014
Location: United States
Posts: 5
Fluffy21 is an unknown quantity at this point
Unable to deploy code to cRIO

Hi! So my team recently decided that we would like to switch to Java from C++, and we are having a bit of trouble. I have some code ready to be sent the cRIO, but I cannot deploy it as I usually get two types of errors. One is that the build.xml messes up on lines 79 and 41 (will double check on that). After that error I usually cancel the build and try again and it goes through and then proceeds to get stuck on disable().... consider using your own (will update once I have the exact phrase.

Also I do have an established connection with my cRIO. I am able to ping it as well as FTP the IP address to access it. The firewall is disabled and I allowed netbeans to use an incoming and outgoing connections as it desires. I have tried this on two different laptops to no avail. Please help!
Reply With Quote
  #2   Spotlight this post!  
Unread 02-07-2014, 01:22
rsisk's Avatar
rsisk rsisk is offline
The GURU Channel
AKA: Richard Sisk
FRC #2493 (Robokong)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2007
Location: Riverside, CA
Posts: 2,750
rsisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond repute
Send a message via MSN to rsisk
Re: Unable to deploy code to cRIO

Did you reimage the cRIO for C++?
__________________
Quote:
The views expressed are mine and should not be construed to represent the views of anyone else.
Reply With Quote
  #3   Spotlight this post!  
Unread 02-07-2014, 11:29
Fluffy21 Fluffy21 is offline
Registered User
FRC #0702
 
Join Date: Jul 2014
Location: United States
Posts: 5
Fluffy21 is an unknown quantity at this point
Re: Unable to deploy code to cRIO

Quote:
Originally Posted by rsisk View Post
Did you reimage the cRIO for C++?
I reimaged the cRIO for Java.
Reply With Quote
  #4   Spotlight this post!  
Unread 02-07-2014, 11:36
BigJ BigJ is offline
Registered User
AKA: Josh P.
FRC #1675 (Ultimate Protection Squad)
Team Role: Engineer
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Milwaukee, WI
Posts: 947
BigJ has a reputation beyond reputeBigJ has a reputation beyond reputeBigJ has a reputation beyond reputeBigJ has a reputation beyond reputeBigJ has a reputation beyond reputeBigJ has a reputation beyond reputeBigJ has a reputation beyond reputeBigJ has a reputation beyond reputeBigJ has a reputation beyond reputeBigJ has a reputation beyond reputeBigJ has a reputation beyond repute
Re: Unable to deploy code to cRIO

build.xml contains the ANT targets that are run to build, deploy, etc. your code. Those errors may have a lot to do with your problems. If you post what the output is telling you is going wrong in build.xml it might help.
Reply With Quote
  #5   Spotlight this post!  
Unread 02-07-2014, 17:16
Fluffy21 Fluffy21 is offline
Registered User
FRC #0702
 
Join Date: Jul 2014
Location: United States
Posts: 5
Fluffy21 is an unknown quantity at this point
Re: Unable to deploy code to cRIO

Quote:
Originally Posted by BigJ View Post
build.xml contains the ANT targets that are run to build, deploy, etc. your code. Those errors may have a lot to do with your problems. If you post what the output is telling you is going wrong in build.xml it might help.
Here it is

Code:
ant -f C:\\Users\\Developer\\Documents\\NetBeansProjects\\RobotTemplate deploy run
clean:
Deleting directory C:\Users\Developer\Documents\NetBeansProjects\RobotTemplate\build
Created dir: C:\Users\Developer\Documents\NetBeansProjects\RobotTemplate\build
Created dir: C:\Users\Developer\Documents\NetBeansProjects\RobotTemplate\build\classes
[crio-compile] ./src, C:/Users/Developer/sunspotfrcsdk\lib\wpilibj.jar;C:/Users/Developer/sunspotfrcsdk\lib\networktables-crio.jar, C:/Users/Developer/sunspotfrcsdk\lib\squawk.jar -> ./build/classes
Compiling 1 source file to C:\Users\Developer\Documents\NetBeansProjects\RobotTemplate\build\classes
compile:
preverify:
Created dir: C:\Users\Developer\Documents\NetBeansProjects\RobotTemplate\build\preverify
Created dir: C:\Users\Developer\Documents\NetBeansProjects\RobotTemplate\build\preverify.raw.util
[crio-preverify] ./build/classes, , C:/Users/Developer/sunspotfrcsdk\lib\wpilibj.jar;C:/Users/Developer/sunspotfrcsdk\lib\networktables-crio.jar, C:/Users/Developer/sunspotfrcsdk\lib\squawk.jar -> ./build/preverify
Expanding: C:\Users\Developer\sunspotfrcsdk\lib\wpilibj.jar into C:\Users\Developer\Documents\NetBeansProjects\RobotTemplate\build\preverify
Expanding: C:\Users\Developer\sunspotfrcsdk\lib\networktables-crio.jar into C:\Users\Developer\Documents\NetBeansProjects\RobotTemplate\build\preverify
jar:
[crio-jar] ./build/preverify, ./resources -> ./build/app.jar
Building jar: C:\Users\Developer\Documents\NetBeansProjects\RobotTemplate\build\app.jar
suite:
Created dir: C:\Users\Developer\Documents\NetBeansProjects\RobotTemplate\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]
[Including resource: META-INF/maven/edu.wpi.first.wpilib.networktables.java/NetworkTablesAzalea/pom.properties]
[Including resource: META-INF/maven/edu.wpi.first.wpilib.networktables.java/NetworkTablesAzalea/pom.xml]
Romizer processed 388 classes and generated 4 files.
Expanding: C:\Users\Developer\Documents\NetBeansProjects\RobotTemplate\build\app.jar into C:\Users\Developer\Documents\NetBeansProjects\RobotTemplate\build\suite
Moving 1 file to C:\Users\Developer\Documents\NetBeansProjects\RobotTemplate\build\suite
Moving 1 file to C:\Users\Developer\Documents\NetBeansProjects\RobotTemplate\build\suite
Moving 1 file to C:\Users\Developer\Documents\NetBeansProjects\RobotTemplate\build\suite
Deleting: C:\Users\Developer\Documents\NetBeansProjects\RobotTemplate\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
Host OS: Windows 7 6.1, 6.1
Host JVM: Java HotSpot(TM) Client VM 24.45-b08
Target IP: 10.7.2.2
Network interfaces on host:
    Marvell Yukon 88E8040 PCI-E Fast Ethernet Controller:  address: 10.7.2.5 netmask: 255.0.0.0 <--- on robot's subnet
    Dell Wireless 1397 WLAN Mini-Card:  address: 10.7.2.9 netmask: 255.255.255.254
Connecting FTP @10.7.2.2
C:\Users\Developer\sunspotfrcsdk\build.xml:79: The following error occurred while executing this line:
C:\Users\Developer\sunspotfrcsdk\ant\configure.xml:41: Expected version "Java;" for Language but got "C;". Go to http://first.wpi.edu/FRC/frcjava.html to get latest software update
BUILD FAILED (total time: 8 seconds)
Reply With Quote
  #6   Spotlight this post!  
Unread 02-07-2014, 17:17
BigJ BigJ is offline
Registered User
AKA: Josh P.
FRC #1675 (Ultimate Protection Squad)
Team Role: Engineer
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Milwaukee, WI
Posts: 947
BigJ has a reputation beyond reputeBigJ has a reputation beyond reputeBigJ has a reputation beyond reputeBigJ has a reputation beyond reputeBigJ has a reputation beyond reputeBigJ has a reputation beyond reputeBigJ has a reputation beyond reputeBigJ has a reputation beyond reputeBigJ has a reputation beyond reputeBigJ has a reputation beyond reputeBigJ has a reputation beyond repute
Re: Unable to deploy code to cRIO

Quote:
Expected version "Java;" for Language but got "C;"
This is the most glaring problem to me. I don't know exactly but I think your controller may not actually be imaged for Java at the moment.
Reply With Quote
  #7   Spotlight this post!  
Unread 02-07-2014, 17:43
Fluffy21 Fluffy21 is offline
Registered User
FRC #0702
 
Join Date: Jul 2014
Location: United States
Posts: 5
Fluffy21 is an unknown quantity at this point
Re: Unable to deploy code to cRIO

It is definitely imaged to Java. I imaged it twice and just checked the FRC_ImageVersion.ini file on the cRio itself and it says:

[IMAGE]
Name=FRC_2014_v52.zip;
Date=10/31/2013;
FRCProtocolVersion=1337;
FPGAVersion=1.6.4
InvariantFPGAVersion=1.1.0
FRC_NetworkCommunication_Version=p4-1.4.0a18
FRC_BlackJagBridgePlugin_Version=72
FRC_2CANPlugIn_Version=72

[CONFIGURATION]
Language="Java;"
Reply With Quote
  #8   Spotlight this post!  
Unread 02-07-2014, 19:06
Fluffy21 Fluffy21 is offline
Registered User
FRC #0702
 
Join Date: Jul 2014
Location: United States
Posts: 5
Fluffy21 is an unknown quantity at this point
Re: Unable to deploy code to cRIO

Thank you for all of your help, turns out it was the computer!
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 00:43.

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