Go to Post Let's sheathe the pitchforks and douse the torches for another two months, shall we? - Taylor [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 11-01-2012, 20:35
swootton swootton is offline
Registered User
AKA: Steve Wootton
FRC #4055 (NRG4055)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Barkhamsted, CT
Posts: 50
swootton is on a distinguished road
Error Deploying JAVA

We are having an issue when we try to deploy our code. We get two lines of errors:
[crio] task 0x2869fd8 (mdns resolve) deleted: errno=0 (0) status=0 (0)
[crio] task 0x2bff138 (mdns resolve) deleted: errno=0 (0) status=0 (0)
Then the process just stops and we get solid act/link lights on both the crio and the bridge and the PC

What are we doing wrong?
Reply With Quote
  #2   Spotlight this post!  
Unread 12-01-2012, 19:19
swootton swootton is offline
Registered User
AKA: Steve Wootton
FRC #4055 (NRG4055)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Barkhamsted, CT
Posts: 50
swootton is on a distinguished road
Unhappy Re: Error Deploying JAVA

Hey guys,
We are desperate. Three night and our rookie team is dying here. We need some help from the experts.
Reply With Quote
  #3   Spotlight this post!  
Unread 12-01-2012, 19:31
BradAMiller BradAMiller is offline
Registered User
AKA: Brad
#0190 ( Gompei and the Herd)
Team Role: Mentor
 
Join Date: Mar 2004
Location: Worcester, MA
Posts: 588
BradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant future
Re: Error Deploying JAVA

Were there any other messages in the console window?

Can you verify that you can ping the cRIO? You should open a CMD window on your PC that is connected to the robot and type "ping 10.x.y.2" where x.y are your team number. If you don't get a response, there is a connectivity problem.

You might also try to disable the windows firewall on your system to see if that helps.

Let us know what happens after you try those things.
__________________
Brad Miller
Robotics Resource Center
Worcester Polytechnic Institute
Reply With Quote
  #4   Spotlight this post!  
Unread 12-01-2012, 19:32
sebflippers sebflippers is offline
Registered User
FRC #2914
 
Join Date: Jan 2012
Location: dc
Posts: 56
sebflippers will become famous soon enoughsebflippers will become famous soon enough
Re: Error Deploying JAVA

are you sure that all the dip switches are off?
Reply With Quote
  #5   Spotlight this post!  
Unread 13-01-2012, 07:20
swootton swootton is offline
Registered User
AKA: Steve Wootton
FRC #4055 (NRG4055)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Barkhamsted, CT
Posts: 50
swootton is on a distinguished road
Re: Error Deploying JAVA

Yes we can ping the crio and the pc itself. The dipswitches are all electronic and are set off in the flashing utility. We even reflashed with the image a second time in case it was corrupted. I printed a copy of some other people's error messages and it appears we are not even starting to load the code. My programming teams thinks they may have forgotten to install or update a couple things. We are also istalling all the software on the Classmate to assure it is not a laptop issue.

We did a quick build on Saturday and it actually created more issues than if we followed the step by step instuctions. If you have any other suggestion, let me know and I'll post back tonight with any updates and post the entire output file.

Thanks, Guys
Reply With Quote
  #6   Spotlight this post!  
Unread 13-01-2012, 08:52
impulse impulse is offline
Registered User
FRC #4236
 
Join Date: Jan 2012
Location: mississuaga
Posts: 1
impulse is an unknown quantity at this point
Re: Error Deploying JAVA

Hi Steve,

Our rookie team is treading same waters. We may have a corrupted Crio and of course we cannot deploy our java code. If your team was able to get it worked, can you let us know how to's?

Note: Yesterday some of our team members fried two of the jaguars ...

It is still going though

cheers,
George
Reply With Quote
  #7   Spotlight this post!  
Unread 13-01-2012, 10:58
bdbayes bdbayes is offline
Captain
FRC #2927 (Pi Rho Techs)
Team Role: Leadership
 
Join Date: Apr 2011
Rookie Year: 2009
Location: Tacoma, WA
Posts: 75
bdbayes is a jewel in the roughbdbayes is a jewel in the roughbdbayes is a jewel in the rough
Re: Error Deploying JAVA

Are you able to see the robot via the driver station software?
Reply With Quote
  #8   Spotlight this post!  
Unread 13-01-2012, 20:04
swootton swootton is offline
Registered User
AKA: Steve Wootton
FRC #4055 (NRG4055)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Barkhamsted, CT
Posts: 50
swootton is on a distinguished road
Re: Error Deploying JAVA

OK guys, here's the whole log file for the build and run. This the default sample code from the getting started with java.
Please review and help!!!

init:
init:
Deleting directory C:\Users\Teacher\Documents\1-FirstTeam4055\RoboticPrograms\RobotTemplateFirstDr ive1\build
Deleting directory C:\Users\Teacher\Documents\1-FirstTeam4055\RoboticPrograms\RobotTemplateFirstDr ive1\suite
Deleting directory C:\Users\Teacher\Documents\1-FirstTeam4055\RoboticPrograms\RobotTemplateFirstDr ive1\j2meclasses
clean:
Created dir: C:\Users\Teacher\Documents\1-FirstTeam4055\RoboticPrograms\RobotTemplateFirstDr ive1\build
Compiling 1 source file to C:\Users\Teacher\Documents\1-FirstTeam4055\RoboticPrograms\RobotTemplateFirstDr ive1\build
compile:
Created dir: C:\Users\Teacher\Documents\1-FirstTeam4055\RoboticPrograms\RobotTemplateFirstDr ive1\j2meclasses
preverify:
Created dir: C:\Users\Teacher\Documents\1-FirstTeam4055\RoboticPrograms\RobotTemplateFirstDr ive1\suite
Building jar: C:\Users\Teacher\Documents\1-FirstTeam4055\RoboticPrograms\RobotTemplateFirstDr ive1\suite\RobotTemplateFirstDrive1_1.0.0.jar
jar-app:
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]
Romizer processed 96 classes and generated 4 files.
Expanding: C:\Users\Teacher\Documents\1-FirstTeam4055\RoboticPrograms\RobotTemplateFirstDr ive1\suite\RobotTemplateFirstDrive1_1.0.0.jar into C:\Users\Teacher\Documents\1-FirstTeam4055\RoboticPrograms\RobotTemplateFirstDr ive1\suite
Moving 1 file to C:\Users\Teacher\Documents\1-FirstTeam4055\RoboticPrograms\RobotTemplateFirstDr ive1\suite
Moving 1 file to C:\Users\Teacher\Documents\1-FirstTeam4055\RoboticPrograms\RobotTemplateFirstDr ive1\suite
Moving 1 file to C:\Users\Teacher\Documents\1-FirstTeam4055\RoboticPrograms\RobotTemplateFirstDr ive1\suite
Deleting: C:\Users\Teacher\Documents\1-FirstTeam4055\RoboticPrograms\RobotTemplateFirstDr ive1\image.suite.api
Host OS: Windows 7 6.1, 6.1
Host JVM: Java HotSpot(TM) Client VM 20.5-b03
Target IP: 10.40.55.2
Network interfaces on host:
Realtek PCIe GBE Family Controller: address: 10.40.55.6 netmask: 255.255.255.255 or hidden by IPv6 address (due to Java on Windows Bug:6707289)
Connecting FTP @10.40.55.2
upgrade:
Sending local file image.suite
flashapp:
deploy:
debug-run:
do-debug-run:
[cRIO] [OTA Server] ********* REBOOTING cRIO *********
[cRIO]
Waiting for cRIO to reboot (1s)
Waiting for cRIO to reboot (2s)
Waiting for cRIO to reboot (3s)
Waiting for cRIO to reboot (4s)
Waiting for cRIO to reboot (5s)
Waiting for cRIO to reboot (6s)
Waiting for cRIO to reboot (7s)
[cRIO]
Connect debugger attempt 1
Connecting NetBeans debugger
Start debug proxy
init:
CompilerOracle: exclude com/sun/squawk/Method.getParameterTypes
CompilerOracle: exclude com/sun/squawk/SymbolParser.getSignatureTypeAt
CompilerOracle: exclude com/sun/squawk/SymbolParser.stripMethods
Trying to connect to VM on socket://10.40.55.2:2800
Attached JPDA debugger to localhost:2900
Failed to establish connection with VM: Connection refused: connect - trying again in 5 seconds...
[cRIO] -> * Loading debug.o: debug
[cRIO] Debugging is up, target server mounted at /tsfs
[cRIO]
[cRIO]
[cRIO] VxWorks
[cRIO]
[cRIO] Copyright 1984-2006 Wind River Systems, Inc.
[cRIO]
[cRIO] CPU: cRIO-FRC II
[cRIO] Runtime Name: VxWorks
[cRIO] Runtime Version: 6.3
[cRIO] BSP version: 1.0/0
[cRIO] Created: Jun 2 2011, 16:29:00
[cRIO] ED&R Policy Mode: Deployed
[cRIO] WDB Comm Type: WDB_COMM_END
[cRIO] WDB: Ready.
[cRIO]
[cRIO] * Loading nisysrpc.out: nisysrpc
[cRIO] * Loading NiRioRpc.out: NiRioRpc
[cRIO] * Loading nivissvc.out: nivissvc
[cRIO] * Loading nivision.out: nivision
[cRIO] NI-RIO Server 4.0.0b8 started successfully.
[cRIO] task 0xeb6cf8 (NiRioRpc) deleted: errno=0 (0) status=0 (0)
[cRIO] * Loading visa32.out: visa32
[cRIO] * Loading niserial.out: niserial
[cRIO] * Loading sysstatepublisher.out: sysstatepublisher
[cRIO] task 0xfc9b00 (ServerAds.Lookup) deleted: errno=0 (0) status=0 (0)
[cRIO] task 0xff2178 (ServerAds.Lookup) deleted: errno=0 (0) status=0 (0)
Trying to connect to VM on socket://10.40.55.2:2800
[cRIO] task 0x163af30 (ServerAds.Lookup) deleted: errno=0 (0) status=0 (0)
[cRIO] * Loading RTWebServer.out: RTWebServer
Failed to establish connection with VM: Connection refused: connect - trying again in 5 seconds...
[cRIO] System Web Server started
[cRIO] * Loading NiFpgaLv.out: NiFpgaLv
[cRIO] task 0x25f3f20 (tNiDsc0) deleted: errno=13893648 (0xd40010) status=0 (0)
[cRIO] * Loading FRC_FPGA.out: FRC_FPGA
[cRIO] * Loading FRC_NetworkCommunication.out: FRC_NetworkCommunication
[cRIO] FRC_NetworkCommunication was compiled from SVN revision 2923
Trying to connect to VM on socket://10.40.55.2:2800
Failed to establish connection with VM: Connection refused: connect - trying again in 5 seconds...
[cRIO] FPGA Hardware GUID: 0x1394F6DC1FEB42EC6910E5767ED1D22C
[cRIO] FPGA Software GUID: 0x1394F6DC1FEB42EC6910E5767ED1D22C
[cRIO] FPGA Hardware Version: 2012
[cRIO] FPGA Software Version: 2012
[cRIO] FPGA Hardware Revision: 1.6.4
[cRIO] FPGA Software Revision: 1.6.4
[cRIO] * Loading FRC_JavaVM.out: FRC_JavaVM
[cRIO]
[cRIO]
[cRIO] [OTA Server] Version: 2012 FRC, Jan 5 2012, 17:20:48
[cRIO]
[cRIO]
[cRIO] Welcome to LabVIEW Real-Time 11.0rc14
[cRIO] task 0xeaea58 (sysapi-rpc) deleted: errno=0 (0) status=0 (0)
[cRIO]
[cRIO] [Squawk VM] Version: 2011 FRC, Nov 5 2011, 14:34:13
[cRIO] [Squawk VM] File SQUAWK_DEBUG_ENABLED found, starting squawk in debug mode...
[cRIO] Listening for connection from proxy on serversocket://:2800
Trying to connect to VM on socket://10.40.55.2:2800
Established connection to VM (handshake took 16ms)
[cRIO] FPGA Hardware GUID: 0x1394f6dc1feb42ec6910e5767ed1d22c
[cRIO] FPGA Software GUID: 0xa14c11bde4bb64aef6a86fc52a294cd9
[cRIO] DIO LoopTiming: 260, expecting: 261
Waiting for connection from debugger on serversocket://:2900
[cRIO] task 0x25b3c80 (System Web Services Load Thread) deleted: errno=0 (0) status=0 (0)
[cRIO] task 0x2856198 (mDNS resolve) deleted: errno=0 (0) status=0 (0)
[cRIO] task 0x2beb2f8 (mDNS resolve) deleted: errno=0 (0) status=0 (0)
Reply With Quote
  #9   Spotlight this post!  
Unread 13-01-2012, 20:07
bdbayes bdbayes is offline
Captain
FRC #2927 (Pi Rho Techs)
Team Role: Leadership
 
Join Date: Apr 2011
Rookie Year: 2009
Location: Tacoma, WA
Posts: 75
bdbayes is a jewel in the roughbdbayes is a jewel in the roughbdbayes is a jewel in the rough
Re: Error Deploying JAVA

After attempting to deploy, you should be able to open the driver station software and see if it shows you having any code on your robot.
Reply With Quote
  #10   Spotlight this post!  
Unread 13-01-2012, 20:45
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: Error Deploying JAVA

Quote:
Originally Posted by swootton View Post
Waiting for connection from debugger on serversocket://:2900
Did you try connecting the Debugger? See the instructions starting on the bottom of page 9 of Getting Started with Java (or run the program without debugging the way Brad posted above)
Reply With Quote
  #11   Spotlight this post!  
Unread 13-01-2012, 20:53
swootton swootton is offline
Registered User
AKA: Steve Wootton
FRC #4055 (NRG4055)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Barkhamsted, CT
Posts: 50
swootton is on a distinguished road
Re: Error Deploying JAVA

We get the same error whether we run in debug mode or not. Happens on both development laptops as well as the classmate. After we perform this procedure we get the connected light and robot code light in driver's station but the jaguars do not go solid green and nothing happens.
Reply With Quote
  #12   Spotlight this post!  
Unread 13-01-2012, 21:19
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: Error Deploying JAVA

What you're seeing is not an error.

Have you tried Enabling the robot with the Driver Station? Did you rework your DB-37 cable? What is the light next to the 2 pin header on the Digital Sidecar doing? Are all 3 lights on the Digital Sidecar brightly lit?
Reply With Quote
  #13   Spotlight this post!  
Unread 13-01-2012, 20:24
BradAMiller BradAMiller is offline
Registered User
AKA: Brad
#0190 ( Gompei and the Herd)
Team Role: Mentor
 
Join Date: Mar 2004
Location: Worcester, MA
Posts: 588
BradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant future
Try hitting the "play" (green triangle) button rather than the debug button. It looks like its a debugger issue and not a deployment issue. I think you can also use F6.

Brad
__________________
Brad Miller
Robotics Resource Center
Worcester Polytechnic Institute
Reply With Quote
  #14   Spotlight this post!  
Unread 13-01-2012, 21:17
BradAMiller BradAMiller is offline
Registered User
AKA: Brad
#0190 ( Gompei and the Herd)
Team Role: Mentor
 
Join Date: Mar 2004
Location: Worcester, MA
Posts: 588
BradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant future
Actually, the status code of 0 at the end of your previous log is not an error. Are you sure that your program isn't deploying? Is it possible that the program just has an error in it and isn't doing what you're expecting?

Can you try one of the default programs like the simple robot template, and put in some print statements and see if anything comes out on the console? Also, you might want to take out some of the motor code to make it easier.

Brad
__________________
Brad Miller
Robotics Resource Center
Worcester Polytechnic Institute
Reply With Quote
  #15   Spotlight this post!  
Unread 13-01-2012, 21:19
bdbayes bdbayes is offline
Captain
FRC #2927 (Pi Rho Techs)
Team Role: Leadership
 
Join Date: Apr 2011
Rookie Year: 2009
Location: Tacoma, WA
Posts: 75
bdbayes is a jewel in the roughbdbayes is a jewel in the roughbdbayes is a jewel in the rough
Re: Error Deploying JAVA

Sounds like a good idea to me.

Quote:
Originally Posted by BradAMiller View Post
Actually, the status code of 0 at the end of your previous log is not an error. Are you sure that your program isn't deploying? Is it possible that the program just has an error in it and isn't doing what you're expecting?

Can you try one of the default programs like the simple robot template, and put in some print statements and see if anything comes out on the console? Also, you might want to take out some of the motor code to make it easier.

Brad
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: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