ReadObject query by idfr does not work first call

I am running Toplink 10.1.3.0.0 inside the oc4j container. A basic example is that I have an object Employee that has a String attribute id. This class goes to the employee table. I have set an Expression in the Toplink Workbench to do Read Object and it just checks that id = the idfr passed in as an argument. When running the query by the idfr in the container, the idfr is set as the argument and the data exists in the database. With Toplink logging turned onto FINE I see the query being run "select xyz from employee where idfr = x". But the return value from the query is null. But if I run the query through a second time it returns with the correct object. I have tried changing this to a Read All query, and then just accessing the 0th element from the List returned, and this seems to work fine. I am still concerned, though, as to why the Read Object query does not work on the first go around as is expected?

Any reason you set the Read Object query? The Expression you've provided is the same as what TopLink generates.
Out of interest, does the problem occur if your primary key attribute is an int/long, or some other numeric type. Does your String attribute value or query id value have trailing or leading spaces? Oracle database will trim leading and trailing blanks on INSERT/UPDATE which can lead to confusion.
Turn the logging up to FINEST and look for log messages relating to registration of existing objects. If you can post the test code and log that would help.
--Shaun                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

Similar Messages

  • My microphone does not work on calls on my iPhone 4

    Don't ask me what has happened and I have been through all of the troubleshooting that I can on my own. 
    I have no clue how to get a hold of a LIVE AT&T person or APPLE person.
    The problem is my microphone does not work when I use the telephone, whether I make the call or someone calls me.  It is NOT the MUTE button.  And yes, I have already rebooted my iPhone about 5 times now.  Has not fixed it either.
    But the microphone DOES work as I was able to record a new voicemail greeting to let people know my phone isn't working.
    So, they could call me all day long but they won't hear me, so who do I call using my landline (thankfully I kept it).
    It is the day after Thanksgiving and I would be a fool to head over to the Apple Store or the AT&T Store....
    Thank-you,
    Marcia

    Try disconnecting the headphones and then adjusting the volume, does it say headphones?
    There might be something in the headphone jack, maybe lint, dirt, or something else in there.
    Take a look at this Apple document for more information -> iPhone: Can't hear through the receiver or speakers

  • Caller ID does not work when calling from Jabber

    We have the following results when doing calls within the company:
    Desk Phone A (4567-X-Smith): 7801234567
    Desk Phone B (4568-Y-Miller): 7801234568
    Main Company Line: 7801230000
    All desk phones have the following type of configuration:
    Under the phone -> Line[1] -> Line1 on Device <MAC>
    Display (Internal Caller ID): 4567-X-Smith
    ASCII Display (Internal Caller ID): Our Company Name
    Line Text Label: 780-123-4567
    ASCII Line Text Label: 780-123-4567
    External Phone Number Mask: 7801230000
    Desk Phone A calls Desk Phone B
    - caller ID shows up properly on Desk Phone B as 4567-X-Smith
    User at Desk Phone A makes the call through the Jabber client to Desk Phone B
    - caller ID shows up as 7801230000
    This last situation is the problem since we want all internal calls whether they're form the desk phone or Jabber to show the proper caller ID. However, we want the generic main company line (7801230000) to show up to anybody outside the company. What is set incorrectly? Why does Jabber take over the line but not keep the same caller ID settings? Does jabber work as if it's doing an external call?
    Thanks in advance,
    Kris

    Interesting... I just 4-digit dialed 8182 (typed in the Search field at the top of the jabber window) and my proper caller ID showed up...
    Next I tried 10 digit dial 7804988182 through jabber and it showed 7804988100 (our external calling mask). I also just noiced that it very briefly flashes 97804988182 so that seems to indicate it's trying to dial through the PSTN...
    Oddly enough, if I 10 digit dial through my desk phone, it shows the proper caller ID.

  • SQL Query for Chart does not work

    Have written a query that works fine outside of the app, but no data returned (displayed) within the app. I suspect i could simply create a view with the query in and all would be fine, but i'm intrigued to know why it will not yield data as is. Any ideas? Here's the query:
    select * from
    select null link, period, data from (
    select dp3.period, dp3.data-dp14.data data from
    (select period, data from ml_data_daily
    where data_point = 3
    and category = 'A. 0'
    and period_type = 'DAY'
    and period >= (select period from ml_period where period_number = :p1_date_start)
    and period <= (select period from ml_period where period_number = :p2_date_end)
    ) dp3,
    (select period, data from ml_data_daily
    where data_point = 14
    and category = 'Invalid Search'
    and period_type = 'DAY'
    and period >= (select period from ml_period where period_number = :p1_date_start)
    and period <= (select period from ml_period where period_number = :p2_date_end)
    ) dp14
    where dp3.period=dp14.period
    order by period)
    )

    Bruce - Make sure the items accessed via the bind variables have been set in session state. If those are just search fields, the chart query won't see them until the page has been submitted.
    Scott

  • File Attributes from App Server by RFC (GET_FILE_ATTRIBUTES does not work )

    Hello,
    We have an Objects application that is started through an RFC BAPI call from a Java app. The Java app. passes a file to the BAPI. We want to test, as efficiently as possible, if the file is 0 bytes long. We have tried /epsf/get_file_attributes but there is a problem with it being called remotely. We have Remote Enabled the function module. Local tests work fine (GUI User), but when it is called by the Bapi(Technical User) we receive sy-subrc = 2. I think it is referring to a 'Communication Error'.
    I found a nice class, CL_GUI_FRONTEND_SERVICES for the workstation server, but nothing comparable for the application server.
    Help is greatly appreciated as I am pulling my hair out.
    Best Regards,
    Mark Lengel

    Hello Andreas,
    The GET_FILE_ATTRIBUTES fm is also from the EPS Function Group and provides the file size, it just does not work when called from Rfc/Bapi. Won't the GET_DIRECTORY_LISTING fm just return directory info ?
    I am afraid I will have to resort to the OPEN, READ, CLOSE DATASET steps in order to check for a zero length file.
    Regards,
    Mark

  • EHP4 installation using EHPI : Error message: DDIC password does not work:

    Dear All,
        We are upgrating enhancement packages 4 using EHPI in 64 bit server. I am facing this error in Extraction phase , I have to provide DDIC / SAPServiceSID/ DB specific , next  says ddic password is not correct. But when i tried to login with the same password into 000 client, it works. But when through EHPI , it throws error. Kidnly check the error and please suggest me ... Thanks in advance..
    Error message: DDIC password does not work: RFC call to failed with key RFC_ERROR_COMMUNICATION (open): SAP_CMINIT3 : rc=20 > Connect to SAP gateway failed Connect_PM DEST=R3D, GWHOST=SAPRBSBD-01, GWSERV=sapgw00, SYSNR=00 LOCATION CPIC (TCP/IP) on local host with Unicode ERROR partner 'SAPRBSBD-01:3300' not reached TIME Thu Dec 24 12:27:13 200 RELEASE 710 COMPONENT NI (network interface) VERSION 39 RC -10 MODULE nixxi.cpp LINE 3147 DETAIL NiPConnect2: 192.168.1.40:3300 SYSTEM CALL connect ERRNO 10051 ERRNO TEXT WSAENETUNREACH: Network is unreachabl.
    Regards
    Raj

    Dear Rajeev,
    DDIC pwd for 001 is not same as 001,Will that be a problem ? But the Extraction requests for DDIC 000 client password. Are you sure UME comes into this scenario ?
    @ Raghu - I have checked the link and it speaks about the resetting the EHPI. I dont want to reset and want to solve ddic password error.
    Sorry if am wrong
    @ Gerard,
    Yes the hostname is SAPRBSBD-01.I am able telnet the IP 3300 and it works fine. FQDN SAPRBSBD-01.chen.local. The smicm service entries are with SAPRBSBD-01 but not with FQDN. Changing it to FQDN will help us to resolve  the issue. Please suggest me.
    Also the error  refers to some RFC connection, any idea on that.
    Thanks to all and looking for your valuable suggestions.
    Raj

  • My transparency does not work on my iPhone and I was wondering how I fix that? It worked when I first downloaded ios7 but not now.

    My transparency does not work on my iPhone and I was wondering how I fix that? It worked when I first downloaded ios7 but not now.

    Hello wilsontot_too,
    Thank you for the details of the issue you are experiencing on your iPhone.  It sounds like you are not noticing transparency on your iPhone.  It may be that you have "Increase Contrast" turned on in your iPhone settings.
    I recommend verifying that Increase Contrast is turned off in Settings>General>Accessibility.
    iPhone User Guide - Large, bold, and high-contrast text
    http://help.apple.com/iphone/7/#/iph73b89c6
    Thank you for using Apple Support Communities.
    Best,
    Sheila M.

  • Temporary Table In SAP Query - Does not Work?

    DECLARE @date DATE
    DECLARE @delrows INT
    DECLARE @delquan INT
    DECLARE @a INT
    DECLARE @recrows INT
    DECLARE @recquan INT
    SET @a=0
    IF OBJECT_ID('tempdb..##tab) IS NOT NULL DROP TABLE ##tab
    CREATE TABLE ##tab
    [Date] date,
    [Delivery Rows] varchar(40),
    [Delivery Total Units] varchar(40),
    [Receipts Rows] varchar(40),
    [Receipts Total Units] varchar(40),
    WHILE @a!=7
         BEGIN
         SET @date=DATEADD(day,-@a, getdate())
         SELECT @delrows=ISNULL(COUNT(DLN1.[LineNum]),0), @delquan=ISNULL(SUM(DLN1.[Quantity]),0)
         FROM ODLN
         INNER JOIN DLN1 ON ODLN.[DocEntry]=DLN1.[DocEntry]
         WHERE ODLN.[CreateDate] = @date
         SELECT @recrows=ISNULL(COUNT(PCH1.[LineNum]),0) , @recquan=ISNULL(SUM(PCH1.[Quantity]),0)
         FROM OPCH
         INNER JOIN PCH1 ON OPCH.[DocEntry]=PCH1.[DocEntry]
         WHERE OPCH.[DocDate]=@date
         SET @a=@a+1
              INSERT INTO ##tab VALUES(@date,@delrows,@delquan,@recrows,@recquan)
    END
    SELECT * FROM ##tab
    {/code}
    Can anyone explain why this query does not work in SAP? It works fine on SQL but gives me this message in SAP:
    1). [Microsoft][SQL Server Native Client 10.0][SQL Server]Incorrect syntax near ')'.
    2). [Microsoft][SQL Server Native Client 10.0][SQL Server]Statement 'Service Contracts' (OCTR) (s) could not be prepared.
    Edited by: Chris Candido on Feb 2, 2011 8:38 PM

    Chris,
    There are several areas in your code which needed changes. 
    1. On the field name for your temp table you had spaces.
    2. The SAP table name ODLN, OPCH, PCH1 had to be fully referenced like
    [dbo].[ODLN]
    3. You really need not have ## in front of your temp table, it could just be #
    The select at the end is actually what causes the most problem as for some reason from within SAP it does not produce the result.  I would suggest you put the whole code into a Stored Procedure and call the SP from SAP.  Corrected SQL below.  If you remove the Select line at the end the query would work with in SAP, but keep it give give you an error. SP is the best option for this.
    DECLARE @date DATE
    DECLARE @delrows INT
    DECLARE @delquan INT
    DECLARE @a INT
    DECLARE @recrows INT
    DECLARE @recquan INT
    SET @a=0
    IF object_id('tempdb..#tab') IS NOT NULL
    BEGIN
       DROP TABLE #tab
    END
    CREATE TABLE #tab
    [Date] date,
    DeliveryRows varchar(40),
    DeliveryTotalUnits varchar(40),
    ReceiptsRows varchar(40),
    ReceiptsTotalUnits varchar(40),
    WHILE @a!=7
    BEGIN
    SET @date=DATEADD(day,-@a, getdate())
    SELECT @delrows=ISNULL(COUNT(DLN1.LineNum),0), @delquan=ISNULL(SUM(DLN1.Quantity),0)
    FROM [dbo].[ODLN]
    INNER JOIN DLN1 ON [dbo].[ODLN].DocEntry=DLN1.DocEntry
    WHERE [dbo].[ODLN].CreateDate = @date
    SELECT @recrows=ISNULL(COUNT([dbo].[PCH1].LineNum),0) , @recquan=ISNULL(SUM([dbo].[PCH1].Quantity),0)
    FROM [dbo].[OPCH]
    INNER JOIN [dbo].[PCH1] ON [dbo].[OPCH].DocEntry=[dbo].[PCH1].DocEntry
    WHERE [dbo].[OPCH].DocDate=@date
    SET @a=@a+1
    INSERT INTO #tab VALUES(@date,@delrows,@delquan,@recrows,@recquan)
    END
    SELECT * FROM #tab
    Suda Sampath

  • I have just got my first apple device, iphone 3G S. After iserting sim it does not work, cant go beyond first screen. How to activate? I am in Delhi, India.

    Hi,
    I have just got my first apple device, iphone 3G S. After iserting sim it does not work, cant go beyond first screen. How to activate it? I am in Delhi, India.Any suggestions.
    Satish

    would be best if you can download the guide here
    http://support.apple.com/manuals/#iphone

  • Since last update anything on the first three lines of a web page if it has a a button to click on to go to another page does not work. use Google Crome for fo

    Loging onto my bank I go to the barclays pege there on the top line is "log in" it used to work when I click on it but has stoped, any button on the first three lines of a web page does not work.
    I now use Google crome but would like to stay with Firefox if this coruption can be sorted.
    Rod

    Please reload the webpage while bypassing the cache using '''one''' of the following steps:
    *Hold down the ''Shift'' key and click the ''Reload'' button with the left mouse key.
    OR
    *Press ''Ctrl'' + ''F5'' or ''Ctrl'' + ''Shift'' + ''R'' (Windows and Linux)
    *Press ''Command'' + ''Shift'' + ''R'' (Mac)
    See if this helps solve the issues you had and please report back to us!

  • Change Password on first use does not work properly.

    I have created apex application user in Oracle Apex 3.2 as follows
    BEGIN
    APEX_UTIL.CREATE_USER(
    p_user_name => 'NEWUSER1',
    p_web_password => 'secret99');
    END;
    As in the documentation
    p_change_password_on_first_use  IN      VARCHAR2    DEFAULT 'Y',
    User should be prompted to change password at first use. But it does not work properly. There is no such message. Still accepts user to log in with old passord that was first given to the user. I have tried explicitly to ensure change password at first log in. by
    BEGIN
    APEX_UTIL.CREATE_USER(
    p_user_name => 'NEWUSER1',
    p_web_password => 'secret99',
    p_change_password_on_first_use =>'Y');
    END;
    Still does not work. How can I ensure user to change password on first login.
    Hasan Al Mamun
    Programmer
    Bangladesh Bank
    Dhaka, Bangladesh

    Might be a long way around the problem but I would utilize a boolean flag in a column (FIRST_LOGIN) your custom auth table set to 'Y' when you create their account. Then on the login page have a page process something like:
    ** NOT TESTED **
    declare
    v_first VARCHAR2(10;
    v_session NUMBER;
    begin
    v_session := APEX_CUSTOM_AUTH.GET_NEXT_SESSION_ID;
    select FIRST_LOGIN into v_first from AUTH_TABLE where user_name = :P101_USERNAME and :P101_PASSWORD;
    if v_first = 'Y' then
    wwv_flow_custom_auth_std.login(
    P_UNAME => :P101_USERNAME,
    P_PASSWORD => :P101_PASSWORD,
    P_SESSION_ID => v_session,
    P_FLOW_PAGE => :APP_ID||':2' *** THIS IS YOUR PAGE TO HAVE THEM RESET THEIR PASSWORD ***
    else
    wwv_flow_custom_auth_std.login(
    P_UNAME => :P101_USERNAME,
    P_PASSWORD => :P101_PASSWORD,
    P_SESSION_ID => v_session,
    P_FLOW_PAGE => :APP_ID||':1' *** MAIN LOGIN PAGE *****
    EXCEPTION WHEN OTHERS THEN
    *** handled **
    end;
    The page 2 in this example would have an few items for them to enter their new password twice, a page process to update their password in the auth table and then redirect them to the intended first page.
    Not sure if it meets your setup.
    Ricker

  • My iphone 6plus not working not charge but when i run it the first time working half an hour  when you attempt to run it again light up thr screen and showws the apple logo and after the pice screen illuminates red and does not work what do i do now

    My iphone 6plus not working not charge but when i run it the first time working half an hour  when you attempt to run it again light up thr screen and showws the apple logo and after the pice screen illuminates red and does not work what do i do now

    Hello Nadersalah,
    It seems you're experiencing multiple issue with your iPhone. Based on the information you have provided, it appears your iPhone needs to be serviced. The following link should help you get started with the process and has links with additional information on topics such as warranty and service pricing, battery replacement, and express replacement service.
    iPhone Repair and Service - Apple Support
    Thank you for contributing to Apple Support Communities.
    Cheers,
    Bobby_D

  • Change password on the first use - does not work

    Change password on the first use - does not work.
    Created a user and specified 'Change password on the first use' - when user logs in - the 'Change password' window does not pop- up.
    Please advise.

    (APEX 4.0.2) I am running into this same issue - if you don't set the password expiration and locking to 'Yes', the user gets into the app without being asked to change the pw.
    When you do set expiration and locking - after the user logs on with their temporary password, it does take them to the change password page (4155:50) but the username is blank. Because the username didn't get to the page the old password will never match and you get the "Invalid password" message.
    What am I missing? Anyone successful doing this?
    Simple application, default authentication, no javascript, HTTP_SERVER, no ssl.
    Thanks,
    Steve

  • Front page opens works shortly freezes. only yellow green buttons work. I click yellow to minimize normal top bar menu appears I choose new page, opens works normally. The restart saved tabs does not work on that first page.

    front page opens works shortly freezes.
    only yellow green buttons work. I click yellow to minimize normal top bar menu appears I choose new page, opens works normally.
    The restart saved tabs does not work on that first page.

    Hi @prdstudio3 ,
    Thank you for visiting the HP Support Forums. The Serial Number needed to be removed from your Post. This is From our Rules of Participation:
    Protect privacy - yours and others'. Don't share anything about yourself that you would not want to see on a road-side billboard. Don't post contact or other personal information-your own or anyone else's-or any content that you receive in one-to-one communications without the author's consent. For example, don’t post your computer’s serial # or contact information publicly, and do not allow someone you don’t know to remotely take control of your computer.
    If you need people to contact you directly, either ask them to send you a private message or subscribe to the thread so you will be notified when there are replies. You may also click on your name anywhere in the forum and you will be taken to your profile page, where you can find a list of threads you have participated in.
    Sharing personal email addresses, telephone numbers, and last names is not allowed for your safety. If you have any questions feel free to send me a private message in reply.
    Thank you
    George
    I work for HP

  • I have lost the remote that was paired. I bought another remote, but the procedure to pair the new one does not work. I suspect the the AT will work with only one remote at-a-time and i have to unpaid the first before pairing the second. How do I unpair?

    I have lost the remote that was paired. I bought another remote, but the procedure to pair the new one does not work. I suspect the the AT will work with only one remote at-a-time and i have to unpair the first before pairing the second. If this is true, how do I unpair? If not, what can I do?

    I was premature in posting the question. I found the answer in andother posting, and it was successful.
    Thanks, and sorry for the false alarm.

Maybe you are looking for