Highlighted
Cadet 3rd Class
Cadet 3rd Class
167 views

Incremental Scan Failure

I'm trying to run incremental scan for my Java project with fortify 19.2 and getting the following error:

java.lang.ClassCastException: cannot assign instance of com.fortify.sca.util.serialization.SCARuleHandle to field com.fortify.sca.metadata.SingletonMeta.rule of type com.fortify.sca.rules.SCAGlobalClassRule in instance of com.fortify.sca.metadata.SingletonMeta
	at java.io.ObjectStreamClass$FieldReflector.setObjFieldValues(ObjectStreamClass.java:2287) ~[?:1.8.0_181]
	at java.io.ObjectStreamClass.setObjFieldValues(ObjectStreamClass.java:1417) ~[?:1.8.0_181]
	at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2293) ~[?:1.8.0_181]
	at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:2211) ~[?:1.8.0_181]
	at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2069) ~[?:1.8.0_181]
	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1573) ~[?:1.8.0_181]
	at java.io.ObjectInputStream.readObject(ObjectInputStream.java:431) ~[?:1.8.0_181]
	at java.util.concurrent.ConcurrentHashMap.readObject(ConcurrentHashMap.java:1445) ~[?:1.8.0_181]
	at sun.reflect.GeneratedMethodAccessor13.invoke(Unknown Source) ~[?:?]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_181]
	at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_181]
	at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:1170) ~[?:1.8.0_181]
	at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:2178) ~[?:1.8.0_181]
	at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2069) ~[?:1.8.0_181]
	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1573) ~[?:1.8.0_181]
	at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2287) ~[?:1.8.0_181]
	at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:2211) ~[?:1.8.0_181]
	at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2069) ~[?:1.8.0_181]
	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1573) ~[?:1.8.0_181]
	at java.io.ObjectInputStream.readObject(ObjectInputStream.java:431) ~[?:1.8.0_181]
	at com.fortify.sca.backend.BackEnd.loadProgramModel(BackEnd.java:1173) ~[fortify-sca-19.2.0.0196.jar:?]
	at com.fortify.sca.backend.BackEnd.initializeEngine(BackEnd.java:575) [fortify-sca-19.2.0.0196.jar:?]
	at com.fortify.sca.backend.BackEnd.analyze(BackEnd.java:776) [fortify-sca-19.2.0.0196.jar:?]
	at com.fortify.sca.Main$Sourceanalyzer.run(Main.java:717) [fortify-sca-19.2.0.0196.jar:?]

The following commands were executed in the same order

/tools/fortify/Fortify_SCA_and_Apps_19.2.0/bin/sourceanalyzer -b abc -clean -logfile fortify_results/fortify_clean.log
/tools/fortify/Fortify_SCA_and_Apps_19.2.0/bin/sourceanalyzer -source 1.8 -b abc -cp '**/lib/*.jar' -exclude '**/build/**/*' '**/*' -logfile fortify_results/fortify_translation.log
/tools/fortify/Fortify_SCA_and_Apps_19.2.0/bin/sourceanalyzer -b abc -scan -incremental-base -f fortify_results/abc.fpr -logfile fortify_results/fortify_scan.log
/tools/fortify/Fortify_SCA_and_Apps_19.2.0/bin/sourceanalyzer -b abc -scan -incremental -f fortify_results/def.fpr -logfile fortify_results/fortify_scan.log

 

 

0 Likes
0 Replies
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.