Problem in using Unit of Work with executeNonSelectingCall() method

Hi,
I am using external Connection Pooling and Transaction Controller of JBoss in Toplink.
When I am getting the data from DB and do "clientSession.release();", it works fine.
I get the clientSession as follows:
serversession = (Server) SessionManager.getManager().getSession(new XMLSessionConfigLoader(),"Session", Thread.currentThread().getContextClassLoader(), false, true);
serversession.login();
ClientSession clientsession = serversession.acquireClientSession();
I am facing the problems in two cases:
Case 1: But when I get the UOW through "transaction = clientSession.getActiveUnitOfWork();" and insert the data, commit and do "clientSession.release();", I get the following error:
[CachedConnectionManager] Closing a connection for you. Please close them yourself: org.jboss.resource.adapter.jdbc.WrappedConnection@c42091
I removed clientSession.release(); from my finally{} block still I am getting the same error.
Case 2: But when I get the UOW through "transaction = clientSession.acquireUnitOfWork();" and insert the data, commit and do "clientSession.release();", I get the following error:
17:48:55,670 ERROR [LogInterceptor] TransactionRolledbackLocalException in method: public abstract java.lang.String com.pearson.pix.business.purchaseorder.interfaces.PurchaseOrderLocal.saveOrderConfirmation(com.pearson.pix.dto.purchaseorder.POHeader) throws com.pearson.pix.exception.AppException, causedBy:
org.jboss.tm.JBossRollbackException: Unable to commit, tx=TransactionImpl:XidImpl[FormatId=257, GlobalId=asad/139, BranchQual=, localId=139] status=STATUS_NO_TRANSACTION; - nested throwable: (java.lang.NullPointerException)
     at org.jboss.tm.TransactionImpl.commit(TransactionImpl.java:354)
I am not able to understand what to do. Pls. help.
Thanks

Locking a row that does not exist can be difficult.
On most database you can lock an entire table through "LOCK TABLE <table>", however this may be extreme. Potentially you could also insert an empty row into the table with the id that you want to lock, then you would have a write lock on the row until you commit the transaction.

Similar Messages

  • Ipad 2 upgraded to iOS 8.0.2 and the cellular signal doesn't work. Have to restart the unit to work with cellular signal. After a while it goes off and no service indication appears.

    Ipad 2 upgraded to iOS 8.0.2 and the cellular signal doesn't work. Have to restart the unit to work with cellular signal. After a while it goes off and no service indication appears.

    iPad 2, Since upgrading to iOS 8.0.2  the cellular signal indicates I do not have a SIM card. Monday spent hours on the phone with Apple support, backed up my iPad, reset all settings, reloaded my iPad and it still tells me I don't have a SIM card. Tuesday went to AT&T and got a new SIM card on the advice of apple support. It worked perfect until this morning and the NO SIM CARD notice reappeared. Never ever had any problem until the upgrade. I find it inexcusable that Apple refuses to address the issues they caused, iOS 8.0.2 is the Ebola of iPad 2 world. I dont have any cellular service after wasting two days trying to address and fix a problem Apple is responsible for. It's obvious Steve Jobs is no longer running the company. Furious & fustrated. How does Apple expect anyone who uses an iPad 2 for work, to remain a customer who will return to their products?

  • Multi-page units of work with automatic state management

    Hi Jhs team:
    When my applications need to support an end-user task requiring data entry on many different web pages to complete,
    how to building multi-page units of work with automatic state management ? please give some instruction .

    Ting Rung,
    You can do this in two ways:
    - use a Struts form bean to collect all the values over the requests
    - submit the changes of each request to bc4j, but do not post and commit the changes to the database.
    The latter is easiest. For this to work, you must set the doCommit property of all your save actions in the stuts-condig to false, except for the last save action in the chain of requests.
    In addition, in your application module class, you need to overwrite method postChanges as follows:
    * DO NOT post the changes to the database
    public void postChanges() throws Exception
    // do not post here
    // posting will happen when the commitChanges
    // method on the handler is invoked
    Steven Davelaar,
    Jheadstart Team.

  • Having problems getting Comcast internet to work with my power Mac running 10.5.8  Help needed

    Just got Comcast Cable and everything works: phone, WiFi, and TV, BUT ethernet won;t work with my power mac tower running 10.5.8 . Hooked modem to laptop running Microsoft and no problem, but it won't work with my Mac.  Any solutions out there?

    Hi, see if this changes anything...
    Make a New Location, Using network locations in Mac OS X ...
    http://support.apple.com/kb/HT2712
    10.5, 10.6, 10.7 & 10.8…
    System Preferences>Network, top of window>Locations>Edit Locations, little plus icon, give it a name.
    10.5.x/10.6.x/10.7.x/10.8.x instructions...
    System Preferences>Network, click on the little gear at the bottom next to the + & - icons, (unlock lock first if locked), choose Set Service Order.
    The interface that connects to the Internet should be dragged to the top of the list.
    If using Wifi/Airport...
    Instead of joining your Network from the list, click the WiFi icon at the top, and click join other network. Fill in everything as needed.
    For 10.5/10.6/10.7/10.8, System Preferences>Network, unlock the lock if need be, highlight the Interface you use to connect to Internet, click on the advanced button, click on the DNS tab, click on the little plus icon, then add these numbers...
    208.67.222.222
    208.67.220.220
    (There may be better or faster DNS numbers in your area, but these should be a good test).
    Click OK.

  • Problem in using AdvanceDataGrid as tree with drag n drop functionality

    Hi All,
    I am using AdvancedDataGrid as tree for displaying my data. Within this ADG tree I have to enable drag n drop i.e. user can select one node and will able to drop that on another node within tree.
    Overwritten dragDrop handler event for ADG.
    Issues: Not getting target node on which I am dropping currently selected node.

    Please don’t use this forum for support questions, go use flexcoders or the Adobe forums instead.
    Matt
    On 2/10/09 11:21 PM, "rakess" <
    [email protected]> wrote:
    A new discussion was started by rakess in
    Developers --
      Problem in using AdvanceDataGrid as tree with drag n drop functionality
    Hi All,
    I am using AdvancedDataGrid as tree for displaying my data. Within this ADG tree I have to enable drag n drop i.e. user can select one node and will able to drop that on another node within tree.  
    Overwritten dragDrop handler event for ADG.
    Issues: Not getting target node on which I am dropping currently selected node.
    View/reply at Problem in using AdvanceDataGrid as tree with drag n drop functionality <
    http://www.adobeforums.com/webx?13@@.59b7e11c>
    Replies by email are OK.
    Use the unsubscribe <
    http://www.adobeforums.com/webx?280@@.59b7e11c!folder=.3c060fa3>  form to cancel your email subscription.

  • I have downloaded MAMP for Mac and want to use it for working with Wordpress. I had mysql installed before this and would like to uninstall it and use MAMP. It was easy to turn off Apache and PHP but don't know how to uninstall mysql. Please help!!

    I have downloaded MAMP for Mac and want to use it for working with Wordpress. I'm on an Imac with Maverick OS 10.9. I had mysql installed before this and would like to uninstall it and use MAMP. It was easy to turn off Apache and PHP but don't know how to uninstall mysql. Please help!!

    It depends on how you installed it. You have to shutdown the MySQL service first. If you used the standard, but obsolete Startup Item, you can do that with the Startup Item. If you created a launchd script, you can do it with launchctl. Once MySQL is no longer running, you can delete the Startup Item or launchd script and the rest of MySQL.

  • How to use the class CL_CTMENU with the method DISABLE_FUNCTIONS

    Hi Friends,
    How to de-activate some functions in the Menu bar?
    Eg: - Sales document
                 Create
                 Change
                 Display
    I want to de-activate "Change"
    In other words: - How to use the class CL_CTMENU with the method DISABLE_FUNCTIONS in my program.
    Regards,
    Hari
    Edited by: Bhatlapenumarthy Hari Krishna on Jun 9, 2008 5:22 PM

    Krishna,
    It is not possible to deactivate the CHANGE option in themenu bar using the method disable_functions of cass CL_CTMENU. This method allows you to deactivate only the function codes of the CONTEXT MENU, which is available only when u press the left mouse button.
    U can use the SET PF-STATUS 'XXX' EXCLUDING fcodes option to disable the CHANGE.
    *****Reward points if useful
    Regards,
    Kiran Bobbala

  • Cookies are written to the cookie file but sites are not finding them. I've tried all the suggestions I could find. I'm using OS 10.5.8 Could there be something in the OS causing the problem? My Win7 laptop works with the same sites.

    I cannot log-in to accounts on other websites e.g. eBay, Amazon, for starters. I get messages that I need to turn on cookies. They are on and I can see the cookies in the cookie file but the programs are not making the connections and not finding the cookies. I've found that I have the same problem with Safari and Camino. Could something in the OS be interfering and if so, how can I fix this? The problem only exits on my Mac with OS 10.5.8 On my new Windows 7 laptop Firefox has no problem logging into any of my existing accounts.

    If clearing the cookies doesn't help then it is possible that the file <i>cookies.sqlite</i> that stores the cookies is corrupted.
    Rename (or delete) <b>cookies.sqlite</b> (cookies.sqlite.old) and delete <b>cookies.sqlite-journal</b> and <b>cookies.txt</b>, if they exist, in the Firefox Profile Folder in case the file cookies.sqlite got corrupted.
    *http://kb.mozillazine.org/Profile_folder_-_Firefox
    *http://kb.mozillazine.org/Cookies
    *http://kb.mozillazine.org/Websites_report_cookies_are_disabled

  • Problems in using the driver coming with application in Crystal Report

    Post Author: StrongWare
    CA Forum: Data Connectivity and SQL
    Hi! All,
    I used the ADORecordSet to fetch data from tables, and pass it to ther report at runtime using AddADOCommand.
    I got the ActiveConnection and ActiveCommand from ADORecordSet and passed them as parameters of AddADOCommand, it seems the AddADOCommand opens an addional connection, which can be told from the ODBC trace, instead of using the ActiveConnection I passed in.
    Is that true?
    It causes the big problem for me, since the ActiveConnection I passed in was opened using our OEM DataDirect driver and I assumed the AddAdoCommand uses it directly, but it is not the case!! The AddADOCommand just uses the connection information from ActiveConnection and opens an additional one. Since the connection string contains the driver name, so this connection is also opened via our OEM DataDirect Driver. But the Crystal Report tries to unlock it using its own license/password {qecr.lic,brahmabrahmabrahmabrahma} to unlock our OEM driver, which of course raises the license warning from DataDirect Driver 5.2!! After a certain grace period, any sql operations under the cover of AddADOCommand fail and thus causing the failure of AddADOCommand.
    Now what is the solution?
    1. how to avoid open an additional connection? or any other API I should call to avoid this?
    2. How Crystal Report works with the driver coming with the application, and this driver needs to be unlocked before being used.
    Thanks
    Strong

    I don't have the any driver's source code (such as ividcpwr.dll source code), how can I modify the specific driver through labwindows.
    Follow your advice I use I/O trace to get trace as follows:
    1 IviDCPwr_InitWithOptions ("ke2303", VI_FALSE, VI_TRUE, "", 0x0C913064) VI_SUCCESS 14:45:10.675
    2 IviDCPwr_ConfigureVoltageLevel (ke2303, "CHANNEL1", 3.8) VI_SUCCESS 14:45:11.405
    3 IviDCPwr_ConfigureCurrentLimit (ke2303, "CHANNEL1", 0, 3) VI_SUCCESS 14:45:12.104
    4 IviDCPwr_ConfigureOutputEnabled (ke2303, "CHANNEL1", VI_TRUE) VI_SUCCESS 14:45:12.824
    5 IviDCPwr_Measure (ke2303, "CHANNEL1", 1, 0) VI_ERROR_TMO 14:45:16.207
    6 IviDCPwr_GetError (ke2303, -1073807339, 0, "") 0x00000037 14:45:32.991
    7 IviDCPwr_GetError (ke2303, -1073807339, 55, "Primary Error: ..................") VI_SUCCESS 14:45:32.991
    8 IviDCPwr_close (ke2303) VI_SUCCESS 14:45:33.847
    I cannot see any GPIB command in the trace but some IviDCPwr functions.
    Besides, if I know any bug (eg. some wrong GPIB command) in ividcpwr.dll, how can I modify it before I get it's source code.
    Pls teach me anytime in your conveneince.
    thanks!

  • Sudden problem getting CD-LabelPrint to work with Canon ip5200R

    The last time I successfully printed a disc label on my Canon ip5200R was in November last year - until then, I'd had no problems printing from a couple of different iMacs & my MacBook Air. I have recently tried to print a new label, but am receiving the message: "The Paper Settings are not correct. Please check the paper size, magnification ratio, and the paper orientation. To set the paper settings, please click on "Settings". To cancel printing, please click "Cancel"." All of my settings are correct! I used to get a message that advised me to check the "Quality & Media" settings, where I could make further adjustments (eg, tick "greyscale printing"), but I can no longer access this option.
    A Google search revealed that others have had similar problems - solutions suggested included updating the software. I was using CD LabelPrint v.1.3. I have installed v.1.7, but the problem persists. (When I installed v.1.8, the message indicated that there was no printer installed that would work with the program!) (I uninstalled the previous versions correctly by deleting the folder from Applications as well as from Preferences in the Library.) I have attempted to print from 4 different Macs - three of them are running Mac OS 10.5.8 and one is running 10.4.11- no luck with any of them! The only change that is consistent between them since November last year is that they have all received software updates for their operating systems. I am wondering whether something in these updates is now interfering with CD LabelPrint?
    I am frustrated with the amount of time this has taken so far, and so am hoping that someone will please be able to help me rectify the problem.
    - Merrilly

    Hi there,
    I have v1.60 of CD LabelPrint on my 10.5.8 VM and it is working fine. It also has all the Apple updates installed so I don't think this would be the cause.
    I also have v1.80 on 10.6 and it is working fine as well.
    The version 1.60 on 10.5.8 generates a pop-up as soon as the Print icon is pressed. This takes you to the Page Setup menu for CD LabelPrint to ensure you have the 'Format for' set to the iP5200R and the 'Paper Size' set to 'CD Tray C'. With these selected and the OK button pressed, the next warning window appears regarding the Quality & Media settings.
    If you manually open Page Setup in your CD LabelPrint, does it have the iP5200R set as the printer and the CD Tray C set for the paper size?
    Regarding the v1.8 and the error, this version was released to add support for Snow Leopard. Since you have to use the CUPS v10.26 driver on Snow Leopard (the v4.8.3 driver for Leopard cannot be used on SL) then maybe the same driver would have to be installed on Leopard in order for CD LabelPrint to function?
    Pahu

  • Advice needed: The way to solve out of memory problem (or the way to work with big csv files)

    Hello:)
    I'm in trouble: I have a big csv file (over 5gb of web-analytics data) and my 64 bit excel (and 6gb ram)
    I cant load file to data model because of it's size. There is an error "out of memory" in power query. 
    This is the first time when I encountered such a problem.
    What options do I have to work with such a file? To increase memory in my computer? Would it solve the problem? How much do I need to work with 6gb csv? 
    Or may be I can upload my data somewhere to azure and work with it there? 
    So the problem - is there any way to deal with big files using power query? Or I need to become a developer and learn sql or other languages? 
    Thanks in advance.
    Max

    Hi Miguel!
    Thanks for your answer. 
    I've tried to load this file on virtual pc from azure cloud with this config:
    I have increased memory limit in power query settings:
    And still, the proble is the same:
    What I do wrong? 

  • Problem in using nested dependent items with jheadstart 1013

    Dear JHeadstart Team,
    Suppose we We have 3 following tables ( z is child of y and y is child of x) and we have a view object which have joined all 3 tables together. we have
    mad a page on this view.
    x (
    code1 PK
    ,Name
    y ( code2 PK
    ,x_code
    Z ( code3 PK
    , y_code2
    MyViewObject contains the following fields : z.code3,z.y_code2,y.x_code,y.code2,x.name,x.code
    I want that when a user enter a valid value in y_code2 field it automatically retrieve related information of that code and show it. we set "depends on
    item property" of x_code ,code2,name ,code1 to y_code2 but when user enters value for y_code2, only code2,x_code get correct value and
    code1,name remain null. I also set "depends on item property" of code1,name to code2. I hoped that with changing the value of code2, these field got
    correct value but again these fields remained null.
    To simplify the situation I removed the x table from view object and add a transient field to view object (which use a database function with this format
    getXName (y.x_code) ) but surprisingly enough It did not work either.
    These seemed to me something like bug. Am I right? Is there any workaround for these problems ?
    What is the best solution for implementing this functionality ?
    Best Regards,
    Navid
    P.S. We are using JHeadsart 10.1.3 Service update 1 and jdeveloper 10.1.3

    Dear Steven,
    Thank you very much for your paying attention to this matter. I checked the adf bc tester and I realized that when I filled y_code2 only the fields in the y table were automatically updated. To simplify the problem I made a simple project based on the HR schema objects using JHeadstart . I add country and location to department view object and checked it with adf bc tester. I realized that when I enter value in locationId in the department view only location fields are automatically updated and country fields remain null. I also used your techniques in the "What to do when ADF BC Tester does not update the lookup item" section but it does not work either. I think that maybe the normal behavior of ADF is to just fetch only the first level lookup information and ADF does not care to fetch information of lookup of lookup ( I mean nested lookup).
    I understand now that my problem is not a JHeadstart related issue however any help,reference or link to implement such functionality would be highly appreciated.
    Best Regards,
    Navid

  • Use listbox to work with strings

    Hello guys,
    I am struggling looking for a way to work with strings using a listbox. I think the problem is quite simple, but I don´t know how to implement it using labview.
    I have an array of N elements (N is different everytime I run the program), and each element is a string (actually each element is a command). I would like load this array, and then if I select an element (by double-clicking or something similar), I would like to get a translation of the command.
    In fact, I only need a way of loading the array, selecting an element, and then put it into a variable that would be translated with a SubVI that I have already implemented.
    Do you have any clue of doing this? I have tried with the multicolumn listbox, but I cannot connect any array of strings to it, and I am starting to have a lack of new ideas...
    Many thanks for your help

    Maybe this helps you:
    Norbert
    CEO: What exactly is stopping us from doing this?
    Expert: Geometry
    Marketing Manager: Just ignore it.

  • Problem getting XA Datasources to work with Toplink inside Weblogic

    Hello,
    I am using POJOs inside weblogic 7.1, and I am having some difficulties. Of picked up a jdbc driver called JSQLConnect and it sets up fine from the Weblogic console. This is the only 3rd party XA driver that I have successfully got working inside weblogic.
    I've set up the Weblogic datasource in toplink per the documentation/examples I found. I've included a stack trace of where things blow up. From your source code, it looks like the AbstractSynchronizationListener thinks that the unit of work is not active. Thanks in advance for any assistance. Mike
    UnitOfWork(2416860)--release unit of work
    UnitOfWork(2416860)--JTS#beforeCompletion()
    UnitOfWork(2416860)--JTS#afterCompletion()
    UnitOfWork(2416860)--release unit of work
    ClientSession(2454268)--client released
    <May 14, 2003 3:39:10 PM MDT> <Error> <EJB> <010026> <Exception during commit of transacti
    on 12:591b650d7f28edb9: weblogic.transaction.internal.AppSetRollbackOnlyException
    at weblogic.transaction.internal.TransactionImpl.setRollbackOnly(TransactionImpl.j
    ava:467)
    at oracle.toplink.jts.JTSSynchronizationListener.rollbackGlobalTransaction(Unknown
    Source)
    at oracle.toplink.jts.AbstractSynchronizationListener.beforeCompletion(Unknown Sou
    rce)
    at weblogic.transaction.internal.ServerSCInfo.callBeforeCompletions(ServerSCInfo.j
    ava:540)
    at weblogic.transaction.internal.ServerSCInfo.startPrePrepareAndChain(ServerSCInfo
    .java:92)
    at weblogic.transaction.internal.ServerTransactionImpl.localPrePrepareAndChain(Ser
    verTransactionImpl.java:1044)
    at weblogic.transaction.internal.ServerTransactionImpl.globalPrePrepare(ServerTran
    sactionImpl.java:1581)
    at weblogic.transaction.internal.ServerTransactionImpl.internalCommit(ServerTransa
    ctionImpl.java:237)
    at weblogic.transaction.internal.ServerTransactionImpl.commit(ServerTransactionImp
    l.java:208)
    at weblogic.ejb20.internal.BaseEJBObject.postInvoke(BaseEJBObject.java:278)
    at com.icat.server.infrastructure.legacyint.LegacyIntegrationServiceImpl_eayqrf_EO
    Impl.transferLegacyData(LegacyIntegrationServiceImpl_eayqrf_EOImpl.java:56)
    at com.icat.common.infrastructure.legacyint.LegacyIntegrationTask.execute(LegacyIn
    tegrationTask.java:165)
    at com.icat.common.infrastructure.scheduling.ScheduledTask.executeMyTask(Scheduled
    Task.java:142)
    at com.icat.common.infrastructure.scheduling.ScheduledTask.run(ScheduledTask.java:
    297)
    at java.lang.Thread.run(Thread.java:479)

    Hi Michael,
    I will have to set things up again to try it. I've been in the middle of doing other development and haven't gotten back to the XA Driver attempts again. Can you send me an email where I can fire a note to you directly once I try this again? I will probably need to send you code, etc. Mine is [email protected]
    As for your questions, let me address them below:
    How are you using XA (e.g. are you talking to two different databases)? Are you using TopLink any differently (e.g. using SessionBroker)? Is your transaction being propagated to multiple servers? What exactly has changed, or have you simply started using a different driver/data source? (Sorry for all the questions, just want to try to hone in on what components we are looking at).
    BTW, do transactions ever get started by the client and span multiple server requests?
    1) Yep, I am reading from one database, and writing to the other. So its not a two phase commit right now, but we will have one in the future.
    2) I'm not using your session broker. We have a framework, where we can get a client session from a named server session. This works pretty well for us. Right now, we are using the same framework to access two databases. I'm just not setting external tx control, session synchornization,etc
    3) I can use the third party jdbc driver in a non-XA transaction. So it doesn't seem to be a property of the JDBC driver alone. It seems to be when I attempt to set things up in XA mode.
    4) Transactions are controlled at the Session Bean level. They only last for one bean request.
    If you have any cycles, I was wondering if you could try getting the XA transaction to work in your environment? I was using Net-Direct's driver, along with Weblogic 7.1 sp1, and Toplink 9.0.3.3 (Build 430). An example of how you got things to work may point out what is different about my useage....

  • I have truble with firefox 5 because the plugin I want to use doesn't work with 5 yet, just 4. The plugin is Firebug.

    I can't use the plugin "Firebug" because it doesn't work with Firefox 5 yet. Because of that I want to download Firefox 4 instead of 5, but I can't find it anywhere. Just the third version, and 5 off course.
    I'm sorry if this isn't in the correct category, just picked the one that seemed to be right...

    Go buy yourself a iPhone 5. Sync your iPhone 3GS to iTunes on you computer so you have a back up ready to put on the iPhone 5. If you want you can update your iPhone 3GS with iTunes on your computer, but this is not necessary.

Maybe you are looking for