<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:syn="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/">
  <channel rdf:about="http://blog.gmane.org/gmane.comp.jakarta.poi.devel">
    <title>gmane.comp.jakarta.poi.devel</title>
    <link>http://blog.gmane.org/gmane.comp.jakarta.poi.devel</link>
    <description/>
    <syn:updatePeriod>hourly</syn:updatePeriod>
    <syn:updateFrequency>1</syn:updateFrequency>
    <syn:updateBase>1901-01-01T00:00+00:00</syn:updateBase>
    <items>
      <rdf:Seq>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.jakarta.poi.devel/22688"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.jakarta.poi.devel/22687"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.jakarta.poi.devel/22686"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.jakarta.poi.devel/22685"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.jakarta.poi.devel/22684"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.jakarta.poi.devel/22683"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.jakarta.poi.devel/22682"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.jakarta.poi.devel/22681"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.jakarta.poi.devel/22680"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.jakarta.poi.devel/22679"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.jakarta.poi.devel/22678"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.jakarta.poi.devel/22677"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.jakarta.poi.devel/22676"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.jakarta.poi.devel/22675"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.jakarta.poi.devel/22674"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.jakarta.poi.devel/22673"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.jakarta.poi.devel/22672"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.jakarta.poi.devel/22671"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.jakarta.poi.devel/22670"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.jakarta.poi.devel/22669"/>
      </rdf:Seq>
    </items>
    <image rdf:resource="http://gmane.org/img/gmane-25t.png"/>
    <textinput rdf:resource=""/>
  </channel>
  <image rdf:about="http://gmane.org/img/gmane-25t.png">
    <title>Gmane</title>
    <url>http://gmane.org/img/gmane-25t.png</url>
    <link>http://gmane.org</link>
  </image>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.jakarta.poi.devel/22688">
    <title>Doc to Html converter. TextBoxes.</title>
    <link>http://permalink.gmane.org/gmane.comp.jakarta.poi.devel/22688</link>
    <description>&lt;pre&gt;Hello!

I use Apache POI to write a converter .doc to .html. I have a problem with
WordToHtmlConverter - its doesn't handles TextBoxes.

So, in my class, I use the method HWPFDocument.getOfficeDrawingsMain() and
get Collection&amp;lt;OfficeDrawing&amp;gt; using getOfficeDrawings(). After that, what
should I do, to get the text and images that are stored in this TextBox?

&lt;/pre&gt;</description>
    <dc:creator>Dmitry Zamula</dc:creator>
    <dc:date>2012-05-24T14:15:51</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.jakarta.poi.devel/22687">
    <title>[Bug 53282] Hyperlink with a non-breaking space throws java.lang.IllegalStateException: The hyperlink for cell A2 references relation rId2, but that didn't exist!</title>
    <link>http://permalink.gmane.org/gmane.comp.jakarta.poi.devel/22687</link>
    <description>&lt;pre&gt;https://issues.apache.org/bugzilla/show_bug.cgi?id=53282

Yegor Kozlov &amp;lt;yegor&amp;lt; at &amp;gt;dinom.ru&amp;gt; changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |NEEDINFO

--- Comment #4 from Yegor Kozlov &amp;lt;yegor&amp;lt; at &amp;gt;dinom.ru&amp;gt; ---
I can't reproduce it. 
Please try again to attach a sample file with a nbsp . 

Yegor

(In reply to comment #3)

&lt;/pre&gt;</description>
    <dc:creator>bugzilla&lt; at &gt;apache.org</dc:creator>
    <dc:date>2012-05-24T08:28:06</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.jakarta.poi.devel/22686">
    <title>Re: [POI - XLSX] Blocked when instantiate of XSSFExcelExtractor or XSSFWorkbook</title>
    <link>http://permalink.gmane.org/gmane.comp.jakarta.poi.devel/22686</link>
    <description>&lt;pre&gt;Thanks for reply.

Would you plz suggest me about how to JVM diagnostic for this poi problem.

I can't judge diagnostic technique for this problem :)

--
View this message in context: http://apache-poi.1045710.n5.nabble.com/POI-XLSX-Blocked-when-instantiate-of-XSSFExcelExtractor-or-XSSFWorkbook-tp5709878p5709913.html
Sent from the POI - Dev mailing list archive at Nabble.com.
&lt;/pre&gt;</description>
    <dc:creator>toplinuxer</dc:creator>
    <dc:date>2012-05-24T04:26:29</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.jakarta.poi.devel/22685">
    <title>[Bug 53282] Hyperlink with a non-breaking space throws java.lang.IllegalStateException: The hyperlink for cell A2 references relation rId2, but that didn't exist!</title>
    <link>http://permalink.gmane.org/gmane.comp.jakarta.poi.devel/22685</link>
    <description>&lt;pre&gt;https://issues.apache.org/bugzilla/show_bug.cgi?id=53282

lakshmi &amp;lt;lakshmi.nchandana&amp;lt; at &amp;gt;gmail.com&amp;gt; changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 OS|                            |All

--- Comment #3 from lakshmi &amp;lt;lakshmi.nchandana&amp;lt; at &amp;gt;gmail.com&amp;gt; ---
Unable to attach the excel file.

To reproduce the error, copy/paste the below in an excel file

nobody&amp;lt; at &amp;gt;nowhere.uk 
nobody&amp;lt; at &amp;gt;nowhere.com

&lt;/pre&gt;</description>
    <dc:creator>bugzilla&lt; at &gt;apache.org</dc:creator>
    <dc:date>2012-05-23T21:29:59</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.jakarta.poi.devel/22684">
    <title>[Bug 53282] Hyperlink with a non-breaking space throws java.lang.IllegalStateException: The hyperlink for cell A2 references relation rId2, but that didn't exist!</title>
    <link>http://permalink.gmane.org/gmane.comp.jakarta.poi.devel/22684</link>
    <description>&lt;pre&gt;https://issues.apache.org/bugzilla/show_bug.cgi?id=53282

--- Comment #2 from lakshmi &amp;lt;lakshmi.nchandana&amp;lt; at &amp;gt;gmail.com&amp;gt; ---
Comment on attachment 28827
  --&amp;gt; https://issues.apache.org/bugzilla/attachment.cgi?id=28827
Excel file containing the hyperlink with a non-breaking space

please ignore this attachment.

&lt;/pre&gt;</description>
    <dc:creator>bugzilla&lt; at &gt;apache.org</dc:creator>
    <dc:date>2012-05-23T21:27:39</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.jakarta.poi.devel/22683">
    <title>[Bug 53282] Hyperlink with a non-breaking space throws java.lang.IllegalStateException: The hyperlink for cell A2 references relation rId2, but that didn't exist!</title>
    <link>http://permalink.gmane.org/gmane.comp.jakarta.poi.devel/22683</link>
    <description>&lt;pre&gt;https://issues.apache.org/bugzilla/show_bug.cgi?id=53282

--- Comment #1 from lakshmi &amp;lt;lakshmi.nchandana&amp;lt; at &amp;gt;gmail.com&amp;gt; ---
Created attachment 28827
  --&amp;gt; https://issues.apache.org/bugzilla/attachment.cgi?id=28827&amp;amp;action=edit
Excel file containing the hyperlink with a non-breaking space

&lt;/pre&gt;</description>
    <dc:creator>bugzilla&lt; at &gt;apache.org</dc:creator>
    <dc:date>2012-05-23T21:24:02</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.jakarta.poi.devel/22682">
    <title>[Bug 53282] New: Hyperlink with a non-breaking space throws java.lang.IllegalStateException: The hyperlink for cell A2 references relation rId2, but that didn't exist!</title>
    <link>http://permalink.gmane.org/gmane.comp.jakarta.poi.devel/22682</link>
    <description>&lt;pre&gt;https://issues.apache.org/bugzilla/show_bug.cgi?id=53282

          Priority: P2
            Bug ID: 53282
          Assignee: dev&amp;lt; at &amp;gt;poi.apache.org
           Summary: Hyperlink with a non-breaking space throws
                    java.lang.IllegalStateException: The hyperlink for
                    cell A2 references relation rId2, but that didn't
                    exist!
          Severity: normal
    Classification: Unclassified
          Reporter: lakshmi.nchandana&amp;lt; at &amp;gt;gmail.com
          Hardware: PC
            Status: NEW
           Version: 3.8-dev
         Component: XSSF
           Product: POI

I sent this query to the POI mailing list couple of days back and was advised
to open a bug here.

I tested hyperlinks with Apache POI (3.8 version) and it throws
java.lang.IllegalStateException: The hyperlink for cell A2 references relation
rId2, but that didn't exist!
for hyperlinks with non-breaking spaces. The non-breaking space in an hyperlink
relation is not a valid java URI. These invalid characters should also be
encoded for valid URI. Looks like the issue with white space in target URI was
fixed in r1036215. 

When trying to convert such hyperlink to URI, a URISyntaxException is thrown.

Please find the attachment of the excel file including the hyperlink with a
non-breaking space. 

Below is the sample java code to demonstrate the issue.

import java.io.FileInputStream;
import java.io.IOException;

import org.apache.poi.ss.usermodel.Workbook;
import org.apache.poi.ss.usermodel.WorkbookFactory;

public class DemonstrateHyperlinkIssue {

    public static Workbook getCell(String fileName) throws Exception{

        FileInputStream input = null;
        Workbook excelDoc = null;

        try {
            input = new FileInputStream(fileName);
            excelDoc = WorkbookFactory.create(input);
            input.close();
        }
        catch(IOException e)
        {
            throw e;
        }
        finally
        {
            if (input != null) {
                input.close();
            }
        }

        return excelDoc;
    }

    public static void main(String [] args) {
        try {
            Workbook wb = getCell("C:\\pathToFile\\test.xlsx");
            System.out.println(wb);
        } catch (Exception e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
    }
}

&lt;/pre&gt;</description>
    <dc:creator>bugzilla&lt; at &gt;apache.org</dc:creator>
    <dc:date>2012-05-23T21:13:23</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.jakarta.poi.devel/22681">
    <title>Re: [POI - XLSX] Blocked when instantiate of XSSFExcelExtractor or XSSFWorkbook</title>
    <link>http://permalink.gmane.org/gmane.comp.jakarta.poi.devel/22681</link>
    <description>&lt;pre&gt;
Your file opens just fine for me, no blocking or exceptions, the code 
above just works

There must be some sort of issue with either your system or your jvm. I'd 
suggest you try some of the usual JVM diagnostic issues to try to work out 
what's going wrong on your machine

Nick
&lt;/pre&gt;</description>
    <dc:creator>Nick Burch</dc:creator>
    <dc:date>2012-05-23T17:42:29</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.jakarta.poi.devel/22680">
    <title>Re: Problems with WorkbookEvaluator.registerFunction() using German names of Excel functions</title>
    <link>http://permalink.gmane.org/gmane.comp.jakarta.poi.devel/22680</link>
    <description>&lt;pre&gt;Thanks Nick,

it is indeed as you have suggested. When I register a "built-in" 
function such as IPMT that is not yet supported by POI, then POI will 
recognize my implementation of this function. (The "built-in" functions 
must implement the Function interface in POI.)

To register the function, I used the    
WorkbookEvaluator.registerFunction("IPMT", new IPTM())    method, in 
this case.

On the other hand, when I implement a not supported function that is not 
"built-in", and belongs to the ATP (Analysis Tool Pack) of Excel, and I 
use a German version of Excel (or Open Office Calc), then POI will do 
the following:

(a) if I register my function under the English name of the function, 
for example:

WorkbookEvaluator.registerFunction("SERIESSUM", new SERIESSUM())

then POI will recognize my code and register the function. But now POI 
will not recognize that it should apply this implementation of the 
"SERIESSUM" function to the equivalent German "POTENZREIHE" function 
that it will read from the Excel file. This is because it works by 
"name" of the function, as you have suggested before. But the English 
and the German name of a function differ in these cases.

(b) if I register my function under the German name of the function, for 
example:

WorkbookEvaluator.registerFunction("POTENZREIHE", new SERIESSUM())

then POI won't register my function at all. This is because, internally, 
it works only with the English names of ATP functions, and "potenzreihe" 
is, of course, not in that list of functions that POI works with.


(c) The fact that POI works with function names for ATP functions, is 
also supported by the few functions that have the same name in the 
English and German version of Excel. For example, "DURATION" is the name 
for the English function, and for the German function, as well.

In this case, when I register my function under the English = German 
name of the function, that is,

WorkbookEvaluator.registerFunction("DURATION", new DURATION())

then POI will register my function - because it knows the English name - 
AND it will apply this implementation to the function that it finds in 
the Excel file - because it will find the German name of the function 
that it reads from the Excel file in its list of English function names 
- simply because they are both identical.

*****************************


Is there any solution to this problem?

Of course, one could "register" the German functions as user-defined 
functions (UDF), but this is not really what is intended. Is there any 
simple bypass to this problem?

Thanks for any suggestions...
Christian

Am 09.05.2012 19:30, schrieb Nick Burch:
&lt;/pre&gt;</description>
    <dc:creator>Christian</dc:creator>
    <dc:date>2012-05-23T16:59:07</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.jakarta.poi.devel/22679">
    <title>[Bug 53280] While reading xlsx file in WAS 6.1 it throws org.apache.poi.POIXMLException:java.lang.reflect.InvocationTargetException</title>
    <link>http://permalink.gmane.org/gmane.comp.jakarta.poi.devel/22679</link>
    <description>&lt;pre&gt;https://issues.apache.org/bugzilla/show_bug.cgi?id=53280

Nick Burch &amp;lt;nick.burch&amp;lt; at &amp;gt;alfresco.com&amp;gt; changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |INVALID

--- Comment #1 from Nick Burch &amp;lt;nick.burch&amp;lt; at &amp;gt;alfresco.com&amp;gt; ---
If you look a little further down your exception stacktrace, you'll see what's
wrong:

Caused by: java.lang.NoClassDefFoundError:
org.openxmlformats.schemas.spreadsheetml.x2006.main.CTPhoneticRun

This is covered in the FAQ: http://poi.apache.org/faq.html#faq-N10025

If you're able to provide the unit test needed to have your new part of the
schemas included as standard, please re-open the bug and attach the test

&lt;/pre&gt;</description>
    <dc:creator>bugzilla&lt; at &gt;apache.org</dc:creator>
    <dc:date>2012-05-23T14:17:50</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.jakarta.poi.devel/22678">
    <title>[Bug 53280] New: While reading xlsx file in WAS 6.1 it throws org.apache.poi.POIXMLException:java.lang.reflect.InvocationTargetException</title>
    <link>http://permalink.gmane.org/gmane.comp.jakarta.poi.devel/22678</link>
    <description>&lt;pre&gt;https://issues.apache.org/bugzilla/show_bug.cgi?id=53280

          Priority: P2
            Bug ID: 53280
          Assignee: dev&amp;lt; at &amp;gt;poi.apache.org
           Summary: While reading xlsx file in WAS 6.1 it throws
                    org.apache.poi.POIXMLException:java.lang.reflect.Invoc
                    ationTargetException
          Severity: critical
    Classification: Unclassified
                OS: Windows XP
          Reporter: ankur8819&amp;lt; at &amp;gt;gmail.com
          Hardware: PC
            Status: NEW
           Version: 3.8
         Component: XSSF
           Product: POI

Created attachment 28823
  --&amp;gt; https://issues.apache.org/bugzilla/attachment.cgi?id=28823&amp;amp;action=edit
Stack Trace for the Exception

Hi,
While reading a xlsx file using POI3.8 .I am getting an Exception.
org.apache.poi.POIXMLException: java.lang.reflect.InvocationTargetException

The same code woks fine with Tomcat Server but fails with WAS6.1.I am
suspecting some library conflict.

Below is my class path.
poi-3.8-20120326.jar
xmlbeans-2.3.0.jar
poi-ooxml-3.8-20120326.jar
poi-excelant-3.8-20120326.jar
stax-api-1.0.1.jar
dom4j-1.6.1.jar
poi-ooxml-schemas-3.8-20120326.jar

Below is the source code 
InputStream iStream=null;
FormBeanExcel ex= (FormBeanExcel)form;
Workbook workbook = null;
Sheet worksheet = null;
try {
iStream = ex.getTestFile().getInputStream();
workbook = WorkbookFactory.create(iStream); //It breaks at this point
} catch (Exception e) {
System.out.println("Eception");
e.printStackTrace();
}


Please Suggest .

&lt;/pre&gt;</description>
    <dc:creator>bugzilla&lt; at &gt;apache.org</dc:creator>
    <dc:date>2012-05-23T14:09:08</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.jakarta.poi.devel/22677">
    <title>[Bug 53278] New: HSLF SlideShow write() leeds to java.lang.ArrayIndexOutOfBoundsException</title>
    <link>http://permalink.gmane.org/gmane.comp.jakarta.poi.devel/22677</link>
    <description>&lt;pre&gt;https://issues.apache.org/bugzilla/show_bug.cgi?id=53278

          Priority: P2
            Bug ID: 53278
          Assignee: dev&amp;lt; at &amp;gt;poi.apache.org
           Summary: HSLF SlideShow write() leeds to
                    java.lang.ArrayIndexOutOfBoundsException
          Severity: blocker
    Classification: Unclassified
                OS: All
          Reporter: mendle&amp;lt; at &amp;gt;gmx.de
          Hardware: All
            Status: NEW
           Version: 3.8
         Component: HSLF
           Product: POI

From Version 3.8 up to the current 3.9-beta1 the write() function of SlideShow
results in an ArrayIndexOutOfBoundsException.

The SlideShow is created from an array of bytes containing a valid excel file,
and then even without modification if the write() function is called (for
streaming to the client) the exception occurs. With final version 3.7
everything is fine.

What is done:

SlideShow ppt = new SlideShow(
    new ByteArrayInputStream(byte[] data)  // data containing valid ppt file
);

ByteArrayOutputStream out = new ByteArrayOutputStream();
ppt.write(out);

&lt;/pre&gt;</description>
    <dc:creator>bugzilla&lt; at &gt;apache.org</dc:creator>
    <dc:date>2012-05-23T09:55:22</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.jakarta.poi.devel/22676">
    <title>[POI - XLSX] Blocked when instantiate of XSSFExcelExtractor or XSSFWorkbook</title>
    <link>http://permalink.gmane.org/gmane.comp.jakarta.poi.devel/22676</link>
    <description>&lt;pre&gt;Hi~
 
 
when I instantiate XSSFWorkbook or XSSFExcelExtractor for getText().
 
New instantiate about them is blocked with linked XSLX file. -----&amp;gt;
http://bit.ly/JU6Ujl
(no error, no exception, just blocked..)
 
I write code like below
 
#
# case 1
#
OPCPackage pkg = OPCPackage.open(fileName);
 
// blocked below code, no exception.. no response..
XSSFExcelExtractor ext = new XSSFExcelExtractor(pkg);
String fullText = ext.getText();
 
#
# case 2
#
OPCPackage pkg = OPCPackage.open(fileName);
 
// blocked below code, no exception.. no response..
XSSFWorkbook wb = new XSSFWorkbook(pkg);
XSSFExcelExtractor ext = new XSSFExcelExtractor(wb);
String fullText = ext.getText();
 
 
 
I will attach problem occurred Excel File. (1.xlsx)
 
Would you please quick answer about this problem.. I got critical issue
about that.
 
I use poi-3.8 / windows 7 64bit / 32bit jdk 6 and 7
 
Thanks.

--
View this message in context: http://apache-poi.1045710.n5.nabble.com/POI-XLSX-Blocked-when-instantiate-of-XSSFExcelExtractor-or-XSSFWorkbook-tp5709878.html
Sent from the POI - Dev mailing list archive at Nabble.com.
&lt;/pre&gt;</description>
    <dc:creator>toplinuxer</dc:creator>
    <dc:date>2012-05-23T04:18:39</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.jakarta.poi.devel/22675">
    <title>Re: DO NOT REPLY [Bug 50154] POI corrupts file when hyperlink relation is not valid java.util.URI</title>
    <link>http://permalink.gmane.org/gmane.comp.jakarta.poi.devel/22675</link>
    <description>&lt;pre&gt;Did you try with the latest POI-3.8 ? If the problem is still there,
can you create a new bug in Bugzilla and attach a sample file with a
non-breaking space and Java code that demonstrates the problem?

This way we record the issue and will not forget about it.

Yegor

On Wed, May 23, 2012 at 2:09 AM, lakshmi &amp;lt;lakshmi.nidadavolu&amp;lt; at &amp;gt;yahoo.com&amp;gt; wrote:
&lt;/pre&gt;</description>
    <dc:creator>Yegor Kozlov</dc:creator>
    <dc:date>2012-05-23T08:18:13</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.jakarta.poi.devel/22674">
    <title>[Bug 49765] addPictures() not displaying Image in XWPF</title>
    <link>http://permalink.gmane.org/gmane.comp.jakarta.poi.devel/22674</link>
    <description>&lt;pre&gt;https://issues.apache.org/bugzilla/show_bug.cgi?id=49765

--- Comment #26 from Romesh Soni &amp;lt;soni.romesh&amp;lt; at &amp;gt;gmail.com&amp;gt; ---
Created attachment 28822
  --&amp;gt; https://issues.apache.org/bugzilla/attachment.cgi?id=28822&amp;amp;action=edit
Sample code

Call the CustomXWPFDocument.java like this:

import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;

import org.apache.poi.openxml4j.exceptions.InvalidFormatException;
import org.apache.poi.xwpf.usermodel.Document;
import org.apache.poi.xwpf.usermodel.XWPFDocument;

/*
Romesh Soni
soni.romesh&amp;lt; at &amp;gt;gmail.com
*/

public class TestCustom {

    public static void main(String []a) throws FileNotFoundException,
IOException, InvalidFormatException
    {

        CustomXWPFDocument document = new CustomXWPFDocument(new
FileInputStream(new File("c://Economic.docx")));
        FileOutputStream fos = new FileOutputStream(new
File("C:\\updatedTemplate.docx"));

        String blipId = document.addPictureData(new FileInputStream(new
File("c:\\Most_famous_Caves_of_the_Dordogne_Private_p_4.jpg")),
Document.PICTURE_TYPE_JPEG);

       
System.out.println(document.getNextPicNameNumber(Document.PICTURE_TYPE_JPEG));

       
//System.out.println(document.getNextPicNameNumber(Document.PICTURE_TYPE_JPEG));
       
document.createPicture(blipId,document.getNextPicNameNumber(Document.PICTURE_TYPE_JPEG),
500, 500);


        document.write(fos);
        fos.flush();
        fos.close();

    }

}

&lt;/pre&gt;</description>
    <dc:creator>bugzilla&lt; at &gt;apache.org</dc:creator>
    <dc:date>2012-05-23T06:44:25</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.jakarta.poi.devel/22673">
    <title>Re: DO NOT REPLY [Bug 50154] POI corrupts file when hyperlink relation is not valid java.util.URI</title>
    <link>http://permalink.gmane.org/gmane.comp.jakarta.poi.devel/22673</link>
    <description>&lt;pre&gt;http://apache-poi.1045710.n5.nabble.com/file/n5709875/test.xlsx test.xlsx 
Hi,

I tested a hyperlink with the fix that has a non-breaking space, its also
not a valid java.util.URI.
The hyperlink with a non-breaking space is not being encoded in the
PackagingURIHelper.toURI(value). The non-breaking space which is an invalid
character should be encoded to be a valid java.util.URI.

Example of a non-breaking space is "nobody&amp;lt; at &amp;gt;nowhere.uk ". It looks like a
regular space but its a non-breaking space. The uploaded file test.xlsx
includes this hyperlink. 

--
View this message in context: http://apache-poi.1045710.n5.nabble.com/DO-NOT-REPLY-Bug-50154-New-POIFS-save-losing-drawing-part-tp3236279p5709875.html
Sent from the POI - Dev mailing list archive at Nabble.com.
&lt;/pre&gt;</description>
    <dc:creator>lakshmi</dc:creator>
    <dc:date>2012-05-22T22:09:10</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.jakarta.poi.devel/22672">
    <title>[Bug 53275] New: XSSFColor.setColor requires to clear previously set 'indexed' flag if color is non-indexed (theme) color</title>
    <link>http://permalink.gmane.org/gmane.comp.jakarta.poi.devel/22672</link>
    <description>&lt;pre&gt;https://issues.apache.org/bugzilla/show_bug.cgi?id=53275

          Priority: P2
            Bug ID: 53275
          Assignee: dev&amp;lt; at &amp;gt;poi.apache.org
           Summary: XSSFColor.setColor requires to clear previously set
                    'indexed' flag if color is non-indexed (theme) color
          Severity: normal
    Classification: Unclassified
          Reporter: andrei.astrouski&amp;lt; at &amp;gt;gmail.com
          Hardware: PC
            Status: NEW
           Version: 3.8
         Component: XSSF
           Product: POI

Patch:

public void setColor(XSSFColor color) {
        if(color == null) _ctFont.setColorArray(null);
        else {
            CTColor ctColor = _ctFont.sizeOfColorArray() == 0 ?
_ctFont.addNewColor() : _ctFont.getColorArray(0);
            if (ctColor.isSetIndexed()) {
                ctColor.unsetIndexed();
            }
            ctColor.setRgb(color.getRgb());
        }
    }

&lt;/pre&gt;</description>
    <dc:creator>bugzilla&lt; at &gt;apache.org</dc:creator>
    <dc:date>2012-05-22T16:43:03</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.jakarta.poi.devel/22671">
    <title>[Bug 53274] New: XSSFColor.getRgbWithTint() return white color for black and vice versa</title>
    <link>http://permalink.gmane.org/gmane.comp.jakarta.poi.devel/22671</link>
    <description>&lt;pre&gt;https://issues.apache.org/bugzilla/show_bug.cgi?id=53274

          Priority: P2
            Bug ID: 53274
          Assignee: dev&amp;lt; at &amp;gt;poi.apache.org
           Summary: XSSFColor.getRgbWithTint() return white color for
                    black and vice versa
          Severity: normal
    Classification: Unclassified
          Reporter: andrei.astrouski&amp;lt; at &amp;gt;gmail.com
          Hardware: PC
            Status: NEW
           Version: 3.8
         Component: XSSF
           Product: POI

ctColor.getRgb() returns the white instead of black and the black instead of
white. In getRgb() this issue is fixed.

Patch:

public byte[] getRgbWithTint() {
        byte[] rgb = getRgb();
        double tint = ctColor.getTint();
        if (rgb != null &amp;amp;&amp;amp; tint != 0) {
            for (int i = 0; i &amp;lt; rgb.length; i++){
                rgb[i] = applyTint(rgb[i] &amp;amp; 0xFF, tint);
            }
        }
        return rgb;
    }

&lt;/pre&gt;</description>
    <dc:creator>bugzilla&lt; at &gt;apache.org</dc:creator>
    <dc:date>2012-05-22T16:38:18</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.jakarta.poi.devel/22670">
    <title>[Bug 53273] New: CellStyle interface doesn't contain methods that return border Color object (like CellStyle.getFillBackgroundColorColor)</title>
    <link>http://permalink.gmane.org/gmane.comp.jakarta.poi.devel/22670</link>
    <description>&lt;pre&gt;https://issues.apache.org/bugzilla/show_bug.cgi?id=53273

          Priority: P2
            Bug ID: 53273
          Assignee: dev&amp;lt; at &amp;gt;poi.apache.org
           Summary: CellStyle interface doesn't contain methods that
                    return border Color object (like
                    CellStyle.getFillBackgroundColorColor)
          Severity: normal
    Classification: Unclassified
          Reporter: andrei.astrouski&amp;lt; at &amp;gt;gmail.com
          Hardware: PC
            Status: NEW
           Version: 3.8
         Component: POI Overall
           Product: POI

So working with the model, we can't get the color of border

&lt;/pre&gt;</description>
    <dc:creator>bugzilla&lt; at &gt;apache.org</dc:creator>
    <dc:date>2012-05-22T16:32:38</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.jakarta.poi.devel/22669">
    <title>[Bug 53272] New: Font interface doesn't contain method that returns Color object (like CellStyle.getFillBackgroundColorColor)</title>
    <link>http://permalink.gmane.org/gmane.comp.jakarta.poi.devel/22669</link>
    <description>&lt;pre&gt;https://issues.apache.org/bugzilla/show_bug.cgi?id=53272

          Priority: P2
            Bug ID: 53272
          Assignee: dev&amp;lt; at &amp;gt;poi.apache.org
           Summary: Font interface doesn't contain method that returns
                    Color object (like
                    CellStyle.getFillBackgroundColorColor)
          Severity: normal
    Classification: Unclassified
          Reporter: andrei.astrouski&amp;lt; at &amp;gt;gmail.com
          Hardware: PC
            Status: NEW
           Version: 3.8
         Component: POI Overall
           Product: POI

So working with the model, we can't get the color

&lt;/pre&gt;</description>
    <dc:creator>bugzilla&lt; at &gt;apache.org</dc:creator>
    <dc:date>2012-05-22T16:30:38</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.jakarta.poi.devel/22668">
    <title>[Bug 53271] New: Remove unconditional assert in SXSSFRow.getCell(int, MissingCellPolicy)</title>
    <link>http://permalink.gmane.org/gmane.comp.jakarta.poi.devel/22668</link>
    <description>&lt;pre&gt;https://issues.apache.org/bugzilla/show_bug.cgi?id=53271

          Priority: P2
            Bug ID: 53271
          Assignee: dev&amp;lt; at &amp;gt;poi.apache.org
           Summary: Remove unconditional assert in SXSSFRow.getCell(int,
                    MissingCellPolicy)
          Severity: normal
    Classification: Unclassified
          Reporter: adam&amp;lt; at &amp;gt;labkey.com
          Hardware: PC
            Status: NEW
           Version: 3.8
         Component: SXSSF
           Product: POI

The first line of this method is:

    assert false;

...which makes it unusable when asserts are enabled.

Per Yegor Kozlov, "This particular assert means that SXSSFRow.getCell(int,
MissingCellPolicy) is not yet covered by unit tests and *may* not be compatible
with XSSF. This line will be removed in the future. Can you create a request in
POI Bugzilla so that we don't forget about it?"

FWIW, I've switched to SXSSF in our application (LabKey Server) and disabled
asserts, and our use of this method seems to work fine.

Workaround is to disable asserts, for example:

SXSSFRow.class.getClassLoader().setClassAssertionStatus(SXSSFRow.class.getName(),
false);

&lt;/pre&gt;</description>
    <dc:creator>bugzilla&lt; at &gt;apache.org</dc:creator>
    <dc:date>2012-05-22T16:18:28</dc:date>
  </item>
  <textinput rdf:about="http://search.gmane.org/?group=$group=gmane.comp.jakarta.poi.devel">
    <title>Search Engine</title>
    <description>Search the mailing list at Gmane</description>
    <name>query</name>
    <link>http://search.gmane.org/?group=$group=gmane.comp.jakarta.poi.devel</link>
  </textinput>
</rdf:RDF>

