Society of Robots - Robot Forum

Software => Software => Topic started by: Joker94 on December 03, 2011, 01:02:36 AM

Title: Project designer code generation error
Post by: Joker94 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
Title: Re: Project designer code generation error
Post by: Gertlex 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.
Title: Re: Project designer code generation error
Post by: Joker94 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
Title: Re: Project designer code generation error
Post by: Gertlex 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
Title: Re: Project designer code generation error
Post by: Joker94 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,
Title: Re: Project designer code generation error
Post by: adanvasco 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.
Title: Re: Project designer code generation error
Post by: Webbot 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)
Title: Re: Project designer code generation error
Post by: Joker94 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