You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@poi.apache.org by "Zhaojia(George) Zeng" <zz...@bglcorp.com.au> on 2012/04/03 13:24:59 UTC

when using api of ooxml occurred NoClassDefFoundError

Hi, i'm using poi-ooxml-3.8 and get this error below when using the code
'doc.getParagraphs().get(0).getRuns().get(0).getCTR().getLastRenderedPageBreakList().size()'
Has the api still not been finished?

java.lang.NoClassDefFoundError:
org/openxmlformats/schemas/wordprocessingml/x2006/main/impl/CTRImpl$1LastRenderedPageBreakList
at
org.openxmlformats.schemas.wordprocessingml.x2006.main.impl.CTRImpl.getLastRenderedPageBreakList(Unknown
Source)
at
au.com.bglcorp.word2jasper.test.WordProcesseTestCase.extractDoc(WordProcesseTestCase.java:78)
at
au.com.bglcorp.word2jasper.test.WordProcesseTestCase.test(WordProcesseTestCase.java:22)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
at
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
at
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
at
org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
at
org.junit.runners.BlockJUnit4ClassRunner.runNotIgnored(BlockJUnit4ClassRunner.java:79)
at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:71)
at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:49)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
at
org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
at
org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
Caused by: java.lang.ClassNotFoundException:
org.openxmlformats.schemas.wordprocessingml.x2006.main.impl.CTRImpl$1LastRenderedPageBreakList
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 26 more


-- 
*Zhaojia Zeng*
 *BGL.*
 *zzeng@bglcorp.com.au · web: www.bglcorp.com.au*

 BGL Corporate Solutions Pty. Ltd   ACN 054 355 243
 PO Box 8063  · East Brighton VIC 3187 · Australia
 T: +61 (0)3 9530 6077  · F: +61 (0)3 9530 6964
 au: 1300 654 401 · hk: 800 933 545 · sg: 800 6162 148 · nz: 0800 444 408 ·
uk: 0800 028 3491

 Disclaimer: The information transmitted is intended only for the person or
entity to which it is addressed and may contain confidential and/or
privileged material.
 Any Review, retransmission, dissemination or other use if, or taking of
any action in reliance upon, this information by persons or entities other
than the intended
 recipient is prohibited.If you received this in error, please contact the
sender and delete the material from any computer.

 Except as required at law, BGL Corporate Solutions Pty Ltd does not
represent, warrant and/or guarantee that the integrity of the this
communication has been
 maintained nor that the communication is free of errors, virus,
interception or interference.

 Join or follow us for upcoming news and exclusive deals.
*
Facebook  <http://www.facebook.com/pages/BGL/82051197835>
**Twitter<http://twitter.com/bgldot>
  Blog <http://ronlesh.wordpress.com/>*

Re: when using api of ooxml occurred NoClassDefFoundError

Posted by Nick Burch <ni...@alfresco.com>.
On Tue, 3 Apr 2012, Zhaojia(George) Zeng wrote:
> Hi, i'm using poi-ooxml-3.8 and get this error below when using the code 
> 'doc.getParagraphs().get(0).getRuns().get(0).getCTR().getLastRenderedPageBreakList().size()'

See the FAQ - http://poi.apache.org/faq.html#faq-N10025

Nick

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