Trans time out

Hi,
I have a stateless session bean which calls a class which parses a huge xml file
and saves it to a database using entity bean, if the transaction runs for more
than 5 minutes , Tx. timesout and the whole Tx. rolls back. In my stateless session
bean i have timeout as 300 secs. In my enity bean trans attribute is mandatory.
One way to handle this problem is to increase the timeout. Is there any other
way of solving it or am i doing something fundamentally wrong.
Thanks in advance

Hi,
I can't figure out why i got the time out exception here. The bean only has one
method. what it does is to read off the message, if there is one then return the
message, otherwise return null. Actually nothing is transactional, but I like
the mechanism to time out the call. Question is:
1.Am I doing in the right way that have the ejb be transaction aware?
2. How can I figure out what caused the ejb to take that long?
3. In case of time out, it time out at the exact time that specified, so it will
throw the exception at that time? Normally what it should be done in the time
out? Do somethong in the bean or the client needs to catch the exception? what's
a good way to do it?
Thanks
java.rmi.UnexpectedException: Unexpected exception in ResBean.getResponse():
javax.transaction.RollbackException: Transaction TxC (5517625, xid = 1018856429251_65762,
timeout = 0, txState = Rolledback, root = null has been rolled back.Reason: Transaction
(TxC (5517625, xid = 1018856429251_65762, timeout = 240, txState = Marked Rollback,
root = null) rolled back after 240 sec.
     at weblogic.jts.internal.CoordinatorImpl.throwRollbackException(CoordinatorImpl.java:726)
     at weblogic.jts.internal.CoordinatorImpl.commit(CoordinatorImpl.java:347)
     at weblogic.jts.internal.TxContext.commit(TxContext.java:255)
     at weblogic.ejb.internal.StatelessEJBObject.postInvokeOurTx(StatelessEJBObject.java:88)
     at weblogic.ejb.internal.BaseEJBObject.postInvoke(BaseEJBObject.java:758)
     at ResponseBeanEOImpl.getResponse(ResponseBeanEOImpl.java:105)
     at ResponseBeanEOImpl_ServiceStub.getResponse(ResponseBeanEOImpl_ServiceStub.java:145)
     at jsp_servlet._reponse._jspService(_response.java:150)
     at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
     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)
Rob Woollen <[email protected]> wrote:
What do you expect to happen when the tx rolls back? The timer service
is not
participating in the tx so you will not be called back again.
There is a JMS "birth" time feature in WLS 6.1 JMS that you may want
to look into.
-- Rob
subra36024 wrote:
Hi rob,
Thanks for your reply.
After parsing the file i have to save the data to database. I amusing BMP for
this. I want this to be the part of Tx. How do i handle this.
Also The stateless session bean is triggered by a weblogic time services,
Thanks
Rob Woollen <[email protected]> wrote:
I'd probably make the session bean's parse method NotSupported and
not
do the parse in
the transaction.
I also wonder if you should do this synchronously. i.e. is it necessary
for the
caller to wait 5+ minutes for the parse to complete. I'd considerusing
messaging to
publish the XML message and have it parsed by a consumer.
-- Rob
subra36024 wrote:
Hi,
I have a stateless session bean which calls a class which parses
a
huge xml file
and saves it to a database using entity bean, if the transaction
runs
for more
than 5 minutes , Tx. timesout and the whole Tx. rolls back. In
my
stateless session
bean i have timeout as 300 secs. In my enity bean trans attribute
is
mandatory.
One way to handle this problem is to increase the timeout. Is thereany other
way of solving it or am i doing something fundamentally wrong.
Thanks in advance

Similar Messages

  • Time Out Settings in OSB

    Hi All,
    I have a service which calls DB via DB adapter. For the webservice call, I have an option of read time out settings in the business service, so that it will get time out after the configured time period.
    But for the DB call I dont have this option in the business service and we are getting stuck thread exceptions when the legacy is taking more time to respond back. We have a requirement that all the services realted to DB call have to get time out when the legacy takes more time.
    Kindly help me in doing this.
    Thanks and Regards,
    Prabhu

    Hi Anuj,
    I did a sample stored procedure which will wait for number of seconds which we send as input and will send the success repose after the number of seconds.
    StoredProcedure:
    create or replace
    procedure sleep (seconds in number,response out varchar2) as testdata number;
    begin
    testdata := seconds;
    dbms_lock.sleep(testdata);
    response := 'SUCCESS';
    end;
    Business Service XML:
    <?xml version="1.0" encoding="UTF-8"?>
    <xml-fragment xmlns:ser="http://www.bea.com/wli/sb/services" xmlns:tran="http://www.bea.com/wli/sb/transports" xmlns:env="http://www.bea.com/wli/config/env" xmlns:jca="http://www.bea.com/wli/sb/transports/jca" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <ser:coreEntry isProxy="false" isEnabled="true">
    <ser:binding type="SOAP" isSoap12="false" xsi:type="con:SoapBindingType" xmlns:con="http://www.bea.com/wli/sb/services/bindings/config">
    <con:wsdl ref="Sleep2/Sleep_dbBS"/>
    <con:binding>
    <con:name>Sleep_ptt-binding</con:name>
    <con:namespace>http://xmlns.oracle.com/pcbpel/adapter/db/Application1/Project2/Sleep</con:namespace>
    </con:binding>
    </ser:binding>
    <ser:monitoring isEnabled="false">
    <ser:aggregationInterval>10</ser:aggregationInterval>
    <ser:pipelineMonitoringLevel>Pipeline</ser:pipelineMonitoringLevel>
    </ser:monitoring>
    <ser:reporting>true</ser:reporting>
    <ser:sla-alerting isEnabled="true">
    <ser:alertLevel>normal</ser:alertLevel>
    </ser:sla-alerting>
    <ser:ws-policy>
    <ser:binding-mode>wsdl-policy-attachments</ser:binding-mode>
    </ser:ws-policy>
    </ser:coreEntry>
    <ser:endpointConfig>
    <tran:provider-id>jca</tran:provider-id>
    <tran:inbound>false</tran:inbound>
    <tran:URI>
    <env:value>jca://eis/DB/SleepConnection1</env:value>
    </tran:URI>
    <tran:outbound-properties>
    <tran:load-balancing-algorithm>round-robin</tran:load-balancing-algorithm>
    <tran:retry-count>0</tran:retry-count>
    <tran:retry-interval>30</tran:retry-interval>
    <tran:retry-application-errors>true</tran:retry-application-errors>
    </tran:outbound-properties>
    <tran:all-headers>false</tran:all-headers>
    <tran:provider-specific>
    <jca:jca-file ref="Sleep2/Sleep_db"/>
    <jca:adapter-name>Sleep</jca:adapter-name>
    <jca:adapter-type>DATABASE</jca:adapter-type>
    <jca:always-use-wsdl>true</jca:always-use-wsdl>
    <jca:connection-mode>managed</jca:connection-mode>
    <jca:outbound-properties>
    <jca:operation-properties>
    <jca:operation-name>Sleep</jca:operation-name>
    <jca:spec-properties>
    <jca:property>
    <jca:name>ProcedureName</jca:name>
    <jca:value>SLEEP</jca:value>
    </jca:property>
    <jca:property>
    <jca:name>QueryTimeout</jca:name>
    <jca:value>2</jca:value>
    </jca:property>
    <jca:property>
    <jca:name>GetActiveUnitOfWork</jca:name>
    <jca:value>false</jca:value>
    </jca:property>
    </jca:spec-properties>
    </jca:operation-properties>
    </jca:outbound-properties>
    </tran:provider-specific>
    </ser:endpointConfig>
    </xml-fragment>
    When I run this from the business service, if I give the input as 10, we are getting error only after 10 seconds not in the query time out seconds. But the thing is we are getting error. If we set the time as 11 seconds we are getting success response. But our requirement is the procedure has to time out in the specified seconds. Kindly correct me if I am wrong.
    Regards,
    Prabhu

  • WebLogic 10.3.6 Times Out When Starting Web App

    When starting our web app on WebLogic 10.3.6 using startWebLogic.sh on OEL (8 cores, 64 GB box), after about 5 to 6 minutes we receive a timeout error from WebLogic saying that it timed out trying to start the web app. The web app has some pre-computed indices to load which will take an estimated 10 to 15 minutes to load. Is there are way to control this timeout?

    The time-out you are getting is that related to a transaction?
    You can set the transaction time-out in the WebLogic console go to the JTA page for the domain, and change the value in the Timeout Seconds field.
    When you are using EJBs, you can also set the time-out on a EJB basis, instead of configuring the time-out for the whole domain.
    For example, in weblogic-ejb-jar.xml, you can configure the time-out by using:
    <weblogic-ejb-jar ...>
        <weblogic-enterprise-bean>
            <ejb-name>YOUR_EJB_NAME</ejb-name>
            <enable-call-by-reference>True</enable-call-by-reference>
            <stateless-session-descriptor>
                <pool>
                    <initial-beans-in-free-pool>25</initial-beans-in-free-pool>
                    <max-beans-in-free-pool>50</max-beans-in-free-pool>
                </pool>
            </stateless-session-descriptor>
            <transaction-descriptor>
                <trans-timeout-seconds>600</trans-timeout-seconds>
            </transaction-descriptor>
        </weblogic-enterprise-bean>
    </weblogic-ejb-jar>The transactions this EJB spawns can last for 10 minutes.

  • SXMB_MONI not Responding - Time Out

    Hi All,
    I am unable to see the processed XML messaged using the tcode SXMB_MONI.
    When I enter the selection criteria of the messages and execute it the GUI doesn't respond for sometime and finally throws a time out exception.
    Can somebody help me to solve this issue?
    Any configurations do we need to do when the tcode deosn't respond?
    Helpful Answers will be rewarded points.
    Thanks & Regards,
    Zabiulla

    Hi,
    can you check if your database performs well?
    what database system do you have ?
    for oracle, check with Note 1020260 - Delivering Oracle statistics
    for sqlserver, Note 1124574 - Performance improvement for 'SQL Server' in trans SXMB_MONI
    cheers,
    Aaron

  • Transaction aborted (possibly due to transaction time out) - Question

    This one is driving me insane!
    Bellow you will find the code, the descriptor stuff and the exception. The code belongs to a CMP EJB using CMT (transactions). This gets called from a session bean. Please help.
    Here is the code:
    public Object ejbCreate( String id )
         throws CreateException {
         s_logger.debug( "ejbCreate()" ); // this prits
         //setId( id );
         return null;
    public void ejbPostCreate( String id )
         throws CreateException {
         s_logger.debug( "ejbPostCreate()" ); // this also prints
    here is descriptor stuff:
    <container-transaction>
    <method>
    <ejb-name>AgentBean</ejb-name>
    <method-name>*</method-name>
    </method>
    <trans-attribute>Required</trans-attribute>
    </container-transaction>
    here is the !@#$ exception (sorry been tracing this one for hours):
    RemoteException occurred in server thread; nested exception is:
    java.rmi.RemoteException: Transaction aborted (possibly due to transaction time out).; nested exception is: javax.transaction.RollbackException: Transaction marked for rollback; nested exception is:
    javax.transaction.RollbackException: Transaction marked for rollback
    java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
    java.rmi.RemoteException: Transaction aborted (possibly due to transaction time out).; nested exception is: javax.transaction.RollbackException: Transaction marked for rollback; nested exception is:
    javax.transaction.RollbackException: Transaction marked for rollback
    java.rmi.RemoteException: Transaction aborted (possibly due to transaction time out).; nested exception is: javax.transaction.RollbackException: Transaction marked for rollback; nested exception is:
    javax.transaction.RollbackException: Transaction marked for rollback
    javax.transaction.RollbackException: Transaction marked for rollback
    <<no stack trace available>>

    It usually means that you're doing something which creates a loop in your locking. Something like setting a value in each instance from an update method of one of the instances. Your posted code doesn't seem to be the trouble, but I could be missing something.
    Success,
    S.

  • Can't release transport time out error

    Hi,
    I can't release the transport and giving time out error,increased the rdisp/max_wprun_time to 5000 seconds even though it is failing.Its is accessing TLOCKPC table and this contain 5 lack entries I created T02 index for this table.
    Please help to fix this issue.
    Thanks
    jalandhar

    Hi,
    Yes,we have latest tp version and /usr/sap/trans is have free space.
    We are facing issue with only one transport remaining all transports releasing properly.

  • SSO Partner Application and Session Time out

    Hi ,
    We have an application on forums.oracle.com which is implementing the Authentication scheme as SSO, that is working well, now we want to implement Session Time out if the user is idle for some time and ask him to login again after the session fails, I have tried to implement this feature as given by Scott in the thread session timeout , well the problem is since we dont have a login page here how do we set the cookies owa_cookie.send(
    name => 'HTMLDB_IDLE_SESSION',
    value => to_char(sysdate+(20/1440),'DD-MON-YYYY HH24:MI:SS'),
    expires => null,
    path => '/',
    domain => null
    and where is the current point to implement it.
    Any help on this is greatly welcome.
    Thanks in Advance.

    Naveen,
    I don't remember how the solution works. But if you don't have a login page you can usually put code in the post-authentication process of your authentication scheme to do whatever the login page process would have done.
    Scott

  • CRM WEB UI - Time out Pop-up

    Dear All,
    We have a business requirement to monitor and optimize the CRM WEB UI timeout and other related issues.
    I would like to have time-out pop-up for the call center agents  and hence they could better manage the sessions .
    This will avoid loosing the valuable customer data for the session and so on.
    We are now working on the following threads with CRM Technical folks.
    Please share your experience or the detailed steps if you had implemented already.
    SAP  note 1877120 - CRM-IC: session timeout issue with CRM 7 EHP1 and higher
    Also , have a look http://scn.sap.com/community/crm/webclient-ui-framework/blog/2012/05/17/session-time-out-warning-message-on-ui
    2092893 - Session Time Out Notification
    Regards
    Venkat

    Hello Venkat,
    For business roles of type IC Webclient, you have to implement SAP Note 1877120. Don't forget to update your view layout in your custom enhancement if you have enhanced CRMCMP_IC_FRAME/HiddenView.
    After implementation of 1887120, also implement 1977631 and 1955366.
    Best Regards,
    Sigrid

  • RCA Connection Pool idle Time-Out takes no effect !

    My question description goes here.
    According to JCA specification, I developed my 'ManagedConnectionImpl' class from the interface 'ManagedConnection'. I realize the 'destroy()' function to send out logout request to the EIS.
    Then I deployed the connector in Sun Java System Application Server, I noticed there are two parameters in Connection Pool part, they are:
    1. Idle Timeout. It said it's the maximum time that a connection can remain idle in the pool. I assume the connection will be removed after the specific time expired and before it's removed it will call the recallable function, 'destroy()', in my concrete class, 'ManagedConnectionImpl'.
    2. Pool Resize Quantity. it said it's number of connections to be removed when pool idle time expired.
    I am weird about it. I think EIS had itself session control strategy, if the specific session time-out expired, it will invalidate this session. So I think we will set 'Idle Timeout' in application server to be shorter than the EIS session time-out. If the 'Idle Timeout' in application server expired, it should remove all connections inside otherwise maybe the connection with invalid session will exist! (the background knowledge is our system will return back soap fault when it meets invalid session, so the invalid connections will not be removed by switching on your configuration item, 'On Any Failure')
    So I set "inital and minimum pool size" to 8, "maximum pool size" to 32 and "Pool Resize Quantity" to 32. (I expect AS to remove all when pool idle time expired)
    After deploying, I send out requests at the first round and wait for the time expired but I can't see the desired logout requests from pool automatically even one. Firstly I guess if my recallable function definition is wrong but when I shut down the Application Server, the desired logout requests are sent out from pool automatically. So I think my recallable function definition is workable.
    What's your comments on it?
    P.S.
    I am using Sun Java System Application Server 8.1.
    Thanks in advance!
    BRs
    /Leo

    I have had following test to ensure I sent out notification to listener.
    [#|2005-08-23T16:14:25.061+0800|INFO|sun-appserver-pe8.1_01|javax.enterprise.system.stream.out|_ThreadID=12;|
    It's in managed env!|#]
    [#|2005-08-23T16:14:25.062+0800|INFO|sun-appserver-pe8.1_01|javax.enterprise.system.stream.out|_ThreadID=12;|
    enter matchManagedConnections() !|#]
    [#|2005-08-23T16:14:25.062+0800|INFO|sun-appserver-pe8.1_01|javax.enterprise.system.stream.out|_ThreadID=12;|
    try to find a matching and existing one, reuse it!|#]
    [#|2005-08-23T16:14:25.062+0800|INFO|sun-appserver-pe8.1_01|javax.enterprise.system.stream.out|_ThreadID=12;|
    Found a matching and existing one, reuse it!|#]
    [#|2005-08-23T16:14:25.495+0800|INFO|sun-appserver-pe8.1_01|javax.enterprise.system.stream.out|_ThreadID=12;|
    tearDown() is called, the application-level connection is released!|#]
    [#|2005-08-23T16:14:25.496+0800|INFO|sun-appserver-pe8.1_01|javax.enterprise.system.stream.out|_ThreadID=12;|
    enter calling close() of managed connection.|#]
    [#|2005-08-23T16:14:25.496+0800|INFO|sun-appserver-pe8.1_01|javax.enterprise.system.stream.out|_ThreadID=12;|
    Start calling close() of managed connection.|#]
    [#|2005-08-23T16:14:25.496+0800|INFO|sun-appserver-pe8.1_01|javax.enterprise.system.stream.out|_ThreadID=12;|
    start to notify the listener the completeness of connection.|#]
    [#|2005-08-23T16:14:25.496+0800|INFO|sun-appserver-pe8.1_01|javax.enterprise.system.stream.out|_ThreadID=12;|
    notify the listener the completeness of connection successfully.|#]
    Whether it's related with the initial and minimum number parameter? Although I found it will not be created during AS start-up and will be created at the first request.
    Whether it shall be kept to meet the minimum requirement? I have failed to set it to 0.

  • Getting time out error when running the assigned verification in DRM 9.3.2.

    Hi,
    I have installed DRM 9.3.2.0.0 in my system (windows 7), when i am trying to run assigned verifications i am getting the time out error within a minute.
    As suggested by oracle,I have added DWORD with value 480000 under Master Data Management in Registry editor. But still getting the error.
    Please suggest a solution for this issue.
    regards,
    sathiya

    Please suggest me the solution.
    regards,
    sathiya

  • Session time out when trying to redeem card!?

    hi, I have tried to redeem my card 5 times now, and itunes keeps saying "session time out your sessions has timed out please try this operation from beginning" I am dualbooting windows xp and windows 7, I have used both OS's and still the same thing. when I try to redeem it on my ipod touch it tells me I have the wrong code. I do not have a mac availble im on vecation and only brought the PC laptop.
    if it matters im using the itunes canadian store.

    This worked for me:
    Establish in her router a WEP 128 bit data encryption password. (Post back if you need help on this). Apparently macs have slightly different Airport drivers and work better with WEP 128 bit than with WPA although this doesn't explain why my friend's MB had your mum-in-law's problem but could connect to my WPA protected network - go figure! Anyway, try a different password encryption and see if that works.
    As for not sending mail, check with your Mail Server what the SMTP setting should be.
    Joe

  • Session time out app store

    I keep getting session time out whenever I try to purchase apps on iPhone 5. It keeps asking me to verify my credit card security number and then when I click DONE, it tells me session time out. Anyone can help?

    Having problem with internet connectivity on WIFI - anything that depends on DNS for data whether it is a web browser or an app while using WIFI.  I call this problem "WIFI Lockout".
    This happens on iphone 4, ipad 2 and ipad 3 that has been updated to iOS 6.
    I am not talking about the issue of the missing apple page (day 1) or the inability to turn on/configure WIFI after updating to iOS 6.
    This is what i have discovered so far.
    You could be in the middle of surfing or using any app that makes data calls based on DNS (when you type google.com that is translated in the background so your device knows where to go - summary only) and suddenly you can go no where or do nothing!
    Sometimes conectivity goes trouble free for long periods, other times it is repetitive "WIFI Lockout".
    Yea sure, you can restart the WIFI connection, but WHO wants to CONTINUALLY do that?
    Interestingly enought the device is still successfully connected to the internet via WIFI, but DNS request fail to pass successfully from the iOS 6 device.
    Apple (or any curious iOS 6 user that wants to see my point), when this happens "WIFI Lockout" open up a browser before you reset the WIFI  connection and type type 74.125.227.144 (google) and then “go” (I tried both safari and chrome).  A google search page will come up and you will be able to execute a search (of course any link you click on will not work as it is dependant on DNS resolution).
    The above IP connection to google proves NON DNS traffic works, so the issue is not the WIFI connection to the access point that is the problem.  It is not an access point configuration/firmware or security protocol issue either because data does pass when the above steps are followed.
    I KNOW THIS IS NOT ALL OF THE PROBLEMS WITH iOS 6, BUT THIS IS A HUGE PROBLEM NOT BEING ABLE TO SURF OR GET DATA THE iOS 6 DEVICE IS REQUESTING WHILE ON WIFI.

  • Session time out

    Hi,
    Is there any way to set ovm manager gui session time out.
    as of now, if there is no action in gui for 2 mins,
    session gets timed out.
    Importing a template takes lot of time and session is
    getting timed out just after 2 mins.
    I have another question. Even if session times out,
    does importing template continue?
    Thanks
    Ram

    887506 wrote:
    Is there any way to set ovm manager gui session time out.There is a way to increase the WebLogic timeout, but I'm not 100% sure on the process. Best thing to do is open an SR with Oracle Support so they can provide the exact steps.
    I have another question. Even if session times out,
    does importing template continue?Yes, this all happens on the Server/Manager side and doesn't require you to remain logged into the UI while the job runs.

  • Session time out in EP & webdynpro

    Hi can any body tell me how to control webdynpro session & portal session?
    I have created a webdynpro application & integrated in EP. I want to control the session time out for my application because if i run my application in Ep & the session time is out, i need to refresh my dynpro application.
    I want to control this session time out.
    Thanks,
    Siva

    Hi siva..
    Chk this link..
    Tabstrip: navigate with buttons instead of tabs
    Regards,
    GS

  • Session time out problem

    Hi guys
    I am using WSAD 5.0. the problem that i am having is that i have a properties file where i give the session time out value along with many other things. and when a user logs in a servlet takes those values from the properties file and sets the session time out value, using session.setMaxInactiveInterval(). but the problem is the session is still maintained even after the stipulated inactive time. Can any one tell me what could be the problem.
    Note: when i say session.getMaxInactiveInterval(), i get the value that i have set in the properties file.
    Thanks

    You're sure you specified seconds rather than milliseconds?
    - Saish

Maybe you are looking for