Absent Member.
Absent Member.
16735 views

I'm getting an, "unable to load build session with ID "x" when running sourceanalyzer against .net assembly folder

Jump to solution

I'm trying to run a translation against a debug build of the bin folder from our application (the application is very large and we don't have solution files, so I cannot have Fortify actually do the compiling).  This used to work specifying a build id for the same project that used the MSBuild tasks to run it, but it stopped working when I called -clean on the build id.  This is against 4.21 version of Hp Fortify.

The command is

     sourceanalyzer -vsversion 12.0 -b "x" -libdirs "C:\Program Files (x86)\Microsoft.NET\Primary Interop      Assemblies;C:\Windows\Microsoft.NET\Framework64\v2.0.50727;c:\Windows\System32\inetsrv;c:\Windows\Microsoft.NET\Framework64\     v4.0.30319;" -debug -verbose -show-build-warnings-logfile "translation.log" .

The error I get is:

     Fortify Static Code Analyzer 6.21.0005

     [error]: Unable to load build session with ID "x". See log file for more details.

I don't see any obvious error in the log file.

Any assistance?

Logfile contents are:

[2015-04-16 15:58:28.844 Thread-13 Master FINE]

------------------------- Runtime Information -------------------------------

SCA Runtime Properties

WinForms.CollectionMutationMonitor.Label=WinFormsDataSource

WinForms.ExtractEventHandlers=true

WinForms.TransformChangeNotificationPattern=true

WinForms.TransformDataBindings=true

WinForms.TransformMessageLoops=true

com.fortify.sca.AddImpliedMethods=true

com.fortify.sca.AntCompilerClass=com.fortify.dev.ant.SCACompiler

com.fortify.sca.BuildID=x

com.fortify.sca.BundleControlflowIssues=true

com.fortify.sca.CollectPerformanceData=true

com.fortify.sca.CustomRulesDir=C:\Program Files\HP_Fortify\HP_Fortify_SCA_and_Apps_4.21\Core\config\customrules

com.fortify.sca.DaemonCompilers=com.fortify.sca.util.compilers.GppCompiler,com.fortify.sca.util.compilers.GccCompiler,com.fortify.sca.util.compilers.AppleGppCompiler,com.fortify.sca.util.compilers.AppleGccCompiler,com.fortify.sca.util.compilers.MicrosoftCompiler,com.fortify.sca.util.compilers.MicrosoftLinker,com.fortify.sca.util.compilers.LdCompiler,com.fortify.sca.util.compilers.ArUtil,com.fortify.sca.util.compilers.SunCCompiler,com.fortify.sca.util.compilers.SunCppCompiler,com.fortify.sca.util.compilers.IntelCompiler,com.fortify.sca.util.compilers.ExternalCppAdapter,com.fortify.sca.util.compilers.ClangCompiler

com.fortify.sca.DeadCodeFilter=true

com.fortify.sca.DeadCodeIgnoreTrivialPredicates=true

com.fortify.sca.Debug=

com.fortify.sca.DefaultAnalyzers=semantic:dataflow:controlflow:nullptr:configuration:content:structural:buffer

com.fortify.sca.DefaultFileTypes=java,rb,jsp,jspx,tag,tagx,tld,sql,cfm,php,phtml,ctp,pks,pkh,pkb,xml,config,settings,properties,dll,exe,inc,asp,vbscript,js,ini,bas,cls,vbs,frm,ctl,html,htm,xsd,wsdd,xmi,py,cfml,cfc,abap,xhtml,cpx,xcfg,jsff,as,mxml,cbl,cscfg,csdef,wadcfg,appxmanifest,wsdl,plist

com.fortify.sca.DefaultJarsDirs=default_jars

com.fortify.sca.DefaultRulesDir=C:\Program Files\HP_Fortify\HP_Fortify_SCA_and_Apps_4.21\Core\config\rules

com.fortify.sca.DisableDeadCodeElimination=false

com.fortify.sca.DisableFunctionPointers=false

com.fortify.sca.DisableGlobals=false

com.fortify.sca.DisableInferredConstants=false

com.fortify.sca.DisplayProgress=true

com.fortify.sca.DotnetLibdirs=C:\Program Files (x86)\Microsoft.NET\Primary Interop Assemblies;C:\Windows\Microsoft.NET\Framework64\v2.0.50727;c:\Windows\System32\inetsrv;c:\Windows\Microsoft.NET\Framework64\v4.0.30319;

com.fortify.sca.EnableInterproceduralConstantResolution=true

com.fortify.sca.EnableNestedWrappers=true

com.fortify.sca.EnableStructuralMatchCache=true

com.fortify.sca.EnableWrapperDetection=true

com.fortify.sca.FVDLDisableDescriptions=false

com.fortify.sca.FVDLDisableProgramData=false

com.fortify.sca.FVDLDisableSnippets=false

com.fortify.sca.FVDLStylesheet=C:\Program Files\HP_Fortify\HP_Fortify_SCA_and_Apps_4.21\Core/resources/sca/fvdl2html.xsl

com.fortify.sca.IldasmPath=C:\Program Files (x86)\Microsoft SDKs\Windows\v8.1A\bin\NETFX 4.5.1 Tools\x64\ildasm.exe

com.fortify.sca.IndirectCallGraphBuilders=WinFormsAdHocFunctionBuilder,VirtualCGBuilder,J2EEIndirectCGBuilder,JNICGBuilder,StoredProcedureResolver,JavaWSCGBuilder,StrutsCGBuilder,DotNetWSCGBuilder,SqlServerSPResolver,ASPCGBuilder,ScriptedCGBuilder,NewJspCustomTagCGBuilder,DotNetCABCGBuilder,StateInjectionCGBuilder,SqlServerSPResolver2,PHPLambdaResolver,JavaWebCGBuilder

com.fortify.sca.JavaNewBeta=true

com.fortify.sca.JdkVersion=1.5

com.fortify.sca.LogFile=translation.log

com.fortify.sca.LowSeverityCutoff=1.0

com.fortify.sca.NoNestedOutTagOutput=org.apache.taglibs.standard.tag.rt.core.RemoveTag,org.apache.taglibs.standard.tag.rt.core.SetTag

com.fortify.sca.Phase0HigherOrder.Languages=javascript,python,ruby

com.fortify.sca.Phase0HigherOrder.Level=1

com.fortify.sca.Phase0HigherOrder.Limiter.Values=128

com.fortify.sca.PrintPerformanceDataAfterScan=false

com.fortify.sca.ProjectRoot=C:\Users\phxteamcity\AppData\Local/Fortify

com.fortify.sca.RequireMapKeys=classrule

com.fortify.sca.SolverTimeout=15

com.fortify.sca.SqlLanguage=TSQL

com.fortify.sca.SuppressLowSeverity=true

com.fortify.sca.ThreadCount.NameTableLoading=1

com.fortify.sca.TypeInferenceFunctionTimeout=60

com.fortify.sca.TypeInferenceLanguages=javascript,python

com.fortify.sca.TypeInferencePhase0Timeout=300

com.fortify.sca.UnicodeInputFile=true

com.fortify.sca.UniversalBlacklist=yyparse:base_yyparse

com.fortify.sca.Verbose=

com.fortify.sca.VsVersion=12.0

com.fortify.sca.WrapperHeuristic=moderate

com.fortify.sca.analyzer.controlflow.EnableLivenessOptimization=false

com.fortify.sca.analyzer.controlflow.EnableMachineFiltering=false

com.fortify.sca.analyzer.controlflow.EnableRefRuleOptimization=false

com.fortify.sca.analyzer.controlflow.EnableTimeOut=true

com.fortify.sca.compilers.ant=com.fortify.sca.util.compilers.AntAdapter

com.fortify.sca.compilers.ar=com.fortify.sca.util.compilers.ArUtil

com.fortify.sca.compilers.armcc=com.fortify.sca.util.compilers.ArmCcCompiler

com.fortify.sca.compilers.armcpp=com.fortify.sca.util.compilers.ArmCppCompiler

com.fortify.sca.compilers.c++=com.fortify.sca.util.compilers.GppCompiler

com.fortify.sca.compilers.c89=com.fortify.sca.util.compilers.C89Compiler

com.fortify.sca.compilers.cc=com.fortify.sca.util.compilers.GccCompiler

com.fortify.sca.compilers.cl=com.fortify.sca.util.compilers.MicrosoftCompiler

com.fortify.sca.compilers.clearmake=com.fortify.sca.util.compilers.TouchlessCompiler

com.fortify.sca.compilers.devenv=com.fortify.sca.util.compilers.DevenvNetAdapter

com.fortify.sca.compilers.fortify=com.fortify.sca.util.compilers.FortifyCompiler

com.fortify.sca.compilers.g++=com.fortify.sca.util.compilers.GppCompiler

com.fortify.sca.compilers.g++-*=com.fortify.sca.util.compilers.GppCompiler

com.fortify.sca.compilers.g++2*=com.fortify.sca.util.compilers.GppCompiler

com.fortify.sca.compilers.g++3*=com.fortify.sca.util.compilers.GppCompiler

com.fortify.sca.compilers.g++4*=com.fortify.sca.util.compilers.GppCompiler

com.fortify.sca.compilers.gcc=com.fortify.sca.util.compilers.GccCompiler

com.fortify.sca.compilers.gcc-*=com.fortify.sca.util.compilers.GccCompiler

com.fortify.sca.compilers.gcc2*=com.fortify.sca.util.compilers.GccCompiler

com.fortify.sca.compilers.gcc3*=com.fortify.sca.util.compilers.GccCompiler

com.fortify.sca.compilers.gcc4*=com.fortify.sca.util.compilers.GccCompiler

com.fortify.sca.compilers.gmake=com.fortify.sca.util.compilers.TouchlessCompiler

com.fortify.sca.compilers.icc=com.fortify.sca.util.compilers.IntelCompiler

com.fortify.sca.compilers.icl=com.fortify.sca.util.compilers.MicrosoftCompiler

com.fortify.sca.compilers.icpc=com.fortify.sca.util.compilers.IntelCompiler

com.fortify.sca.compilers.jam=com.fortify.sca.util.compilers.TouchlessCompiler

com.fortify.sca.compilers.javac=com.fortify.sca.util.compilers.JavacCompiler

com.fortify.sca.compilers.ld=com.fortify.sca.util.compilers.LdCompiler

com.fortify.sca.compilers.link=com.fortify.sca.util.compilers.MicrosoftLinker

com.fortify.sca.compilers.make=com.fortify.sca.util.compilers.TouchlessCompiler

com.fortify.sca.compilers.msbuild=com.fortify.sca.util.compilers.MSBuildAdapter

com.fortify.sca.compilers.msdev=com.fortify.sca.util.compilers.DevenvAdapter

com.fortify.sca.compilers.mvn=com.fortify.sca.util.compilers.MavenAdapter

com.fortify.sca.compilers.nmake=com.fortify.sca.util.compilers.TouchlessCompiler

com.fortify.sca.compilers.tcc=com.fortify.sca.util.compilers.ArmCcCompiler

com.fortify.sca.compilers.tcpp=com.fortify.sca.util.compilers.ArmCppCompiler

com.fortify.sca.compilers.touchless=com.fortify.sca.util.compilers.FortifyCompiler

com.fortify.sca.compilers.xilink=com.fortify.sca.util.compilers.MicrosoftLinker

com.fortify.sca.cpfe.441.command=C:\Program Files\HP_Fortify\HP_Fortify_SCA_and_Apps_4.21\Core/private-bin/sca/cpfe441.rfct

com.fortify.sca.cpfe.command=C:\Program Files\HP_Fortify\HP_Fortify_SCA_and_Apps_4.21\Core/private-bin/sca/cpfe48.exe

com.fortify.sca.cpfe.file.option=--gen_c_file_name

com.fortify.sca.cpfe.options=--remove_unneeded_entities --suppress_vtbl -tused

com.fortify.sca.fileextensions.ABAP=ABAP

com.fortify.sca.fileextensions.abap=ABAP

com.fortify.sca.fileextensions.appxmanifest=XML

com.fortify.sca.fileextensions.as=ACTIONSCRIPT

com.fortify.sca.fileextensions.asp=ASP

com.fortify.sca.fileextensions.bas=VB6

com.fortify.sca.fileextensions.cfc=CFML

com.fortify.sca.fileextensions.cfm=CFML

com.fortify.sca.fileextensions.cfml=CFML

com.fortify.sca.fileextensions.cls=VB6

com.fortify.sca.fileextensions.config=XML

com.fortify.sca.fileextensions.cpx=XML

com.fortify.sca.fileextensions.cs=CSHARP

com.fortify.sca.fileextensions.cscfg=XML

com.fortify.sca.fileextensions.csdef=XML

com.fortify.sca.fileextensions.ctl=VB6

com.fortify.sca.fileextensions.ctp=PHP

com.fortify.sca.fileextensions.dll=MSIL

com.fortify.sca.fileextensions.erb=RUBY_ERB

com.fortify.sca.fileextensions.exe=MSIL

com.fortify.sca.fileextensions.faces=JSPX

com.fortify.sca.fileextensions.frm=VB6

com.fortify.sca.fileextensions.htm=HTML

com.fortify.sca.fileextensions.html=HTML

com.fortify.sca.fileextensions.ini=JAVA_PROPERTIES

com.fortify.sca.fileextensions.java=JAVA

com.fortify.sca.fileextensions.js=JAVASCRIPT

com.fortify.sca.fileextensions.jsff=JSPX

com.fortify.sca.fileextensions.jsp=JSP

com.fortify.sca.fileextensions.jspx=JSPX

com.fortify.sca.fileextensions.mdl=MSIL

com.fortify.sca.fileextensions.mod=MSIL

com.fortify.sca.fileextensions.mxml=MXML

com.fortify.sca.fileextensions.php=PHP

com.fortify.sca.fileextensions.phtml=PHP

com.fortify.sca.fileextensions.pkb=PLSQL

com.fortify.sca.fileextensions.pkh=PLSQL

com.fortify.sca.fileextensions.pks=PLSQL

com.fortify.sca.fileextensions.plist=XML

com.fortify.sca.fileextensions.properties=JAVA_PROPERTIES

com.fortify.sca.fileextensions.py=PYTHON

com.fortify.sca.fileextensions.rb=RUBY

com.fortify.sca.fileextensions.settings=XML

com.fortify.sca.fileextensions.sql=SQL

com.fortify.sca.fileextensions.tag=JSP

com.fortify.sca.fileextensions.tagx=JSP

com.fortify.sca.fileextensions.tld=TLD

com.fortify.sca.fileextensions.vb=VB

com.fortify.sca.fileextensions.vbs=VB6

com.fortify.sca.fileextensions.vbscript=VBSCRIPT

com.fortify.sca.fileextensions.wadcfg=XML

com.fortify.sca.fileextensions.wsdd=XML

com.fortify.sca.fileextensions.wsdl=XML

com.fortify.sca.fileextensions.xcfg=XML

com.fortify.sca.fileextensions.xhtml=JSPX

com.fortify.sca.fileextensions.xmi=XML

com.fortify.sca.fileextensions.xml=XML

com.fortify.sca.fileextensions.xsd=XML

com.fortify.sca.jsp.UseNativeParser=true

com.fortify.sca.parser.python.ignore.module.1=test.badsyntax_future3

com.fortify.sca.parser.python.ignore.module.2=test.badsyntax_future4

com.fortify.sca.parser.python.ignore.module.3=test.badsyntax_future5

com.fortify.sca.parser.python.ignore.module.4=test.badsyntax_future6

com.fortify.sca.parser.python.ignore.module.5=test.badsyntax_future7

com.fortify.sca.parser.python.ignore.module.6=test.badsyntax_future8

com.fortify.sca.parser.python.ignore.module.7=test.badsyntax_future9

com.fortify.sca.parser.python.ignore.module.8=test.badsyntax_nocaret

com.fortify.sca.taint.SkipVirtual=true

Fortify Runtime Properties

com.fortify.AuthenticationKey=C:\Users\xxxxx\AppData\Local/Fortify/config/tools

com.fortify.Core=C:\Program Files\HP_Fortify\HP_Fortify_SCA_and_Apps_4.21\Core

com.fortify.InstallationUserName=xxxxx

com.fortify.SCAExecutablePath=C:Program FilesHP_FortifyHP_Fortify_SCA_and_Apps_4.21binsourceanalyzer.exe

com.fortify.VS.RequireASPPrecompilation=true

com.fortify.WorkingDirectory=C:\Users\phxteamcity\AppData\Local/Fortify

com.fortify.locale=en

com.fortify.rules.SkipRulePacks=core_abap_preview.bin

com.fortify.search.defaultSyntaxVer=2

max.file.path.length=255

System Runtime Properties

awt.toolkit=sun.awt.windows.WToolkit

com.fortify.InstallRoot=C:\Program Files\HP_Fortify\HP_Fortify_SCA_and_Apps_4.21

com.fortify.TotalPhysicalMemory=17179332608

com.fortify.sca.JVMArgs=-Djava.awt.headless=true -Dcom.sun.management.jmxremote=true -XX:SoftRefLRUPolicyMSPerMB=3000 -Xss1M -Xmx1800M -Xms300M -server

com.fortify.sca.PID=4816

com.fortify.sca.ProjectRoot=C:\Users\xxxxx\AppData\Local/Fortify

com.fortify.sca.cpfe.options=--remove_unneeded_entities --suppress_vtbl -tused

com.fortify.sca.env.exesearchpath=D:\Temp\c05358f8c659806c\bin;C:\Program Files\HP_Fortify\HP_Fortify_SCA_and_Apps_4.21\bin;C:\Program Files\Microsoft Host Integration Server 2010\system;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit\;C:\Program Files (x86)\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files\Microsoft SQL Server\110\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\110\Tools\Binn\ManagementStudio\;C:\Program Files (x86)\Microsoft SQL Server\110\DTS\Binn\;C:\Program Files (x86)\Microsoft BizTalk Server 2013 R2\;C:\Program Files (x86)\Microsoft BizTalk Server 2013 R2\Bins32;C:\Program Files (x86)\Microsoft BizTalk Server 2013 R2\Bins64;C:\Program Files\Microsoft Host Integration Server 2010\SysWOW64;C:\Program Files\Microsoft\Web Platform Installer\

com.sun.management.jmxremote=true

dotnet.install.dir=C:\Windows\Microsoft.NET\Framework64

dotnet.v30.referenceAssemblies=C:\Program Files\Reference Assemblies\Microsoft\Framework\v3.0

dotnet.v35.referenceAssemblies=C:\Program Files\Reference Assemblies\Microsoft\Framework\v3.5

file.encoding=Cp1252

file.encoding.pkg=sun.io

file.separator=\

java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment

java.awt.headless=true

java.awt.printerjob=sun.awt.windows.WPrinterJob

java.class.path=C:\Program Files\HP_Fortify\HP_Fortify_SCA_and_Apps_4.21\Core\lib\exe\sca-exe.jar

java.class.version=51.0

java.endorsed.dirs=C:\Program Files\HP_Fortify\HP_Fortify_SCA_and_Apps_4.21\jre\lib\endorsed

java.ext.dirs=C:\Program Files\HP_Fortify\HP_Fortify_SCA_and_Apps_4.21\jre\lib\ext;C:\Windows\Sun\Java\lib\ext

java.home=C:\Program Files\HP_Fortify\HP_Fortify_SCA_and_Apps_4.21\jre

java.io.tmpdir=C:\Users\PHXTEA~1\AppData\Local\Temp\2\

java.library.path=C:\Program Files\HP_Fortify\HP_Fortify_SCA_and_Apps_4.21\jre\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Program Files\HP_Fortify\HP_Fortify_SCA_and_Apps_4.21\bin;C:\Program Files\Microsoft Host Integration Server 2010\system;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit\;C:\Program Files (x86)\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files\Microsoft SQL Server\110\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\110\Tools\Binn\ManagementStudio\;C:\Program Files (x86)\Microsoft SQL Server\110\DTS\Binn\;C:\Program Files (x86)\Microsoft BizTalk Server 2013 R2\;C:\Program Files (x86)\Microsoft BizTalk Server 2013 R2\Bins32;C:\Program Files (x86)\Microsoft BizTalk Server 2013 R2\Bins64;C:\Program Files\Microsoft Host Integration Server 2010\SysWOW64;C:\Program Files\Microsoft\Web Platform Installer\;.

java.rmi.server.randomIDs=true

java.runtime.name=Java(TM) SE Runtime Environment

java.runtime.version=1.7.0_45-b18

java.specification.name=Java Platform API Specification

java.specification.vendor=Oracle Corporation

java.specification.version=1.7

java.vendor=Oracle Corporation

java.vendor.url=http://java.oracle.com/

java.vendor.url.bug=http://bugreport.sun.com/bugreport/

java.version=1.7.0_45

java.vm.info=mixed mode

java.vm.name=Java HotSpot(TM) 64-Bit Server VM

java.vm.specification.name=Java Virtual Machine Specification

java.vm.specification.vendor=Oracle Corporation

java.vm.specification.version=1.7

java.vm.vendor=Oracle Corporation

java.vm.version=24.45-b08

line.separator=

os.arch=amd64

os.name=Windows Server 2012

os.version=6.2

path.separator=;

stderr.isatty=true

stdout.isatty=true

sun.arch.data.model=64

sun.boot.class.path=C:\Program Files\HP_Fortify\HP_Fortify_SCA_and_Apps_4.21\jre\lib\resources.jar;C:\Program Files\HP_Fortify\HP_Fortify_SCA_and_Apps_4.21\jre\lib\rt.jar;C:\Program Files\HP_Fortify\HP_Fortify_SCA_and_Apps_4.21\jre\lib\sunrsasign.jar;C:\Program Files\HP_Fortify\HP_Fortify_SCA_and_Apps_4.21\jre\lib\jsse.jar;C:\Program Files\HP_Fortify\HP_Fortify_SCA_and_Apps_4.21\jre\lib\jce.jar;C:\Program Files\HP_Fortify\HP_Fortify_SCA_and_Apps_4.21\jre\lib\charsets.jar;C:\Program Files\HP_Fortify\HP_Fortify_SCA_and_Apps_4.21\jre\lib\jfr.jar;C:\Program Files\HP_Fortify\HP_Fortify_SCA_and_Apps_4.21\jre\classes

sun.boot.library.path=C:\Program Files\HP_Fortify\HP_Fortify_SCA_and_Apps_4.21\jre\bin

sun.cpu.endian=little

sun.cpu.isalist=amd64

sun.desktop=windows

sun.io.unicode.encoding=UnicodeLittle

sun.java.command=C:\Program Files\HP_Fortify\HP_Fortify_SCA_and_Apps_4.21\Core\lib\exe\sca-exe.jar -vsversion 12.0 -b "x" -libdirs C:\Program Files (x86)\Microsoft.NET\Primary Interop Assemblies;C:\Windows\Microsoft.NET\Framework64\v2.0.50727;c:\Windows\System32\inetsrv;c:\Windows\Microsoft.NET\Framework64\v4.0.30319; -debug -verbose -show-build-warnings -logfile translation.log .

sun.java.launcher=SUN_STANDARD

sun.jnu.encoding=Cp1252

sun.management.compiler=HotSpot 64-Bit Tiered Compilers

sun.os.patch.level=

user.country=US

user.dir=D:\Temp\c05358f8c659806c\bin

user.home=C:\Users\xxxxx

user.language=en

user.name=xxxxx

user.script=

user.timezone=America/Denver

user.variant=

win32.LocalAppdata=C:\Users\xxxxx\AppData\Local

VM Info

OperatingSystemMXBean: Windows Server 2012

  Arch: amd64

  AvailableProcessors: 8

  CommittedVirtualMemorySize: 451284992

  FreePhysicalMemorySize: 14028464128

  FreeSwapSpaceSize: 16180695040

  ProcessCpuLoad: -1.0

  ProcessCpuTime: 1171875000

  SystemCpuLoad: -1.0

  SystemLoadAverage: -1.0

  TotalPhysicalMemorySize: 17179332608

  TotalSwapSpaceSize: 19729469440

  Version: 6.2

RuntimeMXBean: 5048@xxxxx-server

  BootClassPath: C:\Program Files\HP_Fortify\HP_Fortify_SCA_and_Apps_4.21\jre\lib\resources.jar;C:\Program Files\HP_Fortify\HP_Fortify_SCA_and_Apps_4.21\jre\lib\rt.jar;C:\Program Files\HP_Fortify\HP_Fortify_SCA_and_Apps_4.21\jre\lib\sunrsasign.jar;C:\Program Files\HP_Fortify\HP_Fortify_SCA_and_Apps_4.21\jre\lib\jsse.jar;C:\Program Files\HP_Fortify\HP_Fortify_SCA_and_Apps_4.21\jre\lib\jce.jar;C:\Program Files\HP_Fortify\HP_Fortify_SCA_and_Apps_4.21\jre\lib\charsets.jar;C:\Program Files\HP_Fortify\HP_Fortify_SCA_and_Apps_4.21\jre\lib\jfr.jar;C:\Program Files\HP_Fortify\HP_Fortify_SCA_and_Apps_4.21\jre\classes

  BootClassPathSupported: true

  ClassPath: C:\Program Files\HP_Fortify\HP_Fortify_SCA_and_Apps_4.21\Core\lib\exe\sca-exe.jar

  LibraryPath: C:\Program Files\HP_Fortify\HP_Fortify_SCA_and_Apps_4.21\jre\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Program Files\HP_Fortify\HP_Fortify_SCA_and_Apps_4.21\bin;C:\Program Files\Microsoft Host Integration Server 2010\system;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit\;C:\Program Files (x86)\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files\Microsoft SQL Server\110\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\110\Tools\Binn\ManagementStudio\;C:\Program Files (x86)\Microsoft SQL Server\110\DTS\Binn\;C:\Program Files (x86)\Microsoft BizTalk Server 2013 R2\;C:\Program Files (x86)\Microsoft BizTalk Server 2013 R2\Bins32;C:\Program Files (x86)\Microsoft BizTalk Server 2013 R2\Bins64;C:\Program Files\Microsoft Host Integration Server 2010\SysWOW64;C:\Program Files\Microsoft\Web Platform Installer\;.

  ManagementSpecVersion: 1.2

  SpecName: Java Virtual Machine Specification

  SpecVendor: Oracle Corporation

  SpecVersion: 1.7

  StartTime: 1429221508097

  Uptime: 746

  VmName: Java HotSpot(TM) 64-Bit Server VM

  VmVendor: Oracle Corporation

  VmVersion: 24.45-b08

-----------------------------------------------------------------------------

[2015-04-16 15:58:28.912 com.fortify.sca.Main$Sourceanalyzer.runSourceanalyzer() Thread-13 Master INFO]

Fortify Static Code Analyzer 6.21.0005

[2015-04-16 15:58:28.914 com.fortify.sca.Main$Sourceanalyzer.runSourceanalyzer() Thread-13 Master INFO]

Args:

["-vsversion", "12.0", "-b", "x", "-libdirs", "C:\\Program Files (x86)\\Microsoft.NET\\Primary Interop Assemblies;C:\\Windows\\Microsoft.NET\\Framework64\\v2.0.50727;c:\\Windows\\System32\\inetsrv;c:\\Windows\\Microsoft.NET\\Framework64\\v4.0.30319;", "-debug", "-verbose", "-show-build-warnings", "-logfile", "translation.log", "."]

[2015-04-16 15:58:28.914 com.fortify.sca.Main$Sourceanalyzer.runSourceanalyzer() Thread-13 Master INFO]

VM Args:

"-Djava.awt.headless=true -Dcom.sun.management.jmxremote=true -XX:SoftRefLRUPolicyMSPerMB=3000 -Xss1M -Xmx1800M -Xms300M -server"

[2015-04-16 15:58:28.938 com.fortify.sca.cmd.BaseSCAConfiguration.initialize() Thread-13 Master FINE]

Enabling code generation: Data binding

[2015-04-16 15:58:28.954 com.fortify.sca.cmd.BaseSCAConfiguration.initialize() Thread-13 Master FINE]

Enabling code generation: Event loops

[2015-04-16 15:58:28.957 com.fortify.sca.cmd.BaseSCAConfiguration.initialize() Thread-13 Master FINE]

Enabling change notification transformer.

[2015-04-16 15:58:29.111 com.fortify.sca.metadata.BuildSession.acquireLock() Thread-13 Master FINE]

Acquiring lock...

[2015-04-16 15:58:29.113 com.fortify.sca.metadata.BuildSession.acquireLock() Thread-13 Master FINE]

Acquiring lock [DONE]

[2015-04-16 15:58:29.113 com.fortify.sca.metadata.BuildSession.releaseLock() Thread-13 Master FINE]

Releasing lock...

[2015-04-16 15:58:29.113 com.fortify.sca.metadata.BuildSession.releaseLock() Thread-13 Master FINE]

Releasing lock [DONE]

[2015-04-16 15:58:29.114 com.fortify.sca.Main.requireBuildSession() Thread-13 Master SEVERE 1123]

Unable to load build session with ID "x". See log file for more details.

[2015-04-16 15:58:29.121 com.fortify.sca.Main.exit() Thread-1 Master WARNING]

exit(1)

Labels (2)
0 Likes
1 Solution

Accepted Solutions
Absent Member.
Absent Member.

Yeah, I got it to work, by dropping that and some other switches.

View solution in original post

0 Likes
5 Replies
Vice Admiral
Vice Admiral

I suspect this is occurring because you are trying to translate and run -show-build-warnings in one command.

-show-build-warnings is a separate step, and will only work after translation, so try your command without that switch.
If it completes successfully, then you can run sourceanalyzer -b <build ID> -show-build-warnings to check for warnings.

0 Likes
Cadet 3rd Class
Cadet 3rd Class

I am only running this command 

sourceanalyzer -b SoarianClinicalIDL msbuild "D:\view_store\AR\CS-SC-HP-FORTIFY-TEST\SRN_SE_BuildUtils\msbuild\SoarianClinicalIDL\SoarianClinicalIDL.sln" /nologo /v:n /t:build /p:statusCPP=false /p:statusJAVA=false

 

its successfully building with 
Build succeeded.
0 Warning(s)
0 Error(s)

 

but in next step when running 

 

sourceanalyzer -show-build-ids

or

sourceanalyzer -b SoarianClinicalIDL -make-mobile I am getting error

"Unable to load build session with ID "SoarianClinicalIDL". See log file for more details."
please help me

0 Likes
Micro Focus Expert
Micro Focus Expert

It looks like the build-id SoarianClinicalIDL is never really created

Is the build with msbuild actually building something?

Did you try running a clean for the build before - by that I do not talk about a sourceanalyzer -clean but for the build you are running making sure it is going to build the complete app?

 

0 Likes
Cadet 3rd Class
Cadet 3rd Class

Try with /t:Rebuild not /t:build. I think it will work

 

sourceanalyzer -b SoarianClinicalIDL msbuild "D:\view_store\AR\CS-SC-HP-FORTIFY-TEST\SRN_SE_BuildUtils\msbuild\SoarianClinicalIDL\SoarianClinicalIDL.sln" /nologo /v:n /t:Rebuild /p:statusCPP=false /p:statusJAVA=false

0 Likes
Absent Member.
Absent Member.

Yeah, I got it to work, by dropping that and some other switches.

View solution in original post

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.