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 232201 - When I close the IDE with GlassFish running. A java.lang.AssertionError exception happens.
Summary: When I close the IDE with GlassFish running. A java.lang.AssertionError excep...
Status: RESOLVED INCOMPLETE
Alias: None
Product: serverplugins
Classification: Unclassified
Component: GlassFish (show other bugs)
Version: 7.4
Hardware: PC Linux
: P3 normal (vote)
Assignee: TomasKraus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-07-03 12:40 UTC by rodrigorsantos
Modified: 2013-08-03 16:09 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Netebeans messages.log (180.75 KB, application/octet-stream)
2013-07-03 12:48 UTC, rodrigorsantos
Details
Exception Dialog (43.35 KB, image/png)
2013-07-03 12:48 UTC, rodrigorsantos
Details
Simple web application to debug (18.30 KB, application/octet-stream)
2013-08-03 16:08 UTC, TomasKraus
Details

Note You need to log in before you can comment on or make changes to this bug.
Description rodrigorsantos 2013-07-03 12:40:12 UTC
Product Version = NetBeans IDE Dev (Build 20130702-f823b3324151)
Operating System = Linux version 3.8.0-25-generic running on amd64
Java; VM; Vendor = 1.7.0_21
Runtime = Java HotSpot(TM) 64-Bit Server VM 23.21-b01

When I close the IDE with GlassFish running.
A java.lang.AssertionError exception happens.
See attachments
Comment 1 rodrigorsantos 2013-07-03 12:48:28 UTC
Created attachment 136654 [details]
Netebeans messages.log
Comment 2 rodrigorsantos 2013-07-03 12:48:31 UTC
Created attachment 136655 [details]
Exception Dialog
Comment 3 Tomas Danek 2013-07-03 13:57:22 UTC
INFO [glassfish]: Could not get http port value.
java.util.concurrent.TimeoutException
	at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:258)
	at java.util.concurrent.FutureTask.get(FutureTask.java:119)
	at org.glassfish.tools.ide.admin.CommandGetProperty.getProperties(CommandGetProperty.java:127)
Caused: org.glassfish.tools.ide.GlassFishIdeException: Could not retrieve properties for *.server-config.*.http-listener-1.port in 10000ms
	at org.glassfish.tools.ide.admin.CommandGetProperty.getProperties(CommandGetProperty.java:138)
[catch] at org.netbeans.modules.glassfish.common.CommonServerSupport.updateHttpPort(CommonServerSupport.java:935)
	at org.netbeans.modules.glassfish.common.GlassFishStatus.processReadyLocationsResult(GlassFishStatus.java:240)
	at org.netbeans.modules.glassfish.common.GlassFishStatus.isReady(GlassFishStatus.java:418)
	at org.netbeans.modules.glassfish.common.GlassFishStatus.isReady(GlassFishStatus.java:345)
	at org.netbeans.modules.glassfish.common.GlassfishInstance.stopIfStartedByIde(GlassfishInstance.java:1268)
	at org.netbeans.modules.glassfish.common.Installer.close(Installer.java:62)
	at org.netbeans.core.startup.NbInstaller.closeAsync(NbInstaller.java:738)
Comment 4 TomasKraus 2013-07-30 14:23:04 UTC
Those java.util.concurrent.TimeoutException(s) in server admin commands are not important. It may happen when server has stopped and there are still some background tasks running.

But java.lang.AssertionError: Still have sessions when shutting down is not good.

What exactly were you doing? Looks like you were debugging something.
Is it happening every time or did it happen just once?

Is there some reliable reproduction scenario?
Comment 5 TomasKraus 2013-08-03 16:08:35 UTC
Created attachment 138231 [details]
Simple web application to debug

I was trying to reproduce it without success. Made simple web application with some class and put break point into it. Now I started GlassFish 4 in debug mode, run application in debug mode to stop on break point. Then I ckloed NetBeans in the middle of debugging and saw no problem.
Comment 6 TomasKraus 2013-08-03 16:09:49 UTC
Please provide some steps to reproduce this issue and reopen it.