IN OUT PObject parameter not updated

Server and client: 11.1.0.6 linux 32 bit, connecting with via a ConnectionPool.
I'm passing a PObject parameter to a procedure as an IN OUT parameter. The object is passed in OK, but it appears that none of the object attribute modifications that the procedure is performing are making it back to the object representation in the C++ application. The equivalent procedure call in PL/SQL works as expected, passing an instance of the type to the procedure results in modifications to the type attributes after the call, so I've eliminated the procedure as the source of the problem.
The procedure follows. I've attempted it without NOCOPY without any difference.
PROCEDURE create_user (user_in    in out nocopy USER_T ) IS
BEGIN
    insert into user (
      user_id
     ,username
     ,password
     ,first_name
     ,last_name
     ,created_by
    ) values (
      user_id_seq.nextval
     ,user_in.username
     ,dbms_crypto.hash(UTL_I18N.STRING_TO_RAW(user_in.password, 'AL32UTF8'), 3)
     ,user_in.first_name
     ,user_in.last_name
     ,user_in.preferred_tzformat
     ,sys_context('OWNER_CONTEXT', 'user_id')
    ) returning user_id into user_in.user_id;
END;The C++ call, UserT is the OTT representation of the USER_T Oracle type:
UserT* user = new UserT();
user->setUsername("user1");
user->setPassword("pass");
user->setFirstName("me");
user->setLastName("me");
sth->setSQL("BEGIN create_user(user_in=>:p1); END;");
sth->setObject(1, (PObject*) user);
sth->executeUpdate();
cout << "New user id: " << user->getUserId() << endl;user->getUserId() results in an error to the effect that the number is NULL, meaning the procedure update has not made it to the client.
This works:
declare
  u user_t := user_t();
begin
  u.username := 'user2';
  u.first_name := 'me';
  u.last_name := 'me';
  u.password := 'blah';
  create_user(u);
  dbms_output.put_line('Userid: ' || u.user_id);
end;

Update:
I've added a getObject() call after the executeUpdate(), and now debugging indicates that the PObject readSQL is being called (writeSQL is being called for the executeUpdate).
And, within the readSQL function I am in fact able to print out the correct user_id value directly in readSQL after the assignment.
But, my class getter function, which simply reads the previously assigned user_id member, still giving the NULL error, strange.

Similar Messages

  • When i try to update my ipod 4thG the computer times out, will not update?

    When I try to upate my 4G Ipod it says it times out and does not update.

    Here are the instructions.
    Disable antivirus software
    Turn Windows Firewall on or off

  • Everything on iPod wiped out...now podcasts not updating

    A couple days ago I had wanted to add an episode of a podcast to my iPod but wasn't on my XP account. It had downloaded to the XP account I was on, so I figured it would be easier to just update from there instead of logging off and waiting 5 minutes to log onto my account so all the antivirus stuff could load. So I plugged my iPod in and dragged the podcast episode to my iPod in the Source column (it's updated manually). Without warning, iTunes wiped out everything that had been on my iPod and started replacing it with everything on this particular iTunes library. I panicked and quickly unplugged my now empty iPod. I haven't been able to recover any of my songs except some of the podcasts. I downloaded Recover My Files, and it found a good number of the songs, but a) many have been overwritten (whatever that means) and b) it wanted me to pay 70 dollars for an activation code (first time is supposed to be free). Ever since my iPod was wiped out, iTunes has not updated the podcasts, so I manually downloaded the episodes I missed and added them to my library on my XP account. I dragged them to my iPod, and iTunes wiped out every podcast I had salvaged and left just the two I manually downloaded.
    So,
    1. Is there any hope for me to recover my songs?
    2. Why is iTunes not updating my podcasts and wiping out my songs whenever I add new ones to iPod?
    Thanks
    ETA: No, I didn't back up my music, it was one of those things I meant to do.

    Will the podcasts that can't be found actually play in iTunes on the computer? For the message I would say they will not play because iTunes can't find the actual file.

  • WebServer does not update parameter and looses objects

    - Please struggle through my loooong explanation - THANKS
    Hi all,
    I've got a problem with my servlets/JSPs.
    I try to build a homepage where the content is displayed dynamically and the start-page is for each link the same.
    The content of the pages are stored in HTMLs and XMLs --> the HTMLs contain the static content and also contains identifier for the XMLs which contain the dynamic content. Problem is, that there can be more than one XML. So I've cretaed a properties-file which maps 1-HTML to n-XMLs. So I've generated code which parses (with SAX) through the XMLs and takes the information and stores these information to an object. This object itself is stored with an ID in a hashmap.
    Then I go through the HTML (read in a String) and replace the keys (HTML) with the matching value from the Hashmap.
    When a page is displayed and the client clicks on a link the same page should be called with parameter http://..../start?lang=de&page=link then I should get the information and the HTML for the "link".
    - When I call the "start"-page the first time it is displayed correct. But when I refresh the page it seems as if an object is lost - the information of the Hashmap (which is stored in another object) is lost. I cannot get the information although I got the information before.
    Also the parameters are not updated if I change them, there is always the same exception shown, that the key is not available.
    I've also changed the parameters (for lang) and just displayed them. But they did not change...
    - I'm absolutely helpless
    here the servlet:
    import java.io.*;
    import java.util.HashMap;
    import javax.servlet.http.*;
    import javax.servlet.*;
    public class Start extends HttpServlet {
         private String mPathOfPropertiesFile=IConstants.PROPERTIES_ROOT;
         private String mLanguage;
         private String mIdentifier;
         private String mHtmlAsString;
    //class created on my own reads the XML-file and stores all files in a Collection
         private PropertiesXmlReader vXmlPropertiesForIdentifier;
         private HashMap vMapOfFilenames;
         private HashMap vTransUnitId;
         //cretaed on my own. Parses the Collection of XMLfiles and puts necessary information on the FileDisc as Hashmap
    private XmlPageParser vParseXmls;
         private FileDesc vFileDesc;
    * Implements the HTTP GET method.
    * @param request the request object, containing
    * data from the browser
    * @param repsonse the response object to send
    * data to the browser
    public void Service (HttpServletRequest request,
    HttpServletResponse response)
    throws ServletException, IOException
    public void doGet(HttpServletRequest request,
    HttpServletResponse response)
    throws ServletException, IOException{
              mLanguage = request.getParameter("lang");
              if (mLanguage == null){
                   mLanguage = "";
              mIdentifier = request.getParameter("page");
              if (mIdentifier == null){
                   mIdentifier = "";
                   try {
                        // get the relevant Filenames from the Parser
                        vXmlPropertiesForIdentifier = new PropertiesXmlReader(
                                  mPathOfPropertiesFile, mLanguage, mIdentifier);
                        // get Filenames
                        vMapOfFilenames = vXmlPropertiesForIdentifier
                                  .getFielnames();
                        // parse all XML-Files found in the Properties
                        vParseXmls = new XmlPageParser(vMapOfFilenames);
                        vFileDesc = vParseXmls.getDesv();
                        vTransUnitId = vFileDesc.getMTransUnit();
                        FileReader reader = null;
                        int c;
                        File file = new File(IConstants.HTML_ROOT + mIdentifier);
                        try {
                             // cretae new StringBuffer and read content of the File to the
                             // StringBuffer
                             StringBuffer vHtmlFileBuffer = new StringBuffer();
                             reader = new FileReader(file);
                             while ((c = reader.read()) != -1) {
                                  vHtmlFileBuffer.append((char) c);
                             // cretae String to modify
                             String vHtmlAsString = vHtmlFileBuffer.toString();
                             // if not available (-1) = returnvalue
                             boolean vNoMoreReplacements = false;
                             while (!vNoMoreReplacements) {
                                  int indexOfStart = vHtmlAsString.indexOf(IConstants.HTML_COMMENT_START);
                                  int indexOfEnd = vHtmlAsString.indexOf(IConstants.HTML_COMMENT_END);
                                  if (indexOfEnd != -1 && indexOfStart != -1) {
                                       String key = vHtmlAsString.substring(indexOfStart + 3,
                                                 indexOfEnd);
                                       TransUnit testUnit = vFileDesc.getTransUnitById(key);
                                       vHtmlAsString = vHtmlAsString.replaceAll(IConstants.HTML_COMMENT_START + key
                                                 + IConstants.HTML_COMMENT_END, testUnit.getMSource());
                                  } else {
                                       vNoMoreReplacements = true;
                             mHtmlAsString = vHtmlAsString;
                        } catch (FileNotFoundException fileNotFound) {
                             mHtmlAsString = "The HTML-file could not be found, please control root:" + IConstants.HTML_ROOT;
                        } catch (IOException ioErr) {
                             mHtmlAsString = "Exception during output: " + ioErr.getMessage();
                        } finally {
                             if (reader != null) {
                                  try {
                                       reader.close();
                                  } catch (IOException e) {
                                       e.printStackTrace();
                   } catch (Exception e) {
                        mHtmlAsString = "Unexpected exception with text: " + e.getMessage();
              // Returns a writer to write to the browser
         PrintWriter out = response.getWriter();
         // Writes the string to the browser.
         out.print(mHtmlAsString);
         out.close();
    Hopefully someone can help me out.
    by the way - I'm using a Resin WebbApp Vers 3.0.17
    Thanks for help, in advance,
    brgds, Steffen

    Since you didn't post the XML parser class, I'm not sure exactly what your problem is but I see lots of things that should be changed.
    First of all, get rid of the empty Service() method. Fortunately, you named it wrong so it isn't overriding the service() method in the HttpServlet class. If it were overriding the service() method, your servlet wouldn't even work the first time since there would be nothing to invoke doGet().
    You shouldn't be using instance variables for processing requests (i.e. mLanguage, mIdentifier) because your servlet needs to be thread-safe. Essentially, there is usually one instance of your servlet around (this is up to the application server) and that one instance must be capable of handling multiple requests simalteously. This isn't causing your problem right now because you are just testing but once the application goes live, this will be a big problem.
    Now for what might be causing your problem. Since you didn't post the XML parsers, I suspect that they might be leaving the files open so the second time through, it can't do the parsing. Anyway, your design isn't right because you seem to be reparsing the XML files for each request. All servlets can have an init() method which is invoked when the application server first loads the servlet. You should do all your XML parsing in the init() method. This is much more efficient since it will only be done once (usually when the application server first starts up) not each time the user requests a page. The only potential drawback to this is if you frequently add new XML files, you will have to recycle the server to get the servlet to pick up the new files.

  • Returning Clause out parameter not working

    I have Oracle 11g (I think?) and VS2010.
    I am using an insert statement with the returning clause to return an identity value that is created by a Sequence/Trigger. The problem I am having is that it is not updating the out parameter in C#. Here's some sample code. I have tested the insert statement in SQL Developer and it works. The C# statement does do the insert, but the out parameter remains null. I have tried ParameterDirection as ReturnValue, InputOutput, and Output. None of those worked. The output value remains null no matter what I try to do. I even lifted this example (Oracle Sequences), ran it, and it also errored and is not returning out parameters. (Error Msg: Unable to cast object of type 'Oracle.DataAccess.Types.OracleDecimal' to type 'System.IConvertible'.Couldn't store <null> in ID Column.  Expected type is Int32.).
    I have searched and searched the web over and I cannot figure out why this does not work. Any help would be most appreciated!!
    MyTable
    MyTable_ID  Number (38)
    Note            Varchar2 (500 byte)
    =================================================
                    try
                        if (insertCmd.Connection.State == ConnectionState.Closed)
                            insertCmd.Connection.Open();
                        int recs = insertCmd.ExecuteNonQuery();
                        this.Id = Convert.ToInt32(insertCmd.Parameters[":Id"].Value);
                    catch (Exception err) {  }
                    finally {  insertCmd.Connection.Close(); }
    private OracleCommand insertCmd
                get
                    OracleCommand insCmd = Context.DataBaseConnection.CreateCommand();
                    insCmd.CommandText = string.Format(
                        @"Insert into MyTable (Note)
                          Values (:Note)
                          Returning MyTable_ID into :Id");
                    insCmd.Parameters.Clear();
                    OracleParameter noteParam = new OracleParameter(":Note", OracleDbType.Varchar2, Note, ParameterDirection.Input);
                    OracleParameter idParam = new OracleParameter(":Id", OracleDbType.Int32, 38, "Calibration_Session_Id");
                    idParam.Direction = ParameterDirection.Output;
                    insCmd.Parameters.Add(idParam);
                    insCmd.Parameters.Add(noteParam);
                    insCmd.BindByName = true;
                    return insCmd;

    Okay, I changed my insert command text to this...
    insCmd.CommandText = string.Format(
                        @"Begin
                             Insert into MyTable (Note)
                             Values (:Note)
                             Returning MyTable_ID into :Id;
                             Commit; End;");
    There was no change. Am I doing an explicit transaction wrong?

  • I've updated my Macbook Pro and my iMac with Maverick, updating the various apps. On my Macbook, everything functions perfectly. On my iMac, I get the Your System has Run out of Application Memory, and it's based our Mail, the only app not updated. Ideas?

    Maverick and Your System message
    I've updated my Macbook Pro and my iMac with Maverick, updating the various apps (Pages, Aperture, iPhoto, Numbers & iMovie, too) in the process.
    On my Macbook, everything functions perfectly. On my iMac, I get the Your System has Run out of Application Memory message. But it's not Calendar, it's Mail that not only won't open, but when it does now, it takes the entire system out with it.
    I open Safari, and it works. I open Firefox, and it works and Safari still works. I open Calendar and it works, Safari and Firefox continue to work. I open Reminders, and everything still works.
    I open Aperture, and it opens Finder instead, showing the 3.5 update that was installed two days ago (and Aperture has functioned), but doesn't seem to update the app; after about 20 seconds the update disappears and I can now open Aperture and it shows I'm now opening the updated Aperture, which it didn't show before.
    I click on Mail, and the cursor spins for ten minutes. The mail window finally opens, but the cursor spins and does not connect to upload new mail, and I finally Force Quit Mail. Since the Maverick update, even though Mail was not updated (and maybe because Mail was not updated), I have been able to receive emails twice, and then the program crashed.
    Besides the Aperture app, Pages didn't fully update on the iMac, and I had to remove the old Pages icon from the dock after the new program loaded up from Applications.
    Any ideas?

    Maverick and Your System message
    I've updated my Macbook Pro and my iMac with Maverick, updating the various apps (Pages, Aperture, iPhoto, Numbers & iMovie, too) in the process.
    On my Macbook, everything functions perfectly. On my iMac, I get the Your System has Run out of Application Memory message. But it's not Calendar, it's Mail that not only won't open, but when it does now, it takes the entire system out with it.
    I open Safari, and it works. I open Firefox, and it works and Safari still works. I open Calendar and it works, Safari and Firefox continue to work. I open Reminders, and everything still works.
    I open Aperture, and it opens Finder instead, showing the 3.5 update that was installed two days ago (and Aperture has functioned), but doesn't seem to update the app; after about 20 seconds the update disappears and I can now open Aperture and it shows I'm now opening the updated Aperture, which it didn't show before.
    I click on Mail, and the cursor spins for ten minutes. The mail window finally opens, but the cursor spins and does not connect to upload new mail, and I finally Force Quit Mail. Since the Maverick update, even though Mail was not updated (and maybe because Mail was not updated), I have been able to receive emails twice, and then the program crashed.
    Besides the Aperture app, Pages didn't fully update on the iMac, and I had to remove the old Pages icon from the dock after the new program loaded up from Applications.
    Any ideas?

  • My iphone 4 conked out.it was not receiving signal so I switched on and off. But instead of taking me to the apps page it showed ios6 and asked me to go to itunes for an update.instead of updating it asked me to restore settings.now only logo appears

    my iphone 4 conked out.It was not receiving cellular signal so I switched off and on.After switching on instead of taking me to the first page of apps it showed me ios6 tab and asked me to connect to itunes where it asked me to restore settings. which i did and waited for an hour and a half and later realised its got stuck. Now the phone does not respond at all and shows the logo and a half complete bar.Is there a solution to this, if at all. Am without a phone here ppl.Thanks

    Did you do the update via iTunes?
    If you are only getting the logo will want to try to see if can get device in recovery mode and try the restore process via iTunes again.
    If you are still unable to get the device to restore will need a repair
    Out of Warranty will cost
    Just a heads up

  • Can not update iphone firmware using iTunes "The network connection timed out"

    Hello,
    I can not update the iphone firmware using iTunes.
    Messagte displayed
    "There was a problem downloading the software fo the iPhone. The network connection timed out.
    Also seen stopped error -3259
    I have run network connectivity tests from iTunes and All Tests passed.
    Can anyone help?
    Thank you,
    Joan

    Did you make sure it was the exact file for your device and the latest version? I just downloaded the latest file for my iPhone4, put it in the folder I mentioned above and it ran the install versus downloading the file. This problem where it times out after downloading is a big Bug within iTunes that has been there ever since IOS 7.0 was released. I wished these apple developers would just fix iTunes. There are a ton of complaints about this issue. I sure miss Steve Jobs running this business, I really feel like it's gone down hill after he left.
    I hope this helps! 
    Regards.

  • My iPad 2 will not allow me to update my apps. When I hit the update button I get a spinning circle but then it times out and doesn't update. Please help.

    My iPad 2 will not allow me to update my apps. When I hit the update button I get a spinning circle but then it times out and doesn't update. In the past when I have updated successfully, the spinning circle would show me an indicator of time left on the update. I no longer have this Indicator. The circle just spins and times out and nothing happens. I've reset the iPad in the settings menu, reset the router, logged in and out of Apple id, powered ithe iPad off and on, and tried a couple other "fixes" that I've read online. So far no luck. AAny help would be greatly appreciated. Much thanks!

    How much free space do you have? If it is low, installers may not be able to run properly.

  • Photoshop CS6 could not update successfully.  Error codes Adobe Photoshop 13.0.1.3 Installation failed. Error Code: U44M1P7  Extension Manager 6.0.8 Update Installation failed. Error Code: U44M1P7  Please help me figure out how to call customer service. 

    Photoshop CS6 could not update successfully.  Error codes Adobe Photoshop 13.0.1.3 Installation failed. Error Code: U44M1P7  Extension Manager 6.0.8 Update Installation failed. Error Code: U44M1P7  Please help me figure out how to call customer service.  I would prefer to talk to someone directly.

    Are you using any disk cleaner or optimization tools like CleanMymac or Mackeeper?
    Regards,
    Ashutosh

  • After updating windows 7 and firefox i constantly receive timed out or server not found messages

    i constantly receive timed out or server not found messages after updating windows 7 and firefox 2 weeks ago. this was almost never a problem prior to updating

    Connection Errors
    https://support.mozilla.com/en-US/kb/Error%20loading%20web%20sites#w_connection-errors
    Interrupted or Reset Connection
    https://support.mozilla.com/en-US/kb/Error%20loading%20web%20sites#w_interrupted-or-reset-connection
    Check and tell if its working.

  • I deleted all Apps on iPad as they were associated with an out of date Apple ID and I could not update them, but the "App Store" logo still shows that there are 2 to be updated and when I go there I cannot delete. Please assist. Thanks.

    I deleted all Apps on iPad as they were associated with an out of date Apple ID (which I have forgotten the password) and I could not update them, but the "App Store" logo still shows that there are 2 to be updated and when I go there I cannot delete. Please assist. Thanks.

    Why don't you explain what happens when you try to delete these two apps that are showing that they need updates. You can only delete them if they are actually installEd on the iPad. Are they on the device?

  • IPhone 4 apps not updating that require wifi. They get only so far and then start over again. Now they won't even attempt to update. Given the 'done' or 'retry' option and they're still unusable. I've tried logging out of app store, rebooting, and reset.

    I have 4 apps that will not update. Im mostly concerned with one, as it has a good amount of in-app purchases. It started to
    Update and got 3/4 done then started over again. now im given the 'done/retry' option shortly after attempting an update. I've rebooted, reset(lost all my phone contacts thanks very much....), logged out of app store....
    Perhaps its the wifi I'm using (cruise ship worker here), and will try again on a land wifi signal before worrying a lot. any help would be great.
    In-store helper had me double click home and clear out all opened apps and that worked then , but not now.

    Also, just as a note, I restored my iphone last night, and it has made no difference.
    One last thing... On itunes, when i click 'info' on apps that are said to be under my friends account (ie they will only update when he is logged in), it says that i purchased them under my account, yet it won't let me update them.

  • Siri has stopped reading new iMessages when iOS 8 came out.  I have not updated my iPhone 5 to iOS 8.  Any ideas?

    I use Siri all the time.  I have found it very helpful.  When the new iOS 8 came out, Siri stopped reading new iMessages.  I have done all of the usual reboots, etc without any luck.  Since it happened the same time as the new iOS 8 ( even tho I did not update ) I wonder if there is some other issue.  Have you heard of this issue and do you have any suggestions?
    Thanks

    SSiri has also stopped reading my new text messages. She just says "you have no new messages." This also occurred at the same exact time I upgeaded to iOS 8. I have a 5s

  • HT5460 I can  not update to the new OS X Mountain Lion. Whenever I do I get a message an error has occurred, timed out 102.W

    I can not update to the new OS x Mountain Lion.  I get an error that  says it has timed out then "102".   WHy can't I get it update??
    Thanks for your help.

    Please read this whole message before doing anything.
    This procedure is a diagnostic test. It’s unlikely to solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.
    The purpose of the test is to determine whether the problem is caused by third-party software that loads automatically at startup or login, by a peripheral device, or by corruption of certain system caches. 
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards. Boot in safe mode and log in to the account with the problem. Note: If FileVault is enabled on some models, or if a firmware password is set, or if the boot volume is a software RAID, you can’t do this. Ask for further instructions.
    Safe mode is much slower to boot and run than normal, and some things won’t work at all, including sound output and  Wi-Fi on certain models. The next normal boot may also be somewhat slow.
    The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin. Test while in safe mode. Same problem? After testing, reboot as usual (i.e., not in safe mode) and verify that you still have the problem. Post the results of the test.

Maybe you are looking for

  • WCServer error

    I am using jdev 11.1.1..7 I get below stack trace when i try to run project <WebCenterConfig> <_createConfigMapSnapshot> An error occurred reading a service's configuration. oracle.adf.share.ADFShareException: java.lang.NullPointerException   at orac

  • Since downloading OSXMav 10.9.4, Safari quits. Have to keep restarting - want the downlevel version back; how?

    Even as I try and submit this question, I have to keep restarting the iMac. Wifi is not the problem, and all other applications such as iPhoto, WP, PS, etc work. It's only Safari that cannot hold the connection. I want the downlevel version back so I

  • No default project!

    Hi, I have SunOS 5.9 machine and I cannot log into it even with the root account. When I supply a valid password, it displays: No default project! and prompt for login again. A QA who worked on this box told me that he did uninstall of a program and

  • Using correct sign in - iD and password but nothing happens -

    - it just continues to look like it is doing something but 'egg timer' never actually stops cycling !!  I can login / sign in to Adobe on my iPad so I know it is all correct but not on my MacPro !?  Any ideas welcome .... never had this before and I

  • Excite 10 won't function on Wifi "N" GHz Band

    I have 2 locations, one with a Linksys E3000 and the other with Netgear WNDR3700.  At both locations the Excite 10 will not find the SSID of the GHz N band, and will give an "out of range" when added. At both locations I can detect the N band and G b