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 214495 - Cannot profile web application with WebLogic 12
Summary: Cannot profile web application with WebLogic 12
Status: VERIFIED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: WebLogic (show other bugs)
Version: 7.2
Hardware: PC Windows 7
: P1 normal (vote)
Assignee: Petr Hejl
URL:
Keywords: RANDOM
Depends on:
Blocks:
 
Reported: 2012-06-20 10:22 UTC by Jiri Skrivanek
Modified: 2012-06-27 08:27 UTC (History)
5 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Server and IDE logs. (13.62 KB, application/octet-stream)
2012-06-20 10:22 UTC, Jiri Skrivanek
Details
fix, needs to be verified (1.30 KB, patch)
2012-06-21 07:24 UTC, Petr Hejl
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Skrivanek 2012-06-20 10:22:58 UTC
Created attachment 121090 [details]
Server and IDE logs.

It is not possible to profile web application with WebLogic 12.1.1 server. To reproduce:

- register WebLogic 12.1.1 server to IDE
- create java EE 6 web application with this server
- right-click project node and choose Profile
- it fails with the following error (see stack trace in attachment)

Starting Oracle WebLogic Server
Oracle WebLogic Server started
D:\Development\builds\NB72\nbUserdir-20120620113446\WebApplicationWL12a\nbproject\build-impl.xml:1233: The following error occurred while executing this line:
D:\Development\builds\NB72\nbUserdir-20120620113446\WebApplicationWL12a\nbproject\build-impl.xml:1228: Deployment error: No archive for deployment
See the server log for details.
BUILD FAILED (total time: 31 seconds)

- if you do clean&build and then Profile again, the application is deployed but profiler doesn't start

Product Version: NetBeans IDE 7.2 RC1 (Build 201206192200)
Java: 1.7.0_06-ea; Java HotSpot(TM) 64-Bit Server VM 23.2-b05
System: Windows 7 version 6.1 running on amd64; Cp1250; en_US (nb)
Comment 1 Petr Hejl 2012-06-21 06:29:38 UTC
What we know so far:
The issue is reproducible only when there is other server in the domain such as JMS server. Even in that case it happens from time to time.

It is not a regression. I would suggest the future fix to be a patch candidate.
Comment 2 Petr Hejl 2012-06-21 06:54:39 UTC
The issue is related to this change: http://hg.netbeans.org/web-main/rev/218358 where the ServerInstance.updateStateFromProfiler is connecting to server while it might not be fully started (the connected profiler does not mean the server already booted). So sometimes the JMX connection succeeds and sometimes the fallback is used (and issue appears). That's why it is random.

BTW current state also means that updateStateFromProfiler connects to server several times per second.

There are other issues with profiler state I'll file later today.
Comment 3 Petr Hejl 2012-06-21 07:24:09 UTC
Created attachment 121143 [details]
fix, needs to be verified
Comment 4 Petr Hejl 2012-06-23 09:30:54 UTC
Fixed in web-main 4e4e978648c3.
Jirko, please verify. We will decide whether this is HR fix on monday.
Comment 5 Quality Engineering 2012-06-24 04:43:01 UTC
Integrated into 'main-golden', will be available in build *201206240002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/4e4e978648c3
User: Petr Hejl <phejl@netbeans.org>
Log: #214495 Cannot profile web application with WebLogic 12
Comment 6 Jiri Skrivanek 2012-06-25 08:02:06 UTC
It works in dev build 201206250002. During verification I faced bug 214554.
Comment 7 Antonin Nebuzelsky 2012-06-26 11:51:20 UTC
Is this fix for 7.2?
Comment 8 Petr Hejl 2012-06-26 12:29:33 UTC
(In reply to comment #7)
> Is this fix for 7.2?
Yes.
Comment 9 Martin Fousek 2012-06-26 13:09:52 UTC
Patch looks good to me.
Comment 10 Petr Hejl 2012-06-26 18:23:17 UTC
Pushed to release72 as ef46493a96b9.
Comment 11 Quality Engineering 2012-06-27 03:07:03 UTC
Integrated into 'releases', will be available in build *201206262201* or newer. Wait for official and publicly available build.
Changeset: http://hg.netbeans.org/releases/rev/ef46493a96b9
User: Petr Hejl <phejl@netbeans.org>
Log: #214495 Cannot profile web application with WebLogic 12
Comment 12 Jiri Skrivanek 2012-06-27 08:27:12 UTC
Verified in NetBeans IDE 7.2 RC1 (Build 201206262201).