glassfish
  1. glassfish
  2. GLASSFISH-16100

Restart required for java mail session debug change, exception in server.log

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.1_b43
    • Fix Version/s: 3.1.1_b05
    • Component/s: jca
    • Labels:
      None
    • Environment:

      this is a full download build on Mac

      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)

      #]
      1. server.log
        19 kB
        lidiam
      1. restartreq-error.JPG
        48 kB

        Activity

        Hide
        Nazrul added a comment -

        We should try to fix this in 3.1.1

        Show
        Nazrul added a comment - We should try to fix this in 3.1.1
        Hide
        Jagadish added a comment -

        Planning to fix this in 3.1.1

        Show
        Jagadish added a comment - Planning to fix this in 3.1.1
        Hide
        Jagadish added a comment -
        • 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.

        Show
        Jagadish added a comment - 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.
        Hide
        Jagadish added a comment -

        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

        Show
        Jagadish added a comment - 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
        Hide
        lidiam added a comment -

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

        Show
        lidiam added a comment - Verified in build ogs-3.1.1-b11-07_04_2011-aix.zip.

          People

          • Assignee:
            Jagadish
            Reporter:
            lidiam
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: