Profiling Servlets at runtime

Does anyone knows how to use the profiling tool hprof with servlets? We are trying to do some performance analysis and currently don't know how to do it with servlets.
Thanks

Check out JAMon. JAMon was designed to monitor performance of J2EE components such as servlets, jsp's and EJBs, however it can monitor any java code (jdk 1.2 or higher). It is easy to use, fast (i.e. can be used in production where it is most needed), easy to use, free and open source.
It tracks statistics such as hit count, average time, max time, min time, outstanding concurrent requests, average concurrent requests, max concurrent requests, and more. It correlates concurrent requests to execution time to let you see how your system performs under load (i.e. scales).
The API is just 2 methods start() and stop() (it works like a stopwatch), but the start method takes a String that represents what you are timing. This string could represent a servlet, jsp, a JDBC call, or any method call, so it is extremely flexible in what you can time.
All this and you should be able to have it running in a few minutes after downloading.
1) The following link has a sample servlet filter that monitors all servlets and jsp's in a few lines of code.
http://www.javaperformancetuning.com/tools/jamon/#SampleCode
2) To download JAMon (90k) go to
http://www.javaperformancetuning.com/tools/jamon/index.shtml#DownloadingJAMon
3) For other performance related resources go to
http://www.javaperformancetuning.com/resources.shtml
steve - http://www.jamonapi.com

Similar Messages

  • Javax.servlet.ServletException: runtime failure in custom tag 'content'

    Hi When iam trying to click on a link which takes to an another JSP.
              iam getting this error after few minutes and that page doesnt display at
              all.
              can anybody help me out????
              ==vasan++;
              <Jan 9, 2001 11:50:10 AM PST> <Error> <HTTP>
              <[WebAppServletContext(627219,console)] exception raised on
              '/console/panels/mbean/Server.jsp'
              javax.servlet.ServletException: runtime failure in custom tag 'content'
              at
              weblogic.management.console.pages._panels._mbean._server._jspService(_server
              .java:9798)
              at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
              at
              weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
              :208)
              at
              weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
              ntext.java:1127)
              at
              weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
              :1529)
              at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
              at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
              >
              <Jan 9, 2001 11:50:10 AM PST> <Error> <HTTP>
              <[WebAppServletContext(627219,console)] Root cause of ServletException
              java.net.SocketException: Connection reset by peer: socket write error
              at java.net.SocketOutputStream.socketWrite(Native Method)
              at java.net.SocketOutputStream.write(SocketOutputStream.java:83)
              at
              weblogic.servlet.internal.ChunkUtils.writeHeaderChunk(ChunkUtils.java:127)
              at
              weblogic.servlet.internal.ResponseHeaders.writeHeaders(ResponseHeaders.java:
              345)
              at
              weblogic.servlet.internal.ServletResponseImpl.writeHeaders(ServletResponseIm
              pl.java:683)
              at
              weblogic.servlet.internal.ServletOutputStreamImpl.flush(ServletOutputStreamI
              mpl.java:124)
              at
              weblogic.servlet.internal.ServletOutputStreamImpl.flushWithCheck(ServletOutp
              utStreamImpl.java:451)
              at
              weblogic.servlet.internal.ServletOutputStreamImpl.print(ServletOutputStreamI
              mpl.java:243)
              at
              javax.servlet.ServletOutputStream.println(ServletOutputStream.java:286)
              at
              weblogic.servlet.jsp.JspWriterImpl.println(JspWriterImpl.java:204)
              at
              weblogic.management.console.pages._common._requestinfo.print(_requestinfo.ja
              va:68)
              at
              weblogic.management.console.pages._common._requestinfo._jspService(_requesti
              nfo.java:224)
              at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
              at
              weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
              :208)
              at
              weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImp
              l.java:249)
              at
              weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImp
              l.java:167)
              at
              weblogic.servlet.jsp.PageContextImpl.include(PageContextImpl.java:104)
              at
              weblogic.management.console.pages._common._error._jspService(_error.java:162
              at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
              at
              weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
              :208)
              at
              weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImp
              l.java:149)
              at
              weblogic.servlet.jsp.PageContextImpl.forward(PageContextImpl.java:100)
              at
              weblogic.management.console.pages._panels._mbean._server._jspService(_server
              .java:9830)
              at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
              at
              weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
              :208)
              at
              weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
              ntext.java:1127)
              at
              weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
              :1529)
              at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
              at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
              >
              

    I just started getting this error after a year in production environment without any problems. Did you every find out what caused this or better yet how to prevent this?
              Dan.
              

  • How can I create a java bean instance from servlet, at runtime?

    Will anybody help me?
    I want to send bean (class) name to a servlet through parameter and I need servlet to create specified bean instance and run its method that I will send through another parameter, at runtime.

    Thanks. I found answer

  • Weblogic Commerce Server 3.5 runtime failure in custom tag

    An error occurred:
    javax.servlet.ServletException: runtime failure in custom tag 'process'
         at jsp_compiled._tools._property._propset_create._jspService(_propset_create.java:641)
         at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:208)
         at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:149)
         at com.beasys.commerce.foundation.flow.ServletDestinationHandler.handleDestination(ServletDestinationHandler.java:51)
         at com.beasys.commerce.foundation.flow.FlowManager.service(FlowManager.java:540)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:208)
         at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:1127)
         at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:1529)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)

    I just started getting this error after a year in production environment without any problems. Did you every find out what caused this or better yet how to prevent this?
              Dan.
              

  • Error while copying profile...

    Error while copying profile from the default profile...
    runtime error- DBIF_RSQL_INVALID_REQUEST
    pls help..

    Irfan,
                You check weather new role name is in Z,Y name space or not?, check the same thing in other clients as well. If you are in windows , then your server mey need reboot because i faced similar problem but sorted after reboot.
    Regards,
    Hari.
    PS: Points are welcome.

  • Runtime failure in custom tag

              I was curious if you knew what specifically you did to remove the runtime error.
              I am also getting the runtime failure. The try/catch that another discussion thread
              suggested does not catch the error since the exception is thrown prior to the
              doStart and doEnd Tag methods. I know that the exception is thrown immediately
              after the constructor is called for the tag and before the setParent method is
              called.
              Anyway, thank you in advance for any suggestions you might have.
              try { // begin instantiate/release try/catch/finally block... //[ /wattage/wtgMainMenu.jsp;
              Line: 36]
                   westerncommon_jsptag_HeaderTag_0 = (western.common.jsptag.HeaderTag)java.beans.Beans.instantiate(getClass().getClassLoader(),
              "western.common.jsptag.HeaderTag"); //[ /wattage/wtgMainMenu.jsp; Line: 36]
              westerncommon_jsptag_HeaderTag_0.setPageContext(pageContext); //[ /wattage/wtgMainMenu.jsp;
              Line: 36]
              westerncommon_jsptag_HeaderTag_0.setParent(null); //[ /wattage/wtgMainMenu.jsp;
              Line: 36]
                   westerncommon_jsptag_HeaderTag_0.setNavMenuHREF(weblogic.utils.StringUtils.valueOf("wtgLogout.jsp"));
              //[ /wattage/wtgMainMenu.jsp; Line: 36]
              westerncommon_jsptag_HeaderTag_0.setNavMenu(weblogic.utils.StringUtils.valueOf("Logout"));
              //[ /wattage/wtgMainMenu.jsp; Line: 36]
              westerncommon_jsptag_HeaderTag_0.setTitle(weblogic.utils.StringUtils.valueOf("Main
              Menu")); //[ /wattage/wtgMainMenu.jsp; Line: 36]
              int int0 = westerncommon_jsptag_HeaderTag_0.doStartTag(); //[ /wattage/wtgMainMenu.jsp;
              Line: 36]
                   if (_int_0 == BodyTag.EVAL_BODY_TAG) { //[ /wattage/wtgMainMenu.jsp; Line: 36]
                        throw new JspTagException("Since tag class western.common.jsptag.HeaderTag does
              not implements BodyTag, it cannot return BodyTag.EVAL_BODY_TAG"); //[ /wattage/wtgMainMenu.jsp;
              Line: 36]
              } //[ /wattage/wtgMainMenu.jsp; Line: 36]
              /*** sync AT_BEGIN TagExtra Vars here ***/ //[ /wattage/wtgMainMenu.jsp;
              Line: 36]
              if (_int_0 != Tag.SKIP_BODY) { // begin !SKIP_BODY... //[ /wattage/wtgMainMenu.jsp;
              Line: 36]
                        //[ /wattage/wtgMainMenu.jsp; Line: 36]
                        out.print("\r\n");
                             //[ /wattage/wtgMainMenu.jsp; Line: 37]
                   } // end !SKIP_BODY //[ /wattage/wtgMainMenu.jsp; Line: 37]
              if (_western_common_jsptag_HeaderTag_0.doEndTag() == Tag.SKIP_PAGE) return;
              //[ /wattage/wtgMainMenu.jsp; Line: 37]
              } catch (java.lang.Exception javalang_Exception_0) { // instantiate/release
              try/catch/finally //[ /wattage/wtgMainMenu.jsp; Line: 37]
                   throw new ServletException("runtime failure in custom tag 'HeaderTag'", javalang_Exception_0);
              //[ /wattage/wtgMainMenu.jsp; Line: 37]
              } finally { // instantiate/release try/catch/finally block... //[ /wattage/wtgMainMenu.jsp;
              Line: 37]
                   if (_western_common_jsptag_HeaderTag_0 != null) westerncommon_jsptag_HeaderTag_0.release();
              //[ /wattage/wtgMainMenu.jsp; Line: 37]
              } //[ /wattage/wtgMainMenu.jsp; Line: 37]
              ----------CONSOLE OUTPUT-------------
              Getting Page permissions for page: wtgMainMenu.jsp user: 0
              Page Permissions: Insert-1 View-1 Update-1 Delete-1
              HeaderTag -- Constructing
              Thu Apr 05 11:19:00 CDT 2001:<E> <ServletContext-General> exception raised on
              wattage/wtgMainMenu.jsp'
              javax.servlet.ServletException: runtime failure in custom tag 'HeaderTag'
              at jsp_servlet.wattage.wtgmainmenu._jspService(wtgmainmenu.java:398)
              at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
              at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
              pl.java:124)
              at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon
              textImpl.java:744)
              at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon
              textImpl.java:692)
              at weblogic.servlet.internal.ServletContextManager.invokeServlet(Servlet
              ContextManager.java:251)
              at weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.jav
              a:363)
              at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:263)
              at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
              

    I just started getting this error after a year in production environment without any problems. Did you every find out what caused this or better yet how to prevent this?
              Dan.
              

  • Runtime exceptions in custom taglib

    I am getting errors of the type:
              javax.servlet.ServletException: runtime failure in custom tag
              The problem is the error is happening in a taglib, but Weblogic is hiding the
              original stack trace, and substituting it's own, which is useless in this case. Is
              there any way to get the original stack trace?
              -Jeff
              

    With custom tags, each interface method needs to be entirely in a try..catch
              to support debugging. WL hides the exact exception information. For
              example:
              public int doEndTag() throws JspException
              try
              catch (Throwable e)
              throw e instanceof JspException ? (JspException) e : new
              JspTagException(e.getMessage());
              Cameron Purdy
              [email protected]
              http://www.tangosol.com
              WebLogic Consulting Available
              "Brian Homrich" <[email protected]> wrote in message
              news:[email protected]...
              > I'm getting the same type of error in the situation where an error has
              occured
              > in a page, my client uses "Back" on the browser, then tries another page
              > (which uses a custom taglib).
              >
              > If I stop, then restart WL, all is ok. The page where the runtime
              failure
              > occured is ok now.
              >
              > Have you made any progress getting a stack trace, and have you found
              anything
              > interesting?
              >
              > Does anyone know why a failure on one page would cause the custom tags
              > on another to fail like this? (Both pages use the same tag, but aren't
              calls
              > to a tag done independently?)
              >
              > Brian
              >
              > Jeff Nowakowski wrote:
              >
              > > I am getting errors of the type:
              > >
              > > javax.servlet.ServletException: runtime failure in custom tag
              > >
              > > The problem is the error is happening in a taglib, but Weblogic is
              hiding the
              > > original stack trace, and substituting it's own, which is useless in
              this case. Is
              > > there any way to get the original stack trace?
              > >
              > > -Jeff
              >
              

  • Runtime.exec() on a server

    Hi there,
    I am just wondering if it is possible to have a servlet call runtime.exec() on the server side computer to start up a new process. Thanks.

    Yes it can.

  • Servlet exceptions using Jetspeed portal

    If anyone has any experience using the Apache Jetspeed portal with weblogic 5.1
    then if you have any ideas on the following please reply...
    I ran Jetspeed fine on tomcat without any changes, but when i tried to run on
    weblogic - firstly i had to move the jsp files out of the web-inf directory, as
    weblogic cannot access them from inside there. Now i get the error below...
    I was wondering if it's anything to do with weblogic configuration, or permissions
    or something.
    The line in the java code that it breaks at is where it's trying to cast the obj
    into a RunData, whereas the debug info shows that obj is definitely of type RunData!
    (This comes from URILookupTag in jetspeed)
    Object obj = pageContext.getAttribute(JspService.RUNDATA, PageContext.REQUEST_SCOPE);
    RunData data = (RunData)obj;
    [09:44:46,265 ERROR] Turbine.handleException: Error encountered processing a template:/layouts/html/en/default.jsp:
    runtime failure in custom tag 'uriLookup'
    [09:44:46,265 ERROR]
    javax.servlet.ServletException: runtime failure in custom tag 'uriLookup'
         at jsp_servlet._templates._jsp._layouts._html._en._default._jspService(_default.java:94)
         at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:106)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:124)
         at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:253)
         at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:172)
         at org.apache.turbine.services.jsp.TurbineJspService.handleRequest(TurbineJspService.java:192)
    org.apache.turbine.util.TurbineException: Error encountered processing a template:/layouts/html/en/default.jsp:
    runtime failure in custom tag 'uriLookup'
         at org.apache.turbine.services.jsp.TurbineJspService.handleRequest(TurbineJspService.java:210)
         at org.apache.jetspeed.modules.layouts.JetspeedJspLayout.doBuild(JetspeedJspLayout.java:115)
         at org.apache.turbine.modules.Layout.build(Layout.java:91)
         at org.apache.turbine.modules.LayoutLoader.exec(LayoutLoader.java:123)
         at org.apache.turbine.modules.pages.DefaultPage.doBuild(DefaultPage.java:169)
         at org.apache.turbine.modules.Page.build(Page.java:90)
         at org.apache.turbine.modules.PageLoader.exec(PageLoader.java:123)
         at org.apache.turbine.Turbine.doGet(Turbine.java:510)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:106)
         at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:907)
         at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:851)
         at weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContextManager.java:252)
         at weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:364)
         at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:252)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:129)
    [09:44:46,281 INFO ] JetspeedJspLayout: set response content type to text/html

    It sounds like you're having a classloader issue...
    I'd take a look at this:
    http://www.weblogic.com/docs51/classdocs/API_servlet.html#128951
    or search further in the wls51 docs for the keyword "ClassCastException" or "classloader".
    -tanya
    "Karen" <[email protected]> wrote:
    >
    If anyone has any experience using the Apache Jetspeed portal with weblogic
    5.1
    then if you have any ideas on the following please reply...
    I ran Jetspeed fine on tomcat without any changes, but when i tried to
    run on
    weblogic - firstly i had to move the jsp files out of the web-inf directory,
    as
    weblogic cannot access them from inside there. Now i get the error below...
    I was wondering if it's anything to do with weblogic configuration, or
    permissions
    or something.
    The line in the java code that it breaks at is where it's trying to cast
    the obj
    into a RunData, whereas the debug info shows that obj is definitely of
    type RunData!
    (This comes from URILookupTag in jetspeed)
    Object obj = pageContext.getAttribute(JspService.RUNDATA, PageContext.REQUEST_SCOPE);
    RunData data = (RunData)obj;
    [09:44:46,265 ERROR] Turbine.handleException: Error encountered processing
    a template:/layouts/html/en/default.jsp:
    runtime failure in custom tag 'uriLookup'
    [09:44:46,265 ERROR]
    javax.servlet.ServletException: runtime failure in custom tag 'uriLookup'
         at jsp_servlet._templates._jsp._layouts._html._en._default._jspService(_default.java:94)
         at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:106)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:124)
         at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:253)
         at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:172)
         at org.apache.turbine.services.jsp.TurbineJspService.handleRequest(TurbineJspService.java:192)
    org.apache.turbine.util.TurbineException: Error encountered processing
    a template:/layouts/html/en/default.jsp:
    runtime failure in custom tag 'uriLookup'
         at org.apache.turbine.services.jsp.TurbineJspService.handleRequest(TurbineJspService.java:210)
         at org.apache.jetspeed.modules.layouts.JetspeedJspLayout.doBuild(JetspeedJspLayout.java:115)
         at org.apache.turbine.modules.Layout.build(Layout.java:91)
         at org.apache.turbine.modules.LayoutLoader.exec(LayoutLoader.java:123)
         at org.apache.turbine.modules.pages.DefaultPage.doBuild(DefaultPage.java:169)
         at org.apache.turbine.modules.Page.build(Page.java:90)
         at org.apache.turbine.modules.PageLoader.exec(PageLoader.java:123)
         at org.apache.turbine.Turbine.doGet(Turbine.java:510)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:106)
         at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:907)
         at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:851)
         at weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContextManager.java:252)
         at weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:364)
         at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:252)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:129)
    [09:44:46,281 INFO ] JetspeedJspLayout: set response content type to
    text/html

  • Using runtime on the server

    A while back I was trying to get input on what could be going wrong with having a servlet use runtime to execute a batch file. I still haven't figured it out. Is it even possible for me to do it, or am I burning time by messing with it, due to security restrictions or something?
    Thanks,

    Can you run this batch file from an ordinary application? If not, stop worrying about servlets and security and start worrying about how to use Runtime.exec().
    You'll find numerous posts about Runtime.exec() in the Java Programming forum, and many of them have links to the Javaworld article about its many pitfalls.

  • Servlet Session Monitoring via MBeans turns up no MBeans

    Hi,
    I discovered more about why I'm not seeing any Servlet Session Runtime
    MBeans when I enable session monitoring. It looks like each time my
    managed server creates a new session, two errors get written to my
    WebLogic log:
    "####<Sep 22, 2002 6:46:43 PM EDT> <Warning> <Dispatcher>
    <chile.iso-ne.com> <adminserver> <ExecuteThread: '7' for queue:
    '__weblogic_admin_rmi_queue'> <> <> <000000> <RuntimeException thrown
    by rmi server: 'weblogic.rmi.internal.BasicServerRef@10b - jvmid:
    '7074298665992588400S:10.145.220.82:[7001,7001,7002,7002,7001,7002,-1]:smsdomain:adminserver',
    oid: '267', implementation:
    'weblogic.management.internal.AdminMBeanHomeImpl@3c7b65''>
    weblogic.management.NoAccessRuntimeException: User guest does not have
    access permission on weblogic.admin.mbean.MBeanHome
    at weblogic.management.internal.Helper.checkAdminPermission(Helper.java:1637)
    and
    "####<Sep 22, 2002 6:46:43 PM EDT> <Error> <HTTP Session>
    <chile.iso-ne.com> <webuiserver> <ExecuteThread: '0' for queue:
    'default'> <> <> <100032> <Error creating servlet session runtime>
    weblogic.management.NoAccessRuntimeException: User guest does not have
    access permission on weblogic.admin.mbean.MBeanHome
    at weblogic.rmi.internal.BasicOutboundRequest.sendReceive(BasicOutboundRequest.java:85)
    at weblogic.rmi.internal.BasicRemoteRef.invoke(BasicRemoteRef.java:136)
    at weblogic.rmi.internal.ProxyStub.invoke(ProxyStub.java:35)
    at $Proxy7.getMBeanServer(Unknown Source)
    at weblogic.management.internal.MBeanHomeImpl.isAdminHome(MBeanHomeImpl.java:93)
    at weblogic.management.internal.MBeanHomeImpl.getMBean(MBeanHomeImpl.java:118)
    at weblogic.management.internal.MBeanHomeImpl.getRuntimeMBean(MBeanHomeImpl.java:590)
    at weblogic.management.internal.MBeanHomeImpl.getRuntimeMBean(MBeanHomeImpl.java:568)
    at weblogic.servlet.internal.session.SessionData$1.run(SessionData.java:185)
    at weblogic.management.internal.Helper.doLocally(Helper.java:1656)
    at weblogic.servlet.internal.session.SessionData.getRuntimeMBean(SessionData.java:179)
    at weblogic.servlet.internal.session.SessionData.<init>(SessionData.java:166)
    Looks like the managed server is making a request of the admin server
    and propagating the "guest" principal instead of "system".
    These principal propagation errors from managed-to-admin seem to
    happen all over the place with different MBeans, and get patched one
    place at a time in various BEA service packs. For instance, there's
    another issue with accessing the XML Entity Cache from a managed
    server, and I'm sure I've read about others. Isn't there a way to
    make sure these errors no longer occur with any MBean requests from
    the managed server?
    Jim

    Add
    acl.access.weblogic.admin.mbean.MBeanHome=guest
    in the filerealm.properties file.
    Jim Doyle wrote:
    Hi,
    I discovered more about why I'm not seeing any Servlet Session Runtime
    MBeans when I enable session monitoring. It looks like each time my
    managed server creates a new session, two errors get written to my
    WebLogic log:
    "####<Sep 22, 2002 6:46:43 PM EDT> <Warning> <Dispatcher>
    <chile.iso-ne.com> <adminserver> <ExecuteThread: '7' for queue:
    '__weblogic_admin_rmi_queue'> <> <> <000000> <RuntimeException thrown
    by rmi server: 'weblogic.rmi.internal.BasicServerRef@10b - jvmid:
    '7074298665992588400S:10.145.220.82:[7001,7001,7002,7002,7001,7002,-1]:smsdomain:adminserver',
    oid: '267', implementation:
    'weblogic.management.internal.AdminMBeanHomeImpl@3c7b65''>
    weblogic.management.NoAccessRuntimeException: User guest does not have
    access permission on weblogic.admin.mbean.MBeanHome
    at weblogic.management.internal.Helper.checkAdminPermission(Helper.java:1637)
    and
    "####<Sep 22, 2002 6:46:43 PM EDT> <Error> <HTTP Session>
    <chile.iso-ne.com> <webuiserver> <ExecuteThread: '0' for queue:
    'default'> <> <> <100032> <Error creating servlet session runtime>
    weblogic.management.NoAccessRuntimeException: User guest does not have
    access permission on weblogic.admin.mbean.MBeanHome
    at weblogic.rmi.internal.BasicOutboundRequest.sendReceive(BasicOutboundRequest.java:85)
    at weblogic.rmi.internal.BasicRemoteRef.invoke(BasicRemoteRef.java:136)
    at weblogic.rmi.internal.ProxyStub.invoke(ProxyStub.java:35)
    at $Proxy7.getMBeanServer(Unknown Source)
    at weblogic.management.internal.MBeanHomeImpl.isAdminHome(MBeanHomeImpl.java:93)
    at weblogic.management.internal.MBeanHomeImpl.getMBean(MBeanHomeImpl.java:118)
    at weblogic.management.internal.MBeanHomeImpl.getRuntimeMBean(MBeanHomeImpl.java:590)
    at weblogic.management.internal.MBeanHomeImpl.getRuntimeMBean(MBeanHomeImpl.java:568)
    at weblogic.servlet.internal.session.SessionData$1.run(SessionData.java:185)
    at weblogic.management.internal.Helper.doLocally(Helper.java:1656)
    at weblogic.servlet.internal.session.SessionData.getRuntimeMBean(SessionData.java:179)
    at weblogic.servlet.internal.session.SessionData.<init>(SessionData.java:166)
    Looks like the managed server is making a request of the admin server
    and propagating the "guest" principal instead of "system".
    These principal propagation errors from managed-to-admin seem to
    happen all over the place with different MBeans, and get patched one
    place at a time in various BEA service packs. For instance, there's
    another issue with accessing the XML Entity Cache from a managed
    server, and I'm sure I've read about others. Isn't there a way to
    make sure these errors no longer occur with any MBean requests from
    the managed server?
    Jim--
    Rajesh Mirchandani
    Developer Relations Engineer
    BEA Support

  • Runtime.exec() and fork() and Process

    So let me see if I understand this correctly, and if I don't please fill me in. If I call the following piece of codeRuntime.getRuntime().exec("chgrp rcsweb " + path+fs+orgName);
    Runtime.getRuntime().exec("chmod 660 " + path+fs+orgName);where path is the real path to a file, fs is short for File.spearator and orgName is the name of a file, then in the Unix environment, it will fork off a process.
    First, I seem to remember one forum topic that mentioned not forgetting about killing the process returned by exec, so I guess I need to add that to my code.
    Second, since I am forking off this process inside of a J2EE container, am I actually forming off the entire container, or just the Servlet where Runtime is called, or what?
    Third, how can I prevent the error java.io.IOException: Not enough space
    at java.lang.UNIXProcess.forkAndExec(Native Method)
    at java.lang.UNIXProcess.<init>(UNIXProcess.java:54)
    at java.lang.Runtime.execInternal(Native Method)
    at java.lang.Runtime.exec(Runtime.java:546)
    at java.lang.Runtime.exec(Runtime.java:413)
    at java.lang.Runtime.exec(Runtime.java:356)
    at java.lang.Runtime.exec(Runtime.java:320)when I do not have the option of changing my VM size? Is killing the Process (and using waitFor()) going to take care of this issue?
    I appreciate your help.

    OK, after writing a few test programs, it is indeed clear..on unix (at least on solaris) when calling runtime.exec(..) The ENTIRE VM does indeed get forked. Therefore if your current Memory allocation for you VM is sitting at say 64MB (or you initial memory setting), another 64MB process will be created, even if you doing something as a simple
    exec("ls");
    I also tried putting runtime.exec call in its own thread hoping that if it was not in the main thread, that only that process would be forked..to no avail..the entire vm is indeed forked everytime...making runtime.exec damn near useless for server side work, and very dangerious..as you can essentialy assume you always need 2x your memory requirements.
    If anyone has figured out a workaround...any suggestions greatly appreciated.
    Some thoughts on some work-arounds
    1. Run 2 VMs (then when native calls are required..send a message to the 'native-calling vm' (insure its memory footprint is very low)
    2. Write your exec method via JNI (or does JNI calls also result in a fork of the vm on unix..)
    Test code below (threaded version)
    import java.util.*;
    import java.io.*;
    public class test5 extends Thread
         public void run()
              int loops = 0;
              while (true)
                   loops++;
                   System.out.println("---- iteration " loops "---");
                   makeNativeCall();
         public static void main(String[] args)
              try
                   System.out.println("testing on OS: " + System.getProperty("os.name"));
                   // Allocate a nice chunk of memory
                   byte[] bytes = new byte[1024 * 1000 * 50];
                   test5 tst = new test5();
                   tst.start();
                   while (true)
                        Thread.sleep(1000);
         catch(Exception e)
         {e.printStackTrace();}
    public void makeNativeCall()
              Runtime runtime = Runtime.getRuntime();
    InputStream stderr = null;
    InputStream stdout = null;
              OutputStream stdin = null;
    Process proc = null;
    long totalMem = (long)(runtime.totalMemory()/1024);
    long freeMem = (long)(runtime.freeMemory()/1024);
    long usedMem = (long)((totalMem - freeMem));
    System.out.println("VM REPORT: TOTAL(" totalMem") FREE("+freeMem+") USED(" usedMem")" );
    try
    proc = runtime.exec("sleep 1");
    stderr = proc.getInputStream();
    stdout = proc.getErrorStream();
    stdin = proc.getOutputStream();
    String line = null;
    int i = 0;
    String error = "";
    int exitVal = proc.waitFor();
    if (exitVal != 0)
    System.out.println("ERROR " +exitVal);
    System.out.println("DETIAL" +error);
    catch(Exception e)
    e.printStackTrace();
    finally
    if (stderr != null)
    try{stderr.close();}catch(Exception ignore){ignore.printStackTrace();}
                   if (stdout != null)
    try{stdout.close();}catch(Exception ignore){ignore.printStackTrace();}
                   if (stdin != null)
    try{stdin.close();}catch(Exception ignore){ignore.printStackTrace();}
    if (proc != null)
    try{proc.destroy();}catch(Exception ignore){ignore.printStackTrace();}

  • Forms server architecture advice needed

    Hi
    We are using Forms & Reports Standalone 10.1.2.3.0. I am trying to get confirmation on two areas: how network traffic flows between client and Forms Server, and if traffic between the client and engine is encrypted.
    Network Traffic
    ==========
    Are the steps below the correct sequence of steps, particularly the last two steps?
    . user enters the appropriate URL into a browser
    . web server serves page containing applet tag (the applets render the forms screens on the client)
    . Browser requests applet if not already on client
    . Web server downloads applet to client
    . Applet on client contacts Forms Listener on server (using socket specified).
    . Forms listener starts a java runtime process on the server and hands off communication to it.
    . All further communication (as the user interacts with the form) is directly between applet on client and runtime process on server.
    Encryption
    =========
    Once communication between the client and the runtime applet is a direct relationship, is this traffic encrypted. I have seen a white paper from 2006 "An overview of Oracle Forms Server Architecture" which states it is, but this paper is 8 years old and I cannot find anything more upto date for 10gRel2.
    Any help would be appreciated.
    Regards
    Andy

    Oracle's reply to my questions were:
    Network Traffic
    =========
    Your understanding for the forms network traffic process is almost correct, except for step (7), where further communication between the applet and the runtime process is done through the Forms Listener Servlet, i.e. not a direct communications as was the case with sockets.
    But I believe this is not a network security issue, as both the Forms Listener Servlet and runtime process should reside on the same server machine.
    Encryption
    =======
    If security is an issue for you, Forms Development do not promote the 40 bit encryption as a secure solution. It dates back to a time when security did not have such a high profile, and most applications were run over the intranet.
    In that case, I would recommend using SSL.
    Regards
    Andy

  • IC WebClient customization u0096 view  replacement

    Hi everybody.
    Does anyone could help me to solve me issue? I have to make some changes in IC WebClient, so to make it I need to replace a couple of standard controllers. As I understood from IC WebClient consultants cookbook, to replace a view I need to do the following steps:
    1. In ‘spro’ transaction, Customer Relationship Management ->Interaction Center WebClient-> Customer-Specific System Modifications -> Define Runtime Framework Profile
    - Create runtime framework profile,
    - in ‘controller substitutes’ folder in the tree a left, assign replaced and replacement   controllers. For ex.: CRM_IC | BuPaCreate | ZMY_APLL | BuPaCreate
    - in ‘custom controller’ folder assign custom controller to be called, for CRM_IC it will be IC_BASE | CuCoBDC
    2. In ‘spro’ transaction, Customer Relationship Management ->Interaction Center WebClient->Define IC WebClient  Profiles
         - Create profile by coping the ‘DEFAULT’ one.
    - in ‘Assign function profiles’ folder in the tree a left, for function profile id ‘RUNTIME’ change profile value form ‘DEFAULT’ to the name of Runtime Framework Profile we created in the step 1
    3. In the cookbook sad: ‘Assign the IC WebClient profile to your user’s or business partner’s position in organizational management.’ I guess that this should connect our created profile with the actual user of the system.
    4. Restart the IC WebClient (application CRM_IC). This step is unclear for me, what does that mean ‘Restart’?
    As a result of this customization I expect that view ‘BuPaCreate’ from CRM_IC will be changed with BuPaCreate from ZMY_APLL. I use ‘BSP_WD_WORKBENCH’ transaction to test this changes, defining 'CRM_IC' as application and created profile name as Runtime Profile Name.  Can any body explain me how to execute the third step form the very beginning. Cause I did not have any special settings in the system for that, but my basis user. Anyway? any information will be helpful? Look forward for your replies.

    Hi Vlad,
       At first thx in sdn forum is give the points to the answer, i think you should give point to Thirumala.
       At last, if you ask for a question of WebClient Cookbook you should have the cookbook and see the process of assign the profile. You can find information of organitional management you can see in the CR100 ( Course SAP of Basic configuration of CRM ) or <a href="http://help.sap.com/saphelp_crm50/helpdata/en/68/5c1738453fde16e10000009b38f8cf/frameset.htm">Organizational Management in SAP CRM Enterprise</a>.
    Regards.
    Manuel

  • Custom tag 'process'  error

    << runtime failure in custom tag 'process' >>>
    Trying to create a simple portlet but it keeps giving the following stack
    trace.
    Any clues ?
    TIA
    javax.servlet.ServletException: runtime failure in custom tag 'process'
    at
    jsp._portals._repository.__user_add_portlets._jspService(__user_add_portlets
    .java:871)
    at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
    :106)
    at
    weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImp
    l.java:154)
    at
    com.beasys.commerce.foundation.flow.ServletDestinationHandler.handleDestinat
    ion(ServletDestinationHandler.java:51)
    at
    com.beasys.commerce.foundation.flow.FlowManager.service(FlowManager.java:448
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
    :106)
    at
    weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
    l.java:907)
    at
    weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
    l.java:851)
    at
    weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContext
    Manager.java:252)
    at
    weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:364)
    at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:252)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:129)

    There are a number possible reasons for the error "runtime failure in custom tag
    'process'" for WLCS 3.11 and 3.2. You might check the following:
    1) Make sure that WebLogic Server 5.10 SP6 is installed correctly and that
    weblogic510sp6.jar and weblogic510sp6boot.jar are at the fronts of
    weblogic_classpath and java_classpath, respectively.
    2) Check to see if weblogic-tags-510.jar from WebLogic Server 5.10 SP6 is copied
    to %weblogic_home%\lib\weblogic-tags-510.jar.
    3) The WLPS database is corrupted for reason or another. Rerun the appropriate
    database script at \weblogiccommerce\db\cloudscape\create-all-cloudscape.bat or
    \weblogiccommerce\db\oracle\create-all-oracle.sql.
    Ted
    aamerG wrote:
    << runtime failure in custom tag 'process' >>>
    Trying to create a simple portlet but it keeps giving the following stack
    trace.
    Any clues ?
    TIA
    javax.servlet.ServletException: runtime failure in custom tag 'process'
    at
    jsp._portals._repository.__user_add_portlets._jspService(__user_add_portlets
    .java:871)
    at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
    :106)
    at
    weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImp
    l.java:154)
    at
    com.beasys.commerce.foundation.flow.ServletDestinationHandler.handleDestinat
    ion(ServletDestinationHandler.java:51)
    at
    com.beasys.commerce.foundation.flow.FlowManager.service(FlowManager.java:448
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
    :106)
    at
    weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
    l.java:907)
    at
    weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
    l.java:851)
    at
    weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContext
    Manager.java:252)
    at
    weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:364)
    at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:252)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:129)

Maybe you are looking for

  • LR Catalog recovery?

    So I was cleaning out my Computer, and deleted one of The 200mb lightroom catalog files, since it looked like i had a bunch of them there(not smart, i know). Now when I start up LR, it cant find the right one, I oped up a backup but that one doesnt h

  • When i right click on a playlist it is not giving me a burn disc option????

    Can anybody help with this problem. I right click on my playlists and am not getting a burn disc or burn playlist to disc option. Is there another way i can try and burn a disc? Thanks in advance.

  • Mac icons not showing in dock application folder

    that's what displays after install. the proper icon displays everywhere else. the funny thing is if i move the app out of the applications folder, say to the desktop, then back to the applcations folder the icon proper icon shows.. wierd. any suggest

  • ITunes songs cause video to skip in iMovie

    Hi, this is a new problem I never used to have. ANY iTunes songs I've ever bought and downloaded, when imported into iMovie to provide music for my video, cause the video images to skip. I think because it's ACC protected music, but come on! I paid f

  • How to write a file locally coming as SOAP attachment from webservice

    Hi I have a scenario at my current implementation wherein the PDF file is obtained as an Attachment. When I use the SOAP UI to test the service, it appears as a separate attachment but, when I make a call from SOA, the same pdf is received in a base6