Problem with XSU when trying to execute pl/sql package returning ref cursor

Hi,
I'm exploring xsu with 8i database.
I tried running sample program which I took from oracle
documentation. Here is the details of these.
------create package returning ref cursor---
CREATE OR REPLACE package testRef is
     Type empRef IS REF CURSOR;
     function testRefCur return empRef;
End;
CREATE OR REPLACE package body testRef is
function testRefCur RETURN empREF is
a empREF;
begin
OPEN a FOR select * from emp;
return a;
end;
end;
---------package successfully created-----
Now I use java program to generate xml data from ref cursor
------------java program ----------
import org.w3c.dom.*;
import oracle.xml.parser.v2.*;
import java.sql.*;
import oracle.jdbc.driver.*;
import oracle.xml.sql.query.OracleXMLQuery;
import java.io.*;
public class REFCURt
public static void main(String[] argv)
throws SQLException
String str = null;
Connection conn = getConnection("scott","tiger"); //
create connection
// Create a ResultSet object by calling the PL/SQL function
CallableStatement stmt =
conn.prepareCall("begin ? := testRef.testRefCur();
end;");
stmt.registerOutParameter(1,OracleTypes.CURSOR); // set
the define type
stmt.execute(); // Execute the statement.
ResultSet rset = (ResultSet)stmt.getObject(1); // Get the
ResultSet
OracleXMLQuery qry = new OracleXMLQuery(conn,rset); //
prepare Query class
     try
qry.setRaiseNoRowsException(true);
qry.setRaiseException(true);
qry.keepCursorState(true); // set options (keep the
cursor alive..
     System.out.println("..before printing...");
while ((str = qry.getXMLString())!= null)
System.out.println(str);
     catch(oracle.xml.sql.OracleXMLSQLNoRowsException ex)
System.out.println(" END OF OUTPUT ");
qry.close(); // close the query..!
// qry.close(); // close the query..!
// Note since we supplied the statement and resultset,
closing the
// OracleXMLquery instance will not close these. We would
need to
// explicitly close this ourselves..!
stmt.close();
conn.close();
// Get the connection given the user name and password..!
private static Connection getConnection(String user, String
passwd)
throws SQLException
DriverManager.registerDriver(new
oracle.jdbc.driver.OracleDriver());
Connection conn = DriverManager.getConnection
("jdbc:oracle:thin:@xxxx:1521:yyyy",user,passwd);
return conn;
when I ran the program after successful compilation,I got the
following error
==========
Exception in thread "main" oracle.xml.sql.OracleXMLSQLException:
1
at oracle.xml.sql.core.OracleXMLConvert.getXML(Compiled
Code)
at oracle.xml.sql.query.OracleXMLQuery.getXMLString
(OracleXMLQuery.java:263)
at oracle.xml.sql.query.OracleXMLQuery.getXMLString
(OracleXMLQuery.java:217)
at oracle.xml.sql.query.OracleXMLQuery.getXMLString
(OracleXMLQuery.java:194)
at REFCURt.main(Compiled Code)
============================
Can anybody tell me why I'm getting this error.Am I missing any
settings?
thanks

We are using 8.1.7 Oracle db with latest xdk loaded.
am I missing any settings?

Similar Messages

  • Weird problem with GDB (it tries to execute /bin/baxh)

    Hello!
    I've installed gdb (v7.3.1) on my desktop and it doesn't work for me... Output:
    [goofy@goofy-desktop projekt-czk]$ gdb MapaDASR
    GNU gdb (GDB) 7.3.1
    Copyright (C) 2011 Free Software Foundation, Inc.
    License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
    This is free software: you are free to change and redistribute it.
    There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
    and "show warranty" for details.
    This GDB was configured as "x86_64-unknown-linux-gnu".
    For bug reporting instructions, please see:
    <http://www.gnu.org/software/gdb/bugs/>...
    Reading symbols from /home/goofy/Projects/projekt-czk/MapaDASR...(no debugging symbols found)...done.
    (gdb) run
    Starting program: /home/goofy/Projects/projekt-czk/MapaDASR
    Cannot exec /bin/baxh: Nie ma takiego pliku ani katalogu. (<-- translation: No such file or directory)
    During startup program exited with code 127.
    (gdb) q
    I use the same version on my laptop without any problems... Any idea? I tried to reinstall package.
    Last edited by goofy (2011-11-23 21:32:55)

    karol wrote:
    Starting program: /home/goofy/Projects/projekt-czk/MapaDASR
    Is it a bash script? That's in the first line?
    No, it's regular executable file (a C++ program)

  • Problems with ML when trying to get online using a manual IP

    Hi there!
    We discovered this today:
    We had to install 2 mac minis at a customer. One of them is a Mini Server. The "normal" one got into the companys Ethernet Network using DHCP. This one worked nearly flawless (except for the usual ML bugs).
    But the Server-Mini had to have a static IP. In the Network Pref Pane in the "Configure IPv4" i chose "Manually" and put in all the numbers the companys IT-Guys gave me.
    There the problems began: I wasnt able to get this Mini online! Some sort of afp-connection from the other Mini was possible but very slow (i think this connection worked directly).
    The IP-Guy i was workin with had no clue what is wrong so was i.
    So far so good - we decided to do some research (this one here is one of my attempts...).
    At home i took my good 'ol 3.1 8-core Mac Pro (which really likes ML ) and did nothing other than change my Macs Network setting from "DHCP" to "Manually" typing in the same numbers (and trying many more numbers afterwards) it got from the Router using DHCP.
    Guess what happend...
    Yepp - Network connection got dead!!
    Doing the same thing with my wifes MacBook Pro (10.6.8), my Mac Mini (10.6.8) my Doughters iMac (PPC 10.4) and my others doughters PowerBook G4 (10.5.8) showed nothing. Network simply went on - no disconnect!
    So what is wrong? I cant believe Apple isnt able to handle such a basic thing like fixed IP-Numbers!
    Greetings
    J. Kellner

    Hi again!
    Combination with Manual IP and open DNS Servers works with my Mac Pro.
    But there at this company they have their own DNS-Servers. That is where ML doesnt work. But old Leopard and SL.
    Maybe Apple simply forgot that there are still some closed environments out there...
    Best wishes
    J.Kellner

  • Getting the error when trying to execute this perticular package..

    My package is::--------
    ~~~~~~~~~~~
    declare
    type value_tab_t is table of ssc.uut_func_rslt_params.value%TYPE
    index by binary_integer;
    prt_value_tab_t value_tab_t;
    prt_value_tab_t1 value_tab_t;
    begin
    dbms_output.put_line('A');
    prt_value_tab_t(1) := 'MMI-20011585';
    prt_value_tab_t(2) := '1000611';
    prt_value_tab_t(3) := '0708407';
    prt_value_tab_t(4) := '1000611';
    prt_value_tab_t1(1) := '1';
    prt_value_tab_t1(2) := '1';
    prt_value_tab_t1(3) := '2';
    prt_value_tab_t1(4) := '1';
    --for i in 1.. prt_value_tab_t.count  loop
    app_caps.build_AssmPrt_Caps_uut(1, 2578281, null, null, null, 'MMI-20015338', 22, '10100983',
    prt_value_tab_t, prt_value_tab_t1, null,0);
    --dbms_output.put_line(prt_value_tab_t);
    -- dbms_output.put_line(prt_value_tab_t1(i));
    -- end loop;
    end;
    Error massage is:
    ~~~~~~~~~~~~~~
    ORA-06550:line 18,column 5:
    PLS-00306:wrong number of types of argument in call to 'BUILD_ASSMPRT_CAPS_UUT'
    ORA-06550:line 18,column 5:
    PLS-00306:wrong number or types of argument in call to 'BUILD_ASSMPRT_CAPS_UUT'
    ORA-06550: line 18, column 5:
    PL/SQL : Statement ignored

    890306 wrote:
    Error massage is:
    ~~~~~~~~~~~~~~
    ORA-06550:line 18,column 5:
    PLS-00306:wrong number of types of argument in call to 'BUILD_ASSMPRT_CAPS_UUT'
    ORA-06550:line 18,column 5:
    PLS-00306:wrong number or types of argument in call to 'BUILD_ASSMPRT_CAPS_UUT'
    ORA-06550: line 18, column 5:
    PL/SQL : Statement ignoredTo elaborate on Paul's answer ...
    Find out what the call to BUILD_ASSMPRT_CAPS_UUT requires and use that syntax in your call. PLS-00306 means you do not have the right number of arguments in the call or the datatypes you are sending are incompatable. For instance, I might get a similar error if I tried to send a string to MY_FUNCTION when it expects a number something like
      FUNCTION my_function (x number)
      x := my_function('X','Y');In my example both the datatype is wrong ('X' is not a number) and an unexpected value 'Y' exists and PL/SQL won't know what to do with it.
    Check the call very in your program carefully.

  • Error when trying to execute a Info Package

    When i am trying to start a data load in my info package its giving a Message Type X error (short dump) of class RSM1. Its happening with all the info packages for that data source. Even when i just try to save the info package or enter a data selection condition and save it its triggering the same error.
    Can someone explain the reason for the error and the possible diagnosis.
    Thanks,
    Priya

    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

  • Issue with BAPI_ACC_***_TRANSFER_POST (when trying to execute as per ABT1N)

    Hello experts,
    For this thread, please check the following link:
    [Issue with BAPI_ACC_***_TRANSFER_POST (when trying to execute as per ABT1N);
    Thanks and Regards,
    Daniel.

    Hi Experts,
    The question has been answered as per the following "link":
    [Issue with BAPI_ACC_***_TRANSFER_POST (when trying to execute as per ABT1N);
    Daniel

  • Strange problem with SQLPLUS when client and server on the same box

    Hi,
    I have the problem with SQLPLUS when clinet and server on the same machine.
    With client and server on the same machine i am running the command
    sqlplus -l username/password@connect_identifier as SYSDBA.
    With this command, even if you pass in wrong username or wrong password or both as wrong you can able to connect to database and execute queries.
    Once Connect_identifier is correct and trying to log in as SYSDBA ,sqlplus will log in to DB with any username and password.
    How to get rid of this behaviour. Is there any way to do this.
    I am running this command by creating a process in C#
    Edited by: user11000236 on Jun 16, 2009 10:31 AM

    user11000236 wrote:
    Thanks for the info.
    How does Oracle/SQLPLUS allows any username or password to log in to DB with SYSDBA Privillages? What is the concept behind this.?
    This is explainted in the above mentioned link:
    Operating system authentication takes precedence over password file authentication. If you meet the requirements for operating system authentication, then even if you use a password file, you will be authenticated by operating system authentication.

  • Hi, recently purchased macbook 13", I have problem with sound when connect to my LG Smart tv with sound system. When i change sounds effect on my sound system also LG its all go quiet didn't have this problem with my laptop. Any advise ?

    Hi, recently purchased macbook 13", I have problem with sound when connect to my LG Smart tv with sound system. When i change sounds effect on my sound system also LG its all go quiet didn't have this problem with my laptop. Any advise ?

    Some progess I see. To be honest, i would not waste your time with trying to connect using wireless.
    You are likely to get poor connections and dropping out.
    If its working using a cable, then there is no need to bother with giving me the network settings, bu see how it goes, because sometimes giving the TV a static IP address can give better results.
    There is an example of a couple of powerline adapters on the diagram below. Just ignore the network switch unless you want to connect other devices which are near to the TV.
    http://forumhelp.dyndns.info/networking/powerline3.jpg
    I will monitor the subject line of this thread, should you want to post any more information.
    There are some useful help pages here, for BT Broadband customers only, on my personal website.
    BT Broadband customers - help with broadband, WiFi, networking, e-mail and phones.

  • Problem with SDO_relate when using polygons with holes.

    I'm having a problem with sdo_relate. I'm trying to extract all elements from a point table (bdtq_batim_p) that are inside a specific polygon from another table (SDA_MUNIC_SS). The spatial index for both table have been rebuilt and the data from both table is valid.
    When I do a count on the query, I know the answer should be 1422 elements (Counted in ArcGIS). However, sdo_relate gives a smaller number of elements in the result set.
    The query :
    SELECT count(distinct t.identifiant) FROM bdtq_batim_p t, SDA_MUNIC_SS s WHERE s.mus_co_geo = '48015' and sdo_relate( t.SHAPE,s.SHAPE,'mask=anyinteract querytype=window') = 'TRUE'
    returns 282 elements. The query with mask=inside, SDO_Anyinteract() and SDO_inside() all give the same result.
    I did a test with the following query and the result is 1422 (which is the good result).
    SELECT count(distinct t.identifiant) FROM bdtq_batim_p t, SDA_MUNIC_SS s WHERE s.mus_co_geo = '48015' and SDO_WITHIN_DISTANCE( t.SHAPE,s.SHAPE,'distance=0') = 'TRUE';
    It's important to note that the polygone (from SDA_MUNIC_SS) that is used for this query have holes in it. I have the same problem with all the polygons from the SDA_MUNIC_SS table that have holes in it. For the polygon without holes, the results are the same for the 2 queries.
    My question are :
    Why are the result from the two queries different? A query with a buffer of 0 should always return the same result as a query with Anyinteract.
    Is there a known problem with SDO_RELATE when using a polygon with holes in it?
    Do you have any idea how to solve my problem.

    Since i don't have much control on the version of Oracle and Patches that we use in the system, we used a workaround that detects the polygons with holes and uses the SDO_WITHIN_DISTANCE( t.SHAPE,s.SHAPE,'distance=0') = 'TRUE' operator in those case. We saw a slight decline in performance but it now returns the right results. When the system will be patched, we'll come back to the original version and see if the problem is solved.

  • 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.

  • Having a problem with dates when I send my numbers doc to excel. dates are all out and that they have to cut and paste individual entries onto their spreadsheet. Any idea how I can prevent this

    having a problem with dates when I send my numbers doc to excel. dates are all out and that they have to cut and paste individual entries onto their spreadsheet. Any idea how I can prevent this.
    I'm using Lion on an MBP and Numbers is the latest version

    May you give more details about what is wrong with your dates ?
    M…oSoft products aren't allowed on my machines but I use LibreOffice which is a clone of Office.
    When I export from Numbers to Excel and open the result with LibreOffice, the dates are correctly treated.
    To be precise, dates after 01/01/1904 are correctly treated. dates before 01/01/1904 are exported as strings but, as it's flagged during the export process, it's not surprising.
    Yvan KOENIG (VALLAURIS, France) mardi 3 janvier 2012
    iMac 21”5, i7, 2.8 GHz, 12 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.2
    My iDisk is : http://public.me.com/koenigyvan
    Please : Search for questions similar to your own before submitting them to the community
    For iWork's applications dedicated to iOS, go to :
    https://discussions.apple.com/community/app_store/iwork_for_ios

  • I have a problem with itunes when I sync the saved music and want to sync my iphone 5 ios 7.0.6 no longer passes the music thing is that just stays on "waiting for sync" and not worry please help are more than 400 songs that do not want to hear who are wi

    I have a problem with itunes when I sync the saved music and want to sync my iphone 5 ios 7.0.6 no longer passes the music thing is that just stays on "waiting for sync" and not worry please help are more than 400 songs that do not want to hear who are wi

    Plawexki wrote:
    ...  do you know if the contacts, photos, messages etc will be wiped?
    Yes... Everything will be Wiped and Replaced with what is currently on Your Mac.
    SYNCING with iTunes
    See here  >  http://support.apple.com/kb/HT1386
    From Here  >  http://www.apple.com/support/iphone/syncing/
    You may find this information of interest...
    Have a read here...
    https://discussions.apple.com/message/18409815?ac_cid=ha
    And See Here...
    How to Use Multiple iDevices with One Computer

  • Problems with navigation when deploy application on WebLogic 10.3

    Hi! I have problems with navigation when I deploy my application on Weblogic server 10.3. In my application I have two pages. One page where I can see the records. In this page I have button Create with action to secound jspx page. When I press this button then the first form (where I could see all records) is empty - the create operation worked, but navigation to second page not. Navigation rules is in adf task flow. In default server all works correct. Where is the problem?
    Maybe when I deploy my application I need specialy deploy adf task flow or somewhere write something? If so, then can you explain me where? Any suggestions what to do.
    Best regards!

    I have in log:
    2009.26.3 20:12:52 oracle.adfinternal.controller.faces.lifecycle.JSFLifecycleImp
    l setLifecycleContextBuilder
    WARNING: ADFc: Replacing the ADF Page Lifecycle implementation with 'oracle.adfi
    nternal.controller.application.model.JSFDataBindingLifecycleContextBuilder'.
    2009.26.3 20:12:52 oracle.adfinternal.controller.util.model.AdfmInterface initia
    lize
    INFO: ADFc: BindingContext is present, using ADFm APIs for DataControlFrames.
    2009.26.3 20:12:52 oracle.adfinternal.controller.metadata.provider.MdsMetadataRe
    sourceProvider <init>
    INFO: ADFc: Controller caching of MDS metadata resources ENABLED.
    2009.26.3 20:12:52 oracle.adf.controller.internal.metadata.MetadataService$Boots
    trap add
    INFO: ADFc: Loading bootstrap metadata from '/WEB-INF/adfc-config.xml'.
    2009.26.3 20:12:54 oracle.adf.share.security.providers.jps.CSFCredentialStore fe
    tchCredential
    WARNING: Unable to locate the credential for key AUGI in D:\bea\user_projects\do
    mains\base_domain\config\oracle.
    2009.26.3 20:12:54 oracle.adf.share.jndi.ReferenceStoreHelper throwPartialResult
    Exception
    WARNING: Incomplete connection information
    Edited by: Debuger on Mar 26, 2009 11:18 AM

  • When attempting to use Lightroom external editor program to edit a photo in Photoshop Elements 10, the photo does not open / appear on photoshop elements screen.  I don't have any problem with this when using Photoshop Elements 6 or Photoshop CS.  I'm usi

    When attempting to use Lightroom external editor program to edit a photo in Photoshop Elements 10, the photo does not open / appear on photoshop elements screen.  I don't have any problem with this when using Photoshop Elements 6 or Photoshop CS.  I'm using a Mac with Mountain Lion OS.  Any solutions?

    Adobe now hides the editor - what looks like it is not - you want the editor hidden in the support folder - see http://forums.adobe.com/message/3955558#3955558 for details
    LN

  • I have a problem with Safari: when it opens and I go on google, it opens a page that says: PLEASE UPDATE INTERNET EXPLORERE.   What should I do?

    I have a problem with Safari: when it opens and I go on google, it opens a page that says: please update internet explorer!
    What should I do?

    It's a scam. Have a look at this thread:
    https://discussions.apple.com/thread/6058094?tstart=0

Maybe you are looking for

  • IPod Touch 5th Gen. Music Library is screwed up

    I have an iPod Touch 5th Gen. 32 GB that runs on IOS 8.1.2: One of the artists in my iPod library is categorized under two different letters but they are not even in the right order and the list navigator thing on the right with the letters isn't wor

  • Error "SYSTEM FAILURE: - NULL" while configuring Planning 9.3

    Hello, I have installed Hyperion System 9 Planning 9.3.0.1 on Windows 2003 Server. SQL Server 2003 is the database. I have installed Shared Services 9.3 and Hyperion Administrative Services as well. System 9 BPM Architect has also been installed. My

  • Upgrade to USB 2.0 possible?

    I've got an MBP 15" with two USB 1.1 ports. Is there any way to upgrade to USB 2.0? Thanks.

  • WLC 5508 7.4.X - N+1

    Hi, I don't undestand this document http://www.cisco.com/c/en/us/td/docs/wireless/technology/hi_avail/N1_High_Availability_Deployment_Guide/N1_HA_Overview.html How can the third 5508 (suport max 500 AP) backup all other WLC ? n+1 how ? With secondary

  • Mismatch between target capitalization and repository name

    To ease the transition from a custom app to an iStore app using JSPs, we are trying to preserve some of the old URLs. In particular a reference to an old URL the ended with /abc.pl? followed by a long string of parameters. We tried to circumvent the