Java component using validateStandard and SystemDatabase fails to incr cntr

I've based my filter on the dynamic prefix, code and I found in this forum. I have a veou in my system database I want to validate a field against recording, instead of load 50 K values in a combobox control. The problem is that when the routine is running and the emp_num is valid (routine is successful), the table of counters is not incremented and fails the check next? Any help appreciated. The code for the java component is below:
package mypackage.ucm;

import intradoc.common.ExecutionContext;
import intradoc.common.ServiceException;
import intradoc.common.SystemUtils;

import intradoc.data.DataBinder;
import intradoc.data.DataException;
import intradoc.data.DataResultSet;
import intradoc.data.ResultSet;
import intradoc.data.Workspace;

import intradoc.provider.Provider;
import intradoc.provider.Providers;

import intradoc.shared.FilterImplementor;

import intradoc.util.IdcMessage;

/* Setup in hda fild to use validateStandard
 * validateStandard
 * validateCheckinDate
 * From Bex's book setReturnValue("true");  - Didn't help
 * 
 * 
 */
public class EmployeeCheckinFilter implements FilterImplementor {
  public int doFilter(Workspace ws, DataBinder binder, ExecutionContext cxt) 
      throws DataException, ServiceException {
    String value = "-1";
    String xEMP_NUM ="";
    String SQL = "";
    String ResultSetName = "XEMPNUMCOUNT";
    int ivalue=0;
    DataResultSet result = null;
    DataException error = null;
    ResultSet temp = null;
 
    SystemUtils.trace("system", "Starting doFilter for EmployeeCheckinValidation");

    // Display the binder
    // System.out.println(binder);

    xEMP_NUM = binder.getLocal("xEMP_NUM");
    SystemUtils.trace("system", "xEMP_NUM=" + xEMP_NUM);

    // Only run valiation is 
    if (xEMP_NUM != null && xEMP_NUM.length() > 0) {
      SQL = "select count(*) counter from dcsdemployees where emp_num = " 
        + xEMP_NUM.trim();
      SystemUtils.trace("system", "SQL=" + SQL);

      if (ws == null) {
        SystemUtils.trace("system", "ws is null, getting ws from call to getSystemWorkspace()");
        ws = getSystemWorkspace();
      }

      SystemUtils.trace("system", "try-catch block to get ResultSet from SQL");
      try {
        temp = ws.createResultSetSQL(SQL);
        result = new DataResultSet();
        result.copy(temp);
        // Makes results avilable for other Java methods or IdocScript templates.
        // binder.addResultSet(ResultSetName,result);  // Don't want this available
      } catch (DataException de) {
        error = de;
      } finally {
        ws.releaseConnection();
      }

      try {
        result.first();
        value = result.getStringValue(0);
        SystemUtils.trace("system", "value(getStringValue(0)) = " + value);
        ivalue = Integer.parseInt(value);
        SystemUtils.trace("system", "ivalue=" + ivalue);
      } catch (NumberFormatException nfe) {
        SystemUtils.trace("system", "nfe.getMessage()=" + nfe.getMessage());
      }

      // Can't find a match, throw an exception
      if (ivalue == 0) {
        SystemUtils.trace("system", "Throw error since xEMP_NUM is not in the dcsdemployees table");
        throw new ServiceException("xEMP_NUM was not found in the database!");
      }

      if (error != null) {
        SystemUtils.trace("system", "Throw error since error condition exists.");
        throw error;
      }
    }
    SystemUtils.trace("system", "Ending doFilter for EmployeeCheckinValidation");
    cxt.setReturnValue("true");
    return CONTINUE;
  }

  public Workspace getSystemWorkspace() {
    Workspace workspace = null;
    Provider wsProvider = Providers.getProvider("SystemDatabase");
    if (wsProvider != null) {
      workspace = (Workspace)wsProvider.getProvider();
    }
    return workspace;
  }
}

Hey klee,.

I think the cause of the problem is:

{Finally
ws.releaseConnection ();
}

You don't need to free the connection in a Standard to validate filter because the consignment service will release the connection when it is finished. Because the connection is being manually released the code that runs after the validateStandard doesn't have a connection to the DB and don't can't increment the counter. In fact, I'm surprised that you do not get an exception.

Hope that helps,

Andy Weaver - Senior Consultant software
Fishbowl Solutions< http://www.fishbowlsolutions.com?wt.mc_id="L_Oracle_Consulting_amw">

Tags: Fusion Middleware

Similar Questions

  • First and After Effects crashed. Uninstalled is not for them. Use the cleaning tool. I deleted everything else. Tried to install CC again and it fails. 201 error code, I followed the steps and it does not work.

    Hello team,

    First and After Effects crashed.

    I tried to uninstall the utility (Mac OS). Uninstalled is not for them (which has worked for other applications).

    I used the cleaning tool. It seems to work, but the uninstaller for first and AE in the utility remained.

    I deleted everything I found CC remaining manually.

    I tried to install CC again and it fails. 201 error code, I followed the steps and it does not work.

    I don't know what to do anymore.

    Could someone help me?

    Virginia

    I got the help of Adobe support, they sent me another link to download Adobe App Mgr It was apparently a network problem but, and it was resolved after a few re-tent.

  • I just installed lightroom cc on a brand new and reveived laptop 2 following errors.  can someone tell me what they mean and wll prevent of sing lightroom?  ERROR: third charge useful Installer vcredist_x64.exe failed with exit code:-2147024546

    I just installed lightroom cc on a laptop computer brand new and reveived errors the following 2.  can someone tell me what they mean and they will prevent to use lightroom?

    ERROR: third charge useful Installer vcredist_x64.exe failed with exit code:-2147024546

    AND

    ERROR: Cannot install the Microsoft Visual C++ 2012 Redistributable Package (x 64). Please try to install by double-clicking the executable file to "C:\Users\CHRIST~1\AppData\Local\Temp\{7A86BA4B-C59E-4130-9C4D-DA8765643E21}\Lightroom_6_ LS11\payloads\Microsoft VC 2012 Redist (x 64) \vcredist_x64.exe", or download and install the 2012 Microsoft Visual C++ Redistributable Package last (x 64) Microsoft Web site - www.microsoft.com

    Download Visual C++ Redistributable for Visual Studio 2012 updated 4 of the official Microsoft Download Center

  • Update using jQuery and java script

    Is it possible using javascript and jQuery to update the two forms of this page, in tandem, as the fields change? http://www.milesmemorials.com/product-GH54.html  As you can see there are two forms, the first holds all the choices element and has an 'Add to Cart' button, the other after clicking on 'continue the evidence' shows and gathers name, Tel, email and all the other fields in the first form (which will be "hidden" once this problem is solved) everything will show will be name phone and email. Currently what is happening, it's choices are made, you click on the button of the evidence, but if a selection is then replaced by items duplicate in form2 are not updated unless the proof button back and then you click New. This may cause incorrect information submitted. So back to my original question, is it possible using javascript and conery for updating both forms in tandem as the fields change?

    Any help really appreciated!

    Take a look at the event .change here http://api.jquery.com/change/

    The figure shows a select field, but this can easily be replaced by a text field.

  • Downloaded and paid of Minecraft and having problems with Java, Anti Virus Scan and Windows Update - error code 800F081F

    Downloaded and paid of Minecraft and having problems with Java, Anti Virus Scan and Windows Update - error code 800F081F

    Would you advice, thank you.

    Hi Hugo,.

    1. what anti-virus software you have installed in the computer?

    2. What is the full error message/code?

    3. the issue occurred after you install Minecraft?

    4. are you able to play Minecraft without any problem?

    5. what happens with Antivirus and Java?

    Windows Update can occur if one or more of the following conditions are met:

    1. the Windows Update database is damaged.

    2. antivirus software is configured to scan the %Windir%\SoftwareDistribution folder.

    3. the service (BITS) Background Intelligent Transfer Service does not receive a content link header.

    4. a required system file is incorrectly registered.

    5. Windows Installer has encountered an error.

    6. the manifesto of component maintenance (EC) is damaged.

    7. the Windows Update service has stopped during the installation.

    8. a version of the file conflict exists with Windows Update agent files.

    Please follow the steps described in the methods to solve the problem:

    Method 1: We will try the steps from the following link and check the result:

    Important: This section, method, or task contains steps that tell you how to modify the registry. However, serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click the following article:http://windows.microsoft.com/en-US/windows7/Back-up-the-registry

    How to reset the Windows Update components?

    http://support.Microsoft.com/kb/971058?WA=wsignin1.0

    Method 2:

    To correct the errors that occur when you use Windows Update, install, and run the system update readiness tool. The tool analyzes inconsistencies on your computer and fixes as its current installation.

    You can view the following link to download the system update readiness tool and check:

    System tool update that corrects problems of Windows Update is available for Windows 8, Windows 7, Windows Vista, Windows Server 2008 R2 and Windows Server 2008

    http://support.Microsoft.com/kb/947821

    Details of the event log to find what caused the Antivirus and Java to fail:

    What are the information contained in the logs of the event (Event Viewer)?

    http://Windows.Microsoft.com/en-us/Windows7/what-information-appears-in-event-logs-Event-Viewer

    Hope that the information provided is useful.

    For any help related to this problem or any question of Windows, you can still display in the Microsoft Community Forum!

  • Error 'nmapp.exe.unable to locate the component. This application has failed to start because MSVCP 70 .dll is not found"when you connect to the computer.

    Original title:

    Problem: I use DeLL Desktop.When I connect, these messages appear on my screen: nmapp.exe.unable to locate the component. This application has failed to start because MSVCP 70 .dll not found. Re-installing the application may fix the problem. Pls help. Thank you.

    Hello
    1. what version of Windows is installed on the computer?
    2. are you aware of any changes made to the computer, before the show?
    Assuming you have Windows Vista or Windows 7, follow the steps mentioned below.

    Method 1:

    Step 1: Perform a boot minimum troubleshooting and check which application reports this error
    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7
    http://support.Microsoft.com/kb/929135
    Note: once you have determined the problem by using a clean boot procedure, follow step 7 in the article to restore your computer to normal startup.

    Step 2: reinstall the application.
    Uninstall or change a program
    http://Windows.Microsoft.com/en-us/Windows7/uninstall-or-change-a-program

    Method 2:
    Run an analysis of auditor of system files on your computer and check for the issue.
    How to use the System File Checker tool to fix the system files missing or corrupted on Windows Vista or Windows 7
    http://support.Microsoft.com/kb/929833

    I hope this helps.

  • Error: mmc.exe - Unable to locate component. This application has failed to start because apphelp.dll was not found.

    Original title: this application has failed to start because apphelp.dll was not found.

    A window titled "mmc.exe - Unable to locate component" in the title bar, which includes the message:

    "This application has failed to start because apphelp.dll was not found.  Reinstalling the application may fix this problem. »

    that appears when you access many of the 'administration tools' in the start menu.  e.g. component, computer, event viewer Management Services, etc.

    I'm afraid I accidentally deleted apphelp.dll when cleaning on other files.  I found copies of apphelp.dll in following two tracks.

    AppHelp.dll C:\WINDOWS\$NtServicePackUninstall$ 124KO Extension Application 09/08/2004

    AppHelp.dll C:\WINDOWS\ServicePackFiles\i386 123KO Application Extension 04/13/2008

    I tried Recuva, but he could not find the file.

    How to re - install a such apphelp.dll suggested by the pop - up error message window?

    Thank you

    I thought it would be something that began with "A".

    For low overhead and free, think of Microsoft Security Essentials (MSE).

    MSE and a regularly good scan with the definitions updates using MBAM and SAS (from post above) should keep you in good shape according to your Internet habits.

  • Lsass.exe - Unable to locate component. This application has failed to start because the oleaut32.dll file not found

    Original title: oleaut32.dll xp

    My system XP pro/sp3 does not start normally, without danger or with the original sys disk. I get a message
    Isass.exe - Unable to locate component. This application has failed to start because the oleaut32.dll file not found. reinstalling the application may fix this problem.
    However, I can't in the operating system to do a re-install.
    Any suggestions?

    If c:\windows\system32\oleaut32.dll is missing, you will see messages like this:

    Lsass.exe - Unable to locate component
    This application has failed to start because the OLEAUT32.dll file not found.  Reinstalling the application may fix this problem.

    If the missing file is the only problem, you might have to do a reinstall to fix.

    There should be a copy of Oleaut32.dll in the c:\windows\system32\dllcache folder, so if you can get in the XP Recovery Console, you can just replace it - then you are going to have to start on something to do.

    Once started in the XP Recovery Console, you must enter this command at the prompt:

    Copy c:\windows\system32\dllcache\oleaut32.dll c:\windows\system32

    If the file is not in the dllcache folder (it should really be), depending on your installation, this command can work:

    Copy c:\windows\servicepackfiles\i386\oleaut32.dll c:\windows\system32

    Answered in the affirmative if invited to replace any existing file.

    I don't know what the Microsoft Support Engineer think that KB307545 or KB922371 will help you.  I think that the MSE is just throw a few things to try and some links.  You don't describe symptoms consistent with the need to use one of these methods.   I would say the MSE has never seen this problem before, made no attempt to reproduce the problem, and has no idea how to fix this.

    If your CD does not start in the Recovery Console, or if you don't know what kind of CD do you have to do a CD of XP Recovery Console and boot on it (no media XP required).

    Here's how:

    Boot into the Recovery Console Windows using an XP bootable installation CD.

    If you have no XP bootable media (or aren't sure you have) create a bootable XP Recovery CD of Console and do not forget.

    This is not the same as recovery disks that might have come with the acquisition of the system store.

    You can make a bootable Recovery Console CD by downloading an ISO file and burn it to a CD.

    The ISO bootable image file you need to download is called:

    xp_rec_con. ISO

    Download the ISO from here:

    http://www.mediafire.com/?ueyyzfymmig

    Use a new CD and this simple and free program to burn your ISO file and create your bootable CD:

    http://www.ImgBurn.com/

    When you install ImgBurn, DO NOT install the Ask toolbar.

    Here are some instructions for ImgBurn:

    http://Forum.ImgBurn.com/index.php?showtopic=61

    It would be a good idea to test your bootable CD on a computer running.

    You may need to adjust the computer BIOS settings to use the CD-ROM drive as the first device to boot instead of the hard drive.  These adjustments are made before Windows tries to load.  If you miss it, you will need to restart the system again.

    When you start on the CD, follow the instructions:

    Press any key to boot from CD...

    Installing Windows... going to pronounce.

    Press 'R' to enter the Recovery Console.

    Select the installation that you want to access (usually 1: C:\WINDOWS)

    You may be asked to enter the password (usually empty).

    You should be in the folder C:\WINDOWS.  It's the same as the

    C:\Windows folder that you see in Solution Explorer.

    The Recovery Console allows base as file commands: copy, rename, replace, delete, chkdsk, fixboot, fixmbr, cd, etc.

    For a list of the commands in the Recovery Console, type help at the prompt of commands or read on here XP Recovery Console:

    http://www.Microsoft.com/resources/documentation/Windows/XP/all/proddocs/en-us/recovery_console_cmds.mspx?mfr=true

    After replacing the file, remove the CD and type 'exit' to leave the RC and restart the computer.

    You have not to set the BIOS to boot the disk HARD since the CD won't be.

  • Oracle 9i Java component performance problems

    Hello

    I am reorganizing a java component inherited because of performance problems.


    A java stored procedure is used to trigger a shell script that runs a java component. The component connects to a series of remote directories via ftp, gets the files and load them using slq * charger.

    Is there a better way to do this? I saw a few articles talking using a FTP interface directly from PL - SQL jump the java component entirely. It would be preferable to the current solution its?

    Thanks in advance,
    Pedro

    I am reorganizing a java component inherited because of performance problems.

    The first step is to identify what are the problems of performance, where they occur, and what causes them.

    View details on

    1. WHAT you do

    2. HOW to

    3. WHAT results you get

    4 what ARE the results you expect to get.

  • the internal HARD drive has been corrupted and I fails to make the back upward. need information.

    I've owned an HP Pavilion dm1-LQ862PA #UUF, used to be windows 7-64 bit. the internal hard drive has been corrupted and recommended to replace another. they were asking for the backup cd and I failed to do, and I do not regret it. Well, except to lose all my files and programs that I installed, it will also include bluetooth, wi - fi and other important built in programs? I'm not a computer expert. If ever these important programs had totally disappeared, how retrieve it? my laptop in an HP authorized service center will be probably expensive and I decided to buy a new HARD drive and ask someone to put it in and install a new OS. Please help thanks

    Hello:

    There is a support for your PC page where all the software drivers to run the hardware on your PC such as bluetooth and wireless can be reinstalled.

    http://h10025.www1.HP.com/ewfrf/WC/product?product=5079502 & CC = US & DLC = in & LC = on & query = LQ862PA & Tool=.

    What I don't see is the availability of recovery disks to reinstall the operating system (windows 7 64-bit) or your PC programs (other than those listed in the link of support above).

    This means that if you want to replace the hard drive, you must make your own W7 64-bit installation media and use the 7 product key of Microsoft windows on the bottom of your PC to activate the installation.

    That assumes you can read all 25 characters of the product key windows 7.

    Here's how...

    If you can read the Microsoft windows 7 25-character product key, you can download simple Windows 7 ISO files to burn on a DVD for the version of windows that is installed on your PC, and which is listed on the Microsoft COA sticker on your PC case.

    Burn the ISO with the option to burn the ISO on your DVD burning program and burn it at the slowest possible speed that will allow your program. This will create a bootable DVD.

    Or use the installation of Windows 7 USB/DVD tool to compile the ISO file that you download from Digital River. Link and instructions below. You need a 4 GB flash drive to use the USB compilation method.

    http://www.microsoftstore.com/store/msstore/HTML/pbPage.Help_Win7_usbdvd_dwnTool

    Use 25 characters on the PC product key to activate the installation.

    The key will activate a 32 or 64 bit installation.

    Then go to the support of the PC and driver page to install the drivers you need.

    Link to downloads ISO of W7 is below.

    http://www.mydigitallife.info/official-Windows-7-SP1-ISO-from-Digital-River/

    The replacement hard drive should be a 320 GB SATA II 5 400 rpm Disk If you want the same specification provided with your PC hard drive.

    Please refer to Chapter 4 of the service manual on the link below for the procedures for removal and replacement of the hard disk.

    http://h10032.www1.HP.com/CTG/manual/c02666702.PDF

  • Time Machine don't prune the old El Capitan backups and works out of space and "backup fails.

    With the help of El Capitan 10.11.1, I noticed a change in behavior with the handling of the time Machine of large files, specifically the files of virtual disk VMWare Fusion (about 50 large concerts).  After a few weeks of use of fusion VM virtual machine, Time Machine gives an error where it ran out of space and "backup failed."

    I had the same problem occur on a second iMac that I own.

    I reformatted my external drive for Time Machine and started fresh, but after a few weeks, I got the same error again.  It seems that Time Machine is not the size or remove older backups of VMware virtual disk to provide a space for the new.

    Previous versions of Mac OS X and Time Machine had no problem with the backup of large files such as these.

    Has anyone else noticed "backup failed" message with Time Machine on El Capitan?  I know that I can exclude the disk virtual VMware backup, but that defeats the entire purpose of Time Machine backups.  Any suggestions?

    Time Machine automatically deletes older snapshots to make room for the new. If your backup history is shorter than expected, it may be because you want to save one or more large files frequently.

    Software virtualization VMware, Parallels or VirtualBox creates a large virtual disk container that is constantly evolving. It will not be saved at all while the virtual machine running, and at other times it must be saved each Time Machine performance. Who fills up quickly any backup destination.

    You must exclude files from virtual drive of your Time Machine backups. To do this, click the Options button in the Time Machine preferences window. You can also do this to virtualization, application settings. Back up the files on the virtual disk within the comments system, using a native backup application.

    A compromise solution is to create a 'snapshot' of the virtual machine in the virtualization software (not a Time Machine snapshot.) This will give you a single large file that never changes and only has to be saved once. All future changes will be stored in a file that is much smaller initially, but will grow over time. You must always exclude this backup TM file. If you need to restore the computer virtual of Time Machine, you will have a working configuration, which will be easy for you to restore the rest of the data in the system of comments.

    See also this page of Parallels support.

  • Windows 7 64-bit updates KB980408 and KB981793 fails with the error code 8007065E and 800 b 0100

    KB980408 updates Windows 7 64 bit and KB981793 fail with error code 800b0100 and 8007065E respectively.

    Help, please

    This is a fresh (blank) load, THAT No. SW Antiviral has been installed.

    I see. Start by reading...

    Cleaning a compromised system
         http://TechNet.Microsoft.com/en-us/library/cc700813.aspx

    Personal data backup (which none should be considered 100% reliable at this point) then format the HARD disk and do a clean install of Windows.  Please note that a repair installation (upgrade AKA on-site) won't fix this!

    HOW to do a clean install of Win7: see "using the custom installation option" and formatting the hard drive section ofhttp://windows.microsoft.com/en-us/windows7/Installing-and-reinstalling-Windows-7

    Once installed the clean, you will have the equivalent of a "new computer" in order to take care of everything on the next page before connecting the machine to the internet or one local network (i.e. other computers) otherwise and before using a flash drive or the SD card that is not brand new, or has not been freshly formatted:

    4 steps to help protect your new computer before going online
         http://www.Microsoft.com/security/pypc.aspx

    NB: No matter what Norton or McAfee free trial which is preinstalled on the computer when you bought will be reinstalled (but invalid) when Windows is reinstalled. You MUST uninstall the trial for free and download/run the removal tool before installing updates, Windows Service Packs, or updates IE and before installing your new anti-virus application (which will require WinXP SP3 must be installed).

    Norton Removal Tool
         FTP://ftp.Symantec.com/public/english_us_canada/removal_tools/Norton_Removal_Tool.exe

    McAfee Consumer product removal tool
         http://download.McAfee.com/Products/Licensed/cust_support_patches/MCPR.exe

    If you need help, please start a new thread in this forum: http://social.answers.microsoft.com/Forums/en-US/w7repair/threads

    If these procedures look too complex - and there is no shame in admitting this isn't your cup of tea - take the machine to a local, good reputation and stand-alone computer (that is, not BigBoxStoreUSA or Geek Squad) repair facility.

    ~ Robear Dyer (PA Bear) ~ MS MVP (that is to say, mail, security, Windows & Update Services) since 2002 ~ WARNING: MS MVPs represent or work for Microsoft

  • Window updates fail, keys corrupt registry patch, (Kb265370) and (KB2656353) failed

    I used the fix it tool and discovered that I have a problem of "KEY of REGISTRY PATCH CORRUPT" can someone tell me how to solve this problem.

    Every time I try to install windows updates .NET Framework 1.1 (Kb265370) and (KB2656353) failed!

    Hi Queenelease,

    ·         What testing Fixit have you tried?

    ·         You receive an error message or error code in the Windows update fails?

    Follow the steps listed in the following article to resolve the problem:

    You cannot install some programs or updates

    http://support.Microsoft.com/kb/822798

    Let us know if that helps.

  • applesyncnotifer has stopped working unable to locate the component that this application has failed to start because corefoundation.dll was not found. Re-install the app

    Original title: applesyncnotifer has stopped working

    pop-up that said, apple syncnotifer.exe cannot locate the component.  This application has failed to start because corefoundation.dll was not found. Re - install the app may fix the problem.

    Hello

    It's all part of itunes

    Uninstall and reinstall itunes

    Follow the information from apple to the link below

    Remove and reinstall iTunes, QuickTime, and other software components for Windows Vista or Windows 7

    http://support.Apple.com/kb/HT1923

    and or ask for their support of itunes

    http://www.Apple.com/support/iTunes/

    Also try the discussions of apple itunes

    http://discussions.Apple.com/category.jspa?categoryID=149

  • so many questions: no sound, cannot use USB and dongle...

    I have a toshiba satellite l505d-gs6000... I have installed the latest updates for my computer stop for the night he opened in the morning and I have no sound, unable to use USB and dongle... I restored an hour earlier and who fixed it, I have re installed windows os and it does not solve it... the drivers on my sound it's updated but also when I click on its screen it says: no audio output device is installed:

    Hello Jason, I've done a little reading on your laptop model, it seems, there is a hardware problem with this range of laptop, which causes the USB and sound to fail. There is no known for this hotfix.

    You will need to contact Toshiba customer service if your laptop is under warranty.

Maybe you are looking for