Unresolved symbol : OCIEnvCreate (code)  from libocci.sl.10.1

I'm getting a core dump, with the error message "Unresolved symbol : OCIEnvCreate (code) from libocci.sl.10.1", when I try to execute a simple OCCI code that connects to the database and performs some SQL queries. It is occuring at the following line :
Environment *env = Environment::createEnvironment(Environment::DEFAULT);
I'm using oracle 9i (Ver 9.2.0.6.0) on HP-UX (Ver 11),
I'm using Oracle Instant Client for HP-UX PA-RISC (32-bit) (Version 10.2.0.2) libraries for OCCI.
Can anyone help me out?

I'm using aCC compiler, and doing dynamic linking..I've specified the directory path of the .sl files of the instant client in SHLIB_PATH, do I need to specify the path in ORACLE_HOME, or some other env variable??
Can you tell me steps that I should follow while compiling, linking & execute the code?

Similar Messages

  • Unresolved symbol after migrating Pro*C from Oracle 8i to Oracle 10gR2

    Hello,
    We are currently migrating a 32bits application written in Pro*C and Pro*Cobol from Oracle 8i client to Oracle 10gR2 client (Oracle 10gR2 server).
    Precompiling, compiling and linking the source files are ok. But at runtime, the following error appears :
    /usr/lib/dld.sl: Unresolved symbol: __sendpath64 (code) from /logiciel/oracle/client_10203/lib32/libclntsh.sl.10.1
    Here is the command used for pre-compiling, compiling and linking :
    +----> Precompiling Pro*C src/its_execute_lmd.pc ...
    proc maxopencursors=100 hold_cursor=yes release_cursor=yes ireclen=500 oreclen=132 mode=ORACLE code=ANSI_C dbms=v8 unsafe_null=yes ltype=none include=(inc,/logiciel/oracle/client_10203/network/public,/logiciel/oracle/client_10203/plsql/public,/logiciel/oracle/client_10203/precomp/public,/vtcvd10/vcour/common/alimentation_com/afonction_partagee/inc,/logiciel/oracle/client_10203/rdbms/public,/logiciel/oracle/client_10203/rdbms/demo,) iname=src/its_execute_lmd.pc
    Pro*C/C++: Release 10.2.0.3.0 - Production on Mer. Déc. 5 10:16:56 2007
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Valeurs des options système par défaut extraites de : /logiciel/oracle/client_10203/precomp/admin/pcscfg.cfg
    +----> .................... src/its_execute_lmd.c OK
    +----> Compiling src/its_execute_lmd.c ...
    cc -Ae -Iinc -I/logiciel/oracle/client_10203/network/public -I/logiciel/oracle/client_10203/plsql/public -I/logiciel/oracle/client_10203/precomp/public -I/logiciel/oracle/client_10203/rdbms/public -I/logiciel/oracle/client_10203/rdbms/demo -I/vtcvd10/vcour/common/alimentation_com/afonction_partagee/inc -c src/its_execute_lmd.c -o src/its_execute_lmd.o
    +----> .................... src/its_execute_lmd.o OK
    +----> Building its_execute_lmd ...
    cc -Wl,+s -Wl,+n -Llib -L/vtcvd10/vcour/lib -L/logiciel/oracle/client_10203/lib32 -L/logiciel/oracle/client_10203/rdbms/lib32 -o bin/its_execute_lmd src/its_execute_lmd.o -l:libclntsh.sl -l:libits.a
    +----> .................... its_execute_lmd OK
    Here is the SHLIB_PATH var used at runtime :
    SHLIB_PATH=/logiciel/oracle/client_10203/lib32
    I would appreciate any help about this unresolved symbol in the Oracle shared library.
    Thank you in advance.

    What does the program do? It might make more sense, given the tremendous number of changes and enhancements to just rewrite it.

  • Unresolved symbol: U_get_previous_frame_x in intermedia

    Hi All
    I am getting the following error while running a test command "exec ctx_output.start_log('log')"
    /usr/lib/dld.sl: Unresolved symbol: U_get_previous_frame_x (code) from /opt/ims
    /oracle/product/RDBMS/8.1.5/ctx/lib/libctxx8.sl
    /usr/lib/dld.sl: Unresolved symbol: U_get_frame_info (code) from /opt/ims/oracl
    e/product/RDBMS/8.1.5/ctx/lib/libctxx8.sl
    BEGIN ctx_output.start_log('log'); END;
    ERROR at line 1:
    ORA-20000: ConText error:
    ORA-06520: PL/SQL: Error loading external library
    ORA-06522: Unresolved external
    ORA-06512: at "CTXSYS.DRUE", line 122
    ORA-06512: at "CTXSYS.CTX_OUTPUT", line 39
    ORA-06512: at line 1.
    Can some body help me on this please.....
    This is very urgent.
    Regards
    UDay
    null

    Hi Tofubug,
    Since I'm not familiar about C#, however, if want to run powershell script in C#, the script below may be helpful for you:
    RunspaceConfiguration runspaceConfiguration = RunspaceConfiguration.Create();
    Runspace runspace = RunspaceFactory.CreateRunspace(runspaceConfiguration);
    runspace.Open();
    RunspaceInvoke scriptInvoker = new RunspaceInvoke(runspace);
    Pipeline pipeline = runspace.CreatePipeline();
    //Here's how you add a new script with arguments
    Command myCommand = new Command(scriptfile);
    CommandParameter testParam = new CommandParameter("key","value");
    myCommand.Parameters.Add(testParam);
    pipeline.Commands.Add(myCommand);
    // Execute PowerShell script
    results = pipeline.Invoke();
    And these threads for your reference:
    Execute PowerShell Script from C# with Commandline Arguments
    How to run PowerShell scripts from C#
    How do you set FullLanguage mode
    for remote PowerShell from C#?
    If I have any misunderstanding, please feel free to let me know.
    Best Regards,
    Anna Wang

  • FORTE 30M+HP11 - Unresolved symbol __shlinit ?

    Hi,
    Doing a C library using 3.0.G.2 & HP 10.20 enables me
    to link 'helloworld.c' with it and run the resulting a.out.
    Doing the same on 3.0.M & HP 11 enables me to link as
    well, but running a.out I got the following message:
    /usr/lib/dld.sl: Unresolved symbol: __shlinit (code) from
    /opt/forte/bldvsn3/install/lib/libqqxh.sl
    Abort(coredump)
    I tried to get the link command called by fcompile, and change
    the order of libraries but that didn't change the errror message
    What to do ?
    Thanks
    j-paul gabrielli

  • Dwp dumps core. Unresolved symbol: timezone_getDefaultTZID

    Hi,
    Subscribing to another user calendar or resources generates the following messages to the console and dwp dumps core.
    /opt/SUNWcal/calendar/bin> /usr/lib/dld.sl: Unresolved symbol: timezone_getDefaultTZID (code) from ./libcore_parser10.sl
    /usr/lib/dld.sl: Unresolved symbol: timezone_getDefaultTZID (code) from ./libcore_parser10.sl
    /usr/lib/dld.sl: Unresolved symbol: timezone_getDefaultTZID (code) from ./libcore_parser10.sl
    /usr/lib/dld.sl: Unresolved symbol: timezone_getDefaultTZID (code) from ./libcore_parser10.sl
    Platform: HPUX11.11
    Calendar: 2005Q4
    Thanks,
    Toriq

    <pre>
    Hi Donald,
    You should have logged this as new problem under new thread.
    I would suggest to try search for "106327" at
    http://access1.sun.com
    P.S: Use bottom search engine.
    Thanks
    Kalpesh

  • System.LoadLibrary + dlopen -- callback causes unresolved symbol

    Hi guys,
    I am currently trying to use the API
    System.loadLibrary(String name)in order to dynamically link shared libaries to SOLARIS JVM.
    I am facing some unresolved symbol at run-time .
    I load a shared library libhello1 (using system.LoadLibary)
    and I call from this lib (via JNI interface) a method which
    loads a second library libhello2(using dlopen) and invokes hello2().
    hello2 will call back a method hello_bug which is implemented in libhello1.
    There is the a mutual or cyclic dependence. This dependance is correctly handled if I link the libhello1 to a standard C implemented executable.
    But if I load libHello1 via System.Load, the second lib is correctly loaded but the call back is not possible due to unresolved symbol.
    It seems like the symbols are not kept in this case(or the dlopen creates a different thread?...)
    The workaround to fix the issue is to link explicitely libHello1 to libHello2 when building libHello2.
    I don't know if this is clear to everyone so
    I have reproduced this on a very simple case.
    Basicaly, I have implemented in standard C language 2 shared libraries:
    libHelloModule1.so, libHelloModule2.so
    one standard executable and one java interface to call the method
    Below is the full code for reproduce:
    hello1.h:
    #include <dlfcn.h>
    #include <stdlib.h>
    #include <stdio.h>
    #include <iostream>
    #include <jni.h>
    #include "hello_jni.h" [u]//automatically generated by javah -- ref Makefile[/u]
    extern "C"  void hello_bug();
    hello1.cc :#include "hello1.h"
    extern "C" {
    JNIEXPORT void JNICALL Java_com_helloworld_Hello_ShowMessage
      (JNIEnv *, jobject, jstring){
    void *handle;
    const  char *error;
    void  (*init) (void);
    printf(" load Hello2 \n");
    handle = dlopen ("libHelloModule2.so", RTLD_LAZY);
    printf (" lib Hello2 onload.. \n");
    error = dlerror();
    if (!handle) {
          printf ("lib HelloModule2 not loaded correctly %s \n", error);
          exit(1);
       dlerror();
       init =(void(*)())  dlsym(handle, "hello2");
      error = dlerror();
            if(error)
                    fprintf(stderr, "Could not find print_hello(): %s\n",
    error);
                    exit(1);
    (*init)();
        dlclose(handle);
    void hello_bug()
    printf ("Hello bug correctly  invoked : CQFD\n");
    }// extern "C"
    hello2.cc
    #include "hello1.h"
    typedef void  ( *PF1) (char *, char *);
    extern "C" {
    void hello2(){
    printf ("Hello2 : ping Hello1\n");
    /*simple call work in c not via JNI*/
    hello_bug();
    Hello.java :
    package com.helloworld;
    import java.util.*;
    import java.io.*;
    public class Hello  {
      private native void ShowMessage(String msg);
      public void initialized() {
                System.out.println(" ShowMessage - called");
      try {
              ShowMessage("Generated with JNI");
           } catch (Exception e ) {
                e.printStackTrace();         }
      public Hello(){
      System.loadLibrary("HelloModule1");
                System.out.println(" HelloModule1 loaded");
    TestLocal.java :
    import java.util.*;
    import java.io.*;
    import com.helloworld.Hello;
    public class TestLocal{
    public TestLocal(){
            System.out.println("test local");
    public static void main(String[] args) {
            TestLocal test_local = new TestLocal();
            Hello test = new Hello();
            test.initialized();
    }THE MOST IMPORTANT IS IN THE MAKEFILE:
    Makefile :all: Hello.jar hello_jni.h libHelloModule1.so libHelloModule2.so TestLocal.class dummy
    Hello.jar: com/helloworld/Hello.class
    jar cvf $@  com/helloworld
    com/helloworld/Hello.class: Hello.java
    $(JAVAC)  -d . Hello.java
    hello_jni.h: Hello.jar
    $(JAVAH) -jni -o $@ -classpath ./Hello.jar com.helloworld.Hello
    libHelloModule1.so : hello_jni.h hello1.o  
    gcc  -G  -o $@ hello1.o -lstdc++
    libHelloModule2.so : hello2.o
    gcc   -G  -o $@ hello2.o -Wl -lstdc++  -L. -lHelloModule1   [u] # -->CASE  1 :THIS WORKS [/u]
    gcc   -G  -o $@ hello2.o -Wl -lstdc++ [u] #-->CASE 2 :THIS  DOES NOT WORK[/u]
    dummy : dummy_main.o
    gcc  -o $@ dummy_main.o -L. -lHelloModule1 -L/usr/local/lib -lstdc++
    hello2.o : hello2.cc
    gcc -I. -O -c  hello2.cc
    hello1.o : hello1.cc
    gcc -I. -O -c  hello1.cc
    TestLocal.class : TestLocal.java
    $(JAVAC) -classpath  . -d . TestLocal.java
    dummy_main.o :  dummy_main.cc
    gcc -I. -O -c  dummy_main.cc
    clean:
    rm -rf com *.o *.so *.class *.jar hello_jni.h dummyCASE 1 : libHelloModule1.so is explicitely linked to libHelloModule2
    myhost % dummy
    load Hello2
    lib Hello2 onload..
    Hello2 : ping Hello1
    Hello bug correctly invoked : CQFD
    myhost % java -cp . TestLocal
    test local
    HelloModule1 loaded
    ShowMessage - called
    load Hello2
    lib Hello2 onload..
    Hello2 : ping Hello1
    Hello bug correctly invoked : CQFD
    CASE 2 : libHelloModule1.so is not explicitely linked to libHelloModule2
    myhost % dummy
    load Hello2
    lib Hello2 onload..
    Hello2 : ping Hello1
    Hello bug correctly invoked : CQFD
    myhost % java -cp . TestLocal
    test local
    HelloModule1 loaded
    ShowMessage - called
    load Hello2
    lib Hello2 onload..
    lib HelloModule2 not loaded correctly ld.so.1: java: fatal: relocation error: file ./libHelloModule2.so: symbol hello_bug: referenced symbol not found
    My concern is to have this working in CASE1 with the JNI interface the same way it does in standard C built runtime.
    So does any have encountered this?
    Is there something I missed somewhere?
    Thanks lot for your help
    Youss

    Hi,
    I have implemented JNative which seems to be close to your problem.
    It works under Windows and Linux, and loads libraries via dlopen and dlsym.
    You can have a look at it's implementation at http://jnative.cvs.sourceforge.net/jnative/JNativeCpp/
    Don't forget to load your libraries before trying to call them with System.load("/path/to/your/lib.so"); if they are not referenced by LD_LIBRARY_PATH.
    This post may be false since I know nothing about Solaris. Perhaps JNative may be ported under Solaris ?
    --Marc (http://jnative.sf.net)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Clueless about this "unresolved symbols"

    Hi there!
    I made a portation from Win32 to SunSolaris8 and I finally succeeded compiling my .so. There are no syntactical errors or binding errors when compiling with CC (SunStudio 8).
    But while executing the application which uses my .so I get the error log:
    code:
    The reason /ya/yao55/yao55c5/wisdev/src/ug-ifc/mach/resource/library/tool/tdm/ugs.so failed to load was:
    There are unresolved symbols in the image:
         __1cDstdMbasic_string4Ccn0ALchar_traits4Cc__n0AJallocator4Cc___2t6Mrk1IIrkn0C__v_
         __1cDstdMbasic_string4Ccn0ALchar_traits4Cc__n0AJallocator4Cc___M__sun_append6Mrk1_r1_
         __1cH__rwstdRexcept_msg_string2t6MIE_v_
         __1cDstdLlogic_error2T5B6M_v_
         __1cDstdMbasic_string4Ccn0ALchar_traits4Cc__n0AJallocator4Cc___Efind6kMpkcII_I_
         __1cDstdMout_of_rangeG__vtbl_
         __1cDstdMbasic_string4Ccn0ALchar_traits4Cc__n0AJallocator4Cc___2G6Mrk1_r1_
         __1cDstdMout_of_range2T6M_v_
         __1cDstdMbasic_string4Ccn0ALchar_traits4Cc__n0AJallocator4Cc___M__sun_concat6kMpkc_1_
         __1cDstdMbasic_string4Ccn0ALchar_traits4Cc__n0AJallocator4Cc___M__sun_append6Mpkc_r1_
         __1cDstdMbasic_string4Ccn0ALchar_traits4Cc__n0AJallocator4Cc___J__nullref_
         __1cH__rwstdbC__rwse_StringIndexOutOfRange_
         __1cDstdMbasic_string4Ccn0ALchar_traits4Cc__n0AJallocator4Cc___2t6Mpkcrkn0C__v_
         __1cDstdLlogic_errorG__vtbl_
         __1cDstdMbasic_string4Ccn0ALchar_traits4Cc__n0AJallocator4Cc___Gassign6Mrk1II_r1_
         __1cDstdMbasic_string4Ccn0ALchar_traits4Cc__n0AJallocator4Cc___2G6Mpkc_r1_
         __1cDstdMbasic_string4Ccn0ALchar_traits4Cc__n0AJallocator4Cc___Hcompare6kMIIpkcI_i_
         __1cDstdMbasic_string4Ccn0ALchar_traits4Cc__n0AJallocator4Cc___M__sun_concat6kMrk1_1_
         __1cDstdMbasic_string4Ccn0ALchar_traits4Cc__n0AJallocator4Cc___Hreplace6MIIpkcIII_pc_
         __1cDstdbC__RTTI__1nDstdMout_of_range__
         __1cDstdMbasic_string4Ccn0ALchar_traits4Cc__n0AJallocator4Cc___H__clone6M_v_
         __1cDstdMbasic_string4Ccn0ALchar_traits4Cc__n0AJallocator4Cc___I__getRep6MII_pnH__rwstdM__string_re f4Ccn0B_n0C____
    Anyone any idea?
    Do I have to link to some lib of c/c++?
    Thx so far, Micha

    First, you should be linking your shared object (ugs.so) with the flag "-z defs", and probably with "-z defs -z text". By doing this, you will force the errors that you are now getting at runtime to be exposed at build time.
    Second, it looks as if your library is missing the standard C++ library. I don't know what the flags are for Studio 8, but for Forte 6U2 passing -library=Crun,Cstd on the compile and link lines sets things up correctly.

  • XmlSaveDom unresolved symbol, and special characters in output...

    I have a couple of issues with XmlSaveDom() that I'm hoping someone can help with...
    Firstly, under windows I'm having difficulty locating the library that it lives in. I'm linking to:
    oraxml10.lib (from the 10.1.0.2 XDK, the latest version I can find) and oci.lib (from the 10.2 client)...but getting an unresolved symbol on XMLSaveDom().
    I'm using the XDK because under windows I only have a client install which does not appear to have any of the XML headers or libraries in it. I'm using
    10.1.0.2 because it's the latest version I can find to download from technet.
    Secondly, under Solaris I'm just linking to libclntsh.so from 10.1.0.2 server home, and this resolves XMLSaveDom() ok. However when I use XMLSaveDom() I find unusual special characters in the output periodically:
    ÿ¾Ý <SOME_TAG>some_value</SOME_TAG>
    The strange character sequence is always the same.
    Any help with either of these would be greatly appreciated.

    The DOM is not required to escape the characters, so it is correct that you get the literal ampersand characters when you ask the DOM for a getNodeValue().
    When an XML document is serialized -- using, for example, the XMLDocument.print() method -- it is when this external form of the document is produced that escaping occurs.
    You can always call XMLNode.print() to serialize the value of a node and it's children into a PrintWriter that wraps a StringWriter to get the string equivalent of the properly escaped values.

  • Unresolved symbols while linking

    Hello all,
    I'm toying around with oo4o and I'm having a linking problem. I'm working in VS.NET 2003.
    I added the directories for headers, excutables, libraries, etc. At first I had 9 unresolved symbol errors, but I got it down to 2 by remembering to link with oraclm32.lib (debug copy). Not sure why those 2 errors are still there. My test function is basically the first sample in the Help docs, something like this:
         OStartup();
         ODatabase odb("ora9", "username", "passwd");
         ODynaset odyn(odb, "select * from emp");
         double salary;
         while (!odyn.IsEOF())
         odyn.GetFieldValue("sal", &salary);
    odyn.MoveNext();
         OShutdown();
    The relevant parts of the buildlog. Once I added the additional command line option to link with oraclm32, everything resolved except references to OStartup and OShutdown. Seems odd. Any ideas?
    Buildlog:
    Searching libraries
    Searching C:\oracle\ora92\oo4o\CPP\LIB\oraclm32.lib:
    Found "__declspec(dllimport) public: virtual __thiscall ODatabase::~ODatabase(void)" (__imp_??1ODatabase@@UAE@XZ)
    Referenced in Dataconnect.obj
    Loaded oraclm32.lib(ORACLM32.dll)
    Found "__declspec(dllimport) public: virtual __thiscall ODynaset::~ODynaset(void)" (__imp_??1ODynaset@@UAE@XZ)
    Referenced in Dataconnect.obj
    Loaded oraclm32.lib(ORACLM32.dll)
    Found "__declspec(dllimport) public: int __thiscall ODynaset::MoveNext(int)" (__imp_?MoveNext@ODynaset@@QAEHH@Z)
    Referenced in Dataconnect.obj
    Loaded oraclm32.lib(ORACLM32.dll)
    Found "__declspec(dllimport) public: int __thiscall ODynaset::GetFieldValue(char const *,double *)const " (__imp_?GetFieldValue@ODynaset@@QBEHPBDPAN@Z)
    Referenced in Dataconnect.obj
    Loaded oraclm32.lib(ORACLM32.dll)
    Found "__declspec(dllimport) public: int __thiscall ODynaset::IsEOF(void)const " (__imp_?IsEOF@ODynaset@@QBEHXZ)
    Referenced in Dataconnect.obj
    Loaded oraclm32.lib(ORACLM32.dll)
    Found "__declspec(dllimport) public: __thiscall ODynaset::ODynaset(class ODatabase const &,char const *,long,class OSnapshotID *)" (__imp_??0ODynaset@@QAE@ABVODatabase@@PBDJPAVOSnapshotID@@@Z)
    Referenced in Dataconnect.obj
    Loaded oraclm32.lib(ORACLM32.dll)
    Found "__declspec(dllimport) public: __thiscall ODatabase::ODatabase(char const *,char const *,char const *,long)" (__imp_??0ODatabase@@QAE@PBD00J@Z)
    Referenced in Dataconnect.obj
    Loaded oraclm32.lib(ORACLM32.dll)
    SNIP
    Dataconnect.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) void __fastcall OShutdown(void)" (__imp_?OShutdown@@YIXXZ) referenced in function "long __fastcall PostData(char *)" (?PostData@@YIJPAD@Z)
    Dataconnect.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) int __fastcall OStartup(int)" (__imp_?OStartup@@YIHH@Z) referenced in function "long __fastcall PostData(char *)" (?PostData@@YIJPAD@Z)

    Hi Guys,
    I got this error too recently. Was troubling me a lot. I was using Windows 7 OS, Visual Studio 2010 compiler.
    The fix for this is pretty much straight forward and solution lies in the Project settings only.
    To my knowledge, with /MDd switch, it causes the compiler to place the library name MSVCRTD.lib into the .obj file.
    But with /MTd switch, This option just causes the compiler to place the library name LIBCMTD.lib into the .obj file so that the linker will use LIBCMTD.lib to resolve external symbols. For details, please refer to this MSDN article:
    https://msdn.microsoft.com/en-us/library/2kzt1wy3(VS.71).aspx
    Its very useful.
    Also
    MDd stands for Multi-threaded Debug DLL
    MTd stands for Multi-threaded Debug
    Thanks,
    Kiran

  • What is the proper way to compile c++ code from the terminal?

    I'm using:
    g++ char.gpp
    And I get:
    ld: library not found for -lcrt1.10.6.o
    collect2: ld returned 1 exit status
    So I tried setting LIBRARY_PATH to a directory that contains crt1.10.6.o, but then I get:
    ld: warning: in char.gpp, file was built for unsupported file format which is not the architecture being linked (x86_64)
    Undefined symbols:
      "_main", referenced from:
          start in crt1.10.6.o
    ld: symbol(s) not found
    collect2: ld returned 1 exit status
    So clearly I am not picking up the right library, or perhaps just not all the libs needed. Why is this so hard? I haven't seen problems like this with earlier versions of Xcode.
    I'm using the latest version of Xcode on a MacBook Pro with Lion installed.
    Thanks,
    Kim

    d'oh! I think you're right. I clearly don't know what I'm doing.
    OK, so if I name the file .cc (it really IS a c++ file), the problem then becomes:
    char.cc:1:20: error: iostream: No such file or directory.
    So how is the compiler supposed to be instructed where to find the header files? I thought if it was properly installed, this would be set up correctly already.
    BTW: the file I'm trying to compile is short:
    #include <iostream>
    int main()
        char c;
        std::cin >> c;
        std:: cout << "the value of '" << c << "' is " << int(c) << '\n';
    It's code straight from the Stroustrup book.
    Thanks,
    Kim

  • Unresolved symbol with parseInt

    Hi all!
    I'm a newbie in Java and wondering if anyone can help me out
    I've been using the following code:
    int j = new Integer.parseInt(i);
    where i contains a string that is always a number like 18 or 67
    when I run my code I get the unresolved symbol error with the parseInt method. But isn't the java.lang.* already imported? How come I can't use this method? Actually I'm learning my java through JSP so my code is actually in a .jsp page. Does anyone have any idea why I can't use the parseInt method?

    sigh
    what type of Object does 'session.getAttribute("Type")' return?
    if its a String, and is properly formatted, Integer.parseInt((String)session.getAttribute("Type")) will work. (don't 4get about the NumberFormatException)
    if its an Integer object, ((Integer)session.getAttribute("Type")).intValue(); will work.
    rob,
    Thanks I haven't tried that yet but it's similar to
    what I did. This one works:
    int j =
    Integer.parseInt((String)session.getAttribute("Type"));
    I was wondering if I can skip the conversion to string
    and got straight and convert to an integer. Is that
    possible?
    Thanks!

  • Hp officejet pro 8100 and it does not print bar codes from UPS or USPS

    have an hp officejet pro 8100 and it does not print bar codes from UPS or USPS.  Can you please please help? i have used my ipad, by HP G62-355DX Notebook and neither will give me printed bar codes.  The balance of the mailing label do print, just not the bar code.  It may be my imagination, by I believe it used to print thebar codes.

    Hi,
    Try adding an alternate driver and try to print.
    To use an alternate print driver for HP printers in Windows 7:
    1. Click on the Start menu.
    2. Click on Devices and Printers.
    3. Click Add a Printer
    4. Add a local Printer
    5. Select Create a New Port
    6. Select Standard TCP\IP port
    7. Enter Printer IP address (Printer IP address can be found by printing network config page from printer
    8. Under Manufacturer select HP and under printer select HP Officejet 8000 pirinter or Officejet 7410
    9. Click apply and try printing
    Although I am an HP employee, I am speaking for myself and not for HP.
    --Say "Thanks" by clicking the Kudos Star in the post that helped you.
    --Please mark the post that solves your problem as "Accepted Solution"

  • How can i get the source code from java concurrent program in R12

    Hi 2 all,
    How can i get the source code from java concurrent program in R12? like , "AP Turnover Report" is java concurrent program, i need to get its source code to know its logic. how can i get its source code not the XML template?
    Regards,
    Zulqarnain

    user570667 wrote:
    Hi 2 all,
    How can i get the source code from java concurrent program in R12? like , "AP Turnover Report" is java concurrent program, i need to get its source code to know its logic. how can i get its source code not the XML template?
    Regards,
    ZulqarnainDid you see old threads for similar topic/discussion? -- https://forums.oracle.com/forums/search.jspa?threadID=&q=Java+AND+Concurrent+AND+Source+AND+Code&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    Thanks,
    Hussein

  • Downloading apps it asks for apple ID Pass then it says "verification required". Then says Security Code required. Doesn't accept code. itunes doesn't accept code from visa card either?Please Help

    Downloading apps it asks for apple ID Pass then it says "verification required". Then says Security Code required. Doesn't accept code. itunes doesn't accept code from visa card either?Please Help

    If it is trying to verify your payment info, I would be willing to guess that it is looking for the security code for your credit card. Did you credit card just get replaced lately or the expiration date change? When is the last time that you updated your payment information in iTunes?

  • How to create a database for sample code from Tutorial/Book?

    I want to try out the sample code from [http://shop.oreilly.com/product/0636920013471.do] for the book SQL Pocket Guide 3rd Ed.
    I have downloaded the oracle vm/appliance for oracle 11g2 and I have started sqlplus as sysdba.
    I'm feeling overwhelmed with these links describing how to create a database:
    [http://www.adp-gmbh.ch/ora/admin/creatingdbmanually.html]
    [http://tldp.org/HOWTO/Oracle-7-HOWTO-3.html]
    [http://www.adp-gmbh.ch/ora/admin/creatingdbmanually.html]
    (1) What is the command to list the existing databases?
    (2) What is the command to delete an existing database?
    (3) When creating a new database with the create database command, is it necessary to specify the logfile, character set, national character set, datafile, sysaux datafile, undo tablespace, temp table space? Do these have reasonable defaults? I'm not sure what proper directories are to specify for Linux and the examples are for windows.
    Can someone give me a simplified create database command to create a database called 3rdEdPocketGuide? Should I follow the example at [http://tldp.org/HOWTO/Oracle-7-HOWTO-3.html] and instead of orcl use 3rdEdPocketGuide?
    (4) What command do I use to execute the script that comes with the book SQL Pocket Guide 3rd Ed? This is the script that has all the drop table, create table and insert commands in it.
    (5) What command do I use in sqlplus to set the current default database prior to running this script? Perhaps this is the connect command? I don't want my script to create tables in the system database.
    (6) I tried the command "connect 3rdEdPocketGuide" and it prompted for a password! Yikes! What password? Do I need to specify a password when I create a database? I cannot tell if I have successfully created such a database or it is just prompting me for a password to thwart malicious users. Is it is possible to create databases which don't require a password or maybe a zero length password?
    Thanks
    Siegfried
    Edited by: user8816970 on Sep 26, 2012 12:01 PM
    Edited by: user8816970 on Sep 26, 2012 12:18 PM

    user8816970 wrote:
    Paul,
    Thanks! I tried changing my profile name to siegfried but I'm not seeing the change...
    Anyway, I'm trying your suggestion to use SQL Developer which was already installed in the virtual box appliance and I cannot figure out how to get a connection.
    When I use the defaults of sid=xe, port=1521, hostname=localhost and specify
    username=sysdba
    password=
    I get status: failure - test failed: listener refursed connection with the following error: ORA 12505, TNS: listener does not current know of sid given.
    So I try sid=orcl and that works better: status: failure - test failed: ORA-01017: invalid username/passowrd; login denied
    OK, sqlplus let me in with out a password, why does not this work?
    So I try checking the box for "OS Authentication" and I get the same error!
    Hoek: I tried searching the documentation and found "3 Exploring Oracle Database with SQL Developer" at http://docs.oracle.com/cd/E11882_01/appdev.112/e10766/toc.htm but following those directions did not help. Can you be more specific? The directions were for a tutorial and I need to know what the passwords are for the database set up with [http://www.oracle.com/technetwork/database/enterprise-edition/databaseappdev-vm-161299.html|http://www.oracle.com/technetwork/database/enterprise-edition/databaseappdev-vm-161299.html] . I also found [http://docs.oracle.com/cd/E11882_01/appdev.112/e10766/tdddg_connecting.htm#CEGHFHIG|http://docs.oracle.com/cd/E11882_01/appdev.112/e10766/tdddg_connecting.htm#CEGHFHIG] but that did not help either.
    Everyone:
    Do I need to create a user using SQL*Plus first so I can login with "Oracle SQL Developer" so I create my database called? What would be the "create user" command I would execute?
    OK, so I run sqlplus and issue these commands
    create user siegfried identified by abc ;
    grant connect to siegfried ;
    connect siegfried/abc;
    Now, how do I create a database? In Microsoft SQL Server one has to create a database first and if you just start creating tables without creating a database first, the tables will be created in the system database and this is usually undesirable.
    Sometimes a database is known in the java connection string as the catalog. Is there any such analog in oracle SQL plus?
    So now what do I do? I want to create a bunch of tables using my script I downloaded from 3rd Ed SQL Pocket Guide. Does my new user "siegfried" have the right to create tables? I guess I could try but I don't want to create tables in the system database.
    I noticed I can also use "Oracle SQL Developer" to connect with my new "siegfried" account. It seems that I should have been able to connect with sysdba... strange.
    So now I am connected in the "Oracle SQL Developer" and I see no list of databases.
    Thanks!
    Siegfried
    >Paul,
    Thanks! I tried changing my profile name to siegfried but I'm not seeing the change...
    Anyway, I'm trying your suggestion to use SQL Developer which was already installed in the virtual box appliance and I cannot figure out how to get a connection.
    When I use the defaults of sid=xe, port=1521, hostname=localhost and specify
    username=sysdba
    password=
    I get status: failure - test failed: listener refursed connection with the following error: ORA 12505, TNS: listener does not current know of sid given.
    So I try sid=orcl and that works better: status: failure - test failed: ORA-01017: invalid username/passowrd; login denied
    OK, sqlplus let me in with out a password, why does not this work?
    So I try checking the box for "OS Authentication" and I get the same error!
    Hoek: I tried searching the documentation and found "3 Exploring Oracle Database with SQL Developer" at http://docs.oracle.com/cd/E11882_01/appdev.112/e10766/toc.htm but following those directions did not help. Can you be more specific? The directions were for a tutorial and I need to know what the passwords are for the database set up with [http://www.oracle.com/technetwork/database/enterprise-edition/databaseappdev-vm-161299.html|http://www.oracle.com/technetwork/database/enterprise-edition/databaseappdev-vm-161299.html] . I also found [http://docs.oracle.com/cd/E11882_01/appdev.112/e10766/tdddg_connecting.htm#CEGHFHIG|http://docs.oracle.com/cd/E11882_01/appdev.112/e10766/tdddg_connecting.htm#CEGHFHIG] but that did not help either.
    Everyone:
    Do I need to create a user using SQL*Plus first so I can login with "Oracle SQL Developer" so I create my database called? What would be the "create user" command I would execute?
    OK, so I run sqlplus and issue these commands
    create user siegfried identified by abc ;
    grant connect to siegfried ;
    connect siegfried/abc;
    above does NOT use SQL*Net to connect to the instance
    >
    Now, how do I create a database? In Microsoft SQL Server one has to create a database first and if you just start creating tables without creating a database first, the tables will be created in the system database and this is usually undesirable.
    Sometimes a database is known in the java connection string as the catalog. Is there any such analog in oracle SQL plus?
    So now what do I do? I want to create a bunch of tables using my script I downloaded from 3rd Ed SQL Pocket Guide. Does my new user "siegfried" have the right to create tables? I guess I could try but I don't want to create tables in the system database.
    I noticed I can also use "Oracle SQL Developer" to connect with my new "siegfried" account. It seems that I should have been able to connect with sysdba... strange.
    So now I am connected in the "Oracle SQL Developer" and I see no list of databases.SQL Developer can only connect to the instance via SQL*Net
    >
    Thanks!
    Siegfrieda database in SQL Server is same as schema/user in Oracle

Maybe you are looking for

  • K7n2 Delta-6570 Will Not Post

    I have k7n2 delta L --6570--amdxp-2500-512 mb pc3200 ram. powmax 400w power .ati 9600 all in wonder. I swapped all parts to a better case to fit a certain location and the system will not post at all. the diagnostic d-bracket has number 1 and 4 in re

  • Embedding video and audio for internet flipbook

    Dear All, first of all, sorry if it's been asked before but I could not find direct answer. My company, small translation agency in Poland, plans on to buy InDesign to improve quality of our output documents, but we have one more feature in mind and

  • Photostream/Cameraroll Photos not showing up on iPhone 4S

    I have been taking photos from lock screen (home button twice, photo icon on screen, plus volume button), and the photos are not showing up in Camera Roll on the iphone 4s. They show up in Photostream on mac, but not on the phone its self. Help, Idea

  • How to make a VPN route permanent ?

    I have a VPN between my office and a lab on the east coast and I can use the following command from my Terminal to enable the route in my Leopard Server: route add -net 10.48.239.0 -netmask 255.255.255.0 192.168.1.254 How can I make this a permanent

  • JFileChooser does not display Korean files

    I have an application that uses JFileChooser to select some files. The application is bundled with English version of JRE 1.6.0_06. On Korean Windows 2003 the application displays files with filenames in Korean and allows them to be chosen. However o