Setting field to NULL using script does not work

Hi,
This is a Hibernate and Oracle SQL developer-related question.
My application uses salesmeeting with customers and an officer. When the salesmeeting is active, OfficerID is set to the salesmeeting. If the officer closes the salesmeeting, officerID shall be set to NULL. Now, sometimes when explorer doesn't close correctly, the OfficerID is still set in the database. So, when another officer tries to login to the salesmeeting it's is locked by the first officer because only one officer at the time can access a salesmeeting.
Now to the problem: I'm trying to develop a script which simply updates the database and sets the officerID for a specific salesmeeting to NULL in order to "unlock" that salesmeeting.
The script looks like this:
UPDATE SALESMEETING SET OFFICERID = NULL
WHERE OFFICERID = 'XXXXX' AND SALESMEETINGID = '12345'
I commit the changes and OfficerID is set to NULL or (null) as it looks is SQL developer.
When logging in to the application, officerID is set to the active officer, so far so good. But, when running the Hibernate method saveOrUpdate() for the salesmeeting, the server hangs and nothing happens.
The thing is, when I manually set officerID to NULL by simply leaving the field blank, saveOrUpdate() works perfectly fine.
The third way of setting trying to set the value to null, by manually setting officerID
by typing (null) in the field generates another problem (I guess this is interpreted as the String "(null)")?
So, what I am wondering is what my script does wrong, is it not really setting officerID to NULL or is there something I need to understand about Hibernates saveOrUpdate()?
Thanks!
Message was edited by:
user615023

Hi,
To set a column to null, you have written right script.
Please make sure that 'null' & null are entirly different thing.
may be when system get hang, you might have written 'null' in stead of null.
Thanks.

Similar Messages

  • Excel File read using WebUtil does not work. Gives java.lang.NoSuchMethodEr

    We have a form which reads from an Excel File. The form works in development env., but in the live env when we deployed the form it does not work. Form fails @ the 1st call to Client_OLE2 where we set the Excel file to read.
    For both the envs. the values are given here:
    (1.) Client Forms Version : Forms [32 Bit] Version 10.1.2.0.2 (Production)
    (2.) Application Server Version : 10.1.2.0.2
    (3.) AS Linux Version : (Live) RHEL 5.7 Tikanga / (Dev) Red Hat Enterprise Linux AS release 4 (Nahant Update 4)
    (4.) Client Sun JRE Version :Version 1.5.0 (build 1.5.0_10)
    (5.) Client Web Browser & Version: I.E 8.0.6001 or Mozilla  3.0.15
    (6.) WebUtil Version: 1.0.6Both envs. are the same except the Linux version.
    Works fine in Dev but does not work in Live. Other Webutil functions like file open dialog box works fine in live, only this Excel read is not working.
    Full Error message
    Java Plug-in 1.5.0_10
    Using JRE version 1.5.0_10 Java HotSpot(TM) Client VM
    User home directory = C:\Documents and Settings\dinesha.IIL
    c:   clear console window
    f:   finalize objects on finalization queue
    g:   garbage collect
    h:   display this help message
    l:   dump classloader list
    m:   print memory usage
    o:   trigger logging
    p:   reload proxy configuration
    q:   hide console
    r:   reload policy configuration
    s:   dump system and deployment properties
    t:   dump thread list
    v:   dump thread stack
    x:   clear classloader cache
    0-5: set trace level to <n>
    RegisterWebUtil - Loading WebUtil Version 1.0.6
    proxyHost=null
    proxyPort=0
    connectMode=HTTP, native.
    Forms Applet version is : 10.1.2.0
    Exception in thread "AWT-EventQueue-3" java.lang.NoSuchMethodError:
    com.jacob.com.Dispatch.put(Ljava/lang/Object;Ljava/lang/String;Ljava/lang/Object;)V
         at
    oracle.forms.webutil.ole.OleFunctions.set_obj_property(OleFunctions.java:1216)
         at
    oracle.forms.webutil.ole.OleFunctions.setProperty(OleFunctions.java:333)
         at oracle.forms.handler.ComponentItem.setCustomProperty(Unknown Source)
         at oracle.forms.handler.ComponentItem.onUpdate(Unknown Source)
         at oracle.forms.handler.JavaContainer.onUpdate(Unknown Source)
         at oracle.forms.handler.UICommon.onUpdate(Unknown Source)
         at oracle.forms.engine.Runform.onUpdateHandler(Unknown Source)
         at oracle.forms.engine.Runform.processMessage(Unknown Source)
         at oracle.forms.engine.Runform.processSet(Unknown Source)
         at oracle.forms.engine.Runform.onMessageReal(Unknown Source)
         at oracle.forms.engine.Runform.onMessage(Unknown Source)
         at oracle.forms.engine.Runform.processEventEnd(Unknown Source)
         at oracle.ewt.lwAWT.LWComponent.redispatchEvent(Unknown Source)
         at oracle.ewt.lwAWT.LWComponent.processEvent(Unknown Source)
         at java.awt.Component.dispatchEventImpl(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown
    Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.run(Unknown Source)We connected to Live AS server via VPN and ran the Form in a client machine (where the Dev. is working) but same problem.
    Any help would be greatly appreciated.

    Channa,
    I sounds like you might have missed a configuration step on your Linux application server (AS). I recommend you go back through the configuration of your AS and verify each step of the WebUtil Runtime Setup Checklist was completed correctly. Seach the Forms Help system on "Runtime Setup Checklist" for a copy of the checklist.
    Hope this helps,
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.

  • Reply to all using ItemReply does not work when specifying messageid

    Hello everyone,
    I am trying to use the ItemReply token to perform a "Reply to All"
    action on a mail item with a known message identifier and include the
    original message text in the response. According to the documentation,
    the call should be:
    ItemReply(7;1;"message-id")
    Still, when I execute this token, apparently only a normal reply action
    is performed because only the original sender is listed as recipient.
    (The message text is properly included)
    However, when I manually select the message in the GroupWise client
    first and then execute the same call without specifying the message id,
    all recipients of the original mail are listed in "To:" as expected:
    ItemReply(7;1)
    Could it be that the "ReplyTo" parameter is ignored or does not work
    when a message id is specified as parameter? (Setting "IncludeText" to 0
    does not change anything)
    Thanks in advance and best regards,
    Peter Hofer

    Worth bumping this message. I find the exact same behaviour as mentioned 5 years ago. Using both GW8 and GW2012.
    According documentation, when MessageId is not specified it defaults to the command ItemReplyOpenItem(). I assume that the reason "Reply To all" works without a MessageID is because of that. Someone needs to give a look to ItemReply().

  • Added field to dynamic selection screen does not work in FBL5N

    hi,
    we have added KNA1-KATR5 to the selection screen of FBL5N by using logical database DDF using "view CUS" but it does not work.
    Our system is 6.0
    is there any OSS note or program that we should add?
    many thx.

    Refer This:
    Additional field selections in FB03

  • Script does not work anymore after updating to FM 12.0.3

    Hi,
    With TCS5, Robohelp would crash when importing FrameMaker books to RH, because the FM files had embedded graphics. So, I found a script to externalize the graphics before doing the import (the script is: ExtendScript of the week: Externalizing Graphics « TechComm Central by Adobe). However, this script is not working since I updated from 12.0.2 to 12.0.3. And without this script, we can't create HTML5 output!
    Although I wrote a few simple scripts, this one is quite complex and would be difficult to debug. Anyone here knows what could have changed to make the script useless after such a small update? Or can update this script to make it work?
    Thanks!

    Hi again,
    For those who would like to know... I made this script work with 12.0.3. I simply removed the instructions that  added an item in the File menu and stuff about a report, which I don't think ever worked. So, I still don't know exactly why it didn't work anymore (don't have time or knowledge to investigate), but I'm still interested to know.

  • Flash streamed via RTMP (using Flowplayer) does not work; does in IE 9.

    I have the latest Flash plug-in and Firefox 6.0.2. Flash files from YouTube work. However, Flash in Flowplayer -- using RTMP streaming -- does not load.
    The following page works with latest version of Flash in IE 9:
    http://www.3xconversionformula.com/replay/short
    However, it simply will not load in Firefox.
    I do NOT have any ad blocking plugins, etc.
    The Flowplayer page actually allows you to test HTTP vs RTMP vs no streaming and Firefox hangs on RTMP. So, I believe I have found out what the bug is for you, but updating Flash will not remedy the situation. It seems to be a Firefox problem.

    AVG 9.0 is installed and the video (Flash in Flowplayer) works with IE 9 and Chrome.
    Flash video works in Firefox, but not all Flash files. Flash in Firefox works with YouTube, Adobe's Flash website, and various other places, but not everywhere.
    2 URL's are supplied above that contain Flash content that does not work with my Windows 7 (64-bit) Intel Core i7 Toshiba laptop with NVIDIA GeForce graphics card.
    On the Flowplayer website -- someone who should know how to properly implement their player with Flash -- Flash does work with Firefox when HTTP and no streaming are used. However, nobody seems to note that this does not work for RTMP streaming.
    So, Flash works -- sometimes -- but not all the time. However, the VERY same Flash files DO work on SAME laptop with SAME firewall and no problems with IE 9 and Chrome. Bottom line: RTMP streaming seems to be the issue with Firefox as pointed out on the following website:
    http://flowplayer.org/setup/index.html
    Attached images:
    1. HTTP Streaming
    2. RTMP Streaming - Faulty
    3. No Streaming
    NOTE: Website states, "RTMP The most advanced video streaming technology today."
    The following 2 videos will not work with my Firefox:
    http://www.3xconversionformula.com/replay/short -- uses Flowplayer as its Flash player.
    http://www.schedulicity.com/Essentials/Video-Gallery.aspx -- uses Brightcove as its Flash player.
    YouTube works. Also, the Brightcove website itself does work. So, its the implementation of Flash players -- not Flash itself -- that seems to be the problem. However, its not a problem with old versions of Firefox, nor IE 9 or Chrome.

  • Importing .p7b certificates using certutil does not work, but work with IE. I need to automatize certificate installation. Help!

    Hello,
    I have to add a trusted certificate authority to XP machines to allow use of mail via OWA.
    There is a domain, but there are too remote machines which are not in the domain (and it's on them I'm experiencing the problem).
    Domain sysdmin sent me the .P7B certificate, which I can load withour problem using import with IE. The certificate is stiored in the Trusted Root Certificate Authorities and it's all ok.
    But I need to automatize the certificate import due to the hifg number of these clients as well as the linbe spped (very slow graphic), so I found the certutil utility.
    I've tried with several commands (like "certutil -f -v -addstore root filename.p7b"  or "certutil -enterprise -f -addstore NTAuth filename.p7b" and several variants), but the utility always said that the certificate is correctly imported, but when checking
    with the MMC console I can't find it (and, by the way, trying to load again results in also being notified that the certificate is already loaded!), so all the stuf does not work.
    What should I do to be able to import the .P7B in Trusted Root Certificate using command line (.bat file, of course)?
    Many thanks in advance for any help!
    Max

    Hi,
    As i can understand you want to import a .p7b file which is a chain of certificates. And certutil is not working.
    I too had the same issue. After searching and thinking the alternatives for hours, got a solution which worked for me. Here is it.
    Get certmgr.exe tool available with MS .net framework tools.
    Try adding this to your batch file
    certmgr -add -all -c "File.p7b" -s -r localMachine Root
    where File.p7b is the file containing certificates. You can replace the name with your file name.
    Check if its working.
    Thanks,
    Reyaz

  • Hand tool using spacebar does not work to move an image

    When using another tool on an image, I hit the spacebar to move around in the image but the Hand tool does not work.
    I've renamed the folder 12.0 under %appdata%/roaming/adobe/Photoshop Elements and that works until I close Elements 12 and then reopen it.

    Suggest that you delete preferences.
    In Editor, expert tab, go to Edit>preferences>General. Look for this:
    Reset, close PSE, launch again.

  • Western iso 8859-1 character set is gone, "other (including Western" does not work. Why did you take it out?

    Some websites need Western ISO 8859-1 character set to run properly and you have taken it away in favour of "other(including Western)", now the site does not work properly. Why did you take it out and can you please put it back.

    ISO-8859-1 and Windows-1252 should be equivalent. Can you provide an example of a page that doesn't display properly?
    If you have to manually select a character encoding to view the page correctly, then the site is broken and you should notify its owner that it needs be fixed. Websites specify the character encoding in one of two ways:
    * [http://www.w3.org/International/tutorials/tutorial-char-enc/ Handling character encodings in HTML and CSS | W3C]
    # The ''Content-Type'' response header.
    # The ''meta'' tag in the page source.
    ''Henri Sivonen (:hsivonen) wrote:''
    <blockquote>We are in the process of implementing http://encoding.spec.whatwg.org/ . The process involves removing support for legacy character decoders that aren’t really necessary for supporting existing Web content.</blockquote>

  • DARI (Arabic) script does not work in WORD 2004

    When I change to AFGHAN DARI in MS WORD I can type the characters (although as other discussions have shown KEYBOARD viewer does not work) BUT they are not joined properly in the words.
    i.e. the same form of the character is used whether it is at the start, middle or end of the word. PATHETIC - how would you like to write all English in UPPERCASE??
    MS WORD does the correct thing on Windows XP
    Does anyone have any ideas - apart from throwing this new MacBook away?
    Any Word processors for the MAC that work properly?
    Please HELP!!

    Does anyone have any ideas - apart from throwing this new MacBook away?
    Yes, throw Word away. MS Office for Mac has no support for Arabic, Hebrew, Devanagari, etc.
    All other word processors (except Appleworks) have better support for Arabic than Word does. Mellel is the best. See this note:
    http://homepage.mac.com/thgewecke/TypingArabic.html

  • HT2534 Why does my password change after it was set and then 10 min latter does not work

    Can you conirm why my login to Itune now does not work with any od the store purchase, I want to BUY but it does not work
    Do we have to have two password for the same email address Stor and Ituns?

    The same password should work whether it's authorising the account on your computer's iTunes, signing in to view the account, or buying/re-downloading items from the store with it. What happens when you try to buy something ? Have you tried signing out (Store > Sign Out menu option) and signing back in and seeing if it then works ?

  • We have an applescript that will batch print InDesign CS6 files from a folder to a laser printer using an InDesign print preset. The script does not work in OS X Yosemite. The script errors out with the print preset. Any thoughts?

    tell application "Finder"
      activate
      set thefolder to choose folder with prompt "Select a Folder with InDesign Files to be Printed" as text
      set thePath to thefolder as text
      set the selected_items to every item of folder thefolder
      if the selected_items is {} then
      beep
      display dialog "Please select a folder with InDesign files before running this script." buttons {"Cancel"} default button 1
      end if
      repeat with aFile in selected_items
      tell application "Adobe InDesign CS6"
      activate
      with timeout of 600 seconds
      set user interaction level of script preferences to never interact
      open aFile
      tell document 1
      tell print preferences
      set active printer preset to "Catalog Pages"
      set page range to all pages
      end tell
      print without print dialog
      close saving no
      end tell
      end timeout
      --might need this delay
      --delay 10
      set user interaction level of script preferences to interact with all
      end tell
      end repeat
      tell application "Finder"
      activate
      display dialog "Batch Printing is complete!" giving up after 5
      end tell
    end tell

    Hi
    After I put a small delay in as shown, your code ran fine, tested on about twenty ID files, using ID CC 2014, OSX 10.10.2
    tell document 1
    delay 0.5   -- delay added
      tell print preferences
      set active printer preset to "Catalog Pages"

  • Script does not work after download

    Hi,
       I have build a form in SAP enviornment using Adobe Life Cycle designer, while designing I have been using XML datasource and wrote scripts for different events on the elements of the form, the script works perfectly fine while designing, but fails when downloaded through an application. I downloaded form and to check if the scripts are still there or not, the script was present, but would not simply execute, for ex. while on clicking of button, certain fields on the form are to be hidden, but this would not work.
    ex. this.parent.parent.StaticText39.presence
    = "hidden";this.parent.parent.STELL_STEXT.presence
    = "hidden";
    The above scripts work perfect durong designing the form, but would not work after form is downloaded through an applciation. Could any one have answer to wierd behaviour?
    Regards,
    Shishir.P

    Was the form saved as a dynamic XML form?
    While the default preview in LiveCycle Designer may be set to dynamic XML form, thus providing the dynamic behaviour you are seeking, if the form is not saved as a dynamic XML form Adobe Reader and Acrobat will not respect the changes to the presence property at run-time.
    Steve

  • Script does not work on the second page

    Hi, I believe it's just a little problem:
    I use the following script( I just copied a part of it, so don't care
    about missing brackets etc.)
    to automatically fill some text field according to the selection in a drop-down field:
    switch (xfa.event.newText) {
    case "8 8x1":
    berstdruck.rawValue = "≥65";
    htberst.rawValue = "≥20";
    maxflex.rawValue = "≥34";
    deflect.rawValue = "≥6";
    flexforce.rawValue = "≤44";
    minbend.rawValue = "≤40";
    permeation.rawValue = "≤2";
    length1.rawValue = "-1,5...+1,5"; remark:these fields are on page 2
    length2.rawValue = "-1,2...+1,2"; remark:these fields are on page 2
    break;
    The last two fields on page 2 of
    my document are not filled automatically.
    The others work well.
    Can somebody help?
    Thanks
    Alex

    You'll need to fully qualify the fields that are on other pages. The reason for this is these fields are not underneath the same parent in the XML DOM as where you're script is running (the drop-down). So it does not find the fields on the other pages and doesn't know where to look for them.
    A fully qualified SOM expression would look something like this:
    xfa.form.formName.pageName.subFormOnThePageNameIfExists.fieldName
    H.

  • Installing application in shutdown script does not work

    Hello,
    I'm trying to organise the deployment of office 2013. I want to give users the choice between installation during startup and installation during shutdown of their computer.
    Installation during startup works fine: installation starts and the user can use their computer and wait for the installation to finish in the background.
    Installation initiated from a console window works fine as well.
    However, installation using a shutdown script doesn't work as the installation command returns immediatly, the script ends and the computer shuts down.
    I have changed the gpo script timeout setting.
    In the powershell script, I execute the installation using "start-process" with the option "-wait". It seems like this command returns immediatly and the setup is never executed as it does not start logging the installation progress to
    a local log file.
    The shutdown script runs fine and it also logs its progress to a logfile on a network share so I'm sure the script actually runs and it has network access as well.
    Any clues as to why the installation might fail during a shutdown script and work fine in other situations? Thanks!
    I'm not sure if this is a gpo or an office 2013 deployment question. I'm thinking the environment during execution of a shutdown script might be different so that's why I'm asking my question here.

    Hi,
    Based on your description, we can also try asking for suggestions in the scripting forum to see if they can provide a better solution.
    The Official Scripting Guys Forum
    http://social.technet.microsoft.com/Forums/scriptcenter/en-US/home?forum=ITCG
    TechNet Subscriber Support
    If you are TechNet Subscription user and have any feedback on our support quality, please send your feedback here.
    Best regards,
    Frank Shen

Maybe you are looking for

  • IOS 7.04 install causing sync error message

    I phone 5 won't sync since installing ios7.04 any suggestions

  • File poller (please help)

    Hello! I have to create a file poller programm, which should search different files (filename is unknown) in a directory of the application server (like AL11). Is there a FM, which has these functionality? Or something else (Method/BAPI)? Thanks a lo

  • Error in CXD1 (EC-CS) during Validation Check

    Dear Team, While checking the Validation for Currency Translation Method QXCR in SAP, I am getting the below error message: 80: Item 0000510001 and item 0000900000 are not the same type Message no. GZ218 Diagnosis The item set contains both balance s

  • BB Connect Software for HTC

    can someone please explain the messaging flow when running the Blackberry Connect Software. Does the flow work exactly like a standard BB handheld, or is there some special configuration needed on the BES side to make this work? i am looking to buy H

  • Autocad 2010 drawing pasted in microsoft excel 2007 spread sheet not visible after converting excel

    Hello, I am having an issue with Autocad 2010 drawings not showing up in a pdf document. Normally, I cut and paste part of an Autocad 2010 drawing into a Microsoft Excel 2007 spread sheet. Then, using Adobe Distiller, I convert the Excel spread sheet