Apache POI small example request & if it's possible to do...

I'm fairly new to Java, and am interested in creating a dynamic program in swing:
I have a word 2007 document with a number of lines of text and commands from a user manual I have created. I would like to use the Apache POI package to open the document read in each line one by one, and based on what style the line is in (Heading 1 format vs Normal vs Command vs Directory...etc) the program would go through a specific subroutine. For instance if were to have a document down below:
h1. Copy Files Procedure: (heading 1 style)
h2. 1.) Log into the Kermit unix server and change directory to:(heading 2 style)
h4. a.) "$HOME/whatever/" (openSSHwindow style)
h2. 2.) Perform a secure copy to Muppet server. (heading 2 style)
h4. a.) "scp user@server files whatever the command is" (command style)
I would want the program to read in this word doc line by line and spit out in my log file:
"Copy Files Procedure:" is in heading 1 style.
"Log into the Kermit unix server and change directory to:" is in heading 2 style.
"$HOME/whatever/" is in openSSHwindow style.
"Perform a secure copy to Muppet server." is in heading 2 style.
"scp user@server files whatever the command is" is in command style.
...etc
I did some research into Apache POI, but i wanted to know if anyone else here knew a way to do this. All I can find is that there is way to pull out the heading indent level! The problem with is that I'm using custom formats, not just Headings 1-9!
if someone would write a tiny example in java swing showing how to read the line in from a word doc and pull the line content as well as it's line style with a swing method that it invokes if it is a certain that would be SUPER helpful!!!!
The usefulness of this example could allow anyone to use this program to dynamically create an operating console GUI with any properly formatted word doc version of the operators manual!

802532 wrote:
All I mean with that is one that will create itself based on a word doc and it's styling...So, your program will read a word doc, and then generate Java source code, compile it, and execute it?
I think you're abusing the word "dynamic." It sounds like you mean "a program that takes input and produces output based on that input." This is pretty much what all programs beyond "Hello World" do.

Similar Messages

  • Apache POI  -  xssf und ss missing from package

    Hi Everybody,
    I have downloaded the Apache POI 3.2 from http://www.apache.org/dyn/closer.cgi/poi/release/ (mid5 checksum says download is complete) and then placed the jars in my classpath variable (under win XP). Then I have tried to run a demo program provided on the apache poi website. The demo program starts as follows:
    package org.apache.poi.ss.examples;
    import org.apache.poi.xssf.usermodel.*;
    import org.apache.poi.ss.usermodel.*;
    import org.apache.poi.hssf.usermodel.HSSFWorkbook;
    But Anytime i compile the program I get the message that the "package org.apache.poi.xssf.usermodel.*; does not exist". And also same message for the package "import org.apache.poi.ss.usermodel.*;". And when I have a look into the POI jar files (using winzip) I can see that there are no folder named xssf. In the folder ss there is no subfolder usermodel!!! Does it mean that they are missing from the package? Has anybody already met this problem? Or am I just a silly very beginner :)?
    Would be happy if somebody helps me.
    Bye

    Hi Keith,
    thanks for your answer. I provide you herewith the information you requested
    1- I think I have download the right jars. I went to http://apache.atviraskodas.com/poi/release/bin/ and then download the zip file
    2-Now ihave used the -cp option as follows:
    javac -cp c:\pathtothedownloadedjars\poi-3.2-FINAL-20081019.jar;c:\pathtothedownloadedjars\poi-contrib-3.2-FINAL-20081019.jar;c:\pathtothedownloadedjars\poi-scratchpad-3.2-FINAL-20081019.jar;c:\pathtothedownloadedjars\commons-logging-1.1.jar;c:\pathtothedownloadedjars\junit-3.8.1.jar;c:\pathtothedownloadedjars\log4j-1.2.13.jar
    BusinessPlan.java
    But I still have the error message
    3- here is the dir listing of the jar files
    19.10.2008 12:34 406 EncryptedDocumentException.class
    19.10.2008 12:34 7.420 POIDocument.class
    19.10.2008 12:34 1.024 POIOLE2TextExtractor.class
    19.10.2008 12:34 677 POITextExtractor.class
    19.10.2008 12:45 1.175 Version.class
    19.10.2008 12:34 <DIR> ddf
    19.10.2008 12:34 <DIR> dev
    19.10.2008 12:34 <DIR> hpsf
    19.10.2008 12:34 <DIR> hssf
    19.10.2008 12:34 <DIR> poifs
    19.10.2008 12:34 <DIR> ss
    19.10.2008 12:34 <DIR> util
    19.10.2008 12:35 <DIR> contrib
    19.10.2008 12:35 <DIR> hssf
    19.10.2008 12:34 <DIR> generator
    19.10.2008 12:34 <DIR> hdf
    19.10.2008 12:35 <DIR> hdgf
    19.10.2008 12:34 <DIR> hpbf
    19.10.2008 12:35 <DIR> hslf
    19.10.2008 12:34 <DIR> hsmf
    19.10.2008 12:34 <DIR> hssf
    19.10.2008 12:34 <DIR> hwpf
    Here are the outputs of the jar tvf command
    0 Sun Oct 19 12:45:16 GMT+01:00 2008 META-INF/
    338 Sun Oct 19 12:45:14 GMT+01:00 2008 META-INF/MANIFEST.MF
    146498 Sun Oct 19 12:34:40 GMT+01:00 2008 font_metrics.properties
    0 Sun Oct 19 12:34:40 GMT+01:00 2008 org/
    0 Sun Oct 19 12:34:40 GMT+01:00 2008 org/apache/
    0 Sun Oct 19 12:45:16 GMT+01:00 2008 org/apache/poi/
    406 Sun Oct 19 12:34:44 GMT+01:00 2008 org/apache/poi/EncryptedDocumentException.class
    7420 Sun Oct 19 12:34:44 GMT+01:00 2008 org/apache/poi/POIDocument.class
    1024 Sun Oct 19 12:34:44 GMT+01:00 2008 org/apache/poi/POIOLE2TextExtractor.class
    677 Sun Oct 19 12:34:44 GMT+01:00 2008 org/apache/poi/POITextExtractor.class
    1175 Sun Oct 19 12:45:16 GMT+01:00 2008 org/apache/poi/Version.class
    0 Sun Oct 19 12:34:44 GMT+01:00 2008 org/apache/poi/ddf/
    5132 Sun Oct 19 12:34:44 GMT+01:00 2008 org/apache/poi/ddf/DefaultEscherRecordFactory.class
    4348 Sun Oct 19 12:34:44 GMT+01:00 2008 org/apache/poi/ddf/EscherArrayProperty.class
    7809 Sun Oct 19 12:34:44 GMT+01:00 2008 org/apache/poi/ddf/EscherBSERecord.class
    3392 Sun Oct 19 12:34:44 GMT+01:00 2008 org/apache/poi/ddf/EscherBitmapBlip.class
    2979 Sun Oct 19 12:34:44 GMT+01:00 2008 org/apache/poi/ddf/EscherBlipRecord.class
    7450 Sun Oct 19 12:34:44 GMT+01:00 2008 org/apache/poi/ddf/EscherBlipWMFRecord.class
    590 Sun Oct 19 12:34:44 GMT+01:00 2008 org/apache/poi/ddf/EscherBoolProperty.class
    3465 Sun Oct 19 12:34:44 GMT+01:00 2008 org/apache/poi/ddf/EscherChildAnchorRecord.class
    5716 Sun Oct 19 12:34:44 GMT+01:00 2008 org/apache/poi/ddf/EscherClientAnchorRecord.class
    3062 Sun Oct 19 12:34:44 GMT+01:00 2008 org/apache/poi/ddf/EscherClientDataRecord.class
    2940 Sun Oct 19 12:34:44 GMT+01:00 2008 org/apache/poi/ddf/EscherComplexProperty.class
    6202 Sun Oct 19 12:34:44 GMT+01:00 2008 org/apache/poi/ddf/EscherContainerRecord.class
    3120 Sun Oct 19 12:34:44 GMT+01:00 2008 org/apache/poi/ddf/EscherDgRecord.class
    966 Sun Oct 19 12:34:44 GMT+01:00 2008 org/apache/poi/ddf/EscherDggRecord$1.class
    1091 Sun Oct 19 12:34:44 GMT+01:00 2008 org/apache/poi/ddf/EscherDggRecord$FileIdCluster.class
    5994 Sun Oct 19 12:34:44 GMT+01:00 2008 org/apache/poi/ddf/EscherDggRecord.class
    610 Sun Oct 19 12:34:44 GMT+01:00 2008 org/apache/poi/ddf/EscherDump$1PropName.class
    27358 Sun Oct 19 12:34:44 GMT+01:00 2008 org/apache/poi/ddf/EscherDump.class
    7934 Sun Oct 19 12:34:44 GMT+01:00 2008 org/apache/poi/ddf/EscherMetafileBlip.class
    936 Sun Oct 19 12:34:44 GMT+01:00 2008 org/apache/poi/ddf/EscherOptRecord$1.class
    4573 Sun Oct 19 12:34:44 GMT+01:00 2008 org/apache/poi/ddf/EscherOptRecord.class
    7091 Sun Oct 19 12:34:44 GMT+01:00 2008 org/apache/poi/ddf/EscherPictBlip.class
    24954 Sun Oct 19 12:34:44 GMT+01:00 2008 org/apache/poi/ddf/EscherProperties.class
    1204 Sun Oct 19 12:34:44 GMT+01:00 2008 org/apache/poi/ddf/EscherProperty.class
    2212 Sun Oct 19 12:34:44 GMT+01:00 2008 org/apache/poi/ddf/EscherPropertyFactory.class
    991 Sun Oct 19 12:34:44 GMT+01:00 2008 org/apache/poi/ddf/EscherPropertyMetaData.class
    748 Sun Oct 19 12:34:44 GMT+01:00 2008 org/apache/poi/ddf/EscherRGBProperty.class
    1480 Sun Oct 19 12:34:44 GMT+01:00 2008 org/apache/poi/ddf/EscherRecord$EscherRecordHeader.class
    3388 Sun Oct 19 12:34:44 GMT+01:00 2008 org/apache/poi/ddf/EscherRecord.class
    202 Sun Oct 19 12:34:44 GMT+01:00 2008 org/apache/poi/ddf/EscherRecordFactory.class
    300 Sun Oct 19 12:34:44 GMT+01:00 2008 org/apache/poi/ddf/EscherSerializationListener.class
    633 Sun Oct 19 12:34:44 GMT+01:00 2008 org/apache/poi/ddf/EscherShapePathProperty.class
    2139 Sun Oct 19 12:34:44 GMT+01:00 2008 org/apache/poi/ddf/EscherSimpleProperty.class
    4167 Sun Oct 19 12:34:44 GMT+01:00 2008 org/apache/poi/ddf/EscherSpRecord.class
    3688 Sun Oct 19 12:34:44 GMT+01:00 2008 org/apache/poi/ddf/EscherSpgrRecord.class
    3842 Sun Oct 19 12:34:44 GMT+01:00 2008 org/apache/poi/ddf/EscherSplitMenuColorsRecord.class
    3750 Sun Oct 19 12:34:44 GMT+01:00 2008 org/apache/poi/ddf/EscherTextboxRecord.class
    804 Sun Oct 19 12:34:44 GMT+01:00 2008 org/apache/poi/ddf/NullEscherSerializationListener.class
    4609 Sun Oct 19 12:34:44 GMT+01:00 2008 org/apache/poi/ddf/UnknownEscherRecord.class
    0 Sun Oct 19 12:34:44 GMT+01:00 2008 org/apache/poi/dev/
    5402 Sun Oct 19 12:34:44 GMT+01:00 2008 org/apache/poi/dev/RecordGenerator.class
    0 Sun Oct 19 12:34:44 GMT+01:00 2008 org/apache/poi/hpsf/
    2554 Sun Oct 19 12:34:44 GMT+01:00 2008 org/apache/poi/hpsf/ClassID.class
    2294 Sun Oct 19 12:34:44 GMT+01:00 2008 org/apache/poi/hpsf/Constants.class
    5498 Sun Oct 19 12:34:44 GMT+01:00 2008 org/apache/poi/hpsf/CustomProperties.class
    1492 Sun Oct 19 12:34:44 GMT+01:00 2008 org/apache/poi/hpsf/CustomProperty.class
    9702 Sun Oct 19 12:34:44 GMT+01:00 2008 org/apache/poi/hpsf/DocumentSummaryInformation.class
    849 Sun Oct 19 12:34:44 GMT+01:00 2008 org/apache/poi/hpsf/HPSFException.class
    1512 Sun Oct 19 12:34:44 GMT+01:00 2008 org/apache/poi/hpsf/HPSFRuntimeException.class
    811 Sun Oct 19 12:34:44 GMT+01:00 2008 org/apache/poi/hpsf/IllegalPropertySetDataException.class
    1087 Sun Oct 19 12:34:44 GMT+01:00 2008 org/apache/poi/hpsf/IllegalVariantTypeException.class
    783 Sun Oct 19 12:34:44 GMT+01:00 2008 org/apache/poi/hpsf/MarkUnsupportedException.class
    787 Sun Oct 19 12:34:44 GMT+01:00 2008 org/apache/poi/hpsf/MissingSectionException.class
    1592 Sun Oct 19 12:34:44 GMT+01:00 2008 org/apache/poi/hpsf/MutableProperty.class
    5240 Sun Oct 19 12:34:44 GMT+01:00 2008 org/apache/poi/hpsf/MutablePropertySet.class
    851 Sun Oct 19 12:34:44 GMT+01:00 2008 org/apache/poi/hpsf/MutableSection$1.class
    9056 Sun Oct 19 12:34:44 GMT+01:00 2008 org/apache/poi/hpsf/MutableSection.class
    775 Sun Oct 19 12:34:44 GMT+01:00 2008 org/apache/poi/hpsf/NoFormatIDException.class
    795 Sun Oct 19 12:34:44 GMT+01:00 2008 org/apache/poi/hpsf/NoPropertySetStreamException.class
    790 Sun Oct 19 12:34:44 GMT+01:00 2008 org/apache/poi/hpsf/NoSingleSectionException.class
    5994 Sun Oct 19 12:34:44 GMT+01:00 2008 org/apache/poi/hpsf/Property.class
    7150 Sun Oct 19 12:34:44 GMT+01:00 2008 org/apache/poi/hpsf/PropertySet.class
    2323 Sun Oct 19 12:34:44 GMT+01:00 2008 org/apache/poi/hpsf/PropertySetFactory.class
    476 Sun Oct 19 12:34:44 GMT+01:00 2008 org/apache/poi/hpsf/ReadingNotSupportedException.class
    1493 Sun Oct 19 12:34:44 GMT+01:00 2008 org/apache/poi/hpsf/Section$PropertyListEntry.class
    7391 Sun Oct 19 12:34:44 GMT+01:00 2008 org/apache/poi/hpsf/Section.class
    4137 Sun Oct 19 12:34:44 GMT+01:00 2008 org/apache/poi/hpsf/SpecialPropertySet.class
    7811 Sun Oct 19 12:34:44 GMT+01:00 2008 org/apache/poi/hpsf/SummaryInformation.class
    2044 Sun Oct 19 12:34:44 GMT+01:00 2008 org/apache/poi/hpsf/Thumbnail.class
    3147 Sun Oct 19 12:34:44 GMT+01:00 2008 org/apache/poi/hpsf/TypeWriter.class
    813 Sun Oct 19 12:34:44 GMT+01:00 2008 org/apache/poi/hpsf/UnexpectedPropertySetTypeException.class
    1172 Sun Oct 19 12:34:44 GMT+01:00 2008 org/apache/poi/hpsf/UnsupportedVariantTypeException.class
    4159 Sun Oct 19 12:34:44 GMT+01:00 2008 org/apache/poi/hpsf/Util.class
    5637 Sun Oct 19 12:34:44 GMT+01:00 2008 org/apache/poi/hpsf/Variant.class
    8511 Sun Oct 19 12:34:44 GMT+01:00 2008 org/apache/poi/hpsf/VariantSupport.class
    746 Sun Oct 19 12:34:44 GMT+01:00 2008 org/apache/poi/hpsf/VariantTypeException.class
    476 Sun Oct 19 12:34:44 GMT+01:00 2008 org/apache/poi/hpsf/WritingNotSupportedException.class
    0 Sun Oct 19 12:34:44 GMT+01:00 2008 org/apache/poi/hpsf/extractor/
    270 Sun Oct 19 12:34:44 GMT+01:00 2008 org/apache/poi/hpsf/extractor/HPSFPropertiesExtractor$1.class
    1310 Sun Oct 19 12:34:44 GMT+01:00 2008 org/apache/poi/hpsf/extractor/HPSFPropertiesExtractor$PropertiesOnlyDocument.class
    4597 Sun Oct 19 12:34:44 GMT+01:00 2008 org/apache/poi/hpsf/extractor/HPSFPropertiesExtractor.class
    0 Sun Oct 19 12:34:44 GMT+01:00 2008 org/apache/poi/hpsf/wellknown/
    4128 Sun Oct 19 12:34:44 GMT+01:00 2008 org/apache/poi/hpsf/wellknown/PropertyIDMap.class
    2323 Sun Oct 19 12:34:44 GMT+01:00 2008 org/apache/poi/hpsf/wellknown/SectionIDMap.class
    0 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/
    0 Sun Oct 19 12:34:44 GMT+01:00 2008 org/apache/poi/hssf/dev/
    2840 Sun Oct 19 12:34:44 GMT+01:00 2008 org/apache/poi/hssf/dev/BiffViewer$BiffDumpingStream.class
    2501 Sun Oct 19 12:34:44 GMT+01:00 2008 org/apache/poi/hssf/dev/BiffViewer$BiffRecordListener.class
    274 Sun Oct 19 12:34:44 GMT+01:00 2008 org/apache/poi/hssf/dev/BiffViewer$IBiffRecordListener.class
    16240 Sun Oct 19 12:34:44 GMT+01:00 2008 org/apache/poi/hssf/dev/BiffViewer.class
    933 Sun Oct 19 12:34:44 GMT+01:00 2008 org/apache/poi/hssf/dev/EFBiffViewer$1.class
    2348 Sun Oct 19 12:34:44 GMT+01:00 2008 org/apache/poi/hssf/dev/EFBiffViewer.class
    5316 Sun Oct 19 12:34:44 GMT+01:00 2008 org/apache/poi/hssf/dev/FormulaViewer.class
    5845 Sun Oct 19 12:34:44 GMT+01:00 2008 org/apache/poi/hssf/dev/HSSF.class
    0 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/eventmodel/
    199 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/eventmodel/ERFListener.class
    2065 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/eventmodel/EventRecordFactory.class
    2772 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/eventmodel/ModelFactory.class
    209 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/eventmodel/ModelFactoryListener.class
    0 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/eventusermodel/
    739 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/eventusermodel/AbortableHSSFListener.class
    271 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/eventusermodel/EventWorkbookBuilder$1.class
    2840 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/eventusermodel/EventWorkbookBuilder$SheetRecordCollectingListener.class
    973 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/eventusermodel/EventWorkbookBuilder$StubHSSFWorkbook.class
    2360 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/eventusermodel/EventWorkbookBuilder.class
    4374 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/eventusermodel/FormatTrackingHSSFListener.class
    2711 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/eventusermodel/HSSFEventFactory.class
    205 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/eventusermodel/HSSFListener.class
    2893 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/eventusermodel/HSSFRecordStream.class
    2330 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/eventusermodel/HSSFRequest.class
    891 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/eventusermodel/HSSFUserException.class
    2713 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/eventusermodel/MissingRecordAwareHSSFListener.class
    0 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/eventusermodel/dummyrecord/
    875 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/eventusermodel/dummyrecord/LastCellOfRowDummyRecord.class
    849 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/eventusermodel/dummyrecord/MissingCellDummyRecord.class
    738 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/eventusermodel/dummyrecord/MissingRowDummyRecord.class
    0 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/extractor/
    273 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/extractor/EventBasedExcelExtractor$1.class
    6538 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/extractor/EventBasedExcelExtractor$TextListener.class
    3788 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/extractor/EventBasedExcelExtractor.class
    5499 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/extractor/ExcelExtractor.class
    0 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/model/
    3686 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/model/AbstractShape.class
    3394 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/model/CommentShape.class
    1871 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/model/ConvertAnchor.class
    2855 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/model/DrawingManager.class
    3134 Sun Oct 19 12:34:44 GMT+01:00 2008 org/apache/poi/hssf/model/DrawingManager2.class
    1925 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/model/HSSFFormulaParser.class
    3860 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/model/LineShape.class
    1192 Sun Oct 19 12:34:44 GMT+01:00 2008 org/apache/poi/hssf/model/LinkTable$CRNBlock.class
    2672 Sun Oct 19 12:34:44 GMT+01:00 2008 org/apache/poi/hssf/model/LinkTable$ExternalBookBlock.class
    10078 Sun Oct 19 12:34:44 GMT+01:00 2008 org/apache/poi/hssf/model/LinkTable.class
    117 Sun Oct 19 12:34:44 GMT+01:00 2008 org/apache/poi/hssf/model/Model.class
    3846 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/model/PictureShape.class
    4888 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/model/PolygonShape.class
    6265 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/model/RecordOrderer.class
    1584 Sun Oct 19 12:34:44 GMT+01:00 2008 org/apache/poi/hssf/model/RecordStream.class
    2957 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/model/RowBlocksReader.class
    986 Sun Oct 19 12:34:44 GMT+01:00 2008 org/apache/poi/hssf/model/Sheet$RecordCloner.class
    32347 Sun Oct 19 12:34:44 GMT+01:00 2008 org/apache/poi/hssf/model/Sheet.class
    3671 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/model/SimpleFilledShape.class
    5109 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/model/TextboxShape.class
    40989 Sun Oct 19 12:34:44 GMT+01:00 2008 org/apache/poi/hssf/model/Workbook.class
    4284 Sun Oct 19 12:34:44 GMT+01:00 2008 org/apache/poi/hssf/model/WorkbookRecordList.class
    0 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/record/
    6211 Sun Oct 19 12:34:44 GMT+01:00 2008 org/apache/poi/hssf/record/AbstractEscherHolderRecord.class
    4974 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/record/AreaFormatRecord.class
    3377 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/record/AreaRecord.class
    3013 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/record/ArrayRecord.class
    2315 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/record/AxisLineFormatRecord.class
    7831 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/record/AxisOptionsRecord.class
    3600 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/record/AxisParentRecord.class
    3699 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/record/AxisRecord.class
    2093 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/record/AxisUsedRecord.class
    3948 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/record/BOFRecord.class
    1719 Sun Oct 19 12:34:44 GMT+01:00 2008 org/apache/poi/hssf/record/BackupRecord.class
    4380 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/record/BarRecord.class
    1262 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/record/BeginRecord.class
    2525 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/record/BlankRecord.class
    1755 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/record/BookBoolRecord.class
    3821 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/record/BoolErrRecord.class
    1950 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/record/BottomMarginRecord.class
    893 Sun Oct 19 12:34:44 GMT+01:00 2008 org/apache/poi/hssf/record/BoundSheetRecord$1.class
    5319 Sun Oct 19 12:34:44 GMT+01:00 2008 org/apache/poi/hssf/record/BoundSheetRecord.class
    4903 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/record/CFHeaderRecord.class
    739 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/record/CFRuleRecord$ComparisonOperator.class
    12823 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/record/CFRuleRecord.class
    1936 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/record/CRNCountRecord.class
    2528 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/record/CRNRecord.class
    1883 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/record/CalcCountRecord.class
    1980 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/record/CalcModeRecord.class
    4540 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/record/CategorySeriesAxisRecord.class
    298 Sun Oct 19 12:34:44 GMT+01:00 2008 org/apache/poi/hssf/record/CellValueRecordInterface.class
    3403 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/record/ChartFormatRecord.class
    3086 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/record/ChartRecord.class
    1008 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/record/ChartTitleFormatRecord$CTFormat.class
    2881 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/record/ChartTitleFormatRecord.class
    1763 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/record/CodepageRecord.class
    5225 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/record/ColumnInfoRecord.class
    6878 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/record/CommonObjectDataSubRecord.class
    2414 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/record/ContinueRecord.class
    2066 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/record/CountryRecord.class
    2935 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/record/DBCellRecord.class
    1698 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/record/DSFRecord.class
    3236 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/record/DVALRecord.class
    8308 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/record/DVRecord.class
    3684 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/record/DatRecord.class
    3877 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/record/DataFormatRecord.class
    1745 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/record/DateWindow1904Record.class
    1904 Sun Oct 19 12:34:44 GMT+01:00 2008 org/apache/poi/hssf/record/DefaultColWidthRecord.class
    2405 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/record/DefaultDataLabelTextPropertiesRecord.class
    2238 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/record/DefaultRowHeightRecord.class
    1911 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/record/DeltaRecord.class
    2980 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/record/DimensionsRecord.class
    3189 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/record/DrawingGroupRecord.class
    1904 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/record/DrawingRecord.class
    1550 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/record/DrawingRecordForBiffViewer.class
    823 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/record/DrawingSelectionRecord.class
    1470 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/record/EOFRecord.class
    6870 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/record/EmbeddedObjectRefSubRecord.class
    1252 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/record/EndRecord.class
    1391 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/record/EndSubRecord.class
    888 Sun Oct 19 12:34:44 GMT+01:00 2008 org/apache/poi/hssf/record/EscherAggregate$1.class
    1257 Sun Oct 19 12:34:44 GMT+01:00 2008 org/apache/poi/hssf/record/EscherAggregate$2.class
    25088 Sun Oct 19 12:34:44 GMT+01:00 2008 org/apache/poi/hssf/record/EscherAggregate.class
    2242 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/record/ExtSSTInfoSubRecord.class
    3777 Sun Oct 19 12:34:44 GMT+01:00 2008 org/apache/poi/hssf/record/ExtSSTRecord.class
    17774 Sun Oct 19 12:34:44 GMT+01:00 2008 org/apache/poi/hssf/record/ExtendedFormatRecord.class
    2096 Sun Oct 19 12:34:44 GMT+01:00 2008 org/apache/poi/hssf/record/ExternSheetRecord$RefSubRecord.class
    4476 Sun Oct 19 12:34:44 GMT+01:00 2008 org/apache/poi/hssf/record/ExternSheetRecord.class
    4506 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/record/ExternalNameRecord.class
    1835 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/record/FilePassRecord.class
    3464 Sun Oct 19 12:34:44 GMT+01:00 2008 org/apache/poi/hssf/record/FileSharingRecord.class
    1743 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/record/FnGroupCountRecord.class
    3481 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/record/FontBasisRecord.class
    2096 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/record/FontIndexRecord.class
    7723 Sun Oct 19 12:34:44 GMT+01:00 2008 org/apache/poi/hssf/record/FontRecord.class
    3335 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/record/FooterRecord.class
    3093 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/record/FormatRecord.class
    4148 Sun Oct 19 12:34:44 GMT+01:00 2008 org/apache/poi/hssf/record/FormulaRecord$SpecialCachedValue.class
    8013 Sun Oct 19 12:34:44 GMT+01:00 2008 org/apache/poi/hssf/record/FormulaRecord.class
    3498 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/record/FrameRecord.class
    1874 Sun Oct 19 12:34:44 GMT+01:00 2008 org/apache/poi/hssf/record/GridsetRecord.class
    2033 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/record/GroupMarkerSubRecord.class
    2825 Sun Oct 19 12:34:44 GMT+01:00 2008 org/apache/poi/hssf/record/GutsRecord.class
    1896 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/record/HCenterRecord.class
    3325 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/record/HeaderRecord.class
    1833 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/record/HideObjRecord.class
    1354 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/record/HorizontalPageBreakRecord.class
    7904 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/record/HyperlinkRecord.class
    3529 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/record/IndexRecord.class
    1296 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/record/InterfaceEndRecord.class
    1785 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/record/InterfaceHdrRecord.class
    1882 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/record/IterationRecord.class
    3293 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/record/LabelRecord.class
    2910 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/record/LabelSSTRecord.class
    1936 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/record/LeftMarginRecord.class
    6844 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/record/LegendRecord.class
    5418 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/record/LineFormatRecord.class
    2561 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/record/LinkedDataFormulaField.class
    5109 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/record/LinkedDataRecord.class
    2034 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/record/MMSRecord.class
    173 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/record/Margin.class
    3108 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/record/MergeCellsRecord.class
    2586 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/record/MulBlankRecord.class
    1121 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/record/MulRKRecord$RkRec.class
    2830 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/record/MulRKRecord.class
    684 Sun Oct 19 12:34:44 GMT+01:00 2008 org/apache/poi/hssf/record/NameRecord$Option.class
    13076 Sun Oct 19 12:34:44 GMT+01:00 2008 org/apache/poi/hssf/record/NameRecord.class
    3646 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/record/NoteRecord.class
    2099 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/record/NoteStructureSubRecord.class
    2124 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/record/NumberFormatIndexRecord.class
    2931 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/record/NumberRecord.class
    3377 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/record/ObjRecord.class
    2992 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/record/ObjectLinkRecord.class
    1901 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/record/ObjectProtectRecord.class
    1120 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/record/PColor.class
    1355 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/record/PageBreakRecord$Break.class
    4665 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/record/PageBreakRecord.class
    4449 Sun Oct 19 12:34:44 GMT+01:00 2008 org/apache/poi/hssf/record/PaletteRecord.class
    3663 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/record/PaneRecord.class
    2230 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/record/PasswordRecord.class
    1760 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/record/PasswordRev4Record.class
    1404 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/record/PlotAreaRecord.class
    2514 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/record/PlotGrowthRecord.class
    1764 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/record/PrecisionRecord.class
    1919 Sun Oct 19 12:34:44 GMT+01:00 2008 org/apache/poi/hssf/record/PrintGridlinesRecord.class
    1902 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/record/PrintHeadersRecord.class
    7798 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/record/PrintSetupRecord.class
    1867 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/record/ProtectRecord.class
    1758 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/record/ProtectionRev4Record.class
    3938 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/record/RKRecord.class
    2309 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/record/RecalcIdRecord.class
    1970 Sun Oct 19 12:34:44 GMT+01:00 2008 org/apache/poi/hssf/record/Record.class
    368 Sun Oct 19 12:34:44 GMT+01:00 2008 org/apache/poi/hssf/record/RecordBase.class
    24379 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/record/RecordFactory.class
    703 Sun Oct 19 12:34:44 GMT+01:00 2008 org/apache/poi/hssf/record/RecordFormatException.class
    6823 Sun Oct 19 12:34:44 GMT+01:00 2008 org/apache/poi/hssf/record/RecordInputStream.class
    324 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/record/RecordProcessor.class
    1921 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/record/RefModeRecord.class
    1762 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/record/RefreshAllRecord.class
    1937 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/record/RightMarginRecord.class
    6016 Sun Oct 19 12:34:44 GMT+01:00 2008 org/apache/poi/hssf/record/RowRecord.class
    2428 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/record/SCLRecord.class
    1169 Sun Oct 19 12:34:44 GMT+01:00 2008 org/apache/poi/hssf/record/SSTDeserializer.class
    5976 Sun Oct 19 12:34:44 GMT+01:00 2008 org/apache/poi/hssf/record/SSTRecord.class
    1296 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/record/SSTRecordHeader.class
    1194 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/record/SSTRecordSizeCalculator.class
    2597 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/record/SSTSerializer.class
    1867 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/record/SaveRecalcRecord.class
    1909 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/record/ScenarioProtectRecord.class
    3733 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/record/SelectionRecord.class
    2156 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/record/SeriesChartGroupIndexRecord.class
    2092 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/record/SeriesIndexRecord.class
    4364 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/record/SeriesLabelsRecord.class
    2219 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/record/SeriesListRecord.class
    4456 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/record/SeriesRecord.class
    3640 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/record/SeriesTextRecord.class
    2167 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/record/SeriesToChartGroupRecord.class
    5009 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/record/SharedFormulaRecord.class
    2231 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/record/SharedValueRecordBase.class
    4659 Sun Oct 19 12:34:46 GMT+01:00 2008 org/apache/poi/hssf/record/SheetPropertiesRecord.class
    3018 Sun Oct 19 12:34:46 GMT+01:00 2008 or

  • Excel Parsing -org.apache.poi.hssf.record.RecordFormatException

    Hi ,
    I am running into org.apache.poi.hssf.record.RecordFormatException,
    while creating excel work book.
    Few of the worksheets in the workbook are password protected.
    If i remove the password proted worksheets then i am able to load the
    workbook and can parse it.
    I am using apache poi 2.5.1.
    Is it possible to load workbook having few password proted sheets using apache POI?
    I appreaciate any help in this.
    Thanks in advance
    Mark
    code.
    POIFSFileSystem fs =new POIFSFileSystem(input);
    HSSFWorkbook wb = new HSSFWorkbook(fs);
    Exception log:
    java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:80)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java(Compiled Code))
    at java.lang.reflect.Constructor.newInstance(Constructor.java(Compiled Code))
    at org.apache.poi.hssf.record.RecordFactory.createRecord(RecordFactory.java(Compiled Code))
    at org.apache.poi.hssf.record.RecordFactory.createRecords(RecordFactory.java(Compiled Code))
    at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:163)
    at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:130)
    at com.cargill.aim.examples.ExcelParseTest.main(ExcelParseTest.java:43)
    Caused by: java.lang.ArrayIndexOutOfBoundsException
    at java.lang.System.arraycopy(Native Method)
    at org.apache.poi.hssf.record.UnknownRecord.<init>(UnknownRecord.java:62)
    at org.apache.poi.hssf.record.SubRecord.createSubRecord(SubRecord.java:57)
    at org.apache.poi.hssf.record.ObjRecord.fillFields(ObjRecord.java:99)
    at org.apache.poi.hssf.record.Record.fillFields(Record.java(Compiled Code))
    at org.apache.poi.hssf.record.Record.<init>(Record.java(Compiled Code))
    at org.apache.poi.hssf.record.ObjRecord.<init>(ObjRecord.java:61)
    ... 9 more
    Exception in thread "main" org.apache.poi.hssf.record.RecordFormatException: Unable to construct record instance, the following exception occured: null
    at org.apache.poi.hssf.record.RecordFactory.createRecord(RecordFactory.java(Compiled Code))
    at org.apache.poi.hssf.record.RecordFactory.createRecords(RecordFactory.java(Compiled Code))
    at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:163)
    at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:130)
    at com.cargill.aim.examples.ExcelParseTest.main(ExcelParseTest.java:43)

    Hi,
    I am dealing with the similer problem but the same error. I am using the latest version of POI 3.0.1 and trying to read the cells which have auto formating enabled for date. I am getting the same error. Please let me know if you come across any solution to read the formatted cells using POI.
    Thanks in advance!
    - Alok

  • Apache POI Compile Error

    So I'm trying to use the Apache POI to write Excel sheets. I downloaded the latest version (3.8) and added it to my project in JDeveloper. I can't get any examples to work. The line:
    Workbook wb = new HSSFWorkbook();
    give me this error:
    Error(22,13): Iterable not found in interface org.apache.poi.ss.usermodel.Row in class org.apache.poi.hssf.usermodel.HSSFWorkbook in class test.PoiWriteExcelFile
    Google is no help. Seems like I'm missing something basic. PLEASE HELP!

    Which version of JDeveloper you are using
    Validate if you are using J2SE older than 1.5
    Regards,
    Hari

  • One Small Feature Request

    Well, I got the Add-In installed and working. Looks pretty good. One small feature request I have, that I have become accustom to doing from another tool that I use is that when editing a package, in the Oracle Explorer window, when you expand the Packages node, then expand the package you are working on, it shows a list of procedures and functions in that package. This is great. Now what would be really great is that if you could double click on one of these procedures or functions it would take you to that place in the code of the package body.
    So for example, let's say I have a package called Pkg_DoStuff. Pkg_DoStuff has three procedures, Foo1, Foo2, and Foo3. When I expand Pkg_DoStuff in the Oracle Explorer windows, I see nodes for Foo1, Foo2, and Foo3. Now, if I double click on Foo3, I would like the code window to place the cursor at the start of the Foo3 procedure in the package body.
    Thanks,
    Kevin

    Another feature request:
    Please add a Raptor feature to the Data Connections and allow users to apply filters to tree browsing. We use Oracle Apps 11i, and there must be about 50 thousand tables, views and packages that can potentially be visible. It usually takes several minutes for the Data Connections tree to respond when I bring up a list of tables even for a login with limited access. However, with the filter applied in raptor, I can browse very quickly to tables, views and packages that I need.
    Thank you.

  • Pros and cons of jxl api and apache poi of manipulating the excel sheet.

    i want a list of pros and cons of jxl api and apache poi of manipulating the excel sheet.
    also i need to know which one is better jxl or apache poi.

    Hi Ricardo_Lorenzo,
    Whether to go for Multiserver instances or Single server, is totally a user requirement based decison. If a user has Single website, or multiple websites (of the same nature, in terms of functionality), usually the part of same domain, then they would go for Single sever installation. One single instance will handle the requests from all the websites (if there are multiple). There would not be a clustering/failover setup within ColdFusion and can use the ColdFusion Standard or Enterprise version.
    On the other hand, if a user has multiple websites, all with different functionality and have multiple applications (may or may not) running, then they can go for Multiserver installation. Each website can be configured with individual instances. Clustering can be done within ColdFusion if needed. One would need an Enterprise license of ColdFusion for the same.
    Hope this helps.
    Regards,
    Anit Kumar

  • Help needed to loadjava apache poi jars into oracle database.

    Help needed to loadjava apache poi jars into oracle database. Many classes left unresolved. (Poi 3.7, database 11.1.0.7). Please share your experience!

    Hi,
    The first 3 steps are just perfect.
    But with
    loadjava.bat -user=user/pw@connstr -force -resolve geronimo-stax-api_1.0_spec-1.0.jar
    the results are rather unexpected. Here is a part of the log file:
    arguments: '-user' 'ccc/***@bisera7-db.dev.srv' '-fileout' 'c:\temp\load4.log' '-force' '-resolve' '-jarsasdbobjects' '-v' 'geronimo-stax-api_1.0_spec-1.0.jar'
    The following operations failed
    resource META-INF/MANIFEST.MF: creation (createFailed)
    class javax/xml/stream/EventFilter: resolution
    class javax/xml/stream/events/Attribute: resolution
    class javax/xml/stream/events/Characters: resolution
    class javax/xml/stream/events/Comment: resolution
    class javax/xml/stream/events/DTD: resolution
    class javax/xml/stream/events/EndDocument: resolution
    class javax/xml/stream/events/EndElement: resolution
    class javax/xml/stream/events/EntityDeclaration: resolution
    class javax/xml/stream/events/EntityReference: resolution
    class javax/xml/stream/events/Namespace: resolution
    class javax/xml/stream/events/NotationDeclaration: resolution
    class javax/xml/stream/events/ProcessingInstruction: resolution
    class javax/xml/stream/events/StartDocument: resolution
    class javax/xml/stream/events/StartElement: resolution
    class javax/xml/stream/events/XMLEvent: resolution
    class javax/xml/stream/StreamFilter: resolution
    class javax/xml/stream/util/EventReaderDelegate: resolution
    class javax/xml/stream/util/StreamReaderDelegate: resolution
    class javax/xml/stream/util/XMLEventAllocator: resolution
    class javax/xml/stream/util/XMLEventConsumer: resolution
    class javax/xml/stream/XMLEventFactory: resolution
    class javax/xml/stream/XMLEventReader: resolution
    class javax/xml/stream/XMLEventWriter: resolution
    class javax/xml/stream/XMLInputFactory: resolution
    class javax/xml/stream/XMLOutputFactory: resolution
    class javax/xml/stream/XMLStreamReader: resolution
    resource META-INF/LICENSE.txt: creation (createFailed)
    resource META-INF/NOTICE.txt: creation (createFailed)
    It seems to me that the root of the problem is the error:
    ORA-29521: referenced name javax/xml/namespace/QName could not be found
    This class exists in the SYS schema though and is valid. If SYS should be included as a resolver? How to solve this problem?

  • How to Edit Word Document in Oracle ADF Application - Apache POI

    Hi All
    I was wondering if there is a way to edit and save word documents in Oracle ADF without loosing the Formatting.
    I was able to edit and save the word document however the Formatting was lost.
    Please let me know if there are any pointers or open source Java APIs that we can use to achieve this.

    Refer the Text Formatting section
    Apache POI - HWPF - Java API to Handle Microsoft Word Files
    HWPF Reads in a Word document with minimum formatting (no lists, tables, footnotes, endnotes, headers, footers)
    Apache POI - HWPF - Java API to Handle Microsoft Word Files
    The _cbt field in class HWPFDocumentCore contains formatting information.
    HWPFDocumentCore (POI API Documentation)
    For more advanced text extraction needs, including Rich Text extraction (such as formatting and styling), along with XML and HTML output, Apache POI works closely with Apache Tika to deliver POI-powered Tika Parsers for all the project supported file formats.
    Apache POI - Text Extraction
    Use Apache Tikka for formatting.
    Apache Tika - Supported Document Formats

  • Using Apache POI 3.2 to create hyperlinks in Excel

    Hello,
    I am new to Java.
    I have written a program that accesses Excel with the Apache POI version 3.2.
    All seems to work until I tried to insert a Hyperlink to a file on the local drive.
    I followed the quick start guide from Apache POI.
    It provides the following code but Java does not appear to find the "createHelper".
    //link to a file in the current directory
    cell = sheet.createRow(1).createCell((short)0);
    cell.setCellValue("File Link");
    link = createHelper.createHyperlink(Hyperlink.LINK_FILE);
    link.setAddress("link1.xls");
    cell.setHyperlink(link);
    cell.setCellStyle(hlink_style);
    Any ideas on how to insert a Hyperlink into Excel would be appreciated.
    Thanks
    Chris

    This seems to be a class in 3.5 beta jar file. Try downloading and using the 3.5 beta

  • How to read .XLSX files using org.apache.poi.ss.usermodel.* classes

    Hello,
    I want to read in excel files to a JTable. I was able to read in .xls files, but have problems reading .xlsx files. Maybe there is something i need to add to the following code:
    FileInputStream iStream = new FileInputStream(newFile);
    POIFSFileSystem fs = new POIFSFileSystem(iStream);
    Workbook wb1 = WorkbookFactory.create(fs);
    Sheet sheet = wb1.getSheetAt(0);       // get the first sheet data
    // Iterate over each row in the sheet
      Iterator rows = sheet.rowIterator();
       while(rows.hasNext()) {
          Row row = (Row) rows.next();
          .............The compiler is complaining about the 3rd line: Workbook wb1 = WorkbookFactory.create(fs);
    Thanks.

    @ejp:
    I quite agree with you. It's a runtime exception -
    org.apache.poi.poifs.filesystem.OfficeXmlFileException: The supplied data appears to be in the Office 2007+ XML. You are calling the part of POI that deals with OLE2 Office Documents. You need to call a different part of POI to process this data (eg XSSF instead of HSSF)I've tried searching before coming here to ask. HSSF processes .xls files only, XSSF processes .xlsx files only while SS is supposed to read both .xls and .xlsx files. Maybe there's anyone that has used it before who can help out.
    Thanks

  • Excel File Management Apache POI HSSF vs. jxl jar

    I've been reviewing Java technologies for managing Excel files, and I'm a little confused about the differences between Apache's POI HSSF implementation and JExcelApi, and utimately what technology it makes sense to use.
    They are both open source, although POI is backed by Apache, where JExcelApi seems to be open source developed by Andy Khan. It seem Apache has a little more weight, therefore may be a better option.
    Can someone who has exposure to these technologies please provide me with some insight.
    Thanks.

    Hi
    Thanks for your reply,
    Now I hav used an alternate approach of using Apache POI.
    But.......
    I have created simple table in jsp and set content type to
    <%@ page contentType="application/vnd.ms-excel" %>
    when i navigate to this jsp it is getting displayed in excel format.
    I wish if user clicks on to navigate for this jsp, he must get an option to either open, save or cancel the jsp.
    Then on selecting save a dialogue gets appeared where he can select path and file name.
    Please comment.
    Thanks.

  • Exception when using Apache POI in ADF

    Goodmorning;
    i'm using jdev 11g, i m trying to use Apache POI to import the content of Microsoft XL file into my database.
    i already do that succesfully on netbeans. but not on jdev.
    first i download the POI package from the apache web site, and i create a librarie and add the jar files to the jdev by using Tools --> Manage Libraries, this is the list of the jar file : poi-3.6-20091214.jar, poi-contrib-3.6-20091214.jar, poi-ooxml-3.6-3-20091214.jar and poi-scratchpad-3.6-20091214.jar.
    next, create a jsf page with a boutton, then i enable the binding of this page by using Design --> Page Properties --> component binding --> check Auto Bind
    in the action method of the buton i put the following code :
    public String cb1_action() throws FileNotFoundException, IOException {
    Connection conn = null;
    String url = "jdbc:mysql://localhost:3306/";
    String dbName = "test";
    String driver = "com.mysql.jdbc.Driver";
    String username = "root";
    String userPassword = "";
    try {
    InputStream fs = new FileInputStream("/home/Rachid/test1.xls");
    HSSFWorkbook wb = new HSSFWorkbook(fs);
    HSSFSheet sheet = wb.getSheetAt(0);
    HSSFRow row = null;
    for (Iterator rowIt = sheet.rowIterator(); rowIt.hasNext();) {
    row = (HSSFRow) rowIt.next();
    HSSFCell code = row.getCell(0);
    HSSFCell nom = row.getCell(1);
    HSSFCell dt = row.getCell(2);
    java.util.Date date = dt.getDateCellValue();
    System.out.println("code "+code+" % nom "+nom +" % date " +date);
    try {
    Class.forName(driver).newInstance();
    } catch (ClassNotFoundException e) {
    } catch (InstantiationException e) {
    } catch (IllegalAccessException e) {
    try {
    conn = DriverManager.getConnection(url+dbName,username,userPassword);
    } catch (SQLException e) {
    Statement stmt = null;
    try {
    stmt = conn.createStatement();
    } catch (SQLException e) {
    String strQuery = "insert into importxl values ("+code+",'"+nom+"','"+date.getDay()+"/"+date.getMonth()+"/"+date.getYear()+"')";
    System.out.println(strQuery);
    try {
    stmt.close();
    } catch (SQLException e) {
    try {
    conn.close();
    } catch (SQLException e) {
    } catch (FileNotFoundException e) {
    e.printStackTrace();
    } catch (IOException e) {
    e.printStackTrace();
    return null;
    and when i run my page and click on the button, this exception page appear :
    Error 500--Internal Server Error
    javax.servlet.ServletException: java.lang.NoClassDefFoundError: org/apache/poi/hssf/usermodel/HSSFWorkbook
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:277)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:191)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:97)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
         at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:247)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:157)
         at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:94)
         at java.security.AccessController.doPrivileged(Native Method)
         at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
         at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:414)
         at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:138)
         at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:330)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.doIt(WebAppServletContext.java:3684)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3650)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2268)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2174)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1446)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Caused by: javax.faces.el.EvaluationException: java.lang.NoClassDefFoundError: org/apache/poi/hssf/usermodel/HSSFWorkbook
         at org.apache.myfaces.trinidad.component.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:51)
         at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)
         at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:190)
         at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:475)
         at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:756)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._invokeApplication(LifecycleImpl.java:698)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:285)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:177)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
         ... 35 more
    Caused by: java.lang.NoClassDefFoundError: org/apache/poi/hssf/usermodel/HSSFWorkbook
         at Mybean.bean1.wrc(bean1.java:23)
         at Mybean.MybeanImport.cb1_action(MybeanImport.java:53)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.sun.el.parser.AstValue.invoke(AstValue.java:157)
         at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:283)
         at org.apache.myfaces.trinidad.component.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:46)
         ... 43 more
    Caused by: java.lang.ClassNotFoundException: org.apache.poi.hssf.usermodel.HSSFWorkbook
         at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:280)
         at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:253)
         at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:56)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
         at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:177)
         at weblogic.utils.classloaders.ChangeAwareClassLoader.loadClass(ChangeAwareClassLoader.java:37)
         ... 52 more

    Hi John,
    Ya ur right i too agree we can go for shared Libraries for reusable or massive apps but we still dont know whether OP is gng on the way and also i never said dont go for shared Libraries+
    May be he will be running the application locally for any testing purpose..... if it so i have suggested him not to keep the jar files in the folders outside the project....
    Why becoz incase the jar file kept in outside folder,
    if the folder gets deleted or some times if it kept in any shared folder and user loses the permission error will be thrown it cant be traced why the error gets throwned....
    if the jar is gng to be referred from local best way is to keep it in the project folder itself.............
    Regards,
    Suganth.G

  • Need a procedure with in, out, in out parameters - small example.

    Hi Masters,
    Need a small example with 3 parameters in a procedure. How to know call by value and call by reference with out and inout parameters.
    create or replace procedure sample(x in number, y out number, z in out number) is
    begin
         pass the x value into y and z as well. and display the 3 values.   Code requried..
    end;
    Thanks a lot in adv.
    AR

    Hi,
    874273 wrote:
    Hi Masters,
    Need a small example with 3 parameters in a procedure. How to know call by value and call by reference with out and inout parameters.
    create or replace procedure sample(x in number, y out number, z in out number) is
    begin
         pass the x value into y and z as well. and display the 3 values.   Code requried..
    end;
    Thanks a lot in adv.
    AR
    I'm not sure I understand the question.
    In PL/SQL, the way to pass the value of x to another variable v is:
    v := x;
    Here, v can be an OUT argument or an IN OUT argument.  (It can be any kind of variable except an IN argument or a CONSTANT.)
    PL/SQL doesn't really have any way to display values.  For debugging, people often use dbms_output, like this:
    dbms_output.put_line (y || ' = y inside sample procedure');
    Many front end tools (such as SQL*Plus) can display the text after PL/SQL finishes.
    By default, all arguments in PL/SQL are passed by value.  To call by reference, use the NOCOPY hint, as shown below:
    SET SERVEROUTPUT ON;
    CREATE OR REPLACE PROCEDURE sample ( x  IN              NUMBER
                                       , y  OUT             NUMBER
                                       , z  IN OUT  NOCOPY  NUMBER
    IS
    BEGIN
         y := x;
         z := x;
         dbms_output.put_line (y || ' = y inside sample procedure');
         dbms_output.put_line (z || ' = z');
    END sample;
    SHOW ERRORS

  • Thread pool small example needed

    Hi friends,
    Can you please give a small example program for thread pool to understand?

    >
    Can you please give a small example program for thread pool to understand?>I don't know (whether you would understand an example - simple or otherwise).
    But why don't you help dispel the impression that you are just another lazy student, by making a start on some code, then asking a specific question, when you get stuck?

  • Error in importing org.apache.poi

    hi.....i am getting only one error as "package org.apache.poi.hssf.usermodel does not exist" when i write the code as
    import java.io.*;
    import jxl.*;
    import java.util.*;
    import jxl.Workbook;
    import org.apache.poi.hssf.usermodel.HSSFWorkbook;
    import jxl.write.DateFormat;
    import jxl.write.Number;
    import jxl.write.*;
    import java.text.SimpleDateFormat; "
    and also i added the jxl.jar file into my class path.......
    Can anybody plz tell me how can i eliminate that error.............Thanks in advance.
    Edited by: sumanthchowdary on Jun 2, 2008 11:34 PM

    What is there inside your jxl.jar.
    Apache POI library name is poi-3.0.2-FINAL-20080204.jar in the last release available on [http://www.apache.org/dyn/closer.cgi/poi/]. Check your classpath, IMHO it doesn't contain any POI class.
    Edited by: jswim on 3 juin 2008 09:39

Maybe you are looking for

  • SRM 7.0, PO details are not getting populated in Contract History Tab

    Hello Folks, I am stuck with an issue and would need your help regarding that. Scenario: (Extended Classic Scenario) SRM version 7 A catagory Contract is created. Shopping cart created with Contract as the source of supply. Once the SC is approved PO

  • Solman 7.0 with Willy Interscope 8.0 Upgrading EHP1

    Hello Every body, I am looking for the pre- requisites for Upgrading Solman 7.0 to EHP1And we have Willy Interscope 8.0 installed. Do we have any impact for Sattilite Systems as they have Kernel 7.0. And we are palnning to Install SMD in Solman and S

  • CMP Entity Beans read database row twice?

    Here are two basic questions regarding container managed persistence Entity Beans: How many database read operations are performed when a remote reference to a CMP Entity Bean is obtained by a client? Is it correct, that each row is read twice? For e

  • Script to schedule webi report with prompts

    Dear experts, I need to schedule about 300 reports to run on a monthly basis. Those reports have to prompts to be filled: year and month. How can I schedule it and fill the prompts automatically? I thought of scheduling a script that would run those

  • SMS from My Coke Rewards blocked?

    I set my Verizon phone number up so I could send the code found on the bottle caps of Coca-Cola bottles to the My Coke Rewards short code 2653. However, as of one week ago, I no longer receive the confirmation SMS telling me I've received my points.