You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by bu...@apache.org on 2012/09/24 06:09:12 UTC

[Bug 53925] New: ClassNotFoundException:CTTextParagraphImpl$1RList

https://issues.apache.org/bugzilla/show_bug.cgi?id=53925

          Priority: P2
            Bug ID: 53925
          Assignee: dev@poi.apache.org
           Summary: ClassNotFoundException:CTTextParagraphImpl$1RList
          Severity: normal
    Classification: Unclassified
          Reporter: zhyang@yeah.net
          Hardware: PC
            Status: NEW
           Version: 3.8
         Component: XSSF
           Product: POI

OPCPackage pptPackage = OPCPackage.open(fis);

XMLSlideShow xmlSlideShow = new XMLSlideShow(pptPackage);
XSLFSlide slides[] = xmlSlideShow.getSlides();

for (XSLFSlide slide : slides)
{
    CTSlide rowSlide = slide.getXmlObject();
    CTGroupShape gs = rowSlide.getCSld().getSpTree();
    List<CTShape> shapes = gs.getSpList();
    for (CTShape shape : shapes)
    {
        CTTextBody tp = shape.getTxBody();
        if (null == tp)
        {
            continue;
        }
        List<CTTextParagraph> paras = tp.getPList();
        for (CTTextParagraph para : paras)
        {
            //CTRegularTextRun[] textRuns = para.getRArray();
            List<CTRegularTextRun> textRuns =para.getRList();
            for (CTRegularTextRun textRun : textRuns)
            {
                content.append(textRun.getT());
            }
        }
    }
}
///////
When the code run to the line:
List<CTRegularTextRun> textRuns =para.getRList();

There throw an exception:

Caused by: java.lang.ClassNotFoundException:
org.openxmlformats.schemas.drawingml.x2006.main.impl.CTTextParagraphImpl$1RList
    at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
    ... 2 more

-- 
You are receiving this mail because:
You are the assignee for the bug.

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


[Bug 53925] ClassNotFoundException:CTTextParagraphImpl$1RList

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=53925

Nick Burch <ap...@gagravarr.org> changed:

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

--- Comment #1 from Nick Burch <ap...@gagravarr.org> ---
Please see the FAQ for why this is happening, what a short term workaround is,
and what the long term fix is. http://poi.apache.org/faq.html#faq-N10025

-- 
You are receiving this mail because:
You are the assignee for the bug.

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


[Bug 53925] ClassNotFoundException:CTTextParagraphImpl$1RList

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=53925

Yegor Kozlov <ye...@dinom.ru> changed:

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

--- Comment #2 from Yegor Kozlov <ye...@dinom.ru> ---
Please try with the latest build from trunk. I recently updated XLSF tests to
cover CTTextParagraphImpl$1RList. 

Yegor

-- 
You are receiving this mail because:
You are the assignee for the bug.

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


[Bug 53925] ClassNotFoundException:CTTextParagraphImpl$1RList

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=53925

--- Comment #3 from Yegor Kozlov <ye...@dinom.ru> ---
*** Bug 53926 has been marked as a duplicate of this bug. ***

-- 
You are receiving this mail because:
You are the assignee for the bug.

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