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.
Build: NetBeans IDE Dev (Build 201002152000) VM: Java HotSpot(TM) 64-Bit Server VM, 14.3-b01-101, Java(TM) SE Runtime Environment, 1.6.0_17-b04-248-9M3125 OS: Mac OS X User Comments: xylifyx: Browsing an osgi jar with a pom.xml inside Stacktrace: java.lang.NullPointerException at org.openide.util.lookup.InstanceContent$SimpleItem.<init>(InstanceContent.java:195) at org.openide.util.lookup.SimpleLookup.<init>(SimpleLookup.java:69) at org.openide.util.lookup.Lookups.fixed(Lookups.java:108) at org.netbeans.modules.maven.model.Utilities$1.getLookup(Utilities.java:225) at org.openide.util.lookup.SimpleProxyLookup.checkLookup(SimpleProxyLookup.java:77) at org.openide.util.lookup.SimpleProxyLookup.lookup(SimpleProxyLookup.java:152)
Created attachment 94368 [details] stacktrace
a lookup impl problem? reassigning for evaluation.
Not a problem in Lookup. This is the code: public SimpleItem(T obj) { if (obj == null) { throw new NullPointerException(); } this.obj = obj; }
Created attachment 97976 [details] stacktrace
Created attachment 98335 [details] stacktrace openinig an xml file
Created attachment 98855 [details] stacktrace Opening a pom file packaged in a ejb-jar file (under the target directory).
This bug already has 10 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=165513
Created attachment 99511 [details] stacktrace In Ant trunk sources, ran 'ant distribution', then opened distribution/binaries/apache-ant-1.8.2alpha-bin.zip!/apache-ant-1.8.2alpha/lib/ant.pom in editor.
Created attachment 100666 [details] stacktrace From the "Files" window, I was inpecting the contents of a ".war" file. I double-clicked on a "pom.xml" file packaged in the ".war" file to view it. I got this error and the editor never finished loading.
Created attachment 100892 [details] stacktrace Didn't notice the exception
Created attachment 100893 [details] stacktrace Maven "Show Dependency Graph"
Created attachment 100938 [details] stacktrace Opening: maven-embedder-3.0-beta-1.jar!/META-INF/maven/org.apache.maven/maven-embedder/pom.xml
Serious bug to not be able to open a certain kind of file in the editor at all.
core-main #1a6494276897
Integrated into 'main-golden', will be available in build *201007240001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/1a6494276897 User: Jesse Glick <jglick@netbeans.org> Log: #181009: NullPointerException at org.openide.util.lookup.InstanceContent$SimpleItem.<init>
v.
Backported into release692 http://hg.netbeans.org/releases/rev/b40b72f7e4a3
i was able to open a pom.xml from a jar file, using favorites view. Verified in patch2