Hello,
I have the following problem when trying to compute coherence estimation:
java.lang.NoClassDefFoundError: Could not initialize class org.esa.snap.core.gpf.GPF
at org.esa.snap.graphbuilder.rcp.dialogs.SingleOperatorDialog.(SingleOperatorDialog.java:103)
at org.esa.snap.graphbuilder.rcp.actions.OperatorAction.createOperatorDialog(OperatorAction.java:83)
at org.esa.snap.graphbuilder.rcp.actions.OperatorAction.actionPerformed(OperatorAction.java:63)
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(AbstractButton.java:2022)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2348)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
at javax.swing.AbstractButton.doClick(AbstractButton.java:376)
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(Component.java:6533)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3324)
at java.awt.Component.processEvent(Component.java:6298)
at java.awt.Container.processEvent(Container.java:2238)
at java.awt.Component.dispatchEventImpl(Component.java:4889)
at java.awt.Container.dispatchEventImpl(Container.java:2296)
at java.awt.Component.dispatchEvent(Component.java:4711)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4897)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4534)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4475)
at java.awt.Container.dispatchEventImpl(Container.java:2282)
at java.awt.Window.dispatchEventImpl(Window.java:2746)
at java.awt.Component.dispatchEvent(Component.java:4711)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:760)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.awt.EventQueue$3.run(EventQueue.java:703)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:90)
at java.awt.EventQueue$4.run(EventQueue.java:733)
at java.awt.EventQueue$4.run(EventQueue.java:731)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:730)
at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:159)
[catch] at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
I get this exception when trying to access interferometric->products->coherence estimation on s1tbx. I compiled the source code from the following commits:
- snap-engine(f1155ec
- snap-desktop(30ef8a1)
- s1tbx(8590848)
All commits are from the master branch. I also tried compiling with the latest commits of master rather than latest release commits, but had the same problem. I deleted my local maven repository and compiled again, but with the same results.
I use intellij to run the build and my launch parameters for snap desktop are as follows:
-
Main class: org.esa.snap.nbexec.Launcher
-
VM options: -Dsun.java2d.noddraw=true -Dsun.awt.nopixfmt=true -Dsun.java2d.dpiaware=false -Dorg.netbeans.level=INFO -Dsnap.debug=true -Xms8G -Xmx8G
-
Program Arguments: --userdir “C:/Users/erik.soekov/esaSnap/code2/snap-desktop/snap-application/target/snap/userdir/” --patches “C:\Users\erik.soekov\esaSnap\code2\snap-engine$\target\classes;C:\Users\erik.soekov\esaSnap\code2\s1tbx$\target\classes” --clusters “C:\Users\erik.soekov\esaSnap\code2\s1tbx\s1tbx-kit\target\netbeans_clusters\s1tbx”
-
Working directory: C:\Users\erik.soekov\esaSnap\code\snap-desktop\snap-application\target\snap
I had no problems with the build in January this year, which was the last time I was working with it. Because I’m building a mod for SNAP, I ran it with and without my modifications. Got the same results in both cases.