Creating type error

Hi all,
I have a problem/question: I want to create an object type that describes a XML node. As you all know, a XML node can consists of one or more subnodes. That's why I tought of this type:
create or replace
type xml_node
as object
    xml_tag     varchar2(50)
  , xml_value   varchar2(4000)
  , xml_subnode xml_node
  );but I can't compile it, oracle complains about it can't create a recursive type. Does someone know how to resolve this issue?
Thanks!
Tom

SQL> create or replace
  2  type xml_node
  3  as object
  4    (
  5      xml_tag     varchar2(50)
  6    , xml_value   varchar2(4000)
  7    , xml_subnode xml_node
  8    );
  9  /
Warning: Type created with compilation errors.
SQL> sho err
Errors for TYPE XML_NODE:
LINE/COL ERROR
0/0      PL/SQL: Compilation unit analysis terminated
1/1      PLS-00318: type "XML_NODE" is malformed because it is a non-REF
         mutually recursive type
SQL> create or replace
  2  type xml_node
  3  as object
  4    (
  5      xml_tag     varchar2(50)
  6    , xml_value   varchar2(4000)
  7     , xml_subnode REF xml_node
  8    );
  9  /
Type created.
SQL> This may not be the way you want to go but REF is the only mechanism for recursion (as the error message suggests). The documentation will tell you more about REFs.
Cheers, APC

Similar Messages

  • How to resolve create type error?

    Hi all,
    I am duplicating the contents of schema1 to schema2 on the same database.
    So I used expdp schema1/schema1 .... exporting schema1. Then impdp schema2/schema2 remap_schema=schema1:schema2
    These 2 schemas have dba privilege.
    Why do I get this error:
    ORA-39083: Object type TYPE failed to create with error:
    ORA-02304: invalid object identifier literal
    Failing sql is:
    CREATE TYPE "C1DEVADM"."CMQTNQHT"   OID 'AC82C504E18C6A98E044001A4B08907C' AS TABLE OF CMQTNQHF;Thanks a lot,

    Hi;
    I already done exporting the data :(
    I guess it will be ok if I create the object types manually after impdp right?Yes.
    PS:Please dont forget to change thread status to answered if it possible when u belive your thread has been answered, it pretend to lose time of other forums user while they are searching open question which is not answered,thanks for understanding
    Regard
    Helios

  • Error On Creating Type

    SQL> create or replace type WS_REQUEST as object
      2  (
      3    xml xmltype,
      4    http_request utl_http.req
      5   )
      6  /
    Warning: Type created with compilation errors
    SQL> show err;
    Errors for TYPE SYS.WS_REQUEST:
    LINE/COL ERROR
    4/16     PLS-00201: identifier 'UTL_HTTP.REQ' must be declared
    0/0      PL/SQL: Compilation unit analysis terminated
    SQLI logged in sys schema as sysdba. What is the problem?

    I think you cannot create types if the attributes' datatypes are based on package records, constants, etc
    See:
    mmara@pyn> create or replace package val
    is
    type dummy is record (
    pid number,
    pname varchar2(15));
    end val;
    Package created.
    mmara@pyn> create or replace type WS_REQUEST as object
    xml xmltype,
    http_request val.dummy
    Warning: Type created with compilation errors.
    mmara@pyn> show errors type ws_request;
    Errors for TYPE WS_REQUEST:
    LINE/COL ERROR
    0/0 PL/SQL: Compilation unit analysis terminated
    4/18 PLS-00201: identifier 'VAL.DUMMY' must be declared
    mmara@pyn>
    In that case, why don't you create the same type as seen in utl_http as an object in the schema?:
    TYPE req IS RECORD (
    url VARCHAR2(32767 byte), -- Requested URL
    method VARCHAR2(64), -- Requested method
    http_version VARCHAR2(64), -- Requested HTTP version
    private_hndl PLS_INTEGER -- For internal use only
    );

  • Screen Shot Error - Unable to create type string error

    I had this message after I tried to change via Terminal the .png standard file capture into .jpeg format.
    Does anyone has any solution that will reset and make it work again?
    " The attempt to take a screen capture has failed. The error is: 'Unable to create type string."

    Download and use the free TinkerTool.

  • ORA-39083: Object type TRIGGER failed to create with error:

    i m getting these two error when i import data using impdp.
    ORA-39083: Object type TRIGGER failed to create with error:
    ORA-00942: table or view does not exist
    i have exported (expdp) data from production db, when i importing (impdp) the dump file to the test db i m geting the above two errors.
    example:
    ORA-39083: Object type TRIGGER failed to create with error:
    ORA-00942: table or view does not exist
    Failing sql is:
    CREATE TRIGGER "NEEDLE"."CC_BCK_TRG" BEFORE INSERT OR UPDATE
    ON NIIL.cc_bck_mgmt REFERENCING NEW AS NEW OLD AS OLD FOR EACH ROW
    DECLARE
    w_date DATE;
    w_user VARCHAR2(10);
    BEGIN
    SELECT USER,SYSDATE INTO w_user,w_date FROM DUAL;
    IF INSERTING THEN
    :NEW.cretuser :=w_user;
    :NEW.cretdate :=w_date;
    END IF;
    IF UPDATING THEN
    :NEW.modiuser :=w_user;
    :NEW.modidate :=w_date;
    END IF;
    END;
    status of the above trigger in pro db is valid. and source table also exist even though i m getting error when i import
    please suggest me...

    perhaps you don't have table... (impdp created trigger before create table)
    check about "NIIL.cc_bck_mgmt" table.
    and then create it (trigger) manual ;)
    Good Luck.

  • CREATE TYPE address_type AS OBJECT - ERROR

    I am not able to create type objects tried with different versions of oracle too.
    Currently I am using Oracle 11g enterprise edition (2.9GB).
    The problem is when i create a TYPE object and when i terminate the command with a semicolon ';',oracle sql does not stop only (the query does not execute) the loop goes on and on.
    I did like this and found that the SYNTAX is also perfect.
    SQL> CREATE TYPE address_type AS OBJECT
    2 (street varchar2(30),
    3 city varchar2(30),
    4 pincode number(10));
    5
    6
    7
    8...
    It goes on and on it never ends. Command never executes.
    Please Help!

    A type body will contain PL/SQL semicolons, so once SQL*Plus sees that you're entering a type it stops treating semicolons as the SQL*Plus multi-line statement terminator character. (A type header will not contain semicolons, but I expect Oracle decided it would be even more confusing if CREATE TYPE BODY behaved differently to CREATE TYPE.)
    Note you can also terminate entry by entering a dot (period) on a line on its own.
    I guess in older version there was nothing like that.Actually this has been around for over 10 years ;)

  • Can't Create Bean Error

    I modified the numguess example that comes with tomcat but I get a "can't create bean" error message when I call my jsp file. If anyone can see what I'm doing wrong or suggest ways to discover the problem I'd appreciate it.
    My modified jsp:
    <!--
    Copyright (c) 1999 The Apache Software Foundation. All rights
    reserved.
    Number Guess Game
    Written by Jason Hunter, CTO, K&A Software
    http://www.servlets.com
    -->
    <%@ page import = "num.NumberGuessBean" %>
    <jsp:useBean id="numguess" class="num.NumberGuessBean" scope="session"/>
    <jsp:setProperty name="numguess" property="*"/>
    <html>
    <head><title>Number Guess</title></head>
    <body bgcolor="white">
    <font size=4>
    <% if (numguess.getSuccess()) { %>
    Congratulations! You got it.
    And after just <%= numguess.getNumGuesses() %> tries.<p>
    <% numguess.reset(); %>
    Care to try again?
    <% } else if (numguess.getNumGuesses() == 0) { %>
    Welcome to the Number Guess game.<p>
    Play with default limits ( a number between 0 and 100)<p>
    or enter upper and lower limits.<p>
    <form method=get>
    Play with defaults?: <input type=radio name=default value="yes">Yes
    <input type=radio name=default value="no">No
    <\form>
    <% if (numguess.getRadio().equals("no")) { %>
    <form method=get>
    Enter upper limit:<input type=text name=upperLimit>
    Enter lower limit:<input type=text name=lowerLimit>
    <\form>
    <% numguess.reset(); %>
    <% } %>
    <form method=get>
    What's your guess? <input type=text name=guess>
    <input type=submit value="Submit">
    </form>
    <% } else { %>
    Good guess, but nope. Try <b><%= numguess.getHint() %></b>.
    You have made <%= numguess.getNumGuesses() %> guesses.<p>
    I'm thinking of a number between <jsp:getProperty name="numguess" property="lowerLimit"/> and <jsp:getProperty name="numguess" property="upperLimit"/>.<p>
    <form method=get>
    What's your guess? <input type=text name=guess>
    <input type=submit value="Submit">
    </form>
    <% } %>
    </font>
    </body>
    </html>
    and the modified bean:
    * ====================================================================
    * The Apache Software License, Version 1.1
    * Copyright (c) 1999 The Apache Software Foundation. All rights
    * reserved.
    * Redistribution and use in source and binary forms, with or without
    * modification, are permitted provided that the following conditions
    * are met:
    * 1. Redistributions of source code must retain the above copyright
    * notice, this list of conditions and the following disclaimer.
    * 2. Redistributions in binary form must reproduce the above copyright
    * notice, this list of conditions and the following disclaimer in
    * the documentation and/or other materials provided with the
    * distribution.
    * 3. The end-user documentation included with the redistribution, if
    * any, must include the following acknowlegement:
    * "This product includes software developed by the
    * Apache Software Foundation (http://www.apache.org/)."
    * Alternately, this acknowlegement may appear in the software itself,
    * if and wherever such third-party acknowlegements normally appear.
    * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
    * Foundation" must not be used to endorse or promote products derived
    * from this software without prior written permission. For written
    * permission, please contact [email protected].
    * 5. Products derived from this software may not be called "Apache"
    * nor may "Apache" appear in their names without prior written
    * permission of the Apache Group.
    * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
    * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
    * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
    * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
    * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
    * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
    * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
    * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
    * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
    * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
    * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
    * SUCH DAMAGE.
    * ====================================================================
    * This software consists of voluntary contributions made by many
    * individuals on behalf of the Apache Software Foundation. For more
    * information on the Apache Software Foundation, please see
    * <http://www.apache.org/>.
    * Originally written by Jason Hunter, http://www.servlets.com.
    package num;
    import java.util.*;
    public class NumberGuessBean {
    int answer;
    boolean success;
    String hint;
    int numGuesses;
    String radiochoice;
    int lowerLimit=0;
    int upperLimit=100;
    String error;
    public NumberGuessBean() {
    reset();
    public void setGuess(String guess) {
    numGuesses++;
    int g;
    try {
    g = Integer.parseInt(guess);
    catch (NumberFormatException e) {
    g = -1;
    if (g == answer) {
    success = true;
    else if (g == -1) {
    hint = "a number next time";
    else if (g < answer) {
    hint = "higher";
    else if (g > answer) {
    hint = "lower";
    public void setRadio(String s) {
         radiochoice=s;
    public String getRadio() {
         return radiochoice;
    public void setLowerLimit( int lowerLimit) {
         this.lowerLimit=lowerLimit;
    public int getLowerLimit() {
         return lowerLimit;
    public void setUpperLimit(int upperLimit) {
         this.upperLimit=upperLimit;
    public int getUpperLimit() {
         return upperLimit;
    public boolean getSuccess() {
    return success;
    public String getHint() {
    return "" + hint;
    public String getError() {
         return ""+error;
    public int getNumGuesses() {
    return numGuesses;
    public void reset() {
         if (getRadio().equals("yes")) {
              answer = (int)(Math.random()*100);
         else {
              int i;
              i=(int)(Math.random()*upperLimit);
              if (i<lowerLimit) {
                   i=i+lowerLimit;
              answer=i;
         success = false;
    numGuesses = 0;

    implement synchronizable and createa constructor, then check it once again.

  • How to create an error message which doesn't allow submitting form ?

    Hi,
    is there a way to create an error message so that the user can't submit the form until the error is solved?
    On my form I am doing some validation checks when the user hits the button to submit the form via e-mail.
    So if something on the form isn't filleld out correctly the user gets an error message. But after the user has clicked ok on the error message he can still send the form.
    So I am searching for a way that he can only submit the form if he has resolved the problems.
    I tried with
    xfa.host.messageBox("material is not valid!" , "error", 0);
    but this only shows the error messagen and doesn't prevent the next step.
    Can I solve this with using a different type of error message, or user different parameters at the messageBox?
    Thanks for your help.
    Martin

    hi Martin Beyer
    try like this.
    in submit button CLICK event u have to right validation for fields which u want to check.
    example :  here iam validating two varibles.
    var sub=0;
    if(sub==0)
    if(fields2.item(i).rawValue == null && fields.item(i).rawValue != null)
         sub++;
         xfa.host.messageBox("Status of Achievement is Mandatory");
         xfa.host.setFocus(fields2.item(i));
         break;
    if(sub==0)
              var Repe = xfa.host.messageBox("Do you want to Submit now???", "Warning", 2, 2);
              if (Repe == 4)
                   sub=0;
              else
                   sub++;                              
    hope it will help you.

  • Help - Editor does not contain a main type error (Eclipse)

    Hello,
    I'm trying to run a Text input program out of the Eclipse program and I keep getting this Editor does not contain a main type error - can someone help me
    here's the code
    import java.io.File;
    import java.io.FileNotFoundException;
    import java.text.DecimalFormat;
    import java.util.Scanner;
    import uwcse.io.Input;
    public class FileInputExample {
         public static void main(String[] args) {
              // Create a Scanner to read the input file
              String fileName = new Input().readString("Input file name? ");
              System.out.println();
              Scanner scan;
              try {
                   scan = new Scanner(new File(fileName));
              } catch (FileNotFoundException e) {
                   System.out.println(fileName + " doesn't exist!");
                   return;
              // Read the file and count the number of occurences of A, B, ...
              int[] count = new int[26];
              while (scan.hasNextLine()) {
                   String line = scan.nextLine();
                   line = line.toLowerCase();
                   for (int i = 0; i < line.length(); i++) {
                        char c = line.charAt(i);
                        if (c >= 'a' && c <= 'z') {
                             count[c - 'a']++;
              scan.close();
              int length = 0;
              for (int i = 0; i < count.length; i++) {
                   length += count;
              // Display the statistics (as an histogram)
              DecimalFormat df = new DecimalFormat("0.00");
              for (int i = 0; i < count.length && length > 0; i++) {
                   double percent = count[i] * 100.0 / length;
                   String display = "" + (char) ('a' + i);
                   display += "(" + df.format(percent) + "%):\t";
                   for (int j = 1; j <= Math.round(percent); j++) {
                        display += "X";
                   System.out.println(display);
    }Thanks                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    First, note that your program uses a non-standard class, "uwcse.io.Input" which is not available to us. Normally that is a show stopper - in this case, it's not, as I was able to eliminate its use.
    Your program runs fine, so the error is an Eclipse error unrelated to Java.
    You need to ask for help at an Eclipse support site, not here, as these forums are Java language forums.

  • Problem creating JMS Error Destination via Ant in WLS 8.1

    We've got several JMS queues in our application. We create the server via Ant (using the wlconfig task).
    All is well, the queues have been working fine, until we try to add an error destination queue (after several attempts to handle the message, it'll be sent to the error queue for later troubleshooting).
    Here's an example of what we've got now:
    <create type="JMSQueue" name="batchQueue" property="jmsqueue">
        <set attribute="JNDIName" value="net.nike.cdm.batchQueue"/>
        <set attribute="RedeliveryLimit" value="5"/>
    </create>We create another queue to handle the errors, and then add an attribute to the first to point to the second:
    <create type="JMSQueue" name="batchErrorQueue" property="batchErrorQueue">
        <set attribute="JNDIName" value="net.nike.cdm.batchErrorQueue"/>
        <set attribute="RedeliveryLimit" value="5"/>
    </create>
    <create type="JMSQueue" name="batchQueue" property="jmsqueue">
        <set attribute="JNDIName" value="net.nike.cdm.batchQueue"/>
        <set attribute="RedeliveryLimit" value="5"/>
        <set attribute="ErrorDestination" value="${batchErrorQueue}"/>
    </create>This seems logical, because if we do this same exact operation via the console, the config.xml goes from this:
    <JMSQueue JNDIName="net.nike.cdm.batchQueue"
                Name="batchQueue" RedeliveryLimit="5"/>to this:
    <JMSQueue ErrorDestination="batchErrorQueue"
                JNDIName="net.nike.cdm.batchQueue"
                Name="batchQueue" RedeliveryLimit="5"/>
    <JMSQueue JNDIName="net.nike.cdm.batchErrorQueue" Name="batchErrorQueue"/>The error we get when trying to do this via Ant is:
    [wlconfig] A destination and its ErrorDestination must both be on the same JMS server. (The problematic destination is "batchQueue" on JMS server "cdmdomain"). Also, an ErrorDestination can not be null if the ExpirationPolicy for a destination is "redirect" and a destination can not specify itself as its ErrorDestination.Flipping on -verbose in Ant, the actual exception is:
    [wlconfig] SET -mbean cdmdomain:Name=batchQueue,Type=JMSQueue -property ErrorDestination cdmdomain:Name=batchErrorQueue,Type=JMSQue
    [wlconfig] A destination and its ErrorDestination must both be on the same JMS server. (The problematic destination is "batchQueue"
    s its ErrorDestination.
          [if] Error in class net.sf.antcontrib.logic.IfTask
    BUILD FAILED
    file:C:/viewstore/CDM_R6.5_Development/B2B_CDM/dev/build.xml:1399: Error invoking MBean command: java.lang.NullPointerException
           at weblogic.ant.taskdefs.management.WLConfig.handleException(WLConfig.java:567)
           at weblogic.ant.taskdefs.management.WLConfig.invokeCommand(WLConfig.java:381)
           at weblogic.ant.taskdefs.management.WLConfig.invokeSetCommand(WLConfig.java:235)
           at weblogic.ant.taskdefs.management.WLConfig.invokeCreateCommand(WLConfig.java:163)
           at weblogic.ant.taskdefs.management.WLConfig.executeCommands(WLConfig.java:106)
           at weblogic.ant.taskdefs.management.WLConfig.invokeCreateCommand(WLConfig.java:167)
           at weblogic.ant.taskdefs.management.WLConfig.executeCommands(WLConfig.java:106)
           at weblogic.ant.taskdefs.management.WLConfig.execute(WLConfig.java:89)
           at org.apache.tools.ant.Task.perform(Task.java:341)
           at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:117)
           at org.apache.tools.ant.Task.perform(Task.java:341)
           at net.sf.antcontrib.logic.IfTask.execute(Unknown Source)
           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
           at java.lang.reflect.Method.invoke(Method.java:324)
           at org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:147)
           at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:193)
           at org.apache.tools.ant.Task.perform(Task.java:341)
           at org.apache.tools.ant.Target.execute(Target.java:309)
           at org.apache.tools.ant.Target.performTasks(Target.java:336)
           at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
           at org.apache.tools.ant.Project.executeTargets(Project.java:1255)
           at org.apache.tools.ant.Main.runBuild(Main.java:609)
           at org.apache.tools.ant.Main.start(Main.java:196)
           at org.apache.tools.ant.Main.main(Main.java:235)So, my question is, what are we doing wrong? What IS the syntax to set an error destination for a JMS queue via Ant for WLS 8.1?
    Any help would be greatly appreciated
    Thanks,
    Douglas Bullard

    I get exactly the same problem - was a resolution to this issue found?
    Thanks,
    Richard Marriott
    [email protected]

  • When I click on firefox to open in my Mac, an error shows up: plug-in object Type error: id is undefined. When I click on the OK button, firefox opens. This never happened in FF 3. What is this?

    Also when I am in a site, such as an account, and click on a highlighted link, I get another error, {Javascript Application] can't create mcafee plug-in object: Type Error: components. classes [cid] is undefined. The only mcafee I had on my computer was the secure search and I uninstalled it, but I still get this message. When I click on the OK button with the error message, then the link opens up.

    Start Firefox in [[Safe Mode]] to check if one of the add-ons is causing the problem (switch to the DEFAULT theme: Tools > Add-ons > Appearance/Themes).
    * Don't make any changes on the Safe mode start window.
    See:
    * [[Troubleshooting extensions and themes]]

  • Inconsistent FOTY0001: type error while  using translateFromNative

    I am getting FOTY0001: type error while using translateFromNative function in assign activity.
    This error happens only in the below scenarios:
    1. Create a BPEL process with file input adapter that accepts simple xml string as input and accepts files like input*.txt.
    2. Create a simple XSD(Fixed Length native XSD) and convert the simple string to XML using translateFromNative function and copy it into a variable.
    3. Switch off the process
    4. Put atleast 10 input*.txt files in the folder and switch on the process.
    This error doesn't happen when I put one file at time.. Even when I put multiple files, the error happens for few instances inconsitently.
    Here is our assign activity
    <assign name="Assign_1">
    <copy>
    <from variable="PlantChemMsg" part="Chemistry"
    query="/ns2:Chemistry/ns2:chemistryString"/>
    <to variable="tempChemistryString"/>
    </copy>
    <copy>
    <from expression="ora:translateFromNative(bpws:getVariableData('tempChemistryString'), 'ChemistryLegacy1.xsd', 'Root-Element')"/>
    <to variable="ChemistryOut" part="Root-Element"
    query="/ns8:Root-Element"/>
    </copy>
    </assign>
    Here is the error in group log:
    ORABPEL-09500
    XPath expression failed to execute.
    Error while processing xpath expression, the expression is "ora:translateFromNative(string(bpws:getVariableData('tempChemistryString')), 'ChemistryLegacy1.xsd', 'Root-Element')", the reason is FOTY0001: type error.
    Please verify the xpath query.
         at com.collaxa.cube.xml.xpath.BPELXPathUtil.evaluate(BPELXPathUtil.java:206)
         at com.collaxa.cube.engine.ext.wmp.BPELAssignWMP.evalFromValue(BPELAssignWMP.java:679)
         at com.collaxa.cube.engine.ext.wmp.BPELAssignWMP.__executeStatements(BPELAssignWMP.java:143)
         at com.collaxa.cube.engine.ext.wmp.BPELActivityWMP.perform(BPELActivityWMP.java:195)
         at com.collaxa.cube.engine.CubeEngine.performActivity(CubeEngine.java:3705)
         at com.collaxa.cube.engine.CubeEngine.handleWorkItem(CubeEngine.java:1654)
    Any help would be appreciated. Thanks.
    -Sridhar

    James,
    Thanks & Sorry for the late reply.
    I used assign activity just because I have only one source and target element.
    This error happens even with transform activity.
    Also, all the input messages are same. So It is definitely not the issue with the input message.
    One observation I did is:
    The error doesn't occur when I use like below(Full Http url):
    ora:translateFromNative(string(bpws:getVariableData('tempChemistryString')), 'http://psc-d674943.hdq.uss.com:7777/orabpel/default/TestTranslateFromNativeError/1.0/ChemistryLegacy1.xsd
    ', 'Root-Element')
    But occurs when I use like below.
    ora:translateFromNative(string(bpws:getVariableData('tempChemistryString')), 'ChemistryLegacy1.xsd', 'Root-Element')

  • Create type not working

    I'm following the 8.1.6 documentation to create type, but it always returns me the error.
    My references are from :
    http://technet.oracle.com/docs/products/oracle8i/doc_library/817_doc/appdev.817/a76976/adobjmng.htm
    The script is:
    CREATE TYPE location (
    building_no NUMBER,
    city VARCHAR2(40) );
    The error is:
    1/15 PLS-00103: Encountered the symbol "(" when expecting one of the following:
    ; is authid as compress compiled wrapped
    4/0 PLS-00103: Encountered the symbol "end-of-file" when expecting one of the following:
    pragma
    May I know that how can I work around it?
    I had tried earlier another syntex successfully:
    create type typeName as object(definition....).
    May I also know what's the difference between these 2 commands?
    Thanks in advance
    Minny

    I think there's a mistake in the documentation. I may be wrong but I think it should always be CREATE TYPE x AS OBJECT (...)

  • Create Type as Object not working in linux oracle 11g

    Pleae refer to the following simple create type as object statement.
    CREATE OR REPLACE TYPE EC_VIEWABLETYPES as object ( CASE_TYPE_ID NUMBER)
    It is working in oracle 11g and windows server 2008 environment.
    But it is not working in oracle 11g with linux environment.
    I am executing this statement as dynamic sql as follows
    CREATE OR REPLACE PROCEDURE TEMP_SP
    AS
    BEGIN
    DECLARE vcType VARCHAR2(30);
    BEGIN
    SELECT OBJECT_TYPE into vcType FROM USER_OBJECTS
    WHERE OBJECT_NAME='EC_VIEWABLETYPES' AND OBJECT_TYPE='TYPE';
    EXCEPTION
    WHEN NO_DATA_FOUND THEN
    EXECUTE IMMEDIATE 'CREATE OR REPLACE TYPE EC_VIEWABLETYPES as object ( CASE_TYPE_ID NUMBER) ';
    COMMIT;
    RETURN;
    END;
    END;
    exec TEMP_SP
    please let me know what i am missing ?

    And error is:ORA-00600: internal error code, arguments: [kothc_uc_md5:lxerr], [], [], [], [], [], [], [], [], [], [], []
    ORA-06512: at "ATIPAGENT.TEMP_SP", line 10
    ORA-01403: no data found
    ORA-06512: at line 1
    ..Query:exec TEMP_SP...Previous Query:CREATE OR REPLACE PROCEDURE TEMP_SP AS BEGIN DECLARE vcType VARCHAR2(30); BEGIN
    SELECT OBJECT_TYPE into vcType FROM USER_OBJECTS
    WHERE OBJECT_NAME='EC_VIEWABLETYPES' AND OBJECT_TYPE='TYPE'; EXCEPTION WHEN NO_DATA_FOUND THEN
    EXECUTE IMMEDIATE 'CREATE OR REPLACE TYPE EC_VIEWABLETYPES as object ( CASE_TYPE_ID NUMBER) ';
    COMMIT;
    RETURN;
    END;
    END;

  • JDBC/SQLJ Team - Please respond - invalid column type error

    Hi, I have posted several messages regarding problems using SQL/J to call out a stored packaged function that returns a ref cursor, but haven't gotten one response. I have yet a new problem with it. JDBC team, please acknowledge!
    I change the way I obtain a connection to the database from using the Oracle.connect along with a properties file, to now using a DataSource connection pool. As a result, I am constantly getting a SQLException: Invalid column type error. If I change the call to the stored function to a query in the SQLJ code, it's fine. What's going on??
    A previous message I wrote stated I was constantly getting a "closed statement" error when I tried to call the next method of the iterator. I corrected this by removing the finally clause in the generated JDBC code that released the execution context.
    Again, the environment is JDK1.2.2, SQLJ 8.1.6 SDK, JDBC 8.1.6 thin, all on NT.
    Thanks
    David

    I am getting the same error message - Invalid Column Type. I am creating a Default Context by calling Oracle.getConnection(connection) passing in an instance of my own connection class that basically delegates to the OracleConnection. We wrapped the Connection so that we could trap and recover from lost database connections.
    My environment is Solaris 2.6, Oracle 7.3.4 with Sqlj 8.0.5.
    Thanks!
    [email protected]
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by David Christopher ([email protected]):
    Hi, I have posted several messages regarding problems using SQL/J to call out a stored packaged function that returns a ref cursor, but haven't gotten one response. I have yet a new problem with it. JDBC team, please acknowledge!
    I change the way I obtain a connection to the database from using the Oracle.connect along with a properties file, to now using a DataSource connection pool. As a result, I am constantly getting a SQLException: Invalid column type error. If I change the call to the stored function to a query in the SQLJ code, it's fine. What's going on??
    A previous message I wrote stated I was constantly getting a "closed statement" error when I tried to call the next method of the iterator. I corrected this by removing the finally clause in the generated JDBC code that released the execution context.
    Again, the environment is JDK1.2.2, SQLJ 8.1.6 SDK, JDBC 8.1.6 thin, all on NT.
    Thanks
    David<HR></BLOCKQUOTE>
    null

Maybe you are looking for