Jenkins build is back to normal : POI » POI-DSL-1.16 #517

2021-10-13 Thread Apache Jenkins Server
See 



-
To unsubscribe, e-mail: dev-unsubscr...@poi.apache.org
For additional commands, e-mail: dev-h...@poi.apache.org



Jenkins build is back to normal : POI » POI-DSL-1.17 #35

2021-10-13 Thread Apache Jenkins Server
See 



-
To unsubscribe, e-mail: dev-unsubscr...@poi.apache.org
For additional commands, e-mail: dev-h...@poi.apache.org



Build failed in Jenkins: POI » POI-DSL-1.16 #516

2021-10-13 Thread Apache Jenkins Server
See 


Changes:

[PJ Fanning] add tests

[PJ Fanning] setDisallowDocTypeDeclaration


--
[...truncated 27.24 KB...]
CharacterProperties base = _styleSheet.getCharacterStyle( styleIndex );
  ^
:226:
 warning: [deprecation] getParagraphStyle(int) in StyleSheet has been deprecated
ParagraphProperties base = _styleSheet.getParagraphStyle( styleIndex );
  ^
:44:
 warning: [deprecation] ListLevel(byte[],int) in ListLevel has been deprecated
_lvl = new ListLevel( buf, offset );
   ^
:315:
 warning: [deprecation] 
PicturesTable(HWPFDocument,byte[],byte[],FSPATable,OfficeArtContent) in 
PicturesTable has been deprecated
_pictures = new PicturesTable(this, _dataStream, _mainStream, 
_fspaMain, officeArtContent);
^
:39:
 warning: [deprecation] characterLength() in TextPiece has been deprecated
public int characterLength()
   ^
10 warnings

> Task :poi-scratchpad:compileJava9
> Task :poi-scratchpad:cacheJava9
> Task :poi-scratchpad:processResources
> Task :poi-scratchpad:classes
> Task :poi-scratchpad:jar
> Task :poi-examples:compileJava
> Task :poi-examples:compileJava9
> Task :poi-examples:cacheJava9
> Task :poi-examples:processResources NO-SOURCE
> Task :poi-examples:classes
> Task :poi-examples:jar

> Task :poi:compileTestJava
:212:
 warning: [deprecation] setCellType(CellType) in Cell has been deprecated
cell.setCellType(CellType.STRING);
^
:277:
 warning: [deprecation] setCellType(CellType) in Cell has been deprecated
scell.setCellType(CellType.STRING);
 ^
:287:
 warning: [deprecation] setCellType(CellType) in Cell has been deprecated
IllegalStateException e = 
assertThrows(IllegalStateException.class, () -> 
mcell.setCellType(CellType.NUMERIC));

   ^
:385:
 warning: [deprecation] setCellType(CellType) in Cell has been deprecated
cell.setCellType(CellType.STRING);
^
:389:
 warning: [deprecation] setCellType(CellType) in Cell has been deprecated
cell.setCellType(CellType.BOOLEAN);
^
:391:
 warning: [deprecation] setCellType(CellType) in Cell has been deprecated
cell.setCellType(CellType.BOOLEAN);
^
:394:
 warning: [deprecation] setCellType(CellType) in Cell has been deprecated
cell.setCellType(CellType.BOOLEAN);
^
:398:
 warning: [deprecation] setCellType(CellType) in Cell has been deprecated
cell.setCellType(CellType.BOOLEAN);
^
:399:
 warning: [deprecation] setCellType(CellType) in Cell has been deprecated
cell.setCellType(CellType.STRING);
^
:400:
 warning: [deprecation] setCellType(CellType) in Cell has been deprecated
cell.setCellType(CellType.ERROR);
^

Build failed in Jenkins: POI » POI-DSL-Windows-1.16 #289

2021-10-13 Thread Apache Jenkins Server
See 


Changes:

[PJ Fanning] undo setDisallowDocTypeDeclaration (need to investigate some 
poi-integration test failures)

[PJ Fanning] add tests

[PJ Fanning] setDisallowDocTypeDeclaration


--
Started by an SCM change
Running as SYSTEM
[EnvInject] - Loading node environment variables.
[EnvInject] - Preparing an environment for the build.
[EnvInject] - Keeping Jenkins system variables.
[EnvInject] - Keeping Jenkins build variables.
[EnvInject] - Injecting as environment variables the properties content 
LANG=en_US.UTF-8
FORREST_HOME=f:\jenkins\tools\forrest\latest

[EnvInject] - Variables injected successfully.
[EnvInject] - Injecting contributions.
Building remotely on jenkins-win-azr-1 (Windows) in workspace 

[WS-CLEANUP] Deleting project workspace...
[WS-CLEANUP] Done
Updating https://svn.apache.org/repos/asf/poi/trunk at revision 
'2021-10-13T23:23:02.997 +'
U poi-ooxml\src\main\java\org\apache\poi\ooxml\POIXMLTypeLoader.java
U 
poi-ooxml\src\test\java\org\apache\poi\openxml4j\opc\TestEncryptedTempFilePackagePart.java
U 
poi-ooxml\src\test\java\org\apache\poi\openxml4j\opc\TestTempFilePackagePart.java

<-- Got one external: documentation, svn url: 
https://svn.apache.org/repos/asf/poi/site/src/documentation -->
Fetching 'https://svn.apache.org/repos/asf/poi/site/src/documentation' at -1 
into 
'F:\jenkins\jenkins-home\712657a4\workspace\POI\POI-DSL-Windows-1.16\src\documentation'
At revision 1894216


<-- Got one external: forrest.properties, svn url: 
https://svn.apache.org/repos/asf/poi/site/forrest.properties -->
Fetching 'https://svn.apache.org/repos/asf/poi/site/forrest.properties' at -1 
into 
'F:\jenkins\jenkins-home\712657a4\workspace\POI\POI-DSL-Windows-1.16\forrest.properties'
At revision 1894216

At revision 1894216

No changes for https://svn.apache.org/repos/asf/poi/site/src/documentation 
since the previous build
No changes for https://svn.apache.org/repos/asf/poi/site/forrest.properties 
since the previous build
[POI-DSL-Windows-1.16] $ cmd /c call 
F:\jenkins\jenkins-home\temp\jenkins8796739362512071828.bat
X   forrest.properties
C   poi\src\main\java9\module-info.class
?   poi\src\main\java9\module-info.class.r1892796
?   poi\src\main\java9\module-info.class.r1892911
C   poi\src\test\java9\module-info.class
?   poi\src\test\java9\module-info.class.r1892796
?   poi\src\test\java9\module-info.class.r1892911
C   poi-examples\src\main\java9\module-info.class
?   poi-examples\src\main\java9\module-info.class.r1892796
?   poi-examples\src\main\java9\module-info.class.r1892911
C   poi-excelant\src\main\java9\module-info.class
?   poi-excelant\src\main\java9\module-info.class.r1892796
?   poi-excelant\src\main\java9\module-info.class.r1892911
C   poi-excelant\src\test\java9\module-info.class
?   poi-excelant\src\test\java9\module-info.class.r1892796
?   poi-excelant\src\test\java9\module-info.class.r1892911
C   poi-integration\src\test\java9\module-info.class
?   poi-integration\src\test\java9\module-info.class.r1892796
?   poi-integration\src\test\java9\module-info.class.r1892911
C   poi-ooxml\src\main\java9\module-info.class
?   poi-ooxml\src\main\java9\module-info.class.r1892796
?   poi-ooxml\src\main\java9\module-info.class.r1892911
C   poi-ooxml\src\test\java9\module-info.class
?   poi-ooxml\src\test\java9\module-info.class.r1892796
?   poi-ooxml\src\test\java9\module-info.class.r1892911
C   poi-ooxml-full\src\main\java9\module-info.class
?   poi-ooxml-full\src\main\java9\module-info.class.r1892796
?   poi-ooxml-full\src\main\java9\module-info.class.r1892911
C   poi-ooxml-lite\src\main\java9\module-info.class
?   poi-ooxml-lite\src\main\java9\module-info.class.r1892796
?   poi-ooxml-lite\src\main\java9\module-info.class.r1892911
C   poi-ooxml-lite-agent\src\main\java9\module-info.class
?   poi-ooxml-lite-agent\src\main\java9\module-info.class.r1892796
?   poi-ooxml-lite-agent\src\main\java9\module-info.class.r1892911
C   poi-scratchpad\src\main\java9\module-info.class
?   poi-scratchpad\src\main\java9\module-info.class.r1892796
?   poi-scratchpad\src\main\java9\module-info.class.r1892911
C   poi-scratchpad\src\test\java9\module-info.class
?   poi-scratchpad\src\test\java9\module-info.class.r1892796
?   poi-scratchpad\src\test\java9\module-info.class.r1892911
X   src\documentation

Performing status on external item at 'src\documentation':
Summary of conflicts:
  Text conflicts: 13
svn: E155010: The node 
'F:\jenkins\jenkins-home\712657a4\workspace\POI\POI-DSL-Windows-1.16\poi*\src\*'
 was not found.
Java-Home: f:\\jenkins\\tools\\java\\latest16
 Volume in drive F is Data
 Volume Serial Number is 

Build failed in Jenkins: POI » POI-DSL-Windows-1.16 #288

2021-10-13 Thread Apache Jenkins Server
See 


Changes:

[PJ Fanning] add tests


--
[...truncated 28.41 KB...]
> Task :poi-examples:jar

> Task :poi:compileTestJava
F:\jenkins\jenkins-home\712657a4\workspace\POI\POI-DSL-Windows-1.16\poi\src\test\java\org\apache\poi\hssf\record\TestFormulaRecord.java:89:
 warning: [deprecation] getCode() in CellType has been deprecated
assertEquals(CellType.ERROR.getCode(), record.getCachedResultType());
   ^
F:\jenkins\jenkins-home\712657a4\workspace\POI\POI-DSL-Windows-1.16\poi\src\test\java\org\apache\poi\hssf\record\TestFormulaRecord.java:89:
 warning: [deprecation] getCachedResultType() in FormulaRecord has been 
deprecated
assertEquals(CellType.ERROR.getCode(), record.getCachedResultType());
 ^
F:\jenkins\jenkins-home\712657a4\workspace\POI\POI-DSL-Windows-1.16\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);
^
F:\jenkins\jenkins-home\712657a4\workspace\POI\POI-DSL-Windows-1.16\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);
^
F:\jenkins\jenkins-home\712657a4\workspace\POI\POI-DSL-Windows-1.16\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);
^
F:\jenkins\jenkins-home\712657a4\workspace\POI\POI-DSL-Windows-1.16\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);
^
F:\jenkins\jenkins-home\712657a4\workspace\POI\POI-DSL-Windows-1.16\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);
^
F:\jenkins\jenkins-home\712657a4\workspace\POI\POI-DSL-Windows-1.16\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);
^
F:\jenkins\jenkins-home\712657a4\workspace\POI\POI-DSL-Windows-1.16\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);
^
F:\jenkins\jenkins-home\712657a4\workspace\POI\POI-DSL-Windows-1.16\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);
^
F:\jenkins\jenkins-home\712657a4\workspace\POI\POI-DSL-Windows-1.16\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);
^
F:\jenkins\jenkins-home\712657a4\workspace\POI\POI-DSL-Windows-1.16\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);
^
F:\jenkins\jenkins-home\712657a4\workspace\POI\POI-DSL-Windows-1.16\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);
 ^
F:\jenkins\jenkins-home\712657a4\workspace\POI\POI-DSL-Windows-1.16\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));

   ^
F:\jenkins\jenkins-home\712657a4\workspace\POI\POI-DSL-Windows-1.16\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 UP-TO-DATE
> Task :poi:processTestResources
> Task :poi:testClasses
> Task :poi:testJar
> Task :poi-integration:compileJava NO-SOURCE
> Task :poi-integration:processResources NO-SOURCE
> 

Build failed in Jenkins: POI » POI-DSL-1.17 #34

2021-10-13 Thread Apache Jenkins Server
See 


Changes:

[PJ Fanning] setDisallowDocTypeDeclaration

[PJ Fanning] add tests

[PJ Fanning] xmlbeans 5.0.2 (temporarily from a pre-release location)

[PJ Fanning] xmlbeans 5.0.2 (temporarily from a pre-release location)

[Andreas Beeker] #64716 - wmf display error
update heuristic to respect location of bounding box

[PJ Fanning] [bug-65042] support saving package part data in temp files

[PJ Fanning] javadoc

[PJ Fanning] javadoc


--
[...truncated 33.82 KB...]
SecurityManager sm = System.getSecurityManager();
^
:154:
 warning: [removal] getSecurityManager() in System has been deprecated and 
marked for removal
SecurityManager sm = System.getSecurityManager();
   ^
:156:
 warning: [removal] SecurityManager in java.lang has been deprecated and marked 
for removal
System.setSecurityManager(new SecurityManager() {
  ^
:156:
 warning: [removal] setSecurityManager(SecurityManager) in System has been 
deprecated and marked for removal
System.setSecurityManager(new SecurityManager() {
  ^
:170:
 warning: [removal] setSecurityManager(SecurityManager) in System has been 
deprecated and marked for removal
System.setSecurityManager(sm);
  ^
:277:
 warning: [deprecation] setCellType(CellType) in Cell has been deprecated
scell.setCellType(CellType.STRING);
 ^
:287:
 warning: [deprecation] setCellType(CellType) in Cell has been deprecated
IllegalStateException e = 
assertThrows(IllegalStateException.class, () -> 
mcell.setCellType(CellType.NUMERIC));

   ^
:212:
 warning: [deprecation] setCellType(CellType) in Cell has been deprecated
cell.setCellType(CellType.STRING);
^
:89:
 warning: [deprecation] getCode() in CellType has been deprecated
assertEquals(CellType.ERROR.getCode(), record.getCachedResultType());
   ^
:89:
 warning: [deprecation] getCachedResultType() in FormulaRecord has been 
deprecated
assertEquals(CellType.ERROR.getCode(), record.getCachedResultType());
 ^
:312:
 warning: [removal] SecurityManager in java.lang has been deprecated and marked 
for removal
SecurityManager sm = System.getSecurityManager();
^
:312:
 warning: [removal] getSecurityManager() in System has been deprecated and 
marked for removal
SecurityManager sm = System.getSecurityManager();
   ^
:313:
 warning: [removal] setSecurityManager(SecurityManager) in System has been 
deprecated and marked for removal
System.setSecurityManager(new NoExitSecurityManager());
  ^
:319:
 warning: [removal] setSecurityManager(SecurityManager) in System has been 
deprecated and marked for removal
System.setSecurityManager(sm);
  ^
:363:
 

Jenkins build is back to normal : POI » POI-DSL-1.11 #123

2021-10-13 Thread Apache Jenkins Server
See 



-
To unsubscribe, e-mail: dev-unsubscr...@poi.apache.org
For additional commands, e-mail: dev-h...@poi.apache.org



Build failed in Jenkins: POI » POI-DSL-1.16 #515

2021-10-13 Thread Apache Jenkins Server
See 


Changes:

[PJ Fanning] add tests

[PJ Fanning] xmlbeans 5.0.2 (temporarily from a pre-release location)

[PJ Fanning] xmlbeans 5.0.2 (temporarily from a pre-release location)

[Andreas Beeker] #64716 - wmf display error
update heuristic to respect location of bounding box

[PJ Fanning] [bug-65042] support saving package part data in temp files

[PJ Fanning] javadoc

[PJ Fanning] javadoc


--
[...truncated 461.23 KB...]
> Task :allJavaDoc
> Task :zipJavadocs

> Task :poi-integration:test
OpenJDK 64-Bit Server VM warning: Option --illegal-access is deprecated and 
will be removed in a future release.
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further 
details.

> Task :poi-ooxml:test
OpenJDK 64-Bit Server VM warning: Option --illegal-access is deprecated and 
will be removed in a future release.
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further 
details.

> Task :poi-excelant:compileJava
> Task :poi-excelant:compileJava9
> Task :poi-excelant:cacheJava9
> Task :poi-excelant:processResources
> Task :poi-excelant:classes
> Task :poi-excelant:jar
> Task :poi-excelant:javadoc
> Task :poi-excelant:javadocJar
> Task :poi-excelant:sourcesJar
> Task :poi-excelant:assemble
> Task :poi-excelant:forbiddenApisMain
> Task :poi-excelant:compileTestJava
> Task :poi-excelant:compileTest9
> Task :poi-excelant:cacheTest9
> Task :poi-excelant:processTestResources
> Task :poi-excelant:testClasses
> Task :poi-excelant:forbiddenApisTest
> Task :poi-excelant:forbiddenApis
> Task :poi-excelant:testJar

> Task :poi-excelant:test
OpenJDK 64-Bit Server VM warning: Option --illegal-access is deprecated and 
will be removed in a future release.
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further 
details.

> Task :poi-excelant:spotbugsTest
4 SpotBugs violations were found. See the report at: 
file://

> Task :poi-integration:jar
> Task :poi-integration:javadoc SKIPPED
> Task :poi-integration:javadocJar SKIPPED
> Task :poi-integration:sourcesJar SKIPPED
> Task :poi-integration:assemble
> Task :poi-integration:forbiddenApisMain NO-SOURCE
> Task :poi-integration:forbiddenApisTest
> Task :poi-integration:forbiddenApis
> Task :poi-integration:spotbugsMain NO-SOURCE

> Task :poi-excelant:spotbugsMain
4 SpotBugs violations were found. See the report at: 
file://

> Task :poi-excelant:check
> Task :poi-excelant:build

> Task :poi-integration:spotbugsTest
7 SpotBugs violations were found. See the report at: 
file://

> Task :poi-ooxml:javadoc
> Task :poi-integration:check
> Task :poi-integration:build
> Task :poi-ooxml:javadocJar
> Task :poi-ooxml:sourcesJar
> Task :poi-ooxml:assemble
> Task :poi-ooxml:forbiddenApisMain
> Task :poi-ooxml:forbiddenApisTest
> Task :poi-ooxml:forbiddenApis
> Task :replaceVersion
> Task :poi:javadoc
> Task :poi:javadocJar

> Task :poi:sourcesJar
Execution optimizations have been disabled for task ':poi:sourcesJar' to ensure 
correctness due to the following reasons:
  - Gradle detected a problem with the following location: 
'
 Reason: Task ':poi:sourcesJar' uses this output of task 
':poi:generateVersionJava' without declaring an explicit or implicit 
dependency. This can lead to incorrect results being produced, depending on 
what order the tasks are executed. Please refer to 
https://docs.gradle.org/7.2/userguide/validation_problems.html#implicit_dependency
 for more details about this problem.

> Task :poi:assemble
> Task :poi:forbiddenApisMain
> Task :poi-ooxml:spotbugsMain
> Task :poi-ooxml:spotbugsTest
> Task :poi:forbiddenApisTest
> Task :poi:forbiddenApis

> Task :poi:test
OpenJDK 64-Bit Server VM warning: Option --illegal-access is deprecated and 
will be removed in a future release.
WARNING: Unknown module: org.junit.platform.commons specified to --add-exports
WARNING: Unknown module: org.junit.platform.commons specified to --add-exports

> Task :poi-ooxml:spotbugsTest
96 SpotBugs violations were found. See the report at: 
file://

> Task 

Build failed in Jenkins: POI » POI-DSL-Windows-1.16 #287

2021-10-13 Thread Apache Jenkins Server
See 


Changes:

[PJ Fanning] xmlbeans 5.0.2 (temporarily from a pre-release location)


--
[...truncated 24.17 KB...]
> Task :poi-scratchpad:jar
> Task :poi-examples:compileJava
> Task :poi-examples:compileJava9
> Task :poi-examples:cacheJava9 UP-TO-DATE
> Task :poi-examples:processResources NO-SOURCE
> Task :poi-examples:classes
> Task :poi-examples:jar

> Task :poi:compileTestJava
F:\jenkins\jenkins-home\712657a4\workspace\POI\POI-DSL-Windows-1.16\poi\src\test\java\org\apache\poi\hssf\record\TestFormulaRecord.java:89:
 warning: [deprecation] getCode() in CellType has been deprecated
assertEquals(CellType.ERROR.getCode(), record.getCachedResultType());
   ^
F:\jenkins\jenkins-home\712657a4\workspace\POI\POI-DSL-Windows-1.16\poi\src\test\java\org\apache\poi\hssf\record\TestFormulaRecord.java:89:
 warning: [deprecation] getCachedResultType() in FormulaRecord has been 
deprecated
assertEquals(CellType.ERROR.getCode(), record.getCachedResultType());
 ^
F:\jenkins\jenkins-home\712657a4\workspace\POI\POI-DSL-Windows-1.16\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);
^
F:\jenkins\jenkins-home\712657a4\workspace\POI\POI-DSL-Windows-1.16\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);
^
F:\jenkins\jenkins-home\712657a4\workspace\POI\POI-DSL-Windows-1.16\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);
^
F:\jenkins\jenkins-home\712657a4\workspace\POI\POI-DSL-Windows-1.16\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);
^
F:\jenkins\jenkins-home\712657a4\workspace\POI\POI-DSL-Windows-1.16\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);
^
F:\jenkins\jenkins-home\712657a4\workspace\POI\POI-DSL-Windows-1.16\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);
^
F:\jenkins\jenkins-home\712657a4\workspace\POI\POI-DSL-Windows-1.16\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);
^
F:\jenkins\jenkins-home\712657a4\workspace\POI\POI-DSL-Windows-1.16\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);
^
F:\jenkins\jenkins-home\712657a4\workspace\POI\POI-DSL-Windows-1.16\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);
^
F:\jenkins\jenkins-home\712657a4\workspace\POI\POI-DSL-Windows-1.16\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);
^
F:\jenkins\jenkins-home\712657a4\workspace\POI\POI-DSL-Windows-1.16\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);
 ^
F:\jenkins\jenkins-home\712657a4\workspace\POI\POI-DSL-Windows-1.16\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));

   ^
F:\jenkins\jenkins-home\712657a4\workspace\POI\POI-DSL-Windows-1.16\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);
  

Build failed in Jenkins: POI » POI-DSL-1.11 #122

2021-10-13 Thread Apache Jenkins Server
See 


Changes:

[PJ Fanning] xmlbeans 5.0.2 (temporarily from a pre-release location)

[Andreas Beeker] #64716 - wmf display error
update heuristic to respect location of bounding box


--
[...truncated 47.25 KB...]
 ^
:604:
 warning: [deprecation] getFontSize() in XWPFRun has been deprecated
assertEquals(Integer.MAX_VALUE - 1, run.getFontSize());
   ^
:607:
 warning: [deprecation] getFontSize() in XWPFRun has been deprecated
assertEquals(Integer.MAX_VALUE, run.getFontSize());
   ^
:610:
 warning: [deprecation] getFontSize() in XWPFRun has been deprecated
assertEquals(-1, run.getFontSize());
^
:658:
 warning: [deprecation] getFontSize() in XWPFRun has been deprecated
assertEquals(10, run.getFontSize());
^
12 warnings

> Task :poi-ooxml:compileTest9
> Task :poi-ooxml:cacheTest9
> Task :poi-ooxml:processTestResources
> Task :poi-ooxml:testClasses
> Task :poi-ooxml:testJar
> Task :poi-integration:compileTestJava
> Task :poi-integration:compileTest9
> Task :poi-integration:cacheTest9
> Task :poi-integration:processTestResources
> Task :poi-integration:testClasses
> Task :poi-integration:testJar
> Task :allJavaDoc
> Task :zipJavadocs

> Task :poi-integration:test
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further 
details.

> Task :poi-ooxml:test
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further 
details.

> Task :poi-excelant:compileJava
> Task :poi-excelant:compileJava9
> Task :poi-excelant:cacheJava9
> Task :poi-excelant:processResources
> Task :poi-excelant:classes
> Task :poi-excelant:jar
> Task :poi-excelant:javadoc
> Task :poi-excelant:javadocJar
> Task :poi-excelant:sourcesJar
> Task :poi-excelant:assemble
> Task :poi-excelant:forbiddenApisMain
> Task :poi-excelant:compileTestJava
> Task :poi-excelant:compileTest9
> Task :poi-excelant:cacheTest9
> Task :poi-excelant:processTestResources
> Task :poi-excelant:testClasses
> Task :poi-excelant:forbiddenApisTest
> Task :poi-excelant:forbiddenApis
> Task :poi-excelant:testJar

> Task :poi-excelant:test
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further 
details.

> Task :poi-excelant:spotbugsMain
4 SpotBugs violations were found. See the report at: 
file://

> Task :poi-excelant:spotbugsTest
4 SpotBugs violations were found. See the report at: 
file://

> Task :poi-excelant:check
> Task :poi-excelant:build
> Task :poi-integration:jar
> Task :poi-integration:javadoc SKIPPED
> Task :poi-integration:javadocJar SKIPPED
> Task :poi-integration:sourcesJar SKIPPED
> Task :poi-integration:assemble
> Task :poi-integration:forbiddenApisMain NO-SOURCE
> Task :poi-integration:forbiddenApisTest
> Task :poi-integration:forbiddenApis
> Task :poi-integration:spotbugsMain NO-SOURCE

> Task :poi-integration:spotbugsTest
7 SpotBugs violations were found. See the report at: 
file://

> Task :poi-ooxml:javadoc
> Task :poi-integration:check
> Task :poi-integration:build
> Task :poi-ooxml:javadocJar
> Task :poi-ooxml:sourcesJar
> Task :poi-ooxml:assemble
> Task :poi-ooxml:forbiddenApisMain
> Task :poi-ooxml:forbiddenApisTest
> Task :poi-ooxml:forbiddenApis
> Task :replaceVersion
> Task :poi-ooxml:spotbugsMain
> Task :poi-ooxml:spotbugsTest
> Task :poi:javadoc
> Task :poi:javadocJar

> Task :poi:sourcesJar
Execution optimizations have been disabled for task ':poi:sourcesJar' to ensure 
correctness due to the following reasons:
  - Gradle detected a 

Build failed in Jenkins: POI » POI-DSL-Windows-1.16 #286

2021-10-13 Thread Apache Jenkins Server
See 


Changes:

[PJ Fanning] xmlbeans 5.0.2 (temporarily from a pre-release location)


--
[...truncated 25.12 KB...]
> Task :poi-examples:jar

> Task :poi:compileTestJava
F:\jenkins\jenkins-home\712657a4\workspace\POI\POI-DSL-Windows-1.16\poi\src\test\java\org\apache\poi\hssf\record\TestFormulaRecord.java:89:
 warning: [deprecation] getCode() in CellType has been deprecated
assertEquals(CellType.ERROR.getCode(), record.getCachedResultType());
   ^
F:\jenkins\jenkins-home\712657a4\workspace\POI\POI-DSL-Windows-1.16\poi\src\test\java\org\apache\poi\hssf\record\TestFormulaRecord.java:89:
 warning: [deprecation] getCachedResultType() in FormulaRecord has been 
deprecated
assertEquals(CellType.ERROR.getCode(), record.getCachedResultType());
 ^
F:\jenkins\jenkins-home\712657a4\workspace\POI\POI-DSL-Windows-1.16\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);
^
F:\jenkins\jenkins-home\712657a4\workspace\POI\POI-DSL-Windows-1.16\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);
^
F:\jenkins\jenkins-home\712657a4\workspace\POI\POI-DSL-Windows-1.16\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);
^
F:\jenkins\jenkins-home\712657a4\workspace\POI\POI-DSL-Windows-1.16\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);
^
F:\jenkins\jenkins-home\712657a4\workspace\POI\POI-DSL-Windows-1.16\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);
^
F:\jenkins\jenkins-home\712657a4\workspace\POI\POI-DSL-Windows-1.16\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);
^
F:\jenkins\jenkins-home\712657a4\workspace\POI\POI-DSL-Windows-1.16\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);
^
F:\jenkins\jenkins-home\712657a4\workspace\POI\POI-DSL-Windows-1.16\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);
^
F:\jenkins\jenkins-home\712657a4\workspace\POI\POI-DSL-Windows-1.16\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);
^
F:\jenkins\jenkins-home\712657a4\workspace\POI\POI-DSL-Windows-1.16\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);
^
F:\jenkins\jenkins-home\712657a4\workspace\POI\POI-DSL-Windows-1.16\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);
 ^
F:\jenkins\jenkins-home\712657a4\workspace\POI\POI-DSL-Windows-1.16\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));

   ^
F:\jenkins\jenkins-home\712657a4\workspace\POI\POI-DSL-Windows-1.16\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 UP-TO-DATE
> Task :poi:processTestResources
> Task :poi:testClasses
> Task :poi:testJar
> Task :poi-integration:compileJava NO-SOURCE
> Task 

[jira] [Commented] (XMLBEANS-575) scomp documentation still indicates deprecated -javasource option

2021-10-13 Thread PJ Fanning (Jira)


[ 
https://issues.apache.org/jira/browse/XMLBEANS-575?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17428502#comment-17428502
 ] 

PJ Fanning commented on XMLBEANS-575:
-

Thanks - updated docs

> scomp documentation still indicates deprecated -javasource option
> -
>
> Key: XMLBEANS-575
> URL: https://issues.apache.org/jira/browse/XMLBEANS-575
> Project: XMLBeans
>  Issue Type: Improvement
>  Components: Compiler
>Affects Versions: Version 4.0.0
>Reporter: Nathan Williams
>Assignee: PJ Fanning
>Priority: Trivial
> Fix For: Version 5.0.2
>
>
> It looks like the {{-javasource}} option to SchemaCompiler (scomp) was 
> removed as of XmlBeans 4, but there are still documentation pages referring 
> to it.
> [https://xmlbeans.apache.org/docs/4.0.0/guide/tools.html#scomp]
> [https://xmlbeans.apache.org/guide/Tools.html#scomp]
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: dev-unsubscr...@poi.apache.org
For additional commands, e-mail: dev-h...@poi.apache.org



[jira] [Updated] (XMLBEANS-575) scomp documentation still indicates deprecated -javasource option

2021-10-13 Thread PJ Fanning (Jira)


 [ 
https://issues.apache.org/jira/browse/XMLBEANS-575?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

PJ Fanning updated XMLBEANS-575:

Fix Version/s: Version 5.0.2

> scomp documentation still indicates deprecated -javasource option
> -
>
> Key: XMLBEANS-575
> URL: https://issues.apache.org/jira/browse/XMLBEANS-575
> Project: XMLBeans
>  Issue Type: Improvement
>  Components: Compiler
>Affects Versions: Version 4.0.0
>Reporter: Nathan Williams
>Priority: Trivial
> Fix For: Version 5.0.2
>
>
> It looks like the {{-javasource}} option to SchemaCompiler (scomp) was 
> removed as of XmlBeans 4, but there are still documentation pages referring 
> to it.
> [https://xmlbeans.apache.org/docs/4.0.0/guide/tools.html#scomp]
> [https://xmlbeans.apache.org/guide/Tools.html#scomp]
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: dev-unsubscr...@poi.apache.org
For additional commands, e-mail: dev-h...@poi.apache.org



[jira] [Resolved] (XMLBEANS-575) scomp documentation still indicates deprecated -javasource option

2021-10-13 Thread PJ Fanning (Jira)


 [ 
https://issues.apache.org/jira/browse/XMLBEANS-575?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

PJ Fanning resolved XMLBEANS-575.
-
Resolution: Fixed

> scomp documentation still indicates deprecated -javasource option
> -
>
> Key: XMLBEANS-575
> URL: https://issues.apache.org/jira/browse/XMLBEANS-575
> Project: XMLBeans
>  Issue Type: Improvement
>  Components: Compiler
>Affects Versions: Version 4.0.0
>Reporter: Nathan Williams
>Assignee: PJ Fanning
>Priority: Trivial
> Fix For: Version 5.0.2
>
>
> It looks like the {{-javasource}} option to SchemaCompiler (scomp) was 
> removed as of XmlBeans 4, but there are still documentation pages referring 
> to it.
> [https://xmlbeans.apache.org/docs/4.0.0/guide/tools.html#scomp]
> [https://xmlbeans.apache.org/guide/Tools.html#scomp]
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: dev-unsubscr...@poi.apache.org
For additional commands, e-mail: dev-h...@poi.apache.org



[jira] [Assigned] (XMLBEANS-575) scomp documentation still indicates deprecated -javasource option

2021-10-13 Thread PJ Fanning (Jira)


 [ 
https://issues.apache.org/jira/browse/XMLBEANS-575?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

PJ Fanning reassigned XMLBEANS-575:
---

Assignee: PJ Fanning

> scomp documentation still indicates deprecated -javasource option
> -
>
> Key: XMLBEANS-575
> URL: https://issues.apache.org/jira/browse/XMLBEANS-575
> Project: XMLBeans
>  Issue Type: Improvement
>  Components: Compiler
>Affects Versions: Version 4.0.0
>Reporter: Nathan Williams
>Assignee: PJ Fanning
>Priority: Trivial
> Fix For: Version 5.0.2
>
>
> It looks like the {{-javasource}} option to SchemaCompiler (scomp) was 
> removed as of XmlBeans 4, but there are still documentation pages referring 
> to it.
> [https://xmlbeans.apache.org/docs/4.0.0/guide/tools.html#scomp]
> [https://xmlbeans.apache.org/guide/Tools.html#scomp]
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: dev-unsubscr...@poi.apache.org
For additional commands, e-mail: dev-h...@poi.apache.org



Jenkins build is back to normal : POI » POI-DSL-Windows-1.16 #285

2021-10-13 Thread Apache Jenkins Server
See 



-
To unsubscribe, e-mail: dev-unsubscr...@poi.apache.org
For additional commands, e-mail: dev-h...@poi.apache.org



[VOTE] Apache XmlBeans 5.0.2 release (RC1)

2021-10-13 Thread PJ Fanning
Hi *,

I've prepared artifacts for the release of Apache XmlBeans 5.0.2 (RC1).

The most notable changes in this release are:

* When generating Java code, there is a wrong reference to java.util.Object[]
* support disallow-doctype-decl setting on XML parser
* Fix issue where you can get a StackOverflowError when parsing a large number 
of characters in an XML element


A full list of changes is available in the change log:
https://issues.apache.org/jira/projects/XMLBEANS/versions/12350390

The artifacts are at:
https://dist.apache.org/repos/dist/release/poi/xmlbeans/dev/

You can use this maven URL for your mvn/gradle builds:
https://dist.apache.org/repos/dist/release/poi/xmlbeans/dev/maven




I haven't updated the "provided" dependencies as those have to be activated 
anyway explicitly.

Please vote to release the artifacts.
The vote keeps open until 2021-10-20 23:00 UTC.
Planned release announcement date is Friday, 2021-10-22.

Here is my +1

PJ


-
To unsubscribe, e-mail: dev-unsubscr...@poi.apache.org
For additional commands, e-mail: dev-h...@poi.apache.org



[Bug 63812] WMF should throw more informative exception on corrupt WMF

2021-10-13 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=63812

Andreas Beeker  changed:

   What|Removed |Added

 OS|Linux   |All
  Component|POI Overall |HSLF
   Hardware|PC  |All

-- 
You are receiving this mail because:
You are the assignee for the bug.
-
To unsubscribe, e-mail: dev-unsubscr...@poi.apache.org
For additional commands, e-mail: dev-h...@poi.apache.org



[jira] [Created] (XMLBEANS-575) scomp documentation still indicates deprecated -javasource option

2021-10-13 Thread Nathan Williams (Jira)
Nathan Williams created XMLBEANS-575:


 Summary: scomp documentation still indicates deprecated 
-javasource option
 Key: XMLBEANS-575
 URL: https://issues.apache.org/jira/browse/XMLBEANS-575
 Project: XMLBeans
  Issue Type: Improvement
  Components: Compiler
Affects Versions: Version 4.0.0
Reporter: Nathan Williams


It looks like the {{-javasource}} option to SchemaCompiler (scomp) was removed 
as of XmlBeans 4, but there are still documentation pages referring to it.

[https://xmlbeans.apache.org/docs/4.0.0/guide/tools.html#scomp]

[https://xmlbeans.apache.org/guide/Tools.html#scomp]

 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: dev-unsubscr...@poi.apache.org
For additional commands, e-mail: dev-h...@poi.apache.org



Re: XMLBeans 5.0.2 release

2021-10-13 Thread Dominik Stadler
Yes, thanks for all the work! Go for it!

Dominik.

On Wed, Oct 13, 2021 at 7:57 PM Andreas Beeker  wrote:

> Hi PJ;
>
> thank you for all the work you've put in the last months - actually
> unbelievable.
> I think it's good, if someone else gives releasing also a try - so +1 from
> me.
> As I made a mistake last time - please make sure to use JDK 8 for the
> build.
>
> Andi
>
>
> On 13.10.21 15:29, PJ Fanning wrote:
> > I don't think this blocks a release of POI 5.1.0. There are still a few
> fixes in XMLBeans trunk awaiting release. I can prepare a XMLBeans
> 5.0.2-RC1 if people think this is a good idea.
> >
> >
> https://issues.apache.org/jira/browse/XMLBEANS-572?jql=project%20%3D%20XMLBEANS%20AND%20fixVersion%20%3D%20%22Version%205.0.2%22
> >
> > -
> > To unsubscribe, e-mail: dev-unsubscr...@poi.apache.org
> > For additional commands, e-mail: dev-h...@poi.apache.org
> >
>
>
> -
> To unsubscribe, e-mail: dev-unsubscr...@poi.apache.org
> For additional commands, e-mail: dev-h...@poi.apache.org
>
>


Build failed in Jenkins: POI » POI-DSL-Windows-1.16 #284

2021-10-13 Thread Apache Jenkins Server
See 


Changes:

[PJ Fanning] [bug-65042] support saving package part data in temp files


--
[...truncated 24.90 KB...]
> Task :poi-examples:jar

> Task :poi:compileTestJava
F:\jenkins\jenkins-home\712657a4\workspace\POI\POI-DSL-Windows-1.16\poi\src\test\java\org\apache\poi\hssf\record\TestFormulaRecord.java:89:
 warning: [deprecation] getCode() in CellType has been deprecated
assertEquals(CellType.ERROR.getCode(), record.getCachedResultType());
   ^
F:\jenkins\jenkins-home\712657a4\workspace\POI\POI-DSL-Windows-1.16\poi\src\test\java\org\apache\poi\hssf\record\TestFormulaRecord.java:89:
 warning: [deprecation] getCachedResultType() in FormulaRecord has been 
deprecated
assertEquals(CellType.ERROR.getCode(), record.getCachedResultType());
 ^
F:\jenkins\jenkins-home\712657a4\workspace\POI\POI-DSL-Windows-1.16\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);
^
F:\jenkins\jenkins-home\712657a4\workspace\POI\POI-DSL-Windows-1.16\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);
^
F:\jenkins\jenkins-home\712657a4\workspace\POI\POI-DSL-Windows-1.16\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);
^
F:\jenkins\jenkins-home\712657a4\workspace\POI\POI-DSL-Windows-1.16\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);
^
F:\jenkins\jenkins-home\712657a4\workspace\POI\POI-DSL-Windows-1.16\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);
^
F:\jenkins\jenkins-home\712657a4\workspace\POI\POI-DSL-Windows-1.16\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);
^
F:\jenkins\jenkins-home\712657a4\workspace\POI\POI-DSL-Windows-1.16\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);
^
F:\jenkins\jenkins-home\712657a4\workspace\POI\POI-DSL-Windows-1.16\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);
^
F:\jenkins\jenkins-home\712657a4\workspace\POI\POI-DSL-Windows-1.16\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);
^
F:\jenkins\jenkins-home\712657a4\workspace\POI\POI-DSL-Windows-1.16\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);
^
F:\jenkins\jenkins-home\712657a4\workspace\POI\POI-DSL-Windows-1.16\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);
 ^
F:\jenkins\jenkins-home\712657a4\workspace\POI\POI-DSL-Windows-1.16\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));

   ^
F:\jenkins\jenkins-home\712657a4\workspace\POI\POI-DSL-Windows-1.16\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 UP-TO-DATE
> Task :poi:processTestResources
> Task :poi:testClasses
> Task :poi:testJar
> Task :poi-integration:compileJava NO-SOURCE
> 

[Bug 65042] Adding pictures to workbook causes memory leak

2021-10-13 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=65042

--- Comment #7 from PJ Fanning  ---
I added r1894203 - still experimental/beta - needs testing still - may be
removed or modified

-- 
You are receiving this mail because:
You are the assignee for the bug.
-
To unsubscribe, e-mail: dev-unsubscr...@poi.apache.org
For additional commands, e-mail: dev-h...@poi.apache.org



Re: XMLBeans 5.0.2 release

2021-10-13 Thread Andreas Beeker

Hi PJ;

thank you for all the work you've put in the last months - actually 
unbelievable.
I think it's good, if someone else gives releasing also a try - so +1 from me.
As I made a mistake last time - please make sure to use JDK 8 for the build.

Andi


On 13.10.21 15:29, PJ Fanning wrote:

I don't think this blocks a release of POI 5.1.0. There are still a few fixes 
in XMLBeans trunk awaiting release. I can prepare a XMLBeans 5.0.2-RC1 if 
people think this is a good idea.

https://issues.apache.org/jira/browse/XMLBEANS-572?jql=project%20%3D%20XMLBEANS%20AND%20fixVersion%20%3D%20%22Version%205.0.2%22

-
To unsubscribe, e-mail: dev-unsubscr...@poi.apache.org
For additional commands, e-mail: dev-h...@poi.apache.org




-
To unsubscribe, e-mail: dev-unsubscr...@poi.apache.org
For additional commands, e-mail: dev-h...@poi.apache.org



Build failed in Jenkins: POI » POI-DSL-Windows-1.16 #283

2021-10-13 Thread Apache Jenkins Server
See 


Changes:

[PJ Fanning] javadoc


--
[...truncated 24.30 KB...]
> Task :poi-examples:jar

> Task :poi:compileTestJava
F:\jenkins\jenkins-home\712657a4\workspace\POI\POI-DSL-Windows-1.16\poi\src\test\java\org\apache\poi\hssf\record\TestFormulaRecord.java:89:
 warning: [deprecation] getCode() in CellType has been deprecated
assertEquals(CellType.ERROR.getCode(), record.getCachedResultType());
   ^
F:\jenkins\jenkins-home\712657a4\workspace\POI\POI-DSL-Windows-1.16\poi\src\test\java\org\apache\poi\hssf\record\TestFormulaRecord.java:89:
 warning: [deprecation] getCachedResultType() in FormulaRecord has been 
deprecated
assertEquals(CellType.ERROR.getCode(), record.getCachedResultType());
 ^
F:\jenkins\jenkins-home\712657a4\workspace\POI\POI-DSL-Windows-1.16\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);
^
F:\jenkins\jenkins-home\712657a4\workspace\POI\POI-DSL-Windows-1.16\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);
^
F:\jenkins\jenkins-home\712657a4\workspace\POI\POI-DSL-Windows-1.16\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);
^
F:\jenkins\jenkins-home\712657a4\workspace\POI\POI-DSL-Windows-1.16\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);
^
F:\jenkins\jenkins-home\712657a4\workspace\POI\POI-DSL-Windows-1.16\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);
^
F:\jenkins\jenkins-home\712657a4\workspace\POI\POI-DSL-Windows-1.16\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);
^
F:\jenkins\jenkins-home\712657a4\workspace\POI\POI-DSL-Windows-1.16\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);
^
F:\jenkins\jenkins-home\712657a4\workspace\POI\POI-DSL-Windows-1.16\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);
^
F:\jenkins\jenkins-home\712657a4\workspace\POI\POI-DSL-Windows-1.16\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);
^
F:\jenkins\jenkins-home\712657a4\workspace\POI\POI-DSL-Windows-1.16\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);
^
F:\jenkins\jenkins-home\712657a4\workspace\POI\POI-DSL-Windows-1.16\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);
 ^
F:\jenkins\jenkins-home\712657a4\workspace\POI\POI-DSL-Windows-1.16\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));

   ^
F:\jenkins\jenkins-home\712657a4\workspace\POI\POI-DSL-Windows-1.16\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 UP-TO-DATE
> Task :poi:processTestResources
> Task :poi:testClasses
> Task :poi:testJar
> Task :poi-integration:compileJava NO-SOURCE
> Task :poi-integration:processResources NO-SOURCE
> 

Build failed in Jenkins: POI » POI-DSL-Windows-1.16 #282

2021-10-13 Thread Apache Jenkins Server
See 


Changes:

[PJ Fanning] javadoc


--
[...truncated 28.13 KB...]
> Task :poi-examples:jar

> Task :poi:compileTestJava
F:\jenkins\jenkins-home\712657a4\workspace\POI\POI-DSL-Windows-1.16\poi\src\test\java\org\apache\poi\hssf\record\TestFormulaRecord.java:89:
 warning: [deprecation] getCode() in CellType has been deprecated
assertEquals(CellType.ERROR.getCode(), record.getCachedResultType());
   ^
F:\jenkins\jenkins-home\712657a4\workspace\POI\POI-DSL-Windows-1.16\poi\src\test\java\org\apache\poi\hssf\record\TestFormulaRecord.java:89:
 warning: [deprecation] getCachedResultType() in FormulaRecord has been 
deprecated
assertEquals(CellType.ERROR.getCode(), record.getCachedResultType());
 ^
F:\jenkins\jenkins-home\712657a4\workspace\POI\POI-DSL-Windows-1.16\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);
^
F:\jenkins\jenkins-home\712657a4\workspace\POI\POI-DSL-Windows-1.16\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);
^
F:\jenkins\jenkins-home\712657a4\workspace\POI\POI-DSL-Windows-1.16\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);
^
F:\jenkins\jenkins-home\712657a4\workspace\POI\POI-DSL-Windows-1.16\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);
^
F:\jenkins\jenkins-home\712657a4\workspace\POI\POI-DSL-Windows-1.16\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);
^
F:\jenkins\jenkins-home\712657a4\workspace\POI\POI-DSL-Windows-1.16\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);
^
F:\jenkins\jenkins-home\712657a4\workspace\POI\POI-DSL-Windows-1.16\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);
^
F:\jenkins\jenkins-home\712657a4\workspace\POI\POI-DSL-Windows-1.16\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);
^
F:\jenkins\jenkins-home\712657a4\workspace\POI\POI-DSL-Windows-1.16\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);
^
F:\jenkins\jenkins-home\712657a4\workspace\POI\POI-DSL-Windows-1.16\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);
^
F:\jenkins\jenkins-home\712657a4\workspace\POI\POI-DSL-Windows-1.16\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);
 ^
F:\jenkins\jenkins-home\712657a4\workspace\POI\POI-DSL-Windows-1.16\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));

   ^
F:\jenkins\jenkins-home\712657a4\workspace\POI\POI-DSL-Windows-1.16\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:processTestResources
> Task :poi:testClasses
> Task :poi:testJar
> Task :poi-integration:compileJava NO-SOURCE
> Task :poi-integration:processResources NO-SOURCE
> Task 

[Bug 65042] Adding pictures to workbook causes memory leak

2021-10-13 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=65042

--- Comment #6 from PJ Fanning  ---
I think the issue is that we don't have a TempFilePackagePart that can
optionally be used instead of MemoryPackagePart.
https://poi.apache.org/apidocs/dev/org/apache/poi/openxml4j/opc/ZipPackage.html#createPartImpl-org.apache.poi.openxml4j.opc.PackagePartName-java.lang.String-boolean-

This would allow us to avoid using memory (while slowing things down by using
temp files).

The other issue is how to configure the code so that it can choose whether to
use MemoryPackagePart or TempFilePackagePart.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-
To unsubscribe, e-mail: dev-unsubscr...@poi.apache.org
For additional commands, e-mail: dev-h...@poi.apache.org



[Bug 58779] Closing an XSSFWorkbook or XSLFSlideShow that was opened with File instead of FileInputStream modifies the file

2021-10-13 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=58779

PJ Fanning  changed:

   What|Removed |Added

 CC||grigorie...@netcracker.com

--- Comment #5 from PJ Fanning  ---
*** Bug 65077 has been marked as a duplicate of this bug. ***

-- 
You are receiving this mail because:
You are the assignee for the bug.
-
To unsubscribe, e-mail: dev-unsubscr...@poi.apache.org
For additional commands, e-mail: dev-h...@poi.apache.org



[Bug 65077] Workbook.close() clears the second (the last) sheet data in previously saved file

2021-10-13 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=65077

PJ Fanning  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |DUPLICATE

--- Comment #3 from PJ Fanning  ---


*** This bug has been marked as a duplicate of bug 58779 ***

-- 
You are receiving this mail because:
You are the assignee for the bug.
-
To unsubscribe, e-mail: dev-unsubscr...@poi.apache.org
For additional commands, e-mail: dev-h...@poi.apache.org



[jira] [Commented] (XMLBEANS-266) javax.xml.stream.XMLStreamException: problem accessing the parser

2021-10-13 Thread PJ Fanning (Jira)


[ 
https://issues.apache.org/jira/browse/XMLBEANS-266?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17428245#comment-17428245
 ] 

PJ Fanning commented on XMLBEANS-266:
-

I'm going to close this as it so old and the test case is pretty complicated.

> javax.xml.stream.XMLStreamException: problem accessing the parser
> -
>
> Key: XMLBEANS-266
> URL: https://issues.apache.org/jira/browse/XMLBEANS-266
> Project: XMLBeans
>  Issue Type: Bug
>  Components: Binding
>Affects Versions: Version 2.1
> Environment: Windows XP, Eclipse w/ MyEclipse plugin, Tomcat
>Reporter: Wesley King
>Priority: Major
>
> I have an soap message receiver class that extends 
> AbstractInOutSyncMessageReceiver.  I use this class to handle my web service 
> requests.  Inside the invokeBusinessLogic(MessageContext, MessageContext) 
> method, I am attempting to parse the envelope header first and then the body. 
>  The header contains an element called MultiSpeakMsgHeader and the body 
> contains an element called PingURL.  All the XML objects were created using 
> XMLBeans.  The web service works fine if I only attempt to parse the body's 
> first element creating the PingURLDocument.  If I try to parse the header's 
> first element creating the MultiSpeakMsgHeaderDocument, that works fine, but 
> right afterwards if I try to parse the body's first element I get an 
> exception: XMLStreamException: problem accessing parser.
> Am I doing something wrong?  If so, any help would be appreciated.  If not, 
> is this a known bug/issue?  And is there a work around?  Also I wasn't sure 
> if this is the right place to submit questions.  What is the normal procedure 
> for submitting questions or possible bugs?
> Include below are three files that may or may not be helpfull.  (1) The 
> AbstractInOutSyncMessageReceiver java file.  (2) The skeleton java file that 
> handles the service.  And (3) the xml I'm sending to the server.  As I 
> mentioned above, everything works fine if I don't attempt to read the header. 
>  As a side note, the reason I need to read the header is to check for a valid 
> user id and password.  If there is another way to check/validate header 
> information, I'm open to suggestions.
> =
> =
> (3) XML Request being sent
> ---
> 
> http://schemas.xmlsoap.org/soap/envelope; />
>   
>  xmlns="http://www.multispeak.org/Version_3.0; />
>   
>   
> http://www.multispeak.org/Version_3.0; />
>   
> 
> =
> =
> =
> =
> (2) Java class to handle request
> 
> package com.daffron.multispeak;
> import java.lang.reflect.Method;
> import java.util.Calendar;
> import java.util.GregorianCalendar;
> import org.apache.xmlbeans.XmlObject;
> import org.multispeak.version30.*;
> public class MultispeakSoapSkeleton {
>   public PingURLResponseDocument PingURL(PingURLDocument requestDoc) {
>   PingURLResponseDocument pingURLRespDoc = null;
>   try {
>   pingURLRespDoc = (PingURLResponseDocument) 
> getReturnObject(PingURLResponseDocument.class);
>   }
>   catch (Exception e) {
>   System.out.println("Failed to create return object for 
> PingURL request.");
>   }
>   if (pingURLRespDoc != null) {
>   pingURLRespDoc.addNewPingURLResponse();
>   }
>   return pingURLRespDoc;
>   }
>   protected XmlObject getReturnObject(Class type) throws Exception {
>   Method creatorMethod = null;
>   if (XmlObject.class.isAssignableFrom(type)) {
>   Class[] declaredClasses = type.getDeclaredClasses();
>   for (int i = 0; i < declaredClasses.length; i++) {
>   Class declaredClass = declaredClasses[i];
>   if 
> (declaredClass.getName().endsWith("$Factory")) {
>   creatorMethod = 
> declaredClass.getMethod("newInstance", null);
>   break;
>   }
>   }
>   }
>   if (creatorMethod != null) {
>   return (XmlObject) creatorMethod.invoke(null, null);
>   }
>   else {
>   throw new Exception("Creator not found!");
>   }
>   }
> }
> =
> =
> =
> 

[jira] [Closed] (XMLBEANS-266) javax.xml.stream.XMLStreamException: problem accessing the parser

2021-10-13 Thread PJ Fanning (Jira)


 [ 
https://issues.apache.org/jira/browse/XMLBEANS-266?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

PJ Fanning closed XMLBEANS-266.
---
Resolution: Won't Fix

> javax.xml.stream.XMLStreamException: problem accessing the parser
> -
>
> Key: XMLBEANS-266
> URL: https://issues.apache.org/jira/browse/XMLBEANS-266
> Project: XMLBeans
>  Issue Type: Bug
>  Components: Binding
>Affects Versions: Version 2.1
> Environment: Windows XP, Eclipse w/ MyEclipse plugin, Tomcat
>Reporter: Wesley King
>Priority: Major
>
> I have an soap message receiver class that extends 
> AbstractInOutSyncMessageReceiver.  I use this class to handle my web service 
> requests.  Inside the invokeBusinessLogic(MessageContext, MessageContext) 
> method, I am attempting to parse the envelope header first and then the body. 
>  The header contains an element called MultiSpeakMsgHeader and the body 
> contains an element called PingURL.  All the XML objects were created using 
> XMLBeans.  The web service works fine if I only attempt to parse the body's 
> first element creating the PingURLDocument.  If I try to parse the header's 
> first element creating the MultiSpeakMsgHeaderDocument, that works fine, but 
> right afterwards if I try to parse the body's first element I get an 
> exception: XMLStreamException: problem accessing parser.
> Am I doing something wrong?  If so, any help would be appreciated.  If not, 
> is this a known bug/issue?  And is there a work around?  Also I wasn't sure 
> if this is the right place to submit questions.  What is the normal procedure 
> for submitting questions or possible bugs?
> Include below are three files that may or may not be helpfull.  (1) The 
> AbstractInOutSyncMessageReceiver java file.  (2) The skeleton java file that 
> handles the service.  And (3) the xml I'm sending to the server.  As I 
> mentioned above, everything works fine if I don't attempt to read the header. 
>  As a side note, the reason I need to read the header is to check for a valid 
> user id and password.  If there is another way to check/validate header 
> information, I'm open to suggestions.
> =
> =
> (3) XML Request being sent
> ---
> 
> http://schemas.xmlsoap.org/soap/envelope; />
>   
>  xmlns="http://www.multispeak.org/Version_3.0; />
>   
>   
> http://www.multispeak.org/Version_3.0; />
>   
> 
> =
> =
> =
> =
> (2) Java class to handle request
> 
> package com.daffron.multispeak;
> import java.lang.reflect.Method;
> import java.util.Calendar;
> import java.util.GregorianCalendar;
> import org.apache.xmlbeans.XmlObject;
> import org.multispeak.version30.*;
> public class MultispeakSoapSkeleton {
>   public PingURLResponseDocument PingURL(PingURLDocument requestDoc) {
>   PingURLResponseDocument pingURLRespDoc = null;
>   try {
>   pingURLRespDoc = (PingURLResponseDocument) 
> getReturnObject(PingURLResponseDocument.class);
>   }
>   catch (Exception e) {
>   System.out.println("Failed to create return object for 
> PingURL request.");
>   }
>   if (pingURLRespDoc != null) {
>   pingURLRespDoc.addNewPingURLResponse();
>   }
>   return pingURLRespDoc;
>   }
>   protected XmlObject getReturnObject(Class type) throws Exception {
>   Method creatorMethod = null;
>   if (XmlObject.class.isAssignableFrom(type)) {
>   Class[] declaredClasses = type.getDeclaredClasses();
>   for (int i = 0; i < declaredClasses.length; i++) {
>   Class declaredClass = declaredClasses[i];
>   if 
> (declaredClass.getName().endsWith("$Factory")) {
>   creatorMethod = 
> declaredClass.getMethod("newInstance", null);
>   break;
>   }
>   }
>   }
>   if (creatorMethod != null) {
>   return (XmlObject) creatorMethod.invoke(null, null);
>   }
>   else {
>   throw new Exception("Creator not found!");
>   }
>   }
> }
> =
> =
> =
> =
> (1) AbstractInOutSyncMessageReceiver java file
> 

[jira] [Commented] (XMLBEANS-574) SCOMP bin not able to generate source code

2021-10-13 Thread PJ Fanning (Jira)


[ 
https://issues.apache.org/jira/browse/XMLBEANS-574?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17428241#comment-17428241
 ] 

PJ Fanning commented on XMLBEANS-574:
-

One possible enhancement would be to support a new structure in xsdconfig 
([https://cwiki.apache.org/confluence/display/xmlbeans/XsdConfigFile)] that 
supports controlling the names of generated methods.

> SCOMP bin not able to generate source code
> --
>
> Key: XMLBEANS-574
> URL: https://issues.apache.org/jira/browse/XMLBEANS-574
> Project: XMLBeans
>  Issue Type: Bug
>  Components: Tools
>Affects Versions: Version 5.0.1
> Environment: Ubuntu 20.04 LTS, jdk 11
>Reporter: Marco C.
>Priority: Major
> Fix For: unspecified
>
>
> SCENARIO: Using scomp bin to generate xml model, it goes on error due to xsd 
> node label.
> DETAIL: if there are a node labeled "dummyList" and its child is an array of  
> "dummy", scomp will try to build two methods labeled "dummyList" generating a 
> java error.
> To try this bug, it's possibile to use this command:
> scomp -out airquality.jar 
> [http://dd.eionet.europa.eu/schemas/id2011850eu-1.0/AirQualityReporting.xsd]
>  
> The XSD is public and free to access
>  
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: dev-unsubscr...@poi.apache.org
For additional commands, e-mail: dev-h...@poi.apache.org



Jenkins build is back to normal : POI » POI-DSL-1.17 #33

2021-10-13 Thread Apache Jenkins Server
See 



-
To unsubscribe, e-mail: dev-unsubscr...@poi.apache.org
For additional commands, e-mail: dev-h...@poi.apache.org



XMLBeans 5.0.2 release

2021-10-13 Thread PJ Fanning
I don't think this blocks a release of POI 5.1.0. There are still a few fixes 
in XMLBeans trunk awaiting release. I can prepare a XMLBeans 5.0.2-RC1 if 
people think this is a good idea.

https://issues.apache.org/jira/browse/XMLBEANS-572?jql=project%20%3D%20XMLBEANS%20AND%20fixVersion%20%3D%20%22Version%205.0.2%22

-
To unsubscribe, e-mail: dev-unsubscr...@poi.apache.org
For additional commands, e-mail: dev-h...@poi.apache.org



[jira] [Closed] (XMLBEANS-572) When generating Java code, there is a wrong reference to java.util.Object

2021-10-13 Thread PJ Fanning (Jira)


 [ 
https://issues.apache.org/jira/browse/XMLBEANS-572?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

PJ Fanning closed XMLBEANS-572.
---
Resolution: Fixed

> When generating Java code, there is a wrong reference to java.util.Object
> -
>
> Key: XMLBEANS-572
> URL: https://issues.apache.org/jira/browse/XMLBEANS-572
> Project: XMLBeans
>  Issue Type: Bug
>  Components: Compiler
>Affects Versions: Version 5.0.1
>Reporter: Fernando
>Priority: Major
> Fix For: Version 5.0.2
>
> Attachments: test.xsd
>
>  Time Spent: 20m
>  Remaining Estimate: 0h
>
> In this line of code: 
> [SchemaTypeCodePrinter|https://github.com/apache/xmlbeans/blob/trunk/src/main/java/org/apache/xmlbeans/impl/schema/SchemaTypeCodePrinter.java#L1240]
> When generating code, the unexistent java.util.Object class is referenced, 
> instead of the java.lang.Object.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: dev-unsubscr...@poi.apache.org
For additional commands, e-mail: dev-h...@poi.apache.org



[jira] [Commented] (XMLBEANS-572) When generating Java code, there is a wrong reference to java.util.Object

2021-10-13 Thread PJ Fanning (Jira)


[ 
https://issues.apache.org/jira/browse/XMLBEANS-572?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17428214#comment-17428214
 ] 

PJ Fanning commented on XMLBEANS-572:
-

Thanks [~farbeizaenverus] - I committed your xsd - the ant build generates the 
source for the xsd and compiles it - I don't verify anything but the build will 
fail if the generated source won't compile

> When generating Java code, there is a wrong reference to java.util.Object
> -
>
> Key: XMLBEANS-572
> URL: https://issues.apache.org/jira/browse/XMLBEANS-572
> Project: XMLBeans
>  Issue Type: Bug
>  Components: Compiler
>Affects Versions: Version 5.0.1
>Reporter: Fernando
>Priority: Major
> Fix For: Version 5.0.2
>
> Attachments: test.xsd
>
>  Time Spent: 20m
>  Remaining Estimate: 0h
>
> In this line of code: 
> [SchemaTypeCodePrinter|https://github.com/apache/xmlbeans/blob/trunk/src/main/java/org/apache/xmlbeans/impl/schema/SchemaTypeCodePrinter.java#L1240]
> When generating code, the unexistent java.util.Object class is referenced, 
> instead of the java.lang.Object.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: dev-unsubscr...@poi.apache.org
For additional commands, e-mail: dev-h...@poi.apache.org



[jira] [Commented] (XMLBEANS-574) SCOMP bin not able to generate source code

2021-10-13 Thread PJ Fanning (Jira)


[ 
https://issues.apache.org/jira/browse/XMLBEANS-574?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17428192#comment-17428192
 ] 

PJ Fanning commented on XMLBEANS-574:
-

[~mcosta_ISPRA] there are not many maintainers of XMLBeans - and releases are 
infrequent - with issues like this, you might just need to accept that certain 
schemas will need to be adjusted to work out limitations in XMLBeans - if this 
is a regression from an older version, we are more likely to fix it but 
changing XMLBeans behaviour typically upsets more people than it pleases

Feel free to submit a patch if you feel strongly that this should be fixed.

There are alternatives like JAXB too.

> SCOMP bin not able to generate source code
> --
>
> Key: XMLBEANS-574
> URL: https://issues.apache.org/jira/browse/XMLBEANS-574
> Project: XMLBeans
>  Issue Type: Bug
>  Components: Tools
>Affects Versions: Version 5.0.1
> Environment: Ubuntu 20.04 LTS, jdk 11
>Reporter: Marco C.
>Priority: Major
> Fix For: unspecified
>
>
> SCENARIO: Using scomp bin to generate xml model, it goes on error due to xsd 
> node label.
> DETAIL: if there are a node labeled "dummyList" and its child is an array of  
> "dummy", scomp will try to build two methods labeled "dummyList" generating a 
> java error.
> To try this bug, it's possibile to use this command:
> scomp -out airquality.jar 
> [http://dd.eionet.europa.eu/schemas/id2011850eu-1.0/AirQualityReporting.xsd]
>  
> The XSD is public and free to access
>  
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: dev-unsubscr...@poi.apache.org
For additional commands, e-mail: dev-h...@poi.apache.org



[jira] [Comment Edited] (XMLBEANS-574) SCOMP bin not able to generate source code

2021-10-13 Thread PJ Fanning (Jira)


[ 
https://issues.apache.org/jira/browse/XMLBEANS-574?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17428192#comment-17428192
 ] 

PJ Fanning edited comment on XMLBEANS-574 at 10/13/21, 12:52 PM:
-

[~mcosta_ISPRA] there are not many maintainers of XMLBeans - and releases are 
infrequent - with issues like this, you might just need to accept that certain 
schemas will need to be adjusted to work around limitations in XMLBeans - if 
this is a regression from an older version, we are more likely to fix it but 
changing XMLBeans behaviour typically upsets more people than it pleases

Feel free to submit a patch if you feel strongly that this should be fixed.

There are alternatives like JAXB too.


was (Author: pj.fanning):
[~mcosta_ISPRA] there are not many maintainers of XMLBeans - and releases are 
infrequent - with issues like this, you might just need to accept that certain 
schemas will need to be adjusted to work out limitations in XMLBeans - if this 
is a regression from an older version, we are more likely to fix it but 
changing XMLBeans behaviour typically upsets more people than it pleases

Feel free to submit a patch if you feel strongly that this should be fixed.

There are alternatives like JAXB too.

> SCOMP bin not able to generate source code
> --
>
> Key: XMLBEANS-574
> URL: https://issues.apache.org/jira/browse/XMLBEANS-574
> Project: XMLBeans
>  Issue Type: Bug
>  Components: Tools
>Affects Versions: Version 5.0.1
> Environment: Ubuntu 20.04 LTS, jdk 11
>Reporter: Marco C.
>Priority: Major
> Fix For: unspecified
>
>
> SCENARIO: Using scomp bin to generate xml model, it goes on error due to xsd 
> node label.
> DETAIL: if there are a node labeled "dummyList" and its child is an array of  
> "dummy", scomp will try to build two methods labeled "dummyList" generating a 
> java error.
> To try this bug, it's possibile to use this command:
> scomp -out airquality.jar 
> [http://dd.eionet.europa.eu/schemas/id2011850eu-1.0/AirQualityReporting.xsd]
>  
> The XSD is public and free to access
>  
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: dev-unsubscr...@poi.apache.org
For additional commands, e-mail: dev-h...@poi.apache.org



[jira] [Created] (XMLBEANS-574) SCOMP bin not able to generate source code

2021-10-13 Thread Marco C. (Jira)
Marco C. created XMLBEANS-574:
-

 Summary: SCOMP bin not able to generate source code
 Key: XMLBEANS-574
 URL: https://issues.apache.org/jira/browse/XMLBEANS-574
 Project: XMLBeans
  Issue Type: Bug
  Components: Tools
Affects Versions: Version 5.0.1
 Environment: Ubuntu 20.04 LTS, jdk 11
Reporter: Marco C.
 Fix For: unspecified


SCENARIO: Using scomp bin to generate xml model, it goes on error due to xsd 
node label.

DETAIL: if there are a node labeled "dummyList" and its child is an array of  
"dummy", scomp will try to build two methods labeled "dummyList" generating a 
java error.

To try this bug, it's possibile to use this command:

scomp -out airquality.jar 
[http://dd.eionet.europa.eu/schemas/id2011850eu-1.0/AirQualityReporting.xsd]

 

The XSD is public and free to access

 

 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: dev-unsubscr...@poi.apache.org
For additional commands, e-mail: dev-h...@poi.apache.org



[jira] [Updated] (XMLBEANS-572) When generating Java code, there is a wrong reference to java.util.Object

2021-10-13 Thread Fernando (Jira)


 [ 
https://issues.apache.org/jira/browse/XMLBEANS-572?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Fernando updated XMLBEANS-572:
--
Attachment: test.xsd

> When generating Java code, there is a wrong reference to java.util.Object
> -
>
> Key: XMLBEANS-572
> URL: https://issues.apache.org/jira/browse/XMLBEANS-572
> Project: XMLBeans
>  Issue Type: Bug
>  Components: Compiler
>Affects Versions: Version 5.0.1
>Reporter: Fernando
>Priority: Major
> Fix For: Version 5.0.2
>
> Attachments: test.xsd
>
>  Time Spent: 10m
>  Remaining Estimate: 0h
>
> In this line of code: 
> [SchemaTypeCodePrinter|https://github.com/apache/xmlbeans/blob/trunk/src/main/java/org/apache/xmlbeans/impl/schema/SchemaTypeCodePrinter.java#L1240]
> When generating code, the unexistent java.util.Object class is referenced, 
> instead of the java.lang.Object.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: dev-unsubscr...@poi.apache.org
For additional commands, e-mail: dev-h...@poi.apache.org



[jira] [Commented] (XMLBEANS-572) When generating Java code, there is a wrong reference to java.util.Object

2021-10-13 Thread PJ Fanning (Jira)


[ 
https://issues.apache.org/jira/browse/XMLBEANS-572?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17428151#comment-17428151
 ] 

PJ Fanning commented on XMLBEANS-572:
-

[~farbeizaenverus] can you provide a schema?

> When generating Java code, there is a wrong reference to java.util.Object
> -
>
> Key: XMLBEANS-572
> URL: https://issues.apache.org/jira/browse/XMLBEANS-572
> Project: XMLBeans
>  Issue Type: Bug
>  Components: Compiler
>Affects Versions: Version 5.0.1
>Reporter: Fernando
>Priority: Major
> Fix For: Version 5.0.2
>
>  Time Spent: 10m
>  Remaining Estimate: 0h
>
> In this line of code: 
> [SchemaTypeCodePrinter|https://github.com/apache/xmlbeans/blob/trunk/src/main/java/org/apache/xmlbeans/impl/schema/SchemaTypeCodePrinter.java#L1240]
> When generating code, the unexistent java.util.Object class is referenced, 
> instead of the java.lang.Object.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: dev-unsubscr...@poi.apache.org
For additional commands, e-mail: dev-h...@poi.apache.org



[jira] [Commented] (XMLBEANS-573) add XmlOptions so that xmlText(XmlOptions) method can be made to output more accurate XML

2021-10-13 Thread PJ Fanning (Jira)


[ 
https://issues.apache.org/jira/browse/XMLBEANS-573?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17428149#comment-17428149
 ] 

PJ Fanning commented on XMLBEANS-573:
-

I'll leave this open for discussion but it might be hard to improve on the 
solution above (that uses 

setSaveSyntheticDocumentElement)

> add XmlOptions so that xmlText(XmlOptions) method can be made to output more 
> accurate XML
> -
>
> Key: XMLBEANS-573
> URL: https://issues.apache.org/jira/browse/XMLBEANS-573
> Project: XMLBeans
>  Issue Type: Improvement
>Affects Versions: Version 2.6, Version 4.0.0, Version 5.0.1
>Reporter: PJ Fanning
>Priority: Major
>
> See [https://bz.apache.org/bugzilla/show_bug.cgi?id=64837]
> CTText is in poi-ooxml-full/poi-ooxml-lite and is generated using XMLBeans.
>  
> {noformat}
> CTText tmpTextNode = CTText.Factory.newInstance();
>  tmpTextNode.setStringValue("A");
>  XmlOptions opts = new XmlOptions();
>  opts.setSaveOuter();
>  opts.setSaveNoXmlDecl();
>  System.out.println(tmpTextNode.xmlText(opts));{noformat}
>  This prints
> {noformat}
> A{noformat}
> It would be nice to have an XmlOptions option that allowed this to be printed 
> as
> {noformat}
>  xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main;>A{noformat}
>  
>  
> I hit a similar issue in some code I was writing and had to work around it 
> with this method
>  
> {noformat}
> static String stripXmlFragmentElement(String xml) throws IOException, 
> SAXException, ParserConfigurationException, TransformerException {
> String startTag = "xml-fragment";
> int pos = xml.indexOf(startTag);
> if (pos >= 0) {
> Document doc = 
> XMLHelper.getDocumentBuilderFactory().newDocumentBuilder().parse(new 
> InputSource(new StringReader(xml)));
> NodeList list = doc.getDocumentElement().getChildNodes();
> for (int i = 0; i < list.getLength(); i++) {
> if (list.item(i) instanceof Element) {
> try (StringWriter sw = new StringWriter()) {
> Transformer transformer = XMLHelper.newTransformer();
> 
> transformer.setOutputProperty(OutputKeys.OMIT_XML_DECLARATION, "yes");
> transformer.transform(new DOMSource(list.item(i)), new 
> StreamResult(sw));
> return sw.toString();
> }
> }
> }
> return xml.substring(pos + startTag.length());
> }
> return xml;
> }{noformat}
>  
>  
>  
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: dev-unsubscr...@poi.apache.org
For additional commands, e-mail: dev-h...@poi.apache.org



[jira] [Comment Edited] (XMLBEANS-573) add XmlOptions so that xmlText(XmlOptions) method can be made to output more accurate XML

2021-10-13 Thread PJ Fanning (Jira)


[ 
https://issues.apache.org/jira/browse/XMLBEANS-573?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17428142#comment-17428142
 ] 

PJ Fanning edited comment on XMLBEANS-573 at 10/13/21, 11:01 AM:
-

One existing workaround is: 
{noformat}
CTText tmpTextNode = CTText.Factory.newInstance();
tmpTextNode.setStringValue("A");
XmlOptions opts = new XmlOptions();
opts.setSaveSyntheticDocumentElement(new 
QName("http://schemas.openxmlformats.org/spreadsheetml/2006/main;, "text"));
opts.setSaveNoXmlDecl();
System.out.println(tmpTextNode.xmlText(opts));{noformat}
 

This prints
{noformat}
http://schemas.openxmlformats.org/spreadsheetml/2006/main;>A{noformat}
 


was (Author: pj.fanning):
One proposal would be having something like on XmlOptions.

 
{noformat}
void setSaveFragmentElementName(QName tagName){noformat}

> add XmlOptions so that xmlText(XmlOptions) method can be made to output more 
> accurate XML
> -
>
> Key: XMLBEANS-573
> URL: https://issues.apache.org/jira/browse/XMLBEANS-573
> Project: XMLBeans
>  Issue Type: Improvement
>Affects Versions: Version 2.6, Version 4.0.0, Version 5.0.1
>Reporter: PJ Fanning
>Priority: Major
>
> See [https://bz.apache.org/bugzilla/show_bug.cgi?id=64837]
> CTText is in poi-ooxml-full/poi-ooxml-lite and is generated using XMLBeans.
>  
> {noformat}
> CTText tmpTextNode = CTText.Factory.newInstance();
>  tmpTextNode.setStringValue("A");
>  XmlOptions opts = new XmlOptions();
>  opts.setSaveOuter();
>  opts.setSaveNoXmlDecl();
>  System.out.println(tmpTextNode.xmlText(opts));{noformat}
>  This prints
> {noformat}
> A{noformat}
> It would be nice to have an XmlOptions option that allowed this to be printed 
> as
> {noformat}
>  xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main;>A{noformat}
>  
>  
> I hit a similar issue in some code I was writing and had to work around it 
> with this method
>  
> {noformat}
> static String stripXmlFragmentElement(String xml) throws IOException, 
> SAXException, ParserConfigurationException, TransformerException {
> String startTag = "xml-fragment";
> int pos = xml.indexOf(startTag);
> if (pos >= 0) {
> Document doc = 
> XMLHelper.getDocumentBuilderFactory().newDocumentBuilder().parse(new 
> InputSource(new StringReader(xml)));
> NodeList list = doc.getDocumentElement().getChildNodes();
> for (int i = 0; i < list.getLength(); i++) {
> if (list.item(i) instanceof Element) {
> try (StringWriter sw = new StringWriter()) {
> Transformer transformer = XMLHelper.newTransformer();
> 
> transformer.setOutputProperty(OutputKeys.OMIT_XML_DECLARATION, "yes");
> transformer.transform(new DOMSource(list.item(i)), new 
> StreamResult(sw));
> return sw.toString();
> }
> }
> }
> return xml.substring(pos + startTag.length());
> }
> return xml;
> }{noformat}
>  
>  
>  
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: dev-unsubscr...@poi.apache.org
For additional commands, e-mail: dev-h...@poi.apache.org



[jira] [Commented] (XMLBEANS-573) add XmlOptions so that xmlText(XmlOptions) method can be made to output more accurate XML

2021-10-13 Thread PJ Fanning (Jira)


[ 
https://issues.apache.org/jira/browse/XMLBEANS-573?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17428142#comment-17428142
 ] 

PJ Fanning commented on XMLBEANS-573:
-

One proposal would be having something like on XmlOptions.

 
{noformat}
void setSaveFragmentElementName(QName tagName){noformat}

> add XmlOptions so that xmlText(XmlOptions) method can be made to output more 
> accurate XML
> -
>
> Key: XMLBEANS-573
> URL: https://issues.apache.org/jira/browse/XMLBEANS-573
> Project: XMLBeans
>  Issue Type: Improvement
>Affects Versions: Version 2.6, Version 4.0.0, Version 5.0.1
>Reporter: PJ Fanning
>Priority: Major
>
> See [https://bz.apache.org/bugzilla/show_bug.cgi?id=64837]
> CTText is in poi-ooxml-full/poi-ooxml-lite and is generated using XMLBeans.
>  
> {noformat}
> CTText tmpTextNode = CTText.Factory.newInstance();
>  tmpTextNode.setStringValue("A");
>  XmlOptions opts = new XmlOptions();
>  opts.setSaveOuter();
>  opts.setSaveNoXmlDecl();
>  System.out.println(tmpTextNode.xmlText(opts));{noformat}
>  This prints
> {noformat}
> A{noformat}
> It would be nice to have an XmlOptions option that allowed this to be printed 
> as
> {noformat}
>  xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main;>A{noformat}
>  
>  
> I hit a similar issue in some code I was writing and had to work around it 
> with this method
>  
> {noformat}
> static String stripXmlFragmentElement(String xml) throws IOException, 
> SAXException, ParserConfigurationException, TransformerException {
> String startTag = "xml-fragment";
> int pos = xml.indexOf(startTag);
> if (pos >= 0) {
> Document doc = 
> XMLHelper.getDocumentBuilderFactory().newDocumentBuilder().parse(new 
> InputSource(new StringReader(xml)));
> NodeList list = doc.getDocumentElement().getChildNodes();
> for (int i = 0; i < list.getLength(); i++) {
> if (list.item(i) instanceof Element) {
> try (StringWriter sw = new StringWriter()) {
> Transformer transformer = XMLHelper.newTransformer();
> 
> transformer.setOutputProperty(OutputKeys.OMIT_XML_DECLARATION, "yes");
> transformer.transform(new DOMSource(list.item(i)), new 
> StreamResult(sw));
> return sw.toString();
> }
> }
> }
> return xml.substring(pos + startTag.length());
> }
> return xml;
> }{noformat}
>  
>  
>  
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: dev-unsubscr...@poi.apache.org
For additional commands, e-mail: dev-h...@poi.apache.org



[jira] [Updated] (XMLBEANS-573) add XmlOptions so that xmlText(XmlOptions) method can be made to output more accurate XML

2021-10-13 Thread PJ Fanning (Jira)


 [ 
https://issues.apache.org/jira/browse/XMLBEANS-573?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

PJ Fanning updated XMLBEANS-573:

Description: 
See [https://bz.apache.org/bugzilla/show_bug.cgi?id=64837]

CTText is in poi-ooxml-full/poi-ooxml-lite and is generated using XMLBeans.

 
{noformat}
CTText tmpTextNode = CTText.Factory.newInstance();
 tmpTextNode.setStringValue("A");
 XmlOptions opts = new XmlOptions();
 opts.setSaveOuter();
 opts.setSaveNoXmlDecl();
 System.out.println(tmpTextNode.xmlText(opts));{noformat}

 This prints
{noformat}
A{noformat}
It would be nice to have an XmlOptions option that allowed this to be printed as
{noformat}
http://schemas.openxmlformats.org/spreadsheetml/2006/main;>A{noformat}
 

 

I hit a similar issue in some code I was writing and had to work around it with 
this method

 
{noformat}
static String stripXmlFragmentElement(String xml) throws IOException, 
SAXException, ParserConfigurationException, TransformerException {
String startTag = "xml-fragment";
int pos = xml.indexOf(startTag);
if (pos >= 0) {
Document doc = 
XMLHelper.getDocumentBuilderFactory().newDocumentBuilder().parse(new 
InputSource(new StringReader(xml)));
NodeList list = doc.getDocumentElement().getChildNodes();
for (int i = 0; i < list.getLength(); i++) {
if (list.item(i) instanceof Element) {
try (StringWriter sw = new StringWriter()) {
Transformer transformer = XMLHelper.newTransformer();

transformer.setOutputProperty(OutputKeys.OMIT_XML_DECLARATION, "yes");
transformer.transform(new DOMSource(list.item(i)), new 
StreamResult(sw));
return sw.toString();
}
}
}
return xml.substring(pos + startTag.length());
}
return xml;
}{noformat}
 

 

 

 

  was:
See [https://bz.apache.org/bugzilla/show_bug.cgi?id=64837]

CTText is in poi-ooxml-full/poi-ooxml-lite and is generated using XMLBeans.

 
CTText tmpTextNode = CTText.Factory.newInstance();
tmpTextNode.setStringValue("A");
XmlOptions opts = new XmlOptions();
opts.setSaveOuter();
opts.setSaveNoXmlDecl();
System.out.println(tmpTextNode.xmlText(opts));
This prints

 
{noformat}
A{noformat}
It would be nice to have an XmlOptions option that allowed this to be printed as
{noformat}
http://schemas.openxmlformats.org/spreadsheetml/2006/main;>A{noformat}
 

I hit a similar issue in some code I was writing and had to work around it with 
this method

 
{noformat}
static String stripXmlFragmentElement(String xml) throws IOException, 
SAXException, ParserConfigurationException, TransformerException {
String startTag = "xml-fragment";
int pos = xml.indexOf(startTag);
if (pos >= 0) {
Document doc = 
XMLHelper.getDocumentBuilderFactory().newDocumentBuilder().parse(new 
InputSource(new StringReader(xml)));
NodeList list = doc.getDocumentElement().getChildNodes();
for (int i = 0; i < list.getLength(); i++) {
if (list.item(i) instanceof Element) {
try (StringWriter sw = new StringWriter()) {
Transformer transformer = XMLHelper.newTransformer();

transformer.setOutputProperty(OutputKeys.OMIT_XML_DECLARATION, "yes");
transformer.transform(new DOMSource(list.item(i)), new 
StreamResult(sw));
return sw.toString();
}
}
}
return xml.substring(pos + startTag.length());
}
return xml;
}{noformat}
 

 

 

 


> add XmlOptions so that xmlText(XmlOptions) method can be made to output more 
> accurate XML
> -
>
> Key: XMLBEANS-573
> URL: https://issues.apache.org/jira/browse/XMLBEANS-573
> Project: XMLBeans
>  Issue Type: Improvement
>Affects Versions: Version 2.6, Version 4.0.0, Version 5.0.1
>Reporter: PJ Fanning
>Priority: Major
>
> See [https://bz.apache.org/bugzilla/show_bug.cgi?id=64837]
> CTText is in poi-ooxml-full/poi-ooxml-lite and is generated using XMLBeans.
>  
> {noformat}
> CTText tmpTextNode = CTText.Factory.newInstance();
>  tmpTextNode.setStringValue("A");
>  XmlOptions opts = new XmlOptions();
>  opts.setSaveOuter();
>  opts.setSaveNoXmlDecl();
>  System.out.println(tmpTextNode.xmlText(opts));{noformat}
>  This prints
> {noformat}
> A{noformat}
> It would be nice to have an XmlOptions option that allowed this to be printed 
> as
> {noformat}
>  xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main;>A{noformat}
>  
>  
> I hit a similar issue in some code I was writing and had to work around it 
> with this method
>  
> {noformat}
> static String stripXmlFragmentElement(String xml) 

[jira] [Created] (XMLBEANS-573) add XmlOptions so that xmlText(XmlOptions) method can be made to output more accurate XML

2021-10-13 Thread PJ Fanning (Jira)
PJ Fanning created XMLBEANS-573:
---

 Summary: add XmlOptions so that xmlText(XmlOptions) method can be 
made to output more accurate XML
 Key: XMLBEANS-573
 URL: https://issues.apache.org/jira/browse/XMLBEANS-573
 Project: XMLBeans
  Issue Type: Improvement
Affects Versions: Version 5.0.1, Version 4.0.0, Version 2.6
Reporter: PJ Fanning


See [https://bz.apache.org/bugzilla/show_bug.cgi?id=64837]

CTText is in poi-ooxml-full/poi-ooxml-lite and is generated using XMLBeans.

 
CTText tmpTextNode = CTText.Factory.newInstance();
tmpTextNode.setStringValue("A");
XmlOptions opts = new XmlOptions();
opts.setSaveOuter();
opts.setSaveNoXmlDecl();
System.out.println(tmpTextNode.xmlText(opts));
This prints

 
{noformat}
A{noformat}
It would be nice to have an XmlOptions option that allowed this to be printed as
{noformat}
http://schemas.openxmlformats.org/spreadsheetml/2006/main;>A{noformat}
 

I hit a similar issue in some code I was writing and had to work around it with 
this method

 
{noformat}
static String stripXmlFragmentElement(String xml) throws IOException, 
SAXException, ParserConfigurationException, TransformerException {
String startTag = "xml-fragment";
int pos = xml.indexOf(startTag);
if (pos >= 0) {
Document doc = 
XMLHelper.getDocumentBuilderFactory().newDocumentBuilder().parse(new 
InputSource(new StringReader(xml)));
NodeList list = doc.getDocumentElement().getChildNodes();
for (int i = 0; i < list.getLength(); i++) {
if (list.item(i) instanceof Element) {
try (StringWriter sw = new StringWriter()) {
Transformer transformer = XMLHelper.newTransformer();

transformer.setOutputProperty(OutputKeys.OMIT_XML_DECLARATION, "yes");
transformer.transform(new DOMSource(list.item(i)), new 
StreamResult(sw));
return sw.toString();
}
}
}
return xml.substring(pos + startTag.length());
}
return xml;
}{noformat}
 

 

 

 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: dev-unsubscr...@poi.apache.org
For additional commands, e-mail: dev-h...@poi.apache.org



[Bug 64837] In POI 3.17 xmlText prints the inner string of the CTText element (as fragment) instead of the whole xml node with

2021-10-13 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=64837

PJ Fanning  changed:

   What|Removed |Added

 Status|NEEDINFO|RESOLVED
 Resolution|--- |CLOSED

--- Comment #5 from PJ Fanning  ---
xmlText is a generated method - we use XMLBeans to generate CTText.

xmlText has behaved this way for years - so there is no recent regression.
XMLBeans 2.6.0 has this behaviour (released 2012) - as does recent XMLBeans
releases.

I moved this to https://issues.apache.org/jira/browse/XMLBEANS-573

-- 
You are receiving this mail because:
You are the assignee for the bug.
-
To unsubscribe, e-mail: dev-unsubscr...@poi.apache.org
For additional commands, e-mail: dev-h...@poi.apache.org



Build failed in Jenkins: POI » POI-DSL-Windows-1.16 #281

2021-10-13 Thread Apache Jenkins Server
See 


Changes:

[PJ Fanning] error message


--
[...truncated 26.99 KB...]
> Task :poi-examples:jar

> Task :poi:compileTestJava
F:\jenkins\jenkins-home\712657a4\workspace\POI\POI-DSL-Windows-1.16\poi\src\test\java\org\apache\poi\hssf\record\TestFormulaRecord.java:89:
 warning: [deprecation] getCode() in CellType has been deprecated
assertEquals(CellType.ERROR.getCode(), record.getCachedResultType());
   ^
F:\jenkins\jenkins-home\712657a4\workspace\POI\POI-DSL-Windows-1.16\poi\src\test\java\org\apache\poi\hssf\record\TestFormulaRecord.java:89:
 warning: [deprecation] getCachedResultType() in FormulaRecord has been 
deprecated
assertEquals(CellType.ERROR.getCode(), record.getCachedResultType());
 ^
F:\jenkins\jenkins-home\712657a4\workspace\POI\POI-DSL-Windows-1.16\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);
^
F:\jenkins\jenkins-home\712657a4\workspace\POI\POI-DSL-Windows-1.16\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);
^
F:\jenkins\jenkins-home\712657a4\workspace\POI\POI-DSL-Windows-1.16\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);
^
F:\jenkins\jenkins-home\712657a4\workspace\POI\POI-DSL-Windows-1.16\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);
^
F:\jenkins\jenkins-home\712657a4\workspace\POI\POI-DSL-Windows-1.16\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);
^
F:\jenkins\jenkins-home\712657a4\workspace\POI\POI-DSL-Windows-1.16\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);
^
F:\jenkins\jenkins-home\712657a4\workspace\POI\POI-DSL-Windows-1.16\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);
^
F:\jenkins\jenkins-home\712657a4\workspace\POI\POI-DSL-Windows-1.16\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);
^
F:\jenkins\jenkins-home\712657a4\workspace\POI\POI-DSL-Windows-1.16\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);
^
F:\jenkins\jenkins-home\712657a4\workspace\POI\POI-DSL-Windows-1.16\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);
^
F:\jenkins\jenkins-home\712657a4\workspace\POI\POI-DSL-Windows-1.16\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);
 ^
F:\jenkins\jenkins-home\712657a4\workspace\POI\POI-DSL-Windows-1.16\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));

   ^
F:\jenkins\jenkins-home\712657a4\workspace\POI\POI-DSL-Windows-1.16\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 UP-TO-DATE
> Task :poi:processTestResources
> Task :poi:testClasses
> Task :poi:testJar
> Task :poi-integration:compileJava NO-SOURCE
> Task :poi-integration:processResources 

[Bug 65077] Workbook.close() clears the second (the last) sheet data in previously saved file

2021-10-13 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=65077

--- Comment #2 from PJ Fanning  ---
It is not intuitive but the current POI behaviour is that if you create an
XSSFWorkbook based on a file, that that file is modified when you make changes
to the XSSFWorkbook. If you create an SXSSFWorkbook that is based on an
XSSFWorkbook, then the modifications to the SXSSFWorkbook affect the
XSSFWorkbook and this in turn affects the file.

If you want use an xlsx file as a template in SXSSFWorkbook but not modify the
original file, then you need to create the XSSFWorkbook using an InputStream.
When an InputStream is used, modifications to XSSFWorkbook do not affect the
original data source (eg a file).

-- 
You are receiving this mail because:
You are the assignee for the bug.
-
To unsubscribe, e-mail: dev-unsubscr...@poi.apache.org
For additional commands, e-mail: dev-h...@poi.apache.org



[Bug 60707] [PATCH] Reading very large excel files using StAX made easier - StreamingWorkbook

2021-10-13 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=60707

PJ Fanning  changed:

   What|Removed |Added

 Status|NEEDINFO|RESOLVED
 Resolution|--- |WONTFIX

-- 
You are receiving this mail because:
You are the assignee for the bug.
-
To unsubscribe, e-mail: dev-unsubscr...@poi.apache.org
For additional commands, e-mail: dev-h...@poi.apache.org



[Bug 65609] Flush not working

2021-10-13 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=65609

--- Comment #7 from PJ Fanning  ---
We don't publish snapshots to maven.
https://dist.apache.org/repos/dist/dev/poi/5.1.0-RC1/maven is where we
published a maven compatible version of an RC version of 5.1.0. There were a
lot of problems with that RC and we are working towards a new RC. The change
for this issue was not in RC1. Still, that link might let you know
approximately what the poms look like. There have been changes to the poms
since - specifically, to reduce the number of mandatory transitive
dependencies.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-
To unsubscribe, e-mail: dev-unsubscr...@poi.apache.org
For additional commands, e-mail: dev-h...@poi.apache.org



[Bug 65609] Flush not working

2021-10-13 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=65609

--- Comment #6 from David Juarez  ---
Is there a maven central repository available for the snapshots? We are finding
problems with the dependencies of the libraries. Is it possible to get the
pom.xml files of the libraries?

-- 
You are receiving this mail because:
You are the assignee for the bug.
-
To unsubscribe, e-mail: dev-unsubscr...@poi.apache.org
For additional commands, e-mail: dev-h...@poi.apache.org