Oracle XML SQL utility, error oracle.xml.sql.OracleXMLSQLException:....

I am using Oracle XML SQL utility to generate some XML using CURSOR
operator.
Following is the query -
SELECT PROJECT.PROJ_CD,
PROJECT.PROJ_TITLE,
CURSOR(SELECT ISSUES.ISSUE_ID
FROM ISSUES
WHERE PROJECT.PROJ_ID = ISSUES.PROJ_ID )
as ISSUES_DATA
FROM PROJECT
WHERE PROJECT.PROJ_ID = 1
This query works fine when I create a direct connection using Oracle JDBC
thin driver. But when I execute same thing using a connection from a
Weblogic connection pool (which uses exactly the same Oracle JDBC thin
driver, classes12.zip), I get following error-
<?xml version = '1.0'?>
<ERROR>oracle.xml.sql.OracleXMLSQLException: cursorGetMetaData: this method
is not supported by OracleXMLDataSetGenJdbc' class. Please use
'OracleXMLDataSetExtJdbc' instead.</ERROR>
Following are the details about my environment:
Weblogic5.1 on Windows NT 4.0
Oracle 8.1.5 on Sun Solaris
Oracle JDBC thin Classes12.zip (from Oracle 8.1.6)
Oracle XML SQL utility XSU12_ver1_2_1
Does anyone have any idea what is going on. Please help.
Thanks.

Thanks for your reply.
Here is what I am doing:
I have connection pool defined in welogic.properties file
weblogic.jdbc.connectionPool.oraclePool=\
url=jdbc:oracle:thin:@192.168.2.251:1521:orcl,\
driver=oracle.jdbc.driver.OracleDriver,\
loginDelaySecs=1,\
initialCapacity=1,\
maxCapacity=15,\
capacityIncrement=1,\
allowShrinking=true,\
shrinkPeriodMins=5,\
refreshMinutes=5,\
testTable=,\
props=user=someuser;password=somepasswd
weblogic.allow.reserve.weblogic.jdbc.connectionPool.oraclePool=everyone
weblogic.jdbc.TXDataSource.orclDataSource=oraclePool
Then I have a DBConnection class which gets connection from the pool
following is some code from DBConnection class
private Connection con = null;
private DataSource ds = null;
private String providerURL;
private String dataSource;
private String contextFactory;
private IpmsProps ipmsProp = null;
public Connection getConnection() {
if ( con == null ) {
try {
ipmsProp = IpmsProps.getInstance();
providerURL = ipmsProp.getProviderURL();
dataSource = ipmsProp.getDataSource();
contextFactory = ipmsProp.getContextFactory();
Properties p = new Properties();
p.put(javax.naming.Context.PROVIDER_URL, providerURL);
p.put(javax.naming.Context.INITIAL_CONTEXT_FACTORY,
contextFactory);
Context ctx = new InitialContext(p);
Context ctx = new InitialContext();
ds = (DataSource) ctx.lookup(dataSource);
con = ds.getConnection();
} catch (Exception e) {
System.out.println("Error While creating connection! " +
e.toString());
} // catch
I Hope you will be able to provide me some work around.
Thank you very much for the help.
Rajinder.
"Joseph Weinstein" <[email protected]> wrote in message
news:[email protected]...
Hi. It's probably because you're calling some Oracle-specific method,passing it
a pool JDBC object, and though the Oracle methos signature says it will
take a generic java.sql.XXX object, it really is going to assume the thingis
an Oracle class, and fails when it tries to cast it to such.
Depending on how you're getting your pool connection, I may have aworkaround.
Joe
Rajinder Arora wrote:
I am using Oracle XML SQL utility to generate some XML using CURSOR
operator.
Following is the query -
SELECT PROJECT.PROJ_CD,
PROJECT.PROJ_TITLE,
CURSOR(SELECT ISSUES.ISSUE_ID
FROM ISSUES
WHERE PROJECT.PROJ_ID =
ISSUES.PROJ_ID )
as ISSUES_DATA
FROM PROJECT
WHERE PROJECT.PROJ_ID = 1
This query works fine when I create a direct connection using OracleJDBC
thin driver. But when I execute same thing using a connection from a
Weblogic connection pool (which uses exactly the same Oracle JDBC thin
driver, classes12.zip), I get following error-
<?xml version = '1.0'?>
<ERROR>oracle.xml.sql.OracleXMLSQLException: cursorGetMetaData: thismethod
is not supported by OracleXMLDataSetGenJdbc' class. Please use
'OracleXMLDataSetExtJdbc' instead.</ERROR>
Following are the details about my environment:
Weblogic5.1 on Windows NT 4.0
Oracle 8.1.5 on Sun Solaris
Oracle JDBC thin Classes12.zip (from Oracle 8.1.6)
Oracle XML SQL utility XSU12_ver1_2_1
Does anyone have any idea what is going on. Please help.
Thanks.--
PS: Folks: BEA WebLogic is expanding rapidly, with both entry and advancedpositions
for people who want to work with Java, XML, SOAP and E-Commerceinfrastructure products.
We have jobs at Nashua NH, Liberty Corner NJ, San Francisco and San JoseCA.
Send resumes to [email protected]

Similar Messages

  • XML SQL Utility with Oracle 8.0.5

    hi,
    Is it possible to use XML SQL Utility with Oracle 8.0.5.
    Thanks,
    -Mourad
    null

    Yes. You need to use the Oracle8i 8.1.6 JDBC driver with XSU, but it can connect to an 8.0.5 instance.

  • XML SQL Utility and Oracle 8.0.5

    Hi,
    I have downloaded XML SQL Utility for Java against Oracle 8.0.5
    on WindowsNT. The xmlgen package was created successfully but
    its body is invalid and my PL/SQL test has failed because of
    following error: PLS-00103: Encountered the symbol "NAME"
    when expecting one of the following: := . ( @ % ; not null range
    renames default character. The symbol ":= was inserted abefore
    "NAME" to continue.
    Is it because I am not using Oracle8i? I just want to use the
    server side of XML SQL. Please, reply asap. Thank you.
    null

    Hi,
    Are u sure that it is a java enabled database? The most common
    case of failure with the xmlgen package is because the loadjava
    command did not succeed.
    Please make sure that oraclexmlsqlload.bat file loaded all the
    java procedures successfully. If not then u would have to java-
    enable your database by running the initjvm script. (please see
    the docs).
    Thx
    Murali
    Iveta Vojtko (guest) wrote:
    : Hi,
    : I have downloaded XML SQL Utility for Java against Oracle
    8.0.5
    : on WindowsNT. The xmlgen package was created successfully but
    : its body is invalid and my PL/SQL test has failed because of
    : following error: PLS-00103: Encountered the symbol "NAME"
    : when expecting one of the following: := . ( @ % ; not null
    range
    : renames default character. The symbol ":= was inserted abefore
    : "NAME" to continue.
    : Is it because I am not using Oracle8i? I just want to use the
    : server side of XML SQL. Please, reply asap. Thank you.
    Oracle Technology Network
    http://technet.oracle.com
    null

  • XML SQL utility - Error

    Hi,
    I am trying to retrieve data from a DB table and generate an XML file. I am using Oracle8i and IIS 4.0.
    I have downloaded XML SQL utility and I followed the installation instructions. I executed oraclexmlsqlload.bat file. It got executed and then I got the following error
    ORA-12203: TNS:unable to connect to destination.
    Let me know whether I should have JDK1.1x and JDBC 1.x compliant drivers installed in my machine. can any one help me ??
    vik

    Use xmlgen.setDateFormat('yyyy-MM-dd hh:mm:ss') and try it out
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Mark Hansen:
    I am having trouble with the xmlgen package within the XML SQL utility software version 1.1.1. I wrote a package that gets an XML file and loads it into a temporary CLOB and then using xmlgen.insertXML it inserts the XML into table. Everything works fine except for a date column in the table. I get an error when it tries to parse the date. Using the procedure xmlgen.setDateFormat, I tried to set the default date format, but I still get an error. Below you will find the text of the error message that I am getting:
    ORA-29532: Java call terminated by uncaught Java exception:
    oracle.xml.sql.OracleXMLSQLException: Exception
    'java.text.ParseException:Unparseable date: "2000-08-24 08:34:24"' encountered
    during processing ROW element 0All prior XML row changes were rolled back. in
    the XML document.
    ORA-06512: at "SITESTEPPER.SS_LOG", line 30
    ORA-06512: at line 1
    I've tried a number of diferent date formats including the database default date format. I have a work around to this but it involves the use of a temporary table. Please Help!
    <HR></BLOCKQUOTE>
    null

  • XML SQL Utility error - SQLException Data size bigger than max size for this type

    I am trying to insert an XML document the contains the text of new articles into the database and I am receiving this error on large documents. The process flow is as follows:
    From a servlet:
    1. Query the news server and retrieve an XML document containing the new story.
    2. Apply an XSL style sheet to the XML document to transform it into an XML document that matches the news_article table into which the story will be inserted.
    3. Call the insertXML method to store the transformed document in the table. The table contains a CLOB.
    Here is a sample of the raw XML:
    <?xml version="1.0" standalone="yes" ?>
    - <body id="s13602">
    - <![CDATA[
    Feb. 15-MAR--
    [B] BRIDGE UPDATE--LIVESTOCK: US hunger for beef must persist amid
    placements
    Feb 15--2238 GMT/1738 ET
    TOP STORIES:
    Bridge Survey: US hunger for beef must persist amid big placements
    Chicago--Feb 15--The $70.00 price level for slaughter steers has been
    considered an indication of good times in cattle country since last fall.
    More to follow...
    ^^^^^^
    ]]>
    </body>
    Here is the XSL that is applied:
    <?xml version="1.0" ?>
    - <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
    <xsl:output method="html" />
    <xsl:template match="*|/">
    <xsl:apply-templates />
    </xsl:template>
    <xsl:template match="text()|@*">
    <xsl:value-of select="." />
    </xsl:template>
    <xsl:template match="body">
    <ROWSET>
    <ROW>
    <ID />
    <SECTION_ORDER>1</SECTION_ORDER>
    <SUBTITLE />
    <BODY_TEXT>
    <xsl:value-of select="." />
    </BODY_TEXT>
    <STORY_ID>
    <xsl:value-of select="@id" />
    </STORY_ID>
    </ROW>
    </ROWSET>
    </xsl:template>
    </xsl:stylesheet>
    The transformed XML looks like:
    ROWSET>
    <ROW>
    <ID></ID>
    <SECTION_ORDER>1</SECTION_ORDER>
    <SUBTITLE></SUBTITLE>
    <BODY_TEXT>
    Feb. 15-MAR--
    BRIDGE UPDATE--LIVESTOCK: US hunger for beef must persist amid
    placements
    Feb 15--2238 GMT/1738 ET
    TOP STORIES:
    Bridge Survey: US hunger for beef must persist amid big placements
    Chicago--Feb 15--The $70.00 price level for slaughter steers has been
    considered an indication of good times in cattle country since last fall.
    More to follow...
    ^^^^^^</BODY_TEXT>
    <STORY_ID>s13602</STORY_ID>
    </ROW>
    </ROWSET>
    The table I am trying to insert into look like:
    ID NOT NULL NUMBER(10)
    SECTION_ORDER NOT NULL NUMBER(10)
    SUBTITLE VARCHAR2(500)
    BODY_TEXT CLOB
    STORY_ID VARCHAR2(25)
    The ID column is null in the XML document and set by a before-insert trigger.
    The relevant Java code I am calling all this from looks like:
    try
    // Setup the output handler
    res.setContentType("text/xml");
    // Define the URLs for the input source and Stylesheet
    URL xmlSource = new URL (xmlUrl);
    URL xslSource = new URL (xslUrl);
    // Open connection to XML and XSL Sources via URL
    URLConnection xmlConnection = xmlSource.openConnection();
    xmlConnection.connect();
    InputStream xmlInput = xmlConnection.getInputStream();
    URLConnection xslConnection = xslSource.openConnection();
    xslConnection.connect();
    InputStream xslInput = xslConnection.getInputStream();
    // Create the parser
    DOMParser parser = new DOMParser();
    // Initial parser variables
    parser.setPreserveWhitespace(true);
    // Parse the XML file
    parser.parse(xmlInput);
    xml = parser.getDocument();
    // Create and configure the XSL Stylesheet and XSL Processor
    XSLStylesheet xsl = new XSLStylesheet(xslInput, xslSource);
    XSLProcessor processor = new XSLProcessor();
    processor.showWarnings(false);
    processor.setErrorStream(System.out);
    // Process the XML document using the stylesheet
    XMLDocumentFragment result = processor.processXSL(xsl, xml );
    // Create the output document to store results
    output = new XMLDocument();
    // Load the transformed document into the output document
    output.appendChild(result);
    Class.forName ("oracle.jdbc.driver.OracleDriver");
    //init a JDBC connection
    Connection conn =
    DriverManager.getConnection("jdbc:oracle:oci8:@ZEUS", "emerge","emerge");
    OracleXMLSave sav = new OracleXMLSave(conn, tabName);
    int rowCount = sav.insertXML(output);
    } catch (Exception err) {
    Anyone have any ideas on what I am doing wrong. This works fine on short news articles, but not large ones.
    Thanks!
    null

    Steven,
    Thanks for you reply. I have verified that I am using the latest version of Oracle XSQL Servlet, version 0.9.8.6 as well as the OCI8 driver. In doing some additional research I found that I was using the JDBC drivers supplied with OAS 4.0.8 and not the Oracle 8.1.5 JDBC drivers. I have switched my classpath to point to the 8.1.5 drivers and I am now encountering the following error:
    ORA-21301: not initialized in object mode
    Is this something I need to do in my Servlet code, or should the XSQL Servlet handle that?
    Thanks for any help that you can provide.

  • Oracle 11g oui-25031 error (oracle database configuration assistant)

    Configuration assistant "Oracle Database Configuration Assistant" failed
    The "/oracle/app/oracle/product/11.1.0/db_1/cfgtoollogs/configToolFailedCommands" script contains all commands that failed, were skipped or were cancelled.
    This file may be used to run these configuration assistants outside of OUI. Note that you may have to update this script with passwords (if any)
    before executing the same.
    The "/oracle/app/oracle/product/11.1.0/db_1/cfgtoollogs/configToolFailedCommands" script
    ->/oracle/app/oracle/product/11.1.0/db_1/oui/bin/runConfig.sh ORACLE_HOME=/oracle/app/oracle/product/11.1.0/db_1 MODE=perform ACTION=configure RERUN=false
    runConfig.sh ORACLE_HOME=/oracle/app/oracle/product/11.1.0/db_1 MODE=perform ACTION=configure RERUN=false
    ->
    oracle.sysman.oii.oiii.OiiiInventoryDoesNotExistException: 인벤토리 포인터 위치 /etc/oraInst.loc을(를) 읽을 수 없거나 존재하지 않습니다.
    at oracle.sysman.oii.oiii.OiiiInstallAreaControl.initAreaControl(OiiiIns tallAreaControl.java:1717)
    at oracle.sysman.oii.oiic.OiicStandardInventorySession.initSession(OiicS tandardInventorySession.java:292)
    at oracle.sysman.oii.oiic.OiicStandardInventorySession.initSession(OiicS tandardInventorySession.java:231)
    at oracle.sysman.oii.oiic.OiicStandardInventorySession.initSession(OiicS tandardInventorySession.java:180)
    at oracle.sysman.oii.oiic.OiicRunConfig.loadInventory(OiicRunConfig.java :278)
    at oracle.sysman.oii.oiic.OiicRunConfig.main(OiicRunConfig.java:1004)
    Exception in thread "main" java.lang.NullPointerException
    at oracle.sysman.oii.oiic.OiicRunConfig.getArgumentList(OiicRunConfig.ja va:519)
    at oracle.sysman.oii.oiic.OiicRunConfig.main(OiicRunConfig.java:1007)
    hi!
    i install oracle database 11g 1R .
    error occur during installing oracle database.
    please solve it!!

    OS version is fedora 3.
    uname -a: Linux db9.sangjicom.ac.kr 2.6.9-1.667 #1 Tue Nov 2 14:41:25 EST 2004 i686 i686 i386 GNU/Linux
    ORACLE_HOME is registred ORACLE_HOME=/oracle/app/oracle/product/11.1.0/db_1 in bash_profile.
    Inventory is /oracle/app/Inventory.

  • Createdb10.sql with error "ORACLE not available"

    guys..
    I have installed PeopleTools 8.49 and PeopleSoft HRMS 9. I installed Oracle 11gR1 on OEL 5.3
    I create /oradata/DEMO111/create by my self.
    I modified file createdb10.sql
    set termout on
    set echo on
    spool createdb.log
    startup nomount pfile=$ORACLE_HOME/dbs/initDEMO111.ora
    CREATE DATABASE "DEMO111"
    MAXINSTANCES 8
    MAXLOGHISTORY 1
    MAXLOGFILES 16
    MAXLOGMEMBERS 3
    MAXDATAFILES 100
    DATAFILE '/oradata/DEMO111/datafiles/system01.dbf' SIZE 300M REUSE AUTOEXTEND ON NEXT 10240K MAXSIZE UNLIMITED
    EXTENT MANAGEMENT LOCAL
    SYSAUX DATAFILE '/oradata/DEMO111/datafiles/sysaux01.dbf' SIZE 120M REUSE AUTOEXTEND ON NEXT 10240K MAXSIZE UNLIMITED
    SMALLFILE DEFAULT TEMPORARY TABLESPACE TEMP TEMPFILE '/oradata/DEMO111/datafiles/temp01.dbf' SIZE 20M REUSE AUTOEXTEND ON NEXT
    640K MAXSIZE UNLIMITED
    SMALLFILE UNDO TABLESPACE "PSUNDOTS" DATAFILE '/oradata/DEMO111/datafiles/psundots01.dbf' SIZE 200M REUSE AUTOEXTEND ON NEXT
    5120K MAXSIZE UNLIMITED
    CHARACTER SET AL32UTF8
    NATIONAL CHARACTER SET UTF8
    LOGFILE GROUP 1 ('/oradata/DEMO111/redologs/redo01.log') SIZE 51200K,
    GROUP 2 ('/oradata/DEMO111/redologs/redo02.log') SIZE 51200K,
    GROUP 3 ('/oradata/DEMO111/redologs/redo03.log') SIZE 51200K;
    spool off
    I get ORA-01034: ORACLE not available and also ORA-00371: not enough shared pool memory, should be at least 102341017 ( below startup nomount pfile=$ORACLE_HOME/dbs/initDEMO111.ora
    I set my ORACLE_SID at /home/ora111 and I edited bash_profile. Put and export ORACLE_SID=DEMO111
    any Idea..?? please help.
    best regard.

    well thats true. I changed shared_pool_size to 112500000. Database created. Then I add :
    undo_management=auto
    undo_tablespace=PSUNDOTS
    remote_login_passwordfile=NONE.
    Q : How do we make password file like the guide said?
    I ran utlspace.sql then PSTEMP and PSDEFAULT tablespace created.
    I ran dbowner.sql then PSDBOWNER table, Index, sysnonym created. then revoke connect, resource, dba from PS.
    I ran hcddl.sql then a lot of tablespaces created. But there are some tablespaces that were error.
    The notification are same. ERROR at line 1:
    ORA-19502: write error on file "/oradata/DEMO111/psindex.dbf", block number
    153856 (block size=8192)
    ORA-27072: File I/O error
    Linux Error: 2: No such file or directory.
    Additional information: 4
    Additional information: 153856
    Additional information: 839680
    Q: Do you get same error? Is it about block number or block size?
    I continued to run psroles.sql PSUSER role and PSADMIN role created. Also Grant succeeded.
    I continued to run psadmin.sql twice because I miss the name. Second time I runned psadmin.sql, I put SYSADM as Peoplesoft Owner ID and PS as Peoplesoft Owner ID Password.
    Q: What is Peoplesoft Owner ID Password? We create the Peoplesoft Owner ID Password in this running or it already created before.?
    I continued to run connect.sql.
    I cannot alter system set NLS_LENGTH_SEMANTICS=CHAR scope=both; But I can create spfile (I copy initDEMO111.ora to /apps/oracle/admin/DEMO111/pfile )
    I install peopletools 8.49 first and peoplesoft HRMS 9 at the same directory on Window XP. ( c:\apps\psoft\hrms9)
    but when I compare with your steps, it's different from this picture. I go to All Programs, I just see Peopletools 8.49 there.
    http://2.bp.blogspot.com/_GAPqu9CUk1k/R4aT2fOgWiI/AAAAAAAAAN4/WYYq8JdsAfw/s1600-h/1ScreenShot001_LoadAppl.jpg
    I go to Configuration Manager on my client computer, connect password is disable. What can I do for this
    When I installed peopletools 8.49 ( both on Window XP and OEL 5.3), the installer did not ask for cd 2 to cd 7. I just runned cd 1, and it said "installShield wizard successfully installed...." It should skip the cd 5 on Windows XP, the installer did not ask the cd 2 and the rest. What's wrong?
    (I just re-formated my computer with OEL 5.3 and installed again from tuxedo)
    well, I just downloaded Oracle Client 11gR1 and installed with Administrator Type.
    Q: How we connect to database server with Oracle Client like you said before that I will need Oracle Client runtime installation..?
    hope you can help. :)
    best Regard.

  • XMl report output error oracle.apps.xdo.template.fo.area.NoAvailableAreaExc

    All,
    Here is the error I'm getting when AR invoice is printed in PD fformat. I dont see this issue for all invoices, I ahve this issue when invoice has 9 lines.
    oracle.apps.xdo.template.fo.area.NoAvailableAreaException: object = 'oracle.apps.xdo.template.fo.area.BlockArea@186f3b3', aInfo: (x, y, w, h) = (0, 0, -18050, 353403)
    Any idea how to fix this error, or where can i look into template to fix.
    Thanks
    Pallavi

    Hi,
    Could you please let me know how this issue is fixed.
    I am facing the same issue.
    Thanks for you help

  • SQL Conectivity error (1418) on SQL Mirroring in SQL Server_2014 Enterprises

    I perform this subjected task/activity in DOMAIN environment with Multiple VPN.
    No matter what I try, I constantly run into a 1418 error, I've check all my tcp/ip configs both in sql,
    and the server 2012 os, on both vms/physical machine.  I’ve
    enabled tcp/ip filtering and allowed all connections, rulessets in firewall, I’ve used telnet to connect up.  Nothing
    seems to work.  Each
    server can ping the other, they can telnet into 5022, & 5023 as well. I don’t know where to proceed from here.  Is
    there some config somewhere or issues with vms that I am not seeing?  All
    the machines in the mirroring array are server 2012 with same SQL 2014 Ent edition. Now please guide as what can we do to go at next Step....!
    Regards,
    Zeeshan

    Hi Zeeshan,
    Please check the following, have you checked the error log? Share the error screenshot here in order to verify the issue.
    Make sure that the mirror database is ready for mirroring.
    Make sure that the name and port of the mirror server instance are correct.
    Make sure that the destination mirror server instance is not behind a firewall.
    Make sure that the principal server instance is not behind a firewall.
    Verify that the endpoints are started on the partners by using the state or state_desc column the of the sys.database_mirroring_endpoints catalog view. If either endpoint is not
    started, execute an ALTER ENDPOINT statement to start it.
    Make sure that the principal server instance is listening on the port assigned to its database mirroring endpoint and that and the mirror server instance is listening on its port. For more information, see "Verifying Port Availability," later in this
    topic. If a partner is not listening on its assigned port, modify the database mirroring endpoint to listen on a different port.

  • Capturing SQL server error logs with SQL restores

    Hi All.
    I have a stored procedure which restores a database, the issue I'm having is that when the stored procedure fails due to space issues.
    If the stored procedure is executed from SSMS, get error similar to the below.
    Msg 3257, Level 16, State 1, Line 1
    There is insufficient free space on disk volume 'X:\Datadrive\' to create the database. The database requires 897725691812 additional free bytes, while only 776828129280 bytes are available.
    Msg 3119, Level 16, State 4, Line 1
    Problems were identified while planning for the RESTORE statement. Previous messages provide details.
    Msg 3013, Level 16, State 1, Line 1
    RESTORE DATABASE is terminating abnormally.
    However, looking at the SQL server output file I only see
    Msg 3013, RESTORE DATABASE is terminating abnormally.
    (1 rows(s) affected)
    Msg 50000, Sev 16, State 1, Line 94 : Msg 3013, RESTORE DATABASE is terminating abnormally. [SQLSTATE 42000]
    I have the catch block as follows.
    SET @Error = ERROR_NUMBER()
    SET @ErrorMessage= ERROR_MESSAGE()
    SET @ErrorMessage = 'Msg ' + CAST(@Error AS nvarchar) + ', ' + ISNULL(@ErrorMessage,'')
    SELECT @ErrorMessage
    RAISERROR(@ErrorMessage,16,1) WITH NOWAIT
    My objective is that I want to get the first detailed error message in my output file, however I am not sure what is being done incorrectly. The issue is that the error details in the output file doesnt really say what the issue is.
    Thanks in advance.

    Hi,
    Can you replace catch block as per below code
    DECLARE @ErrorMessage NVARCHAR(4000), @ErrorProc NVARCHAR(126), @ErrorLineNo INT;
    -- ERROR HANDLING - Grab Error code and throw
    SELECT @ErrorLineNo = ERROR_LINE(), @ErrorMessage = ERROR_MESSAGE(), @ErrorProc = ERROR_PROCEDURE();
    RAISERROR('Error %s occurred in %s. Line %d', 16, 1, @ErrorMessage, @ErrorProc, @ErrorLineNo) WITH SETERROR;
    Please mark this reply as answer if it solved your issue or vote as helpful if it helped so that other forum members can benefit from it
    My Technet Wiki Article
    MVP
    Thanks for the response.
    Can you please confirm what the code will do, the reason I ask is that we have temporarily resolved the space issue. If i want to test this however, I would need to re-create the scenario. I would like to have an understanding of what this code will do.
    Thanks in advance.

  • Xcelsius xml map connection error [local xml file]

    xcelsius 2008 SP1 (loaded by IT dept)
    I am having issues with an xml map connection after I export to flash. The xml data file is local so the URL is (C:\Documents and Settings\..\Desktop\file.xml). It works fine in preview. I reasearched the topic and it all points to flash security settings but how can that be since everything is local. I'm doing this on my computer an nothing else.
    Do i still need to change the flash security setting (crossdomain.xml) even when I am trying to access just local file? If so does that mean that I need to create one of these crossdomain files in my C: directory. Because that doesn't sound right.

    Thank you Matt, this solved the issue!
    This is a quick summary for those having the same issue in the future. (I know it helped me when I was using the search feature to have a follow up post from the original poster)
    - accessing local files during preview is a little different from accessing after you export to a swf file.
    - This is due to security settings on flash
    - when trying to access a local file you must add the swf file (flash) that xcelsius created to the secure list on you flash settings
    - Please read the short guide provided by Matt (above) for more details
    Again, thank you Matt!

  • Unable to load Oracle XML SQL utility

    The following error appears for each java
    class, when we attempt to load Oracle XML sql
    utility into Oracle using the oraclexmlsqlload
    script:
    E.g.
    Error while resolving class OracleXMLStore
    ORA-00904: invalid column name
    Does anyone know why we would receive this error?
    Platform: Hp-UX 11.0
    Oracle Version: 8.1.5.0
    Background information:
    The database was original created with the
    compatible=8.0.5 set in the init.ora file, and
    the creatation of java classes failed due to this,
    so switched compatible to 8.1.0. Now after we
    we adjusted the compatible setting and restarted
    database, we started to receive the errors as
    described above.
    null

    Murali,
    Thank you, after I initialized Oracle's javavm
    the errors disappeared.
    The scripts were located under the javavm/install
    directory.
    Thanks again.
    Murali K (guest) wrote:
    : Hi Steven,
    : Is the JavaVM loaded. i.e. are all the classes necessary for
    : running Java in the server are loaded into the server? The
    most
    : common answer to your problem is that the javavm has not been
    : initialized correctly or the database does not have all the
    java
    : library files necessary to load java programs.
    : Please read chapter 4 in the Oracle8i java developers guide
    : which talks about initializing a java-enabled database by
    : running the initjvm script.
    : If this still occurs then maybe it is a bug and we will have
    to
    : look at it.
    : Thx
    : Murali
    : Steven Wegner (guest) wrote:
    : : The following error appears for each java
    : : class, when we attempt to load Oracle XML sql
    : : utility into Oracle using the oraclexmlsqlload
    : : script:
    : : E.g.
    : : Error while resolving class OracleXMLStore
    : : ORA-00904: invalid column name
    : : Does anyone know why we would receive this error?
    : : Platform: Hp-UX 11.0
    : : Oracle Version: 8.1.5.0
    : : Background information:
    : : The database was original created with the
    : : compatible=8.0.5 set in the init.ora file, and
    : : the creatation of java classes failed due to this,
    : : so switched compatible to 8.1.0. Now after we
    : : we adjusted the compatible setting and restarted
    : : database, we started to receive the errors as
    : : described above.
    null

  • Oracle 8i Lite and XML SQL Utility

    Can I use XML SQL Utility with Oracle 8i Lite
    using the Oracle 8i Lite Driver
    null

    There will be an version of the XML SQL Utility appearing here shortly. In the meantime you can download the current version of the XSQL Servlet which has the new v2 compatible oraclexmlsql.jar.
    Oracle XML Team

  • XML SQL utility

    Hi,
    When I try to execute this query using XML SQL utility
    I am getting the following error. I had declared 'XMLGEN &
    GETXML' as CLOB and tried but got the same error. Advice me. I
    am struggling to find the solution using XSQL Servlet..but
    couldn't get..I spend one week on that..no results...this is the
    second trial. Is there any online help or service to do that.
    xmlString := xmlgen.getXML('select * from scott.emp');
    ERROR at line 9:
    ORA-06550: line 9, column 16:
    PLS-00201: identifier 'XMLGEN.GETXML' must be declared
    ORA-06550: line 9, column 3:
    PL/SQL: Statement ignored
    I have Oracle XML parser for Java 2, and XML SQL utility and
    oracle 8i database....
    This is the query.........(Your example)
    declare
    xmlString CLOB;
    amount integer:= 4000;
    position integer := 1;
    charString varchar2(4000);
    i binary_integer := 0;
    inclDTD number := 0;
    begin
    xmlString := xmlgen.getXML('select * from scott.emp');
    dbms_lob.open(xmlString,DBMS_LOB.LOB_READONLY);
    loop
    dbms_lob.read(xmlString,amount,position,charString);
    dbms_output.put_line(charString);
    position := position + amount;
    end loop;
    exception
    when no_data_found then
    dbms_lob.close(xmlString);
    dbms_lob.freetemporary(xmlString);
    end;
    null

    Have you loaded the xmlgenpkg.sql in the schema in which you
    are trying to execute your PL/SQL block?
    Chan (guest) wrote:
    : Hi,
    : When I try to execute this query using XML SQL utility
    : I am getting the following error. I had declared 'XMLGEN &
    : GETXML' as CLOB and tried but got the same error. Advice me. I
    : am struggling to find the solution using XSQL Servlet..but
    : couldn't get..I spend one week on that..no results...this is
    the
    : second trial. Is there any online help or service to do that.
    : xmlString := xmlgen.getXML('select * from scott.emp');
    : ERROR at line 9:
    : ORA-06550: line 9, column 16:
    : PLS-00201: identifier 'XMLGEN.GETXML' must be declared
    : ORA-06550: line 9, column 3:
    : PL/SQL: Statement ignored
    : I have Oracle XML parser for Java 2, and XML SQL utility and
    : oracle 8i database....
    : This is the query.........(Your example)
    : declare
    : xmlString CLOB;
    : amount integer:= 4000;
    : position integer := 1;
    : charString varchar2(4000);
    : i binary_integer := 0;
    : inclDTD number := 0;
    : begin
    : xmlString := xmlgen.getXML('select * from scott.emp');
    : dbms_lob.open(xmlString,DBMS_LOB.LOB_READONLY);
    : loop
    : dbms_lob.read(xmlString,amount,position,charString);
    : dbms_output.put_line(charString);
    : position := position + amount;
    : end loop;
    : exception
    : when no_data_found then
    : dbms_lob.close(xmlString);
    : dbms_lob.freetemporary(xmlString);
    : end;
    Oracle Technology Network
    http://technet.oracle.com
    null

  • XML SQL Utility, 8i, NT4, test code

    I have been unable to get the sample code to run successfully
    after installing the XML SQL Utility on Oracle 8.1.5.0.0 on
    Windows NT4 Service Pack 4.
    To make sure I was doing nothing wrong, I reinstalled Oracle 8i
    and loaded all the java into scott/tiger. Also the PLXMLPARSER
    codes does appear to run correctly. At least the samples seem to
    work.
    I tried to use the oraclexmlsqlload.bat script, but the script
    stopped after after loading oraclexmlsql.jar. So I ran each of
    the loadjava scripts on the command line. They exited without
    errors. Even the xmlgen package installed without errors. But
    when I ran oraclexmlsqltest.sql, I got a message that said the
    procedure completed successfully, but there was not output.
    I put a dbms_output.put_line(SQLCODE) with each of the two
    exceptions and got the following error. The procedure actually
    failed on "when others" with error -29531. According to the
    Error Manual this is
    ORA-29531 no method string in class string
    Cause: An attempt was made to execute a non-existent method in a
    Java class.
    Action: Adjust the call or create the specified method.
    At this point I am not sure what to do.
    null

    Hi Frank,
    Frank, make sure that the two "select xmlgen....." are
    returning a valid XML document. If these aren't working let me
    know, otherwise add a:
    set serveroutput on
    after the commit.
    Also, before you do this, restore oraclexmlsqltest.sql to its
    original state ... the exception section was masking exceptions
    which we are aware we generate. If you look closely you will see
    that we do a very rough job outputing the lob containing the XML
    document (we print out past the length of the LOB, which raises
    an exception).
    Let me know what happens.
    Frank Hubeny (guest) wrote:
    : I have been unable to get the sample code to run successfully
    : after installing the XML SQL Utility on Oracle 8.1.5.0.0 on
    : Windows NT4 Service Pack 4.
    : To make sure I was doing nothing wrong, I reinstalled Oracle 8i
    : and loaded all the java into scott/tiger. Also the PLXMLPARSER
    : codes does appear to run correctly. At least the samples seem
    to
    : work.
    : I tried to use the oraclexmlsqlload.bat script, but the script
    : stopped after after loading oraclexmlsql.jar. So I ran each of
    : the loadjava scripts on the command line. They exited without
    : errors. Even the xmlgen package installed without errors. But
    : when I ran oraclexmlsqltest.sql, I got a message that said the
    : procedure completed successfully, but there was not output.
    : I put a dbms_output.put_line(SQLCODE) with each of the two
    : exceptions and got the following error. The procedure actually
    : failed on "when others" with error -29531. According to the
    : Error Manual this is
    : ORA-29531 no method string in class string
    : Cause: An attempt was made to execute a non-existent method in
    a
    : Java class.
    : Action: Adjust the call or create the specified method.
    : At this point I am not sure what to do.
    Oracle Technology Network
    http://technet.oracle.com
    null

Maybe you are looking for

  • Open DXF in Illustrator cs4

    Hi all. I recently changed 2 pc and they was running a older version of Illustrator ( version 10 ). We work with DXF file from ArtiosCad version 4.24 ( I know it's old ). All was working fine with Illustrator 10, but when I tried to open a dxf file i

  • Contract updation for Delivered material quantity

    Hi All, I have a problem related, contract and release order updating with reference to delivered material quantity. for example let's say contract is created for 1000 units of material A, after that sales order with reference to contract is created

  • Cisco WCS on 64 bit Windows Server 2003

    I have been running WCS 4.2.62.0 on Windows 2003 R2 64 bit for some time with no issues whatsoever. Today I attempted to upgrade to WCS 5.0.56.0 and the installation terminates stating that WCS is not supported on 64 bit. My question is why this is s

  • DBC file problm

    Dear All, i am working with OAF 5.7h. I have placed dbc file in da following location: devhome\jdev\myhtml\OA_HTML\secure But when i open the jdeveloper and open it and navigate to Framework Connections for selecting the dbc file(from the dropdown),i

  • Printed double number of copies (Invoice printing)

    Hi, While giving print for invoice from vf03 its printing double number of copies i.e. if i configure 3 copies in communication methods then it is printing 6 or 5 or 7 copies. Please need information where could be the problem. Thanks & Regards, Amit