OCCI env- createConnection error

Good day. hlp plz.
Can't solve the problem.
on conn = env->createConnection(username, password, db) got exception ORA-32102:Invalid OCI handle.
Have a code:
     try
          env = Environment::createEnvironment (Environment::OBJECT);
          conn = env->createConnection(username, password, db);
     env->terminateConnection (conn);
          Environment::terminateEnvironment (env);
     catch(SQLException& e)
          cout<<e.what()<<endl;
username = test, pass = XXX, db = testdb
in tnsnames.ora alias testdb exists
and command sqlplus test/XXX@testdb executes successfull;
what i did wrong?

VS2005
oracle 9i (oraocci9.lib)
tns
testdb =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 172.16.1.1)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = WORK)
Environment created successfully, connection not.
if trying type username = TEST, instead of test then got Unhandled exception which can't handle even via catch(...){cout<<"Oops";}

Similar Messages

  • Occi::environment createConnection throws exception

    Hi there,
    I tried connecting to my Oracle 11g database in debug mode but was unsuccessful. I am developing an ActiveX plugin using Visual Studio 2008. I downloaded OCCI 11.1.0.6.0 and instant client 11.2.0.1.0, extracted the the lib and dll files to my project directory, included the header files as part of my project include directory. Release mode works fine but it's debug that I am having issues with. When I link against oraocci11d.lib in debug mode, it gives me the error "error PRJ0050: Failed to register output. Please ensure you have the appropriate permissions to modify the registry." So then I linked against oraocci11.lib and was able to build successfully. However, I get the following error:
    try
              env = Environment::createEnvironment(Environment::DEFAULT);
              conn = env->createConnection("SYSTEM", "pwd", "remoteserver:1521/TEST"); //fails here
    env->terminateConnection(conn);
              Environment::terminateEnvironment(env);
    catch (SQLException& e)
              std::cout<<e.what();
    First-chance exception at 0x7c812afb in iexplore.exe: Microsoft C++ exception: oracle::occi::SQLException at memory location 0x0013a748..
    First-chance exception at 0x7c812afb in iexplore.exe: Microsoft C++ exception: [rethrow] at memory location 0x00000000..
    I see that others are having slightly different issues with Debug mode but I did not see a resolution for any of them. Any help would be much appreciated!
    Edited by: user13168246 on Jun 25, 2010 4:08 PM

    Make sure you include th directory that contains all the necessary header files in your project. It should be in your installed oracle directory (eg. d:\app\oracle\product\11.2.0\dbhome_1\OCI\include) so point to that in Project Properties->C/C++->General->Additional Include Directories. Then link it to oraocci11d.lib under Project Properties->Linker->Input->Additional Dependencies. Also include the following DLLs oraociei11.dll, oraocci11d.dll, oraocci11.dll, orannzsbb11.dll in your debug and release directories.

  • Env- createConnection failed

    hello All,
    please could you help me on this?
    I'm trying to run a small c++ program using oracle occi.
    i'm using visual c++ 7.1.
    i have set the following in my vc++ environment:
    include files:
    c:\oracle\product\10.1.0\db_1\oci\include
    library files:
    c:\oracle\product\10.1.0\db_1\oci\MSVC\vc71
    c:\oracle\product\10.1.0\db_1\oci\lib\MSVC
    Executable files:
    c:\oracle\product\10.1.0\db_1\bin
    linker/input:
    oraocci10.lib
    my database is oracle9 and i'm using oracle 10lib files
    the program compile and link fine:
    but when i run it i receive the error :"unhandled exception at 0x612f89e9 in myproram.exe :0xC0000005: access violation reading location 0xcc006173"
    the program stop in conn =env->createConnection ...
    any help will be greatly appreciated

    It's very simple!
    There are many differences and normally you have only a chance, if you download the Patchset releases from the Metalink dictionary, because the basic and free downloadable versions have a lot of bugs. But for this process you have to be a registered customer. No chance for beginning developers and so they have not a good feeling to the Oracle software, because the first contact will be with strange difficult things. Not good to Oracle!
    Ok, here the solution for your trouble:
    You must create a Extension- or Standard-DLL in VC6 with the following content. The main problem ist with the Environment-object. And so we do it there, where it will be go.
    By example:
    __declspec( dllexport ) Environment* pEnv;
    __declspec( dllexport ) Connection* pCon;
    __declspec( dllexport ) void __cdecl OraConnect()
    try
    pEnv = Environment::createEnvironment( Environment::OBJECT );
    RegisterClasses( pEnv );
    pCon = pEnv->createConnection( "scott", "tiger", "" );
    catch( SQLException &ex )
    AfxMessageBox( ex.getMessage().c_str() );
    __declspec( dllexport ) void __cdecl OraDisconnect()
    try
    pEnv->terminateConnection( pCon );
    Environment::terminateEnvironment( pEnv );
    catch( SQLException &ex )
    AfxMessageBox( ex.getMessage().c_str() );
    And by example in your VC7/7.1 Project you must import the declarations from above:
    #include <occi.h>
    #pragma comment(lib, "oraocci9.lib")
    __declspec( dllimport ) oracle::occi::Environment* pEnv;
    __declspec( dllimport ) oracle::occi::Connection* pCon;
    __declspec( dllimport ) void OraConnect();
    __declspec( dllimport ) void OraDisconnect();
    And then you can do in VC7/VC7.1 with occi whatever you want!
    If you need, I can make a complete sample with this unique cooperation to bypass this bug.
    Many success
    Robert
    http://rarecase.xardas.lima-city.de/

  • CreateConnection error

    I just want to create a connection with database and the error 24960 occurred. But I set
    string user = "";
    password = "";
    db = "";
    So it is not too long as the error code show!! What should I do ?
    con = env->createConnection(user, passwd, db);
    ERROR DESCRIPTION:
    Error number: 24960
    ORA-24960: the attribute OCI_ATTR_USERNAME is greater than the maximum allowable length of 255
    OCIAttrGet with OCI_ATTR_USERNAME = -2
    I installed Oracle Client 10g.
    I have a C++ program an work with the Microsoft Visual C++ .NET 2005.
    Tks!!

    Regardless of the error, wouldn't it work better if you supplied a real username and password?
    Regards Nigel

  • Occi demo link error on solaris10/gcc2.95

    Hi,every one,I have an error when I compile the occi demo as following command line:
    -bash-3.00$g++ -g -o demo -L../../ -I../include -locci -lclntsh -lthread occidml.cpp
    ERROR:
    Undefined first referenced
    symbol in file
    __1cG__CrunKpure_error6F_v_ ../..//libocci.so
    __1cDstdbC__RTTI__1nDstdMlength_error__ ../..//libocci.so
    __1cDstdMout_of_range2T6M_v_ ../..//libocci.so
    __1cDstdMbasic_string4Ccn0ALchar_traits4Cc__n0AJallocator4Cc___2G6Mpkc_r1_ ../..//libocci.so
    __1cG__CrunIex_alloc6FI_pv_ ../..//libocci.so
    __1cG__CrunIex_throw6Fpvpkn0AQstatic_type_info_pF1_v_v_ ../..//libocci.so
    __1cDstdMbasic_string4Ccn0ALchar_traits4Cc__n0AJallocator4Cc___2G6Mrk1_r1_ ../..//libocci.so
    __1cDstdMbasic_string4Ccn0ALchar_traits4Cc__n0AJallocator4Cc___2t6MpkcIrkn0C__v_ ../..//libocci.so
    __1cH__rwstdRexcept_msg_string2t6MIE_v_ ../..//libocci.so
    __1cDstdMbasic_string4Ccn0ALchar_traits4Cc__n0AJallocator4Cc___2t6Mpkcrkn0C__v_ ../..//libocci.so
    oracle::occi::SQLException::SQLException(oracle::occi::SQLException const&)/var/tmp//ccqQh503.o
    __1cH__rwstdbC__rwse_StringIndexOutOfRange_ ../..//libocci.so
    __1cDstdZ__RTTI__1nDstdJbad_alloc__ ../..//libocci.so
    I compiled it use gcc3.4.2 compiler, the same error occured.
    why? how can I resolve the problem?
    thanks

    Are you using Instant Client? If so, in 10.1, Instant Client does not have an SDK package, and you cannot compile with it. That feature is only available with 10.2. I hope that helps!

  • OCCI Link problem (Error LNK2019: unresolved external symbol) in VS2012

    Hi,
    I'm having a hard time with this. I'm trying to implement OCCI within my application. Error I'm getting is:
    Error     1     error LNK2019: unresolved external symbol "public: static class oracle::occi::Environment * __cdecl oracle::occi::Environment::createEnvironment(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,enum oracle::occi::Environment::Mode,void *,void * (__cdecl*)(void *,unsigned int),void * (__cdecl*)(void *,void *,unsigned int),void (__cdecl*)(void *,void *))" (?createEnvironment@Environment@occi@oracle@@SAPAV123@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@0W4Mode@123@PAXP6APAX2I@ZP6APAX22I@ZP6AX22@Z@Z) referenced in function "private: bool __thiscall ServerDataLoader::getPreSuffixesFromDB(void)" (?getPreSuffixesFromDB@ServerDataLoader@@AAE_NXZ)     P:\code\VizTool\VizPortal\DwgDgnConverter\ServerDataLoader.obj     DwgDgnConverter
    Error     2     error LNK1120: 1 unresolved externals     P:\code\VizTool\VizPortal\Debug\DwgDgnConverter.exe     1     1     DwgDgnConverter
    Yes, it looks like linking problem,...but for me everything seems set-up.
    - Included header files (from instantclient-sdk-windows.x64-11.2.0.3.0.zip)
    - Included library path from OCCI download (11.2.0.3.0)
    - Added oraocci11d.lib in linker
    Please, what am I doing wrong?
    Millions of thanks for any kind of feedback ;-)

    Have you succeeded? I tried vs2012 and it passed compilation, but gave the run-time error of _crtisvalidheappointer. But the same code runs well with vs2010. I think Oracle needs to publish the new patch for vs2012                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • $ENV{PATH} error code

    My powerbook g4 (with os x 10.4) has been running really slow since I reinstalled the system software. I reinstalled b/c i bought this used and wanted to change the name of the computer, settings, etc. When i reinstalled tiger, i connected it to my PowerMac G4 so i could transfer the user settings, applications, etc to the laptop (note- my PowerMac G4 is on 10.3.9). since then it's been running slow & a couple of weird things are going on:
    1. whenever i try to download something from the web, i click on the dmg file on my desktop, i get this message: unmountable image or disk or something to that effect.
    2. i was just running Onyx in hopes of getting things working more smoothly and faster & when i was optimizing the system this error code came up:
    Insecure $ENV{PATH} while running setuid at /usr/bin/update/prebinding line 55.
    Can anyone tell me how to fix this? I'd rather fix it then reinstall the system software and all of my apps. thanks!
    PowerBook G4 Mac OS X (10.4)
    PowerBook G4   Mac OS X (10.4)  

    Hi chrysalls, welcome to the forum.
    Have a read at:
    http://www.osxfaq.com/man/3/Env.ws
    You may want to wipe the book's hard drive again, if you're backed up, and give it another try. Be more selective in what you bring over from the PowerMac and how soon.
    I'm wondering if there is some sort of conflict between the machines and platforms?
    Joe

  • OCCI Unicode compile error

    Hi,
    Can anyone help me about the following error?
    I compiled occiuni1 sample on debian 2.4.27-2-386, and I got these errors.
    The object file is created, but exe is not.
    The compile output is:
    make -f Makefile occiuni1
    make -f /home/oracle/oracle/product/10.2.0/client_2/rdbms/demo/demo_rdbms.mk buildocci EXE=occiuni1 OBJS=occiuni1.o
    make[1]: Entering directory `/home/sarvarian/OCCI/Sample'
    /usr/bin/g++ -c -I/home/oracle/oracle/product/10.2.0/client_2/rdbms/demo -I/home/oracle/oracle/product/10.2.0/client_2/rdbms/public -I/home/oracle/oracle/product/10.2.0/client_2/plsql/public -I/home/oracle/oracle/product/10.2.0/client_2/network/public occiuni1.cpp
    /usr/bin/g++ -L/home/oracle/oracle/product/10.2.0/client_2/lib/ -L/home/oracle/oracle/product/10.2.0/client_2/rdbms/lib/ -o occiuni1 occiuni1.o -locci -lclntsh `cat /home/oracle/oracle/product/10.2.0/client_2/lib/sysliblist` -ldl -lm
    occiuni1.o(.gnu.linkonce.t._ZNSbItSt11char_traitsItESaItEE7replaceEN9__gnu_cxx17__normal_iteratorIPtS2_EES6_jt+0xca): In function `std::basic_string<unsigned short, std::char_traits<unsigned short>, std::allocator<unsigned short> >::replace(__gnu_cxx::__normal_iterator<unsigned short*, std::basic_string<unsigned short, std::char_traits<unsigned short>, std::allocator<unsigned short> > >, __gnu_cxx::__normal_iterator<unsigned short*, std::basic_string<unsigned short, std::char_traits<unsigned short>, std::allocator<unsigned short> > >, unsigned, unsigned short)':
    : undefined reference to `std::char_traits<unsigned short>::assign(unsigned short*, unsigned, unsigned short)'
    occiuni1.o(.gnu.linkonce.t._ZNSbItSt11char_traitsItESaItEE13_S_copy_charsEPtPKtS5_+0x22): In function `std::basic_string<unsigned short, std::char_traits<unsigned short>, std::allocator<unsigned short> >::_S_copy_chars(unsigned short*, unsigned short const*, unsigned short const*)':
    : undefined reference to `std::char_traits<unsigned short>::copy(unsigned short*, unsigned short const*, unsigned)'
    occiuni1.o(.gnu.linkonce.t._ZNSbItSt11char_traitsItESaItEE9_M_mutateEjjj+0x143): In function `std::basic_string<unsigned short, std::char_traits<unsigned short>, std::allocator<unsigned short> >::_M_mutate(unsigned, unsigned, unsigned)':
    : undefined reference to `std::char_traits<unsigned short>::copy(unsigned short*, unsigned short const*, unsigned)'
    occiuni1.o(.gnu.linkonce.t._ZNSbItSt11char_traitsItESaItEE9_M_mutateEjjj+0x17a): In function `std::basic_string<unsigned short, std::char_traits<unsigned short>, std::allocator<unsigned short> >::_M_mutate(unsigned, unsigned, unsigned)':
    : undefined reference to `std::char_traits<unsigned short>::copy(unsigned short*, unsigned short const*, unsigned)'
    occiuni1.o(.gnu.linkonce.t._ZNSbItSt11char_traitsItESaItEE9_M_mutateEjjj+0x270): In function `std::basic_string<unsigned short, std::char_traits<unsigned short>, std::allocator<unsigned short> >::_M_mutate(unsigned, unsigned, unsigned)':
    : undefined reference to `std::char_traits<unsigned short>::move(unsigned short*, unsigned short const*, unsigned)'
    occiuni1.o(.gnu.linkonce.t._ZNSbItSt11char_traitsItESaItEE4_Rep8_M_cloneERKS1_j+0xb9): In function `std::basic_string<unsigned short, std::char_traits<unsigned short>, std::allocator<unsigned short> >::_Rep::_M_clone(std::allocator<unsigned short> const&, unsigned)':
    : undefined reference to `std::char_traits<unsigned short>::copy(unsigned short*, unsigned short const*, unsigned)'
    occiuni1.o(.gnu.linkonce.t._ZNSbItSt11char_traitsItESaItEE13_S_copy_charsEPtS3_S3_+0x22): In function `std::basic_string<unsigned short, std::char_traits<unsigned short>, std::allocator<unsigned short> >::_S_copy_chars(unsigned short*, unsigned short*, unsigned short*)':
    : undefined reference to `std::char_traits<unsigned short>::copy(unsigned short*, unsigned short const*, unsigned)'
    collect2: ld returned 1 exit status
    make[1]: * [buildocci] Error 1

    10.2 OCCI libraries are built using gcc323.
    What version of gcc are you using ?

  • Occi 11.1 Error on compile: undefined reference to `oracle::occi::Enviro...

    I'm trying to compile an hello world example on my computer. I've read the documentation for requirements occi on the site
    http://docs.oracle.com/cd/E11882_01/install.112/e24322/pre_install.htm#CHDHFGBJ
    It says that the g++ compiler 3.4.6 or later is supported. I have:
    Ubuntu 12.04
    gcc 4.6.3
    oracle instant client 11.2
    and the error is below, does anyone have a suggestion?
    g++ main.cpp -c -I/home/tim/skrivbord/bin/oracle/instantclient_11_2/include/ -D_REENTRANT -g -Wall
    g++ -o pippo -L/home/tim/skrivbord/bin/oracle/instantclient_11_2/ -locci -lclntsh -lociei -lnnz11 main.o
    main.o: In function `main':
    /home/tim/skrivbord/dev/cpp/main.cpp:21: undefined reference to `oracle::occi::Environment::createEnvironment(oracle::occi::Environment::Mode, void*, void* (*)(void*, unsigned int), void* (*)(void*, void*, unsigned int), void (*)(void*, void*))'
    collect2: ld returned 1 exit status
    make: *** [buildocci] Error 1
    main.cpp:
    #include <iostream>
    #include <occi.h>
    using namespace std;
    using namespace oracle::occi;
    int main(){
    Environment *environment;
    environment = Environment::createEnvironment();
    return 0;
    }

    For correctness I will close this question. I had made some errors with my environment variables LD_LIBRARY_PATH and specially I did not have libaio installed which is well documented that it has to be.

  • Webutil runs in my Dev env but errors out in my Prod env

    I have the Webutil demo working fine in my Dev environment, but I keep getting errors in my production environment. Here is the output from the java console.
    java.io.IOException: javax.net.ssl.SSLException: SSL handshake failed: X509CertChainInvalidErr
         at oracle.security.ssl.OracleSSLSocketImpl.startHandshake(Unknown Source)
         at oracle.jinitiator.protocol.https.HttpsClient.doConnect(Unknown Source)
         at sun.net.www.http.HttpClient.openServer(Unknown Source)
         at sun.net.www.http.HttpClient.openServer(Unknown Source)
         at sun.net.www.http.HttpClient.<init>(Unknown Source)
         at sun.net.www.http.HttpClient.<init>(Unknown Source)
         at sun.plugin.protocol.jdk12.http.HttpClient.<init>(Unknown Source)
         at oracle.jinitiator.protocol.https.HttpsClient.<init>(Unknown Source)
         at oracle.jinitiator.protocol.https.HttpsClient.New(Unknown Source)
         at oracle.jinitiator.protocol.https.HttpsURLConnection$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at oracle.jinitiator.protocol.https.HttpsURLConnection.connect(Unknown Source)
         at sun.plugin.protocol.jdk12.http.HttpURLConnection.getInputStream(Unknown Source)
         at oracle.jre.protocol.jar.HttpUtils.followRedirects(Unknown Source)
         at oracle.jre.protocol.jar.JarCache$CachedJarLoader.download(Unknown Source)
         at oracle.jre.protocol.jar.JarCache$CachedJarLoader.load(Unknown Source)
         at oracle.jre.protocol.jar.JarCache.get(Unknown Source)
         at oracle.jre.protocol.jar.CachedJarURLConnection.connect(Unknown Source)
         at oracle.jre.protocol.jar.CachedJarURLConnection.getJarFile(Unknown Source)
         at sun.misc.URLClassPath$JarLoader.getJarFile(Unknown Source)
         at sun.misc.URLClassPath$JarLoader.<init>(Unknown Source)
         at sun.misc.URLClassPath$2.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.misc.URLClassPath.getLoader(Unknown Source)
         at sun.misc.URLClassPath.getLoader(Unknown Source)
         at sun.misc.URLClassPath.getResource(Unknown Source)
         at java.net.URLClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(Unknown Source)
         at sun.applet.AppletClassLoader.findClass(Unknown Source)
         at sun.plugin.security.PluginClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadCode(Unknown Source)
         at sun.applet.AppletPanel.createApplet(Unknown Source)
         at sun.plugin.AppletViewer.createApplet(Unknown Source)
         at sun.applet.AppletPanel.runLoader(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    WARNING: Unable to cache https://NHR.sec.navy.mil/forms/java/frmwebutil.jar
    java.io.IOException: javax.net.ssl.SSLException: SSL handshake failed: X509CertChainInvalidErr
         at oracle.security.ssl.OracleSSLSocketImpl.startHandshake(Unknown Source)
         at oracle.jinitiator.protocol.https.HttpsClient.doConnect(Unknown Source)
         at sun.net.www.http.HttpClient.openServer(Unknown Source)
         at sun.net.www.http.HttpClient.openServer(Unknown Source)
         at sun.net.www.http.HttpClient.<init>(Unknown Source)
         at sun.net.www.http.HttpClient.<init>(Unknown Source)
         at sun.plugin.protocol.jdk12.http.HttpClient.<init>(Unknown Source)
         at oracle.jinitiator.protocol.https.HttpsClient.<init>(Unknown Source)
         at oracle.jinitiator.protocol.https.HttpsClient.New(Unknown Source)
         at oracle.jinitiator.protocol.https.HttpsURLConnection$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at oracle.jinitiator.protocol.https.HttpsURLConnection.connect(Unknown Source)
         at sun.plugin.protocol.jdk12.http.HttpURLConnection.getInputStream(Unknown Source)
         at oracle.jre.protocol.jar.HttpUtils.followRedirects(Unknown Source)
         at oracle.jre.protocol.jar.JarCache$CachedJarLoader.download(Unknown Source)
         at oracle.jre.protocol.jar.JarCache$CachedJarLoader.load(Unknown Source)
         at oracle.jre.protocol.jar.JarCache.get(Unknown Source)
         at oracle.jre.protocol.jar.CachedJarURLConnection.connect(Unknown Source)
         at oracle.jre.protocol.jar.CachedJarURLConnection.getJarFile(Unknown Source)
         at sun.misc.URLClassPath$JarLoader.getJarFile(Unknown Source)
         at sun.misc.URLClassPath$JarLoader.<init>(Unknown Source)
         at sun.misc.URLClassPath$2.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.misc.URLClassPath.getLoader(Unknown Source)
         at sun.misc.URLClassPath.getLoader(Unknown Source)
         at sun.misc.URLClassPath.getResource(Unknown Source)
         at java.net.URLClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(Unknown Source)
         at sun.applet.AppletClassLoader.findClass(Unknown Source)
         at sun.plugin.security.PluginClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadCode(Unknown Source)
         at sun.applet.AppletPanel.createApplet(Unknown Source)
         at sun.plugin.AppletViewer.createApplet(Unknown Source)
         at sun.applet.AppletPanel.runLoader(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    WARNING: Unable to cache https://NHR.sec.navy.mil/forms/java/frmall_jinit.jar
    java.io.IOException: javax.net.ssl.SSLException: SSL handshake failed: X509CertChainInvalidErr
         at oracle.security.ssl.OracleSSLSocketImpl.startHandshake(Unknown Source)
         at oracle.jinitiator.protocol.https.HttpsClient.doConnect(Unknown Source)
         at sun.net.www.http.HttpClient.openServer(Unknown Source)
         at sun.net.www.http.HttpClient.openServer(Unknown Source)
         at sun.net.www.http.HttpClient.<init>(Unknown Source)
         at sun.net.www.http.HttpClient.<init>(Unknown Source)
         at sun.plugin.protocol.jdk12.http.HttpClient.<init>(Unknown Source)
         at oracle.jinitiator.protocol.https.HttpsClient.<init>(Unknown Source)
         at oracle.jinitiator.protocol.https.HttpsClient.New(Unknown Source)
         at oracle.jinitiator.protocol.https.HttpsURLConnection$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at oracle.jinitiator.protocol.https.HttpsURLConnection.connect(Unknown Source)
         at sun.plugin.protocol.jdk12.http.HttpURLConnection.getInputStream(Unknown Source)
         at oracle.jre.protocol.jar.HttpUtils.followRedirects(Unknown Source)
         at oracle.jre.protocol.jar.JarCache$CachedJarLoader.download(Unknown Source)
         at oracle.jre.protocol.jar.JarCache$CachedJarLoader.load(Unknown Source)
         at oracle.jre.protocol.jar.JarCache.get(Unknown Source)
         at oracle.jre.protocol.jar.CachedJarURLConnection.connect(Unknown Source)
         at oracle.jre.protocol.jar.CachedJarURLConnection.getJarFile(Unknown Source)
         at sun.misc.URLClassPath$JarLoader.getJarFile(Unknown Source)
         at sun.misc.URLClassPath$JarLoader.<init>(Unknown Source)
         at sun.misc.URLClassPath$2.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.misc.URLClassPath.getLoader(Unknown Source)
         at sun.misc.URLClassPath.getLoader(Unknown Source)
         at sun.misc.URLClassPath.getResource(Unknown Source)
         at java.net.URLClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(Unknown Source)
         at sun.applet.AppletClassLoader.findClass(Unknown Source)
         at sun.plugin.security.PluginClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadCode(Unknown Source)
         at sun.applet.AppletPanel.createApplet(Unknown Source)
         at sun.plugin.AppletViewer.createApplet(Unknown Source)
         at sun.applet.AppletPanel.runLoader(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    WARNING: Unable to cache https://NHR.sec.navy.mil/forms/java/jacob.jar
    load: class oracle.forms.webutil.common.RegisterWebUtil not found.
    java.lang.ClassNotFoundException: java.io.IOException: javax.net.ssl.SSLException: SSL handshake failed: X509CertChainInvalidErr
         at oracle.security.ssl.OracleSSLSocketImpl.startHandshake(Unknown Source)
         at oracle.jinitiator.protocol.https.HttpsClient.doConnect(Unknown Source)
         at sun.net.www.http.HttpClient.openServer(Unknown Source)
         at sun.net.www.http.HttpClient.openServer(Unknown Source)
         at sun.net.www.http.HttpClient.<init>(Unknown Source)
         at sun.net.www.http.HttpClient.<init>(Unknown Source)
         at sun.plugin.protocol.jdk12.http.HttpClient.<init>(Unknown Source)
         at oracle.jinitiator.protocol.https.HttpsClient.<init>(Unknown Source)
         at oracle.jinitiator.protocol.https.HttpsClient.New(Unknown Source)
         at oracle.jinitiator.protocol.https.HttpsURLConnection$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at oracle.jinitiator.protocol.https.HttpsURLConnection.connect(Unknown Source)
         at sun.plugin.protocol.jdk12.http.HttpURLConnection.getInputStream(Unknown Source)
         at java.net.HttpURLConnection.getResponseCode(Unknown Source)
         at sun.applet.AppletClassLoader.getBytes(Unknown Source)
         at sun.applet.AppletClassLoader.access$100(Unknown Source)
         at sun.applet.AppletClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.applet.AppletClassLoader.findClass(Unknown Source)
         at sun.plugin.security.PluginClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadCode(Unknown Source)
         at sun.applet.AppletPanel.createApplet(Unknown Source)
         at sun.plugin.AppletViewer.createApplet(Unknown Source)
         at sun.applet.AppletPanel.runLoader(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    load: class oracle.forms.engine.Main not found.
    java.lang.ClassNotFoundException: java.io.IOException: javax.net.ssl.SSLException: SSL handshake failed: X509CertChainInvalidErr
         at oracle.security.ssl.OracleSSLSocketImpl.startHandshake(Unknown Source)
         at oracle.jinitiator.protocol.https.HttpsClient.doConnect(Unknown Source)
         at sun.net.www.http.HttpClient.openServer(Unknown Source)
         at sun.net.www.http.HttpClient.openServer(Unknown Source)
         at sun.net.www.http.HttpClient.<init>(Unknown Source)
         at sun.net.www.http.HttpClient.<init>(Unknown Source)
         at sun.plugin.protocol.jdk12.http.HttpClient.<init>(Unknown Source)
         at oracle.jinitiator.protocol.https.HttpsClient.<init>(Unknown Source)
         at oracle.jinitiator.protocol.https.HttpsClient.New(Unknown Source)
         at oracle.jinitiator.protocol.https.HttpsURLConnection$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at oracle.jinitiator.protocol.https.HttpsURLConnection.connect(Unknown Source)
         at sun.plugin.protocol.jdk12.http.HttpURLConnection.getInputStream(Unknown Source)
         at java.net.HttpURLConnection.getResponseCode(Unknown Source)
         at sun.applet.AppletClassLoader.getBytes(Unknown Source)
         at sun.applet.AppletClassLoader.access$100(Unknown Source)
         at sun.applet.AppletClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.applet.AppletClassLoader.findClass(Unknown Source)
         at sun.plugin.security.PluginClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadCode(Unknown Source)
         at sun.applet.AppletPanel.createApplet(Unknown Source)
         at sun.plugin.AppletViewer.createApplet(Unknown Source)
         at sun.applet.AppletPanel.runLoader(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)

    You get the same error for all jar-files, not only for the ones regarding WEBUTIL. Does any form run with the specified config-section you use for webutil?

  • OCCI BUG! Error reading Objects which contain NULLS

    The original problem was that I couldn't retrieve a SDO_GEOMERTY object from a table. Using OCCI and the OTT utility I always got assertions and exceptions.
    Various people have already reported this problem (e.g. Hu Cao, "HELP!! operating SDO_GEOMETRY with OCCI" ).
    After several hours of testing I found the real problem: When ever an object contain NULLS the problem appears.
    Eg. the "occiobj"-demo works fine with the original data. However, after setting one value in a publ_address object to NULL
    eg. UPDATE publisher_tab SET publisher_id=11, publisher_add=publ_address( NULL , 'NEW YORK') WHERE publisher_id=11;
    the demo program crashes!!!
    After discovering this, I generated a SDO_GEOMERTY object containing no NULLS and suddenly my program was able to retrieve the object.
    Consequently there is only one big problem remaining:
    A valid SDO_GEOMERTY object has to have NULLS in it!!!!
    Comments please
    Johannes
    (I'm working with Win2K and the Oracle 9i Client. The bug appears in conjunction with both Oracle 8.1.7 and Oracle 9i)

    I downloaded the Oracle 9i Release 2 (9.2.0.1) Client for Win and there I have less problems to get objects which contain NULLs.
    Now if a standard-typed member (of an objects) is NULL, OCCI recognizes this correctly and the program never crashed again.
    However, there is one BUG remaining. If an object-typed member is NULL the program still crashes.
    Eg. if the SDO_POINT member (type MDSYS.SDO_POINT_TYPE) of an MDSYS.SDO_GEOMETRY object is NULL,
    the program crashes in the
    void sdo_point::readSQL(oracle::occi::AnyData& streamOCCI_)
    function (which was generated by the OTT utility). It seems that in function
    void sdo_point::readSQL(void ctxOCCI_)
    the streamOCCI_.isNull() command doesn't recognize that the sdo_point object is NULL.
    (see source code below)
    WITH THIS BUG YOU CANNOT GET A MDSYS.SDO_GEOMETRY OBJECT WITH OCCI!!!
    Has anybody solved this problem? Is there a bug fix?
    Thanks in Advance
    Johannes
    void sdo_point::readSQL(void ctxOCCI_)
    sdo_point *objOCCI_ = new(ctxOCCI_) sdo_point(ctxOCCI_);
    oracle::occi::AnyData streamOCCI_(ctxOCCI_);
    try
    if (streamOCCI_.isNull()) // <-- doesn't recognize that the object in NULL
    objOCCI_->setNull();
    else
    objOCCI_->readSQL(streamOCCI_); // <-- consequently the actual readSQL is called, which crashes...
    catch (oracle::occi::SQLException& excep)
    delete objOCCI_;
    excep.setErrorCtx(ctxOCCI_);
    return (void *)NULL;
    return (void *)objOCCI_;
    void sdo_point::readSQL(oracle::occi::AnyData& streamOCCI_)
    X = streamOCCI_.getNumber();
    Y = streamOCCI_.getNumber();
    Z = streamOCCI_.getNumber();

  • OCCI working in VS6.0 and giving error in VS2005 - Please help

    I am trying to recompile one of the OCCI program I have created in VS6.0, in VS2005. I am ending up with errors.
    During
    env = Environment::createEnvironment (Environment::DEFAULT);
    lot of DLLs (oranro10.dll, orantcp10.dll,oranhost10.dll, ORANCDS10.DLL, orantns10.dll, ORAPLS10.DLL,ORASLAX10.DLL, ORAPLP10.DLL, orahasgen10.dll etc...) are saying Cannot find or open a required DBG file.
    During
    conn = env->createConnection (user, passwd, db);
    Unhandled exception at 0x612f89e9 in occitrail.exe: 0xC0000005: Access violation reading location 0xcccccccc.
    Whether any body has idea why this error is happending and What I have to do for not to get this error.
    Thanks in advance for your help,
    Chandra.

    Hello,
    to be on the safe side I advise to do :
    - install Oracle 10.2.0.3.0 Instant Client (not sure whether version 10.1. is causing the problem with your OCCI software)
    - install the OCCI 10.2.0.3.0 Patch 13
    - clean & rebuild your application linking the oraocci10.lib or oraocci10d.lib (debug version) provided with the patch
    The problem of your application could be caused by different runtime versions of the microsoft mfc/crt runtime libraries used by your main program and occi dll. - Welcome to DLL/Manifest hell ;-)
    You can have a look at the manifest file you got with the OCCI patch, there you see which runtime DLLs OCCI is expecting.
    You can check which Microsoft runtime DLLs are loaded using the software 'dependency walker'. Just make sure ONLY one version of the runtime will be loaded (e.g. mfc80.dll, msvc80.dll ... VC80 versions are used with VS2005).
    Check if your application is loading the new, patched OCCI DLL (oraocci10.dll) not some old ones....
    http://www.dependencywalker.com/
    Good luck
    Horst

  • OCCI Error -  ORA-32102: invalid OCI handle

    Hi,
    I'm completely new to OCCI and Linux and trying to run the simple OCCI program given in oracle site (http://www.oracle.com/technology/tech/oci/occi/occibasic.html) to connect a remote Oracle DB server.
    #include <iostream>
    #include <occi.h>
    using namespace std;
    using namespace oracle::occi;
    int main()
    Environment* env = Environment::createEnvironment();
    Connection* conn = env->createConnection("testdb", "testdb", "192.168.10.118:1521/ORADB"); // user, password, url
    Statement* stmt = conn->createStatement();
    stmt->setSQL("INSERT into FRUITS (fruit, amt) VALUES ('apple', 10)");
    stmt->executeUpdate();
    conn->terminateStatement(stmt);
    env->terminateConnection(conn);
    Environment::terminateEnvironment(env);
    return 0;
    When I try to run it after compilation it gives the following error.
    ORA-32102: invalid OCI handle
    The error should be in the line: Connection* conn = env->createConnection("testdb", "testdb", "192.168.10.118:1521/ORADB");
    I could track it by placing a cout<< there.
    Why this is and how can I handle this error? Please post your experience.
    Thanks

    Hi,
    I found the reason. It may due to the permission level of the user "testdb". When I tried with a different user it worked!
    Thanks

  • OCCI-getString error

    The following is a small console program written with Visual C++
    6.0 sp 4.
    The program has a crash when it tries to destruct the
    string variable fodt in the while loop.
    Is this a known bug or is there an error in the code ?
    Bertil Reppen
    #include "stdafx.h"
    #include <iostream>
    //#include <string.h>
    #include <occi.h>
    using namespace std;
    using namespace oracle::occi;
    int main(int argc, char* argv[])
         const string username = "BERTIL";
         const string password = "REPPXX";
         const string url = "aoye.apintdom.no";
    Environment *env = Environment::createEnvironment (
    Environment::DEFAULT);
    try
              Connection *conn = env->createConnection
    (username, password, url);
              string sqlQuery = "SELECT pasientnr1,to_char
    (FODSELSDATO,'dd-mm-yyyy') FROM pasient_nr";
              Statement *stmt = conn->createStatement
    (sqlQuery);
              ResultSet *rs = stmt->executeQuery ();
              while (rs->next ())
                   long pasno = rs->getInt(1);
                   string fodt = rs->getString(2);
              stmt->closeResultSet (rs);
              conn->terminateStatement (stmt);
              env->terminateConnection (conn);
    catch (SQLException ea)
    cout << ea.what();
              catch (exception &excp)
         cout << excp.what() << endl;
    Environment::terminateEnvironment (env);
         return 0;

    Israel,
    Most of these errors do indeed arise from missing/wrong
    compilation flags/defines. Check out OCCI samples and
    the "make.bat" files in your %ORACLE_HOME%\rdbms\demo directory
    for the correct flags, includes, and libraries. Here is an
    example,
    :occimake
    cl -GX -DWIN32COMMON -I. -I%ORACLE_HOME%\oci\include -I. -D_DLL -
    D_MT %1.cpp /link /LIBPATH:%ORACLE_HOME%\oci\lib\msvc oci.lib
    msvcrt.lib msvcprt.lib oraocci9.lib /nod:libc
    Regards,
    Geoff
    the problem also occurs on VC 6.0 without any service pack.
    pay attention that the following expression:
    typeid(rs->getString(1)
    leads to a compiler internal error (getXXX other than string
    works just fine !!!).
    this, along with some other testings i've conducted might
    indicate that oraocci9.lib has been compiled with stl (or just
    string) which differs from the version supplied with msvc.
    it also can result from missing/wrong compilation flags/defines.
    i'm still working on this.
    if anyone finds the answer PLEASE contact me !!!
    regards,
    Israel Kalush

  • Can Anybody Tell me  how to solve this Error (related OCCI)

    following Errors are Coming While Running...
    Programmmm
    int main()
    nvironment *env = Environment :: createEnvironment();
         cout << "Environment is creating" << endl;
    Connection *conn = env->createConnection( "test", "test" ,"10.116.64.98:1521/ORCL");
    cout << "Connecting to the database" << endl;     
    env->terminateConnection(conn);
    Environment::terminateEnvironment(env);
    return 1;
    Enviroment is Creating but not connecting to the Database.....
    my database Client is 10G
    VC++ 2005...
    I downloaded .dll and .lib files from below link
    http://www.oracle.com/technology/tech/oci/occi/occidownloads.html
    but same thing is working in VC++2003... But not in 2005..... Error is given below
    ERROR
    'sanju.exe': Loaded 'C:\WINNT\system32\mmdrv.dll', No symbols loaded.
    'sanju.exe': Unloaded 'C:\WINNT\system32\mmdrv.dll'
    First-chance exception at 0x7c59bc81 in sanju.exe: Microsoft C++ exception: oracle::occi::SQLException at memory location 0x0012fc34..
    First-chance exception at 0x7c59bc81 in sanju.exe: Microsoft C++ exception: [rethrow] at memory location 0x00000000..
    Unhandled exception at 0x7c59bc81 in sanju.exe: Microsoft C++ exception: oracle::occi::SQLException at memory location 0x0012fc34..
    The program '[1676] sanju.exe: Native' has exited with code -1073741510 (0xc000013a).
    can anybody help me plzzzzzzzzzz...
    cheers ,
    sanju
    }

    AFAIK, you can't mix and match vs2003 and vs2005 compiled libraries. I don't think 10g supports vs2005.
    11g does offer OCCI import libs (.lib) specifically for use with vs2005 in oci/lib/msvc/vc8.
    That's what I'm using successfully. 11g on Windows was recently released officially, give it a try for real vs2005 support. --DD                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

Maybe you are looking for

  • Japanese and English together in database table?

    Hi all, on to my next challenge... ;-) I'm wondering if there are any issues with database tables that contain both Japanese and English (Roman) characters. I'm in the process of establishing an online language-learning site that will target (mostly)

  • History is being saved even though I have Never Save History enabled in options.

    can anybody help me

  • Intel-Mac Color Profile Issues

    Afternoon Folks, Just picked up my 15" MPB this past Friday. My iMac had packed it in, so went for broke and got a 15", with 2GB of RAM and the 256MB video. So..besides the Type-1 font problem, I have a HUGE problem with Color Profiles. In Adobe Phot

  • Extended warranty for Z3 in India

    Hey Is there any extended warrantty in India? Also for repairs post warranty, what do the repair costs look like? For example, parts and labour for replacing the screen for Z3? Thanks, -Vikrant

  • Can someone explain video qualities

    Is there any difference in the quality of a video bought using music store on my mac, my ipod/ipodtouch or using appletv? Is it better to by them through appletv or just on my mac? And can i sync any purchased videos to all of my devices while retain