go_away

Author Topic: Project designer code generation error  (Read 752 times)

0 Members and 1 Guest are viewing this topic.

Offline Joker94Topic starter

  • Supreme Robot
  • *****
  • Posts: 1,119
  • Helpful? 26
Project designer code generation error
« on: December 03, 2011, 01:02:36 AM »
Hi All

When I go to generate the code using project designer (for axon2) i get the error message "Java.lang.NullPointerException". I googled it and found that it is Java not being able to locate something where it thinks it is. I have since gone through all of the file and checked for file placement, spaces in names and that sort of thing but have found nothing.

This is the first time that I have used project designer on my new laptop and the first time that I have tried to generate code for a project.

Have people encountered this problem before and aware of a means of remedying the situation?

Cheers,

Joker94

Offline Gertlex

  • Supreme Robot
  • *****
  • Posts: 742
  • Helpful? 23
  • Nuclear Engineer Roboticist
Re: Project designer code generation error
« Reply #1 on: December 03, 2011, 01:06:55 AM »
I've not experienced this error myself.  One thing to try would be disabling devices one by one and seeing if any of them take the error away with them.
I

Offline Joker94Topic starter

  • Supreme Robot
  • *****
  • Posts: 1,119
  • Helpful? 26
Re: Project designer code generation error
« Reply #2 on: December 05, 2011, 02:46:37 AM »
Quote
I've not experienced this error myself.  One thing to try would be disabling devices one by one and seeing if any of them take the error away with them.

Gave this a shot but still had the same error.

After some more playing it looks as though I have been able to get all files to output apart from the AVR studio file. Although i can work around this it would be nice not to have to worry.

But seeing as it is the AVR studio file that I am having trouble executing i'll see if i can find anything specific between AVR studio and project designer that might be causing the problem.

Cheers

Joker94

Offline Gertlex

  • Supreme Robot
  • *****
  • Posts: 742
  • Helpful? 23
  • Nuclear Engineer Roboticist
Re: Project designer code generation error
« Reply #3 on: December 05, 2011, 12:10:01 PM »
This probably won't help, but feel free to post the project file and I'll see if it gives me errors.

You could also try a fresh download of Project Designer, but you might well have tried that already.

Regards,
-Gert
I

Offline Joker94Topic starter

  • Supreme Robot
  • *****
  • Posts: 1,119
  • Helpful? 26
Re: Project designer code generation error
« Reply #4 on: December 05, 2011, 06:46:20 PM »
I have given a fresh install of project designer a shot but has no success with that.

BTW. I have given both versions of webbot lib a try but unsurprisingly it has made no difference,

Offline adanvasco

  • Full Member
  • ***
  • Posts: 107
  • Helpful? 6
  • Necessity is the mother of invention.
Re: Project designer code generation error
« Reply #5 on: December 06, 2011, 08:59:16 AM »
When exactly do you get the error? When opening the program or when compiling (or whatever it is it does, not sure, not a user). Can you find any sort of log and post it here?

Good luck.
Knowledge does not weigh.

Offline Webbot

  • Expert Roboticist
  • Supreme Robot
  • *****
  • Posts: 2,132
  • Helpful? 108
Re: Project designer code generation error
« Reply #6 on: December 06, 2011, 02:21:22 PM »
What version of AVRStudio are you using?

You could also try opening a command window, changing to the folder where Project Designer is installed (ie find the file ProjectDesigner.jar). Then run:-
java -jar ProjectDesigner.jar
This should dump out more info about the error to the command prompt window. ie when you get the NullPointerException look in the command window and cut'n'paste what's there into a forum post - or just email it to me as it wont be much use to others. It will help me track down whats caused the error.

Until we get enough info to fix it then in AVRStudio tell it to use an external makefile and select the one that has been created by project designer (in the top level folder of your project)
Webbot Home: http://webbot.org.uk/
WebbotLib online docs: http://webbot.org.uk/WebbotLibDocs
If your in the neighbourhood: http://www.hovinghamspa.co.uk

Offline Joker94Topic starter

  • Supreme Robot
  • *****
  • Posts: 1,119
  • Helpful? 26
Re: Project designer code generation error
« Reply #7 on: December 06, 2011, 06:03:39 PM »
When exactly do you get the error? When opening the program or when compiling (or whatever it is it does, not sure, not a user)

The point at which i get the error is when i have made all the selection in the code generation window and click on 'generate' for the final time and the code is generated.

I'll give the command promt option a shot and  post the output i get. It will be a learning curve for me as i have not used command prompt alot so it will be interesting!

And btw, i am using AVR studio 4. I had v5 installed on another computer and really didn't like it, not easy to transition to from what i use now so really not worth the time.

cheers

Joker94

 


Get Your Ad Here