poi-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shiva Kumar" <shiv...@pawaa.com>
Subject java.lang.reflect.InvocationTargetException in pptx conversion using poi
Date Fri, 08 May 2015 08:49:08 GMT
Hi amazing poi developer,

If you feel this is a length question please it's not please don't reject
this.

 

I used the class that I have attached for ppt and pptx conversion.

When trying to convert a file sample that I have attached. I got below
exception.

I debug the code and I got to know this.

a)      The problem is if in three gradient stops if any two in my case
stop1 and stop2 is same the java.awt.MultipleGradientPaint throws exception.

 

Please give me a solution. Is there any class that I can override solve the
issue if not possible please take this as a bug report and solve this.

 

org.apache.poi.POIXMLException: org.apache.poi.POIXMLException:
java.lang.reflect.InvocationTargetException

                at
org.apache.poi.xslf.usermodel.XMLSlideShow.<init>(XMLSlideShow.java:89)

                at
org.apache.poi.xslf.usermodel.XMLSlideShow.<init>(XMLSlideShow.java:94)

                at
com.pawaa.conversion.ppttopdf.PPtConversion.convertPPTX(PPtConversion.java:8
7)

                at
com.pawaa.conversion.ppttopdf.PPtConverter.convert(PPtConverter.java:22)

                at
com.pawaa.conversion.main.PawaaConverter.convert(PawaaConverter.java:27)

                at
com.pawaa.conversion.test.TestAIOConversion.testIt(TestAIOConversion.java:22
)

                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)

                at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57
)

                at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:43)

                at java.lang.reflect.Method.invoke(Method.java:601)

                at
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.
java:47)

                at
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.j
ava:12)

                at
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.ja
va:44)

                at
org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.jav
a:17)

                at
org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)

                at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.jav
a:70)

                at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.jav
a:50)

                at
org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)

                at
org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)

                at
org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)

                at
org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)

                at
org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)

                at org.junit.runners.ParentRunner.run(ParentRunner.java:309)

                at
org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestRef
erence.java:50)

                at
org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:3
8)

                at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRu
nner.java:459)

                at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRu
nner.java:675)

                at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.
java:382)

                at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner
.java:192)

Caused by: org.apache.poi.POIXMLException:
java.lang.reflect.InvocationTargetException

                at
org.apache.poi.xslf.usermodel.XSLFFactory.createDocumentPart(XSLFFactory.jav
a:66)

                at
org.apache.poi.POIXMLDocumentPart.read(POIXMLDocumentPart.java:427)

                at
org.apache.poi.POIXMLDocument.load(POIXMLDocument.java:162)

                at
org.apache.poi.xslf.usermodel.XMLSlideShow.<init>(XMLSlideShow.java:87)

                ... 28 more

Caused by: java.lang.reflect.InvocationTargetException

                at
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

                at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAcces
sorImpl.java:57)

                at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstruc
torAccessorImpl.java:45)

                at
java.lang.reflect.Constructor.newInstance(Constructor.java:525)

                at
org.apache.poi.xslf.usermodel.XSLFFactory.createDocumentPart(XSLFFactory.jav
a:64)

                ... 31 more

Caused by: java.lang.NoClassDefFoundError:
org/openxmlformats/schemas/presentationml/x2006/main/SldMasterDocument$Facto
ry

                at
org.apache.poi.xslf.usermodel.XSLFSlideMaster.<init>(XSLFSlideMaster.java:68
)

                ... 36 more

Caused by: java.lang.ClassNotFoundException:
org.openxmlformats.schemas.presentationml.x2006.main.SldMasterDocument$Facto
ry

                at java.net.URLClassLoader$1.run(URLClassLoader.java:366)

                at java.net.URLClassLoader$1.run(URLClassLoader.java:355)

                at java.security.AccessController.doPrivileged(Native
Method)

                at
java.net.URLClassLoader.findClass(URLClassLoader.java:354)

                at java.lang.ClassLoader.loadClass(ClassLoader.java:423)

                at
sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)

                at java.lang.ClassLoader.loadClass(ClassLoader.java:356)

                ... 37 more

 


Mime
View raw message