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 117527 - Profiler creates nbproject/private/profiler/attach.xml in non-java projects
Summary: Profiler creates nbproject/private/profiler/attach.xml in non-java projects
Status: RESOLVED FIXED
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@profiler
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-02 21:33 UTC by _ tboudreau
Modified: 2007-10-03 10:04 UTC (History)
0 users

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 _ tboudreau 2007-10-02 21:33:35 UTC
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>
Comment 1 Jiri Sedlacek 2007-10-03 09:17:49 UTC
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.
Comment 2 _ tboudreau 2007-10-03 09:41:20 UTC
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.
Comment 3 Jiri Sedlacek 2007-10-03 09:49:57 UTC
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...
Comment 4 _ tboudreau 2007-10-03 10:04:16 UTC
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