Unexpected Exception

Hi everybody,

After the last updates SNAP (v 7.0) is facing the following error, leading to the impossibility to use the software:

A java.nio.file.InvalidPathException exception has occurred.
Click Show Details or see the messages.log file located in your C:\Users\ithaca\AppData\Roaming\SNAP\var\log folder.

image%20(1)

Details:

java.nio.file.InvalidPathException: Illegal character [?] in path at index 2: \?\D:\Temp\temp_Elisa\EMSR374\02IMAGES\POST\RAW\EMSR397_AOI02_FEP_PRODUCT_SENTINEL1_20191023_0601_RAW\S1A_IW_GRDH_1SDV_20191023T060108_20191023T060133_029582_035E22_B9D5.SAFE_Tile2\usr\local\gmp\rep\pac2\S1A_IW_GRDH_1SDV_20191023T060108_20191023T060133_029582_035E22_B9D5.SAFE
at sun.nio.fs.WindowsPathParser.nextSlash(Unknown Source)
at sun.nio.fs.WindowsPathParser.parse(Unknown Source)
at sun.nio.fs.WindowsPathParser.parse(Unknown Source)
at sun.nio.fs.WindowsPath.parse(Unknown Source)
at sun.nio.fs.WindowsFileSystem.getPath(Unknown Source)
at org.esa.snap.vfs.VFS.get(VFS.java:140)
at org.esa.snap.vfs.NioPaths.get(NioPaths.java:43)
at org.esa.snap.rcp.actions.file.ProductOpener.openProduct(ProductOpener.java:133)
at org.esa.snap.rcp.actions.file.OpenProductAction.execute(OpenProductAction.java:126)
at org.esa.snap.rcp.actions.file.OpenProductAction.actionPerformed(OpenProductAction.java:111)
at org.openide.awt.AlwaysEnabledAction$1.run(AlwaysEnabledAction.java:199)
at org.openide.util.actions.ActionInvoker$1.run(ActionInvoker.java:95)
at org.openide.util.actions.ActionInvoker.doPerformAction(ActionInvoker.java:116)
at org.openide.util.actions.ActionInvoker.invokeAction(ActionInvoker.java:99)
at org.openide.awt.AlwaysEnabledAction.actionPerformed(AlwaysEnabledAction.java:202)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.AbstractButton.doClick(Unknown Source)
at com.jidesoft.plaf.vsnet.VsnetMenuItemUI.doClick(VsnetMenuItemUI.java:1395)
at com.jidesoft.plaf.vsnet.VsnetMenuItemUI$MouseInputHandler.mouseReleased(VsnetMenuItemUI.java:1190)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$500(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
[catch] at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:159)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)

Does anybody know how to solve this issue?

Thank you very much,
bests,
Chiara R.

When exactly this message appears?

What did you apply?

Did you open any of products normally?

The error message appears as I open the software:

Message:
A java.lang.NoClassDefFoundError exception has occurred.
Click Show Details or see the messages.log file located in your C:\Users\ithaca\AppData\Roaming\SNAP\var\log folder.

and, consequently, no file can even be opened.

Could you try to uninstall and reinstall SNAP. Often such errors happen if the installation got somehow corrupted.

Also, when you uninstall, choose the option that deletes all SNAP user data. It seems that a corrupted path was cached.

Hi, @oana_hogoiu and @marpet, might be this is similar to the one I had before,

Source of the post

And the solution is here,

Source of the post

2 Likes

Thanks all for the support!

The suggestion of @falahfakhri fixed the problem on one of the PCs, but for the other one, this solution didn’t work.

It seems also to be an invalid path in the environmental variables (see log error below), but I couldn’t find the invalid path from the system variables window (see Figure 1)

messages.log (78.0 KB)


Fig. 1

Furthermore, I have deleted the folder named temp_Elisa and, consequently, all the stuff contained in it.

I have also tried to uninstall SNAP deleting all previous data and reinstall it, but, unfortunately, it didn’t work either.

Thanks again!

Did you select this one highlighted to modified,

Also, after uninstall SNAP, in C:\user\yourmachine\ .snap (find this folder .snap and delete it, if wasn’t deleted automatically, and try up again. )

@falahfakhri perfect! Deleting the .snap folder the issue was fixed and SNAP works again!

Thank you very much for your help!