glassfish
  1. glassfish
  2. GLASSFISH-15050

RuntimeException Thrown when Logger Settings/General Page is edited and Saved in a new config

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.1_b31
    • Fix Version/s: 3.1_b38
    • Component/s: logging
    • Labels:
      None
    • Environment:

      OS: Soalris Sparc 10
      Browser: firefox 3.6

      Description

      Build used : GF nightly dated 12/08

      Create a new configuration by copying from default-config.
      In the newconfig/Logger Settings/General Page, Edit some fields, and/or enable "Write to System log" checkbox, or" Log ot Console" checkbox and click "Save" button. See that in the console window, "java.lang.RuntimeException" is thrown.

      This happens only in a new conffig. In the server-config the changes get saved successfully.

      In the server.log, the below Exception is seen:

      [#|2010-12-08T14:17:53.937-0800|SEVERE|oracle-glassfish3.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=15;_ThreadName=Thread-1;|javax.faces.FacesException: java.lang.reflect.InvocationTargetException while attempting to process a 'command' event for 'saveButton'.
      at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:89)
      at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
      at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:395)
      at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1534)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:343)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:215)
      at com.sun.webui.jsf.util.UploadFilter.doFilter(UploadFilter.java:233)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:215)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:279)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
      at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655)
      at org.apache.catalina.core.StandardPipeline.doChainInvoke(StandardPipeline.java:600)
      at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:96)
      at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:91)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:162)
      at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:326)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:227)
      at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:228)
      at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:817)
      at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:718)
      at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1007)
      at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:225)
      at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
      @ at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
      at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
      at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
      at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
      at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
      at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
      at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
      at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
      at java.lang.Thread.run(Thread.java:662)
      Caused by: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException while attempting to process a 'command' event for 'saveButton'.
      at com.sun.jsftemplating.layout.descriptors.LayoutElementBase.dispatchHandlers(LayoutElementBase.java:422)
      at com.sun.jsftemplating.layout.descriptors.LayoutElementBase.dispatchHandlers(LayoutElementBase.java:394)
      at com.sun.jsftemplating.layout.event.CommandActionListener.invokeCommandHandlers(CommandActionListener.java:150)
      at com.sun.jsftemplating.layout.event.CommandActionListener.processAction(CommandActionListener.java:98)
      at javax.faces.event.ActionEvent.processListener(ActionEvent.java:88)
      at javax.faces.component.UIComponentBase.broadcast(UIComponentBase.java:769)
      at javax.faces.component.UICommand.broadcast(UICommand.java:300)
      at com.sun.webui.jsf.component.WebuiCommand.broadcast(WebuiCommand.java:166)
      at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:794) at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1259)
      at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:81)
      ... 33 more
      Caused by: java.lang.reflect.InvocationTargetException
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at com.sun.jsftemplating.layout.descriptors.handler.Handler.invoke(Handler.java:442)
      at com.sun.jsftemplating.layout.descriptors.LayoutElementBase.dispatchHandlers(LayoutElementBase.java:420)
      ... 43 more

        Activity

        Hide
        shaline added a comment -

        Verified in promoted b43.

        Show
        shaline added a comment - Verified in promoted b43.
        Hide
        Anissa Lam added a comment -

        I was able to reproduce the issue consistently, until i update to the latest code under core/logging.
        so, sounds like code checked in yesterday to fix the other logging bug fixes this issue also.
        Shalini can verify this.

        Show
        Anissa Lam added a comment - I was able to reproduce the issue consistently, until i update to the latest code under core/logging. so, sounds like code checked in yesterday to fix the other logging bug fixes this issue also. Shalini can verify this.
        Hide
        naman_mehta added a comment -

        Closing this issue as it is not reproducible on latest workspace.

        Show
        naman_mehta added a comment - Closing this issue as it is not reproducible on latest workspace.
        Hide
        naman_mehta added a comment -

        Also verfied,

        Create a new configuration by copying from default-config.
        In the newconfig/Logger Settings/General Page, Edit some fields, and/or enable "Write to System log" checkbox, or" Log ot Console" checkbox and click "Save" button.

        Works fine without any Exception.

        Show
        naman_mehta added a comment - Also verfied, Create a new configuration by copying from default-config. In the newconfig/Logger Settings/General Page, Edit some fields, and/or enable "Write to System log" checkbox, or" Log ot Console" checkbox and click "Save" button. Works fine without any Exception.
        Hide
        naman_mehta added a comment -

        I verified the issue by doing following steps.

        1. Started Server
        2. Created local instance in1
        3. Created local instance in2
        4. Started local instance in1.
        5. Open admin console
        6. Go to in1-config, Logger Settings, General. Updated value for two checkboxes and did save. It works fine.
        7. Go to in2-config, Logger Settings, General. Updated value for two checkboxes and did save. It works fine.

        So here, in1 is running and in2 is stopped but logger setting works fine in both condition. No exception in the GUI and back end.

        Do I need to test other thing apart from the same? If no, can I close this issue?

        Show
        naman_mehta added a comment - I verified the issue by doing following steps. 1. Started Server 2. Created local instance in1 3. Created local instance in2 4. Started local instance in1. 5. Open admin console 6. Go to in1-config, Logger Settings, General. Updated value for two checkboxes and did save. It works fine. 7. Go to in2-config, Logger Settings, General. Updated value for two checkboxes and did save. It works fine. So here, in1 is running and in2 is stopped but logger setting works fine in both condition. No exception in the GUI and back end. Do I need to test other thing apart from the same? If no, can I close this issue?

          People

          • Assignee:
            naman_mehta
            Reporter:
            shaline
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Due:
              Created:
              Updated:
              Resolved: