3 Replies Latest reply: Dec 5, 2012 4:27 PM by vladodias RSS

    Difference between logs printed to command console from AdminServer.log

    969358
      The following error is showed in my command console but it wasn't logged in AdminServer.log or AdminServer-diagnostic.log. Where else should I look for log trace?
      I refer to the command console I get when I started the domain by startManagedWebLogic.

      er.printPortlets(PreferencesController.java:347)
      at com.flashline.geneva.view.controllers.IController.service(IController
      .java:222)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
      at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run
      (StubSecurityHelper.java:227)
      at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecuri
      tyHelper.java:125)
      at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.jav
      a:301)
      at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.jav
      a:184)
      at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(Request
      DispatcherImpl.java:529)
      at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispat
      cherImpl.java:447)
      at com.flashline.geneva.view.servlet.View.service(View.java:144)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
      at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run
      (StubSecurityHelper.java:227)
      at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecuri
      tyHelper.java:125)
      at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.jav
      a:301)
      at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.jav
      a:184)
      at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
      n.wrapRun(WebAppServletContext.java:3732)
      at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
      n.run(WebAppServletContext.java:3696)
      at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
      dSubject.java:321)
      at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:
      120)
      at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppS
      ervletContext.java:2273)
      at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletC
      ontext.java:2179)
      at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.j
      ava:1490)
      at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
      at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
      javax.servlet.ServletException: java.lang.RuntimeException: Software caused conn
      ection abort: socket write error
      at com.flashline.geneva.view.servlet.edit.Edit.service(Edit.java:125)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
      at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run
      (StubSecurityHelper.java:227)
      at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecuri
      tyHelper.java:125)
      at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.jav
      a:301)
      at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.jav
      a:184)
      at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(Request
      DispatcherImpl.java:529)
      at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispat
      cherImpl.java:447)
      at weblogic.servlet.jsp.PageContextImpl.include(PageContextImpl.java:163
      )
      at weblogic.servlet.jsp.PageContextImpl.include(PageContextImpl.java:184
      )
      at jsp_servlet._controllerviews._preferences.__detailframe._jspService(_
      _detailframe.java:1282)
      at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
      at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run
      (StubSecurityHelper.java:227)
      at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecuri
      tyHelper.java:125)
      at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.jav
      a:301)
      at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.jav
      a:184)
      at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(Request
      DispatcherImpl.java:529)
      at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispat
      cherImpl.java:447)
      at com.flashline.geneva.view.controllers.preferences.PreferencesControll
      er.printDetail(PreferencesController.java:847)
      at com.flashline.geneva.view.controllers.preferences.PreferencesControll
      er.printPortlets(PreferencesController.java:347)
      at com.flashline.geneva.view.controllers.IController.service(IController
      .java:222)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
      at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run
      (StubSecurityHelper.java:227)
      at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecuri
      tyHelper.java:125)
      at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.jav
      a:301)
      at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.jav
      a:184)
      at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(Request
      DispatcherImpl.java:529)
      at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispat
      cherImpl.java:447)
      at com.flashline.geneva.view.servlet.View.service(View.java:144)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
      at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run
      (StubSecurityHelper.java:227)
      at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecuri
      tyHelper.java:125)
      at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.jav
      a:301)
      at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.jav
      a:184)
      at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
      n.wrapRun(WebAppServletContext.java:3732)
      at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
      n.run(WebAppServletContext.java:3696)
      at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
      dSubject.java:321)
      at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:
      120)
      at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppS
      ervletContext.java:2273)
      at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletC
      ontext.java:2179)
      at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.j
      ava:1490)
      at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
      at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
      Caused by: java.lang.RuntimeException: Software caused connection abort: socket
      write error
      at com.flashline.geneva.view.controllers.primaryentitylink.PrimaryEntity
      LinkController.printPortlets(PrimaryEntityLinkController.java:284)
      at com.flashline.geneva.view.controllers.IController.service(IController
      .java:222)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
      at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run
      (StubSecurityHelper.java:227)
      at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecuri
      tyHelper.java:125)
      at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.jav
      a:301)
      at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.jav
      a:184)
      at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(Request
      DispatcherImpl.java:529)
      at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispat
      cherImpl.java:447)
      at com.flashline.geneva.view.servlet.edit.RenderCommand.execute(RenderCo
      mmand.java:48)
      at com.flashline.geneva.view.servlet.edit.Edit.service(Edit.java:121)
      ... 42 more
      java.net.SocketException: Software caused connection abort: socket write error
      at java.net.SocketOutputStream.socketWrite0(Native Method)
      at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
      at java.net.SocketOutputStream.write(SocketOutputStream.java:136)
      at weblogic.servlet.internal.ChunkOutput.writeChunkTransfer(ChunkOutput.
      java:568)
      at weblogic.servlet.internal.ChunkOutput.writeChunks(ChunkOutput.java:53
      9)
      at weblogic.servlet.internal.ChunkOutput.flush(ChunkOutput.java:427)
      at weblogic.servlet.internal.CharsetChunkOutput.flush(CharsetChunkOutput
      .java:298)
      at weblogic.servlet.internal.ChunkOutput$2.checkForFlush(ChunkOutput.jav
      a:648)
      at weblogic.servlet.internal.CharsetChunkOutput.write(CharsetChunkOutput
      .java:200)
      at weblogic.servlet.internal.ChunkOutputWrapper.write(ChunkOutputWrapper
      .java:148)
      at weblogic.servlet.jsp.JspWriterImpl.write(JspWriterImpl.java:275)
      at jsp_servlet._controllerviews._preferences.__detailframe._jspService(_
      _detailframe.java:1337)
      at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
      at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run
      (StubSecurityHelper.java:227)
      at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecuri
      tyHelper.java:125)
      at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.jav
      a:301)
      at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.jav
      a:184)
      at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(Request
      DispatcherImpl.java:529)
      at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispat
      cherImpl.java:447)
      at com.flashline.geneva.view.controllers.preferences.PreferencesControll
      er.printDetail(PreferencesController.java:847)
      at com.flashline.geneva.view.controllers.preferences.PreferencesControll
      er.printPortlets(PreferencesController.java:347)
      at com.flashline.geneva.view.controllers.IController.service(IController
      .java:222)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
      at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run
      (StubSecurityHelper.java:227)
      at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecuri
      tyHelper.java:125)
      at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.jav
      a:301)
      at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.jav
      a:184)
      at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(Request
      DispatcherImpl.java:529)
      at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispat
      cherImpl.java:447)
      at com.flashline.geneva.view.servlet.View.service(View.java:144)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
      at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run
      (StubSecurityHelper.java:227)
      at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecuri
      tyHelper.java:125)
      at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.jav
      a:301)
      at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.jav
      a:184)
      at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
      n.wrapRun(WebAppServletContext.java:3732)
      at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
      n.run(WebAppServletContext.java:3696)
      at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
      dSubject.java:321)
      at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:
      120)
      at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppS
      ervletContext.java:2273)
      at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletC
      ontext.java:2179)
      at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.j
      ava:1490)
      at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
      at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
      java.net.SocketException: Software caused connection abort: socket write error
      at java.net.SocketOutputStream.socketWrite0(Native Method)
      at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
      at java.net.SocketOutputStream.write(SocketOutputStream.java:136)
      at weblogic.servlet.internal.ChunkOutput.writeChunkTransfer(ChunkOutput.
      java:568)
      at weblogic.servlet.internal.ChunkOutput.writeChunks(ChunkOutput.java:53
      9)
      at weblogic.servlet.internal.ChunkOutput.flush(ChunkOutput.java:427)
      at weblogic.servlet.internal.CharsetChunkOutput.flush(CharsetChunkOutput
      .java:298)
      at weblogic.servlet.internal.ChunkOutput$2.checkForFlush(ChunkOutput.jav
      a:648)
      at weblogic.servlet.internal.CharsetChunkOutput.write(CharsetChunkOutput
      .java:200)
      at weblogic.servlet.internal.ChunkOutputWrapper.write(ChunkOutputWrapper
      .java:148)
      at weblogic.servlet.jsp.JspWriterImpl.write(JspWriterImpl.java:275)
      at jsp_servlet._portletsetviews._securitytool.__footer._jspService(__foo
      ter.java:71)
      at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
      at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run
      (StubSecurityHelper.java:227)
      at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecuri
      tyHelper.java:125)
      at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.jav
      a:301)
      at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.jav
      a:184)
      at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(Request
      DispatcherImpl.java:529)
      at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispat
      cherImpl.java:447)
      at com.flashline.geneva.view.controllers.IController.printFooter(IContro
      ller.java:167)
      at com.flashline.geneva.view.controllers.IController.service(IController
      .java:230)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
      at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run
      (StubSecurityHelper.java:227)
      at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecuri
      tyHelper.java:125)
      at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.jav
      a:301)
      at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.jav
      a:184)
      at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(Request
      DispatcherImpl.java:529)
      at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispat
      cherImpl.java:447)
      at com.flashline.geneva.view.servlet.View.service(View.java:144)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
      at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run
      (StubSecurityHelper.java:227)
      at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecuri
      tyHelper.java:125)
      at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.jav
      a:301)
      at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.jav
      a:184)
      at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
      n.wrapRun(WebAppServletContext.java:3732)
      at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
      n.run(WebAppServletContext.java:3696)
      at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
      dSubject.java:321)
      at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:
      120)
      at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppS
      ervletContext.java:2273)
      at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletC
      ontext.java:2179)
      at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.j
      ava:1490)
      at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
      at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)

      Edited by: 966355 on 04/12/2012 12:43
        • 1. Re: Difference between logs printed to command console from AdminServer.log
          vladodias
          Hi,

          Some messages will go to console only unless you set stdout and stderr log files.

          In windows this can be done by setting env variables WLS_STDOUT_LOG and WLS_STDERR_LOG that will be converted to java options -Dweblogic.Stdout and -Dweblogic.Stderr by setDomainEnv.cmd script.

          Have a look at setDomainEnv.cmd file, search for WLS_STDOUT_LOG and WLS_STDERR_LOG.

          Cheers,
          Vlad
          • 2. Re: Difference between logs printed to command console from AdminServer.log
            969358
            I created a file log_personalizado.log and I did the following changes in setDomainEnv.cmd. After that, as a last step, I invoked setDomainEnv.cmd from command console. I am still not getting messages in log_personalizado.log. What else should I do?

            set WLS_STDOUT_LOG = C:\Oracle\Middleware\user_projects\domains\dominio_soa2\servers\AdminServer\logs\log_personalizado.log
            if NOT "%WLS_STDOUT_LOG%"=="" (
                 echo Logging WLS stdout to %WLS_STDOUT_LOG%
                 set JAVA_OPTIONS=%JAVA_OPTIONS% -Dweblogic.Stdout=%WLS_STDOUT_LOG%
            )

            set WLS_STDERR_LOG = C:\Oracle\Middleware\user_projects\domains\dominio_soa2\servers\AdminServer\logs\log_personalizado.log
            if NOT "%WLS_STDERR_LOG%"=="" (
                 echo Logging WLS stderr to %WLS_STDERR_LOG%
                 set JAVA_OPTIONS=%JAVA_OPTIONS% -Dweblogic.Stderr=%WLS_STDERR_LOG%
            )
            • 3. Re: Difference between logs printed to command console from AdminServer.log
              vladodias
              966355 wrote:
              I did the following changes in setDomainEnv.cmd
              Your changes look alright
              I invoked setDomainEnv.cmd from command console
              That step will make no difference, weblogic won't get this type of change during runtime
              What else should I do?
              You have to restart the server for the changes to take effect... setDomainEnv.cmd is called from startWeblogic.cmd and startManagedWeblogic.cmd...
              If you are starting weblogic as a windows service you will have to recreate the service to include -Dweblogic.Stdout and -Dweblogic.Stderr

              To check if your changes are effective, open AdminServer.log, you must see the following lines...
              system properties are defined as follows: 
              ...
              weblogic.Stderr = C:\Oracle\Middleware\user_projects\domains\dominio_soa2\servers\AdminServer\logs\log_personalizado.log
              weblogic.Stdout = C:\Oracle\Middleware\user_projects\domains\dominio_soa2\servers\AdminServer\logs\log_personalizado.log
              ...
              Cheers,
              Vlad