You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Svatopluk Dedic (JIRA)" <ji...@apache.org> on 2018/01/25 08:47:00 UTC

[jira] [Commented] (NETBEANS-324) Maven Visual Dep Graph yields an assert

    [ https://issues.apache.org/jira/browse/NETBEANS-324?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16338930#comment-16338930 ] 

Svatopluk Dedic commented on NETBEANS-324:
------------------------------------------

Well, since the whole Visual Library is not synchronized, all manipulations should be done in EDT - see [http://bits.netbeans.org/dev/javadoc/org-netbeans-api-visual/org/netbeans/api/visual/widget/doc-files/documentation.html] "Notes" section at the bottom of the page.

I can remove the assert, but then the parent-child hierarchy will be then build off the EDT and accessed from EDT when (re)painting. So I guess I need to fix the maven module.

> Maven Visual Dep Graph yields an assert
> ---------------------------------------
>
>                 Key: NETBEANS-324
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-324
>             Project: NetBeans
>          Issue Type: Bug
>          Components: projects - Maven
>            Reporter: Jaroslav Tulach
>            Assignee: Svata Dedic
>            Priority: Major
>
> When I open `pom.xml` and try to switch to Graph view, I get:
> {code:java}
> java.lang.AssertionError
>         at org.netbeans.api.visual.widget.Widget.addChild(Widget.java:218)
>         at org.netbeans.api.visual.widget.Widget.addChild(Widget.java:208)
>         at
> org.netbeans.modules.java.graph.DependencyGraphScene.<init>(DependencyGraphScene.java:
> 186)
>         at org.netbeans.modules.maven.graph.DependencyGraphTopComponent
> $10.run(DependencyGraphTopComponent.java:609)
>         at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418)
>         at
> org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45)
>         at org.openide.util.lookup.Lookups.executeWith(Lookups.java:278)
>         at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:
> 2033)
> Caused: org.openide.util.RequestProcessor$SlowItem: task failed due to
>         at org.openide.util.RequestProcessor.post(RequestProcessor.java:395)
>         at
> org.netbeans.modules.maven.graph.DependencyGraphTopComponent.createScene(DependencyGraphTopComponent.java:
> 560)
>         at
> org.netbeans.modules.maven.graph.DependencyGraphTopComponent.btnGraphActionPerformed(DependencyGraphTopComponent.java:
> 474)
>         at org.netbeans.modules.maven.graph.DependencyGraphTopComponent.access
> $200(DependencyGraphTopComponent.java:98)
>         at org.netbeans.modules.maven.graph.DependencyGraphTopComponent
> $1$1.run(DependencyGraphTopComponent.java:122)
>         at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
>         at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
>         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.awt.EventQueue.dispatchEvent(EventQueue.java:726)
>         at
> org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:136)
>         at
> java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:
> 201)
>         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)
> [catch] at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
> {code}
> Probably result of an added assert into the visual library code.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists