The Web Blog of Michael P. Stone

Blogging about ColdFusion, PHP, JQuery, E-Commerce, Social-Networking, Music, and games.

Recent Posts

Recent Comments

Resources

Login to ease your way through comments!

What are the benefits?

  • Fly through commenting by only inputing your comment and pressing submit!
  • Never get lost in a conversation again!
  • Be able to access of all of your comments by logging into your admin account.

ajax loader

(Case Sensitive)

Visual Editor java.lang.NullPointerException Fix

Posted by Michael Stone | May 05, 2010

While continuing development of a Java application, I tried opening my GUI classes and I couldn't get either of them to open up correcty with the Visual Editor. After a few times of restarting Eclipse, nothing was working so I did some exploring on the web and found some forums. A lot of which were not helpful, but I did manage to find the fix within one. Now, I do not know what caused my error, there seems to be nothing wrong with my code and it's never behaved like this before, but for some odd reason today, the product of attempting to do some Java development was an error, Visual Editor java.lang.NullPointerException     

and the by-product was knowing the fix and having the opportunity to share it with others. 

 

Now I did see in some cases that this didn't work as the fix, but for my project, it worked perfectly and very fast!

 

The Eclipse version I'm using is:

  • Eclipse IDE for Java EE Developers: 1.2.2.20100217-2310
  • Visual Editor: 1.4.0.v20090826-1446-57F-9xKEUXK5__GAVDlmFRiymDdO

 

To fix this error follow these steps:

  • Go to Project. Select Clean...

 

javaError

 

  • You should see a screen like this now.


 

Simply select the project(s) you'll want to clean and then press ok. Once the project(s) have been successfully cleaned, restart Eclipse and try it again.

 

If this fix doesn't work, you may have another issue that may be related to some part of your code or package dependencies.

 

Feel free to post any other ideas or comments.

 

Thanks.

Visual Editor java.lang.NullPointerException Fix

Login to comment

Your e-mail will not be displayed anywhere, nor will it be sold or shared to other sites.


ajax loader

Comments (2)

New Comment | Login | Share


  • gravatar
    Agustin
    06/11/2010 03:55:PM
    it worked perfectly and very fast! Eclipse SDK Version: 3.2.2
  • 06/13/2010 07:52:PM
    Great! Glad to of helped!