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

Similar Messages

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

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

    Dear Oracle:
    I am trying to establish an HTTPS connection from a Java stored
    procedure that is wrapped in a PL/SQL procedure and loaded into a
    Package. We are running on Oracle 8.1.7.
    My Java code compiles and runs fine when run stand-alone outside
    Oracle; I can establish the connection to a secure server and talk to
    the server. However when I load this Java class (using the loadjava
    utility) this class can no longer run and I get a the following
    exception:
    "ORA-29532: Java call terminated by uncaught Java exception:
    javax.net.ssl.SSLException: SSL handshake failed:
    X509CertChainIncompleteErr"
    I have tried loading the JSSE from Sun and I still get the same error.
    Searching in the Discussing Forums I found the following link (which
    describes a procedure that logs into the UPS secure server site and
    grabs some XML) http://osi.oracle.com/~mbpierma/SSL_Java_DB.html .
    This code works ok if we try to connect to UPS server. However this
    code doesn't work if we try to log in to a different server (such as
    ???). If I modify this code slightly and try to log to any other
    sever server I get the same error as the one above. Investigation
    lead us to understand that the certificate at the UPS web site is a
    self-signed certificate -- not one generated by a major 'recognized'
    authority such as Verisign or Thawte.
    Further research pointed me to the following URL
    http://www.znow.com/sales/oracle/network.816/a76932/appf_ora.htm#619367
    This URL has the documentation for JAVA SSL for 8.1.6 which I figure
    I could read and try to make it work in 8.1.7.
    I looked at your Secure Hello World example, however the code is
    missing the most critical parts of the whole example, it does not
    specify where the certificate or any of the security settings come
    from (see the attached JavaCertExample.txt file).
    So, my questions are the following:
    1) What should I do to avoid the error mentioned above?
    2) Do you have a sample piece of code that describes how to make a
    HTTPS connection using a Java stored procedure?
    3) Can I make the HTTPS connection using a URL class and not using
    sockets directly?
    4) Do I need to load the JSEE provided by Sun?
    5) Will the solution be different for Oracle 9i?
    // SecureHelloClient.java
    import java.net.*;
    import java.io.*;
    import java.util.*;
    import javax.net.ssl.*;
    import javax.security.cert.X509Certificate;
    import oracle.security.ssl.OracleSSLCredential;
    import oracle.security.ssl.OracleSSLSocketFactory;
    import oracle.security.ssl.OracleSSLProtocolVersion;
    import oracle.security.ssl.OracleSSLSession;
    public class SecureHelloClient
    public static void main(String argv[])
    String hostName = "localhost";
    if(argv.length != 0)
    String hostName = argv[0];
    // Set the SSLSocketFactoryImpl class as follows:
    java.util.Properties prop = System.getProperties();
    prop.put("SSLSocketFactoryImplClass",
    "oracle.security.ssl.OracleSSLSocketFactoryImpl");
    try
    // Get the default socket factory
    OracleSSLSocketFactory sSocFactory
    = (OracleSSLSocketFactory)SSLSocketFactory.getDefault();
    sSocFactory.setSSLProtocolVersion(OracleSSLProtocolVersion.SSL_Version_3_0);
    OracleSSLCredential sslCredObj = new OracleSSLCredential();
    // Where did these values come from? caCert, userCert, trustedCert,
    // Set the certificate chain and private key if the
    // server requires client authentication
    sslCredObj.addCertChain(caCert)
    sslCredObj.addCertchain(userCert)
    sslCredObj.setPrivateKey(userPvtKey, userPassword)
    // Populate credential object
    sslCredObj.addTrustedCert(trustedCert);
    sSocFactory.setSSLCredentials(sslCredObj);
    // Create the socket using factory
    SSLSocket jsslSoc =
    (SSLSocket)sSocFactory.createSocket(hostName, 8443);
    String [] ciphers = jsslSoc.getSupportedCipherSuites() ;
    // Select the ciphers you want and put them.
    // Here we will put all availabel ciphers
    jsslSoc.setEnabledCipherSuites(ciphers);
    // We are creating socket in client mode
    jsslSoc.setUseClientMode(true);
    // Do SSL handshake
    jsslSoc.startHandshake();
    // Print negotiated cipher
    System.out.println("Negotiated Cipher Suite: "
    +jsslSoc.getSession().getCipherSuite());
    System.out.println("");
    X509Certificate[] peerCerts
    = ((javax.net.ssl.SSLSocket)jsslSoc).getSession().getPeerCertificateChain();
    if (peerCerts != null)
    System.out.println("Printing server information:");
    for(int i =0; i ? peerCerts.length; i++)
    System.out.println("Peer Certificate ["+i+"] Information:");
    System.out.println("- Subject: " + peerCerts.getSubjectDN().getName());
    System.out.println("- Issuer: " + peerCerts[i].getIssuerDN().getName());
    System.out.println("- Version: " + peerCerts[i].getVersion());
    System.out.println("- Start Time: " + peerCerts[i].getNotBefore().toString());
    System.out.println("- End Time: " + peerCerts[i].getNotAfter().toString());
    System.out.println("- Signature Algorithm: " + peerCerts[i].getSigAlgName());
    System.out.println("- Serial Number: " + peerCerts[i].getSerialNumber());
    else
    System.out.println("Failed to get peer certificates");
    // Now do data exchange with client
    OutputStream out = jsslSoc.getOutputStream();
    InputStream in = jsslSoc.getInputStream();
    String inputLine, outputLine;
    byte [] msg = new byte[1024];
    outputLine = "HELLO";
    out.write(outputLine.getBytes());
    int readLen = in.read(msg, 0, msg.length);
    if(readLen > 0)
    inputLine = new String(msg, 0, readLen);
    System.out.println("");
    System.out.println("Server Message:");
    System.out.println(inputLine );
    else
    System.out.println("Can't read data from client");
    // Close all sockets and streams
    out.close();
    in.close();
    jsslSoc.close();
    catch(SSLException e)
    System.out.println("SSL exception caught:");
    e.printStackTrace();
    catch(IOException e)
    System.out.println("IO exception caught:");
    e.printStackTrace();
    catch(Exception e)
    System.out.println("Exception caught:");
    e.printStackTrace();

    Hi,
    I have the same problem.
    Is some ORACLE guru that can help us ?
    We need to communicate with some servlet
    via POST method of https (SSL3)
    and with using private certificate on the client site.
    We need furthermore allow using of some proxy.
    Client site is realized as set of stored procedures within ORACLE 8.1.7
    In this time I am able to communicate with server without SSL and certificate
    using package utl_tcp
    (but with this solution without certificate is our customer not satisfied -:))
    ORACLE help us please !
    Pavel Pospisil
    [email protected]

  • Oracle BI 11.1.1.7.1: Calling BI webservices from Plsql Procedure: ORA-29532: Java call terminated by uncaught Java exception: java.lang.NoClassDefFoundError

    Hi,
         I have a requirement of calling BI webservices from Plsql stored procedure. I generated all my wsdl java classes and loaded them into the database. However, when I tried to call one of my java class using stored procedure, it is giving me"ORA-29532: Java call terminated by uncaught Java exception: java.lang.NoClassDefFoundError".
    *Cause:    A Java exception or error was signaled and could not be
               resolved by the Java code.
    *Action:   Modify Java code, if this behavior is not intended.
    But all my dependency classes are present in database as java class objects and are valid. Can some one help me out of this?

    Stiphane,
    You can look in USER_ERRORS to see if there's anything more specific reported by the compiler. But, it could also be the case that everything's OK (oddly enough). I loaded the JavaMail API in an 8.1.6 database and also got bytecode verifier errors, but it ran fine. Here are the errors I got when loading Sun's activation.jar, which ended up not being a problem:
    ORA-29552: verification warning: at offset 12 of <init> void (java.lang.String, java.lang.String) cannot access class$java$io$InputStream
    verifier is replacing bytecode at <init> void (java.lang.String, java.lang.String):12 by a throw at offset 18 of <init> void (java.lang.String, java.lang.String) cannot access class$java$io$InputStream
    verifier is replacing bytecode at <init> void (java.lang.String, java.lang.String):18 by a throw at offset 30 of <init> void (java.lang.String, java.lang.String) cannot access class$java$io$InputStream
    verifier is replacing bytecode at <init> void (java.lang.String, java.lang.String):30 by a throw
    Hope this helps,
    -Dan
    http://www.compuware.com/products/devpartner/db/oracle_debug.htm
    Debug PL/SQL and Java in the Oracle Database

  • 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

  • "How to Resolve ORA-29532 Java 2 Permission Problems in RDBMS 8.1.6 and 8.1.7"

    I'm in the process of publishing the following note (134280.1), titled "How to Resolve ORA-29532 Java 2
    Permission Problems in RDBMS 8.1.6 and 8.1.7".
    It will be accessible from Oracle Support's "Metalink" site.
    "How to Resolve ORA-29532 Java 2 Permission Problems in RDBMS 8.1.6 and 8.1.7".
    Problem Description
    Periodically an application running in the Enterprise Java Engine
    (EJE) formerly known as the "Oracle 8i JVM", "the JSERVER component", or
    the "Aurora JVM" will fail with a "java 2" permissions error having the
    following format :
    Note : Message shown below have been reformatted for easier readability.
    java.sql.SQLException: ORA-29532: Java call terminated by uncaught Java exception:
    usually followed by a detailed error message similar to one of the following
    messages :
    Example # 1
    java.security.AccessControlException: the Permission
    (java.net.SocketPermission hostname resolve)
    has not been granted by dbms_java.grant_permission to
    SchemaProtectionDomain(SCOTT|PolicyTableProxy(SCOTT))
    Example # 2
    java.security.AccessControlException: the Permission
    (java.util.PropertyPermission * read,write)
    has not been granted by dbms_java.grant_permission to
    SchemaProtectionDomain(SCOTT|PolicyTableProxy(SCOTT))
    Example # 3
    java.security.AccessControlException: the Permission
    (java.io.FilePermission \matt1.gif read)
    has not been granted by dbms_java.grant_permission to
    SchemaProtectionDomain(SCOTT|PolicyTableProxy(SCOTT))
    Explanation
    The java 2 permission stated in line # 2 of each of the above "Examples"
    has not been granted to the user specified in line 4 of the above "Examples".
    Solution Description
    The methodology to solve this issue is identical for all java 2 permissions
    cases.
    1) Format a call "dbms_java.grant_permission" procedure as described below.
    2) Logon as SYS or SYSTEM
    3) Issue the TWO commands shown below
    4) Logoff as SYS or SYSTEM
    5) Retry your application
    For Example # 1
    1) Logon as SYS or SYSTEM
    2) Issue the following commands :
    a) call dbms_java.grant_permission('SCOTT',
    'java.net.SocketPermission',
    'hostname',
    'resolve');
    b) commit;
    Note: Commit is mandatory !!
    3) Logoff as SYS or SYSTEM
    4) Retry your application
    For Example # 2
    1) Logon as SYS or SYSTEM
    2) Issue the following commands :
    a) call dbms_java.grant_permission('SCOTT',
    'java.util.PropertyPermission',
    'read,write');
    b) commit;
    Note: Commit is mandatory !!
    3) Logoff as SYS or SYSTEM
    4) Retry your application
    For Example # 3
    1) Logon as SYS or SYSTEM
    2) Issue the following commands :
    a) call dbms_java.grant_permission('SCOTT',
    'java.io.FilePermission',
    '\matt1.gif',
    'read');
    b) commit;
    Note: Commit is mandatory !!
    3) Logoff as SYS or SYSTEM
    4) Retry your application
    References
    For more details on java 2 permissions and security within the EJE, review
    Chapter 5, in the Java Developer's Guide. entitled,
    "Security For Oracle8i Java Applications"
    The RDBMS 8.1.7 version can be found at :
    http://otn.oracle.com/docs/products/oracle8i/doc_library/817_doc/java.817/index.htm

    Hi, Don,
    I solved the problem of security exception I mentioned at java procedure topic as following:
    ORA-29532: Java call terminated by uncaught Java exception: java.lang.SecurityException
    I tried to use your solution as following:
    call dbms_java.grant_permission('SDE', 'java.net.SocketPermission', 'ORCL.COHPA.UCF.EDU','resolve');
    but SQL*plus gave me a error message:
    invalid collumn.
    What's the problem?
    However, I call a grant command as following:
    SQL> grant JAVASYSPRIV to sde;
    and then that exception is gone. What's the difference between dbms_java.grant_permission and grant command?
    Thanks
    Bing
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by don -- oracle support:
    I'm in the process of publishing the following note (134280.1), titled "How to Resolve ORA-29532 Java 2
    Permission Problems in RDBMS 8.1.6 and 8.1.7".
    It will be accessible from Oracle Support's "Metalink" site.
    "How to Resolve ORA-29532 Java 2 Permission Problems in RDBMS 8.1.6 and 8.1.7".
    Problem Description
    <HR></BLOCKQUOTE>
    null

  • 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

  • Java call terminated by uncaught Java exception: java.lang.NullPointerExcep

    i have written this program of adding file items using wwsbr_api.add_item but,
    1 declare
    2 l_new_item_master_id number;
    3 l_caid number := 53;
    4 l_folder_id number := 50279;
    5 begin
    6 select c.id, f.id
    7 into l_caid, l_folder_id
    8 from portal.wwsbr_all_content_areas c,
    9 portal.wwsbr_all_folders f
    10 where c.id = f.caid and c.name = 'S_T_PAGE'
    11 and f.name = 'S_PAGE';
    12 --portal.wwctx_api_private.set_context('PORTAL');
    13 l_new_item_master_id := portal.wwsbr_api.add_item(
    14 p_caid => l_caid,
    15 p_folder_id => l_folder_id,
    16 p_display_name => 'simple file item',
    17 p_type_id => portal.wwsbr_api.ITEM_TYPE_FILE,
    18 p_type_caid => portal.wwsbr_api.SHARED_OBJECTS,
    19 p_region_id => 4571,
    20 p_file_filename => 'D:\ora\training\html\frame.html'
    21 );
    22 -- process cache invalidation messages
    23 portal. wwpro_api_invalidation.execute_cache_invalidation;
    24* end;
    SQL> /
    this program is showing the following exception. kindly give the solution urgently..........
    declare
    ERROR at line 1:
    ORA-29532: Java call terminated by uncaught Java exception: java.lang.NullPointerException
    ORA-06512: at "PORTAL.WWSBR_API", line 37
    ORA-06512: at "PORTAL.WWSBR_API", line 610
    ORA-06512: at line 13

    can any one of u please give me the reply to the above error,
    urgently.............

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

  • Java.sql.SQLException: Unsupported feature

    Hi,
    I am receiving the following error after i added savepoints in my code
    connection.releaseSavepoint(savePt) is the statement where my code is failing..
    java.sql.SQLException: Unsupported feature
    JDK - tried with 1.4.2 and 1.5
    JDBC - using ojdbc14.zip
    Can someone help me please?
    Thanks in advance

    You need to know which version of the driver you are using...
    The following code shows both driver version and database version:
    import java.sql.*;
    import java.io.PrintWriter;
    public class dbinfo
      public static void main (String arr[]) throws Exception
        PrintWriter outWriter = new PrintWriter(System.out);
        DriverManager.setLogWriter(outWriter);
        String dbDriver="oracle.jdbc.driver.OracleDriver";
        // need to set values for YOUR database
        String dbURL = "jdbc:oracle:thin:@xxxxx:1521:yyyy";
        String dbPW = "zzzzz";
        String dbUser = "zzzz";
        Connection con = null;
        Class.forName(dbDriver);
        con = DriverManager.getConnection (dbURL, dbUser, dbPW);
        DatabaseMetaData dbmd = con.getMetaData();
        System.out.println("=====  Database info =====");     
        System.out.println("DatabaseProductName: " + dbmd.getDatabaseProductName() );
        System.out.println("DatabaseProductVersion: " + dbmd.getDatabaseProductVersion() );
        System.out.println("DatabaseMajorVersion: " + dbmd.getDatabaseMajorVersion() );
        System.out.println("DatabaseMinorVersion: " + dbmd.getDatabaseMinorVersion() );
        System.out.println("=====  Driver info =====");     
        System.out.println("DriverName: " + dbmd.getDriverName() );
        System.out.println("DriverVersion: " + dbmd.getDriverVersion() );
        System.out.println("DriverMajorVersion: " + dbmd.getDriverMajorVersion() );
        System.out.println("DriverMinorVersion: " + dbmd.getDriverMinorVersion() );
        System.out.println("=====  JDBC/DB attributes =====");     
        System.out.print("Supports getGeneratedKeys(): ");
        if (dbmd.supportsGetGeneratedKeys() )
          System.out.println("true");
        else
          System.out.println("false");
        con.close();
    }If your driver version is less than 9.2.0.1, the feature is not supported and you need a more recent version of the driver (which you can download from the URL in the previous post). If your driver version is greater than 9.2.0.1, the feature is supposed to be supported and you should contact Oracle support.

  • SAP oracle database crash with errore:ORA-00490: PSP process terminated

    Hi ALL,
    Our oracle database crash with errore code in trace : ORA:00490; i started database again and it  working fine; but could not fine reason of down and what is this erroe all about
    can some help me
    Errors in file /oracle/SRD/saptrace/background/srd_pmon_28096.trc:
    ORA-00490: PSP process terminated with error
    Tue Nov 25 09:00:57 2008
    PMON: terminating instance due to error 490
    Instance terminated by PMON, pid = 28096
    Thanks,
    Dinesh

    Hi stefen,
    please find the trace file as below
    /oracle/SRD/saptrace/background/srd_pmon_28096.trc
    Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - 64bit Production
    With the Partitioning and Data Mining options
    ORACLE_HOME = /oracle/SRD/102_64
    System name:    SunOS
    Node name:      nzlsfn23
    Release:        5.10
    Version:        Generic_137111-01
    Machine:        sun4u
    Instance name: SRD
    Redo thread mounted by this instance: 1
    Oracle process number: 2
    Unix process pid: 28096, image: oracle@nzlsfn23 (PMON)
    2008-11-25 09:00:57.497
    SERVICE NAME:(SYS$BACKGROUND) 2008-11-25 09:00:56.210
    SESSION ID:(24.1) 2008-11-25 09:00:56.194
    Background process PSP0 found dead
    Oracle pid = 6
    OS pid (from detached process) = 28098
    OS pid (from process state) = 28098
    dtp = 38000afd8, proc = 497000860
    Dump of memory from 0x000000038000AFD8 to 0x000000038000B020
    38000AFD0                   00000005 00000000          [........]
    38000AFE0 00000004 97000860 00000000 00000000  [.......`........]
    38000AFF0 00000000 50535030 00020000 00000000  [....PSP0........]
    38000B000 00006DC2 00000000 00000000 48E50DA4  [..m.........H...]
    38000B010 00000001 000E3273 00040081 00000000  [......2s........]
    Dump of memory from 0x0000000497000860 to 0x0000000497001048
    497000860 02010000 00000000 00000000 00000000  [................]
    497000870 00000000 00000000 00000000 00000000  [................]
    497000880 00000004 97042570 00000004 97047810  [......%p......x.]
    497000890 00000004 97028E68 00000004 97045BE8  [.......h......[.]
    4970008A0 00000000 00000000 00000004 97045C70  [..............\p]
    4970008B0 00000004 97045C70 00000004 97047800  [......\p......x.]
    4970008C0 01060000 00000000 00000004 97025ED8  [..............^.]
    4970008D0 00000004 97028E68 00000006 00000000  [.......h........]
    4970008E0 00000000 00000000 00000000 00000000  [................]
    4970008F0 00000000 00000000 00000004 97042490  [..............$.]
    497000900 00000004 970425A0 00000000 00000000  [......%.........]
    497000910 00000000 00000000 00000000 00000000  [................]
            Repeat 3 times
    497000950 00000003 00000000 00000000 00000000  [................]
            Repeat 1 times
    497000970 00000000 00000000 00000000 00000000  [................]
    497000980 00000004 00000000 00000000 00000000  [................]
    497000990 00000003 00000000 00000000 00000000  [................]
            Repeat 1 times
    4970009B0 00000004 00000000 00000000 00000000  [................]
    4970009C0 00000005 00000000 00000000 00000000  [................]
    4970009D0 00000003 00000000 00000000 00000000  [................]
    4970009E0 00000000 00000000 00000000 00000000  [................]
            Repeat 8 times
    497000A70 00000000 00000000 00000004 97000A78  [...............x]
    497000A80 00000004 97000A78 00000000 00000000  [.......x........]
    497000A90 00000000 00000000 00000004 97000A98  [................]
    497000AA0 00000004 97000A98 00000000 00000000  [................]
    497000AB0 00000000 00000000 00000000 00000000  [................]
            Repeat 2 times
    497000AE0 00000000 00000000 00000018 00000030  [...............0]
    497000AF0 00000001 00000B3D 00000004 970037D0  [.......=......7.]
    497000B00 00000004 580096B0 00000001 00000000  [....X...........]
    497000B10 00000000 00000000 00000000 00000000  [................]
            Repeat 2 times
    497000B40 00006DC2 00000000 00000000 00000000  [..m.............]
    497000B50 00000000 00000000 00000000 00000000  [................]
            Repeat 2 times
    497000B80 00000004 97000860 00000000 00000000  [.......`........]
    497000B90 00000000 00000000 00000000 00000000  [................]
            Repeat 7 times
    497000C10 00000004 97000C10 00000004 97000C10  [................]
    497000C20 00000000 00000000 00010000 00000000  [................]
    497000C30 00000000 00000117 0000000A 00000000  [................]
    497000C40 00006DC2 00000000 00000000 48E50DA4  [..m.........H...]
    497000C50 00000001 00000000 00000000 00000000  [................]
    497000C60 00000000 00000000 00000000 00000000  [................]
            Repeat 2 times
    497000C90 00000000 00000000 00000003 FFFFFFFF  [................]
    497000CA0 00000000 00000000 00000000 00000000  [................]
            Repeat 13 times
    497000D80 73726461 646D0000 00000000 00000000  [srdadm..........]
    497000D90 00000000 00000000 00000000 00000000  [................]
    497000DA0 00000000 00000006 6E7A6C73 666E3233  [........nzlsfn23]
    497000DB0 00000000 00000000 00000000 00000000  [................]
            Repeat 2 times
    497000DE0 00000000 00000000 00000000 00000008  [................]
    497000DF0 554E4B4E 4F574E00 00000000 00000000  [UNKNOWN.........]
    497000E00 00000000 00000000 00000000 00000000  [................]
    497000E10 00000000 00000008 32383039 38000000  [........28098...]
    497000E20 00000000 00000000 00000000 00000000  [................]
    497000E30 00000000 00000005 6F726163 6C65406E  [........oracle@n]
    497000E40 7A6C7366 6E323320 28505350 30290000  [zlsfn23 (PSP0)..]
    497000E50 00000000 00000000 00000000 00000000  [................]
    497000E60 00000000 00000000 00000000 00000016  [................]
    497000E70 00000000 00000002 00000000 00000000  [................]
    497000E80 00000000 00000000 00000000 00000000  [................]
            Repeat 8 times
    497000F10 00000000 00000000 00000000 00020000  [................]
    497000F20 00000000 00000000 00000000 00000000  [................]
    497000F30 00000000 00000000 00000003 9E1F6748  [..............gH]
    497000F40 00000004 97001728 00000004 97000758  [.......(.......X]
    497000F50 00000000 00000000 00000003 9E26B5B0  [.............&..]
    497000F60 00000000 00000000 00000000 00000000  [................]
            Repeat 1 times
    497000F80 00000004 97000F80 00000004 97000F80  [................]
    497000F90 00000000 00040000 00000000 00000000  [................]
    497000FA0 00000000 00031A55 00000000 0004D7DD  [.......U........]
    497000FB0 00000000 00071A55 00000000 00000000  [.......U........]
    497000FC0 00000000 00000000 00000000 00000000  [................]
    497000FD0 00000000 00000828 00000000 000000E0  [.......(........]
    497000FE0 00000000 00000828 00000000 00000000  [.......(........]
    497000FF0 00000000 00000000 00000000 00000000  [................]
            Repeat 4 times
    497001040 00000002 00000000                    [........]
    error 490 detected in background process
    ORA-00490: PSP process terminated with error

  • User authentication error with Proxy Java Calling web Service in XI

    Hello,
    I have deploy a Web Service in SAP XI 3.0. within a SOAP sender adapter.
    I have also created the Proxy Java Class to access the webservice in the Developer Studio and a Plain Java Class (only with a method main) which uses the proxy classes to consume the web service.
    But when I launch the program a get the next error message:
    java.rmi.RemoteException: Service call exception; nested exception is:
         com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException: Invalid Response Code: (401) Unauthorized.
         at com.everis.serviciosweb.xi.MI_OUT_STATUSBindingStub.MI_OUT_STATUS(MI_OUT_STATUSBindingStub.java:73)
         at com.everis.llamadas.invocacionWSStatus.main(invocacionWSStatus.java:76)
    Caused by: com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException: Invalid Response Code: (401) Unauthorized.
         at com.sap.engine.services.webservices.jaxrpc.wsdl2java.soapbinding.MimeHttpBinding.handleResponseMessage
    Where MI_OUT_STATUSBindingStub is my Stub Class.
    I have tried to set USERNAME_PROPERTY and PASSWORD_PROPERTY at runtime from my Stub class to the values that I use to access SAP XI (Integration Repository & Integration Directory) but it still doesn't´t work.
    Have anyone a solution?
    Thanks.

    Hi,
        finally I have fixed it.
    The root of the problem was on the way that I proceed with the generation of wsdl in Integration Directory.
    The second step in the wizard for generation of wsdl ask for a url to call the web service and gives you an option to complete the url automatic. I have use this option and it have proposed my an url of type http://<host>:<port>/sap/xi/engine?entry=.......
    But the SOAP adapter call is in the form http://<host>:<port>/XISOAPAdapter/MessageServlet?channel=<party>:<business service>:<channel>
    So using this type of url in the generation of wsld solves all the problems.
    Regards,
    Antonio.

  • ORA-06502 PL/SQL: numeric or value error ORA-06512 when calling a procedure

    Hi,
    I have been using ODP.net for a while now and have been calling lots of procedures without issue, however today I put together one to insert key, value parameters into a simple table and it is failing on me Intermittently with the ORA-06502... I have checked the code and I do not see any problems and am thoroughly frustrated... When I call the procedure directly it all works perfectly so the problem is not in the db!
    Please can you help? Code follows:
    Table defined as:
    CREATE TABLE REPORT_REQUEST_PARAMETERS
    (     REQUEST_ID NUMBER,
         PARAM_NAME VARCHAR2(50 BYTE),
         PARAM_VALUE VARCHAR2(255 BYTE)
    Stored procedure defined as:
    create or replace PROCEDURE SP_WRITE_REQUEST_PARAMS
    ( in_request_id number, in_param_name char, in_param_value char )
    AS
    BEGIN
    INSERT INTO REPORT_REQUEST_PARAMETERS ( REQUEST_ID, PARAM_NAME, PARAM_VALUE )
    VALUES
    ( in_request_id, in_param_name, in_param_value );
    END SP_WRITE_REQUEST_PARAMS;
    Finally the ODP.net code which calls this looks like:
    using (OracleConnection connection = new OracleConnection(...blah...))
    using (OracleCommand command = connection.CreateCommand())
    command.CommandType = CommandType.StoredProcedure;
    command.CommandText = "SP_WRITE_REQUEST_PARAMS";
    OracleParameter p1 = new OracleParameter("in_request_id", OracleDbType.Int32);
    OracleParameter p2 = new OracleParameter("in_param_name", OracleDbType.Char);
    OracleParameter p3 = new OracleParameter("in_param_value", OracleDbType.Char);
    p1.Direction = ParameterDirection.Input;
    p1.Value = requestId;
    p2.Direction = ParameterDirection.Input;
    p2.Size = paramName.Length;
    p2.Value = paramName;
    p3.Direction = ParameterDirection.Input;
    p3.Size = paramValue.Length;
    p3.Value = paramValue;
    command.Parameters.Add(p1);
    command.Parameters.Add(p2);
    command.Parameters.Add(p3);
    connection.Open();
    command.ExecuteNonQuery();
    connection.Close();
    }

    What version of database? If it's 9206 this is a known database problem, and should be resolved by patching the database to 9208. I don't have the bug number handy though.
    Simply because it succeeded in sqlplus doesnt mean it's not a database problem, as the problem was intermittent and succeeded from odp sometimes too.
    Thanks
    Greg

  • 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 while executing java stored procedure from a pl/sql procedure

    We have a requirement where we need to execute JAVA code stored in an Oracle database (Java Stored Procedure). This code uses some JAR files which we have already loaded without any errors in the database.
    The class file was also loaded in the database without any errors. But when we execute the method of this class (JAVA code), it gives the following error:
    ORA-29532: Java call terminated by uncaught Java exception:
    java.lang.NoClassDefFoundError
    Is there any way of debugging the code and getting to know where exactly the problem is? Or, any tool/software available for doing the same.
    Any pointers would be of great help!
    Thanks in advance

    Hi Uday,
    My guess is that there is a problem with your java stored procedure that is causing the "ExceptionInInitializer" error to be thrown. According to the javadoc:
    is thrown to indicate that an exception occurred during
    evaluation of a static initializer or
    the initializer for a static variable
    Since I didn't see any of your code in your post, I can't help you much more, I'm afraid. Perhaps if you would provide some more details, I may be able to help you some more. I think the following details would be helpful:
    1. Complete error message and stack trace you are getting.
    2. The section of your java code that you think is causing the problem.
    3. Oracle database version you are using.
    Good Luck,
    Avi.

Maybe you are looking for

  • Can't sync photos with photoshop elements 11 album

    I just upgraded to photoshop elements 11. When I attempt to sync photos in iTunes (to synch with my iPhone), Photoshop Elements appears in the drop down and when I select it, it finds all the "albums" in the catalog. However, when I select an album t

  • Issues with updating ibooks on new ipad

    Hi all, I recently updated ios6 on my new ipad. When I tried updating ibooks app, the update never got done. Even now, it says "installing". I tried removing the ibooks app an reinstall the app. But I could not remove the app also as the x would not

  • Did Apple take away our ability to swipe back and forth within a Safari window?

    Before the upgrade, I was able to swipe back and forth on the same window. After the upgrade, I can't swipe back and forth, but can only use the tiny left and right arrow keys in the toolbar (click only). I looked on system preferences, and the abili

  • BT don't want my money...

    Just got my PAC code to leave BT anywhere this morning, despite having actually called to renew for a year.. BT have some bizarre pricing policies.  I was quite happy to renew for a year keeping my current S710, but they would only let me renew for 1

  • After software update usb mouse no longer works.

    After software update Microsoft usb mouse no longer works. System Profiler "sees" usb mouse. I took my macbook to the Genius Bar at Apple and they were not able to help. Pretty lame....