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 226610 - nb 7.3 fails to successfully start gfv301, nb712 does start gfv301
Summary: nb 7.3 fails to successfully start gfv301, nb712 does start gfv301
Status: RESOLVED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: GlassFish (show other bugs)
Version: 7.3
Hardware: PC Windows 7 x64
: P2 normal (vote)
Assignee: TomasKraus
URL:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2013-02-24 17:57 UTC by emiddio
Modified: 2013-04-26 02:45 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
gfv301 startup log that fails with nb73 (29.13 KB, text/plain)
2013-02-24 17:58 UTC, emiddio
Details
nb712 success gfv301 startup log (45.84 KB, text/plain)
2013-02-24 17:59 UTC, emiddio
Details
GlassFish 3.0.1 server log. (4.08 KB, text/plain)
2013-02-25 09:24 UTC, Jiri Skrivanek
Details
gfv301successfullStartup20130421log.txt (45.80 KB, text/plain)
2013-04-21 18:27 UTC, emiddio
Details
nb712Successfullgfv301startup20130421Log.txt (358.10 KB, text/plain)
2013-04-21 18:27 UTC, emiddio
Details
nbdevFail20130421log.txt (203.88 KB, text/plain)
2013-04-21 18:28 UTC, emiddio
Details
gfv301Faill20130421log.txt (24.08 KB, text/plain)
2013-04-21 18:28 UTC, emiddio
Details

Note You need to log in before you can comment on or make changes to this bug.
Description emiddio 2013-02-24 17:57:26 UTC
nb 7.3 fails to successfully start gfv301, nb712 does start gfv301.

nb73 pops up dialog gfv301 start failed at about 70 second.

I have many apps - around 26 apps and startup normally takes around 2 minutes to fully complete.


works fine with nb712; nb712 is running jdk1.7.0_04
nb 7.3 is running jdk1.7.0_11.

to attach log file of startup.


Product Version: NetBeans IDE 7.1.2 (Build 201204101705)
Java: 1.7.0_04; Java HotSpot(TM) 64-Bit Server VM 23.0-b21
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
User directory: C:\Users\emiddio\.netbeans\7.1.2
Cache directory: C:\Users\emiddio\.netbeans\7.1.2\var\cache

Product Version: NetBeans IDE 7.3 (Build 201302132200)
Java: 1.7.0_11; Java HotSpot(TM) 64-Bit Server VM 23.6-b04
Runtime: Java(TM) SE Runtime Environment 1.7.0_11-b21
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
User directory: C:\Users\emiddio\AppData\Roaming\NetBeans\7.3
Cache directory: C:\Users\emiddio\AppData\Local\NetBeans\Cache\7.3
Comment 1 emiddio 2013-02-24 17:58:12 UTC
Created attachment 131804 [details]
gfv301 startup log that fails with nb73
Comment 2 emiddio 2013-02-24 17:59:53 UTC
Created attachment 131805 [details]
nb712 success gfv301 startup log
Comment 3 Jiri Skrivanek 2013-02-25 09:24:56 UTC
Created attachment 131818 [details]
GlassFish 3.0.1 server log.

For me it works with empty domain.

Product Version: NetBeans IDE 7.3 (Build 201302132200)
Java: 1.7.0_15; Java HotSpot(TM) 64-Bit Server VM 23.7-b01
Runtime: Java(TM) SE Runtime Environment 1.7.0_15-b03
System: Windows 7 version 6.1 running on amd64; Cp1250; en_US (nb)
Comment 4 emiddio 2013-02-25 15:17:08 UTC
If my domain did not have any applications to start up it would work for me also.

It is some kind of timeout issue. Like i said - around 70 seconds it times out,
it take around 2+minutes - 120+ seconds to start up all the applications.
Comment 5 emiddio 2013-02-25 15:18:04 UTC
But when it times out it also stops the glassfish startup.
Comment 6 TomasKraus 2013-02-25 15:29:13 UTC
OK, I can try to check what's going on. We can try to fix this in 7.3.1.
Comment 7 Petr Jiricka 2013-03-04 08:58:58 UTC
How can we cover this with automated tests to make sure this does not regress again?
Comment 8 TomasKraus 2013-03-04 10:38:32 UTC
Startup code was completely rewritten in 7.3 and we used 3.1.2 and 3.1.2.2 servers to test it. There is one check that can detect that 3.1 server is still starting up but looks like it does not work for 3.0.1.

Unfortunately those things are hard to test. I had to modify glassfish sources to make it start a bit longer.
Looks like we'll have to run Tooling SDK tests against more GlassFish versions and implement something on plugin level too.

Now back to this issue. I need fine logs from NetBeans plugin.
Please add "-J-Dglassfish.level=0 -J-Dorg.glassfish.tools.ide.level=0"
into netbeans_default_options in netbeans.conf and send me netbeans logs related to GlassFish startup. It may show me enough to see what was going on.
Comment 9 emiddio 2013-03-04 15:30:03 UTC
why dont you just let me configure a timeout - in the server properties panel ?

i know with my 26 current apps it takes around 2-3+ minutes to start and i can just set the timeout longer.

it never hangs - the output window continues to show output during the startup - it just takes a long time.

Thanks
Comment 10 Quality Engineering 2013-03-12 02:05:45 UTC
Integrated into 'main-golden', will be available in build *201303112300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/11489e81b1fa
User: Tomas Kraus <TomasKraus@netbeans.org>
Log: #226610 - Startup timeout raised to 5 minutes
#226301 - Shutdown timeout raised to 3 minutes
Comment 11 TomasKraus 2013-03-12 10:24:55 UTC
Please download
http://bertram2.netbeans.org:8080/job/web-main-javaee7/149/artifact/nbbuild/NetBeans-dev-web-main-javaee7-149-on-20130311-full.zip
and let me know it your problem is fixed now.

I raised timeout to 5 minutes for 7.3.1 release. I can't do more now.
In 8.0 there will be property in server properties.
Comment 12 TomasKraus 2013-03-18 15:57:12 UTC
I'm still missing fix test results. Unfortunately I can't reproduce this in my development environment.
Comment 13 TomasKraus 2013-03-25 10:22:43 UTC
Still have no response about testing an attempt to fix this issue.
Please reopen this bug when you'll test it with latest build from
http://bertram2.netbeans.org:8080/job/web-main-javaee7
Comment 14 emiddio 2013-03-25 14:29:40 UTC
i will test and update this issue when i get an opportunity - at my next server reboot.
Comment 15 emiddio 2013-04-11 15:40:01 UTC
I tested today - not a dev build, but the latest nb7.3patch1 version.

Failed to start, timeout seems to be unchanged.

If I have to test a dev build i will - inform if needed.
Comment 16 TomasKraus 2013-04-15 13:12:43 UTC
I may need FINEST logs from netbeans.
Please add -J-Dglassfish.level=0 -J-Dorg.glassfish.tools.ide.level=0 into etc/netbeans.conf:netbeans_default_options and reproduce this issue with 7.3.1 build. attach NetBeans logs to this bug. Maybe it will show what's going wrong there.
Comment 17 TomasKraus 2013-04-19 13:57:22 UTC
Is there a chance to get those logs at the beginning of next week? We will have code freeze for 7.3.1 soon and I need to fix this issue ASAP.
Comment 18 emiddio 2013-04-19 14:00:14 UTC
i can do it this wkend. Need to know - is my 7.3 patch1 good enough or do i have tog use a dev build ?

-Gary
Comment 19 TomasKraus 2013-04-19 14:05:06 UTC
You will need last dev build from http://bertram2.netbeans.org:8080/job/web-main-javaee7/ to be synchronized with my sources.

But it's quite stable now.
Comment 20 emiddio 2013-04-21 18:25:25 UTC
data obtained, 4 logfiles to be uploaded.

success logs using nb712/gfv301
fail logs using your nvdev/gfv301

-Gary
Comment 21 emiddio 2013-04-21 18:27:03 UTC
Created attachment 133636 [details]
gfv301successfullStartup20130421log.txt
Comment 22 emiddio 2013-04-21 18:27:39 UTC
Created attachment 133637 [details]
nb712Successfullgfv301startup20130421Log.txt
Comment 23 emiddio 2013-04-21 18:28:07 UTC
Created attachment 133638 [details]
nbdevFail20130421log.txt
Comment 24 emiddio 2013-04-21 18:28:45 UTC
Created attachment 133639 [details]
gfv301Faill20130421log.txt
Comment 25 TomasKraus 2013-04-22 09:58:59 UTC
This is interesting:
Server gfv301 version response: V3 cannot process this command at this time, please wait
FINEST [glassfish]: Server gfv301 locations response returned 3 records
FINEST [glassfish]: Server gfv301 locations response message = V3 cannot process this command at this time, please wait%%%EOL%%%
FINEST [glassfish]: Server gfv301 locations response Domain-Root_value = null
FINEST [glassfish]: Server gfv301 locations response Base-Root_value = null
INFO [glassfish]: gfv301 is not responding, killing the process.

Looks like this 'please wait...' message is not the same as in gfv312 so it was not recognized properly.
Comment 26 TomasKraus 2013-04-22 11:26:45 UTC
Checked into GlassFish Tooling Library:
---------------------------------------
changeset:   490:8dca4e51fca8                                                                                                
summary:     Bug# 226610 - NB 7.3 fails to successfully start gfv301

changeset:   261:3ede71eb081e
branch:      0.3-b036
summary:     Bug# 226610 - NB 7.3 fails to successfully start gfv301

This should fix 'please wait...' message detection.
Comment 27 TomasKraus 2013-04-22 11:38:38 UTC
Checked into web-main:
----------------------
changeset:   250887:9c055fe62b71
branch:      javaee7
summary:     #226610 - NB 7.3 fails to successfully start gfv301

Unfortunately I have no chance to verify this locally. You will have to try it yourself.
Comment 28 TomasKraus 2013-04-22 15:48:30 UTC
Please try http://bertram2.netbeans.org:8080/job/web-main-javaee7/ build when build #251 is finished.
Comment 29 TomasKraus 2013-04-24 11:50:13 UTC
Fixed build is available on http://bertram2.netbeans.org:8080/job/web-main-javaee7/
I'm closing this bug. Please let me know if it's finally working for you.
Comment 30 emiddio 2013-04-24 14:59:42 UTC
tested; now works.

-Gary
Comment 31 Quality Engineering 2013-04-25 00:18:21 UTC
Integrated into 'releases', will be available in build *201304242201* or newer. Wait for official and publicly available build.
Changeset: http://hg.netbeans.org/releases/rev/9c055fe62b71
User: Tomas Kraus <TomasKraus@netbeans.org>
Log: #226610 - NB 7.3 fails to successfully start gfv301
Comment 32 Quality Engineering 2013-04-26 02:45:30 UTC
Integrated into 'main-golden', will be available in build *201304252301* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/9c055fe62b71
User: Tomas Kraus <TomasKraus@netbeans.org>
Log: #226610 - NB 7.3 fails to successfully start gfv301