[g...@vmgump]: Project poi (in module poi) failed

2009-03-18 Thread Gump [HEAD] :-(
To whom it may engage...

This is an automated request, but not an unsolicited one. For 
more information please visit http://gump.apache.org/nagged.html, 
and/or contact the folk at gene...@gump.apache.org.

Project poi has an issue affecting its community integration.
This issue affects 1 projects,
 and has been outstanding for 2 runs.
The current state of this project is 'Failed', with reason 'Build Timed Out'.
For reference only, the following projects are affected by this:
- poi :  POI


Full details are available at:
http://vmgump.apache.org/gump/public/poi/poi/index.html

That said, some information snippets are provided here.

The following annotations (debug/informational/warning/error messages) were 
provided:
 -DEBUG- Output [poi-ooxml-gump-18032009.jar] identifier set to output 
basename: [poi-ooxml-gump]
 -DEBUG- Output [poi-contrib-gump-18032009.jar] identifier set to output 
basename: [poi-contrib-gump]
 -DEBUG- Output [poi-scratchpad-gump-18032009.jar] identifier set to output 
basename: [poi-scratchpad-gump]
 -DEBUG- Output [poi-gump-18032009.jar] identifier set to output basename: 
[poi-gump]
 -INFO- Failed with reason build timed out
 -DEBUG- Extracted fallback artifacts from Gump Repository



The following work was performed:
http://vmgump.apache.org/gump/public/poi/poi/gump_work/build_poi_poi.html
Work Name: build_poi_poi (Type: Build)
Work ended in a state of : Failed
Elapsed: 60 mins
Command Line: /usr/lib/jvm/java-6-sun/bin/java -Djava.awt.headless=true 
-Xbootclasspath/p:/srv/gump/public/workspace/xml-commons/java/external/build/xml-apis.jar:/srv/gump/public/workspace/xml-xerces2/build/xercesImpl.jar:/srv/gump/public/workspace/xml-xalan/build/serializer.jar:/srv/gump/public/workspace/xml-xalan/build/xalan-unbundled.jar
 org.apache.tools.ant.Main -Dgump.merge=/srv/gump/public/gump/work/merge.xml 
-Dbuild.sysclasspath=only -Dversion.id=gump -DDSTAMP=18032009 -f build.xml gump 
[Working Directory: /srv/gump/public/workspace/poi]
CLASSPATH: 
/usr/lib/jvm/java-6-sun/lib/tools.jar:/srv/gump/public/workspace/poi/ooxml-lib/xmlbeans-2.3.0.jar:/srv/gump/public/workspace/poi/ooxml-lib/jsr173_1.0_api.jar:/srv/gump/public/workspace/poi/ooxml-lib/ooxml-schemas-1.0.jar:/srv/gump/public/workspace/poi/ooxml-lib/openxml4j-1.0-beta.jar:/srv/gump/public/workspace/poi/build/classes:/srv/gump/public/workspace/poi/build/contrib-classes:/srv/gump/public/workspace/poi/build/scratchpad-classes:/srv/gump/public/workspace/poi/build/ooxml-classes:/srv/gump/public/workspace/poi/build/test-classes:/srv/gump/public/workspace/poi/build/scratchpad-test-classes:/srv/gump/public/workspace/poi/build/ooxml-test-classes:/srv/gump/public/workspace/ant/dist/lib/ant-jmf.jar:/srv/gump/public/workspace/ant/dist/lib/ant-swing.jar:/srv/gump/public/workspace/ant/dist/lib/ant-apache-resolver.jar:/srv/gump/public/workspace/ant/dist/lib/ant-apache-xalan2.jar:/srv/gump/public/workspace/ant/dist/lib/ant-trax.jar:/srv/gump/public/workspace/ant/dist/l
 
ib/ant-junit.jar:/srv/gump/public/workspace/ant/dist/lib/ant-launcher.jar:/srv/gump/public/workspace/ant/dist/lib/ant-nodeps.jar:/srv/gump/public/workspace/ant/dist/lib/ant.jar:/srv/gump/public/workspace/logging-log4j-12/dist/lib/log4j-18032009.jar:/srv/gump/public/workspace/apache-commons/logging/target/commons-logging-18032009.jar:/srv/gump/public/workspace/apache-commons/logging/target/commons-logging-api-18032009.jar:/srv/gump/public/workspace/apache-commons/beanutils/dist/commons-beanutils-18032009.jar:/srv/gump/public/workspace/apache-commons/collections/build/commons-collections-18032009.jar:/srv/gump/public/workspace/apache-commons/lang/target/commons-lang-3.0-SNAPSHOT.jar:/srv/gump/public/workspace/junit/dist/junit-18032009.jar:/srv/gump/public/workspace/xml-commons/java/external/build/xml-apis-ext.jar:/srv/gump/public/workspace/dom4j/build/dom4j.jar
-

check-jars:

fetch-jars:

testexist:

downloadfile:
  [get] Getting: 
http://www.ibiblio.org/maven/commons-logging/jars/commons-logging-1.1.jar
  [get] To: /srv/gump/public/workspace/poi/lib/commons-logging-1.1.jar

testexist:

downloadfile:
  [get] Getting: http://www.ibiblio.org/maven/log4j/jars/log4j-1.2.13.jar
  [get] To: /srv/gump/public/workspace/poi/lib/log4j-1.2.13.jar

testexist:

downloadfile:
  [get] Getting: http://www.ibiblio.org/maven/junit/jars/junit-3.8.1.jar
  [get] To: /srv/gump/public/workspace/poi/lib/junit-3.8.1.jar

check-ooxml-jars:

fetch-ooxml-jars:

testexist:

downloadfile:
  [get] Getting: http://www.ibiblio.org/maven/dom4j/jars/dom4j-1.6.1.jar
  [get] To: /srv/gump/public/workspace/poi/ooxml-lib/dom4j-1.6.1.jar

testexist:

downloadfile:
  [get] Getting: 
http://www.ibiblio.org/maven/org.apache.xmlbeans/jars/xmlbeans-2.3.0.jar
  [get] To: /srv/gump/public/workspace/poi/ooxml-lib/xmlbeans-2.3.0.jar

testexist:

downloadfile:
  [get] Getting: 

DO NOT REPLY [Bug 46874] New: org.apache.poi.hssf.usermodel.HSSFWorkbook.getCellStyleAt() method calls ...model.Workbook.getExFormatAt() with wrong signature crashes.

2009-03-18 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=46874

   Summary: org.apache.poi.hssf.usermodel.HSSFWorkbook.getCellStyl
eAt() method calls ...model.Workbook.getExFormatAt()
with wrong signature  crashes.
   Product: POI
   Version: 3.2-FINAL
  Platform: PC
OS/Version: All
Status: NEW
  Keywords: ErrorMessage
  Severity: normal
  Priority: P2
 Component: HSSF
AssignedTo: dev@poi.apache.org
ReportedBy: gmortellw...@gmail.com


Overview:
-
org.apache.poi.hssf.usermodel.HSSFWorkbook.getCellStyleAt() method calls the
org.apache.poi.hssf.model.Workbook.getExFormatAt() method with a short, when it
requires an integer index.   This results in the code crashing (see stack trace
below).


Background -
--
This is my first time reporting a bug, so I apologize in advance if I'm missing
anything.

I am trying to create a java app to read in an Excel spreadsheet  split it out
into multiple spreadsheets, based upon key data.   To do this I need to clone
the CellStyles from the input workbook to each of the output workbooks, so
dates and currency formats will be the same in the output spreadsheets as they
are in the input spreadsheet. 

Steps to Reproduce: My Code That Initializes Each Output Workbook -
---
//Clone the input workbook's CellStyles into the output workbook's
CellStyles...

for (short i = 0 ; i = inputHSSFWorkbook.getNumCellStyles() ; i++)
{
LOG.info(Synchronizing input  output workbook CellStyles...i =  +i);
if (i  numberOfCellStylesOut)
{   //create a new CellStyle (blank) and add it to the W/B's CellStyle
table.
outputHSSFWorkbook.createCellStyle();
}

// Now try to synchronize all of the input  output workbook's CellStyle's.
// the 'outputHSSFWorkbook.getCellStyleAt(i)' piece below returns the
output workbook's
// HSSFCellStyle object at index i.   Clone it from the input CellStyle at
index i.
   
outputHSSFWorkbook.getCellStyleAt(i).cloneStyleFrom(inputHSSFWorkbook.getCellStyleAt(i));
}

numberOfCellStylesOut = outputHSSFWorkbook.getNumCellStyles();
LOG.debug(After synchronizing Input  Output CellStyle's - The number of
CellStyles in this output workbook is  + numberOfCellStylesOut);

There were 28 CellStyles in the input workbook and 21 in the new output
workbook.  I would expect to now see 28 CellStyles in each output workbook

Actual Results: The Stack Trace From the Crash -


Exception in thread main java.lang.ClassCastException:
org.apache.poi.hssf.record.StyleRecord
at org.apache.poi.hssf.model.Workbook.getExFormatAt(Workbook.java:742)
at
org.apache.poi.hssf.usermodel.HSSFWorkbook.getCellStyleAt(HSSFWorkbook.java:1125)



Expected Results:
---
I expected the code to clone the CellStyles from the input workbook to each of
the output workbooks.


Build Date  Platform: 
---
I encountered this on both the 3.2-FINAL build and the 3.5-Beta5 builds.  I
think this will only happen on versions 3.2-FINAL and higher, since that is
when the cloneStyleFrom() methosd was available.  Here's the MANIFEST.MF file
from my POI jar...

Manifest-Version: 1.0
Ant-Version: Apache Ant 1.6.2
Created-By: 1.5.0_13-b05 (Sun Microsystems Inc.)
Built-By: yegor
Specification-Title: Apache POI
Specification-Version: 3.2-FINAL-20081019
Specification-Vendor: Apache
Implementation-Title: Apache POI
Implementation-Version: 3.2-FINAL-20081019
Implementation-Vendor: Apache


Additional Information - The Apache POI HSSF Code - 

org.apache.poi.hssf.usermodel.HSSFWorkbook.getCellStyleAt() method passes a
short to the 
org.apache.poi.hssf.model.Workbook.getExFormatAt() method, which doesn't have a
signature to accept a short.   getExFormatAt()'s signature is for an int.

If the org.apache.poi.hssf.usermodel.HSSFWorkbook.getCellStyleAt() method
assigns its input short to an int, it could pass the int in the method call to
org.apache.poi.hssf.model.Workbook.getExFormatAt() method.  

I believe that this will work without crashing.   To be honest, I'm not as
experienced as most Java developers, so this might not be right.   You folks
would know better.

Hope this helps,

Gerald Mortell

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- 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



DO NOT REPLY [Bug 46859] [Patch] rename org.apache.poi.openxml4j.opc.Package

2009-03-18 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=46859


Josh Micich j...@gildedtree.com changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED




--- Comment #4 from Josh Micich j...@gildedtree.com  2009-03-18 12:07:03 PST 
---
Applied in svn r75569 ( https://svn.apache.org/viewcvs.cgi?view=revrev=75569 )

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- 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



DO NOT REPLY [Bug 46859] [Patch] rename org.apache.poi.openxml4j.opc.Package

2009-03-18 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=46859





--- Comment #5 from Josh Micich j...@gildedtree.com  2009-03-18 12:08:51 PST 
---
(In reply to comment #4)
Applied in svn r755699 ( https://svn.apache.org/viewcvs.cgi?view=revrev=755699 
).
(sorry somehow lost the last digit)

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- 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