Go to Post Great things don't just happen to HoF teams; HoF teams make great things happen. - Siri [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, 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
  #2   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
  #3   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
  #4   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
  #5   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
  #6   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