# Error opening SVG with PShape

**URL:** <https://discourse.processing.org/t/error-opening-svg-with-pshape/23902>\
**Category:** Processing\
**Created:** [September 16, 2020, 11:06pm UTC](https://discourse.processing.org/t/error-opening-svg-with-pshape/23902 "2020-09-16T23:06:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zabot](https://avatars.discourse-cdn.com/v4/letter/z/8797f3/32.png) [@Zabot](https://discourse.processing.org/u/Zabot)\
**Post date:** [September 16, 2020, 11:06pm UTC](https://discourse.processing.org/t/error-opening-svg-with-pshape/23902/1 "2020-09-16T23:06:02Z")

</div>

Hello, I’m getting started with PShape with SVG exported from Illustrator, but i keep always receiving the following error message:

java.lang.RuntimeException: java.lang.reflect.InvocationTargetException  
at processing.core.PApplet.runSketch(PApplet.java:10852)  
at processing.core.PApplet.main(PApplet.java:10620)  
Caused by: java.lang.reflect.InvocationTargetException  
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)  
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)  
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)  
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)  
RuntimeException: java.lang.reflect.InvocationTargetException  
at processing.core.PApplet.runSketch(PApplet.java:10846)  
… 1 more  
Caused by: java.lang.NullPointerException  
at processing.core.PApplet.loadShape(PApplet.java:11681)  
at Pong.(Pong.java:20)  
… 6 more

Does anybody know why does it appears?

---

<div class="post-metadata">

**Author:** ![noel](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/noel/32/213_2.png) [@noel](https://discourse.processing.org/u/noel)\
**Post date:** [September 17, 2020, 11:30am UTC](https://discourse.processing.org/t/error-opening-svg-with-pshape/23902/2 "2020-09-17T11:30:44Z")

</div>

Hi @Zabot  
How and where did you actually import the svg?
