Go to Post its pretty great when non FIRST friends go into your purse for chapstick or something and find a spike... - anna~marie [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 18-03-2014, 17:41
Kingland093 Kingland093 is offline
Registered User
FRC #4215 (Trinity Tritons)
Team Role: Alumni
 
Join Date: Jan 2014
Rookie Year: 2013
Location: Minnesota
Posts: 107
Kingland093 will become famous soon enough
Error when deploying code

I'm trying to deploy code on an old robot and about 1-2 seconds after I hit run, this error comes up.

C:\Users\Developer\NetBeansProjects\FinalGameCode\ build.xml:28: The following error occurred while executing this line:
C:\Users\Developer\sunspotfrcsdk\build.xml:42: The following error occurred while executing this line:
C:\Users\Developer\sunspotfrcsdk\ant\configure.xml :41: Element type "frcupgrade" must be followed by either attribute specifications, ">" or "/>".

I'm guessing lines 41 and 42 build.xml project got changed somehow, but how do you access it/modify it?

Any help is greatly appreciated!
Reply With Quote
  #2   Spotlight this post!  
Unread 18-03-2014, 21:04
otherguy's Avatar
otherguy otherguy is offline
sparkE
AKA: James
FRC #2168 (The Aluminum Falcons)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2009
Location: CT
Posts: 434
otherguy is a splendid one to beholdotherguy is a splendid one to beholdotherguy is a splendid one to beholdotherguy is a splendid one to beholdotherguy is a splendid one to beholdotherguy is a splendid one to beholdotherguy is a splendid one to behold
Re: Error when deploying code

I think you're on the right path looking at the lines specified in the error message.

I've uploaded copies of the files specified at the following links.

Check the line numbers in the error message and those surrounding it for any deviations. Post back with your findings.

C:\Users\Developer\sunspotfrcsdk\ant\configure.xml check around line 41
https://gist.github.com/jcorcoran/9633480

C:\Users\Developer\sunspotfrcsdk\build.xml check around line 42
https://gist.github.com/jcorcoran/9633445
__________________
http://team2168.org
Reply With Quote
  #3   Spotlight this post!  
Unread 18-03-2014, 21:31
Kingland093 Kingland093 is offline
Registered User
FRC #4215 (Trinity Tritons)
Team Role: Alumni
 
Join Date: Jan 2014
Rookie Year: 2013
Location: Minnesota
Posts: 107
Kingland093 will become famous soon enough
Re: Error when deploying code

Do you know if you can actually access the build.xml file directly from netbeans?
Normally, you can get onto it if there's some error message in the code deploying output, but is it possible to just open it when you start netbeans?
Reply With Quote
  #4   Spotlight this post!  
Unread 20-03-2014, 22:49
Kingland093 Kingland093 is offline
Registered User
FRC #4215 (Trinity Tritons)
Team Role: Alumni
 
Join Date: Jan 2014
Rookie Year: 2013
Location: Minnesota
Posts: 107
Kingland093 will become famous soon enough
Re: Error when deploying code

Quote:
Originally Posted by otherguy View Post
I think you're on the right path looking at the lines specified in the error message.

I've uploaded copies of the files specified at the following links.

Check the line numbers in the error message and those surrounding it for any deviations. Post back with your findings.

C:\Users\Developer\sunspotfrcsdk\ant\configure.xml check around line 41
https://gist.github.com/jcorcoran/9633480

C:\Users\Developer\sunspotfrcsdk\build.xml check around line 42
https://gist.github.com/jcorcoran/9633445
Another programmer looked at this today and he said that there was something wrong with the build.xml file, but there was also some issue with it missing a java.lang(?) file (or something to that extent). I'll have to talk to him more to understand fully what is going on.
Reply With Quote
  #5   Spotlight this post!  
Unread 24-03-2014, 02:37
Patrick Chiang Patrick Chiang is offline
Programming
FRC #3070 (Team Pronto)
Team Role: Mentor
 
Join Date: Feb 2009
Rookie Year: 2009
Location: Seattle
Posts: 162
Patrick Chiang is a name known to allPatrick Chiang is a name known to allPatrick Chiang is a name known to allPatrick Chiang is a name known to allPatrick Chiang is a name known to allPatrick Chiang is a name known to all
Re: Error when deploying code

As the otherguy said, your master build.xml is probably broken. The surest way to test-fix this is to copy it over from another computer where deployment is working. If that is not possible, the stock file provided above should suffice.

The file is not directly accessible in Netbeans, but you can find its location by going into Tools > Options > Misc top tab > FRC config, and looking at the directory for "Use Alternate SDK Location".
You should find it in "C:\Users\[username]\sunspotfrcsdk\build.xml"
Reply With Quote
  #6   Spotlight this post!  
Unread 29-03-2014, 19:52
MatthewC529 MatthewC529 is offline
Lcom/mattc/halp;
AKA: Matthew
FRC #1554 (Oceanside Sailors)
Team Role: Mentor
 
Join Date: Feb 2014
Rookie Year: 2013
Location: New York
Posts: 39
MatthewC529 is on a distinguished road
Re: Error when deploying code

Sorry this is late but I have dealt with Build.xml and various other XML files provided in sunspotfrcsdk.

You CAN access the files themselves via netbeans BUT to save you MUST have the program used to open it, open in Adminstrator, even if you jsut use "Open as Administrator". You seem to be missing the part of a line where is says, This is the end of an Element Declaration. Hopefully you will resolve that issue. If you open it and at the line specified you dont see an '>' or '/> at the end of an element specifcation then just add it in and try.

Example:
Normal:
<target name = ... >
<mkdir ... />
....

Problem:
<target name = ...
<mkdir ... />
or
<target name = ... >
<mkdir ... > //Or non at all

or some permutation of that.


Hope I helped somewhat.
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:36.

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