Batch reading does not work

Hello,
I have class A, attribute List < B > A.b, B.d (back reference, mapped variable one to one). I want to use batch reading A.b. Sometimes it works, sometimes not.
It is because of this method in VariableOneToOneMapping:
    public Object valueFromObject(Object object, DatabaseField field, Session session) {
        // First check if the value can be obtained from the value holder's row.
        DatabaseRow referenceRow = getIndirectionPolicy().extractReferenceRow(getAttributeValueFromObject(object));
        if (referenceRow != null) {
            Object value = referenceRow.get(field);
            // Must ensure the classification to get a cache hit.
            try {
                value = session.getDatasourcePlatform().convertObject(value, getFieldClassification(field));
            } catch (ConversionException e) {
                throw ConversionException.couldNotBeConverted(this, getDescriptor(), e);
            return value;
        //2.5.1.6 PWK.  added to support batch reading on variable one to ones
        Object referenceObject = getRealAttributeValueFromObject(object, session);
        String queryKeyName = (String)getSourceToTargetQueryKeyNames().get(field);
        Descriptor objectDescriptor = session.getDescriptor(referenceObject.getClass());
        DatabaseField targetField = objectDescriptor.getObjectBuilder().getTargetFieldForQueryKeyName(queryKeyName);
        if (targetField == null) {
            return null;
        return objectDescriptor.getObjectBuilder().extractValueFromObjectForField(referenceObject, targetField, session);
    }When B.d is instantiated, referenceRow is null. getSourceToTargetQueryKeyNames() does not contain an entry for indicator field, so the method returns null. How can I fix it?

If the field equals the mapping's indicator field it should do a lookup in its indicator mapping with the object's class for the value. Please log this bug.
-- James : http://www.eclipselink.org

Similar Messages

  • Batch processing does not work with action

    Here is the thing. I have implementes several action on Photoshop. SOme of the include several  sub actions and  different saving locations. For example, I open a file, then I hit my prefered key combo for that action, and I have:
    1) convert to cmyk
    2)save  copy as JPG with 11 quality level
    3) save to folder A
    4) image size to 72 dpi
    5) covert to RGB
    6) save as JPG 6 quality level
    7) save to folder B
    8) close file and discard cahnges.
    Everything runs like heaven, but the moment I want to batch several files everything stalls.
    I choose file > Batch > Choose my set > choose my action
    Source > I choose where my files are (usually a PDF)
    then I use "Supress file open options dialogs"
    Destination>  Since I already have set destinations y my actions, I choose here a "dump" folder
    On errors > I hit Save As... and put a name for that log.
    Then photohop opens my PDF on Photoshop and does nothing! It keeps my file open.
    I m gettting frustated here, because I ma about to work with 400 files to batch, and this batch system does not work.
    I am using CS6
    Any clues

    Your action doesn't to seem to include any Open actions. Why do you have the "Supress" option enabled?
    Also, since your action has the two save commands, you would just leave the Destination set to None. Setting a Destination means that is going to save the files again.
    The problem you'll run into though is that the action also saves the file name as part of the action, so that you'll end up just saving over the one file each time the action is played back on your 400 files. So Photoshop will process all the files, but each time it will overwrite the first file, so you'll end up with one file in each folder. Normally, in these situations, you'd use the Destination setting and use the "Overrride Action "Save As" Commands", which would substitute the Destination folder for whenever a Save command is used. The problem here is that you can only choose a single destination folder, so all files would be saved to the same location.
    Short of scripting this, it may be best to break this into two separate actions.

  • Finger print reader does not work

    i followed the directions and my print was scanned, rescanned,and the edges were scanned and accepted but the reader does not react when the phone is locked....i deleated and rescanned and followed all directions which accepted my finger print....once again thereader does not unlock the phone...any suggestions?

    I looked for software and found a suggestion which I down loaded. Now the finger print reader does not work either on Internet Explorer or on Firefox. So I had to do a reset to an early time to get rid of that soft ware. We are back to where I started, with the finger print reader working fine on Explorer 11 and it does not work at all on FireFox. There must be some work around, has this not occurred with other folks.

  • Adobe Reader does not work-how to use adobe reader on Lion

    I was trying to print an international label on eBay via Adobe Reader, and was very dissapointed and shocked that it does not work on Lion.
    I was so happy that I figured out how to use adobe reader on Lion, and hope I can help anyone else who is frusterated too.
    Step 1. Download Google Chrome
    Step 2. Printe your international label, or whatever you need to do that uses Adobe Reader

    Thanks Shelly! I too was having trouble and thought it was something wrong with my Mac. I still have a big though. When I try to print the saved pdf file, I get a pop-up that says "The document could not be printed. There are no selected pages to print" even though I am looking at the complete doc. It's there and in my print prompt "all pages" are selected to print. The way I got around this, is by emailing the pdf file to a gmail address and viewing the attachment via Google Docs. It loads perfectly and prints without a problem.
    Carla

  • Batch process does not work in one service, but worked in another.

    Hi Fellows,
    We have here a batch process with a code encrypted, that runs daily in a production environment.
    Tonight this batch process did not work.
    It is expected that this process runs in about 20 seconds, but tonight this process used about 3 hours and did not finished.
    We checked if it was concurrency, killed some sessions and tried again, and nothing has changed.
    And then someone changed the service that this process uses, it was 'bat' and changed to 'dba'. And it worked succesfully in 11 seconds.
    Here is the tnsnames that the batch process uses:
    bat =
    (DESCRIPTION =
    (LOAD_BALANCE = OFF)
    (FAILOVER=ON)
    (ADDRESS = (PROTOCOL = TCP)(HOST = 10.10.x.x1)(PORT = 1521))
    (ADDRESS = (PROTOCOL = TCP)(HOST = 10.10.x.x2)(PORT = 1521))
    (ADDRESS = (PROTOCOL = TCP)(HOST = 10.10.x.x3)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = bat)
    (FAILOVER_MODE =
    (BACKUP = dba)
    (TYPE = NONE)
    (METHOD = BASIC)
    (RETRIES = 20)
    (DELAY = 5)
    dba =
    (DESCRIPTION =
    (LOAD_BALANCE = OFF)
    (ADDRESS = (PROTOCOL = TCP)(HOST = 10.10.x.x1)(PORT = 1521))
    (ADDRESS = (PROTOCOL = TCP)(HOST = 10.10.x.x2)(PORT = 1521))
    (ADDRESS = (PROTOCOL = TCP)(HOST = 10.10.x.x3)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = dba)
    Do you guys know what could be the reason?
    Thanks in advance.

    We set the service which the app should connect.
    These services are set in srvctl:
    ora.cms.bat.cms1.srv ONLINE ONLINE on fastora1
    ora.cms.bat.cms2.srv ONLINE ONLINE on fastora2
    ora.cms.bat.cms3.srv ONLINE ONLINE on fastora3
    ora.cms.bat.cs ONLINE ONLINE on fastora1
    ora.cms.cms1.inst ONLINE ONLINE on fastora1
    ora.cms.cms2.inst ONLINE ONLINE on fastora2
    ora.cms.cms3.inst ONLINE ONLINE on fastora3
    ora.cms.cmsuser.cms1.srv ONLINE ONLINE on fastora1
    ora.cms.cmsuser.cms3.srv ONLINE ONLINE on fastora3
    ora.cms.cmsuser.cs ONLINE ONLINE on fastora1
    ora.cms.db ONLINE ONLINE on fastora1
    ora.cms.dba.cms1.srv ONLINE ONLINE on fastora1
    ora.cms.dba.cms2.srv ONLINE ONLINE on fastora2
    ora.cms.dba.cms3.srv ONLINE ONLINE on fastora3
    The batch process connects to a service [ bat ], but it hangs and don't finish. But when we change the service do dba is just pass in some seconds and finish succesfully.
    Connected to DB [issr@bat  ]
    PAYware CMS Version 8.0 - Module : E352 Release : 000000002
    Program: /cms/cmsissr/CMS/bin/issuer/mepcs352
    Release: 2
    PARAMETERS OK !!!
    NUMBER OF PROC.: 000001
    Number of transactions : +000047570
    Number of parallel processes: 000001
    Transactions by process: 000000000000047570
    Transactions Processed: 000010000

  • I can't boot windows in my iMac late 2011 as my internal cd reader does not work

    i can't boot windows in my iMac late 2011 as my internal cd reader does not work

    Which copy or version of Windows? and how where was it purchased?
    my window installed itself perfectly on another computer.
    One copy and you want to activate on two computers?
    With 16GB, it will try to create 16GB hibernation file, 24GB page file, and need 20-30GB for the OS, plus room for temp, cache, applications, 9GB just temp to install SP1 update(s). 
    did you create 80GB or larger partition?
    also, some macs with ssd + hard drive have issues, and of course you need Windows 7 64-bit home premium (Pro to use more).
    OWC has up to 32GB, not cheap.
    http://eshop.macsales.com/shop/memory/iMac/2010/DDR3_21.5_27
    Crucial is usally very helpful, try email cs.

  • Fingerprin​t Reader does not work under Win 7

    I have a T500 which I have just upgraded from Windows Vista Business to Windows 7 Professional.
    Everything apart from the Fingerprint Reader and the Wireless Broadband seems to work.
    The Fingerprint Reader is the Authentec AES2810, with driver version 2.0.0.18 dated 24/11/2009.
    If I run the Lenovo Fingerprint software version 3.3.0.58 I get the error that the software cannot
    communicate with the sensor.
    The Wireless Broadband card is the Ericsson F3507g. The follwing drivers are installed:
    Network adapters:
        - F3507g Mobile Broadband Driver, version: 1.0.0.52 dated 29/07/2009
    Ports (COM & LPT):
        - Ericsson F3507g Mobile Broadband Minicard GPS Port (COM6), version: 1.0.0.28 dated 29/09/2008
        - Ericsson F3507g Mobile Broadband Device Management (COM4), version: 4.54.7103.1 dated 26/06/2009
    Smart card readers:
        - F3507g Mobile Broadband USIM Port, version 6.0.0.7 dated 12/05/2009
           Even if there is the driver information indicated above the USIM device says:
            "No drivers installed for this device."
    Universal Serial Bus controllers:
         - F3507g Mobile Broadband Device, version: 4.54.7103.1 dated 26/06/2009
    If I use the ThinkVantage Access Connections software I get the following error message:
    "The current wireless WAN connection is being managed by another client utility.
    Close the client utility and try again." But to my knowledge no other Wireless Broadband client is running.
    If I try Mobile Broadband Connect via the Vodaphone UK interface I get the following error message:
    "No Wireless Mobile Broadband device found."
    And finally if I try ThinkVantage GPS I get the folowing message:
    "The GPS NMEA CPM port is not available. You need to check the following things.
     - Another GPS application is using the COM port.
     - COM port is disabled. You can enable the COM port in Device Manager."
    Under Windows Vista both the Fingerprint Reader and the Wireless Broadband device worked without
    any problems. Do anybody have any ideas on how I can resolve these two problems.
    Best regards,
    Frode
    Solved!
    Go to Solution.

    Yes, it is the driver that seems to be the problem. Here is how I proceeded. Before I started to removed the Lenovo software and the driver I first made sure the the automatic driver installation was turned off. The easiest way to do this is to type "change device installation settings" in the Start Menu search box. A window then pops up with the question: "Do you want Windows to download driver software and realistic icons for your devices?". By default this is usually set at "Yes, do this automatically". Instead select the option "No, let me choose what to do", which will bring up another menu where one select the last option: "Never install driver software from Windows Update."
    After you have installed the new driver do not forget to put it back to the recommended automatic mode.
    I first went to Control Panel - Uninstall Programs and uninstalled the Lenovo Fingerprint Software. I then went to the Device Manager and uninstalled the AuthenTec driver version 2.0.0.18 and checked the box delete this driver software. I then rebooted the PC and during pre-boot went into the BIOS, selected Security and Fingerprint Reader and made a reset on the reader. After reboot I reinstalled the Lenovo Fingerprint Software 3.3.0.58 (7wf160ww). This time the installation went through without any error messages but when I started the software I discovered that it still did not work. When trying to run the tutorial or to enroll fingerprints I got the old error message: "Cannot communicate with sensor. Please confirm the sensor is ready."
    I then checked the driver and I found that I now had the older AuthenTec driver version 8.1.2.56 dated 07/07/2009 and everything looked OK from the driver point of view. I then suddenly remembered that I had forgot to uninstall the AuthenTec TrueSuite software. I immediately uninstalled the TrueSuite software and also yet again the Lenovo Fingerprint Software, but left the newly installed driver in place. After a reboot I again reinstalled the Lenovo Fingerprint software and this time it worked. I can now run the tutorial and enroll fingerprints and the fingerprints work 100% for the Windows login. I have not yet tried to install Lenovo Client Security. I will do that later. However, I have discovered that the AuthenTec TrueSuite software has not been reinstalled after doing the last Lenovo Fingerprint software reinstallation. I am not sure if this is a good or a bad sign. Perhaps Bananaman or Cleo_Lenovo can give me some feedback on this issue.
    I thank you all for helping me out with this problem. I find the Lenovo Forums of great interest and usefulness.
    Cheers,
    Frode

  • HP SimplePass Reader Does not Work after Sleep

    I have only had my laptop for a week - the fingerprint reader stopped working 2 days after I bought it. I have tried everything: removing and re-installing various drivers and software, stopping and starting Credentials Manager, unchecking the box that allows the computer to turn the reader off to save power, etc.
    I have gotten it to the point where it functions when the computer is logged in, but not after sleep. It works once if you restart the computer, but after waking it from sleep it does not initialize. (no light or anything) However, if you "lock" the desktop from the start menu, the reader will log it in again. (without closing the lid or putting it to sleep)
    Simple Pass version 6.0 (latest downloaded from HP.com)
    Envy Dv6 7229wm
    Windows 8 64-bit
    Thanks

    Hello hawvi,
    I see that you are having problems with the fingerprint reader not working after returning from sleep mode. I would like to help with this issue but I need some information.
    Can you provide the full model and product number of the computer? Here is a link that shows how to find that information.
    What operating system are you using?
    How long have you had the problem?
    ↙-----------How do I give Kudos?| How do I mark a post as Solved? ----------------↓

  • SanDisk USB 3.0 Card Reader does not work with OSX Mavericks.

    Since updating to OSX Mavericks (10.9) My  USB 3.0 SanDisk "ImageMate All-in-One" Card Reader has begun to fail.
    It all seems to work proper at first. The memory card shows up in finder and I'm able to browse the files. But when I try to transfer any files it un-mounts from finder and only transfers the first file.
    This does not happen under previous OSX versions. I have tried on other computers since, so the card reader is fine.
    My USB 2.0 card reader saved my life this time. It works totally fine.
    Is this a known problem? Are you guys working on it?

    Solved in this post here:
    https://discussions.apple.com/message/24016337#24016337

  • Installed Acrobat Pro and uninstall Reader does not work defaults back to Reader

    I've installed Acrobat Pro, after installing Acrobat Reader.  After I uninstall Reader and click on a PDF file, it automatically opens it in Reader.  I've clicked Acrobat 9 as my preferred software, but next time, it reverts back to opening in Reader.  I'm using a lenovo Yoga laptop with Windows 8.1.

    Thank you very much for your reply.  This didn't work.  As you can tell, this is not a high priority for me, just annoying that I have to uninstall Reader every time I open a PDF.  It will open in Acrobat after that, 'til I shut down my laptop.
    Here's the order:  I installed Acrobat Reader.  Then I installed Acrobat Pro.  Then I uninstalled Acrobat Reader.  But when I click on a PDF file, it reopens in Acrobat Reader (I don't use Microsoft Reader - at least on purpose!)  Somehow Acrobat Reader is not completely uninstalling and reactivates.  Our computer consultant tried to fix it, but couldn't.   He said he thot some of his research showed this was a problem in Windows 8 and 8.1?
    I just tried going into Programs in the Control Panel and Acrobat Pro 9 only shows Uninstall/Change, not Repair.  However, I clicked through and got to Repair.  Tried that (which I've actually done before) and still didn't work.

  • Adobe reader does not work properly

    My adobe reader doesn not open articles. All I get is a blank gray screen and a small circle where it looks like the file is trying to load. The reader use to open files with no problem and then it just didn't work correctly

    Hi Jaadbrown
    You have two options to solve the problem:
    1.- Remenber that every Mac can read all PDF format file with your "Preview App".
    2.- You can uninstall your adobe reader deleting the App from your Aplication folder and download for free on the Official Adobe site in this link http://get.adobe.com/reader/?promoid=JZEFU
    Good luck ... I hope it helps you!

  • I want to upgrade my PowerMac G5 from 10.3.9 to 10.4, but my DVD reader does not work. Where can I download 10.4?

    I want to upgrade my PowerMc G5 from 10.3.9 to 10.4, but my DVD reader no longer works-- so I cannot use an upgrade DVD to do this. Is there a site where I can download and upgrade to OS X 10.4?

    $33 option...
    http://eshop.macsales.com/static_pages/Framework.cfm?page=superdrive/sdl_powerma c_g5.html

  • Message filter to mark email as read does not work.

    I have set up a message rule to first mark the message read and then move to a folder. Thunderbird moves the message to the correct folder, but it is still marked as unread. I'm using Thunderbird for Windows and I'm using Windows 7. Also, Thunderbird is up to date. Thanks.

    I have the same issue!!!
    Exchange 2010 SP3 fully patched.
    If I read emails one by one, they show up as read on webmail/outlook. But if I use the Edit -> Mark All -> Mark as Read it will still show as unread in webmail/outlook
    I wonder if the IOS command that is used to mark all as read is not compatible to Exchange?
    -Rich

  • Media Card Reader does not work on W541 (is O2Micro, not the RealTek)

    Can not read an SD card on my W541.  It reads fine on a W530. Reviewed the ReadMe, and tried to find the driver in the WIndows "Device Manager" but no luck.Experimented and found that if I did the following:Brought up Device ManagerUnder "View" menu, chose "Devices by Type" (this should really be in the instructions, although perhaps not necessary).Under "Action" menu, chose "Scan for hardware changes"found that the node labelled "Storage Controller" finally appeared (towards the bottom, just above "Storage Volumes")  There was one entry under the node, that of "ByHubTech/O2Micr Integrated MMC/SD controller".  The icon preceding this entry had a yellow triangle, so at least the system detected something was wrong. Right clicked on the entry and chose "Properties" and resulting dialog had the following text in the "Device Status" area (on the "General" tab): This device cannot find enough free resources that it can use.
    (Code 12)
    If you want to use this device, you will need to disable one of the other devices on this system. I have no idea what "resources" are being referred to in the message (a case of "I've got a secret"?), so it is a little hard for me to understand what other devices I might want to free up. Bios is version 2.20The "BayHubTEch/O2Micro Integrated MMC/SD controller" driver version is 2.2.2.1057 (which is the latest as of 6/26/2015).Runnin Win 7 Enterprise + SP1, 32GB RAM.

    Hello,
    I don't have a W541 myself, but here are a few things to check, in no particular order:
    Have you checked with your IT department?  Maybe they set a poilicy to disable the card reader.
    Is the card reader correctly enabled in the UEFI firmware?
    Have you run ThinkVantage System Update and Microsoft Update to confirm all of the various Lenovo and Microsoft updates are installed?
    Do you still have the OS image the device originally shipped with?  If so, does the card reader work under that?
    Regards,
    Aryeh Goretsky
     

  • X240 fingerprint reader does not work after standby or lockscreen

    Hello all,
    I have a new X240, and the fingerprint logon no longer works after the computer resumes from standby or from a lockscreen (screen saver). I have checked other solutions here and in other sites, namely:
    1. unchecking the power option of the fp reader in device manager,
    2. and switching the 30-day standby in Lenovo Settings
    Neither of those solutions have worked. I have the latest BIOS and FP driver versions. I made sure the the FP was enabled in BIOS, and I even switched the settings to allow internal FP reader only. Still, the FP will only work when I first power on the laptop, but not after resuming from stand-by. I have checked in Device Manager after manually entering the password, and it says that the FP is working properly.
    I am at a loss, and I want to exhaust every possibility before I call tech suppport. Any suggestions would be appreciated. 
    X230
    x200
    T410
    X240
    TP Tablet 2
    Solved!
    Go to Solution.

    Fixed.
    I normally use System Update to check for newer versions of Lenovo software. SU didn't catch that there was a new version of FP reader. Just to be sure, I doublechecked on Lenovo's website, and lo and behold, there was a newer version of the FP reader. I had to download it and manually uninstall the previous version. It's fine now. However, I don't understand why Lenovo does this - why does SU not catch updates? It's not the first time that this happens, by the way, nor is it limited to this laptop (I own or have owned a T60, X61, X200, X201, X230, T410, and now the X240). 
    In any event, the FP is working properly now. I hope this helps someone else. 
    X230
    x200
    T410
    X240
    TP Tablet 2

Maybe you are looking for

  • Getting error log 'Customer' needs to be defined for the PA segment'

    Hi guru, i am posting automatic payment transaction (F110) ,but i am getting in display log that I am unable to do the posting? can somebody let me know any reason for this? 04/09/2010 12:57:54 Job started                                             

  • Reg:output control

    Hi i am interested to know the configuration details for maintaining output determination.Pls send me any material to my mail id. My id is:[email protected] Thanks&ragards

  • How to use Webservice

    Hi there, I am new to Web Dynpro, I want to know how I can use webservice using web dynpro development components. could anybody provide me with the steps. Thanks in advance

  • Possible Solution: Allow native code packaging with AIR using ADT?

    Packager / ADT are providing huge benefits for AS3 developers targetting mobile as we all know.  We also know that we'd like as much access to the native libs for the various platforms as we can possibly get.  Two cases in point, in-app purchasing an

  • Reader X can not open second PDF

    Hi there Have this problem on a PC running XP Pro with SP3. Reader X can only open one Document. I have uninstalled the Reader and loaded it again but this problem still exist. any suggestions? thx