Burp Suite User Forum

Create new post

Burp 1.7.29 fails to create a project

Someone | Last updated: Nov 24, 2017 11:00AM UTC

BurpSuite Pro fails to create a new project on a updated Kali 2017.3. The error message in the GUI is "Failed to create Burp project: ExceptionInInitializeError" root@kali:/opt# java -version openjdk version "1.8.0_151" OpenJDK Runtime Environment (build 1.8.0_151-8u151-b12-1-b12) OpenJDK 64-Bit Server VM (build 25.151-b12, mixed mode) root@kali:/opt# ls -lah burpsuite_pro_v1.7.29.jar -rwxrwxrwx 1 root root 27M Nov 24 11:53 burpsuite_pro_v1.7.29.jar root@kali:/opt# java -jar burpsuite_pro_v1.7.29.jar java.lang.RuntimeException: cannot load system cursor: CopyDrop.32x32 at sun.awt.X11.XToolkit.lazilyLoadDesktopProperty(XToolkit.java:1541) at java.awt.Toolkit.getDesktopProperty(Toolkit.java:1803) at java.awt.dnd.DragSource.load(DragSource.java:131) at java.awt.dnd.DragSource.<clinit>(DragSource.java:148) at burp.mcg.a(Unknown Source) at burp.zcg.<init>(Unknown Source) at burp.d8f.a(Unknown Source) at burp.jef.a(Unknown Source) at burp.jef.doInBackground(Unknown Source) at javax.swing.SwingWorker$1.call(SwingWorker.java:295) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at javax.swing.SwingWorker.run(SwingWorker.java:334) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) Caused by: java.awt.AWTException: Exception: class java.lang.IllegalArgumentException Width (0) and height (0) must be non-zero occurred while creating cursor CopyDrop.32x32 at java.awt.Cursor.getSystemCustomCursor(Cursor.java:363) at sun.awt.X11.XToolkit.lazilyLoadDesktopProperty(XToolkit.java:1539) ... 14 more The same occurs if I start it with more RAM: java -jar -Xmx2G burpsuite_pro_v1.7.29.jar

PortSwigger Agent | Last updated: Nov 24, 2017 11:02AM UTC

Hi, Thanks for your message. First off, we recommend using Oracle Java, instead of OpenJDK. If you download the Burp Platform Installer, this has Oracle Java embedded within it. Where were you trying to create the project? It is a memory-mapped file, which can't be used on some file systems (network shares, virtual guest/host shares, etc.) Also, check you have write permissions and plenty of free disk space. Please let us know if you need any further assistance.

Burp User | Last updated: Nov 24, 2017 11:56AM UTC

The same applies to the Burp Platform Installed application: root@kali:/opt/BurpSuitePro# ls -lah total 27M drwxr-xr-x 4 root root 4.0K Nov 24 12:50 . drwxr-xr-x 5 root root 4.0K Nov 24 12:50 .. -rwxr-xr-x 1 root root 13K Nov 20 09:12 BurpSuitePro -rwxr-xr-x 1 root root 207 Nov 24 12:50 'Burp Suite Professional.desktop' -rw-r--r-- 1 root root 27M Nov 20 09:12 burpsuite_pro.jar -rw-r--r-- 1 root root 253 Nov 24 12:50 BurpSuitePro.vmoptions drwxr-xr-x 2 root root 4.0K Nov 24 12:50 .install4j drwxr-xr-x 6 root root 4.0K Nov 24 12:50 jre -rwx------ 1 root root 14K Nov 20 09:12 uninstall root@kali:/opt/BurpSuitePro# ./BurpSuitePro java.lang.RuntimeException: cannot load system cursor: CopyDrop.32x32 at sun.awt.X11.XToolkit.lazilyLoadDesktopProperty(XToolkit.java:1541) at java.awt.Toolkit.getDesktopProperty(Toolkit.java:1803) at java.awt.dnd.DragSource.load(DragSource.java:131) at java.awt.dnd.DragSource.<clinit>(DragSource.java:148) at burp.mcg.a(Unknown Source) at burp.zcg.<init>(Unknown Source) at burp.d8f.a(Unknown Source) at burp.jef.a(Unknown Source) at burp.jef.doInBackground(Unknown Source) at javax.swing.SwingWorker$1.call(SwingWorker.java:295) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at javax.swing.SwingWorker.run(SwingWorker.java:334) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Caused by: java.awt.AWTException: Exception: class java.lang.IllegalArgumentException Width (0) and height (0) must be non-zero occurred while creating cursor CopyDrop.32x32 at java.awt.Cursor.getSystemCustomCursor(Cursor.java:363) at sun.awt.X11.XToolkit.lazilyLoadDesktopProperty(XToolkit.java:1539) ... 14 more The error in the GUI states: "Failed to create Burp project: could not initialize class.java.awt.dnd.DragSource" I've tried to create a temporary project and a project on disk in the home folder of the user, which is read/writeable and no network shares or virtual guest/host shares. I have read/write permissions on all related files and plenty of free disk space (42GB).

PortSwigger Agent | Last updated: Nov 24, 2017 12:00PM UTC

Hi, Thanks for following up. Are you running in a virtual machine? You may need to update Guest Additions or VMWare Tools. This has fixed a similar issue for some users. Also, try these command line options to Java: -Dsun.java2d.xrender=false -Dsun.java2d.d3d=false If you're still having difficulty please tell me the exact versions of your OS, Java and Burp, and include some screenshots.

Burp User | Last updated: Nov 24, 2017 12:18PM UTC

The Java commands you've suggested don't seem to work for me, neither with the Oracle JRE nor with the OpenJRE - the JREs just print the help screen. I am running Burp in a VirtualBox VM, with the latest guest additions. OS: Kali 2017.3 Rolling (w/ latest updates and VirtualBox Guest Additions) Java (with the plain .jar): OpenJDK Runtime Environment (build 1.8.0_151-8u151-b12-1-b12) Java (with the Burp Platform Installer): Java(TM) SE Runtime Environment (build 1.8.0_112-b15) Burp: Burp Pro 1.7.29, tested and the same error occurs for Burp Pro 1.7.0.7. Screenshots of errors when creating a temporary project or a project stored on disk: - https://i.imgur.com/Hlvgp2F.png - https://i.imgur.com/B9r0mmd.png

PortSwigger Agent | Last updated: Nov 24, 2017 12:18PM UTC

Thanks for the follow up info. I forgot to ask for one more thing - your debug ID. It's in User options > Misc > Performance Feedback. We'll attempt to reproduce your issue here. In the meantime, you could use Save State instead of a Project.

Burp User | Last updated: Nov 24, 2017 12:22PM UTC

Sorry about the suggested Java commands. They work but result in the same error: OpenJDK root@kali:/opt# java -Dsun.java2d.xrender=false -Dsun.java2d.d3d=false -jar burpsuite_pro_v1.7.29.jar java.lang.RuntimeException: cannot load system cursor: CopyDrop.32x32 at sun.awt.X11.XToolkit.lazilyLoadDesktopProperty(XToolkit.java:1541) at java.awt.Toolkit.getDesktopProperty(Toolkit.java:1803) at java.awt.dnd.DragSource.load(DragSource.java:131) at java.awt.dnd.DragSource.<clinit>(DragSource.java:148) at burp.mcg.a(Unknown Source) at burp.zcg.<init>(Unknown Source) at burp.d8f.a(Unknown Source) at burp.jef.a(Unknown Source) at burp.jef.doInBackground(Unknown Source) at javax.swing.SwingWorker$1.call(SwingWorker.java:295) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at javax.swing.SwingWorker.run(SwingWorker.java:334) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) Caused by: java.awt.AWTException: Exception: class java.lang.IllegalArgumentException Width (0) and height (0) must be non-zero occurred while creating cursor CopyDrop.32x32 at java.awt.Cursor.getSystemCustomCursor(Cursor.java:363) at sun.awt.X11.XToolkit.lazilyLoadDesktopProperty(XToolkit.java:1539) ... 14 more --------- Oracle Java: root@kali:/opt# BurpSuitePro/jre/bin/java -Dsun.java2d.xrender=false -Dsun.java2d.d3d=false -jar burpsuite_pro_v1.7.29.jar java.lang.RuntimeException: cannot load system cursor: CopyDrop.32x32 at sun.awt.X11.XToolkit.lazilyLoadDesktopProperty(XToolkit.java:1541) at java.awt.Toolkit.getDesktopProperty(Toolkit.java:1803) at java.awt.dnd.DragSource.load(DragSource.java:131) at java.awt.dnd.DragSource.<clinit>(DragSource.java:148) at burp.mcg.a(Unknown Source) at burp.zcg.<init>(Unknown Source) at burp.d8f.a(Unknown Source) at burp.jef.a(Unknown Source) at burp.jef.doInBackground(Unknown Source) at javax.swing.SwingWorker$1.call(SwingWorker.java:295) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at javax.swing.SwingWorker.run(SwingWorker.java:334) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Caused by: java.awt.AWTException: Exception: class java.lang.IllegalArgumentException Width (0) and height (0) must be non-zero occurred while creating cursor CopyDrop.32x32 at java.awt.Cursor.getSystemCustomCursor(Cursor.java:363) at sun.awt.X11.XToolkit.lazilyLoadDesktopProperty(XToolkit.java:1539) ... 14 more

Burp User | Last updated: Nov 24, 2017 12:25PM UTC

As soon as I get Burp to start I'll give you the Debug ID. I'll need to check if I have a saved state lying around somewhere. Thank you for the support.

Burp User | Last updated: Nov 24, 2017 12:36PM UTC

The exact same error occurs when I try to load an saved project.

PortSwigger Agent | Last updated: Nov 24, 2017 01:27PM UTC

Does it start with a temporary project? If not, get the debug ID using this: java -jar burpsuite_pro.jar --diagnostics

PortSwigger Agent | Last updated: Nov 24, 2017 01:29PM UTC

Some ideas here too: https://stackoverflow.com/questions/41550929/cannot-load-system-cursor-copydrop-32x32-exception-in-java-on-centos-7

Burp User | Last updated: Nov 24, 2017 02:23PM UTC

I've tried to identify the problem and set up a new VM in exactly the same setting. Kali 2017.3 and the same versions as described above. It works perfectly fine - meaning it must be an issue of the VM I previously used. Just to have a conclusion I'll try to find out what the issue is there.

PortSwigger Agent | Last updated: Nov 24, 2017 02:35PM UTC

Hi, Ok, great. I'd start by double checking the version of Guest Additions you had installed.

You must be an existing, logged-in customer to reply to a thread. Please email us for additional support.