This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 210275 - Maven OSGi: cannot load parent POM in editor
Summary: Maven OSGi: cannot load parent POM in editor
Status: RESOLVED INCOMPLETE
Alias: None
Product: projects
Classification: Unclassified
Component: Maven (show other bugs)
Version: 7.1
Hardware: PC Linux
: P3 normal (vote)
Assignee: Milos Kleint
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-28 13:01 UTC by puce
Modified: 2012-04-16 13:26 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description puce 2012-03-28 13:01:49 UTC
Sometimes when double-clicking on the parent POM in the POM inheritance view of the Navigator, the editor just shows "Loading..." instead of the content of that POM.

Opening a parent read-only POM works.

- Maven 3 with maven-bundle-plugin
- Java SE 7
- NetBeans 7.1
Comment 1 puce 2012-03-28 13:46:26 UTC
Product Version: NetBeans IDE 7.1 (Build 201112071828)
Java: 1.7.0_02; Java HotSpot(TM) Client VM 22.0-b10
System: Linux version 2.6.38-13-generic-pae running on i386; UTF-8; de_CH (nb)
Comment 2 Milos Kleint 2012-04-03 12:00:19 UTC
I cannot reproduce locally. All poms get opened for me fine. How frequent is sometimes?

Are your sources and the local repository on the same drive? one explanation for different behaviour could be that the source are on shared drive, not local drive
Comment 3 Milos Kleint 2012-04-06 10:23:24 UTC
by any chance do you access central repository (or any repositories) through a mirror or proxy?
Comment 4 puce 2012-04-06 14:47:39 UTC
(In reply to comment #3)
Yes, everything goes through Nexus.
Comment 5 puce 2012-04-06 14:48:45 UTC
(In reply to comment #2)
The only thing I noted last time was that there was a duplicated
</project>
at the end of the POM.
Comment 6 Milos Kleint 2012-04-16 13:26:43 UTC
again I've looked over the code involved in opening the pom editor from navigator and there's nothing special in the maven codebase, no downloading that could stall, no IO is performed. Only minor exception is DependencyGraphTopComponent.forPOM which looks up the project. Under some conditions that could take some time however even in extreme conditions that should not extend more than a few seconds.

The maven support code just delegates to dataobject/editor apis to open the file in question.

I'm resolving the issue as incomplete. Once the problem occurs to you again, please create a thread dump of the IDE and reopen the issue. That way we should learn if a deadlock or race condition is at the root of the neverending loading problem.