Re: createEnvironment Hanging

From: Baldrin <brook.wallace_at_gmail.com>
Date: 8 Dec 2006 12:07:39 -0800
Message-ID: <1165608459.671407.144360_at_j44g2000cwa.googlegroups.com>


I found the reason for my problem. If anyone is interested the link below explains why.

http://forums.oracle.com/forums/thread.jspa?threadID=403202&tstart=75

Baldrin wrote:
> I am having an issue with the createEnvironment function.
> When I call the function it just hangs. The cpu usages goes way up but
> nothing ever
> happens and the function never returns. This code has worked fine for
> me in the past. I
> have just recently came back to the code and I know I never actually
> changed the code.
> I have recompiled several different examples and they all hang on that
> same function call.
>
> Here is the code:
>
> int DbManager::getEnv()
> {
> try
> {
> //It program hangs on this line
> env_ =
> oracle::occi::Environment::createEnvironment(oracle::occi::Environment::OBJECT);
> mappings(env_);
> }
> catch(SQLException e)
> {
> std::cerr << "Exception raised in DBManager::getEnv()" <<
> std::endl;
> std::cerr << e.getMessage() << std::endl;
> return(e.getErrorCode());
> }
> return(0);
> }
>
> Here are the linked libraries:
>
> libpthread.so.0 => /lib/tls/libpthread.so.0 (0x00352000)
> libstdc++.so.5 => /usr/lib/libstdc++.so.5 (0x00af7000)
> /usr/local/oracle_10g/libnnz10.so =>
> /usr/local/oracle_10g/libnnz10.so (0x00c36000)
> libocci.so.10.1 => /usr/local/oracle_10g/libocci.so.10.1
> (0x0075d000)
> libclntsh.so.10.1 => /usr/local/oracle_10g/libclntsh.so.10.1
> (0x00fa3000)
> libm.so.6 => /lib/tls/libm.so.6 (0x00111000)
> libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x0013a000)
> libc.so.6 => /lib/tls/libc.so.6 (0x00143000)
> /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x00f8d000)
> libdl.so.2 => /lib/libdl.so.2 (0x00f89000)
> libnsl.so.1 => /lib/libnsl.so.1 (0x0027b000)
>
>
> Here is my LD_LIBRARY_PATH:
>
> LD_LIBRARY_PATH=:/usr/local/oracle_10g/:/usr/local/tao/lib:/usr/local/lib:/u01/app/oracle/product/8.1.7/lib
>
>
> Anyone have any ideas. I am sort of at a loss.
Received on Fri Dec 08 2006 - 21:07:39 CET

Original text of this message