Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Other Java > Java Databases
|
Java Databases Discussion specific to working with Java Databases. For other Java topics, please see related Java forums. For database discussions not specific to Java, please see the Database category.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Java Databases section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 16th, 2004, 04:26 PM
Authorized User
 
Join Date: Jul 2003
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default TRANSACTION_ENDING error

Hi all

Can anyone help me....! 'am getting the below error.

================================================== ===================
2004-08-16 09:06:28,251 ERROR: %EID9421649% AccountDAO:getAccountInformation:: java.sql.SQLException: DSRA9360E: Unable to perform the requested operation fro
m the following transaction state: TRANSACTION_ENDING.
java.sql.SQLException: DSRA9360E: Unable to perform the requested operation from the following transaction state: TRANSACTION_ENDING.
        at com.ibm.ws.rsadapter.jdbc.WSJdbcConnection.beginTr ansactionIfNecessary(WSJdbcConnection.java:409)
        at com.ibm.ws.rsadapter.jdbc.WSJdbcPreparedStatement. executeQuery(WSJdbcPreparedStatement.java:411)
        at com.equifax.emsops.business.dao.AccountDAO.getAcco untName(AccountDAO.java:1398)
        at com.equifax.emsops.business.facade.OrderBLBean.add ChlOrder(OrderBLBean.java:482)
        at com.equifax.emsops.business.facade.EJSRemoteStatel essOrderBL_bbb9daa0.addChlOrder(EJSRemoteStateless OrderBL_bbb9daa0.java:2550)
        at com.equifax.emsops.business.facade._OrderBL_Stub.a ddChlOrder(_OrderBL_Stub.java:276)
        at com.equifax.emsops.business.delegate.OrderDelegate .addChlOrder(OrderDelegate.java:77)
        at com.equifax.emsops.uicontroller.views.ApplicantInf ormationView.doPerform(ApplicantInformationView.ja va:1605)
        at com.equifax.emsops.uicontroller.GenericAction.perf orm(GenericAction.java:95)
        at org.apache.struts.action.ActionServlet.processActi onPerform(ActionServlet.java:1786)
        at org.apache.struts.action.ActionServlet.process(Act ionServlet.java:1585)
        at org.apache.struts.action.ActionServlet.doPost(Acti onServlet.java:509)
        at javax.servlet.http.HttpServlet.service(HttpServlet .java:760)
        at javax.servlet.http.HttpServlet.service(HttpServlet .java:853)
        at com.ibm.ws.cache.servlet.ServletWrapper.servicePro xied(ServletWrapper.java:269)
        at com.ibm.ws.cache.servlet.CacheHook.handleFragment( CacheHook.java:233)
        at com.ibm.ws.cache.servlet.CacheHook.handleServlet(C acheHook.java:141)
        at com.ibm.ws.cache.servlet.ServletWrapper.service(Se rvletWrapper.java:251)
        at com.ibm.ws.webcontainer.servlet.StrictServletInsta nce.doService(StrictServletInstance.java:110)
        at com.ibm.ws.webcontainer.servlet.StrictLifecycleSer vlet._service(StrictLifecycleServlet.java:174)
        at com.ibm.ws.webcontainer.servlet.ServicingServletSt ate.service(StrictLifecycleServlet.java:333)
        at com.ibm.ws.webcontainer.servlet.StrictLifecycleSer vlet.service(StrictLifecycleServlet.java:116)
        at com.ibm.ws.webcontainer.servlet.ServletInstance.se rvice(ServletInstance.java:283)
        at com.ibm.ws.webcontainer.servlet.ValidServletRefere nceState.dispatch(ValidServletReferenceState.java: 42)
        at com.ibm.ws.webcontainer.servlet.ServletInstanceRef erence.dispatch(ServletInstanceReference.java:40)
        at com.ibm.ws.webcontainer.webapp.WebAppRequestDispat cher.handleWebAppDispatch(WebAppRequestDispatcher. java:1030)
        at com.ibm.ws.webcontainer.webapp.WebAppRequestDispat cher.dispatch(WebAppRequestDispatcher.java:566)
        at com.ibm.ws.webcontainer.webapp.WebAppRequestDispat cher.forward(WebAppRequestDispatcher.java:198)
        at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForwar d(WebAppInvoker.java:80)
        at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleIn vocationHook(WebAppInvoker.java:214)
================================================== ===

thanks in-advance
suri




 
Old August 17th, 2004, 01:45 AM
Friend of Wrox
 
Join Date: Jul 2004
Posts: 345
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to gokul_blr Send a message via Yahoo to gokul_blr
Default

Please post your part of code will be helpful,
Check at line No. 1398 (AccountDAO.java)
emsops.business.dao.AccountDAO.getAccountName(Acco untDAO.java:1398)

 
Old August 17th, 2004, 09:20 AM
Authorized User
 
Join Date: Jul 2003
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Gokul_blr

Thanks for looking into the issue. Let me also tell one more thing, this "TRANSACTION_ENDING" happens at different methods. The error shown in my previous topic had occurred at the below method. Some of the lines are indicated with line Nos( prefixed with >> ).
====================
    public String getAccountName(String accountNumber)
        throws EmsopsOperationFailedException
    {
        String accountName = "";

        try {
            connection = getConnection();
>>1394 statement = connection.prepareStatement(
>>1395 "select acct_name from client_prf where acct_no=?");
>>1396
>>1397 statement.setString(1, accountNumber);
>>1398 resultSet = statement.executeQuery();
>>1399
>>1400 if (resultSet.next()) {
                accountName = resultSet.getString(1);
            }
        } catch (Exception e) {
            throw new EmsopsOperationFailedException("AccountDAO:getAcco untInformation:: " + e, e);
        } finally {
            closeResource();
        }

        return accountName;
    }
=================
thanks once again
suri.

 
Old August 17th, 2004, 11:05 PM
Friend of Wrox
 
Join Date: Jul 2004
Posts: 345
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to gokul_blr Send a message via Yahoo to gokul_blr
Default

What do you mean by "Let me also tell one more thing, this "TRANSACTION_ENDING" happens at different methods."

As request to you and all friends, If you brief about error/whatever the related if you think so, it will be helpful for us to seek the error.
 
Old August 17th, 2004, 11:17 PM
Friend of Wrox
 
Join Date: Jul 2004
Posts: 345
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to gokul_blr Send a message via Yahoo to gokul_blr
Default

Pls define the variable as
at 1398 it will return the value as the ResultSet so to carry the value you require the initilization.

ResultSet resultSet; // at 1391 or below to the declaration String accountName = "";



 
Old February 7th, 2005, 08:10 PM
Registered User
 
Join Date: Feb 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

does anyone know where i can get a password and username so i can do a credit search on myself or could you if you have the software email it to me thanks

 
Old February 7th, 2005, 08:14 PM
Registered User
 
Join Date: Feb 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

can someone send me a username and password so i can do a credit search or email me the software thanks






Similar Threads
Thread Thread Starter Forum Replies Last Post
Insert Query Error & Run-Time Error 3022 DavidWE Access 1 July 31st, 2008 11:17 AM
Ch 4: Parse error: syntax error, unexpected T_SL hanizar77 BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 0 June 23rd, 2008 09:17 PM
hi i got runtime error 13 Type Mismatch error sriharsha345 Access VBA 2 February 21st, 2008 09:30 AM
TRANSACTION_ENDING Exception suri J2EE 5 May 22nd, 2006 11:35 AM
TRANSACTION_ENDING error suri Java GUI 0 March 12th, 2004 12:28 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.