

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Unexpected exception while building call graph
I got the following error. Thanks for any light.
[error]: Unexpected exception while building call graph (file C:\Users\hjia\AppD
ata\Local\Fortify\sca18.1\build\VirtualTerminal\scratch\assemblies\TransFirst.Vi
rtualTerminal.Admin.Views\AdministrationAssociationsPresenter.cs)
[error]: Unexpected exception: (?)

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Where and when this error was raised?
Show more details, please.
Data, or do not.


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Thanks for response, See below logs:
[2019-06-04 23:26:57.719 Thread-21 WARNING]
Recovered from NST parsing problems in C:/Users/hjia/AppData/Local/Fortify/sca18.1/build/PackageTmp/NST/System_util_collections_LinkedDictionary@2.nst at: 72:17, 81:21, 173:18, 180:18, 189:21, 203:18, 210:21, 242:55, 658:19, 660:23, 672:20, 674:20, 676:23, 678:20, 680:23, 682:57
[2019-06-04 23:26:57.722 Thread-21 WARNING 20507]
Duplicate variable declaration for System.util.collections.LinkedDictionary@2.System.Collections.Generic.ICollection in compilation unit System_util_collections_LinkedDictionary@2.nst
[2019-06-04 23:26:57.722 Thread-21 WARNING 20507]
Duplicate variable declaration for System.util.collections.LinkedDictionary@2.System.Collections.Generic.ICollection in compilation unit System_util_collections_LinkedDictionary@2.nst
[2019-06-04 23:26:57.722 Thread-21 WARNING 20507]
Duplicate variable declaration for System.util.collections.LinkedDictionary@2.System.Collections.Generic.ICollection in compilation unit System_util_collections_LinkedDictionary@2.nst
[2019-06-04 23:26:57.722 Thread-21 WARNING 20507]
Duplicate variable declaration for System.util.collections.LinkedDictionary@2.System.Collections.Generic.ICollection in compilation unit System_util_collections_LinkedDictionary@2.nst
[2019-06-04 23:26:57.723 Thread-21 WARNING 20507]
Duplicate variable declaration for System.util.collections.LinkedDictionary@2.System.Collections.Generic.ICollection in compilation unit System_util_collections_LinkedDictionary@2.nst
[2019-06-04 23:26:57.723 Thread-21 WARNING 20507]
Duplicate variable declaration for System.util.collections.LinkedDictionary@2.System.Collections.Generic.ICollection in compilation unit System_util_collections_LinkedDictionary@2.nst
[2019-06-04 23:27:09.159 Thread-21 WARNING]
Unresolved variable: HandlerRouter @ RadImageEditor.cs:1473
[2019-06-04 23:27:15.965 Thread-21 WARNING]
Unresolved variable: __h__TransparentIdentifier0 @ AdministrationAssociationsPresenter.cs:200
[2019-06-04 23:27:15.965 Thread-21 WARNING]
Unresolved variable: __h__TransparentIdentifier0 @ AdministrationAssociationsPresenter.cs:205
[2019-06-04 23:27:30.940 Thread-21 INFO]
Loaded nametable with 3382 compilation units
[2019-06-04 23:28:28.647 Thread-21 INFO]
Loaded nametable with 4509 compilation units
[2019-06-04 23:29:33.667 Thread-39 SEVERE 1009]
Unexpected exception while building call graph (file C:\Users\hjia\AppData\Local\Fortify\sca18.1\build\PackageTmp\scratch\assemblies\TransFirst.VirtualTerminal.Admin.Views\AdministrationAssociationsPresenter.cs)
java.lang.NullPointerException
at com.fortify.sca.nst.util.Tools.isTempVarName(Tools.java:591)
at com.fortify.sca.nst.nodes.NSTVarDecl.isTempVar(NSTVarDecl.java:160)
at com.fortify.sca.nst.util.Tools$1.visit(Tools.java:168)
at com.fortify.sca.nst.util.Tools$1.visit(Tools.java:164)
at com.fortify.sca.nst.nodes.NSTVarDecl.accept(NSTVarDecl.java:503)
at com.fortify.sca.nst.nodes.NSTNode.childrenAccept(NSTNode.java:678)
at com.fortify.sca.nst.NSTVisitorAdapter.defaultVisit(NSTVisitorAdapter.java:36)
at com.fortify.sca.nst.NSTVisitorAdapter.visit(NSTVisitorAdapter.java:168)
at com.fortify.sca.nst.NSTVisitorAdapter.visit(NSTVisitorAdapter.java:95)
at com.fortify.sca.nst.NSTVisitorAdapter.visit(NSTVisitorAdapter.java:128)
at com.fortify.sca.nst.util.Tools.getSingleUseTempExpression(Tools.java:194)
at com.fortify.sca.nst.util.Tools.getSingleUseTempExpression(Tools.java:126)
at com.fortify.sca.analyzer.preproc.SSAGen$VarRenamer.visit(SSAGen.java:415)
at com.fortify.sca.analyzer.preproc.SSAGen$VarRenamer.visit(SSAGen.java:386)
at com.fortify.sca.nst.NSTVisitorAdapter.visit(NSTVisitorAdapter.java:152)
at com.fortify.sca.nst.nodes.NSTLateBoundFunCall.accept(NSTLateBoundFunCall.java:98)
at com.fortify.sca.analyzer.preproc.SSAGen$VarRenamer.visit(SSAGen.java:450)
at com.fortify.sca.analyzer.preproc.SSAGen$VarRenamer.visit(SSAGen.java:386)
at com.fortify.sca.nst.nodes.NSTAssignmentStmt.accept(NSTAssignmentStmt.java:115)
at com.fortify.sca.analyzer.preproc.SSAGen.renumberVariables(SSAGen.java:341)
at com.fortify.sca.analyzer.preproc.SSAGen.runSSA(SSAGen.java:54)
at com.fortify.sca.nst.nodes.NSTFunDecl.buildSSA(NSTFunDecl.java:667)
at com.fortify.sca.nst.util.memory.FunDeclRef.getNode(FunDeclRef.java:96)
at com.fortify.sca.nst.util.memory.FunDeclRef.getNode(FunDeclRef.java:19)
at com.fortify.sca.nst.nodes.NSTCompilationUnit.acceptFunctionDefinitions(NSTCompilationUnit.java:342)
at com.fortify.sca.backend.BackEnd.runFunctionModelRules(BackEnd.java:1470)
at com.fortify.sca.backend.BackEnd.lambda$runFunctionModelTransformations$10(BackEnd.java:1466)
at com.fortify.sca.util.Parallelizer$1Runner.run(Parallelizer.java:224)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
[2019-06-04 23:30:53.467 Thread-40 SEVERE 1009]
Unexpected exception while building call graph (file C:\Users\hjia\AppData\Local\Fortify\sca18.1\build\PackageTmp\scratch\assemblies\TransFirst.VirtualTerminal.Admin.Views\AdministrationAssociationsPresenter.cs)
java.lang.NullPointerException
at com.fortify.sca.nst.util.Tools.isTempVarName(Tools.java:591)
at com.fortify.sca.nst.nodes.NSTVarDecl.isTempVar(NSTVarDecl.java:160)
at com.fortify.sca.nst.util.Tools$1.visit(Tools.java:168)
at com.fortify.sca.nst.util.Tools$1.visit(Tools.java:164)
at com.fortify.sca.nst.nodes.NSTVarDecl.accept(NSTVarDecl.java:503)
at com.fortify.sca.nst.nodes.NSTNode.childrenAccept(NSTNode.java:678)
at com.fortify.sca.nst.NSTVisitorAdapter.defaultVisit(NSTVisitorAdapter.java:36)
at com.fortify.sca.nst.NSTVisitorAdapter.visit(NSTVisitorAdapter.java:168)
at com.fortify.sca.nst.NSTVisitorAdapter.visit(NSTVisitorAdapter.java:95)
at com.fortify.sca.nst.NSTVisitorAdapter.visit(NSTVisitorAdapter.java:128)
at com.fortify.sca.nst.util.Tools.getSingleUseTempExpression(Tools.java:194)
at com.fortify.sca.nst.util.Tools.getSingleUseTempExpression(Tools.java:126)
at com.fortify.sca.analyzer.preproc.SSAGen$VarRenamer.visit(SSAGen.java:415)
at com.fortify.sca.analyzer.preproc.SSAGen$VarRenamer.visit(SSAGen.java:386)
at com.fortify.sca.nst.NSTVisitorAdapter.visit(NSTVisitorAdapter.java:152)
at com.fortify.sca.nst.nodes.NSTLateBoundFunCall.accept(NSTLateBoundFunCall.java:98)
at com.fortify.sca.analyzer.preproc.SSAGen$VarRenamer.visit(SSAGen.java:450)
at com.fortify.sca.analyzer.preproc.SSAGen$VarRenamer.visit(SSAGen.java:386)
at com.fortify.sca.nst.nodes.NSTAssignmentStmt.accept(NSTAssignmentStmt.java:115)
at com.fortify.sca.analyzer.preproc.SSAGen.renumberVariables(SSAGen.java:341)
at com.fortify.sca.analyzer.preproc.SSAGen.runSSA(SSAGen.java:54)
at com.fortify.sca.nst.nodes.NSTFunDecl.buildSSA(NSTFunDecl.java:667)
at com.fortify.sca.nst.util.memory.FunDeclRef.getNode(FunDeclRef.java:96)
at com.fortify.sca.nst.util.memory.FunDeclRef.getNode(FunDeclRef.java:19)
at com.fortify.sca.nst.nodes.NSTCompilationUnit.acceptFunctionDefinitions(NSTCompilationUnit.java:342)
at com.fortify.sca.analyzer.callgraph.CallGraphBuilder.run(CallGraphBuilder.java:183)
at com.fortify.sca.backend.BackEnd.doCallGraphBuild(BackEnd.java:1529)
at com.fortify.sca.util.Parallelizer$1Runner.run(Parallelizer.java:224)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
[2019-06-04 23:31:29.501 Thread-15 INFO]
Completing call graph


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
> java.lang.NullPointerException
> at com.fortify.sca.nst.util.Tools.isTempVarName(Tools.java:591)
Looks like SCA was not being run on SCA itself 🙂

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
I'm seeing a similar error
1. On the command line -
[error]: Unexpected exception while building call graph (file <unknown>)
java.lang.NullPointerException: null
at com.fortify.sca.analyzer.buffer.MetaNST.NSTExpander ...
2. In the fortify_scan_FortifySupport.log file
logger:com.fortify.logging.LoggerStats marker:DEV thread:sourceanalyzer=-13
MDC:{msgId=-1, prefix=[error]: , severity=NONE, step=COMPLETE_CALLGRAPH} NDC: []
[err] Thread main may be hung. Sending interrupt
logger:com.fortify.logging.log4j2.LoggerFactory marker: thread: Stream Monitor [err] -16
I would like to ignore this error and continue to the next file.