The other day I started getting plagued by constant pop-ups in Flashbuilder notifying me that “An internal error occurred during: “Finding occurrences””, the details then outline that a “java.lang.NullPointerException” is to blame. The partial stack-trace was as follows:
1 2 3 4 5 6 7 8 9 10 11 12 |
!ENTRY org.eclipse.core.jobs 4 2 2013-07-10 17:47:41.466 !MESSAGE An internal error occurred during: "Finding occurrences". !STACK 0 java.lang.NullPointerException at com.adobe.flexbuilder.codemodel.internal.common.AbstractTextDatabase.refresh(AbstractTextDatabase.java:250) at com.adobe.flexbuilder.codemodel.internal.search.BaseSearchDataProvider.processDeferredFiles(BaseSearchDataProvider.java:397) at com.adobe.flexbuilder.codemodel.internal.search.BaseSearchDataProvider.findOccurrences(BaseSearchDataProvider.java:238) at com.adobe.flexbuilder.codemodel.internal.search.ASSearchDataProvider.findOccurrences(ASSearchDataProvider.java:99) at com.adobe.flexbuilder.codemodel.internal.indices.SearchIndexGateway.getOccurrencesInternal(SearchIndexGateway.java:200) at com.adobe.flexbuilder.codemodel.internal.indices.SearchIndexGateway.getOccurrences(SearchIndexGateway.java:166) at com.adobe.flexide.as.core.search.MarkOccurrencesProcessor$ReferenceSearcher.run(MarkOccurrencesProcessor.java:115) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54) |
After a ton of googling on the error, the best solution I could find was to simply try and drag this window somewhere off the screen and ignore it. Unfortunately, this just wasn’t going to work for me; partly because Flashbuilder wouldn’t allow me to drag the window off screen, but mostly because I wanted to find a real fix! After a bunch of trial and error I was finally able to pin this down to a workspace error.
The Solution: For me the solution ended up being pretty simple. I made a backup copy of all the projects in my workspace, then deleted all the files (including the hidden ones) in my workspace. Next I pointed Flashbuilder at the now empty workspace directory (forcing it to recreate all the workspace files). Finally I imported the project folders that I had backed up. That seemed to do the trick for me. Now I’m just hoping that the same error doesn’t resurface in 20 minutes…
delete “searchCache”folder in .metadata,restart FlashBuilder and the error disapeared!
Thanks man! This worked great for me as I was getting (Null pointer every few seconds)! Now problem gone!
Good news I found a way to get the content Assist working with flash bluider 4.7, you need only to ignore svn folders and files in the project properties
project>properties>Ressources>ressource filter>add>
check the following options :
exclude all
Folders
All childrens (recursive)
and then choose name *.svn*
validate and close windows try a cmd+space or ctrl+space I have no more java.lang.nullpointerexception !!
if you don’t have any svn files in your project maybe your problem comes from some other source
See below
https://forums.adobe.com/message/5965602#5965602