SessionBean is executing another request

I get an exception from the servlet is making ejb stateful session bean calls. The message of the exception is "SessionBean is executing another request" when multiple calls from browser client are made.
I'm using Tomcat for servlets and Sun j2EE server Reference Implementation for EJBs.
I don't know if this is a multithread problem or some mulfunction from de ejb container.

You can keep the reference variables as instance variables , but you have to synchronise access to this. This can be achieved by synchronized blocks or using single threaded model servlet.
--Ashwani                                                                                                                                                                                                                                                                                                                                                                                                               

Similar Messages

  • Session bean executing another request

    Dear All
    I am facing following exception in statefull session bean.
    When i acceess any function of statefull session bean concurrently.
    I am using sun ONE application Server.
    javax.ejb.EJBException: SessionBean is executing another request
    at com.sun.ejb.containers.StatefulSessionContainer.getContext(StatefulSessionContainer.java:733)
    at com.sun.ejb.containers.BaseContainer.preInvoke(BaseContainer.java:452)
    at com.softwerc.werclet.corporate.ejb.session.corpadminwerclet.CorpAdminWercletBean_EJBObjectImpl.getWercletDeta
    ils(CorpAdminWercletBean_EJBObjectImpl.java:1245)
    at com.softwerc.werclet.corporate.ejb.session.corpadminwerclet._CorpAdminWerclet_Stub.getWercletDetails(Unknown
    Source)
    at jasper.RefreshWerclet_jsp._jspService(_RefreshWerclet_jsp.java:446)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.iplanet.ias.web.jsp.JspServlet$JspServletWrapper.service(JspServlet.java:552)
    at com.iplanet.ias.web.jsp.JspServlet.serviceJspFile(JspServlet.java:368)
    at com.iplanet.ias.web.jsp.JspServlet.service(JspServlet.java:287)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at org.apache.catalina.core.StandardWrapperValve.invokeServletService(StandardWrapperValve.java:720)
    at org.apache.catalina.core.StandardWrapperValve.access$000(StandardWrapperValve.java:118)
    at org.apache.catalina.core.StandardWrapperValve$1.run(StandardWrapperValve.java:278)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:274)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:212)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:203)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
    at com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(NSAPIProcessor.java:157)
    at com.iplanet.ias.web.WebContainer.service(WebContainer.java:598)
    SEVERE: EJB5017: Exception while running preinvoke : ejbName = [CorpAdminWerclet]
    INFO: CORE3282: stdout: after SingleLoginBeanPKsoftwerc | D71AD2D8ACF0F72467AFBDFD24AF9967
    SEVERE: EJB5017: Exception while running preinvoke : ejbName = [CorpAdminWerclet]
    SEVERE:
    Nadeem Yousaf

    hi
    i am also facing the same exception in sun one app server 7.0. This is happening only in BMP Beans . Resource not available error is coming.
    If you use continously 15 minutes and above error is coming. Is problem withour code or appserver bug. CMP Beans are working fine.
    pls help.
    javax.ejb.EJBException: SessionBean is executing another request
    at com.sun.ejb.containers.StatefulSessionContainer.getContext(StatefulSessionContainer.java:733)
    at com.sun.ejb.containers.BaseContainer.preInvoke(BaseContainer.java:452)
    at LDAP.LDAPBean_EJBObjectImpl.getAllEmployees(LDAPBean_EJBObjectImpl.java:933)
    at LDAP._LDAPRemote_Stub.getAllEmployees(Unknown Source)
    at MMCampaignSearch.doGet(MMCampaignSearch.java:136)
    at MMCampaignSearch.doPost(MMCampaignSearch.java:247)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at org.apache.catalina.core.StandardWrapperValve.invokeServletService(StandardWrapperValve.java:720)
    at org.apache.catalina.core.StandardWrapperValve.access$000(StandardWrapperValve.java:118)
    at org.apache.catalina.core.StandardWrapperValve$1.run(StandardWrapperValve.java:278)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:274)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:212)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:203)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
    at com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(NSAPIProcessor.java:157)
    at com.iplanet.ias.web.WebContainer.service(WebContainer.java:598)

  • RemoteException: EJB is already executing another request

    Hi there,
    I have an EJB, in the other hand i have a Vector, the first EJB is in the Vector. In some method in the EJB it gets the Vector and try to run any method for every object inside, but if the EJB in the Vector is the same that is executing the method it throws an exception:
    java.rmi.RemoteException: EJB is already executing another request
    Can't i do that?
    How can i avoid this?
    thanks in advance.

    I think that this is what is called a reentrant bean. First of all you would need to make your bean reentrant, (by declaring it to be thus in the deployment descriptor) and second you should avoid this if possible according to Manson-Haefel, unless you know exactly what you are doing. (Hope I did remember that quote correctly. :) )
    With regards
    rh

  • Default value of prompt based on another request

    Hello:
    I have a requirement where I need to set default values of prompts based on another request.
    The prompt is a Date Prompt.
    I tried it using presentation variable, and writing sql query, where is says " WHERE promo_id= @{variable}"
    but it is still not working.
    Please let me know the workaround for this issue.
    Thank you.
    - Vinay

    How is the End Date determined for your BETWEEN operator? I would assume that is variable. Also, is the second report on another dashboard page or on the same page? Assuming both reports are on the same page, do the below. If not, you can use the same prompts on the second dashboard page. Set the scope to "dashboard" and the selection the user makes carries to the second page.
    The easiest way is to have 3 Dashboard prompts: Promo_ID, Start_Dt, and End_Date. Set these prompts to PVs: pvPromoID, pvStartDate, and pvEndDate, respectively.
    Filter report one on pvPromoID and pvStartDate.
    Filter the second report on pvPromoID and use pvStartDate in the filter of the Date column of report two. Assuming the BETWEEN values are variable, then you can write the following on the Date column of your second report:
    "Table Name"."Date ColumnName" <= '@{pvStartDate}' AND Table name"."Date Column Name" <='{EndDate}'
    And on your Promo column, use the filter "Table Name".Promo = '@{pvPromoID}'
    When the user selects the Promo ID, Start Date and End Date from the prompts, both the first and second reports will be filtered accordingly.

  • Can we call and execute a request set using db adapter or oracle apps adapt

    Hi,
    Can we call and execute a request set(which executes a set of packages in a sequence) using db adapter or oracle apps adapter similar to calling a stored procedure and concurrent program?
    thanks,
    RV

    1) In BPEL call the DBAdapter in a sequence, make sure you set the partnerlink 'property' to transaction=participate.
    2) Or create a package that calls the other packages in a sequence
    Marc
    http://orasoa.blogspot.com

  • Can a dbms_job.run execute a job that execute another dbms_job.run?

    Hi,
    I'm using Oracle9iR2 database.
    I create a package procedure that loop through a list of jobs from user_jobs table and run it using dbms_job.run(jobid).
    Then I schedule this package procedure as a job (say JobA) itself to execute the above procedure every 15 minutes.
    However, it always fail. When I execute JobA manually from sqlplus, I get the folllowing error. Any idea what's wrong?
    SQL> exec dbms_job.run(55805);
    BEGIN dbms_job.run(55805); END;
    ERROR at line 1:
    ORA-12011: execution of 1 jobs failed
    ORA-06512: at "SYS.DBMS_IJOB", line 406
    ORA-06512: at "SYS.DBMS_JOB", line 272
    ORA-06512: at line 1
    Please advise.
    Thank you.
    Message was edited by:
    bchurn

    Hi,
    I am bchurn's colleague who is currently also looking into this problem. The code that we have is similiar to yours except there's a cursor looping through all the failed jobs and executing them.
    I am not sure what is the actual difference but it is actually a job running a procedure instead of through SQL Plus.
    However, we found out that a job cannot run another job. But it seems to be alright with your settings :-/
    What we have is actually a job created for every email to be sent out to our users (jobA). But many a times, the emails were not sent out because of unknown problems (during that time - I think it's the ORA-00600 error).
    The last time we created the second job (jobB) for the purpose of re-executing failed jobA jobs. The errors are that a job cannot execute another job.
    Then, we worked around to change jobB to re-adjust the execution time for all the jobA jobs instead of directly reexecuting them. While some failed jobA jobs are executed successfully because of it, some still remains. We found out that the errors from failed execution of jobA jobs as following:
    ORA-00600: internal error code, arguments: [kgassg_2], [], [], [], [], [], [], []
    ORA-29279: SMTP permanent error: 555 5.5.4 <fieldNameHere> parameter unrecognized
    The second error very seldom. First one most common. The jobs eventually being executed successfully after many re-execution (sometimes about 3 to 4 times, some over 20 or 60 times). Anyone can give suggestions or inputs on the first error? The error log file and its trace files do not give much information on the errors with something like the following:
    Error log file:
    Errors in file /opt/app/oracle/products/920/admin/testapp/bdump/somefilename.trc:
    ORA-00600: internal error code, arguments: [kgassg_2], [], [], [], [], [], [], []
    And when I go and search for the somefilename.trc, it does not exist.
    Any idea on how to solve this or identifying the actual problem?
    Thank you in advance.

  • Filter based upon results of another request

    How do I troubleshoot a Filter based upon results of another request issue?
    I have a report that lists every account that purchased a product in May.
    I have a report that lists every account that purchased a product between Jan - April.
    I have a report that lists every account that purchased a product in May and also between Jan-apr. The problem is it's returning Account Names that are valid for May but not for Jan-apr and I dont' know why. It filters some but not others, interestingly enough it seems to split it down the middle.
    Report A = 222 customers
    Report B = 673
    Report C = 111???
    When I compare A to B manually I get 94.
    Any ideas as to how I troubleshoot this?

    Worked it out ;-D

  • Unable to execute rate request.

    Hi Frens,
    I got an error, as i tried to rate a program in oracle insbridge rate manager, as given below
    *"Unable to execute rate request. Please try your request again later. Data at the root level is invalid. Line 1, position 1. "*
    please help me out.

    stanley wrote:
    Hi Andy,
    here is a sample rate request xml which i have tried.
    <rate lob="20">
    <heading>
    <program parent_id="100" program_id="2" program_ver="1" />
    </heading>
    <c i="0" desc="Policy">
    <m i="9" n="a" v="" />
    <m i="10" n="b" v="" />
    </c>
    </rate>
    thanks in advance..A few things you need to make sure:
    1. LOB value (20) is appropriate? You can find the appropriate value in RateManager. 20 = Worker's Comp.
    2. parent_id (100) is appropriate? You can find the appropriate value in IBFA as Subscriber.

  • Peoplesoft adapter - Failed to execute PSSession request

    I am able to make login to PSFT Instance. When I click to child link "Component Interfaces" it not showing anything on the right hand side of the page. The error in the logs is as below:
    Thread[AWT-EventQueue-0,6,main] [error] [IWAF JCA] [container] [PeopleSoft.service_PSFT_DevInstance] java.lang.Exception: Not Authorized (90,6)Failed to execute PSSession request Cannot find Component Interface {IWY_CI_ATTRIBUTES} (91,2)
    Can anybody please help me on this ?

    Looking at the stack, it appears to be problem with security configuration on Peoplesoft interfaces
    http://download.oracle.com/docs/cd/B31017_01/integrate.1013/b28997/comp_interface.htm -Refer to section Securing a Component Interface to confirm if required steps are performed.
    Manoj

  • Execute another programm from Java

    Hello Java Gurus,
    I am developing a java app that reads from my DB and do some calcs with it. I would need to execute another programm later sending some of the data as parameters.
    In C I would use _exec() function, is there any function like that in Java?
    Many thnks,
    AC.

    There is a method like
    runtime.exec();
    you could use that.

  • Error when opening site settings: Error executing child request

    Hi -
    On one of the site collections that I migrated over, when I click on Site Settings, I get an error.   Tracking it with the correlation ID I found the information below.
    System.Web.HttpUnhandledException (0x80004005): Exception of type
    'System.Web.HttpUnhandledException' was thrown. ---> System.Web.HttpException (0x80004005): Error executing child request for /ilm/Style Library/style/LM_style_sheet.css
    System.Web.HttpServerUtility.ExecuteInternal(IHttpHandler handler,
    TextWriter writer, Boolean preserveForm, Boolean setPreviousPage,
    VirtualPath path, VirtualPath filePath, String physPath, Exception
    error, String queryStringOverride) at
    System.Web.HttpServerUtility.Execute(String path, TextWriter writer,
    Boolean preserveForm) at ASP._controltemplates_15_topnavbar_ascx.
    __Render__control1(HtmlTextWriter __w, Control parameterContainer)
    at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter
    writer...
    I think its somewhat like what this person was seeing
    here, but I am not sure why about the 1033 reference.  My LM_style_sheet.css reside at http://spsite/site/Style Library/style/LM_style_sheet_css
    How can I correct this issue?

    Hi XSSTX,
    According to your description, my understanding is that you got an error when you clicked Site Settings in SharePoint 2013.
    For resolving your issue , please open SharePoint 2013 Management Shell, and run the following PowerShell command:
    $w = Get-SPWeb http://YourServer/YourWeb;
    $w.AlternateHeader = $null;
    $w.Update()
    If this issue still exists, you need to embed the reference to your StyleSheet in the MasterPage:
    <SharePoint:CssRegistration
    name="<% $SPUrl:~sitecollection/Style Library/ style/LM_style_sheet.css%>"
    After="corev4.css"
    runat="server"
    />
    More information, please refer to the link:
    http://sharepointkate.com/2012/02/23/alternatecssurl-breaks-site-templates/
    I hope this helps.
    Thanks,
    Wendy
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Wendy Li
    TechNet Community Support

  • TNS-01190: The user is not authorized to execute the requested listener com

    Hello All,
    I just re-installed oracle forms10g and oracle 10g rel 2 on windows vista. The first time i installed both software, i swithched d pc off without turning off the listener on my laptop. When i rebooted, i found that i could not startup both forms 10g and oracle 10g database let alone loggin in. So i re-installed both prodcts. Every time i try to turn off the listener i get the error TNS-01190: The user is not authorized to execute the requested listener com. I have tried several ways to turn this off, but all effort has failed. After reading several literature on this issue, I learnt that if you change the password then any user who knows the password should be able to turn off the listener. But I still get thesame error on trying to add a password. Please can anyone help me by telling me how i can deduce the oracle user that has the administrative right to perform this task.
    Pls forgive me for the long text. Thanks again. Pls note I am not an expert so pls be explicit in your explanations.
    cheers
    aj

    Many thanks for your reply. It did not allow me to set up the password. It came back with thesame error TNS-01190 The user is not authorized to execute the requested listener command.
    I used the change_password command in lsnrctl from Dos. Note that I have created several users eg Oracle, on windows and gave it the Administrator privilege. But still it will not let me stop the listener or create a password for it. Hope anyone has experienced this before? Due to this my system has been on for the past 24hrs, approximately. Many thanks.
    Cheers
    Aj

  • Execute another exe file by my VI

    Hello,
    I am trying to execute anothe exe file, which was not created using LabView, from my VI.
    Is it possible? How could I do it?
    Thank you

    Use the System Exec function. Under Connectivity -> Libraries & Executables palette.

  • How to execute another application from java ?

    I want to execute another application ( not java ) from my java application. Is it possible ? How can we do it ? Please guide me...
    thanx

    Hi littlestuart,
    Yes it's possible.
    Your question is frequently asked, please search the forum or google for an answer.
    /Kaj

  • Executing another exe from a java class

    Hi All,
    I want to execute another executable from a java class. I am doing that with the help of Runtime.getRuntime().exec(String) function.
    My executable runs for quite sometime and it keeps printing something to stdout consistently.
    I want to read whatever this exe is putting out to stdout as and when it is put out, not after the whole process has finished.
    Now, Runtime.getRuntime().exec(String) just spawns the exe in another process space and I am not able to get its handle, maybe I have missed something.
    Is there any other method/way to do what I want to?
    TIA
    -Satish

    Now, Runtime.getRuntime().exec(String) just spawns the
    exe in another process space and I am not able to get
    its handle, maybe I have missed something.
    Is there any other method/way to do what I want to?Acutally, Runtime.getRuntime().exec(String) returns a Process object. Use this process to "talk" to the program you just launched. For your needs, try Process.getOutputStream(). Take a look at the API for Process at http://java.sun.com/j2se/1.3/docs/api/java/lang/Process.html
    Hope this helps.

Maybe you are looking for

  • Adding values for a single customer

    Hi Everybody, I am facing a programming issue. I have to do something like this: For a each customer, for all open items for that customer, I have to add the amount due at every period in aging in Accounts receivable. So for example, if I have two cu

  • Macbook Pro will only display basic colours

    I set up my macbook pro to run dual monitors with my 20 inch LG display. It worked fine for a bit but then decided to run to only basically colours, probably 256 colours. I then shut it off and tried it again the next day thinking it was a heat issue

  • Automatic Payment for Recurring Invoice

    We have a contract setup to pay 900 vendors once in year from 1/1/2012 to 1/1/2016.I have to set up automatic payment which automatically pays the vendor on 1st of every year from 2012-2016,same amount.The payment is made through checks  as we are ta

  • Auto start for all services under solaris 10 ?

    Hi, Can I set the oracle auto start ? include listener, sqlplus...etc. Thanks.

  • Create folder in Configuration Utility

    Is it possible to create folders on the Homescreen in the iPhone Configuration Utility. I created some WebClips in the Configuration Utility and want to group them in one folder on the Iphone. Thanks for help!