NullPointerException trying to execute CallableStatement

      oracle.jbo.domain.Number jobId = null;
      Connection conn = getCurrentConnection();
      statement = getDBTransaction().createCallableStatement("{ ? = CALL submit_refresh_actuals(1) }", 0);
      statement.registerOutParameter(1, OracleTypes.NUMBER);
      System.err.println("CALL SUBMIT_REFRESH_ACTUALS("+planId+")");
      statement.execute();(boom)
Output:
[377] JDBCDriverVersion: 10.2.0.1.0
[378] DatabaseProductName: Oracle
[379] DatabaseProductVersion: Oracle9i Enterprise Edition Release 9.2.0.5.0 - 64bit Production With the Partitioning, OLAP and Oracle Data Mining options JServer Release 9.2.0.5.0 - Production
[380]       cStmt = conn.prepareCall("{call dbms_application_info.set_client_info('testuser')}");  // JBO-JDBC-INTERACT
refreshPlan
getAssortmentItemIds 1 updated? false
[381] Column count: 1
[382] ViewObject: ASP20_NonUpdatedAssortmentItemLookup Created new QUERY statement
[383] ASP20_NonUpdatedAssortmentItemLookup>#q computed SQLStmtBufLen: 154, actual=114, storing=144
[384] SELECT ASSORTMENT_ITEM_ID FROM ASSORTMENT_ITEM WHERE PLAN_ID = :1 AND TO_DATE(LYA_UPDATE_DATE) != TO_DATE(SYSDATE)
[385]       pStmt = conn.prepareStatement("SELECT ASSORTMENT_ITEM_ID FROM ASSORTMENT_ITEM WHERE PLAN_ID = :1 AND TO_DATE(LYA_UPDATE_DATE) != TO_DATE(SYSDATE)");  // JBO-JDBC-INTERACT
[386] Bind params for ViewObject: ASP20_NonUpdatedAssortmentItemLookup
[387] Binding param 1: 1
nonUpdatedAssortmentItemIds = [1627]
[388]       cStmt = conn.prepareCall("SELECT PS_ASP_ACTUALS.REFRESH_JOB_EXISTS(?) FROM DUAL");  // JBO-JDBC-INTERACT
job exists? false
[389]       pStmt = conn.prepareStatement("SELECT NULL FROM DUAL;");  // JBO-JDBC-INTERACT
[390]       cStmt = conn.prepareCall("{ ? = CALL submit_refresh_actuals(1) }");  // JBO-JDBC-INTERACT
CALL SUBMIT_REFRESH_ACTUALS(1)
Exception in thread main
java.lang.NullPointerException
     at oracle.jdbc.driver.T4C8Oall.getNumRows(T4C8Oall.java:870)
     at oracle.jdbc.driver.T4CCallableStatement.executeForRows(T4CCallableStatement.java:959)
     at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1167)
     at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3284)
     at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:3389)
     at oracle.jdbc.driver.OracleCallableStatement.execute(OracleCallableStatement.java:4222)
     at dg.merchandising.asp.detail.model.DetailAMImpl.submitRefreshPlan(DetailAMImpl.java:548)I have tried [377] JDBCDriverVersion: 10.1.0.3.0. Same problem.
Any tips appreciated.
Thanks,
Steve

Thank you for the reply.
Steve,
Pardon me if this is an obvious question, but is
SUBMIT_REFRESH_ACTUALS a
PL/SQL function?Yes.
According to what you have posted,
the call spec for
SUBMIT_REFRESH_ACTUALS should be:
function SUBMIT_REFRESH_ACTUALS (PARAM  number)
return number;Is this correct?Yes.
CREATE OR REPLACE FUNCTION submit_refresh_actuals
(p_plan_id ASSORTMENT_PLAN.PLAN_ID%TYPE)
RETURN NUMBER
where ASSORTMENT_PLAN.PLAN_ID's type is NUMBER(10).
Have you tried executing the function in
SQL*Plus? For example:
select SUBMIT_REFRESH_ACTUALS(1) from DUALGood Luck,
Avi.The DB guy here is telling me:
I can't because it does DML inside the function, but it works fine inside an anonymous block.

Similar Messages

  • Getting errors when trying to execute CRUD programs

    Hi All
    I am trying to execute one of the CRUD programs for creating , updatying or deleting data in MDM server and a m getting a few errors .Could anybody advise.
    Created on Jun 6, 2007
    package com.sap.nw.mdm.rig;
    import com.sap.nw.mdm.rig.programs.data.blobs.BLOBDataProgram;
    import com.sap.nw.mdm.rig.programs.data.checkout_checkin_rollback.CheckOutCheckInRecordsProgram;
    import com.sap.nw.mdm.rig.programs.data.crud.CRUDDataProgram;
    import com.sap.nw.mdm.rig.programs.data.crud.bulk.BulkCRUDDataProgram;
    import com.sap.nw.mdm.rig.programs.data.keymapping.KeyMappingProgram;
    import com.sap.nw.mdm.rig.programs.data.search.SearchProgram;
    import com.sap.nw.mdm.rig.programs.data.search.attribute.AttributeSearchProgram;
    import com.sap.nw.mdm.rig.programs.data.search.field.FieldSearchProgram;
    import com.sap.nw.mdm.rig.programs.data.syndication.SyndicationProgram;
    import com.sap.nw.mdm.rig.programs.data.workflow.WorkflowProgram;
    import com.sap.mdm.data.RegionProperties;
    import com.sap.nw.mdm.rig.repository.Repository;
    import com.sap.nw.mdm.rig.server.Server;
    This class is the starting point to execute all sample programs.
    To see a description of the various programs you can execute, please have a look at the
    documentation for the following classes.  There are static variables in each of these
    classes that point to the various programs that can be executed with a description of
    what the program does.
    <ul>
    <li>{@link com.sap.nw.mdm.rig.programs.data.blobs.BLOBDataProgram}
    <li>{@link com.sap.nw.mdm.rig.programs.data.checkout_checkin_rollback.CheckOutCheckInRecordsProgram}
    <li>{@link com.sap.nw.mdm.rig.programs.data.crud.CRUDDataProgram}
    <li>{@link com.sap.nw.mdm.rig.programs.data.crud.bulk.BulkCRUDDataProgram}
    <li>{@link com.sap.nw.mdm.rig.programs.data.keymapping.KeyMappingProgram}
    <li>{@link com.sap.nw.mdm.rig.programs.data.search.SearchProgram}
    <li>{@link com.sap.nw.mdm.rig.programs.data.search.attribute.AttributeSearchProgram}
    <li>{@link com.sap.nw.mdm.rig.programs.data.search.field.FieldSearchProgram}
    <li>{@link com.sap.nw.mdm.rig.programs.data.syndication.SyndicationProgram}
    <li>{@link com.sap.nw.mdm.rig.programs.data.workflow.WorkflowProgram}
    </ul>
    @author Richard LeBlanc
    public class Application {
         private Application() {
    Starts the application and executes a program
    @param args - not required
         static public void main(String[] args) {
              System.out.println("876876");
              Application app = new Application();
              System.out.println("11111");
              Program program = null;
              System.out.println("22222");
    Simply uncomment the line that contains the program you wish to execute and run this class.
    Blob Programs
    //          program = BLOBDataProgram.RETRIEVE_AND_WRITE_IMAGE_TO_FILE;
    //          program = BLOBDataProgram.RETRIEVE_AND_WRITE_PDF_TO_FILE;
    Checkout/Checkin Data Programs
    //          program = CheckOutCheckInRecordsProgram.CHECK_OUT_NEW_CHECK_IN;
    //          program = CheckOutCheckInRecordsProgram.CHECK_OUT_NEW_ROLLBACK;
    //          program = CheckOutCheckInRecordsProgram.CHECK_OUT_EXISTING_CHECK_IN;
    //          program = CheckOutCheckInRecordsProgram.CHECK_OUT_EXISTING_ROLLBACK;
    Create Read Update Delete (CRUD) Data Programs
    //          program = CRUDDataProgram.CRUD_HIERARCHY_TABLE;
              program = CRUDDataProgram.CRUD_MAIN_TABLE;
    //          program = CRUDDataProgram.CRUD_MAIN_TABLE_WITH_FLAT_AND_HIERARCHY_LOOKUP_FIELDS;
    //          program = CRUDDataProgram.CRUD_MAIN_TABLE_WITH_QUALIFIED_LOOKUP_FIELD;
    //          program = CRUDDataProgram.CRUD_MAIN_TABLE_WITH_TAXONOMY_LOOKUP_FIELD;
    //          program = CRUDDataProgram.CRUD_TAXONOMY_TABLE_WITH_ATTRIBUTES;
              System.out.println("333333");
    Bulk Create Read Update Delete (CRUD) data programs
    (many records at once)
    //          program = BulkCRUDDataProgram.BULK_CRUD_MAIN_TABLE;
    KeyMapping Programs
    //          program = KeyMappingProgram.RETRIEVE;
    Search Programs
    //          program = SearchProgram.DRILL_DOWN_SEARCH;
    //          program = SearchProgram.KEYWORD;
    //          program = SearchProgram.MASK;
    //          program = SearchProgram.NAMED_SEARCH;
    //          program = SearchProgram.QUALIFIER;
    Attribute Search Programs
    //          program = AttributeSearchProgram.COUPLED_NUMERIC;
    //          program = AttributeSearchProgram.NUMERIC;
    //          program = AttributeSearchProgram.TEXT;
    Field Search Programs
    //          program = FieldSearchProgram.BOOLEAN;
    //          program = FieldSearchProgram.CURRENCY;
    //          program = FieldSearchProgram.LITERAL_DATE;
    //          program = FieldSearchProgram.LOOKUP;
    //          program = FieldSearchProgram.TEXT;
    Syndication Programs
    //          program = SyndicationProgram.SYNDICATE_PORT;
    Workflow Programs
    //          program = WorkflowProgram.EXECUTE;
              //TODO enter MDS name
              String mdsName = "172.18.139.200"; //the name of the Master Data Server
              String repositoryName = "GDS_1"; //make sure this is the name you use when unarchiving
                                                           //the repository otherwise change it to reflect the name
                                                           //of your repository
              String regionName = "English [US]";
              String userName = "Admin"; //there is an admin user with no password in the provided repository
              String password = ""; //there is an admin user with no password in the provided repository
              System.out.println("67r86587");
              app.start(mdsName, repositoryName, regionName, userName, password, program);
    Establishes a connection to the given server and logs in to the given repository
    with the given logon information and executes the given program
         private void start(String serverName, String repositoryName, String regionName,
                                  String user, String password, Program program) {
              //Create an instance of the MDS
              Server server = Server.getInstance(serverName);
              System.out.println("444444");
              //Get the list of running repositories from the server
              Repository[] repositories = server.getRepositories();
              System.out.println("5555");
              Repository repository = null;
              //Go through the list of repositories and see if any match the
              //given repository name
              for(int i=0, j=repositories.length; i<j; i++){
                   System.out.println("666666bbye");
                   if(repositories<i>.getIdentifier().getName().equals(repositoryName)) {
                        System.out.println(" hello" +repositoryName);
                        repository = repositories<i>;
                        System.out.println(" hi"   + repository);          
              //Get the list of regions for the repository
              RegionProperties[] regions = repository.getRegions();
              RegionProperties region = null;
              //Go through the list of regions and see if any match the given
              //repository name
              for(int i=0, j=regions.length; i<j; i++){
                   System.out.println(" hello");
                   if(regions<i>.getName().equals(regionName)) {
                        region = regions<i>;
                        System.out.println(" 99999" +region);
              //Login to the repository as you would using the Data Manager
              //This creates a user and repository session that are available using
              //repository.getSession()
              repository.login(region, user, password);
              //execute the program from the list above
              program.execute(repository);
              System.out.println(" finally");
              //destroy the session (destroys the repository and user sessions)
              repository.getSession().destroy();
              //close the connection to the MDS
              repository.getServer().closeConnection();
    I am getting the following errors:
    Exception in thread "main" java.lang.IllegalArgumentException: Table with Code 'Products' does not exist in the repository 'GDS_1'
         at com.sap.mdm.internal.schema.RepositorySchemaImpl.getTableSchema(RepositorySchemaImpl.java:136)
         at com.sap.nw.mdm.rig.programs.data.crud.CRUDMainTableRecordProgram.execute(CRUDMainTableRecordProgram.java:33)
         at com.sap.nw.mdm.rig.Application.start(Application.java:211)
         at com.sap.nw.mdm.rig.Application.main(Application.java:157)

    Hi Stephen,
    I assume that a super admin user does not get these error messages, right? If so, this behaviour might come due to missing permissions on PCD objects for the user rubinmd. Please apply note 792370 which explains how to set end user permission on the pcd folder com.sap.ip.collaboration/Rooms
    Kind regards,
    Roland

  • Experiencing a road block trying to execute a SP

    Hello:
    I wrote a test procedure on Oracle that returns a string and a value.
    CREATE OR REPLACE PROCEDURE EBMS.p_CSV_Upload
    P_ERROR OUT VARCHAR2,
    P_ERROR_NO OUT Number
    AS
    BEGIN
    P_ERROR := 'Test Successful';
    P_ERROR_NO := '1';
    END;
    I then tried to execute the SP from VB.Net. Here's the code snippet:
    Dim queryString As String = "p_CSV_Upload"
    Using connection As New OracleConnection(myConnectionString)
    Dim command As New OracleCommand(queryString)
    command.CommandType = CommandType.StoredProcedure
    command.Parameters.Add("P_ERROR", OracleType.VarChar).Direction
    = ParameterDirection.Output
    command.Parameters.Add("P_ERROR_NO", OracleType.Int32).Direction
    = ParameterDirection.Output
    command.Connection = connection
    Try
    connection.Open()
    Dim reader As OracleDataReader = command.ExecuteReader()
    MsgBox((reader.GetString(0)))
    MsgBox((reader.GetInt32(1)))
    Catch ex As Exception
    Console.WriteLine(ex.Message)
    End Try
    End Using
    When I execute, the line, "Dim reader As OracleDataReader =
    command.ExecuteReader()" raises an exception, "{"Parameter 'P_ERROR': No size
    set for variable length data type: String."}
    What am I doing wrong?
    Venki

    I solved it partially. I added the length of the string to the parameter:
    command.Parameters.Add("P_ERROR", OracleType.VarChar,
    100).Direction = ParameterDirection.Output
    I also changed the syntax using DataReader:
    Try
    connection.Open()
    Dim reader As OracleDataReader = command.ExecuteReader
    MsgBox((reader.GetString(0)))
    MsgBox((reader.GetInt32(1)))
    Catch ex As Exception
    Console.WriteLine(ex.Message)
    End Try
    But the line, MsgBox, throws an exception, " {"No data exists for the row or
    column."}
    Any idea?
    venki

  • BI error while trying to execute a report from a role - HELP

    Hi experts, I just started in a new BI project and there were some roles already created, I tried to execute a report in one of these roles (SAP_BW_TEMPLATE-Procurement) and I receive a pop-up window saying: "Windows cannot find "report technical name" . Make sure you typed the name correctly and then try again"
    Does anyone have any idea what this is happening?, how can I fix it?, this is very urgent, any help would be appreciated.
    Thanks
    JC

    Hi Shaimaa
    First of all I'm delighted that the scheduling itself is now working.
    In reply to your other concern regarding lost database connections when attempting to open the scheduled results, a couple of things come to mind.
    Firstly, what version of the application server are you using?
    Have you raised a service request with Oracle? If so, can you tell me what they said.
    Have you recently upgraded to 10.1.2.2 by any chance? If so, you definitely need to be aware that a new preference has come into play which could muck things up. The clue is to look at the SQL that Discoverer is generating. Do you see a line at the top of the code saying NOREWRITE? If so, we need to stop this by doing the following:
    1. Add the following parameter to the preference file in the c:/oracle/BIHome_1/discoverer/util/pref.txt under the [Database] section
    UseNoRewriteHint = 0
    Note: the preference is all one phrase with upper case characters at the beginning of each word
    2. The beginning of the section should look like this:
    [Database]
    UseNoRewriteHint = 0 # speeds performance and stops lost connections
    3. Double click the applypreferences.bat or run applypreferences.sh (if on Unix or Linux) to save the changes.
    4. Restart the Discoverer services and test.
    The next thing that comes to mind is hidden Group Sorts. I've recently had a situation where these can cause a loss of database connections. Do you have any of these in the offerning workbook?
    Mull over the above and let me know your findings.
    Best wishes
    Michael

  • Error while trying to execute program in OBPM Studio workspace

    Hi All,
    I installed OBPM and tried to execute a sample program using workspace. I could see the below error.
    The Process '/SampleProcess#Default-1.0' is not available.
    The Process '/SampleProcess#Default-1.0' is not available. Caused by: Process '/SampleProcess#Default-1.0' not available. Caused by: Engine 'SampleSepVar' cannot process requests.
    The same is the case, when I tried to work on Expense managenenent(the sample application provided by Oracle).
    Can some one help me?
    Thanks in advance
    Lal
    Edited by: Laloo on Apr 18, 2010 8:10 AM

    You're getting this probably because you have errors in your project. Click the "Problems" tab.
    Dan

  • JCO.Server Error while trying to execute a RFC program from SAP

    Hi,
    We are connecting to an external registered server program from SAP via Web Methods.
    The external server program is registered with the SAP Gateway. We have created a TCP/IP RFC destination and are able to connect to the destination successfully via SM59.
    An RFC function is created in SAP and is called using the syntax CALL FUNCTION "/NGN/BAPI_STRE_SEARCH_PROCESS" DESTINATION 'PRDB2B'. We have also handled the COMM_FALIURE and SYSTEM_FALIURE exceptions in the function call.
    We are monitoring the gateway via SMGW and see a connection log to the RFC destination as below
    Number - 10
    LUname - dev01
    TPName - sapgw00
    User - KRAORANE
    Status - CONNECTED
    Symbolic - PRDB2B
    Conversation - 86520353
    Prot - REG
    SAP return code - 0
    CPIC rtn code - 0
    The external program returns results as expected.
    However sometimes the RFC fails and returns the message “JCO.Server could not create server function /NGN/BAPI_STRE_SEARCH_PROCESS”.
    We are not able to figure what exactly is causing this error. Any help will be highly appreciated.
    -Kiran

    Hi,
    Please see the below links..
    JCO.Server Error while trying to execute a RFC program from SAP
    Re: JCO.Servcer could not find server function
    Re: JCO.Server could not find server function 'SET_SLD_DATA'
    /people/kathirvel.balakrishnan2/blog/2005/07/26/remote-enable-your-rfchosttoip-to-return-host-ip-to-jco
    Re: interfacing SAP with an existing java applications
    http://help.sap.com/saphelp_nw04/helpdata/en/47/80f671ee6e4b41b63c0fe46bd6e4f8/content.htm
    http://www.sapgenie.com/faq/jco.htm
    Regards
    Chilla..

  • Trying to execute shell process in Linux

    Hi. I'm trying to execute a simple command in the form of 'bash -c "ls ~root ~"' from within java. I've tried using both the java.lang.Runtime.exec() methods and the java.lang.ProcessBuilder class but both produce the same error message (which I get from the OutputStream of the Process):
    bash: ls ~root ~: command not found
    A command such as 'bash -c "ls"' succeeds, providing the contents of my home directory in the Process's InputStream that I can display from within the program, but one in which there are one or more arguments to 'ls' fails the same way as above.
    It seems that when I have a 'bash -c "ls <arguments>" as the command from within java, bash believes that the entire argument in double quotes ("ls <arguments>") is the command. It doesn't seem to "see" the spaces.
    Would anyone know what I might do in this case? Below is my code:
    import java.util.ArrayList;
    import java.io.*;
    public class ShellCommand {
        public static void main(String args[]) {
            ArrayList<String> shellCommandLine = new ArrayList<String>(3);
            shellCommandLine.add("bash");
            shellCommandLine.add("-c");
            shellCommandLine.add("\"ls ~root ~\"");
            InputStream is = null;
            ProcessBuilder pb = new ProcessBuilder(shellCommandLine);
            pb.redirectErrorStream(true);
            try {
                Process p = pb.start();
                is = p.getInputStream();
                BufferedReader br = new BufferedReader(new InputStreamReader(is));
                String line;
                while ((line = br.readLine()) != null) {
                    System.out.println(line);
                br.close();
            } catch (IOException ie) {
                System.out.println("Error executing external process.\n");
                System.exit(1);
    }

    I have just used Runtime.exec() on        final String[] command = {"bash","-c", "ls ~root ~" };As expected, the stderr stream produces
    ls: /root: Permission denied
    and stdout produces a directory listing of ~ (my home directory).
    You should read the man page for bash -c and read http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html to see how to handle stdout and stderr.

  • URGENT:  ERROR when trying to execute ssoexp.csh script

    Hello,
    I am trying to execute the ssoexp.csh script and I keep getting an error. Here is some background info:
    I am running the ssoexp.csh (UNIX) script from the production server.
    Steps:
    - Set the environment to the source <Portal_home>
    - cd to the directory where the script is located
    - set the ORACLE_SID to my development database (because I previously received an error that indicated to set the ORACLE_SID)
    - ssoexp.csh -s portal30_sso -p ****** -d sspexp.dmp -c oracle.database
    I get the following error:
    SP2-0642: SQL*Plus internal error state 2165, context 4294967295:0:0
    Unable to proceed
    SP2-0642: SQL*Plus internal error state 2166, context 4294967294:2:0
    Unable to proceed
    SP2-0642: SQL*Plus internal error state 2166, context 4294967294:2:0
    Unable to proceed
    SP2-0642: SQL*Plus internal error state 2166, context 4294967294:8:0
    Unable to proceed
    SP2-0642: SQL*Plus internal error state 2166, context 4294967294:3:0
    Unable to proceed
    SP2-0152: ORACLE may not be functioning properly
    LRM-00109: could not open parameter file 'so_export.par'
    LRM-00113: error when processing file 'so_export.par'
    EXP-00019: failed to process parameters, type 'EXP HELP=Y' for help
    EXP-00000: Export terminated unsuccessfully
    PLEASE HELP!!!
    Thank you,
    Claudia Zanni

    Hi Priya,
    1.The entries for the initialization in the BW system are contained in the RSSDLINIT table for the DataSource/source system combination. Compare these with the entries in the ROOSPRMSC table in the OLTP system.
    2. If there are NO entries in the RSSDLINIT table in BW, use transaction RSA7 to delete the delta queue for this DataSource/BW application combination in the source system (OLTP).
    3.Once you deleted all the entries,In Infopackage scheduler option,delete all the init selections to proceed further.
    In which system u r going to do this.....Quality or production.(Better,you check with basis to delete the entries.)
    Regards
    Kumar

  • Getting error -2147221219 when trying to execute OpenMsgStore function on Exchange 2007 Server

    Hello,
      I am getting error -2147221219 when trying to execute OpenMsgStore API on Exchange Server 2007. I have created the Public Folder also on the same server. Also, I have installed the Microsoft Exchange Server MAPI Client and Collaboration Data Objects 1.2.1 on the server. Please do let me know if our previous MAPI / CDO applications would work for Exchange Server 2007 in this environment?
      Also, while executing the Microsoft Exchange MAPI editor when I click on Session -> Logon and Display Store Table I see Err:0x8004010F=MAPI_E_NOT_FOUND in the row type column. The MAPI initialization is successful and in the Display Name I get Public Folders and Mailbox - Administrator. Please let me know how to I make work the MAPI Editor.
      Thanks for your time and cooperation !!
    Thanks & Regards,
    Neel

    Answers in social.msdn.microsoft.com/Forums/en-US/3a2e9489-6137-42fb-95d1-bebcfe2ea138 may solve your problem.
    PR_PROFILE_CONNECT_FLAGS = 0 will also work.

  • After downloading the new Firefox 9.0.1 and trying to execute the file, I get a message "File Corrupt" and cannot install the new version.

    I always update Firefox and have the latest 8.0. This had never happened before. I tried to execute it twice, but still got the same message. I have Windows XP.

    See Troubleshooting issues with iTunes for Windows updates.
    For downloading issues see the further information area and use a different browser and/or the direct links.
    tt2

  • Error when tried to execute ODI interface for Essbase

    Hi,
    I am trying to load metadata from a file to Essbase. Bur when i am trying to execute the interface, i am getting an error. It reads as follows
    Cannot start execution
    The sourcedatatype is null for the column : ParentName and the technology: Hyperion essbase.

    Hi John,
    I have gone ahead and deleted the Hyperion essbase technology and imported it similar to Hyperion Planning. Now i am able to see only 3 datatypes. Date, String and Numeric.
    I have setup all the connections and created the interface also.
    But when i executed it i got the following error
    org.apache.bsf.BSFException: exception from Jython: Traceback (innermost last):
    File "<string>", line 35, in ?
    AttributeError: class 'com.hyperion.odi.common.ODIConstants' has no attribute 'READER_TYPE'
         at org.apache.bsf.engines.jython.JythonEngine.exec(Unknown Source)
         at com.sunopsis.dwg.codeinterpretor.k.a(k.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.scripting(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execScriptingOrders(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execScriptingOrders(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSqlC.treatTaskTrt(SnpSessTaskSqlC.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java)
         at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java)
         at com.sunopsis.dwg.cmd.DwgCommandSession.treatCommand(DwgCommandSession.java)
         at com.sunopsis.dwg.cmd.DwgCommandBase.execute(DwgCommandBase.java)
         at com.sunopsis.dwg.cmd.e.i(e.java)
         at com.sunopsis.dwg.cmd.g.y(g.java)
         at com.sunopsis.dwg.cmd.e.run(e.java)
         at java.lang.Thread.run(Thread.java:595)
    What is the mistake i have done. Please let me know

  • Trying to execute a procedure which is using VARRAY as a parameter

    Hi Gurus,
    I am trying to execute a procedure having an array as input.
    However I am getting an error during execution.
    Can you please help me on how to execute a procedure having an array as input?
    create or replace type type_a as table of number(10,0);
    Script:
    declare
    txn_id type_a
    begin
    txn_id type_a()
    txn_id(1) := 516963065;
    procedure_1(emp_id =>1001, txn_id)
    end;

    Try this:
    SQL> CREATE OR REPLACE TYPE type_a AS TABLE OF NUMBER (10, 0)
      2  /
    Type created.
    SQL> CREATE OR REPLACE PROCEDURE procedure_1 ( emp_id NUMBER, p_txn type_a)
      2  AS
      3    i          PLS_INTEGER;
      4  BEGIN
      5    DBMS_OUTPUT.ENABLE (1000000);
      6    FOR i IN 1 .. p_txn.COUNT
      7    LOOP
      8      DBMS_OUTPUT.put_line (TO_CHAR ( i, '00.B') || emp_id || ' = ' || p_txn (i));
      9    END LOOP;
    10  END;
    11  /
    Procedure created.
    SQL> DECLARE
      2    txn_id   type_a;
      3  BEGIN
      4    txn_id      :=
      5      type_a (
      6              516963065
      7            , 1963065
      8            , 2963065
      9            , 3963065
    10             );
    11    procedure_1 ( 1001, txn_id);
    12  END;
    13  /
    01.1001 = 516963065
    02.1001 = 1963065
    03.1001 = 2963065
    04.1001 = 3963065
    PL/SQL procedure successfully completed.:p

  • Problemas when trying to execute a stored procedure

    hi.
    I'm trying to execute a stored procedure but i'm receiving this error:
    WSIF JCA Execute of operation 'myoperation' failed due to: Could not create/access the TopLink Session.
    This session is used to connect to the datastore. [Caused by: Connection Cache with this Cache Name is Disabled]
    ; nested exception is:
    ORABPEL-11622
    Could not create/access the TopLink Session.
    This session is used to connect to the datastore. [Caused by: Connection Cache with this Cache Name is Disabled]
    See root exception for the specific exception. You may need to configure the connection settings in the deployment descriptor (i.e. $J2EE_HOME/application-deployments/default/DbAdapter/oc4j-ra.xml) and restart the server. Caused by Exception [TOPLINK-4002] (Oracle TopLink - 10g Release 3 (10.1.3.4.0) (Build 080602)): oracle.toplink.exceptions.DatabaseException
    Internal Exception: java.sql.SQLException: Connection Cache with this Cache Name is DisabledError Code: 17142.
    My bpel was working before and now i can't figure out what is going wrong.
    Thank you.

    'exec' is an sqlplus directive. If you run this query in PHP, try:
    $query = "BEGIN
    load_image('distribuido.JPG', '1');
    END;";
    (you may have to remove the ; after 'END')

  • While trying  to execute the Webservice in webdynpro giving Internal server

    Hi  All
                 I am trying to execute a Webservice in Webdynpro but it is giving me
      an error : "Internal Server Error"  , why I am not understanding.
      plese below the piece of code what I wrote.  Please reply at the very earliest.
    //@@begin onActionGo(ServerEvent)
         Request_ZDUMMYPortType_ZDUMMY req = new Request_ZDUMMYPortType_ZDUMMY();
         wdContext.nodeRequest_ZDUMMYPortType_ZDUMMY().bind(req);
         req._setUser("xxxxx");
         req._setPassword("******");
        wdContext.nodeRequest_ZDUMMYPortType_ZDUMMY().currentRequest_ZDUMMYPortType_ZDUMMYElement().setP1("");
         wdThis.wdGetDummyModelCustController().executeRequest_ZDUMMYPortType_ZDUMMY();
    regards
    jalandhar.

    Hi Sudip
                  I am using general webservice model only  not adaptive.
                 please reply me asap
    regards
    jalandhar
    What kind of model you used to import the web service? If you used adaptive
    Webservice model then you require to configure the end point destination in Visual Admin.

  • I'm trying to execute the file sqlplus /nolog @statistics.txt sapuser as per the sap note 0001020260 ihow can i find the sapuser

    i'm trying to execute the file sqlplus /nolog @statistics.txt <sapuser> as per the sap note 0001020260 ihow can i find the sapuser

    KANNAN VENKATACHALAM wrote:
    brconnect -u / -c -f stats -t all -- what it will do exactly ?
    Would you mind to read the BR*Tools documentation?
    it is located on the oracle community (same place as this forum) it is quite a big document.
    AFTER you have read it, if you have any problem understanding what that command does exactly you are welcome to ask again

Maybe you are looking for

  • Search for G/L account in shopping cart

    Hi Experts, I have a question regarding default data in the search function in shopping cart. When I create a shopping cart, I don't have any data defaulted into the field for G/L account. We would like the user to open the 'area' cost assignment and

  • Facelets: Issue with   and other special characters

    We are trying to use facelets for our JSF based project. If we use   in the included jsf pages these are not rendered properly in the resultant page. The resulting page eats all the   layout file: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transiti

  • Re: Bootmanager is missing on Satelite A210-15Y with W Vista

    Hi everyone I have a serious problem with my Notebook Satellite A210-15Y. For two weeks I bought it. Yesterday without warnings I had opened just one Window for Internet explorer and suddenly I received around 20 windows of IExplorer. I stopped all t

  • Screen just goes black

    My wife uses the original iPad and she'll be reading an article, or looking at a website ... when all of a sudden ... the screen goes black!  Then, after a moment, the screen goes back to the home screen.  She tells me it doesn't happen when she is p

  • Latest Skype is bad

    I just had to upgrade my Skype to latest version and am not impressed. Firstly it saves all the files I get now to a directory which is dam hard to get to like user/appdate/.... Why on earth would they take away the ability to set to which folder you