
NCrowe-Lord142840 (Community Member) asked a question.
Getting a sealing violation java error from the Veracode Teamcity Plugin for Static scan integration when running on Ubuntu 20.04 server.
However we are able to run the Static scan integration successfully on a debian server.
Veracode plugin version, java version and node js version are the same for both. Our code base being scanned is Python so this error is definitely coming from the Plugin
Veracode plugin version : 2.3.0-RELEASE (latest available as of today)
TeamCity Version : 2021.2.2
JavaVersion : 1.8.0_232
Node JS version: 16.14.0 (latest LTS version)
Is this an issue where the veracode plugin is not supported for Ubuntu? Has anyone else seen this? We've recently upgraded our teamcity agents to Ubuntu for integration testing so would like to get this running on ubuntu as well
Full error:
**********************************************************
10:29:46 Upload and Scan with Veracode
10:29:46 **********************************************************
10:29:46
10:29:46 [Debug mode is on]
10:29:46 Can fail build? false
10:29:47 Version information: VeracodeJavaAPI v21.12.9.1 c1.8.0_232
10:29:47 Parameter values from the Teamcity..
10:29:47 Application Name: REDACTED Create Application: false Team Name: Scan Name: REDACTED Business Criticality: VeryHigh Sandbox Name:
Create Sandbox: false Upload Include Pattern: **/REDACTED.tar.gz Upload Exclude Pattern: Scan Include Pattern: Scan Exclude Pattern: Filename Pattern:
Replacement Pattern: Wait for Scan to complete: false Scan Timeout: Max Retry Count: 5 Use Global Credentials: false Use Teamcity Project as the default Veracode Project: false
Use Teamcity build number as the default Veracode Scan name: false Use default description: false Use Proxy: false
Proxy Host: Proxy Port: Proxy Username: Proxy Password: Fail build: false
10:29:47 processing parameter values from teamcity ...
10:29:47 processing files in workspace /opt/buildagent/work/88e50aa119b5c821
10:29:48 Completed processing files in workspace /opt/buildagent/work/88e50aa119b5c821
10:29:48 Veracode credentials are being read from the build context
10:29:48 Veracode plugin version : 2.3.0-RELEASE
10:29:48 TeamCity Version : 2021.2.2
10:29:48 JavaVersion : 1.8.0_232
10:29:48 adding filepaths to the arguments list
10:29:48 adding vId and vkey values to the arguments list
10:29:48 Initiating the upload and scan with arguments:
[-action, UploadAndScan, -appname, REDACTED, -createprofile, false, -criticality, VeryHigh, -version, REDACTED, -autoscan, true, -filepath, /opt/buildagent/work/88e50aa119b5c821/veracode/REDACTED.tar.gz, -vid, REDACTED, -vkey, REDACTED, -useragent, VeracodeTeamcityPlugin/2.3.0-RELEASE (Teamcity/2021.2.2; Java/1.8.0_232), -maxretrycount, 5, -debug]
10:29:48 [2022.02.22 10:29:48.247] VeracodeJavaAPI v21.12.9.1 c1.8.0_232
[2022.02.22 10:29:48.248] Wrapper action: UploadAndScan
[2022.02.22 10:29:48.248] Transaction ID: [403d9444-ef8f-467a-bd66-6a253783632b]
[2022.02.22 10:29:48.251]
[2022.02.22 10:29:48.251] java.lang.ExceptionInInitializerError
[2022.02.22 10:29:48.251] sealing violation: can't seal package com.google.gson.stream: already loaded
[2022.02.22 10:29:48.251] Wrapper return code 0 = Success
.png)
Hello @NCrowe-Lord142840 (Community Member) ,
Thank you for reaching out to the Community.
This is a known issue getting a sealing violation java error. Our engineering team is working on a solution and if you are interested in trying the test build to confirm it resolves your issue, we ask that you open a support ticket so our engineering team can track this issue properly through our system.
If interested you can log a case:
Once you have a ticket number, please let me know and I can follow up afterward.
Kind regards,
Steven
Veracode Support Engineer
for anyone seeing the same issue, the veracode team sent me an updated plugin to test which seems to have fixed the issue on ubuntu. They have said the fix should be added to a new release soon.