Error in Code Different Ways

Hi All,
I tried in my ways but iam unable to resolve it.
Pls help me...
I have code like this... but the total number of records fetched is shown as 0. even though i have records in my database.
I write the code in am as follows
public void dosome( int INVID)
BatchEOVOImpl OAVO= getBatchEOVO1();
String test= "NULL";
String cint=Integer.toString(INVID);
System.out.println("Find Vo Object");
System.out.println("Vo object is"+" "+OAVO);
System.out.println("Query is " +""+OAVO.getQuery());
OAVO.setWhereClause(null);
OAVO.setWhereClauseParams(null);
OAVO.setWhereClauseParam(0,cint);
OAVO.executeQuery();
int fetchedrowcount=OAVO.getFetchedRowCount();
System.out.println("Value of fetchedrowcount"+" "+fetchedrowcount);
if(fetchedrowcount>0)
int savedrangestart=OAVO.getRangeStart();
int savedrangesize=OAVO.getRangeSize();
OAVO.setRangeStart(0);
OAVO.setRangeSize(fetchedrowcount);
try
for(int i=0;i<fetchedrowcount;i++)
Row row=OAVO.getRowAtRangeIndex(i);
if(OAVO != null)
OARow xrow = (OARow)OAVO.getCurrentRow();
System.out.println("Received Row"+" "+xrow);
test=(String)xrow.getAttribute("DESCRIPTION")+"";
System.out.println("Received Attribute Value"+""+test);
catch (Exception e)
And i call this method in CO.
Thanks
Vijay

Hi
Please right click on AM and click test
and see wether the view object created is retrieving rows or not in test.
if the view object is retrieving rows
plese try vo.setwhereclause instead of set whereclause paramremove., and also remove bind variable in VO
give the alias name in where claus like this
vo.setwhereclause("alias_name="+variable);

Similar Messages

  • Error vendor code 942 when connecting with different user

    Hello,
    I'm using CR2013 with SP1 and Oracle 11r2.
    I created a report to be used in several applications. Each application access the database with a different username.
    Each username (userapp1, userapp2...) was created by a DBA user giving grants to access to all tables needed to run the report.
    What is happening is when I run the report through the application using DBAuser credencials everything runs smoothly.
    But when I try to run the report using the "userapp" credentials I get the error vendor code 942.
    In the Crystal Reports I can use any credentials (DBAuser ou userapp) that works fine, but through the application I always get this error.
    Anyone can help?
    Thanks in advance
    Luis

    Hi Luis
    What sort of an application is this? One you created? One obtained from a 3rd party vendor? What CR SDK does the app use? What language was the app coded in?
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada
    Follow us on Twitter

  • Different Ways of Code

    Can I build a query in a different way without using alias tables of position,physical Quantity in the WEBI report level.
    (SELECT   DISTINCT pp2.trade subtrade,
                                             pq2.shipment subshipment,
                                             pp2.POSITION subposition,
                                             pq2.measure
                                        FROM counterparty cp,
                                             position pp,
                                             physicalquantity pq,
                                             physicalquantity pq2,
                                             position pp2
                                       WHERE pp.POSITION = pq.POSITION
                                         AND pq.quantitystatus = 'ACTUAL'
                                         AND pq.shipment = pq2.shipment
                                         AND pp2.POSITION = pq2.POSITION
                                         AND pq2.quantitystatus = 'ACTUAL'
                                         AND (pp.position <> pp2.position OR pp2.position IS NULL)
                                         AND pp.counterparty = cp.counterparty(+)) 

    My questions:
    Why are you using "position pp" and "position pp2"?
    Why are you using "physicalquantity pq" and "physicalquantity pq2"?
    Are you using custom SQL?   "Edit query" / SQL / use Custom SQL
    If you really need this like it is, I think you can change this sentence a little
    Other way of doing this is: In the "Edit Query"
    - Create 2 queries, one for position and other for physicalquantity
    - Select key figures and dimensions/caracteristics from tables then in the "Query filters" add attributes for selection, this way you will turn this code more simple.
    Finally go to "Edit report" and select "Merge dimensions"
    Hope this helps

  • TS3212 every time i try to download itunes my computer comes ups up with an error code half way through  down load error code 2330

    every time i try to download itunes my computer comes ups up with an error code half way through  down load error code 2330

    That one's consistent with disk/file damage. The first thing I'd try with that is running a disk check (chkdsk) over your C drive.
    XP instructions in the following document: How to perform disk error checking in Windows XP
    Vista instructions in the following document: Check your hard disk for errors
    Windows 7 instructions in the following document: How to use CHKDSK (Check Disk)
    Select both Automatically fix file system errors and Scan for and attempt recovery of bad sectors, or use chkdsk /r (depending on which way you decide to go about doing this). You'll almost certainly have to schedule the chkdsk to run on startup. The scan should take quite a while ... if it quits after a few minutes or seconds, something's interfering with the scan.
    Does the chkdsk find/repair any damage? If so, can you get an install to go through properly afterwards?

  • A serious error has occured......a bazillion different ways.

    Hello, I've seen many posts on the web about the infamous Premiere Pro "A Serious Error has occured and Premiere needs to close the program..." I've encountered this error doing numerous different things while editing my project and can never seem to pinpoint the direct cause of my error. I received the error while:
    Playing footage on sequence using scrubbing
    inserting a photo into the timeline
    adding keyframes to a clip
    duplicating a sequence
    This is what I am working on:
    MAC Book Pro - Processor 2.4 GHz Intel Core i7
    Memory - 16GB 1600 MHz DDR3
    Graphics  NVIDIA GeForce GT 650M 1024 MB
    Software  OS X 10.8.4 (12E55)
    Adobe CS6 - Premiere Pro Version 6.0.2
    I have numerous amount of photos that are never more than 700KB and all are either .jpg or .png. I also have .mp4 video files I am working with. I never had any issues importing the files. I worked fine on the project for a few days. Then the errors started to come.
    I am pulling my hair out because each time I have to go back to an earlier version of my project to re-edit it. I'm never going to get this done at this rate. Does anyone have any techincal suggestions? Will Adobe be coming out with an update for MAC to fix this any time soon?????????  Thanks.

    If GPU acceleration is enabled, try disabling it. That worked for me on a very similar laptop. A developer familiar with problems in this area told me that restarting the computer resolves the problem in many cases.
    Incidentally, with the crash that I encountered, we have not yet determined whether the problem is rooted in our software our on the hardware side. We're investigating in collaboration with the hardware manufacturer to determine exactly that.

  • Challenge: Different ways to crash the JVM.

    This is a challenge to find different ways to crash the JVM with code written in Java.
    For starters: Mis-use of the Unsafe class.
    Field field = Unsafe.class.getDeclaredField("theUnsafe");
    field.setAccessible(true);
    Unsafe unsafe = (Unsafe) field.get(null);
    unsafe.getObject(null, 0L); // or many variations on methods in this class.

    Although I presume you mean the latest JVM (6u11), I can reproduce a crash with 1.5.0_05 fairly frequently using the SQL tool "squirrel" ( [http://squirrel-sql.sourceforge.net/]) during startup (while the splash screen is visible):
    # An unexpected error has been detected by HotSpot Virtual Machine:
    #  SIGSEGV (0xb) at pc=0xb7a02c41, pid=9019, tid=2651868080
    # Java VM: Java HotSpot(TM) Server VM (1.5.0_05-b05 mixed mode)
    # Problematic frame:
    # V  [libjvm.so+0x39ec41]The crash is not reproducible on 6u10 (haven't tried it with 6u11), so I don't know how relevant this tidbit actually is but would be glad to check into it with a few other JVMs. For what it's worth, the above happens on RH Enterprise Linux (2.6.9 kernel, smt, Xeon CPU).

  • 2 different ways to setup IPSec ?

    Hello,
    I am currently trying to setup IPSec tunnel between a pfSense router and a Windows Server 2008R2 (The windows server is located behind a router with NAT enable).
    First of all, I found two different ways to configure IPsec on Windows :
    1) Through Windows Firewall with advanced Security
    2) Through IPSec snap-in into MMC.
    Which one should I use ?
    Well, anyhow I got some troubles to negotiate  phase1. By analyzing packets, it turns out that Windows server always return a NO_PROPOSAL_CHOSEN error code.
    My settings for phase1 (on both sides):
    Authentication  method: PSK
    Negotiation mode: main
    Encryption: 3DES
    Hash: SHA1
    DH Key group : 2 (1024)
    Lifetime: 28800
    (NAT-T Enabled on pfSense)
    Finally, I noticed that it is possible to define peer identifiers on pfSense. Is it possible to do the same on the windows server or does it automatically use the IP addresses as peer identifiers ?
    Any help would be greatly appreciated.
    Best regards,

    Hi bibibubu1,
    The 2008r2 can’t establish an IPsec tunnel behind NAT-T have a known issue, please confirm the following KB meet your environment then install the hotfix. Another possible
    is you have select the matching Encryption schemes.
    You cannot establish an IPsec tunnel to a computer that is running Windows 7 or Windows Server 2008 R2 through a NAT device
    http://support.microsoft.com/kb/2523881
    I’m glad to be of help to you!
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • Is there a different way to open a cursor for a ref cursor procedure?

    hello everybody
    i have two cursors, cur_a and cur_b, declared somewhere else in my application.
    These two cursors have the same fields, in the same order, and i have to treat both in the same way. So i wrote a routine that gets as input a ref cursor based on the cur_a rowtype, and i am trying to use this routine for both.
    The problem is that i am not able to open outside the routine the cursor in a different way than usual...
    the common method is :
    declare curs ref cursor ...
    begin
    open curs for (select *...)
    end;
    instead i would like to obtain something different
    declare curs ref cursor ...
    begin
    open curs for cur_a
    end;

    hi
    thanks for answering
    i wanted just to give a better idea, anyway you were near to get it.
    the only difference is that the two cursors are not written in dynamic sql, just like strings, but are real cursors.
    anyway, this is the version of the package i need, but i am not able to compile
    (your original code is commented and immediately below there is my code)
    CREATE OR REPLACE PACKAGE BODY mytest
    IS
    --cur_a VARCHAR2(200) := 'SELECT dummy FROM DUAL';
    CURSOR cur_a
    IS
    SELECT dummy
    FROM DUAL;
    --cur_b VARCHAR2(200) := 'SELECT ''fred'' FROM DUAL';
    CURSOR cur_b
    IS
    SELECT 'fred' fred
    FROM DUAL;
    TYPE t_cur_a IS REF CURSOR
    RETURN cur_a%ROWTYPE
    --PROCEDURE routine_a_b (p_cur SYS_REFCURSOR) IS
    PROCEDURE routine_a_b (p_cur t_cur_a)
    IS
    v_x VARCHAR2 (10);
    BEGIN
    LOOP
    FETCH p_cur
    INTO v_x;
    EXIT WHEN p_cur%NOTFOUND;
    DBMS_OUTPUT.put_line (v_x);
    END LOOP;
    END;
    PROCEDURE doit
    IS
    --v_curs SYS_REFCURSOR;
    v_curs t_cur_a;
    BEGIN
    NULL;
    -- open v_curs FOR cur_a;
    OPEN v_curs FOR cur_a;
    routine_a_b (v_curs);
    CLOSE v_curs;
    -- open v_curs FOR cur_b;
    -- routine_a_b(v_curs);
    -- close v_curs;
    END;
    END;
    the error is:
    cursor 'V_CURS' cannot be used in dynamic SQL OPEN statement
    i did read that if use weak ref cursor, it could work, so i declare the ref cursor type in this way:
    TYPE t_cur_a IS REF CURSOR;
    instead than
    TYPE t_cur_a IS REF CURSOR
    RETURN cur_a%ROWTYPE
    what i get is another error (in the open cursor command)
    PLS-00382: expression is of wrong type....
    but if i replace
    OPEN v_curs FOR cur_a;
    with
    OPEN v_curs for select dummy from dual;
    it works... but i already knew it.. :-)
    anyway, i used a work around to resolve it, so it's just philosophy

  • Two separate versions of the same file corrupted in different ways...

    I was working on a Photoshop CS4 file last night that was created in CS4 and has only been opened on this machine in CS4. I saved the file and closed Photoshop. When I open the file today, all my layers are gone, flattened into one Background layer, and the image looks like colored TV static. On top of that, the separate, older version of this file with a different name (created earlier in the week on the same machine in the same CS4) will not open at all - I get the error message, "Could not complete your request because the file is empty" and the file size has mysteriously shrunk to 76 KB from 20+ MB. What happened?! I'm guessing these files are corrupted beyond recovery, but why and how did this happen? Has anyone had this or a similar problem? I want to know how to prevent this from happening in the future. Please help! Thank you. =)

    Thanks for the suggestion, Chris.
    Same issue, new question - don't ask me why I did this, but while both Photoshop and the now corrupted file were open, I changed the name of the folder containing the file, then continued to save the open version of the file without first closing it and reopening it from the newly renamed folder. Could this have caused both files in that folder to become corrupted in different ways? The other file that gives me the "file is empty" error was not open at the time, but it was in that folder. I'm thinking maybe by changing the path to the files while Photoshop was running, that could have triggered this. ?? I have 3 1TB internal drives raided to read as 1 drive, so I'm really hoping that one of these disks is not dying on me as you suggested. I was also backing up an external drive using BackBlaze when this all occurred - any possible connection? How can I find out if one of my three raided drives (and which one) might be going bad?
    Thanks!!

  • Error Transaction Currency Differs - Goods Receipt PO

    Hi
    I am trying to creat a goods receipt po for a overseas order which is in US $
    (System Currency in AUS $)
    When I try to add the Goods Receipt po i get the following error
    Transaction currency differs from account or BP currency
    [Goods Receipt PO - Rows- warehouse Code][line:0 ]
    [Message 173-57]
    Do u have any idea why am i getting this error.
    thanks for the help in advance.
    Sanjaya

    Hi Sanjaya,
    Me again, I will be more detailed this time.
    The SO/PO will not be a problem as there is no Journal Entry created for those documents. For a Goods Receipt there is a Journal Entry created.
    The Journal will debit Stock and credit Allocation Cost account.
    The checks to be done:
    - The Business Partner must be set to either multi currency or the same currency as the document.
    - On the Item Master Data -> Inventory/Stock Data tab, check if the Item set to:
    Set G/L Accounts by: WareHouse, Item Group or Item Level.
    If it is set by Warehouse check the warehouse on the row level, if it is not already displayed use form settings to display it. Open it and check the above mentioned accounts. In this case they must be set as multi currency.
    If it is set to Item Group please check the Item Group on the Item Master Data of all the Items involved in the Goods Receipt PO. Go to these Item Groups and check the above mentioned accounts. Again, they need to be set to multi currency.
    If it is set to Iem Level, please use the Form Settings to display the allocation cost account and the stock account. The accounts will be displayed on the Inventory/Stock Data tab for each warehouse row. make sure that the accounts here are multi currency.
    If it still does not work, in the Goods Receipt PO use form settings to display the GL account on the row level. Please make sure that for every row the account that is displayed is set to multi currency.
    If there should still be problems start checking the tax accounts, after that if they are using additional expenses check those accounts as well.
    This should hopefully solve it.
    Thanks,
    Jesper

  • I have a MacBook Pro, Matshita UJ-857E while recording music my drive reported an error: Sense Key=HARDWARE ERROR Sense Code=0x03,0x01 I have no idea what this means, and now my cd burner/player won't work. can someone help me fix this problem?

    Please Help me. I am having problems with my MATSHITA UJ-857E DVD-R burner/writer. I burned 4 cd's and then it stopped working.
    I can select my songs, and then it asks for a blank disc. It starts preparing to write the disc,then it says,"
    The drive reported an error: Sense Key= HARDWARE ERROR Sense Code= 0x09,0x01 TRACKING SERVO FAILURE.
    Can anyone give me some advice on how to fix it or what this means because I have no idea what it is talking about or how to begin to fix the problem?

    tanyafrombakersfield wrote:
    It starts preparing to write the disc,then it says,"
    The drive reported an error: Sense Key= HARDWARE ERROR Sense Code= 0x09,0x01 TRACKING SERVO FAILURE.
    This is an error reported by the optical drive's firmware. The tracking servo is the servomechanism which guides the laser pickup along the track on the optical disc. The error means that the servo couldn't do its job within the programmed parameters. What it doesn't say is why.
    You have to be very precise as to when this error occurs. If it occurs as you wrote, while it "starts preparing to write the disc", and not when it has actually began to burn, then it's likely that the drive has gone bad and needs to be replaced.
    There are other possibilities, so you should check them, but they would be more likely if the error occurred after the drive began to write. OrangeMarlin has suggested two options -- try a different brand of CD or DVD, and try cleaning the lens.

  • Error in Webservice Call HTTP error (return code 404, message conn failed)

    Hi
    We wish to call  a standard EP7 webservice through ABAP.
    When we try to create consumer proxy , we get the following error.
    HTTP error (return code 404, message "conn failed")
    Message no. SPRX090
    ==> Display Error Document
    If you want to generate a proxy for an external WSDL document by specifying a URL, check that the proxy settings of the system are correct (transaction SICF - Client - Proxy Settings). If you want to generate a proxy for an XI Repository object, check the connection to the Enterprise Services Builder as follows:
    Check List for Setting Up a Connection to the Service Repository
    1. The address of the Enterprise Services Repository must be known in the SAP system
    Check with report SPROX_CHECK_IFR_ADDRESS
    The address is taken from the following parameters in the exchange profile ('Connections' section):
    com.sap.aii.connect.repository.name: Server (for example,pwdf0436)
    com.sap.aii.connect.repository.httpport: Port (for example, 1080)
    com.sap.aii.connect.repository.contextroot: Root (for example,rep)
    The logon data is also read from the exchange profile ('ApplicationSystem' section):
    com.sap.aii.applicationsystem.serviceuser.name: User
    com.sap.aii.applicationsystem.serviceuser.pwd: Password
    As an alternative to using the exchange profile, you can maintain the RFC destination SAP_PROXY_ESR. If this RFC destination is maintained it will be used by the proxy generation in place of data from the exchange profile to access the Service Repository. In this case, the Exchange Profile will even not be read.
    The RFC destination has to be set up using transaction SM59 and should look like this:
    RFC Destination: SAP_PROXY_ESR
    Connection Type: G (HTTP Connection to External Serv)
    Description1: ESR for Proxy Generation
    Target Host: esr_host
    Service No: 1080
    Path Prefix: rep
    Logon and Security:
    Basic Authentication: active
    User: esr_user
    Password: esr_password
    2. The HTTP Framework of the Web Application Server must function
    Check with report SPROX_CHECK_HTTP_COMMUNICATION
    If necessary, contact your system administrator. Please be aware of the fact, that the HTTP framework is depending on the application server. Thus the result of the report may differ for different application servers.
    3. Proxy generation must interpret the data of the Enterprise Services Repository correctly
    Check with report SPROX_CHECK_IFR_RESPONSE
    you can also login in dev and go to Xn se91
    enter msg id SPRX and msg no 090
    select the message and click on long text..
    you get the same message in a formatted manner..
    How to get rid of this ?
    Regards
    Rajendra

    Hi
    we have given the correct path as we have tested the webserive from
    other technology (.net) by providing the same path.
    regards
    Rajendra

  • Different ways of passing procedure's paramters

    Hi,
    In the following example, I am calling the procedure p_test in different ways.
    I understood from reading examples, that we can pass parameters using the syntaxe : " Name of the parameters => Value".
    But I did not find anything official about it.
    I'm just looking for Oracle Documentation where it is explained the syntaxe " Name of the parameters => Value".
    CREATE OR REPLACE procedure test_call
    is
    procedure p_test(I_FIRST IN NUMBER DEFAULT 1, I_SECOND IN NUMBER DEFAULT 2 )
    is
    begin
    dbms_output.put_line ('-----------------');
    dbms_output.put_line ('FIRST:'||I_FIRST);
    dbms_output.put_line ('SECOND:'||I_SECOND);
    end;
    begin
    p_test(10,11);
    p_test(10);
    p_test();
    p_test(I_FIRST => 100);
    p_test(I_SECOND => 200);
    p_test(I_SECOND => 2000, I_FIRST => 1000);
    exception
    when others then
    ks_Error.log();
    end;
    /

    note that the => is illegal in sql in 10g and before
    select f(x=>1) from dual;
    ERROR at line 1:
    ORA-00907: missing right parenthesisbut it will probably be possible in 11g

  • Different ways to shutdown and startup instance in 10g

    I have just installed 10g on my win2003 server. There seems to be 3 different ways to shutdown / startup an instance in 10g.
    1. via SQLPLUS (how its always been) with shutdown and startup commands
    2. via the new OEM Web interface
    3. Start / Stop the NT Service for the instance
    questions:
    - Did I miss anything other methods?
    - how come OEM ask for O/S login as well as DB login, when shutdown or startup? but via SQLPLUS I only have to login using as DBA? different level of security?
    - When shutdown via either SQLPLUS or OEM, the NT service is still shown as "started"? so does this mean that the NT service is more than the oracle instance???
    Thanks
    Clo

    how come OEM ask for O/S login as well as DB loginWith SQL*Plus, you are already logged into the Operating System. There is a OS session in progress. With OEM web interface, it has to first start a OS session and then connect to Oracle using Oracle credentials supplied to actually shutdown the DB.
    the NT service is still shown as "started"? The difference between NT service started or not started (given that the database was already shutdown) will be:
    When NT service is started but the DB is shutdown, your users will get this error message:
    Enter user-name: scott
    Enter password:
    ERROR:
    ORA-01034: ORACLE not available
    ORA-27101: shared memory realm does not exist
    Enter user-name:When NT service is stopped, your users will get this error message:
    Enter user-name: scott
    Enter password:
    ERROR:
    ORA-12560: TNS:protocol adapter error
    Enter user-name:The NT service needs to be running for you to be able to do a STARTUP or SHUTDOWN on the database. You will NOT be able to STARTUP if the NT service was not running (STARTUP will not start your NT service automatically).

  • To get notification with error's code

    Hi everyone,
    Database Control
    OMS:
    OMS_VERSION=10.1.0.4.0
    EMAgent10.1.0.4.1
    When some error happend in Database, by Notification I just get like this on mail:
    Name=test
    Type=Database Instance
    Host=dba
    Metric=Generic Alert Log Error Status
    Timestamp=29.04.2008 12:35:03 GMT+05:00
    Severity=Critical
    Message=2 distinct types of ORA- errors have been found in the alert log.
    Rule Name=Database Availability and Critical States
    Rule Owner=SYSMAN
    but in message just "distinct types of ORA- errors" without code of error like ORA-01550 or any other kind of code.
    Is it possible to get distinct code of error in message through Notification ?
    Will be glad to any helpfull advice.

    DBMS Direct,
    But in the post How to be notified for all ORA- Errors recorded in the alert.log file
    11iuser complain about that why he/she just get error number without any explain of arrised error.
    In my situation I just get "distinct types of ORA- errors" without even any error code.
    Perhaps I need to change something in emoms.properties or emd.properties.
    By the way I select Message format -- Long Format
    Sorry for my poor English

Maybe you are looking for