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.
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)
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.
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.
Created attachment 121143 [details] fix, needs to be verified
Fixed in web-main 4e4e978648c3. Jirko, please verify. We will decide whether this is HR fix on monday.
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
It works in dev build 201206250002. During verification I faced bug 214554.
Is this fix for 7.2?
(In reply to comment #7) > Is this fix for 7.2? Yes.
Patch looks good to me.
Pushed to release72 as ef46493a96b9.
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
Verified in NetBeans IDE 7.2 RC1 (Build 201206262201).