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 61656 - [j2ee] NPE and detach after attaching on weblogic
Summary: [j2ee] NPE and detach after attaching on weblogic
Status: CLOSED INVALID
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 4.x
Hardware: All All
: P2 blocker (vote)
Assignee: issues@profiler
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-02 13:13 UTC by L Martinek
Modified: 2007-02-20 18:33 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Weblogic output (18.08 KB, text/plain)
2005-08-02 13:14 UTC, L Martinek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description L Martinek 2005-08-02 13:13:37 UTC
I started weblogic and it waited on port 5140. I selected attach in profiler.
Profiler attached on weblogic, but after a second exception was thrown and
profiler was detached. There was messaged that port 5140 is used, but I am sure
that it was free before attaching.
Comment 1 L Martinek 2005-08-02 13:14:29 UTC
Created attachment 23419 [details]
Weblogic output
Comment 2 Jiri Sedlacek 2005-08-02 13:34:43 UTC
If you look at the attached log (Starting WLS with line:), the -agentpath 
argument is present more than once, resulting later in Address already in use 
exception.

Please try to modify WLS startup script to use -agentpath only once.
Comment 3 L Martinek 2005-08-02 14:02:21 UTC
Attach wizard adviced me to put profiler setting including JAVA_HOME somewhere
in the middle of weblogic script. It didn't work, because first part of script
was executed with JAVA_HOME set to java home provided by weblogic and rest of
script was executed with JAVA_HOME set to sun java. I therefore moved the
settings to the beginning of the script, but I didn't notice that I moved it
before SETLOCAL command and arguments was again and again added to JAVA_OPTIONS
each time when script was executed. When I moved settings below SETLOCAL
profiler worked.

I am closing this issue and will fill new issue about problematic advice in
attach wizard. 
Comment 4 ehucka 2006-10-09 12:10:48 UTC
Verification of old issues.
Comment 5 Alexander Kouznetsov 2007-02-12 22:39:28 UTC
Closing old issues.
Comment 6 Alexander Kouznetsov 2007-02-20 18:33:26 UTC
Reverting to the original Target Milestone value changed by mistake. Sorry for
inconvenience.