Closed bvmanuelpaillafil closed 4 months ago
Hi @bvmanuelpaillafil,
I tested your code against version 1.6.35 (released yesterday) and the processing worked with no errors. Here's my log example using your codebase as the scanned project:
___ ___ _
/ __\_ __ / __\ | _____ __
/ / \ \/ /____ / _\ | |/ _ \ \ /\ / /
/ /___ > <_____/ / | | (_) \ V V /
\____//_/\_\ \/ |_|\___/ \_/\_/
2022-07-26 14:12:52.040 INFO 3500 --- [ restartedMain] c.c.f.CxFlowApplication [] : Starting CxFlowApplication using Java 1.8.0_292 on LEONEL-WS2016-94 with PID 3500
2022-07-26 14:12:52.055 INFO 3500 --- [ restartedMain] c.c.f.CxFlowApplication [] : No active profile set, falling back to 1 default profile: "default"
2022-07-26 14:12:52.877 INFO 3500 --- [ restartedMain] .e.DevToolsPropertyDefaultsPostProcessor [] : Devtools property defaults active! Set 'spring.devtools.add-properties' to 'false' to disable
2022-07-26 14:12:55.378 INFO 3500 --- [ restartedMain] ptablePropertiesBeanFactoryPostProcessor [] : Post-processing PropertySource instances
2022-07-26 14:12:55.500 INFO 3500 --- [ restartedMain] c.u.j.EncryptablePropertySourceConverter [] : Converting PropertySource configurationProperties [org.springframework.boot.context.properties.source.ConfigurationPropertySourcesPropertySource] to AOP Proxy
2022-07-26 14:12:55.503 INFO 3500 --- [ restartedMain] c.u.j.EncryptablePropertySourceConverter [] : Converting PropertySource commandLineArgs [org.springframework.core.env.SimpleCommandLinePropertySource] to EncryptableEnumerablePropertySourceWrapper
2022-07-26 14:12:55.504 INFO 3500 --- [ restartedMain] c.u.j.EncryptablePropertySourceConverter [] : Converting PropertySource systemProperties [org.springframework.core.env.PropertiesPropertySource] to EncryptableMapPropertySourceWrapper
2022-07-26 14:12:55.505 INFO 3500 --- [ restartedMain] c.u.j.EncryptablePropertySourceConverter [] : Converting PropertySource systemEnvironment [org.springframework.boot.env.SystemEnvironmentPropertySourceEnvironmentPostProcessor$OriginAwareSystemEnvironmentPropertySource] to EncryptableSystemEnvironmentPropertySourceWrapper
2022-07-26 14:12:55.506 INFO 3500 --- [ restartedMain] c.u.j.EncryptablePropertySourceConverter [] : Converting PropertySource random [org.springframework.boot.env.RandomValuePropertySource] to EncryptablePropertySourceWrapper
2022-07-26 14:12:55.506 INFO 3500 --- [ restartedMain] c.u.j.EncryptablePropertySourceConverter [] : Converting PropertySource Config resource 'class path resource [application.yml]' via location 'optional:classpath:/' [org.springframework.boot.env.OriginTrackedMapPropertySource] to EncryptableMapPropertySourceWrapper
2022-07-26 14:12:55.506 INFO 3500 --- [ restartedMain] c.u.j.EncryptablePropertySourceConverter [] : Converting PropertySource devtools [org.springframework.core.env.MapPropertySource] to EncryptableMapPropertySourceWrapper
2022-07-26 14:12:55.677 INFO 3500 --- [ restartedMain] c.u.j.f.DefaultLazyPropertyFilter [] : Property Filter custom Bean not found with name 'encryptablePropertyFilter'. Initializing Default Property Filter
2022-07-26 14:12:56.073 INFO 3500 --- [ restartedMain] c.u.j.r.DefaultLazyPropertyResolver [] : Property Resolver custom Bean not found with name 'encryptablePropertyResolver'. Initializing Default Property Resolver
2022-07-26 14:12:56.079 INFO 3500 --- [ restartedMain] c.u.j.d.DefaultLazyPropertyDetector [] : Property Detector custom Bean not found with name 'encryptablePropertyDetector'. Initializing Default Property Detector
2022-07-26 14:12:58.852 INFO 3500 --- [ restartedMain] o.s.w.s.s.SaajSoapMessageFactory [] : Creating SAAJ 1.3 MessageFactory with SOAP 1.1 Protocol
2022-07-26 14:12:59.328 WARN 3500 --- [ restartedMain] j.p.spi [] : javax.persistence.spi::No valid providers found.
2022-07-26 14:12:59.995 INFO 3500 --- [ restartedMain] c.c.f.CxFlowRunner [] : =======BUILD INFO=======
2022-07-26 14:12:59.996 INFO 3500 --- [ restartedMain] c.c.f.CxFlowRunner [] : Version: cx-flow-1.6.35
2022-07-26 14:12:59.998 INFO 3500 --- [ restartedMain] c.c.f.CxFlowRunner [] : Time: 2022-07-26T21:12:13.212Z
2022-07-26 14:12:59.998 INFO 3500 --- [ restartedMain] c.c.f.CxFlowRunner [] : =======================
2022-07-26 14:13:02.272 INFO 3500 --- [ restartedMain] o.s.b.d.a.OptionalLiveReloadServer [] : LiveReload server is running on port 35729
2022-07-26 14:13:02.332 INFO 3500 --- [ restartedMain] c.c.f.CxFlowApplication [] : Started CxFlowApplication in 11.856 seconds (JVM running for 12.739)
2022-07-26 14:13:02.352 INFO 3500 --- [ restartedMain] c.c.f.CxFlowRunner [a6ZXZFpo] : Using custom bean implementation for bug tracking
2022-07-26 14:13:02.433 INFO 3500 --- [ restartedMain] c.c.f.s.ScaFilterFactory [a6ZXZFpo] : Initializing SCA filters.
2022-07-26 14:13:02.437 INFO 3500 --- [ restartedMain] c.c.f.CxFlowRunner [a6ZXZFpo] : Executing scan process
2022-07-26 14:13:02.440 INFO 3500 --- [ restartedMain] c.c.f.s.ScaFilterFactory [a6ZXZFpo] : Initializing SCA filters.
2022-07-26 14:13:02.449 INFO 3500 --- [ restartedMain] c.c.f.s.ProjectNameGenerator [a6ZXZFpo] : Project name being used: asdadsad
2022-07-26 14:13:02.451 INFO 3500 --- [ restartedMain] c.c.f.u.ZipUtils [a6ZXZFpo] : Creating zip file C:\Users\Administrator\IdeaProjects\cx-flow\cx.8d22ee05-98c0-415d-977a-fae806bb69d4.zip from contents of path C:\Users\Administrator\Documents\Bicevida
2022-07-26 14:13:02.463 INFO 3500 --- [ restartedMain] c.c.f.u.ZipUtils [a6ZXZFpo] : Successfully created C:\Users\Administrator\IdeaProjects\cx-flow\cx.8d22ee05-98c0-415d-977a-fae806bb69d4.zip
2022-07-26 14:13:02.465 INFO 3500 --- [ restartedMain] c.c.f.s.ScanRequestConverter [a6ZXZFpo] : Overriding team with /CxServer
2022-07-26 14:13:02.472 INFO 3500 --- [ restartedMain] c.c.s.s.CxAuthService [a6ZXZFpo] : Logging into Checkmarx http://localhost/cxrestapi/auth/identity/connect/token
2022-07-26 14:13:04.027 INFO 3500 --- [ restartedMain] c.c.s.s.CxService [a6ZXZFpo] : Retrieving Cx teams
2022-07-26 14:13:04.052 INFO 3500 --- [ restartedMain] c.c.s.s.CxService [a6ZXZFpo] : Found team /CxServer with ID 1
2022-07-26 14:13:07.822 INFO 3500 --- [ restartedMain] c.c.f.s.AbstractVulnerabilityScanner [a6ZXZFpo] : Checking if there is any existing scan for Project: -1
2022-07-26 14:13:07.887 INFO 3500 --- [ restartedMain] c.c.s.s.CxService [a6ZXZFpo] : No scans in the queue that are in progress
2022-07-26 14:13:07.887 INFO 3500 --- [ restartedMain] c.c.f.s.AbstractVulnerabilityScanner [a6ZXZFpo] : ----------existingScanId---------: -1
2022-07-26 14:13:07.887 INFO 3500 --- [ restartedMain] c.c.s.s.CxService [a6ZXZFpo] : Creating scan...
2022-07-26 14:13:07.902 INFO 3500 --- [ restartedMain] c.c.s.s.CxService [a6ZXZFpo] : Creating Project asdadsad for ownerId 1
2022-07-26 14:13:08.153 INFO 3500 --- [ restartedMain] c.c.s.s.ScanSettingsClientImpl [a6ZXZFpo] : Retrieving Cx presets
2022-07-26 14:13:08.200 INFO 3500 --- [ restartedMain] c.c.s.s.ScanSettingsClientImpl [a6ZXZFpo] : Found preset 'Checkmarx Default' with ID 36
2022-07-26 14:13:08.201 INFO 3500 --- [ restartedMain] c.c.s.s.ScanSettingsClientImpl [a6ZXZFpo] : Retrieving Cx engineConfigurations
2022-07-26 14:13:08.237 INFO 3500 --- [ restartedMain] c.c.s.s.ScanSettingsClientImpl [a6ZXZFpo] : Found xml/engine configuration Default Configuration with ID 1
2022-07-26 14:13:08.238 INFO 3500 --- [ restartedMain] c.c.s.s.ScanSettingsClientImpl [a6ZXZFpo] : Creating ScanSettings for project Id 7
2022-07-26 14:13:08.394 INFO 3500 --- [ restartedMain] c.c.s.s.CxService [a6ZXZFpo] : Updating Project folder and file exclusion details for project Id 7
2022-07-26 14:13:08.433 INFO 3500 --- [ restartedMain] c.c.s.s.CxService [a6ZXZFpo] : Updating Source details for project Id 7
2022-07-26 14:13:08.617 INFO 3500 --- [ restartedMain] c.c.s.s.CxService [a6ZXZFpo] : Scan will be Full Scan
2022-07-26 14:13:08.620 INFO 3500 --- [ restartedMain] c.c.s.s.CxService [a6ZXZFpo] : Creating Scan for project Id 7
2022-07-26 14:13:08.723 INFO 3500 --- [ restartedMain] c.c.s.s.CxService [a6ZXZFpo] : Scan created with Id 1000009 for project Id 7
2022-07-26 14:13:08.831 INFO 3500 --- [ restartedMain] jsonLogger [a6ZXZFpo] :
2022-07-26 14:14:48.998 INFO 3500 --- [ restartedMain] jsonLogger [a6ZXZFpo] :
2022-07-26 14:14:49.002 INFO 3500 --- [ restartedMain] c.c.s.s.CxService [a6ZXZFpo] : Creating report for xml Id 1000009
2022-07-26 14:14:49.234 INFO 3500 --- [ restartedMain] c.c.s.s.CxService [a6ZXZFpo] : Report with Id 2 created
2022-07-26 14:14:54.235 INFO 3500 --- [ restartedMain] c.c.s.s.CxService [a6ZXZFpo] : Retrieving report status of report Id 2
2022-07-26 14:14:55.275 INFO 3500 --- [ restartedMain] c.c.s.s.CxAuthService [a6ZXZFpo] : Logging into Checkmarx for SOAP token http://localhost/cxrestapi/auth/identity/connect/token
2022-07-26 14:14:55.437 INFO 3500 --- [ restartedMain] c.c.s.s.CxService [a6ZXZFpo] : Retrieving report contents of report Id 2 in XML format
2022-07-26 14:14:55.475 INFO 3500 --- [ restartedMain] c.c.s.s.CxService [a6ZXZFpo] : Report downloaded for report Id 2
2022-07-26 14:14:55.632 INFO 3500 --- [ restartedMain] c.c.s.s.CxService [a6ZXZFpo] : Fetching Scan data for Id 1000009
2022-07-26 14:14:55.646 INFO 3500 --- [ restartedMain] c.c.s.s.CxService [a6ZXZFpo] : Fetching custom fields from project ID 7
2022-07-26 14:14:55.832 INFO 3500 --- [ restartedMain] c.c.f.s.ResultsService [a6ZXZFpo] : Issue tracking is custom bean implementation
2022-07-26 14:14:55.859 INFO 3500 --- [ restartedMain] c.c.f.c.CsvIssueTracker [a6ZXZFpo] : Creating file /tmp/cxflow/CxServer-asdadsad-20220726.141455.csv, Deleting if already exists
2022-07-26 14:14:55.867 INFO 3500 --- [ restartedMain] c.c.f.s.CodeBashingService [a6ZXZFpo] : not using CodeBashing lessons integration - one or more of the mandatory properties is missing
2022-07-26 14:14:55.868 INFO 3500 --- [ restartedMain] c.c.f.s.IssueService [a6ZXZFpo] : Processing Issues with custom bean Csv
2022-07-26 14:14:55.869 INFO 3500 --- [ restartedMain] c.c.f.c.CsvIssueTracker [a6ZXZFpo] : Finalizing CSV output
2022-07-26 14:14:55.870 INFO 3500 --- [ restartedMain] c.c.f.s.ResultsService [a6ZXZFpo] : ####Checkmarx Scan Results Summary####
2022-07-26 14:14:55.870 INFO 3500 --- [ restartedMain] c.c.f.s.ResultsService [a6ZXZFpo] : Team: CxServer, Project: asdadsad, Scan-Id: 1000009
2022-07-26 14:14:55.870 INFO 3500 --- [ restartedMain] c.c.f.s.ResultsService [a6ZXZFpo] : The vulnerabilities found for the scan are: high: 0, medium: 1, low: 0, info: 0
2022-07-26 14:14:55.871 INFO 3500 --- [ restartedMain] c.c.f.s.ResultsService [a6ZXZFpo] : To view results use following link: http://leonel-ws2016-94/CxWebClient/ViewerMain.aspx?scanid=1000009&projectid=7
2022-07-26 14:14:55.871 INFO 3500 --- [ restartedMain] c.c.f.s.ResultsService [a6ZXZFpo] : ######################################
2022-07-26 14:14:55.872 INFO 3500 --- [ restartedMain] c.c.f.s.ThresholdValidatorImpl [a6ZXZFpo] : Checking Thresholds exists. sast thresholds: false. sca thresholds: false
2022-07-26 14:14:55.872 INFO 3500 --- [ restartedMain] c.c.f.CxFlowRunner [a6ZXZFpo] : Build succeeded. all checks passed
2022-07-26 14:14:55.872 INFO 3500 --- [ restartedMain] c.c.f.CxFlowRunner [a6ZXZFpo] : Completed Successfully
2022-07-26 14:14:55.872 INFO 3500 --- [ restartedMain] c.c.f.CxFlowRunner [a6ZXZFpo] : Finished with exit code: 0
Could you please repeat the test using this jar? https://github.com/checkmarx-ltd/cx-flow/releases/download/1.6.35/cx-flow-1.6.35.jar
Hi @bvmanuelpaillafil can you please confirm are still facing this issue with latest version of cx-flow
Please check on our latest version 1.7.0 . If does not work please reopen issue.
Description
Expected Behavior
Cxflow will never fails in this cases
Actual Behavior
Cxflow fails with "java.lang.NullPointerException: null"
Reproduction
Environment Details