NPE during OST generation

Issue #912 resolved
Scott Dentes created an issue

Worked fine for me until

Stack trace from log:

java.lang.NullPointerException at com.illuminatedcloud.symtab.ApexTypeName.getKeyForm(SourceFile:59) at com.illuminatedcloud.symtab.ApexTypeName.hashCode(SourceFile:65) at java.util.HashMap.hash( at java.util.HashMap.put( at com.illuminatedcloud.symtab.OfflineSymbolTable.getAllTypeNames(SourceFile:1162) at com.illuminatedcloud.symtab.OfflineSymbolTable.generateApexSourceFiles(SourceFile:2467) at com.illuminatedcloud.symtab.OfflineSymbolTable.generateOfflineSymbolTable(SourceFile:815) at com.illuminatedcloud.intellij.settings.project.OfflineSymbolTableGenerator$ at com.intellij.openapi.progress.impl.CoreProgressManager$ at com.intellij.openapi.progress.impl.CoreProgressManager.a( at com.intellij.openapi.progress.impl.CoreProgressManager.a( at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress( at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress( at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess( at com.intellij.openapi.progress.impl.ProgressManagerImpl$ at com.intellij.openapi.application.impl.ApplicationImpl$ at java.util.concurrent.Executors$ at at java.util.concurrent.ThreadPoolExecutor.runWorker( at java.util.concurrent.ThreadPoolExecutor$ at

Comments (9)

  1. Scott Wells repo owner

    Sorry for the issue, Scott. I did rewrite the portion of OST generation for custom classes to incorporate some considerable performance optimizations. Let me address this NPE immediately with a build posted here to get you unblocked and then I'll issue a new build later today in case others are hitting this. I'll have a build for you to install very shortly.

  2. Scott Wells repo owner

    Okay, this is exactly 2.01.2 with what should be a fix/workaround for the issue you're seeing. Having said that, it will also log information about the true root cause of the issue which isn't necessarily addressed here. Please do the following if you don't mind:

    • Download this build and install it using Settings/Preferences>Plugins>Install plugin from disk.
    • Add the following to Help>Debug Log Settings:
    • Generate your OST.
    • Whether it succeeds or fails, send me your idea.log using Help>Show Log in Explorer/Finder/Files. If it contains sensitive info, feel free to email it to me.

    Hopefully this will get you going again, but if it doesn't it should provide enough info for me to get you another build that does. In the interim you can always roll back to by downloading it from here. Before doing so, though, let's please get some root cause diagnostic info so that I can resolve the core issue.

    Thanks, and sorry again for the inconvenience!

  3. Scott Dentes reporter

    Hotfix seems to have solved the problem for me - sent you an email just now with the requested log.

    Thank you!

  4. Scott Dentes reporter

    I'm getting bouncebacks from my company email server - looks like I won't be able to get you the full log.

  5. Scott Wells repo owner

    Any chance you could look for any relevant stack traces in the log and attach them here? Look for the message "Failed to determine a type name for symbol table" and please attach the full contents (redacting/obfuscating as necessary). No problem if you're unable to do so, though.

  6. Scott Dentes reporter

    sure! Only instance of that was relating to a managed package we use called Geopointe:

    2018-03-07 10:14:48,287 [ 206030] WARN - loud.symtab.OfflineSymbolTable - Failed to determine a type name for symbol table: { "declarationType": "CLASS", "innerClasses": [], "name": "", "namespace": "geopointe", "properties": [], "tableDeclaration": { "visibility": "GLOBAL", "modifiers": [ "global" ], "name": "", "type": "Type" }, "variables": [] }

  7. Scott Wells repo owner

    Perfect! Thanks much. So the issue is the "name": "" portion of that. I'll see if I can backtrack to how that happened initially which might require one more pass on debug logging. In the interim please let me know if you find any gaps in your OST, in particular with custom classes that you expect to be there. I'll keep you posted as I continue digging into the root cause analysis.

  8. Log in to comment