See
<https://ci-builds.apache.org/job/POI/job/POI-DSL-SonarQube-Gradle/513/display/redirect?page=changes>
Changes:
[PJ Fanning] [bug-62857] fix DOLLAR function
[PJ Fanning] add SIGN tests
[PJ Fanning] add INT tests
[PJ Fanning] sonarqube
[PJ Fanning] fix imports
------------------------------------------
[...truncated 11.46 KB...]
parsing buildfile
jar:file:/usr/share/ant/lib/ant.jar!/org/apache/tools/ant/antlib.xml with URI =
jar:file:/usr/share/ant/lib/ant.jar!/org/apache/tools/ant/antlib.xml from a zip
file
[echo] Java 11/11.0.12
[exec] Current OS is Linux
[exec] Executing 'javac' with arguments:
[exec] '-version'
[exec]
[exec] The ' characters around the executable and arguments are
[exec] not part of the command.
[exec] javac 11.0.12
BUILD SUCCESSFUL
Total time: 1 second
+ exit 0
[Gradle] - Launching build.
[POI-DSL-SonarQube-Gradle] $
<https://ci-builds.apache.org/job/POI/job/POI-DSL-SonarQube-Gradle/ws/gradlew>
-PenableSonar -Dsonar.login=**** -Dsonar.organization=apache
-Dsonar.projectKey=poi-parent -Dsonar.host.url=https://sonarcloud.io clean
check jacocoTestReport sonarqube
To honour the JVM settings for this build a single-use Daemon process will be
forked. See
https://docs.gradle.org/7.3.3/userguide/gradle_daemon.html#sec:disabling_the_daemon.
Daemon will be stopped at the end of the build
Configuration on demand is an incubating feature.
> Configure project :
Enabling Sonar support
Trying to override old definition of datatype junit
Run with reduced parallelism for CI build
Run with reduced parallelism for CI build
Run with reduced parallelism for CI build
Run with reduced parallelism for CI build
Run with reduced parallelism for CI build
Run with reduced parallelism for CI build
Run with reduced parallelism for CI build
Run with reduced parallelism for CI build
Run with reduced parallelism for CI build
> Task :poi-integration:clean
> Task :poi-ooxml-lite-agent:clean
> Task :poi-excelant:clean
> Task :poi-examples:clean
> Task :poi-examples:processResources NO-SOURCE
> Task :poi-integration:compileJava NO-SOURCE
> Task :poi-examples:processTestResources NO-SOURCE
> Task :poi-integration:processResources NO-SOURCE
> Task :poi-integration:classes UP-TO-DATE
> Task :poi-scratchpad:clean
> Task :poi-integration:processTestResources
> Task :poi-scratchpad:processResources
> Task :poi-excelant:processResources
> Task :poi-integration:javadoc SKIPPED
> Task :poi-scratchpad:processTestResources NO-SOURCE
> Task :poi-integration:forbiddenApisMain NO-SOURCE
> Task :poi-integration:spotbugsMain NO-SOURCE
> Task :poi-excelant:processTestResources
> Task :poi-ooxml:clean
> Task :poi:clean
> Task :poi:generateVersionJava
> Task :poi-ooxml:fixBatik
> Task :poi-ooxml:processResources
> Task :poi-ooxml:processTestResources
> Task :poi-ooxml-full:clean
> Task :poi-ooxml-full:copy_xsds
> Task :poi-ooxml-lite:clean
> Task :poi-ooxml-lite:processTestResources NO-SOURCE
> Task :clean
> Task :poi-integration:jar
> Task :poi-integration:javadocJar SKIPPED
> Task :poi-integration:sourcesJar SKIPPED
> Task :poi-integration:assemble
> Task :poi-excelant:sourcesJar
> Task :poi-ooxml-full:generate_beans
[ant:xmlbean] ERROR StatusLogger Log4j2 could not find a logging
implementation. Please add log4j-core to the classpath. Using SimpleLogger to
log to the console...
> Task :poi-ooxml:sourcesJar
> Task :poi-ooxml-lite-agent:compileJava
> Task :poi-ooxml-lite-agent:compileJava9
> Task :poi-ooxml-lite-agent:cacheJava9
> Task :poi-ooxml-lite-agent:processResources NO-SOURCE
> Task :poi-ooxml-lite-agent:classes
> Task :poi-ooxml-lite-agent:jar
> Task :poi-ooxml-lite-agent:forbiddenApisMain UP-TO-DATE
> Task :poi-ooxml-lite-agent:compileTestJava NO-SOURCE
> Task :poi-ooxml-lite-agent:processTestResources NO-SOURCE
> Task :poi-ooxml-lite-agent:testClasses UP-TO-DATE
> Task :poi-ooxml-lite-agent:forbiddenApisTest NO-SOURCE
> Task :poi-ooxml-lite-agent:forbiddenApis UP-TO-DATE
> Task :poi-ooxml-lite-agent:spotbugsMain SKIPPED
> Task :poi-ooxml-lite-agent:spotbugsTest NO-SOURCE
> Task :poi-ooxml-lite-agent:test NO-SOURCE
> Task :poi-ooxml-lite-agent:check UP-TO-DATE
> Task :poi-ooxml-lite-agent:jacocoTestReport SKIPPED
> Task :poi:compileJava
[ant:xmlbean]
<https://ci-builds.apache.org/job/POI/job/POI-DSL-SonarQube-Gradle/ws/poi/src/main/java/org/apache/poi/util/GenericRecordUtil.java>:132:
warning: [unchecked] unchecked cast
[ant:xmlbean] m.putAll((Map<String,Supplier<?>>)baseMap);
[ant:xmlbean] ^
[ant:xmlbean] required: Map<String,Supplier<?>>
[ant:xmlbean] found: Object
[ant:xmlbean]
<https://ci-builds.apache.org/job/POI/job/POI-DSL-SonarQube-Gradle/ws/poi/src/main/java/org/apache/poi/hssf/record/NameRecord.java>:466:
warning: [deprecation] readAllContinuedRemainder() in RecordInputStream has
been deprecated
[ant:xmlbean] byte[] remainder = ris.readAllContinuedRemainder();
[ant:xmlbean] ^
[ant:xmlbean]
<https://ci-builds.apache.org/job/POI/job/POI-DSL-SonarQube-Gradle/ws/poi/src/main/java/org/apache/poi/hssf/record/AbstractEscherHolderRecord.java>:62:
warning: [deprecation] readAllContinuedRemainder() in RecordInputStream has
been deprecated
[ant:xmlbean] byte[] data = in.readAllContinuedRemainder();
[ant:xmlbean] ^
[ant:xmlbean]
<https://ci-builds.apache.org/job/POI/job/POI-DSL-SonarQube-Gradle/ws/poi/src/main/java/org/apache/poi/ss/usermodel/CellBase.java>:39:
warning: [deprecation] setCellType(CellType) in Cell has been deprecated
[ant:xmlbean] public final void setCellType(CellType cellType) {
[ant:xmlbean] ^
[ant:xmlbean]
<https://ci-builds.apache.org/job/POI/job/POI-DSL-SonarQube-Gradle/ws/poi/src/main/java/org/apache/poi/ss/formula/BaseFormulaEvaluator.java>:225:
warning: [deprecation] setCellType(CellType) in Cell has been deprecated
[ant:xmlbean] cell.setCellType(cellType);
[ant:xmlbean] ^
[ant:xmlbean]
<https://ci-builds.apache.org/job/POI/job/POI-DSL-SonarQube-Gradle/ws/poi/src/main/java/org/apache/poi/hssf/record/RecordFactoryInputStream.java>:335:
warning: [deprecation] processContinueRecord(byte[]) in DrawingRecord has been
deprecated
[ant:xmlbean]
_lastDrawingRecord.processContinueRecord(contRec.getData());
[ant:xmlbean] ^
> Task :poi-ooxml-full:generate_beans
Time to build schema type system: 9.633 seconds
Time to generate code: 10.291 seconds
> Task :poi:compileJava
6 warnings
> Task :poi:compileJava9
> Task :poi:cacheJava9
> Task :poi:processResources
> Task :poi:classes
> Task :poi:compileTestJava
<https://ci-builds.apache.org/job/POI/job/POI-DSL-SonarQube-Gradle/ws/poi/src/test/java/org/apache/poi/ss/usermodel/BaseTestSheetUpdateArrayFormulas.java>:277:
warning: [deprecation] setCellType(CellType) in Cell has been deprecated
scell.setCellType(CellType.STRING);
^
<https://ci-builds.apache.org/job/POI/job/POI-DSL-SonarQube-Gradle/ws/poi/src/test/java/org/apache/poi/ss/usermodel/BaseTestSheetUpdateArrayFormulas.java>:287:
warning: [deprecation] setCellType(CellType) in Cell has been deprecated
IllegalStateException e =
assertThrows(IllegalStateException.class, () ->
mcell.setCellType(CellType.NUMERIC));
^
<https://ci-builds.apache.org/job/POI/job/POI-DSL-SonarQube-Gradle/ws/poi/src/test/java/org/apache/poi/hssf/usermodel/TestBugs.java>:2362:
warning: [deprecation] setCellType(CellType) in Cell has been deprecated
cell.setCellType(CellType.STRING);
^
<https://ci-builds.apache.org/job/POI/job/POI-DSL-SonarQube-Gradle/ws/poi/src/test/java/org/apache/poi/hssf/usermodel/TestHSSFCell.java>:385:
warning: [deprecation] setCellType(CellType) in Cell has been deprecated
cell.setCellType(CellType.STRING);
^
<https://ci-builds.apache.org/job/POI/job/POI-DSL-SonarQube-Gradle/ws/poi/src/test/java/org/apache/poi/hssf/usermodel/TestHSSFCell.java>:389:
warning: [deprecation] setCellType(CellType) in Cell has been deprecated
cell.setCellType(CellType.BOOLEAN);
^
<https://ci-builds.apache.org/job/POI/job/POI-DSL-SonarQube-Gradle/ws/poi/src/test/java/org/apache/poi/hssf/usermodel/TestHSSFCell.java>:391:
warning: [deprecation] setCellType(CellType) in Cell has been deprecated
cell.setCellType(CellType.BOOLEAN);
^
<https://ci-builds.apache.org/job/POI/job/POI-DSL-SonarQube-Gradle/ws/poi/src/test/java/org/apache/poi/hssf/usermodel/TestHSSFCell.java>:394:
warning: [deprecation] setCellType(CellType) in Cell has been deprecated
cell.setCellType(CellType.BOOLEAN);
^
<https://ci-builds.apache.org/job/POI/job/POI-DSL-SonarQube-Gradle/ws/poi/src/test/java/org/apache/poi/hssf/usermodel/TestHSSFCell.java>:398:
warning: [deprecation] setCellType(CellType) in Cell has been deprecated
cell.setCellType(CellType.BOOLEAN);
^
<https://ci-builds.apache.org/job/POI/job/POI-DSL-SonarQube-Gradle/ws/poi/src/test/java/org/apache/poi/hssf/usermodel/TestHSSFCell.java>:399:
warning: [deprecation] setCellType(CellType) in Cell has been deprecated
cell.setCellType(CellType.STRING);
^
<https://ci-builds.apache.org/job/POI/job/POI-DSL-SonarQube-Gradle/ws/poi/src/test/java/org/apache/poi/hssf/usermodel/TestHSSFCell.java>:400:
warning: [deprecation] setCellType(CellType) in Cell has been deprecated
cell.setCellType(CellType.ERROR);
^
<https://ci-builds.apache.org/job/POI/job/POI-DSL-SonarQube-Gradle/ws/poi/src/test/java/org/apache/poi/hssf/usermodel/TestHSSFCell.java>:401:
warning: [deprecation] setCellType(CellType) in Cell has been deprecated
cell.setCellType(CellType.STRING);
^
<https://ci-builds.apache.org/job/POI/job/POI-DSL-SonarQube-Gradle/ws/poi/src/test/java/org/apache/poi/hssf/usermodel/TestHSSFCell.java>:403:
warning: [deprecation] setCellType(CellType) in Cell has been deprecated
cell.setCellType(CellType.STRING);
^
<https://ci-builds.apache.org/job/POI/job/POI-DSL-SonarQube-Gradle/ws/poi/src/test/java/org/apache/poi/hssf/record/TestFormulaRecord.java>:90:
warning: [deprecation] getCode() in CellType has been deprecated
assertEquals(CellType.ERROR.getCode(), record.getCachedResultType());
^
<https://ci-builds.apache.org/job/POI/job/POI-DSL-SonarQube-Gradle/ws/poi/src/test/java/org/apache/poi/hssf/record/TestFormulaRecord.java>:90:
warning: [deprecation] getCachedResultType() in FormulaRecord has been
deprecated
assertEquals(CellType.ERROR.getCode(), record.getCachedResultType());
^
<https://ci-builds.apache.org/job/POI/job/POI-DSL-SonarQube-Gradle/ws/poi/src/test/java/org/apache/poi/ss/util/TestSheetUtil.java>:212:
warning: [deprecation] setCellType(CellType) in Cell has been deprecated
cell.setCellType(CellType.STRING);
^
15 warnings
> Task :poi:compileTest9
> Task :poi:cacheTest9
> Task :poi:jar
> Task :poi:processTestResources
> Task :poi:testClasses
> Task :poi:testJar
> Task :poi-ooxml-full:compileJava
> Task :poi:forbiddenApisMain FAILED
Forbidden method invocation: java.text.DecimalFormat#<init>(java.lang.String)
[Uses default locale]
in org.apache.poi.ss.formula.functions.NumericFunction
(NumericFunction.java:107)
Scanned 1631 class file(s) for forbidden API invocations (in 2.64s), 1 error(s).
> Task :poi-scratchpad:compileJava
<https://ci-builds.apache.org/job/POI/job/POI-DSL-SonarQube-Gradle/ws/poi-scratchpad/src/main/java/org/apache/poi/hslf/usermodel/HSLFSlide.java>:492:
warning: [deprecation] getDisplayPlaceholder(Placeholder) in Slide has been
deprecated
public boolean getDisplayPlaceholder(final Placeholder placeholder) {
^
<https://ci-builds.apache.org/job/POI/job/POI-DSL-SonarQube-Gradle/ws/poi-scratchpad/src/main/java/org/apache/poi/hwpf/model/BytePropertyNode.java>:35:
warning: [unchecked] unchecked method invocation: constructor <init> in class
PropertyNode is applied to given types
super(other);
^
required: PropertyNode<T>
found: BytePropertyNode
where T is a type-variable:
T extends PropertyNode<T> declared in class PropertyNode
<https://ci-builds.apache.org/job/POI/job/POI-DSL-SonarQube-Gradle/ws/poi-scratchpad/src/main/java/org/apache/poi/hwpf/model/BytePropertyNode.java>:35:
warning: [unchecked] unchecked conversion
super(other);
^
required: PropertyNode<T>
found: BytePropertyNode
where T is a type-variable:
T extends PropertyNode<T> declared in class PropertyNode
<https://ci-builds.apache.org/job/POI/job/POI-DSL-SonarQube-Gradle/ws/poi-scratchpad/src/main/java/org/apache/poi/hwpf/HWPFDocument.java>:337:
warning: [deprecation]
PicturesTable(HWPFDocument,byte[],byte[],FSPATable,OfficeArtContent) in
PicturesTable has been deprecated
_pictures = new PicturesTable(this, _dataStream, _mainStream,
_fspaMain, officeArtContent);
^
<https://ci-builds.apache.org/job/POI/job/POI-DSL-SonarQube-Gradle/ws/poi-scratchpad/src/main/java/org/apache/poi/hwpf/usermodel/Table.java>:89:
warning: [deprecation] TYPE_TABLE in Range has been deprecated
return TYPE_TABLE;
^
<https://ci-builds.apache.org/job/POI/job/POI-DSL-SonarQube-Gradle/ws/poi-scratchpad/src/main/java/org/apache/poi/hwpf/usermodel/Section.java>:238:
warning: [deprecation] TYPE_SECTION in Range has been deprecated
return TYPE_SECTION;
^
<https://ci-builds.apache.org/job/POI/job/POI-DSL-SonarQube-Gradle/ws/poi-scratchpad/src/main/java/org/apache/poi/hwpf/usermodel/HWPFList.java>:208:
warning: [deprecation] getCharacterStyle(int) in StyleSheet has been deprecated
CharacterProperties base = _styleSheet.getCharacterStyle( styleIndex );
^
<https://ci-builds.apache.org/job/POI/job/POI-DSL-SonarQube-Gradle/ws/poi-scratchpad/src/main/java/org/apache/poi/hwpf/usermodel/HWPFList.java>:226:
warning: [deprecation] getParagraphStyle(int) in StyleSheet has been deprecated
ParagraphProperties base = _styleSheet.getParagraphStyle( styleIndex );
^
<https://ci-builds.apache.org/job/POI/job/POI-DSL-SonarQube-Gradle/ws/poi-scratchpad/src/main/java/org/apache/poi/hwpf/model/ListFormatOverrideLevel.java>:44:
warning: [deprecation] ListLevel(byte[],int) in ListLevel has been deprecated
_lvl = new ListLevel( buf, offset );
^
<https://ci-builds.apache.org/job/POI/job/POI-DSL-SonarQube-Gradle/ws/poi-scratchpad/src/main/java/org/apache/poi/hwpf/model/SinglentonTextPiece.java>:39:
warning: [deprecation] characterLength() in TextPiece has been deprecated
public int characterLength()
^
<https://ci-builds.apache.org/job/POI/job/POI-DSL-SonarQube-Gradle/ws/poi-scratchpad/src/main/java/org/apache/poi/hwpf/HWPFOldDocument.java>:147:
warning: [deprecation] OldSectionTable(byte[],int,int,int,TextPieceTable) in
OldSectionTable has been deprecated
_st = new OldSectionTable(
^
11 warnings
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':poi:forbiddenApisMain'.
> de.thetaphi.forbiddenapis.ForbiddenApiException: Check for forbidden API
> calls failed, see log.
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 2m 32s
41 actionable tasks: 40 executed, 1 up-to-date
Build step 'Invoke Gradle script' changed build result to FAILURE
Build step 'Invoke Gradle script' marked build as failure
WARN: Unable to locate 'report-task.txt' in the workspace. Did the SonarScanner
succeed?
Archiving artifacts
Recording test results
ERROR: Step ?Publish JUnit test result report? failed: No test report files
were found. Configuration error?
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]