Sql Query in Custom Java Class in OIM 9x

Hi All,
I m having requirement where I need to execute SQL Select Query in custom java class.
The class is a action class ,in a method I m trying to execute SQL Query as below
     sdkDataSet = new tcDataSet();
          dataprovider =sdkDataSet.getDataBase();
               //sdkDataSet = new tcDataSet();
               sdkDataSet.setQuery(dataprovider, sdkQuery);
               sdkDataSet.executeQuery();
               logger.debug(CLASSNAME + methodName + "Query Executed");
               if (sdkDataSet.getRowCount() > 0)
                    sdkName = sdkDataSet.getString(0);
                    logger.debug(CLASSNAME + methodName+ "The sdkName is " + sdkName);
Error is returned in logs
tcDataSetException    Must set a query before executing
I hope issue is coming due to dataprovider dbrefence.
Kindly let me know how to execute sql query in a action class.
Regards,
Krish

Hi Pallavi,
Thanks for your reply...
OOTB class Name is com.thortech.xl.webclient.actions.ApprovalsAction
This class will display the pending Approvals for a user.On pending approval page, I need to add one more attribute let say email of the beneficiary user.I have a query which will fetch email value based on RequestID.
select usr.usr_email from rqu rqu, usr usr, act act  where rqu.usr_key=usr.usr_key and usr.act_key=act.act_key and rqu.req_key=1234*
Pls let me know if there is any way to get email with or with out executing Query.
Regards,
Krish

Similar Messages

  • Custom Java class called from RTF template generates error

    We are running a report in BI Publisher and the report calls a custom developed Java class that is used to bind PDFs together and sent the result to another application.
    On the RTF template we have some XSLT that reads the input XML and sets a variable which is then passed to the Java class. We are however getting the following error when the report is called simultaneously 2 or more times:
    XML-22044: (Error) Extension function error: Error invoking 'JavaClassName': 'java.lang.Error: Cannot interweave overlay template with pdf input, combined number of pages is odd!
    I read this as the real cause of the error is the Java code but I'm not 100% sure. Also I don't understand what the error message means.
    Could someone help out please?
    Many thanks

    Since our this requirement is in Quotes module, its not using OAF. It is using plain JSPs and java classes.
    What i was thinking is, create the Option values as flex fields, and write a custom java class to fetch these data from the flex tables and use it in the JSP.
    The main problem we are facing now is,
    "...we wrote a simple java class, which establishes database connection, executes a simple insert & select query to our custom table. compiled & placed the class file under our new pkg structure under $JAVA_TOP eg. oracle.apps.xxx.quot.tmpl , bounced the apache."
    But when we tried to import this class in the jsp (which is being customized), the app just throwed Internal Server Error and we couldnt find any info in the Log file.
    Couldnt guess, why is this simple thing failing. Any idea ?

  • Custom java class in Quoting screen Customization

    Hi,
    We are working with Customization of couple of screens in Quote module. Esp. the Create Template screen. We decide to add new property to the Template and user needs to choose among a set of values to this new property through a radio button.
    Instead of hardcoding these property values and radiobuttons, we thought we would define these data in some lookup table and fetch them and display.
    Now, since we are defining these lookup data, should we write our custom java class to interact with database and fetch them from any lookup table (should we use flex fields ?) ?
    If we are going to write custom java object, any guidance on how to compile/deploy/standards for them ?
    Message was edited by:
    tcesenthil

    Since our this requirement is in Quotes module, its not using OAF. It is using plain JSPs and java classes.
    What i was thinking is, create the Option values as flex fields, and write a custom java class to fetch these data from the flex tables and use it in the JSP.
    The main problem we are facing now is,
    "...we wrote a simple java class, which establishes database connection, executes a simple insert & select query to our custom table. compiled & placed the class file under our new pkg structure under $JAVA_TOP eg. oracle.apps.xxx.quot.tmpl , bounced the apache."
    But when we tried to import this class in the jsp (which is being customized), the app just throwed Internal Server Error and we couldnt find any info in the Log file.
    Couldnt guess, why is this simple thing failing. Any idea ?

  • How do you invoke custom java classes???

    Could someone post a detailed method of invoking custom java classes that works including what files go where, settings and the way it is invoked etc.
    I have tried various ways from this forum and in the documentation without success. I am using IDM 8. I found these instructions regarding how you would do it if you were writing custom resource adaptors in the deployment tools guide:
    To install a resource adapter you’ve customized:
    1. Load the NewResourceAdapter.class file in the Identity Manager installation
    directory under
    idm/WEB-INF/classes/com/waveset/adapter/sample
    (You might have to create this directory.)
    2. Copy the .gif file to idm/applet/images.
    This .gif file is the image that displays next to the resource name on the List
    Resources page, and it should contain an image for your resource that is
    18x18 pixels and 72 DPI in size.
    3. Add the class to the resource.adapter property in
    config/waveset.properties.
    4. Stop and restart the application server. (For information about working with
    application servers, see Identity Manager Installation.)
    I tried the instructions here but placed my custom class in a folder entitled custom instead of /adapter/sample. Not sure about instruction 3 or whether it is relevent. Anyway nothings working.
    Edited by: masj78 on Nov 25, 2008 3:50 AM
    Edited by: masj78 on Nov 25, 2008 4:03 AM

    Hi,
    The way to add custom class is the same as you followed , put them in the WEB-INF/classes.
    To use the custom adapter ,
    Go To Resources - > Configure Types -> Add Custom Resource .
    Type in the fully qualified class name of the custom adapter you added.and Save.
    Now the new adapter you added should showup in the list of available adapters when you try to
    configure a new adapter.
    (Make sure that the prototype XML of your custom adapter is correct so that it displays the correct name / type for the adapter in the adapter list.
    Thanks,
    Balu

  • Facing problem to Use a custom Java class in UCCX

    /* Style Definitions */
    table.MsoNormalTable
    {mso-style-name:"Table Normal";
    mso-tstyle-rowband-size:0;
    mso-tstyle-colband-size:0;
    mso-style-noshow:yes;
    mso-style-priority:99;
    mso-style-qformat:yes;
    mso-style-parent:"";
    mso-padding-alt:0in 5.4pt 0in 5.4pt;
    mso-para-margin-top:0in;
    mso-para-margin-right:0in;
    mso-para-margin-bottom:10.0pt;
    mso-para-margin-left:0in;
    line-height:115%;
    mso-pagination:widow-orphan;
    font-size:11.0pt;
    font-family:"Calibri","sans-serif";
    mso-ascii-font-family:Calibri;
    mso-ascii-theme-font:minor-latin;
    mso-hansi-font-family:Calibri;
    mso-hansi-theme-font:minor-latin;}
    Hi,
    We are using Communication manager 7.0.1 and UCCX version 7.0.1(Cisco Unified CCX Premium).  We are trying to call a Custom Java class file from UCCX scripting. We have followed the steps mentioned in the guide (How-To: Using a custom Java class in UCCX 5.x (SOAP Example)). See below link.
    http://www.avholloway.com/vtools/ipcc/custom-java/soap/
    After completed all the steps we have got the variable type SimpleSOAP at script but we did not found it to object constructors or object attributes (plz find the attached screenshots). We will appreciate if you plz guide us to solve the issue.
    Thanks
    Fakhrul
    LEADS Corporation Ltd.

    Hello, Fakhrul.
    I'm sorry to see you were not able to find the information or help you were looking for here in the Contact Center community forum.
    You may be able to find more help through the Cisco Developer Network.
    Also, you might want to consider engaging Cisco Advanced Services via your account team to assist with UCCX custom scripting.
    Thank you, and good luck.
    -Paulo

  • Use of bpelx built-in methods like getVariableData in custom java classes

    Hi,
    how can I use bpelx built-in methods like getVariableData ...
    inside custom java classes embedded with BPEL project?
    I have large java code to embed with BPEL process
    and it will be very useful ....
    It is possible to access these methods like static methods of some class?
    import com.xxx.yyy.class;
    class.getVaribleData("inputVariable","payload","/ns1:mailMessage/ns1:content/ns1:multiPart");
    Regards
    Karel

    you can access them from <bpelx:exec> activity and you can pass these returned document to underlying java class.
    Re: getVariableData in Java Exec

  • Using Custom Java Class - WorkflowRegistry.xml

    I am using a custom java class in workflow. While executing I am getting errot -
    com.waveset.util.WavesetException: Class com.LdapGroupMod is not a WorkflowApplication
    It seems from documentation that I need to add this in workflowregistry.xml file. I added the same like given below -
    <WorkflowApplication name='Workflow Name'
    class='com.LdapGroupMod'>
    <Comments>Nothing Here</Comments>
    </WorkflowApplication>Even tried restaring the application server but I am still getting same error. Any idea what needs to be done here? or I am missing smething?

    Well the first thing would be to read the workflowRegistry.xml file. The header talks about internal and external applications and so on. The crucial part is that any application registered must implement the WorkflowApplication interface (which I guess your class dont do)
    I gave up. I am totally baffled by the documentation. I admit it.
    What I did was to create an Script action in an Activity where the script used Xpress to invoke my class. It seems to work.

  • How to create custom java class in Content Server

    Hi All,
    I want to develop a custom java class (.class) file and upload in the UCM(Stellent Content Server). The problem is that I have to use some objects like DataResultSet, SharedObjects etc in my java class file. Since these class files resides in the Content Server I am not able to create a custom java class with these objects.
    Can any one help me to solve the above issue
    With thanks and regards
    Mohan

    Hey there,
    All of the core content server class files are included in a single jar file. This jar is in one of 2 places in the 10gr3 version of UCM:
    1. If you have an unpatched content server include $IntradocDir/shared/classes/server.zip in your classpath
    2. If you have a patched content server include $IntradocDir/custom/CS10gR35CoreUpdate/classes.jar in your classpath.
    In UCM 11g the jar file is located in %MIDDLEWARE_HOME%/Oracle_ECM1/ucm/idc/jlib/idcserver.jar
    P.S. Venkat is correct, post UCM specific questions in the ECM forum.
    Hope that helps,
    Andy Weaver - Senior Software Consultant
    Fishbowl Solutions < http://www.fishbowlsolutions.com?WT.mc_id=L_Oracle_Consulting_amw_OTN_WCS >

  • 11g iBots(Agents) calling custom java class?

    We upgraded from 10g to 11g and we have iBots that call a custom java class in the form of a jar file.
    This all worked fine in 10g.
    I followed all configuration steps in the documentation, but we are unable to get our iBots(Agents) to work in 11g.
    Keep getting "Can't find Class" errors.
    Has anyone successfully created agents that call custom java classes with 11g, if so, can you please share your steps for doing this?

    Hi glova,
    The document refers to the RPD and catalog migration....what ever customization used in 10g wont effect in 11g i suppose most of the things.
    i would suggest you to copy the java class of ibots and do the copy paste or manually do it in 11g and see if it works ...this is the only alternative.
    hope helps you.
    Cheers,
    KK

  • SOAPElement instead Custom Java Class

    Hi all,
    I've a simple process that call a Partner Link (Adapter) to do a Select on DEPTIN table of Oracle Lite Database, i've a XSD structure like this :
    <?xml version="1.0" encoding="windows-1252" ?>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns="http://www.example.org"
    targetNamespace="http://www.example.org"
    elementFormDefault="qualified">
    <xsd:element name="Deptos" type="DeptosType" />
    <xsd:complexType name="DeptoType">
    <xsd:sequence>
    <xsd:element name="deptno" type="xsd:int"/>
    <xsd:element name="dname" type="xsd:string"/>
    <xsd:element name="loc" type="xsd:string"/>
    </xsd:sequence>
    </xsd:complexType>
    <xsd:complexType name="DeptosType">
    <xsd:sequence minOccurs="1" maxOccurs="unbounded">
    <xsd:element name="Depto" type="DeptoType"/>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:schema>
    After Adapter called a Transform is done to my structure, it works fine.
    When i generate the Proxy in JDeveloper, the follow message appears on output:
    WARNING: OWS-00102 Mapped {http://www.example.org}DeptosType to javax.xml.soap.SOAPElement DeptosType. Reason for not creating a custom Java type: multiple occurrences are not supported.
    How to prevent its and generate Custom Java Type to its mapping?
    Thanks in advance

    Hi all,
    I've found the problem, it's on definition of DeptosType, the minOccurs and maxOccurs must be in element name="Depto" instead on sequence.
    <xsd:complexType name="DeptosType">
    <xsd:sequence>
    <xsd:element name="Depto" type="DeptoType" minOccurs="1" maxOccurs="unbounded"/>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:schema>
    instead
    <xsd:complexType name="DeptosType">
    <xsd:sequence minOccurs="1" maxOccurs="unbounded">
    <xsd:element name="Depto" type="DeptoType"/>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:schema>
    I haven't understood why its occurs, but in this way the proxy can generate custom Java Class.
    Does anybody knows?
    Best regards

  • Calling Custom Java Class from WCC?

    How do I call a custom Java class from WCC when a certain metadata field is set to 'On' and at the time of check-in?
    Thank you,
    Randy

    Randy,
    You would only use the Intradoc classes if running as a service, service handler, filter or class alias as a component within WebCenter Content. In this case, since it is running inside WebCenter Content, you do not need to bundle the Intradoc classes since they are already on the classpath.
    If you are trying to code something that will not run inside WebCenter Content, you want to use RIDC: http://jonathanhult.com/blog/2012/12/ridc-examples/
    Jonathan
    http://jonathanhult.com

  • How to call a PL/SQL procedure from a Java class?

    Hi,
    I am new to the E-BusinessSuite and I want to develop a Portal with Java Portlets which display and write data from some E-Business databases (e.g. Customer Relationship Management or Human Resource). These data have been defined in the TCA (Trading Community Architecture) data model. I can access this data with PL/SQL API's. The next problem is how to get the data in the Java class. So, how do you call a PL/SQL procedure from a Java program?
    Can anyone let me know how to solve that problem?
    Thanks in advance,
    Chang Si Chou

    Have a look at this example:
    final ApplicationModule am = panelBinding.getApplicationModule();
    try
         final CallableStatement stmt = ((DBTransaction)am.getTransaction()).
                                                                                         createCallableStatement("{? = call some_pck.some_function(?, ?)}", 10);
         stmt.registerOutParameter(1, OracleTypes.VARCHAR);
         stmt.setInt(2, ((oracle.jbo.domain.Number)key.getAttribute(0)).intValue());
         stmt.setString(3, "Test");
         stmt.execute();
         stmt.close();
         return stmt.getString(1);
    catch (Exception ex)
         panelBinding.reportException(ex);
         return null;
    }Hope This Helps

  • Clearing custom java classes from cache

    Hi,
    I've written some java classes and am accessing them via the "cfobject" tag.
    My problem is that each time I recompile my java program, coldfusion continues using a cached version of my custom class' bytecode... so I can't really see my changes without restarting coldfusion.
    (I've turned off all caching in the cfadmin, but it doesn't seem to help)
    Any ideas on how to do this would be appreciated.
    (using coldfusion 8)

    found the answers here
    http://forums.sun.com/thread.jspa?forumID=764&threadID=5330127

  • How to Run a .sql file from simple java class

    How to execute a .sql file consisting of Complex Queries,procedures through simple java class.
    The queries may have different delimiters,queries independant of each other.
    I am able to do with Specific De-limiter.But I need in such a way that there should not be any
    Constraints. Since My .sql may Contain different De-limiters.
    If any one can Suggest Some Solution.
    It will be Great Help.
    regards
    Anil

    Check out ibatis script runner, it' a third party library but quite handy for running sql files...
    m

  • Accessing custom java classes in Coldfusion

    I have created some java classes (.class) to work as a model
    in CF. I could instantiate this classes through the CreateObject()
    function in CF but I was unable to reach them from Flex, I mean
    when I use the [RemoteClass(alias="javapackage.javaclass")] to
    create a mapping in Flex. When I try to send a Flex instance of
    this class it’s throwing an error: “Could not find the
    Cold Fusion Component javapackage.javaclass”. Coldfusion
    doesnt expose any custom class?
    Any Clue?

    Hi all,
    I got further problem regarding this issu. Using Sun App Server 8.2, I've easily and succesfully had my custom classes loaded just by dropping them to the WEB-INF/classes directory. But when I move those classes to another IDM server on WebLogic 8.1 SP 4, it just won't load. The rule invoking the class gave this:
    com.waveset.exception: class com.waveset.my.CustomClass not found.
    I've tried to add the classpath to the Weblogic startup script, but still not working. Any ideas?

Maybe you are looking for

  • Hello I am a newbie to lightroom and a photographer in need of a rescue.  The isssue is this I backup my lightroom catalogs with a Seagate Back-up Plus ext/hd

    The Seagate has all the backup catalogs stored and still lightroom cannot display them and consider them as "missing".  How can these photos which lightroom has stored the date/time, size of file, and type(such as dng) be located so they can then be

  • Coloring a table cell with swing

    Hello, I am trying to write a java program in swing. Basically I am setting up a table and adding labels to the table's cells. Rather than displaying the label, the table is inserting the labels' string value. Here is a compilable example: import jav

  • HELP! DWCS3 won't display DW8 text on my Mac

    I recently got DWCS3 (v9.0) on a Mac and had been using DWMX2004. My HTML pages displayed fine in DW8 but when I moved them to DWCS3 the main table cells do not display correctly. Does anyone know what is going on. I can see half the text on my page

  • Element 'when' not found in 'xsl:choose'

    Hi, I'm trying to create a very basic choose / when /otherwise instruction in an RTF template. I have created 6 fields, with the following codes: <?choose:?> <?when: E.TYPE='I'?> * do something * <?end when?> <?otherwise:?> * do something else * <?en

  • How do I update my Office 2010 KMS key?

    I renewed our EES contract with Microsoft and in turn got a new Office 2010 key. Our current clients are saying I have 30 days to activate so I would like to update the KMS key on the server with the new one so they'll pick it up. I haven't found any