Depoly error ORA-29532, ORA-06512

Hi all,
When I deploying tables and mappings, I get the following error message:
ORA-29532: Java call terminated by uncaught Java exception: oracle.jdbc.driver.OracleSQLException: ORA-28239: no key provided
ORA-06512: at "SYS.DBMS_OBFUSCATION_TOOLKIT_FFI", line 40
ORA-06512: at "SYS.DBMS_OBFUSCATION_TOOLKIT", line 153
ORA-06512: at "OWBRTR2.WB_RT_SERVICE_CONTROL", line 286
ORA-06512: at "OWBRTR2.WB_RT_SERVICE_CONTROL", line 314
ORA-06512: at line 1
We are in RAC environment. I did some search for similar error messages, and upon the previous replies, I copy rtrepos.properties to all the cluster nodes. Actually, I get this error message after the first couple of tables deployments, which are all going correctly. It seems this error comes out randomly.
any idea of how to fix it?
thanks so much.

Hi,
you told that error appears randomly.
I guess that this problem occurs when you connect from OWB to non-primary RAC node (primary/first in sense of OWB repository - it is node where OWB repos.assistant started for initial creating of repository).
So when you guarantee connecting from OWB to primary node you maybe resolve problem.
Minimal db instance configuration is disabling load balancing at server and client side.
Regards,
Oleg

Similar Messages

  • Oracle Database Web Service Client using UTL_DBWS :: ORA-29532 Error

    Hi,
    I have the Oracle Database 10.2.0.1.0 :-
    SQL> select * from v$version;
    BANNER
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod
    PL/SQL Release 10.2.0.1.0 - Production
    CORE    10.2.0.1.0      Production
    TNS for 32-bit Windows: Version 10.2.0.1.0 - Production
    NLSRTL Version 10.2.0.1.0 - ProductionI have written a simple Web Services Client using the classes gfrom the UTL_DBWS package. I loaded the JAR file dbwsclient.jar in the SYS Schema and I am trying to use it in the USF Schema.
    However, I have hit this error & I ma unable to proceed :-
    SQL>  select get_stock_price from dual;
    select get_stock_price from dual
    ERROR at line 1:
    ORA-29532: Java call terminated by uncaught Java exception:
    java.lang.IllegalAccessException: javax.xml.rpc.ServiceException:
    java.security.AccessControlException: the Permission
    (java.lang.RuntimePermission getClassLoader) has not been granted to USF. The
    PL/SQL to grant this is dbms_java.grant_permission( 'USF',
    'SYS:java.lang.RuntimePermission', 'getClassLoader', '' )
    ORA-06512: at "USF.UTL_DBWS", line 193
    ORA-06512: at "USF.UTL_DBWS", line 190
    ORA-06512: at "USF.GET_STOCK_PRICE", line 17Can you please help me with this ?
    Regards,
    Sandeep

    Hi,
    The error message said
    the Permission(java.lang.RuntimePermission getClassLoader) has not been granted to USF.
    I'd follow the suggestion
    The PL/SQL to grant this is dbms_java.grant_permission( 'USF','SYS:java.lang.RuntimePermission', 'getClassLoader', '' )
    In case you have not done so, consult the Callout Users Guide @
    http://www.oracle.com/technology/sample_code/tech/java/jsp/callout_users_guide.htm
    Kuassi http://db360.blogspot.com

  • ORA-29532 error when invoking SSL web services using UTL_DBWS

    Web Service gurus,
    The WSDL for web services is as follows -
    <definitions name="Webservice" targetNamespace="http://webservice.airclic.com/">

    <types>

    <xs:schema targetNamespace="http://webservice.airclic.com/" version="1.0">
    <xs:element name="Exception" type="tns:Exception"/>
    <xs:element name="listenForEvents" type="tns:listenForEvents"/>
    <xs:element name="listenForEventsResponse" type="tns:listenForEventsResponse"/>
    <xs:element name="sendAuthenticationResponse" type="tns:sendAuthenticationResponse"/>
    <xs:element name="sendAuthenticationResponseResponse" type="tns:sendAuthenticationResponseResponse"/>
    <xs:element name="upsertTask" type="tns:upsertTask"/>
    <xs:element name="upsertTaskResponse" type="tns:upsertTaskResponse"/>

    <xs:complexType name="upsertTask">

    <xs:sequence>
    <xs:element minOccurs="0" name="task" type="tns:Task"/>
    </xs:sequence>
    </xs:complexType>

    <xs:complexType name="Task">

    <xs:complexContent>

    <xs:extension base="tns:PlatformObject">

    <xs:sequence>
    <xs:element minOccurs="0" name="status" type="tns:status"/>
    <xs:element minOccurs="0" name="assignee" type="xs:string"/>
    <xs:element minOccurs="0" name="assigneeUserId" type="xs:string"/>
    <xs:element minOccurs="0" name="name" type="xs:string"/>
    <xs:element minOccurs="0" name="type" type="xs:string"/>
    <xs:element minOccurs="0" name="creationTimestamp" type="xs:long"/>
    <xs:element minOccurs="0" name="updateTimestamp" type="xs:long"/>
    <xs:element minOccurs="0" name="startTimestamp" type="xs:long"/>
    <xs:element minOccurs="0" name="endTimestamp" type="xs:long"/>
    <xs:element minOccurs="0" name="source" type="tns:source"/>
    <xs:element minOccurs="0" name="notes" type="xs:string"/>
    <xs:element minOccurs="0" name="priority" type="xs:int"/>
    <xs:element minOccurs="0" name="penalized" type="xs:boolean"/>
    <xs:element minOccurs="0" name="hasSLA" type="xs:boolean"/>
    <xs:element minOccurs="0" name="location" type="tns:Location"/>
    <xs:element minOccurs="0" name="windowStartTimestamp" type="xs:long"/>
    <xs:element minOccurs="0" name="windowEndTimestamp" type="xs:long"/>
    <xs:element minOccurs="0" name="signee" type="xs:string"/>
    <xs:element minOccurs="0" name="signature" type="xs:base64Binary"/>
    <xs:element minOccurs="0" name="customerId" type="xs:string"/>
    <xs:element minOccurs="0" name="travelTime" type="xs:int"/>
    <xs:element minOccurs="0" name="expirationTimestamp" type="xs:long"/>
    <xs:element minOccurs="0" name="parentId" type="xs:long"/>
    <xs:element minOccurs="0" name="externalTimezone" type="xs:string"/>
    <xs:element minOccurs="0" name="localTimeOffset" type="xs:long"/>
    <xs:element minOccurs="0" name="consignee" type="xs:string"/>
    <xs:element minOccurs="0" name="assignmentWindowStartTimestamp" type="xs:long"/>
    <xs:element minOccurs="0" name="assignmentWindowEndTimestamp" type="xs:long"/>
    </xs:sequence>
    </xs:extension>
    </xs:complexContent>
    </xs:complexType>

    <xs:complexType name="PlatformObject">

    <xs:sequence>
    <xs:element name="id" type="xs:string"/>
    <xs:element name="externalId" type="xs:string"/>
    <xs:element name="revision" type="xs:long"/>
    <xs:element name="platformDateCreated" type="xs:dateTime"/>
    <xs:element name="platformDateUpdated" type="xs:dateTime"/>
    <xs:element name="objectName" type="xs:string"/>
    <xs:element maxOccurs="unbounded" name="extendedAttributes" type="tns:ExtendedAttribute"/>
    </xs:sequence>
    </xs:complexType>

    <xs:complexType name="Location">

    <xs:sequence>
    <xs:element minOccurs="0" name="name" type="xs:string"/>
    <xs:element minOccurs="0" name="description" type="xs:string"/>
    <xs:element minOccurs="0" name="type" type="xs:string"/>
    <xs:element minOccurs="0" name="address" type="tns:Address"/>
    <xs:element minOccurs="0" name="position" type="tns:Position"/>
    <xs:element minOccurs="0" name="geofenceId" type="xs:long"/>
    <xs:element minOccurs="0" name="capcity" type="xs:int"/>
    <xs:element minOccurs="0" name="contact" type="xs:string"/>
    <xs:element minOccurs="0" name="email" type="xs:string"/>
    </xs:sequence>
    </xs:complexType>

    <xs:complexType name="Address">

    <xs:sequence>
    <xs:element minOccurs="0" name="addressLine" type="xs:string"/>
    <xs:element minOccurs="0" name="addressLine2" type="xs:string"/>
    <xs:element minOccurs="0" name="city" type="xs:string"/>
    <xs:element minOccurs="0" name="secondaryCity" type="xs:string"/>
    <xs:element minOccurs="0" name="subdivision" type="xs:string"/>
    <xs:element minOccurs="0" name="postalCode" type="xs:string"/>
    <xs:element minOccurs="0" name="country" type="xs:string"/>
    <xs:element minOccurs="0" name="phone" type="xs:string"/>
    <xs:element minOccurs="0" name="freeform" type="xs:string"/>
    </xs:sequence>
    </xs:complexType>

    <xs:complexType name="Position">

    <xs:sequence>
    <xs:element name="latitude" type="xs:double"/>
    <xs:element name="longitude" type="xs:double"/>
    </xs:sequence>
    </xs:complexType>

    <xs:complexType name="ExtendedAttribute">

    <xs:sequence>
    <xs:element name="name" type="xs:string"/>
    <xs:element name="value" type="xs:anyType"/>
    </xs:sequence>
    </xs:complexType>

    <xs:complexType name="upsertTaskResponse">

    <xs:sequence>
    <xs:element minOccurs="0" name="task" type="tns:Task"/>
    </xs:sequence>
    </xs:complexType>

    <xs:complexType name="Exception">

    <xs:sequence>
    <xs:element minOccurs="0" name="message" type="xs:string"/>
    </xs:sequence>
    </xs:complexType>

    <xs:complexType name="listenForEvents">

    <xs:sequence>
    <xs:element minOccurs="0" name="listenParams" type="tns:ListenParams"/>
    </xs:sequence>
    </xs:complexType>

    <xs:complexType name="ListenParams">

    <xs:sequence>
    <xs:element name="queueName" type="xs:string"/>
    <xs:element name="resendLast" type="xs:boolean"/>
    </xs:sequence>
    </xs:complexType>

    <xs:complexType name="listenForEventsResponse">

    <xs:sequence>
    <xs:element maxOccurs="unbounded" minOccurs="0" name="events" type="tns:Event"/>
    </xs:sequence>
    </xs:complexType>

    <xs:complexType name="Event">

    <xs:sequence>
    <xs:element name="id" type="xs:string"/>
    </xs:sequence>
    </xs:complexType>

    <xs:complexType name="AuthenticationRequestEvent">

    <xs:complexContent>

    <xs:extension base="tns:RequestEvent">

    <xs:sequence>
    <xs:element name="username" type="xs:string"/>
    <xs:element minOccurs="0" name="password" type="xs:string"/>
    </xs:sequence>
    </xs:extension>
    </xs:complexContent>
    </xs:complexType>

    <xs:complexType name="RequestEvent">

    <xs:complexContent>

    <xs:extension base="tns:Event">

    <xs:sequence>
    <xs:element name="correlationId" type="xs:string"/>
    <xs:element name="response" type="tns:Response"/>
    </xs:sequence>
    </xs:extension>
    </xs:complexContent>
    </xs:complexType>

    <xs:complexType name="Response">

    <xs:sequence>
    <xs:element name="correlationId" type="xs:string"/>
    </xs:sequence>
    </xs:complexType>

    <xs:complexType name="AuthenticationResponse">

    <xs:complexContent>

    <xs:extension base="tns:Response">

    <xs:sequence>
    <xs:element name="success" type="xs:boolean"/>
    <xs:element name="username" type="xs:string"/>
    <xs:element minOccurs="0" name="password" type="xs:string"/>
    <xs:element minOccurs="0" name="firstName" type="xs:string"/>
    <xs:element minOccurs="0" name="lastName" type="xs:string"/>
    <xs:element minOccurs="0" name="email" type="xs:string"/>
    <xs:element minOccurs="0" name="active" type="xs:boolean"/>
    <xs:element minOccurs="0" name="timeZone" type="xs:string"/>
    <xs:element minOccurs="0" name="group" type="xs:string"/>
    <xs:element minOccurs="0" name="role" type="xs:string"/>
    <xs:element minOccurs="0" name="errorCode" type="xs:string"/>
    <xs:element minOccurs="0" name="errorMessage" type="xs:string"/>
    </xs:sequence>
    </xs:extension>
    </xs:complexContent>
    </xs:complexType>

    <xs:complexType name="DispatchEvent">

    <xs:complexContent>

    <xs:extension base="tns:Event">

    <xs:sequence>
    <xs:element name="type" type="tns:eventType"/>
    <xs:element minOccurs="0" name="previousTask" type="tns:Task"/>
    <xs:element name="changeTask" type="tns:Task"/>
    <xs:element minOccurs="0" name="newTask" type="tns:Task"/>
    </xs:sequence>
    </xs:extension>
    </xs:complexContent>
    </xs:complexType>

    <xs:complexType name="sendAuthenticationResponse">

    <xs:sequence>
    <xs:element minOccurs="0" name="authenticationResponse" type="tns:AuthenticationResponse"/>
    </xs:sequence>
    </xs:complexType>

    <xs:complexType name="sendAuthenticationResponseResponse">
    <xs:sequence/>
    </xs:complexType>

    <xs:simpleType name="status">

    <xs:restriction base="xs:string">
    <xs:enumeration value="NULL"/>
    <xs:enumeration value="UNASSIGNED"/>
    <xs:enumeration value="ASSIGNED"/>
    <xs:enumeration value="RECEIVED"/>
    <xs:enumeration value="ACCEPTED"/>
    <xs:enumeration value="REJECTED"/>
    <xs:enumeration value="IN_PROGRESS"/>
    <xs:enumeration value="POSTPONED"/>
    <xs:enumeration value="COMPLETED"/>
    <xs:enumeration value="CANCELED"/>
    <xs:enumeration value="CLEARED"/>
    <xs:enumeration value="EXPIRED"/>
    </xs:restriction>
    </xs:simpleType>

    <xs:simpleType name="source">

    <xs:restriction base="xs:string">
    <xs:enumeration value="NULL"/>
    <xs:enumeration value="DISPATCH"/>
    <xs:enumeration value="SYSTEM"/>
    <xs:enumeration value="ENDUSER"/>
    </xs:restriction>
    </xs:simpleType>

    <xs:simpleType name="eventType">

    <xs:restriction base="xs:string">
    <xs:enumeration value="TaskCreated"/>
    <xs:enumeration value="TaskUpdated"/>
    <xs:enumeration value="TaskAssigned"/>
    <xs:enumeration value="TaskDeleted"/>
    <xs:enumeration value="TaskStatusChanged"/>
    <xs:enumeration value="TaskConflicted"/>
    </xs:restriction>
    </xs:simpleType>
    </xs:schema>
    </types>

    <message name="Webservice_listenForEvents">
    <part element="tns:listenForEvents" name="listenForEvents"/>
    </message>

    <message name="Webservice_sendAuthenticationResponseResponse">
    <part element="tns:sendAuthenticationResponseResponse" name="sendAuthenticationResponseResponse"/>
    </message>

    <message name="Webservice_sendAuthenticationResponse">
    <part element="tns:sendAuthenticationResponse" name="sendAuthenticationResponse"/>
    </message>

    <message name="Webservice_upsertTaskResponse">
    <part element="tns:upsertTaskResponse" name="upsertTaskResponse"/>
    </message>

    <message name="Exception">
    <part element="tns:Exception" name="Exception"/>
    </message>

    <message name="Webservice_upsertTask">
    <part element="tns:upsertTask" name="upsertTask"/>
    </message>

    <message name="Webservice_listenForEventsResponse">
    <part element="tns:listenForEventsResponse" name="listenForEventsResponse"/>
    </message>

    <portType name="Webservice">

    <operation name="listenForEvents" parameterOrder="listenForEvents">
    <input message="tns:Webservice_listenForEvents"/>
    <output message="tns:Webservice_listenForEventsResponse"/>
    <fault message="tns:Exception" name="Exception"/>
    </operation>

    <operation name="sendAuthenticationResponse" parameterOrder="sendAuthenticationResponse">
    <input message="tns:Webservice_sendAuthenticationResponse"/>
    <output message="tns:Webservice_sendAuthenticationResponseResponse"/>
    <fault message="tns:Exception" name="Exception"/>
    </operation>

    <operation name="upsertTask" parameterOrder="upsertTask">
    <input message="tns:Webservice_upsertTask"/>
    <output message="tns:Webservice_upsertTaskResponse"/>
    <fault message="tns:Exception" name="Exception"/>
    </operation>
    </portType>

    <binding name="WebserviceBinding" type="tns:Webservice">
    <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>

    <operation name="listenForEvents">
    <soap:operation soapAction=""/>

    <input>
    <soap:body use="literal"/>
    </input>

    <output>
    <soap:body use="literal"/>
    </output>

    <fault name="Exception">
    <soap:fault name="Exception" use="literal"/>
    </fault>
    </operation>

    <operation name="sendAuthenticationResponse">
    <soap:operation soapAction=""/>

    <input>
    <soap:body use="literal"/>
    </input>

    <output>
    <soap:body use="literal"/>
    </output>

    <fault name="Exception">
    <soap:fault name="Exception" use="literal"/>
    </fault>
    </operation>

    <operation name="upsertTask">
    <soap:operation soapAction=""/>

    <input>
    <soap:body use="literal"/>
    </input>

    <output>
    <soap:body use="literal"/>
    </output>

    <fault name="Exception">
    <soap:fault name="Exception" use="literal"/>
    </fault>
    </operation>
    </binding>

    <service name="Webservice">

    <port binding="tns:WebserviceBinding" name="WebservicePort">
    <soap:address location="https://webservice.mp.b.airclic.com:443/webservice/product/fieldservice/v1/Webservice"/>
    </port>
    </service>
    </definitions>
    Following is the pl/sql code using UTL_DBWS
    DECLARE
    l_service UTL_DBWS.service;
    l_call UTL_DBWS.call;
    l_wsdl_url VARCHAR2(32767);
    l_namespace VARCHAR2(32767);
    l_service_qname UTL_DBWS.qname;
    l_port_qname UTL_DBWS.qname;
    l_operation_qname UTL_DBWS.qname;
    l_input_params UTL_DBWS.anydata_list;
    soap_request xmltype;
    l_result xmltype;
    result_output VARCHAR2(32767);
    BEGIN
    l_wsdl_url := 'https://webservice.mp.b.airclic.com/webservice/product/fieldservice/v1/Webservice?WSDL';
    l_namespace := 'http://webservice.airclic.com/';
    dbms_output.put_line ('1');
    l_service_qname := UTL_DBWS.to_qname(l_namespace, 'Webservice');
    dbms_output.put_line ('2');
    l_port_qname := UTL_DBWS.to_qname(l_namespace, 'WebservicePort');
    dbms_output.put_line ('3');
    l_operation_qname := UTL_DBWS.to_qname(l_namespace, 'sendAuthenticationResponse');
    dbms_output.put_line ('4');
    l_service := UTL_DBWS.create_service (
    wsdl_document_location => URIFACTORY.getURI(l_wsdl_url),
    service_name => l_service_qname);
    dbms_output.put_line ('5');
    l_call := UTL_DBWS.create_call (
    service_handle => l_service,
    port_name => l_port_qname,
    operation_name => l_operation_qname);
    dbms_output.put_line ('6');
    UTL_DBWS.SET_PROPERTY(l_call,'USERNAME',<username to access wsdl>);
    dbms_output.put_line ('7');
    UTL_DBWS.SET_PROPERTY(l_call,'PASSWORD',<password>);
    dbms_output.put_line ('8');
    utl_dbws.set_property(l_call,'OPERATION_STYLE', 'document');
    dbms_output.put_line ('9');
    soap_request := xmltype.createxml('<?xml version="1.0" encoding="UTF-8"?>
    <S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
    <S:Body>
    <ns2:sendAuthenticationResponse xmlns:ns2="http://webservice.airclic.com/">
    <authenticationResponse>
    <correlationId>4646735802698040711:[email protected]</correlationId>
    <success>true</success>
    <username>changlanih</username>
    <password>abcd1234</password>
    <firstName>hero</firstName>
    <lastName>changlani</lastName>
    <email>[email protected]</email>
    <active>true</active>
    <timeZone>eastern</timeZone>
    <group>Northeast</group>
    <role>Service Manager</role>
    </authenticationResponse>
    </ns2:sendAuthenticationResponse>
    </S:Body>
    </S:Envelope>');
    l_result := UTL_DBWS.invoke ( l_call,soap_request);
    UTL_DBWS.release_call (call_handle => l_call);
    UTL_DBWS.release_service (service_handle => l_service);
    result_output := l_result.getstringval;
    dbms_output.put_line('web svc output ===> ' || result_output);
    END;
    Following is the error from pl/sql code
    1
    2
    3
    4
    DECLARE
    ERROR at line 1:
    ORA-29532: Java call terminated by uncaught Java exception: java.lang.IllegalAccessException: error.build.wsdl.model: oracle.j2ee.ws.common.tools.api.WsdlValidationException:
    Failed to read WSDL from https://webservice.mp.b.airclic.com/webservice/product/fieldservice/v1/Webservice?WSDL:
    HTTP connection error code is 401
    ORA-06512: at "SYS.UTL_DBWS", line 193
    ORA-06512: at "SYS.UTL_DBWS", line 190
    ORA-06512: at line 20
    Notes
    The program fails at following line of code -
    l_service := UTL_DBWS.create_service (
    wsdl_document_location => URIFACTORY.getURI(l_wsdl_url),
    service_name => l_service_qname);
    Web services are SSL.
    The WSDL is at https location and needs username/password for access. The username/password to access WSDL are set using UTL_DBWS.SET_PROPERTY
    To access the SSL site, I have imported the CA in Oracle Wallet, JVM home and JDK home.
    Can anyone tell me what am I doing wrong here. I am not able to even establish connection to web service host.
    This is very frustrating - Oracle has no examples on how to access a SSL Web Service (that needs authentication) from Database.
    This is effecting our project deadlines ......... any help would be greatly appreciated.
    Thanks.

    Hi,
    I presume your Web Service needs HTTP (BASIC?) Authentication.
    All this needs is setting the following 2 properties, which as can be seen, you are setting....
    UTL_DBWS.set_property(l_call, 'USERNAME', '<username>');
    UTL_DBWS.set_property(l_call, 'PASSWORD', '<pwd>');
    This should work as long as your DBWS Callout Utility was downloaded from OTN after June 2008, and it's version is atleast 10.1.3.1.
    Following is a sample code snippet that was tested successfully for this :
    Declare
    l_service UTL_DBWS.service;
    l_call UTL_DBWS.call;
    l_result sys.XMLTYPE;
    l_request sys.XMLTYPE;
    BEGIN
    l_service := UTL_DBWS.create_service(null);
    l_call := UTL_DBWS.create_call(l_service);
    UTL_DBWS.set_target_endpoint_address(l_call, 'http://xxx.oracle.com:8888/basic/MyWebService1SoapHttpPort');
    UTL_DBWS.set_property(l_call, 'USERNAME', 'username');
    UTL_DBWS.set_property(l_call, 'PASSWORD', 'pwd');
    UTL_DBWS.set_property(l_call, 'OPERATION_STYLE', 'document');
    UTL_DBWS.set_property(l_call, 'SOAPACTION_USE', 'true');
    UTL_DBWS.set_property(l_call, 'SOAPACTION_URI', 'http://xxx.oracle.com:8888/basic/MyWebService1SoapHttpPort');
    l_request := XMLTYPE('<Z_CENTRICITY_GET_DOCLIST
    xmlns:urn="urn:sap-com:document:sap:rfc:functions">' ||
    '<I_INCLUDE_OLD_VERSIONS></I_INCLUDE_OLD_VERSIONS>' ||
    '<I_INSTITUTION>0001</I_INSTITUTION>' ||
    '<I_PATIENT_NR>0000000181</I_PATIENT_NR>' ||
    '</Z_CENTRICITY_GET_DOCLIST>');
    l_result := UTL_DBWS.invoke(l_call, l_request);
    UTL_DBWS.release_call (call_handle => l_call);
    UTL_DBWS.release_service (service_handle => l_service);
    EXCEPTION
    WHEN OTHERS THEN
    dbms_output.put_line(sqlcode || ' ' || sqlerrm);
    END;
    Hope this helps,
    Yogesh

  • SDO_UTIL.TO_WKTGEOMETRY Error ORA-29532

    Hello everyone,
    when I try to execute this sql code
    DECLARE
    wkbgeom BLOB;
    wktgeom CLOB;
    val_result VARCHAR2(5);
    geom_result SDO_GEOMETRY;
    geom SDO_GEOMETRY;
    BEGIN
    select * into wktgeom
    from system.app;
    geom_result := SDO_UTIL.FROM_WKTGEOMETRY(wktgeom);
    wktgeom := SDO_UTIL.TO_WKTGEOMETRY(geom_result);
    DBMS_OUTPUT.PUT_LINE('To WKT geometry result = ' || TO_CHAR(wktgeom));
    END;
    I've got this error:
    ORA-29532: Java call terminated by uncaught Java exception: java.lang.RuntimeException: oracle.spatial.util.GeometryExceptionWithContext: Unsupported collection element: elemInfo type 2003
    ORA-06512: at "MDSYS.SDO_UTIL", line 2421
    ORA-06512: at "MDSYS.SDO_UTIL", line 2443
    ORA-06512: at line 13
    the wktgeom is a GEOMETRYCOLLECTION() of polygon
    someone can help me?

    Can you supply the SDO_GTYPE and SDO_ELEM_INFO for the geometry you are trying to convert please?
    regards
    Simon

  • Getting ORA-29532 NullPointerException Error

    Running Oracle 8.1.7.2.0 and installed the JVM by running initjvm.sql script. Got the following error in the trace file:
    java.lang.NullPointerException
    at oracle.jdbc.xa.XANative.start(XANative.java)
    at oracle.jdbc.xa.server.OracleWrapXAResource.start(OracleWrapXAResource.java)
    Have a Web Logic web server that shows the following in the error logs:
    java.sql.SQLException: ORA-29532: Java call terminated by uncaught Java
    exception: java.lang.NullPointerException ORA-06512: at "SYS.JAVA_XA", line 0
    XA error: XAER_RMFAIL : Resource manager is unavailable start() failed on
    resource '[system]Pool' Internal error: XAResource '[system]Pool' is unavailable> .
    Puzzled as to why the Web Logic server loses connection to the database. What could possibly cause the Resource Manager to lose connections? The web server did not go down nor is it a network issue between the Web Server and the database server.

    There is a bug in the Java class:
    oracle.ewt.lwAWT.lwWindow.laf.TitleBar
    In the method:
    _createComponents
    That class is obviously from an Oracle library. So, one of two things happened:
    1) The Oracle code itself has a bug.
    2) Code written by someone else using that Oracle class made improper use of the Oracle class.
    I would guess #1... a NullPointerException should never arise in good code, even when it is used in an unexpected way.
    If you have a contract with Oracle (or if you are Oracle) for this library, you should report this problem to your contact for this library.
    Yes, it may be a language problem, but there is no way anyone in this discussion group can ever be sure of that without looking at the source for that Oracle class. Since it's probably a closed library, that's not bloody likely.
    So, go call the people who sold you that library and raise some hell (or maybe just some heck). Good luck!

  • Simple geometry gets ORA-29532 error on all SDO_GEOM calls

    Hi all,
    I have a single point in a table such that the query:
    select SDO_GEOM.VALIDATE_GEOMETRY(geomObj, 0.05) from testvalid;
    /* Returns */
    SDO_GEOM.VALIDATE_GEOMETRY(GEOMOBJ,0.05)
    'TRUE'However the query:
    select SDO_GEOM.VALIDATE_GEOMETRY_with_context(geomObj, 0.05) from testvalid;Receives the following error:
    ORA-29532: Java call terminated by uncaught Java exception: java.lang.NumberFormatException: empty String
    ORA-06512: at "MDSYS.SDO_3GL", line 658
    ORA-06512: at "MDSYS.SDO_GEOM", line 519
    ORA-06512: at "MDSYS.SDO_GEOM", line 558
    ORA-06512: at line 1The data itself is a single sdo_point:
    select GEOMOBJ from testvalid;
    /* Returns: */
    GEOMOBJ
    '(3001, , (174.092329032787, 129.420551704918, -71.2857142857142), , )'I think that the problem is something to do with the precision of the stored X, Y and Z values in the point because if I run the following:
    update TESTVALID set GEOMOBJ.sdo_point.x = cast(GEOMOBJ.sdo_point.x as number(8,3));
    select SDO_GEOM.VALIDATE_GEOMETRY_with_context(geomObj, 0.05) from testvalid;
    /* Returns: */
    SDO_GEOM.VALIDATE_GEOMETRY_WITH_CONTEXT(GEOMOBJ,0.05)
    'TRUE'Similarly, running a direct comparison from an object made on the fly from the point's text representation works fine:
    select SDO_GEOM.VALIDATE_GEOMETRY_with_context("MDSYS"."SDO_GEOMETRY"(3001,NULL, "MDSYS"."SDO_POINT_TYPE"(174.092329032787,129.420551704918,-71.2857142857142),NULL,NULL), 0.005) from dual;
    /* Returns */
    SDO_GEOM.VALIDATE_GEOMETRY_WITH_CONTEXT("MDSYS"."SDO_GEOMETRY"(3001,NULL,"MDSYS"."SDO_POINT_TYPE"(174.092329032787,129.420551704918,-71.2857142857142),NULL,NULL),0.005)
    'TRUE'Note that I only noticed this problem after upgrading from v11 to v11 R2. Also, the same ORA-29532 error comes up when running any of the SDO_GEOM.[x] function calls such as SDO_GEOM.DISTANCE(). The problem is not limited to SDO_POINT type geometries, yet the problem occurs only on some geometry entries in my database. It is repeatable in that the same geometry will continue to fail and the only solution I've found is to try to round down its precision in x, y, and/or z. I only know how to easily round down the precision for SDO_POINT types, so one of my problems is that I'm left with a whole scattering of other geometries that I can no longer spatially query.
    The datas themselves were inserted from MATLAB (which connects using v11 Oracle ODBC Java drivers) which converts my coordinates to java.math.BigDecimal and binds them to an oracle prepared statement.
    One possibility that I'm considering is that the insertion is done from various computers, some of which are 64-bit machines. Maybe somehow those machines are pumping in coordinates to a precision too great for oracle geometry?
    Any help would be fantastic as I'm pretty lost here.
    If the precision is indeed the problem, does anyone know how I can trim off those excess values after the decimal point for all geometry types?
    Thanks,
    Sven.

    The problem is with the way the ordiantes are created via java programs pre 11.2.
    There was a bit alignment problem in the internal representation of the number when these numbers are created from a java program.
    In 11.2 this corruption is fixed, but as a result the data that is already corrupted gives this "empty string" error.
    It is very easy to fix. Follow the steps in the script below.
    create or replace function id_geom ( g in sdo_geometry)
    return sdo_geometry deterministic as
    g1 sdo_geometry ;
    idx number;
    ords sdo_ordinate_array;
    x number;
    y number;
    z number;
    point_t sdo_point_type;
    begin
    if (g.sdo_point is not NULL) then
    x := NULL; y := NULL; z := NULL;
    if (g.sdo_point.x is not NULL) then
    x := g.sdo_point.x * 10;
    x := x / 10;
    end if;
    if (g.sdo_point.y is not NULL) then
    y := g.sdo_point.y * 10;
    y := y / 10;
    end if;
    if (g.sdo_point.z is not NULL) then
    z := g.sdo_point.z * 10;
    z := z / 10;
    end if;
    point_t := SDO_POINT_TYPE(x,y,z);
    else
    point_t := NULL;
    end if;
    if (g.sdo_ordinates is not NULL) then
    ords := sdo_ordinate_array();
    ords.extend(g.sdo_ordinates.count);
    for idx in 1 .. ords.count loop
    x := g.sdo_ordinates(idx);
    x := (x*10.0);
    x := x/10.0;
    ords(idx) := x;
    end loop;
    g1 := sdo_geometry(g.sdo_gtype, g.sdo_srid,point_t,g.sdo_elem_info,ords);
    else
    g1 := sdo_geometry(g.sdo_gtype, g.sdo_srid,point_t,g.sdo_elem_info, NULL);
    end if;
    return g1;
    end;
    And then update the rows with geometry data with SQL like this:
    update geom_table set geom = id_geom(geom);

  • Error ORA-29532 service does not contain port

    I used utl_dbws in this simple function:
    CREATE OR REPLACE FUNCTION get_meteo (p_int_1 IN VARCHAR2,
    p_int_2 IN VARCHAR2)
    RETURN VARCHAR2
    AS
    l_service UTL_DBWS.service;
    l_call UTL_DBWS.call;
    l_wsdl_url VARCHAR2(32767);
    l_namespace VARCHAR2(32767);
    l_service_qname UTL_DBWS.qname;
    l_port_qname UTL_DBWS.qname;
    l_operation_qname UTL_DBWS.qname;
    l_xmltype_in SYS.XMLTYPE;
    l_xmltype_out SYS.XMLTYPE;
    l_return NUMBER;
    BEGIN
    l_wsdl_url := 'http://www.webservicex.net/globalweather.asmx?WSDL';
    l_namespace := 'http://www.webserviceX.NET/';
    l_service_qname := UTL_DBWS.to_qname(l_namespace, 'GlobalWeather');
    l_port_qname := UTL_DBWS.to_qname(l_namespace, 'GlobalWeatherSoap');
    l_operation_qname := UTL_DBWS.to_qname(l_namespace, 'GetWeather');
    l_service := UTL_DBWS.create_service (
    wsdl_document_location => URIFACTORY.getURI(l_wsdl_url),
    service_name => l_service_qname);
    l_call := UTL_DBWS.create_call (
    service_handle => l_service,
    port_name => l_port_qname,
    operation_name => l_operation_qname);
    l_xmltype_in := SYS.XMLTYPE('<?xml version="1.0" encoding="utf-8"?>
    <ws_add xmlns="' || l_namespace || '">
    <CountryName>' || p_int_1 || '</CountryName>
    <CityName>' || p_int_2 || '</CityName>
    </ws_add>');
    l_xmltype_out := UTL_DBWS.invoke(call_Handle => l_call,
    request => l_xmltype_in);
    UTL_DBWS.release_call (call_handle => l_call);
    UTL_DBWS.release_service (service_handle => l_service);
    l_return := l_xmltype_out.extract('//return/text()').GetStringVal();
    RETURN l_return;
    END;
    SELECT get_meteo('Italy', 'Milan') FROM dual;
    When I try to execute it, I get the error:
    ORA-29532: chiamata Java terminata a causa di un'eccezione Java non ottenuta:
    service: {http://www.webserviceX.NET/}GlobalWeather does not contain port:
    {{http://www.webserviceX.NET/}GlobalWeather}GlobalWeatherSoap
    ORA-06512: a "SYS.UTL_DBWS", line 266
    ORA-06512: a "SYS.GET_METEO", line 29
    Why? Where is the mistake?
    Here is definition of the webservice:
    <?xml version="1.0" encoding="utf-8" ?>
    - <wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tns="http://www.webserviceX.NET" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" targetNamespace="http://www.webserviceX.NET" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
    - <wsdl:types>
    - <s:schema elementFormDefault="qualified" targetNamespace="http://www.webserviceX.NET">
    - <s:element name="GetWeather">ort
    - <s:complexType>
    - <s:sequence>
    <s:element minOccurs="0" maxOccurs="1" name="CityName" type="s:string" />
    <s:element minOccurs="0" maxOccurs="1" name="CountryName" type="s:string" />
    </s:sequence>
    </s:complexType>
    </s:element>
    - <s:element name="GetWeatherResponse">
    - <s:complexType>
    - <s:sequence>
    <s:element minOccurs="0" maxOccurs="1" name="GetWeatherResult" type="s:string" />
    </s:sequence>
    </s:complexType>
    </s:element>
    - <s:element name="GetCitiesByCountry">
    - <s:complexType>
    - <s:sequence>
    <s:element minOccurs="0" maxOccurs="1" name="CountryName" type="s:string" />
    </s:sequence>
    </s:complexType>
    </s:element>
    - <s:element name="GetCitiesByCountryResponse">
    - <s:complexType>
    - <s:sequence>
    <s:element minOccurs="0" maxOccurs="1" name="GetCitiesByCountryResult" type="s:string" />
    </s:sequence>
    </s:complexType>
    </s:element>
    <s:element name="string" nillable="true" type="s:string" />
    </s:schema>
    </wsdl:types>
    - <wsdl:message name="GetWeatherSoapIn">
    <wsdl:part name="parameters" element="tns:GetWeather" />
    </wsdl:message>
    - <wsdl:message name="GetWeatherSoapOut">
    <wsdl:part name="parameters" element="tns:GetWeatherResponse" />
    </wsdl:message>
    - <wsdl:message name="GetCitiesByCountrySoapIn">
    <wsdl:part name="parameters" element="tns:GetCitiesByCountry" />
    </wsdl:message>
    - <wsdl:message name="GetCitiesByCountrySoapOut">
    <wsdl:part name="parameters" element="tns:GetCitiesByCountryResponse" />
    </wsdl:message>
    - <wsdl:message name="GetWeatherHttpGetIn">
    <wsdl:part name="CityName" type="s:string" />
    <wsdl:part name="CountryName" type="s:string" />
    </wsdl:message>
    - <wsdl:message name="GetWeatherHttpGetOut">
    <wsdl:part name="Body" element="tns:string" />
    </wsdl:message>
    - <wsdl:message name="GetCitiesByCountryHttpGetIn">
    <wsdl:part name="CountryName" type="s:string" />
    </wsdl:message>
    - <wsdl:message name="GetCitiesByCountryHttpGetOut">
    <wsdl:part name="Body" element="tns:string" />
    </wsdl:message>
    - <wsdl:message name="GetWeatherHttpPostIn">
    <wsdl:part name="CityName" type="s:string" />
    <wsdl:part name="CountryName" type="s:string" />
    </wsdl:message>
    - <wsdl:message name="GetWeatherHttpPostOut">
    <wsdl:part name="Body" element="tns:string" />
    </wsdl:message>
    - <wsdl:message name="GetCitiesByCountryHttpPostIn">
    <wsdl:part name="CountryName" type="s:string" />
    </wsdl:message>
    - <wsdl:message name="GetCitiesByCountryHttpPostOut">
    <wsdl:part name="Body" element="tns:string" />
    </wsdl:message>
    - <wsdl:portType name="GlobalWeatherSoap">
    - <wsdl:operation name="GetWeather">
    <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Get weather report for all major cities around the world.</wsdl:documentation>
    <wsdl:input message="tns:GetWeatherSoapIn" />
    <wsdl:output message="tns:GetWeatherSoapOut" />
    </wsdl:operation>
    - <wsdl:operation name="GetCitiesByCountry">
    <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Get all major cities by country name(full / part).</wsdl:documentation>
    <wsdl:input message="tns:GetCitiesByCountrySoapIn" />
    <wsdl:output message="tns:GetCitiesByCountrySoapOut" />
    </wsdl:operation>
    </wsdl:portType>
    - <wsdl:portType name="GlobalWeatherHttpGet">
    - <wsdl:operation name="GetWeather">
    <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Get weather report for all major cities around the world.</wsdl:documentation>
    <wsdl:input message="tns:GetWeatherHttpGetIn" />
    <wsdl:output message="tns:GetWeatherHttpGetOut" />
    </wsdl:operation>
    - <wsdl:operation name="GetCitiesByCountry">
    <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Get all major cities by country name(full / part).</wsdl:documentation>
    <wsdl:input message="tns:GetCitiesByCountryHttpGetIn" />
    <wsdl:output message="tns:GetCitiesByCountryHttpGetOut" />
    </wsdl:operation>
    </wsdl:portType>
    - <wsdl:portType name="GlobalWeatherHttpPost">
    - <wsdl:operation name="GetWeather">
    <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Get weather report for all major cities around the world.</wsdl:documentation>
    <wsdl:input message="tns:GetWeatherHttpPostIn" />
    <wsdl:output message="tns:GetWeatherHttpPostOut" />
    </wsdl:operation>
    - <wsdl:operation name="GetCitiesByCountry">
    <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Get all major cities by country name(full / part).</wsdl:documentation>
    <wsdl:input message="tns:GetCitiesByCountryHttpPostIn" />
    <wsdl:output message="tns:GetCitiesByCountryHttpPostOut" />
    </wsdl:operation>
    </wsdl:portType>
    - <wsdl:binding name="GlobalWeatherSoap" type="tns:GlobalWeatherSoap">
    <soap:binding transport="http://schemas.xmlsoap.org/soap/http" />
    - <wsdl:operation name="GetWeather">
    <soap:operation soapAction="http://www.webserviceX.NET/GetWeather" style="document" />
    - <wsdl:input>
    <soap:body use="literal" />
    </wsdl:input>
    - <wsdl:output>
    <soap:body use="literal" />
    </wsdl:output>
    </wsdl:operation>
    - <wsdl:operation name="GetCitiesByCountry">
    <soap:operation soapAction="http://www.webserviceX.NET/GetCitiesByCountry" style="document" />
    - <wsdl:input>
    <soap:body use="literal" />
    </wsdl:input>
    - <wsdl:output>
    <soap:body use="literal" />
    </wsdl:output>
    </wsdl:operation>
    </wsdl:binding>
    - <wsdl:binding name="GlobalWeatherSoap12" type="tns:GlobalWeatherSoap">
    <soap12:binding transport="http://schemas.xmlsoap.org/soap/http" />
    - <wsdl:operation name="GetWeather">
    <soap12:operation soapAction="http://www.webserviceX.NET/GetWeather" style="document" />
    - <wsdl:input>
    <soap12:body use="literal" />
    </wsdl:input>
    - <wsdl:output>
    <soap12:body use="literal" />
    </wsdl:output>
    </wsdl:operation>
    - <wsdl:operation name="GetCitiesByCountry">
    <soap12:operation soapAction="http://www.webserviceX.NET/GetCitiesByCountry" style="document" />
    - <wsdl:input>
    <soap12:body use="literal" />
    </wsdl:input>
    - <wsdl:output>
    <soap12:body use="literal" />
    </wsdl:output>
    </wsdl:operation>
    </wsdl:binding>
    - <wsdl:binding name="GlobalWeatherHttpGet" type="tns:GlobalWeatherHttpGet">
    <http:binding verb="GET" />
    - <wsdl:operation name="GetWeather">
    <http:operation location="/GetWeather" />
    - <wsdl:input>
    <http:urlEncoded />
    </wsdl:input>
    - <wsdl:output>
    <mime:mimeXml part="Body" />
    </wsdl:output>
    </wsdl:operation>
    - <wsdl:operation name="GetCitiesByCountry">
    <http:operation location="/GetCitiesByCountry" />
    - <wsdl:input>
    <http:urlEncoded />
    </wsdl:input>
    - <wsdl:output>
    <mime:mimeXml part="Body" />
    </wsdl:output>
    </wsdl:operation>
    </wsdl:binding>
    - <wsdl:binding name="GlobalWeatherHttpPost" type="tns:GlobalWeatherHttpPost">
    <http:binding verb="POST" />
    - <wsdl:operation name="GetWeather">
    <http:operation location="/GetWeather" />
    - <wsdl:input>
    <mime:content type="application/x-www-form-urlencoded" />
    </wsdl:input>
    - <wsdl:output>
    <mime:mimeXml part="Body" />
    </wsdl:output>
    </wsdl:operation>
    - <wsdl:operation name="GetCitiesByCountry">
    <http:operation location="/GetCitiesByCountry" />
    - <wsdl:input>
    <mime:content type="application/x-www-form-urlencoded" />
    </wsdl:input>
    - <wsdl:output>
    <mime:mimeXml part="Body" />
    </wsdl:output>
    </wsdl:operation>
    </wsdl:binding>
    - <wsdl:service name="GlobalWeather">
    - <wsdl:port name="GlobalWeatherSoap" binding="tns:GlobalWeatherSoap">
    <soap:address location="http://www.webservicex.com/globalweather.asmx" />
    </wsdl:port>
    - <wsdl:port name="GlobalWeatherSoap12" binding="tns:GlobalWeatherSoap12">
    <soap12:address location="http://www.webservicex.com/globalweather.asmx" />
    </wsdl:port>
    - <wsdl:port name="GlobalWeatherHttpGet" binding="tns:GlobalWeatherHttpGet">
    <http:address location="http://www.webservicex.com/globalweather.asmx" />
    </wsdl:port>
    - <wsdl:port name="GlobalWeatherHttpPost" binding="tns:GlobalWeatherHttpPost">
    <http:address location="http://www.webservicex.com/globalweather.asmx" />
    </wsdl:port>
    </wsdl:service>
    </wsdl:definitions>

    l_namespace := 'http://www.webserviceX.NET/';
    According to the WSDL, the target namespace is :
    http://www.webserviceX.NET(no ending slash)
    See if it makes a difference.
    I don't have UTL_DBWS installed to test, but the webservice works well when invoked via UTL_HTTP :
    SQL> DECLARE
      2    req_text   VARCHAR2(4000) :=
      3  '<?xml version="1.0" encoding="utf-8"?>
      4  <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
      5    <soap:Body>
      6      <GetWeather xmlns="http://www.webserviceX.NET">
      7        <CityName>Nantes</CityName>
      8        <CountryName>France</CountryName>
      9      </GetWeather>
    10    </soap:Body>
    11  </soap:Envelope>';
    12 
    13    req        utl_http.req;
    14    res        utl_http.resp;
    15    res_text   VARCHAR2(32767);
    16 
    17  BEGIN
    18 
    19    req := utl_http.begin_request('www.webservicex.net/globalweather.asmx', 'POST', 'HTTP/1.1');
    20    utl_http.set_header(req, 'Content-Type', 'text/xml');
    21    utl_http.set_header(req, 'Content-Length', length(req_text));
    22    utl_http.set_header(req, 'SOAPAction', 'http://www.webserviceX.NET/GetWeather');
    23 
    24    utl_http.write_text(req, req_text);
    25 
    26    res := utl_http.get_response(req);
    27    utl_http.read_text(res, res_text);
    28    utl_http.end_response(res);
    29 
    30    dbms_output.put_line(res_text);
    31 
    32  END;
    33  /
    <?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><GetWeatherResponse xmlns="http://www.webserviceX.NET"><GetWeatherResult>&lt;?xml version="1.0" encoding="utf-16"?&gt;
    &lt;CurrentWeather&gt;
      &lt;Location&gt;Nantes, France (LFRS) 47-10N 001-36W 27M&lt;/Location&gt;
      &lt;Time&gt;Feb 12, 2012 - 06:30 AM EST / 2012.02.12 1130 UTC&lt;/Time&gt;
      &lt;Wind&gt; from the ENE (060 degrees) at 9 MPH (8 KT):0&lt;/Wind&gt;
      &lt;Visibility&gt; greater than 7 mile(s):0&lt;/Visibility&gt;
      &lt;Temperature&gt; 32 F (0 C)&lt;/Temperature&gt;
      &lt;Wind&gt;Windchill: 24 F (-4 C):1&lt;/Wind&gt;
      &lt;DewPoint&gt; 8 F (-13 C)&lt;/DewPoint&gt;
      &lt;RelativeHumidity&gt; 36%&lt;/RelativeHumidity&gt;
      &lt;Pressure&gt; 30.53 in. Hg (1034 hPa)&lt;/Pressure&gt;
      &lt;Status&gt;Success&lt;/Status&gt;
    &lt;/CurrentWeather&gt;</GetWeatherResult></GetWeatherResponse></soap:Body></soap:Envelope>
    PL/SQL procedure successfully completed
    Or directly with the HTTP GET protocol :
    SQL> select *
      2  from xmltable(
      3       '/CurrentWeather'
      4       passing xmlparse(document
      5                xmlcast(
      6                 xmlquery(
      7                  'declare default element namespace "http://www.webserviceX.NET"; /string'
      8                  passing httpuritype('http://www.webservicex.net/globalweather.asmx/GetWeather?CityName=Nantes&CountryName=France').getXML()
      9                  returning content
    10                 ) as varchar2(4000)
    11                )
    12               )
    13       columns location    varchar2(100) path 'Location'
    14             , pressure    varchar2(100) path 'Pressure'
    15             , temperature varchar2(100) path 'Temperature'
    16  );
    LOCATION                                                 PRESSURE                            TEMPERATURE
    Nantes, France (LFRS) 47-10N 001-36W 27M                  30.53 in. Hg (1034 hPa)             32 F (0 C)

  • EXP-00008, ORA-06502 , ORA-06512 - Export Error

    We had done export of schema around 270gb..
    exp file=ops4sept.dmp log=ops4sept.log owner='OPS$BBCASHIN' statistics=none buffer=200000000
    The following error has come at the end
    EXP-00008: ORACLE error 6502 encountered
    ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    ORA-06512: at "SYS.DBMS_SCHED_MAIN_EXPORT", line 351
    ORA-06512: at "SYS.DBMS_SCHED_JOB_EXPORT", line 14
    ORA-06512: at line 1
    EXP-00085: The previous problem occurred when calling SYS.DBMS_SCHED_JOB_EXPORT.create_exp for object 81203
    EXP-00008: ORACLE error 6502 encountered
    ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    ORA-06512: at "SYS.DBMS_SCHED_MAIN_EXPORT", line 351
    ORA-06512: at "SYS.DBMS_SCHED_JOB_EXPORT", line 14
    ORA-06512: at line 1
    EXP-00085: The previous problem occurred when calling SYS.DBMS_SCHED_JOB_EXPORT.create_exp for object 81202
    . exporting post-schema procedural objects and actions
    . exporting statistics
    Export terminated successfully with warnings.

    EXP-00085 The previous problem occurred when calling string.string.string for
    object number
    Cause: The listed package provides export/import support for procedural
    objects, i.e., those whose DDL is supplied by stored procedures. The previously
    listed error occurred while calling the specified function.
    Action: Contact Oracle Support Services. Most packages are supplied by Oracle
    internal cartridge or server development groups. The package name will help
    Oracle Support Services determine the correct owner of the problem.
    Can you trace the session in order to find out the ORA-01031 problem, which could be a missing grant on a table or system privilege

  • Error: ORA-29532: Java call terminated by uncaught Java exception:

    Anyone have this similar problem of
    ORA-29532: Java call terminated by uncaught Java exception:
    javax.xml.rpc.soap.SOAPFaultException: Caught exception while handling request:
    deserialization error: XML reader error: unexpected character content:
    "A"
    The service is running fine in a browser and returns the date. When I run it using the PL/SQL it has the error mentioned above.
    I am running the following:
    CREATE OR REPLACE FUNCTION GetDate_wb( p_dummy IN VARCHAR2 )
    RETURN DATE
    AS
    l_service sys.UTL_DBWS.service;
    l_call sys.UTL_DBWS.call;
    l_result ANYDATA;
    l_wsdl_url VARCHAR2(1024);
    l_service_name VARCHAR2(200);
    l_operation_name VARCHAR2(200);
    l_input_params sys.UTL_DBWS.anydata_list;
    l_port sys.UTL_DBWS.qname := 8988;
    BEGIN
    l_wsdl_url := 'http://org-lblakisa1:8988/BPEL_OD-LoginWS-context-root/getDate1SoapHttpPort?WSDL';
    l_service_name := 'getDate1';
    l_operation_name := 'getDate';
    l_service := sys.UTL_DBWS.create_service (
    wsdl_document_location => URIFACTORY.getURI(l_wsdl_url),
    service_name => l_service_name);
    l_call := sys.UTL_DBWS.create_call (
    service_handle => l_service,
    port_name => NULL,
    operation_name => l_operation_name);
    l_input_params(1) := ANYDATA.ConvertVarchar2(p_dummy);
    l_result := sys.UTL_DBWS.invoke (
    call_handle => l_call,
    input_params => l_input_params);
    sys.UTL_DBWS.release_call (call_handle => l_call);
    sys.UTL_DBWS.release_service (service_handle => l_service);
    RETURN ANYDATA.AccessDate(l_result);
    END;
    /

    Problem is resolved... We had a version issue in that 10.1.3 web service is not compatible. 10.1.2 worked.

  • KR TAX LOCALIZATION REPORT 실행시의 ORA-20000, ORA-06512 ERROR MESSAGE

    제품 : FIN_AP
    작성날짜 : 2002-12-02
    KR TAX LOCALIZATION REPORT 실행시의 ORA-20000, ORA-06512 ERROR MESSAGE
    ===================================================================
    PURPOSE
    Multi-Org 환경속에서 Kr Tax Localization Report 실행시의 ORA-20000, ORA-06512 Error Message 를 해결한다.
    Problem Description
    Kr Tax Localization의 Reports가 Error를 발생하고, View Log를 통해 확인한 Message가 다음과 같을 경우
    ORA-20000: APP-00001: Unable to find message:
    AR_NO_ROW_IN_SYSTEM_PARAMETERS
    ORA-06512: "APPS.ARP_STANDARD", 줄 999에서
    ORA-06512: "APPS.ARP_STANDARD", 줄 2246에서
    ORA-06512: "APPS.ARP_UTIL", 줄 29에서
    ORA-06512: "APPS.ARP_UTIL_TAX", 줄 111에서
    ORA-06512: "APPS.ARP_TAX_EXTRACT", 줄 6178에서
    ORA-06512: 줄 1에서
    Workaround
    Solution Description
    1) fnd_client_info.set_org_context(<org_id>);
    or
    2) v_org_id varchar2(10);
    v_org_id := fnd_profile.value('ORG_ID');
    fnd_client_info.set_org_context(v_org_id);
    .rdf 의 경우 : Before Report Trigger 에 추가
    .sql (Package Body, Procedure) 의 경우 : 각 Begin 절 이후
    Reference Documents
    -------------------

    제품 : FIN_AP
    작성날짜 : 2002-12-02
    KR TAX LOCALIZATION REPORT 실행시의 ORA-20000, ORA-06512 ERROR MESSAGE
    ===================================================================
    PURPOSE
    Multi-Org 환경속에서 Kr Tax Localization Report 실행시의 ORA-20000, ORA-06512 Error Message 를 해결한다.
    Problem Description
    Kr Tax Localization의 Reports가 Error를 발생하고, View Log를 통해 확인한 Message가 다음과 같을 경우
    ORA-20000: APP-00001: Unable to find message:
    AR_NO_ROW_IN_SYSTEM_PARAMETERS
    ORA-06512: "APPS.ARP_STANDARD", 줄 999에서
    ORA-06512: "APPS.ARP_STANDARD", 줄 2246에서
    ORA-06512: "APPS.ARP_UTIL", 줄 29에서
    ORA-06512: "APPS.ARP_UTIL_TAX", 줄 111에서
    ORA-06512: "APPS.ARP_TAX_EXTRACT", 줄 6178에서
    ORA-06512: 줄 1에서
    Workaround
    Solution Description
    1) fnd_client_info.set_org_context(<org_id>);
    or
    2) v_org_id varchar2(10);
    v_org_id := fnd_profile.value('ORG_ID');
    fnd_client_info.set_org_context(v_org_id);
    .rdf 의 경우 : Before Report Trigger 에 추가
    .sql (Package Body, Procedure) 의 경우 : 각 Begin 절 이후
    Reference Documents
    -------------------

  • Getting Error ORA-01422&ORA-06512 while clicking distributions of invoice

    Hi,
    I am Getting Error ORA-01422&ORA-06512 when i query the invoice and click on the All distributions.
    However i am getting this error only for some invoices and not for all.
    Any suggestion on this is highly appreciated.
    Regards,
    Shreyans

    Hi,
    What is the application release? If you are on R12, please refer to these documents.
    Note: 580014.1 - R12 Invoices FAQs - (16. Why do the Errors ORA-01422 and ORA-06512 Show when Clicking on the [All Distributions] Button?)
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=580014.1
    Note: 559199.1 - Error ORA-01422 ORA-06512 Raises when Click On [All Distributions] Button
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=559199.1
    Regards,
    Hussein

  • Error ORA-02068,ORA-03135,ORA-06512 in Streams

    Hi All,
    I am new to Streams. Actually we are trying to replicate the data between 2 databases and we are using streams for this.
    But we are getting the below error in DBA_PROPAGATION table.
    ORA-02068: following severe error from TINFOT3
    ORA-03135: connection lost contact
    ORA-06512: at "SYS.DBMS_AQADM_SYS", line 1087
    ORA-06512: at "SYS.DBMS_AQADM_SYS", line 7636
    ORA-06512: at "SYS.DBMS_AQADM", line 631
    ORA-06512: at line 1
    It seems the capture process is running perfectly.
    Can anyone suggest the solution or where to look more to troubleshoot the issue.
    Thanks.
    Amit.

    The error looks like your target database may be down / dblink is not working / network issue..
    Babu

  • Error -- ORA-20101: ORA-06512: at "DEV_PORTAL.WWPOB_API_PA

    Hi!
    When I click on a tab in Oracle Portal page i got the following error:
    - ORA-01403: no data found ORA-20101: ORA-06512: at "DEV_PORTAL.WWPOB_API_PAGE", line 5247 ORA-01403: no data found ORA-01403: no data found.
    In WLS_PORTAL.log fileL do not appear any error message but in the WLS_PORTAL.out i get:
    - ERROR: Repository Gateway error: Database Error: ORA=20001 ORA-20001: Unable to obtain session information from the cookie.
    ORA-06512: at "DEV_PORTAL.WPG_SESSION", line 174
    ORA-06512: at line 32
    I Have installed the 11g version in a Windows Server 2008.
    Anybody knows how can i solve it?
    Regards.
    Carlos G.

    Hi Carlos
    Looks like you are using Oracle Portal and NOT Oracle Weblogic Portal (earlier bea weblogic portal 10.3). Since this is Weblogic Portal Forum, may be you can try posting your issue in the Oracle Portal Forums.
    Ravi Jegga

  • Blob writing error      ORA-29532 Java call terminated Unsupported feature

    Hi there,
    I've got the following Java code which tries to write to a BLOB file. It's a version of some code to extract files from a zip archive, but with everything but the erroring call stripped out:
    create or replace and compile java source named zipunpack as
    package org.bristol.cyps;
    import oracle.sql.BLOB;
    import java.util.zip.*;
    public class ZipUnpack
    public static int unpack(BLOB ziparray[], String filename, BLOB filearray[])
    throws java.sql.SQLException, java.io.IOException
    BLOB file = filearray[0];
    java.io.OutputStream fileout = file.setBinaryStream(0L);
    return 1;
    This is published as follows:
    create or replace function zip_unpack (
    pio_zip in out nocopy blob
    , pi_filename in varchar2
    , pio_file in out nocopy blob
    ) return number as language java
    name 'org.bristol.cyps.ZipUnpack.unpack(oracle.sql.BLOB[], java.lang.String, oracle.sql.BLOB[]) return java.lang.Integer';
    And called like so:
    procedure send_zip_file (
    pi_zip in out nocopy blob
    , pi_filename in varchar2
    ) is
    file blob;
    completed integer;
    begin
    dbms_lob.createtemporary (
    lob_loc => file
    , cache => false
    , dur => dbms_lob.call
    completed := zip_unpack(pi_zip, pi_filename, file);
    if completed > 0 then
    bare_html.print_blob(file);
    else
    htp.print('File "' || pi_filename || '" not found');
    end if;
    end;
    This, as far as I can tell from the documentation, should work. Unfortunately, though, it generates an error:
    ORA-29532: Java call terminated by uncaught Java exception: java.sql.SQLException: Unsupported feature
    The particular line which is causing the error is the "java.io.OutputStream fileout = file.setBinaryStream(0L);" If I remove this, it runs fine. I'm flumoxed as to why this might be causing an "Unsupported feature" exception when it's documented as being supported. Can anyone shed any light?
    Cheers,
    Robert
    Message was edited for more clarity

    Hi,
    It looks like you are not using 10g JDBC. java.sql.Blob.setBinaryStream is a JDBC 3.0 method. In 9iR2 we added support for jdk14 and added stub methods for JDBC 3.0 behavior without fully implementing them. 10gR1 was the first version where the JDBC3.0 methods were fully supported.
    The workaround is to use the Oracle proprietary method oracle.sql.BLOB.getBinaryOutputStream
    Kuassi, http://db360.blogspot.com

  • Error Messages : ORA - 37118, ORA - 06512

    When i'm starting the oracle workspace manager software and trying to create a new workspace related to a schema, after to be connected to a database instance,
    I get those error messages: ora - 37118, ora - 06512

    Hi,
    I have never encountered an ORA-37118 error during createWorkspace. The following is the description for the error.
    // Cause: In shared-server mode, the OLAP API library should be loaded
    // during process initialization to ensure that the C++ virtual table
    // addresses are identical in all shared-server processes. The
    // OLAP API session was executing in a process in which the library
    // had not been loaded.
    // Action: Set option XSOLAPILOAD_AT_PROCESS_START to SHARED_SERVER or
    // ALWAYS, restart the instance, and try again.
    You should try the suggested action, to see if it fixes the problem. You could also try another database to see if the error is specific to the database instance. If not, I would need additional information regarding your setup to be able to determine why the createworkspace procedure might not be working. What version of workspace manager are you using ?
    Regards,
    Ben

Maybe you are looking for

  • Editing with Photoshop Elements 4.0

    I'm sure the problem and solution are simple, but I'm missing something. Here goes. I'm using iPhoto 6.0.2. Just installed and started using Adobe Photoshop Elements 4.0. Have been editing about 1,100 photos from a recent trip to Africa, which were i

  • Order quantity in BAPI BAPI_SALESORDER_CREATEFROMDAT2

    Hi, I'm using BAPI 'BAPI_SALESORDER_CREATEFROMDAT2' to create a sale order. But the order quantity isn't upadate when I check the sales order number. The field I used is target_qty in BAPISDITM. Is the field wrong or some other problems? Best Regards

  • How do I order a new SIM card for my Galaxy S3?

    How can I order a new SIM card for my Galaxy S3? My old SIM card was stolen, and I need to replace it in early January. My phone number has to stay the same . I'd appreciate any help you could give me.

  • How to modify KM upload to accept jpg/bmp files only?

    Hi All, I want to modify the KM upload command so that it accepts only ".jpg or ".bmp" file types. If any other file type is used then give an error message such as "Files of type jpg, bmp can only be uploaded". Also restrict the size to 1 or 2 MB on

  • MacBook Pro (Retina, 13-inch, Mid 2014) fan runs excessively for no reason?

    I purchased this new MacBook Pro in late 2014, and have not had any issues until recently. On startup, and when sitting idle, the computers fans speed up rapidly for no apparent reason, and the system temporarily lags up for a few seconds before the