[GLASSFISH-16100] Restart required for java mail session debug change, exception in server.log Created: 24/Feb/11  Updated: 07/Jul/11  Resolved: 04/May/11

Status: Closed
Project: glassfish
Component/s: jca
Affects Version/s: 3.1_b43
Fix Version/s: 3.1.1_b05

Type: Bug Priority: Major
Reporter: lidiam Assignee: Jagadish
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

this is a full download build on Mac


Attachments: JPEG File restartreq-error.JPG     Text File server.log    
Tags: 3_1_1-approved, 3_1_1-verified

 Description   

Steps to reproduce:

1. Create javamail session with Enabled unchecked and Debug checked.
2. Go to the new session and disable debug, save - restart required icon shows up. Click on it and the following reason is displayed:

Error while handling Change event.

server.log contains exception:

[#|2011-02-24T15:25:43.057-0800|SEVERE|oracle-glassfish3.1|LogStrings.org.glassfish.javaee.services|_ThreadID=169;_ThreadName=Thread-1;|RAR9607: Error while handling Change event.
javax.naming.NameNotFoundException: Cannot find name to unbind
at com.sun.enterprise.naming.impl.TransientContext.doUnbind(TransientContext.java:398)
at com.sun.enterprise.naming.impl.TransientContext.unbind(TransientContext.java:420)
at com.sun.enterprise.naming.impl.SerialContextProviderImpl.unbind(SerialContextProviderImpl.java:124)
at com.sun.enterprise.naming.impl.SerialContext.unbind(SerialContext.java:740)
at javax.naming.InitialContext.unbind(InitialContext.java:416)
at javax.naming.InitialContext.unbind(InitialContext.java:416)
at com.sun.enterprise.naming.impl.GlassfishNamingManagerImpl.unpublishObject(GlassfishNamingManagerImpl.java:246)
at com.sun.appserv.connectors.internal.api.ResourceNamingService.unpublishObject(ResourceNamingService.java:184)
at com.sun.enterprise.resource.deployer.MailResourceDeployer.deleteResource(MailResourceDeployer.java:178)
at com.sun.enterprise.resource.deployer.MailResourceDeployer.undeployResource(MailResourceDeployer.java:171)
at com.sun.enterprise.resource.deployer.MailResourceDeployer.redeployResource(MailResourceDeployer.java:193)
at org.glassfish.javaee.services.ResourceManager$PropertyChangeHandler.handleChangeEvent(ResourceManager.java:378)
at org.glassfish.javaee.services.ResourceManager$PropertyChangeHandler.changed(ResourceManager.java:328)
at org.jvnet.hk2.config.ConfigSupport.sortAndDispatch(ConfigSupport.java:332)
at org.glassfish.javaee.services.ResourceManager.changed(ResourceManager.java:275)
at org.jvnet.hk2.config.Transactions$ConfigListenerJob.process(Transactions.java:379)
at org.jvnet.hk2.config.Transactions$ConfigListenerJob.process(Transactions.java:369)
at org.jvnet.hk2.config.Transactions$ConfigListenerNotifier$1$1.call(Transactions.java:259)
at org.jvnet.hk2.config.Transactions$ConfigListenerNotifier$1$1.call(Transactions.java:257)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:680)

#]


 Comments   
Comment by lidiam [ 24/Feb/11 ]

This only happens with a session that's created with disabled status.

Comment by Anissa Lam [ 24/Feb/11 ]

The exception comes from the backend.
Assigning this to 'naming' for initial evaluation.

Comment by Cheng Fang [ 14/Mar/11 ]

Does it happen to other types of resources, like jdbc resources?

Comment by Cheng Fang [ 17/Mar/11 ]

custom resource also has this problem. Create a custom resource for Integer with enable=false. After saving it, add a new property and save. Check the server.log for the same exception.

I also tested with a jdbc pool and jms queue connection factory resource, they seem to work fine.

We may need to skip calling unpublishObject for disabled resources. Assign to jca for further evaluation.

Comment by Scott Fordin [ 18/Mar/11 ]

Added topic under "Restart Required" umbrella issue (http://java.net/jira/browse/GLASSFISH-16040) in 3.1 Release Notes.

Comment by Nazrul [ 20/Apr/11 ]

We should try to fix this in 3.1.1

Comment by Jagadish [ 24/Apr/11 ]

Planning to fix this in 3.1.1

Comment by Jagadish [ 02/May/11 ]
  • Why fix this issue in 3.1.1?
    This issue will be seen whenever a disabled resource is reconfigured.
  • Which is the targeted build of 3.1.1 for this fix?
    3.1.1 promoted build-04
  • Do regression tests exist for this issue?
    Manually tested to make sure that re-configuration is not done for disabled resource thereby confirming that the reported issues is not seen.
  • Which tests should QA (re)run to verify the fix did not destabilize GlassFish?
    Minor fix and hence should not destabilize GlassFish. If needed, Connector-SQE, resource related tests can be executed.

Tests Passed : QL (Web, Classic), connector-dev, jdbc-dev, connector-standalone-cts (Web, Classic), connector-sqe, resources-admin-cli.

Comment by Jagadish [ 04/May/11 ]

FIX INFORMATION :
svn log -v -r 46656
------------------------------------------------------------------------
r46656 | jr158900 | 2011-05-04 21:18:10 +0530 (Wed, 04 May 2011) | 4 lines
Changed paths:
M /branches/3.1.1/connectors/connectors-runtime/src/main/java/com/sun/enterprise/resource/deployer/AdminObjectResourceDeployer.java
M /branches/3.1.1/connectors/connectors-runtime/src/main/java/com/sun/enterprise/resource/deployer/ConnectorResourceDeployer.java
M /branches/3.1.1/connectors/connectors-runtime/src/main/java/com/sun/enterprise/resource/deployer/CustomResourceDeployer.java
M /branches/3.1.1/connectors/connectors-runtime/src/main/java/com/sun/enterprise/resource/deployer/ExternalJndiResourceDeployer.java
M /branches/3.1.1/connectors/connectors-runtime/src/main/java/com/sun/enterprise/resource/deployer/JdbcResourceDeployer.java
M /branches/3.1.1/connectors/connectors-runtime/src/main/java/com/sun/enterprise/resource/deployer/MailResourceDeployer.java

Comment by lidiam [ 07/Jul/11 ]

Verified in build ogs-3.1.1-b11-07_04_2011-aix.zip.

Generated at Thu Dec 08 08:30:33 UTC 2016 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.