Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Java (http://www.chiefdelphi.com/forums/forumdisplay.php?f=184)
-   -   Error Deploying JAVA (http://www.chiefdelphi.com/forums/showthread.php?t=99875)

swootton 11-01-2012 20:35

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?

swootton 12-01-2012 19:19

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.

BradAMiller 12-01-2012 19:31

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.

sebflippers 12-01-2012 19:32

Re: Error Deploying JAVA
 
are you sure that all the dip switches are off?

swootton 13-01-2012 07:20

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

impulse 13-01-2012 08:52

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

bdbayes 13-01-2012 10:58

Re: Error Deploying JAVA
 
Are you able to see the robot via the driver station software?

swootton 13-01-2012 20:04

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)

bdbayes 13-01-2012 20:07

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.

BradAMiller 13-01-2012 20:24

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

RufflesRidge 13-01-2012 20:45

Re: Error Deploying JAVA
 
Quote:

Originally Posted by swootton (Post 1104829)
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)

swootton 13-01-2012 20:53

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.

BradAMiller 13-01-2012 21:17

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

RufflesRidge 13-01-2012 21:19

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?

bdbayes 13-01-2012 21:19

Re: Error Deploying JAVA
 
Sounds like a good idea to me.

Quote:

Originally Posted by BradAMiller (Post 1104882)
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


swootton 13-01-2012 21:45

Re: Error Deploying JAVA
 
This is the sample code suggested to use in the getting started package. I'll check the lights in the AM. When we enable it nothing happens. We did not do anything with the DB37, should we have?

bdbayes 13-01-2012 21:52

Re: Error Deploying JAVA
 
Quote:

DB37 Rework
Please note that many, if not all, of the DB37 cables shipped in the 2012 Kickoff Kits were assembled incorrectly. We have posted more information about the issue as well as instructions to fix the cables here.
Click Here for instructions

swootton 14-01-2012 10:36

Re: Error Deploying JAVA
 
Ok, we managed to get the problem fixed. The Crio is now working and the robot can now move in tank drive. The fix for the DB37 cable was all that we needed.
Thank you all for the help. :7

bdbayes 14-01-2012 10:38

Glad to hear you were able to fix it.

linuxman 26-01-2012 22:57

Re: Error Deploying JAVA
 
We had had the same error as mentioned in this thread, We took the advice and checked our cable and there was an issue, but that didn't solve that. We are running off of Java on Linux. We also reimaged our cRio to be compiled with LabView and the code compiled onto the robot. The java compiler freezing hasn't changed whether the cable was attached or not.

derekwhite 27-01-2012 10:11

Re: Error Deploying JAVA
 
Sorry, there's not enough information to go on. Can you provide a full log of what you're seeing? In fact I'd suggest starting a new thread since your problem seems to be different than the OP.

Good luck!

touchdownjesus4 27-01-2012 15:29

Re: Error Deploying JAVA
 
We are having the exact same problem as the OP, hopefully fixing the cable should resolve the issue.

Just to be clear, when I hit the green button in netbeans it should run all the way through without this error after we fix the cable right?

BradAMiller 27-01-2012 16:04

Re: Error Deploying JAVA
 
Quote:

Originally Posted by touchdownjesus4 (Post 1114742)
We are having the exact same problem as the OP, hopefully fixing the cable should resolve the issue.

Just to be clear, when I hit the green button in netbeans it should run all the way through without this error after we fix the cable right?

When you hit the green button it builds your program, downloads it to the cRIO (using built-in FTP), then reboots the cRIO so your program comes up running.

Fixing the cable will address problems after the program starts. It won't make download properly if it wasn't doing that before.

Brad


All times are GMT -5. The time now is 12:25.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi