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.
Install contrib/docbook and contrib/docbook/project, and create a new docbook project. Now profile a web app and a j2se app in the same NB session. Later there has appeared a file nbproject/private/profiler/attach.xml in this project - this project should not even have an nbproject/ directory. It has the following content: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd"> <properties> <comment></comment> <entry key="profiler.attach.remote">false</entry> <entry key="profiler.attach.server.type"></entry> <entry key="profiler.attach.host.os">Mac OS X</entry> <entry key="profiler.attach.dynamic.jdk16">false</entry> <entry key="profiler.attach.direct">true</entry> <entry key="profiler.attach.target.type"></entry> <entry key="profiler.attach.host"></entry> </properties>
The nbproject/private/profiler/attach.xml file is only created when you are attaching to the project (Attach Profiler & choose the project in the dropdown at the top of Attach Profiler dialog). To attach to profiled app you need to provide attach settings using the Attach Wizard, these settings are stored in attach.xml file in context of the project you choose to attach to. Yesterday I've fixed Issue 98925 related to projects which are available in the dropdown for attach, now only Java projects are listed. After the fix this issue shouldn't be reproducible. The question is if this issue is FIXED, INVALID or DUPLICATE - because you haven't provided any details about your configuration and exact steps leading to attach.xml creation, I can just assume that it's fixed by fixing Issue 98925. Fixed for Beta2.
Well, I was using the docbook modules to write an article about the profiler, and then I profiled a J2SE and a Web project to create screen shots in the same copy of NetBeans while I was writing the article. So I had NetBeans open for several hours, and at the end of it noticed this file has appeared. I never tried to attach the profiler to any external process. I started Glassfish in profile mode several times. Possibly I could have invoked Profile Main Project with the docbook project set as the main project.
The attach.xml file cannot be created by invoking Profile Project, it must have been created by other action. Please reopen this issue if you are able to provide exact steps how to reproduce - in such case please provide also buildnumber & JDK & OS...
Product Version: NetBeans IDE Dev (Build 070925) Java: 1.5.0_07; Java HotSpot(TM) Client VM 1.5.0_07-87 System: Mac OS X version 10.4.10 running on i386; MacRoman; en_US (nb) Userdir: /Users/tim/.netbeans/dev