Gethostname on 2.5.1 implicit error

Hi There,
When I use the "cc" compiler with a program using the function call "gethostname()" it compiles/links fine.
When I use the "c++" compiler with a program using the function call "gethostname()" I get the following error:
"implicit declaration of function 'int gethostname()'
I get the same errors for "ftime" and "setpriority".
Any ideas how I can rectify this? This works on 2.6 and greater but I have to have this piece of code working on 2.5.1. (or 5.5.1).
Thanks!

gethostbyname() function is not defined for 2.5.1 ..it seems the way u are describing it.
perhaps they have a different version or a little different spelling of it
good luck

Similar Messages

  • Applet RMI Error

    I have a very simplet Applet that is getting an error in the Init method:
    public void init() {
         print("Starting Init Method");
         print("Server Hostname = " + hostname);
         try {
              String objectName = "//" + hostname + "/EMSL Test RMI Server";
              print("Looking up RMI Object : " + objectName);
              Object object = Naming.lookup(objectName);
              print("Result = " + object);
              ServerInterface server = (ServerInterface)object;
              print("Using Remote Object to get Remote Object Hostname");
              print("... " + server.getHostname());
         }catch(Throwable e) {
              print("");
              print("Error :");
              print(e.toString());
              print("");
              print("Stack Trace :");
              StringWriter stringWriter = new StringWriter();
              PrintWriter printWriter = new PrintWriter(stringWriter);
              e.printStackTrace(printWriter);
              print(stringWriter.toString());
    Error:
    java.lang.ExceptionInInitializerError
    Stack Trace:
    java.lang.ExceptionInInitializerError
    at java.rmi.Naming.getRegistry(bytecode 12)
    at java.rmi.Naming.lookup(bytecode 6)
    at AppletClient.init(bytecode 41)
    at com.insignia.applet.AppletPanel.run(bytecode 167)
    at java.lang.Thread.run (bytecode 11)
    Any thoughts? This works as an appliction under WinCE using insignia EVM, but not as an applet.
    Regards,
    Bill

    Error:
    java.lang.ExceptionInInitializerError
    Stack Trace:
    java.lang.ExceptionInInitializerError
    at java.rmi.Naming.getRegistry(bytecode 12)
    at java.rmi.Naming.lookup(bytecode 6)
    at AppletClient.init(bytecode 41)
    at com.insignia.applet.AppletPanel.run(bytecode
    ode 167)
    at java.lang.Thread.run (bytecode 11)
    Any thoughts? This works as an appliction under WinCE
    using insignia EVM, but not as an applet.Looks like it cant find the registry.
    Make sure that the registry deamon is started and accessible from within your applet.
    Verify that host and port are correct and that the applet is running in an environment where the registry deamon can be reached, eg inside the same subnet.
    This advice sounds like a simple truth, but it is always the simple things stopping software from working.
    Oliver

  • Storage class specified for parameter error

    I used gcc version 4.2.1
    on Target: sparc-sun-solaris2.8
    Configured with: /net/Src/Gnu/GCC/gcc-4.2.1/configure prefix=/usr/local/Gnu/Sol8 enable-languages=c,c++,fortran with-ld=/usr/local/Gnu/bin/ld with-gnu-ld with-as=/usr/local/Gnu/bin/as with-gnu-as with-ar=/usr/local/Gnu/bin/ar with-gnu-ar
    Thread model: posix
    to make a program which include some of standard system header file
    Making the code gave this error message:
    gcc -o resource_vector_test.o -c resource_vector_test.c
    In file included from /usr/include/sys/select.h:51,
    from /usr/local/Gnu/Sol8/lib/gcc/sparc-sun-solaris2.8/4.2.1/include/sys/types.h:574,
    from /usr/include/fcntl.h:39,
    from resource_vector_test.c:2:
    /usr/include/sys/time.h:345: error: redefinition of parameter '_RESTRICT_KYWD'
    /usr/include/sys/time.h:344: error: previous definition of '_RESTRICT_KYWD' was here
    /usr/include/sys/time.h:395: error: conflicting types for '_RESTRICT_KYWD'
    /usr/include/sys/time.h:395: error: previous definition of '_RESTRICT_KYWD' was here
    In file included from /usr/local/Gnu/Sol8/lib/gcc/sparc-sun-solaris2.8/4.2.1/include/time.h:29,
    from /usr/include/sys/time.h:416,
    from /usr/include/sys/select.h:51,
    from /usr/local/Gnu/Sol8/lib/gcc/sparc-sun-solaris2.8/4.2.1/include/sys/types.h:574,
    from /usr/include/fcntl.h:39,
    from resource_vector_test.c:2:
    /usr/include/iso/time_iso.h:110: error: conflicting types for '_RESTRICT_KYWD'
    /usr/include/iso/time_iso.h:110: error: previous definition of '_RESTRICT_KYWD' was here
    /usr/include/iso/time_iso.h:111: error: conflicting types for '_RESTRICT_KYWD'
    /usr/include/iso/time_iso.h:110: error: previous definition of '_RESTRICT_KYWD' was here
    In file included from /usr/local/Gnu/Sol8/lib/gcc/sparc-sun-solaris2.8/4.2.1/include/sys/types.h:574,
    from /usr/include/fcntl.h:39,
    from resource_vector_test.c:2:
    /usr/include/sys/select.h:168: error: redefinition of parameter '_RESTRICT_KYWD'
    /usr/include/sys/select.h:168: error: previous definition of '_RESTRICT_KYWD' was here
    /usr/include/sys/select.h:169: error: redefinition of parameter '_RESTRICT_KYWD'
    /usr/include/sys/select.h:168: error: previous definition of '_RESTRICT_KYWD' was here
    /usr/include/sys/select.h:169: error: conflicting types for '_RESTRICT_KYWD'
    /usr/include/sys/select.h:169: error: previous definition of '_RESTRICT_KYWD' was here
    /usr/include/sys/select.h:172: error: redefinition of parameter '_RESTRICT_KYWD'
    /usr/include/sys/select.h:172: error: previous definition of '_RESTRICT_KYWD' was here
    /usr/include/sys/select.h:173: error: redefinition of parameter '_RESTRICT_KYWD'
    /usr/include/sys/select.h:172: error: previous definition of '_RESTRICT_KYWD' was here
    /usr/include/sys/select.h:173: error: conflicting types for '_RESTRICT_KYWD'
    /usr/include/sys/select.h:173: error: previous definition of '_RESTRICT_KYWD' was here
    /usr/include/sys/select.h:174: error: conflicting types for '_RESTRICT_KYWD'
    /usr/include/sys/select.h:173: error: previous definition of '_RESTRICT_KYWD' was here
    In file included from resource_vector_test.c:3:
    /usr/include/unistd.h: In function '_exit':
    /usr/include/unistd.h:292: error: expected declaration specifiers before '__NORETURN'
    /usr/include/unistd.h:299: error: storage class specified for parameter 'fattach'
    /usr/include/unistd.h:302: error: storage class specified for parameter 'fchdir'
    /usr/include/unistd.h:303: error: storage class specified for parameter 'fchown'
    /usr/include/unistd.h:306: error: storage class specified for parameter 'fchownat'
    /usr/include/unistd.h:310: error: storage class specified for parameter 'fchroot'
    /usr/include/unistd.h:314: error: storage class specified for parameter 'fdatasync'
    /usr/include/unistd.h:322: error: storage class specified for parameter 'fdetach'
    /usr/include/unistd.h:324: error: storage class specified for parameter 'fork'
    /usr/include/unistd.h:326: error: storage class specified for parameter 'fork1'
    /usr/include/unistd.h:327: error: storage class specified for parameter 'forkall'
    /usr/include/unistd.h:329: error: storage class specified for parameter 'fpathconf'
    /usr/include/unistd.h:332: error: storage class specified for parameter 'fsync'
    /usr/include/unistd.h:337: error: storage class specified for parameter 'ftruncate'
    /usr/include/unistd.h:339: error: storage class specified for parameter 'getcwd'
    /usr/include/unistd.h:342: error: storage class specified for parameter 'getdtablesize'
    /usr/include/unistd.h:344: error: storage class specified for parameter 'getegid'
    /usr/include/unistd.h:345: error: storage class specified for parameter 'geteuid'
    /usr/include/unistd.h:346: error: storage class specified for parameter 'getgid'
    /usr/include/unistd.h:347: error: storage class specified for parameter 'getgroups'
    /usr/include/unistd.h:349: error: storage class specified for parameter 'gethostid'
    /usr/include/unistd.h:354: error: storage class specified for parameter 'gethostname'
    /usr/include/unistd.h:356: error: storage class specified for parameter 'getlogin'
    /usr/include/unistd.h:369: error: storage class specified for parameter 'getpagesize'
    /usr/include/unistd.h:371: error: storage class specified for parameter 'getpgid'
    /usr/include/unistd.h:373: error: storage class specified for parameter 'getpid'
    /usr/include/unistd.h:374: error: storage class specified for parameter 'getppid'
    /usr/include/unistd.h:375: error: storage class specified for parameter 'getpgrp'
    /usr/include/unistd.h:381: error: storage class specified for parameter 'getsid'
    /usr/include/unistd.h:383: error: storage class specified for parameter 'getuid'
    /usr/include/unistd.h:385: error: storage class specified for parameter 'getusershell'
    /usr/include/unistd.h:388: error: storage class specified for parameter 'getwd'
    /usr/include/unistd.h:396: error: storage class specified for parameter 'ioctl'
    /usr/include/unistd.h:397: error: storage class specified for parameter 'isaexec'
    /usr/include/unistd.h:398: error: storage class specified for parameter 'issetugid'
    /usr/include/unistd.h:400: error: storage class specified for parameter 'isatty'
    /usr/include/unistd.h:402: error: storage class specified for parameter 'lchown'
    /usr/include/unistd.h:404: error: storage class specified for parameter 'link'
    /usr/include/unistd.h:406: error: storage class specified for parameter 'llseek'
    /usr/include/unistd.h:411: error: storage class specified for parameter 'lockf'
    /usr/include/unistd.h:413: error: storage class specified for parameter 'lseek'
    /usr/include/unistd.h:416: error: storage class specified for parameter 'nice'
    /usr/include/unistd.h:419: error: storage class specified for parameter 'mincore'
    /usr/include/unistd.h:421: error: storage class specified for parameter 'pathconf'
    /usr/include/unistd.h:422: error: storage class specified for parameter 'pause'
    /usr/include/unistd.h:423: error: storage class specified for parameter 'pipe'
    /usr/include/unistd.h:427: error: storage class specified for parameter 'pread'
    /usr/include/unistd.h:430: error: storage class specified for parameter 'profil'
    /usr/include/unistd.h:442: error: storage class specified for parameter 'pthread_atfork'
    /usr/include/unistd.h:446: error: storage class specified for parameter 'ptrace'
    /usr/include/unistd.h:451: error: storage class specified for parameter 'pwrite'
    /usr/include/unistd.h:456: error: storage class specified for parameter 'rcmd_af'
    /usr/include/unistd.h:458: error: storage class specified for parameter 'read'
    /usr/include/unistd.h:461: error: conflicting types for '_RESTRICT_KYWD'
    /usr/include/unistd.h:461: error: previous definition of '_RESTRICT_KYWD' was here
    /usr/include/unistd.h:462: error: storage class specified for parameter 'readlink'
    /usr/include/unistd.h:466: error: storage class specified for parameter 'rename'
    /usr/include/unistd.h:470: error: storage class specified for parameter 'renameat'
    /usr/include/unistd.h:473: error: storage class specified for parameter 'resolvepath'
    /usr/include/unistd.h:476: error: storage class specified for parameter 'rexec_af'
    /usr/include/unistd.h:478: error: storage class specified for parameter 'rmdir'
    /usr/include/unistd.h:481: error: storage class specified for parameter 'rresvport_af'
    /usr/include/unistd.h:486: error: storage class specified for parameter 'sbrk'
    /usr/include/unistd.h:489: error: storage class specified for parameter 'setegid'
    /usr/include/unistd.h:490: error: storage class specified for parameter 'seteuid'
    /usr/include/unistd.h:492: error: storage class specified for parameter 'setgid'
    /usr/include/unistd.h:494: error: storage class specified for parameter 'setgroups'
    /usr/include/unistd.h:495: error: storage class specified for parameter 'sethostname'
    /usr/include/unistd.h:497: error: storage class specified for parameter 'setpgid'
    /usr/include/unistd.h:499: error: storage class specified for parameter 'setpgrp'
    /usr/include/unistd.h:500: error: storage class specified for parameter 'setregid'
    /usr/include/unistd.h:501: error: storage class specified for parameter 'setreuid'
    /usr/include/unistd.h:503: error: storage class specified for parameter 'setsid'
    /usr/include/unistd.h:504: error: storage class specified for parameter 'setuid'
    /usr/include/unistd.h:506: error: storage class specified for parameter 'setusershell'
    /usr/include/unistd.h:508: error: storage class specified for parameter 'sleep'
    /usr/include/unistd.h:510: error: storage class specified for parameter 'stime'
    /usr/include/unistd.h:517: error: storage class specified for parameter 'symlink'
    /usr/include/unistd.h:518: error: storage class specified for parameter 'sync'
    /usr/include/unistd.h:527: error: storage class specified for parameter 'sysconf'
    /usr/include/unistd.h:528: error: storage class specified for parameter 'tcgetpgrp'
    /usr/include/unistd.h:529: error: storage class specified for parameter 'tcsetpgrp'
    /usr/include/unistd.h:533: error: storage class specified for parameter 'tell'
    /usr/include/unistd.h:538: error: storage class specified for parameter 'truncate'
    /usr/include/unistd.h:540: error: storage class specified for parameter 'ttyname'
    /usr/include/unistd.h:542: error: storage class specified for parameter 'ualarm'
    /usr/include/unistd.h:544: error: storage class specified for parameter 'unlink'
    /usr/include/unistd.h:547: error: storage class specified for parameter 'unlinkat'
    /usr/include/unistd.h:550: error: storage class specified for parameter 'usleep'
    /usr/include/unistd.h:553: error: storage class specified for parameter 'vfork'
    /usr/include/unistd.h:556: error: storage class specified for parameter 'vhangup'
    /usr/include/unistd.h:558: error: storage class specified for parameter 'write'
    /usr/include/unistd.h:560: error: storage class specified for parameter 'yield'
    /usr/include/unistd.h:566: error: storage class specified for parameter 'ftruncate64'
    /usr/include/unistd.h:567: error: storage class specified for parameter 'lseek64'
    /usr/include/unistd.h:568: error: storage class specified for parameter 'pread64'
    /usr/include/unistd.h:569: error: storage class specified for parameter 'pwrite64'
    /usr/include/unistd.h:570: error: storage class specified for parameter 'tell64'
    /usr/include/unistd.h:571: error: storage class specified for parameter 'truncate64'
    /usr/include/unistd.h:572: error: storage class specified for parameter 'lockf64'
    /usr/include/unistd.h:962: error: storage class specified for parameter 'getlogin_r'
    /usr/include/unistd.h:963: error: storage class specified for parameter 'ttyname_r'
    In file included from /usr/local/Gnu/Sol8/lib/gcc/sparc-sun-solaris2.8/4.2.1/include/string.h:27,
    from resource_vector_test.c:4:
    /usr/include/iso/string_iso.h:77: error: storage class specified for parameter 'memcmp'
    /usr/include/iso/string_iso.h:78: error: conflicting types for '_RESTRICT_KYWD'
    /usr/include/iso/string_iso.h:78: error: previous definition of '_RESTRICT_KYWD' was here
    /usr/include/iso/string_iso.h:78: error: storage class specified for parameter 'memcpy'
    /usr/include/iso/string_iso.h:79: error: storage class specified for parameter 'memmove'
    /usr/include/iso/string_iso.h:80: error: storage class specified for parameter 'memset'
    /usr/include/iso/string_iso.h:81: error: conflicting types for '_RESTRICT_KYWD'
    /usr/include/iso/string_iso.h:81: error: previous definition of '_RESTRICT_KYWD' was here
    /usr/include/iso/string_iso.h:81: error: storage class specified for parameter 'strcat'
    /usr/include/iso/string_iso.h:82: error: storage class specified for parameter 'strcmp'
    /usr/include/iso/string_iso.h:83: error: conflicting types for '_RESTRICT_KYWD'
    /usr/include/iso/string_iso.h:83: error: previous definition of '_RESTRICT_KYWD' was here
    /usr/include/iso/string_iso.h:83: error: storage class specified for parameter 'strcpy'
    /usr/include/iso/string_iso.h:84: error: storage class specified for parameter 'strcoll'
    /usr/include/iso/string_iso.h:85: error: storage class specified for parameter 'strcspn'
    /usr/include/iso/string_iso.h:86: error: storage class specified for parameter 'strerror'
    /usr/include/iso/string_iso.h:87: error: storage class specified for parameter 'strlen'
    /usr/include/iso/string_iso.h:88: error: conflicting types for '_RESTRICT_KYWD'
    /usr/include/iso/string_iso.h:88: error: previous definition of '_RESTRICT_KYWD' was here
    /usr/include/iso/string_iso.h:88: error: storage class specified for parameter 'strncat'
    /usr/include/iso/string_iso.h:89: error: storage class specified for parameter 'strncmp'
    /usr/include/iso/string_iso.h:90: error: conflicting types for '_RESTRICT_KYWD'
    /usr/include/iso/string_iso.h:90: error: previous definition of '_RESTRICT_KYWD' was here
    /usr/include/iso/string_iso.h:90: error: storage class specified for parameter 'strncpy'
    /usr/include/iso/string_iso.h:91: error: storage class specified for parameter 'strspn'
    /usr/include/iso/string_iso.h:92: error: conflicting types for '_RESTRICT_KYWD'
    /usr/include/iso/string_iso.h:92: error: previous definition of '_RESTRICT_KYWD' was here
    /usr/include/iso/string_iso.h:92: error: storage class specified for parameter 'strtok'
    /usr/include/iso/string_iso.h:93: error: conflicting types for '_RESTRICT_KYWD'
    /usr/include/iso/string_iso.h:93: error: previous definition of '_RESTRICT_KYWD' was here
    /usr/include/iso/string_iso.h:93: error: storage class specified for parameter 'strxfrm'
    /usr/include/iso/string_iso.h:147: error: storage class specified for parameter 'memchr'
    /usr/include/iso/string_iso.h:148: error: storage class specified for parameter 'strchr'
    /usr/include/iso/string_iso.h:149: error: storage class specified for parameter 'strpbrk'
    /usr/include/iso/string_iso.h:150: error: storage class specified for parameter 'strrchr'
    /usr/include/iso/string_iso.h:151: error: storage class specified for parameter 'strstr'
    In file included from resource_vector_test.c:4:
    /usr/local/Gnu/Sol8/lib/gcc/sparc-sun-solaris2.8/4.2.1/include/string.h:72: error: storage class specified for parameter 'memccpy'
    /usr/local/Gnu/Sol8/lib/gcc/sparc-sun-solaris2.8/4.2.1/include/string.h:77: error: storage class specified for parameter 'strsignal'
    /usr/local/Gnu/Sol8/lib/gcc/sparc-sun-solaris2.8/4.2.1/include/string.h:78: error: storage class specified for parameter 'ffs'
    /usr/local/Gnu/Sol8/lib/gcc/sparc-sun-solaris2.8/4.2.1/include/string.h:79: error: storage class specified for parameter 'strcasecmp'
    /usr/local/Gnu/Sol8/lib/gcc/sparc-sun-solaris2.8/4.2.1/include/string.h:80: error: storage class specified for parameter 'strncasecmp'
    /usr/local/Gnu/Sol8/lib/gcc/sparc-sun-solaris2.8/4.2.1/include/string.h:81: error: storage class specified for parameter 'strlcpy'
    /usr/local/Gnu/Sol8/lib/gcc/sparc-sun-solaris2.8/4.2.1/include/string.h:82: error: storage class specified for parameter 'strlcat'
    /usr/local/Gnu/Sol8/lib/gcc/sparc-sun-solaris2.8/4.2.1/include/string.h:88: error: storage class specified for parameter 'strdup'
    In file included from /usr/local/Gnu/Sol8/lib/gcc/sparc-sun-solaris2.8/4.2.1/include/stdlib.h:27,
    from resource_vector_test.c:5:
    /usr/include/iso/stdlib_iso.h:55: error: storage class specified for parameter '__ctype'
    /usr/include/iso/stdlib_iso.h:69: error: storage class specified for parameter 'div_t'
    /usr/include/iso/stdlib_iso.h:74: error: storage class specified for parameter 'ldiv_t'
    /usr/include/iso/stdlib_iso.h:116: error: storage class specified for parameter 'wchar_t'
    /usr/include/iso/stdlib_iso.h:123: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__NORETURN'
    /usr/include/iso/stdlib_iso.h:124: error: storage class specified for parameter 'abs'
    /usr/include/iso/stdlib_iso.h:125: error: storage class specified for parameter 'atexit'
    /usr/include/iso/stdlib_iso.h:126: error: storage class specified for parameter 'atof'
    /usr/include/iso/stdlib_iso.h:127: error: storage class specified for parameter 'atoi'
    /usr/include/iso/stdlib_iso.h:128: error: storage class specified for parameter 'atol'
    /usr/include/iso/stdlib_iso.h:130: error: storage class specified for parameter 'bsearch'
    /usr/include/iso/stdlib_iso.h:137: error: storage class specified for parameter 'calloc'
    /usr/include/iso/stdlib_iso.h:138: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'div'
    /usr/include/iso/stdlib_iso.h:140: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__NORETURN'
    /usr/include/iso/stdlib_iso.h:141: error: storage class specified for parameter 'free'
    /usr/include/iso/stdlib_iso.h:142: error: storage class specified for parameter 'getenv'
    /usr/include/iso/stdlib_iso.h:143: error: storage class specified for parameter 'labs'
    /usr/include/iso/stdlib_iso.h:144: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'ldiv'
    /usr/include/iso/stdlib_iso.h:145: error: storage class specified for parameter 'malloc'
    /usr/include/iso/stdlib_iso.h:146: error: storage class specified for parameter 'mblen'
    /usr/include/iso/stdlib_iso.h:147: error: expected ')' before '*' token
    /usr/include/iso/stdlib_iso.h:149: error: expected ')' before '*' token
    /usr/include/iso/stdlib_iso.h:150: error: storage class specified for parameter 'qsort'
    /usr/include/iso/stdlib_iso.h:156: error: storage class specified for parameter 'rand'
    /usr/include/iso/stdlib_iso.h:157: error: storage class specified for parameter 'realloc'
    /usr/include/iso/stdlib_iso.h:158: error: storage class specified for parameter 'srand'
    /usr/include/iso/stdlib_iso.h:159: error: conflicting types for '_RESTRICT_KYWD'
    /usr/include/iso/stdlib_iso.h:159: error: previous definition of '_RESTRICT_KYWD' was here
    /usr/include/iso/stdlib_iso.h:159: error: storage class specified for parameter 'strtod'
    /usr/include/iso/stdlib_iso.h:160: error: conflicting types for '_RESTRICT_KYWD'
    /usr/include/iso/stdlib_iso.h:160: error: previous definition of '_RESTRICT_KYWD' was here
    /usr/include/iso/stdlib_iso.h:160: error: storage class specified for parameter 'strtol'
    /usr/include/iso/stdlib_iso.h:162: error: conflicting types for '_RESTRICT_KYWD'
    /usr/include/iso/stdlib_iso.h:161: error: previous definition of '_RESTRICT_KYWD' was here
    /usr/include/iso/stdlib_iso.h:162: error: storage class specified for parameter 'strtoul'
    /usr/include/iso/stdlib_iso.h:163: error: storage class specified for parameter 'system'
    /usr/include/iso/stdlib_iso.h:164: error: expected declaration specifiers or '...' before 'wchar_t'
    /usr/include/iso/stdlib_iso.h:164: error: storage class specified for parameter 'wctomb'
    /usr/include/iso/stdlib_iso.h:165: error: expected ';', ',' or ')' before '*' token
    In file included from resource_vector_test.c:5:
    /usr/local/Gnu/Sol8/lib/gcc/sparc-sun-solaris2.8/4.2.1/include/stdlib.h:80: error: storage class specified for parameter 'lldiv_t'
    /usr/local/Gnu/Sol8/lib/gcc/sparc-sun-solaris2.8/4.2.1/include/stdlib.h:121: error: storage class specified for parameter '_exithandle'
    /usr/local/Gnu/Sol8/lib/gcc/sparc-sun-solaris2.8/4.2.1/include/stdlib.h:126: error: storage class specified for parameter 'drand48'
    /usr/local/Gnu/Sol8/lib/gcc/sparc-sun-solaris2.8/4.2.1/include/stdlib.h:127: error: storage class specified for parameter 'erand48'
    /usr/local/Gnu/Sol8/lib/gcc/sparc-sun-solaris2.8/4.2.1/include/stdlib.h:128: error: storage class specified for parameter 'jrand48'
    /usr/local/Gnu/Sol8/lib/gcc/sparc-sun-solaris2.8/4.2.1/include/stdlib.h:129: error: storage class specified for parameter 'lcong48'
    /usr/local/Gnu/Sol8/lib/gcc/sparc-sun-solaris2.8/4.2.1/include/stdlib.h:130: error: storage class specified for parameter 'lrand48'
    /usr/local/Gnu/Sol8/lib/gcc/sparc-sun-solaris2.8/4.2.1/include/stdlib.h:131: error: storage class specified for parameter 'mrand48'
    /usr/local/Gnu/Sol8/lib/gcc/sparc-sun-solaris2.8/4.2.1/include/stdlib.h:132: error: storage class specified for parameter 'nrand48'
    /usr/local/Gnu/Sol8/lib/gcc/sparc-sun-solaris2.8/4.2.1/include/stdlib.h:133: error: storage class specified for parameter 'seed48'
    /usr/local/Gnu/Sol8/lib/gcc/sparc-sun-solaris2.8/4.2.1/include/stdlib.h:134: error: storage class specified for parameter 'srand48'
    /usr/local/Gnu/Sol8/lib/gcc/sparc-sun-solaris2.8/4.2.1/include/stdlib.h:135: error: storage class specified for parameter 'putenv'
    /usr/local/Gnu/Sol8/lib/gcc/sparc-sun-solaris2.8/4.2.1/include/stdlib.h:136: error: storage class specified for parameter 'setkey'
    /usr/local/Gnu/Sol8/lib/gcc/sparc-sun-solaris2.8/4.2.1/include/stdlib.h:153: error: storage class specified for parameter 'swab'
    /usr/local/Gnu/Sol8/lib/gcc/sparc-sun-solaris2.8/4.2.1/include/stdlib.h:159: error: storage class specified for parameter 'mkstemp'
    /usr/local/Gnu/Sol8/lib/gcc/sparc-sun-solaris2.8/4.2.1/include/stdlib.h:164: error: storage class specified for parameter 'mkstemp64'
    /usr/local/Gnu/Sol8/lib/gcc/sparc-sun-solaris2.8/4.2.1/include/stdlib.h:170: error: storage class specified for parameter 'a64l'
    /usr/local/Gnu/Sol8/lib/gcc/sparc-sun-solaris2.8/4.2.1/include/stdlib.h:171: error: storage class specified for parameter 'ecvt'
    /usr/local/Gnu/Sol8/lib/gcc/sparc-sun-solaris2.8/4.2.1/include/stdlib.h:172: error: storage class specified for parameter 'fcvt'
    /usr/local/Gnu/Sol8/lib/gcc/sparc-sun-solaris2.8/4.2.1/include/stdlib.h:173: error: storage class specified for parameter 'gcvt'
    /usr/local/Gnu/Sol8/lib/gcc/sparc-sun-solaris2.8/4.2.1/include/stdlib.h:174: error: storage class specified for parameter 'getsubopt'
    /usr/local/Gnu/Sol8/lib/gcc/sparc-sun-solaris2.8/4.2.1/include/stdlib.h:175: error: storage class specified for parameter 'grantpt'
    /usr/local/Gnu/Sol8/lib/gcc/sparc-sun-solaris2.8/4.2.1/include/stdlib.h:176: error: storage class specified for parameter 'initstate'
    /usr/local/Gnu/Sol8/lib/gcc/sparc-sun-solaris2.8/4.2.1/include/stdlib.h:177: error: storage class specified for parameter 'l64a'
    /usr/local/Gnu/Sol8/lib/gcc/sparc-sun-solaris2.8/4.2.1/include/stdlib.h:178: error: storage class specified for parameter 'mktemp'
    /usr/local/Gnu/Sol8/lib/gcc/sparc-sun-solaris2.8/4.2.1/include/stdlib.h:179: error: storage class specified for parameter 'ptsname'
    /usr/local/Gnu/Sol8/lib/gcc/sparc-sun-solaris2.8/4.2.1/include/stdlib.h:180: error: storage class specified for parameter 'random'
    /usr/local/Gnu/Sol8/lib/gcc/sparc-sun-solaris2.8/4.2.1/include/stdlib.h:181: error: storage class specified for parameter 'realpath'
    /usr/local/Gnu/Sol8/lib/gcc/sparc-sun-solaris2.8/4.2.1/include/stdlib.h:182: error: storage class specified for parameter 'setstate'
    /usr/local/Gnu/Sol8/lib/gcc/sparc-sun-solaris2.8/4.2.1/include/stdlib.h:183: error: storage class specified for parameter 'srandom'
    /usr/local/Gnu/Sol8/lib/gcc/sparc-sun-solaris2.8/4.2.1/include/stdlib.h:184: error: storage class specified for parameter 'ttyslot'
    /usr/local/Gnu/Sol8/lib/gcc/sparc-sun-solaris2.8/4.2.1/include/stdlib.h:185: error: storage class specified for parameter 'unlockpt'
    /usr/local/Gnu/Sol8/lib/gcc/sparc-sun-solaris2.8/4.2.1/include/stdlib.h:186: error: storage class specified for parameter 'valloc'
    /usr/local/Gnu/Sol8/lib/gcc/sparc-sun-solaris2.8/4.2.1/include/stdlib.h:191: error: storage class specified for parameter 'dup2'
    /usr/local/Gnu/Sol8/lib/gcc/sparc-sun-solaris2.8/4.2.1/include/stdlib.h:192: error: storage class specified for parameter 'qecvt'
    /usr/local/Gnu/Sol8/lib/gcc/sparc-sun-solaris2.8/4.2.1/include/stdlib.h:193: error: storage class specified for parameter 'qfcvt'
    /usr/local/Gnu/Sol8/lib/gcc/sparc-sun-solaris2.8/4.2.1/include/stdlib.h:194: error: storage class specified for parameter 'qgcvt'
    /usr/local/Gnu/Sol8/lib/gcc/sparc-sun-solaris2.8/4.2.1/include/stdlib.h:195: error: storage class specified for parameter 'getcwd'
    /usr/local/Gnu/Sol8/lib/gcc/sparc-sun-solaris2.8/4.2.1/include/stdlib.h:195: error: redefinition of parameter 'getcwd'
    /usr/include/unistd.h:339: error: previous definition of 'getcwd' was here
    /usr/local/Gnu/Sol8/lib/gcc/sparc-sun-solaris2.8/4.2.1/include/stdlib.h:196: error: storage class specified for parameter 'getexecname'
    /usr/local/Gnu/Sol8/lib/gcc/sparc-sun-solaris2.8/4.2.1/include/stdlib.h:197: error: storage class specified for parameter 'getlogin'
    /usr/local/Gnu/Sol8/lib/gcc/sparc-sun-solaris2.8/4.2.1/include/stdlib.h:197: error: redefinition of parameter 'getlogin'
    /usr/include/unistd.h:356: error: previous definition of 'getlogin' was here
    /usr/local/Gnu/Sol8/lib/gcc/sparc-sun-solaris2.8/4.2.1/include/stdlib.h:198: error: storage class specified for parameter 'getopt'
    /usr/local/Gnu/Sol8/lib/gcc/sparc-sun-solaris2.8/4.2.1/include/stdlib.h:199: error: storage class specified for parameter 'optarg'
    /usr/local/Gnu/Sol8/lib/gcc/sparc-sun-solaris2.8/4.2.1/include/stdlib.h:200: error: storage class specified for parameter 'optind'
    /usr/local/Gnu/Sol8/lib/gcc/sparc-sun-solaris2.8/4.2.1/include/stdlib.h:200: error: storage class specified for parameter 'opterr'
    /usr/local/Gnu/Sol8/lib/gcc/sparc-sun-solaris2.8/4.2.1/include/stdlib.h:200: error: storage class specified for parameter 'optopt'
    /usr/local/Gnu/Sol8/lib/gcc/sparc-sun-solaris2.8/4.2.1/include/stdlib.h:201: error: storage class specified for parameter 'getpass'
    /usr/local/Gnu/Sol8/lib/gcc/sparc-sun-solaris2.8/4.2.1/include/stdlib.h:202: error: storage class specified for parameter 'getpassphrase'
    /usr/local/Gnu/Sol8/lib/gcc/sparc-sun-solaris2.8/4.2.1/include/stdlib.h:203: error: storage class specified for parameter 'getpw'
    /usr/local/Gnu/Sol8/lib/gcc/sparc-sun-solaris2.8/4.2.1/include/stdlib.h:204: error: storage class specified for parameter 'isatty'
    /usr/local/Gnu/Sol8/lib/gcc/sparc-sun-solaris2.8/4.2.1/include/stdlib.h:204: error: redefinition of parameter 'isatty'
    /usr/include/unistd.h:400: error: previous definition of 'isatty' was here
    /usr/local/Gnu/Sol8/lib/gcc/sparc-sun-solaris2.8/4.2.1/include/stdlib.h:205: error: storage class specified for parameter 'memalign'
    /usr/local/Gnu/Sol8/lib/gcc/sparc-sun-solaris2.8/4.2.1/include/stdlib.h:206: error: storage class specified for parameter 'ttyname'
    /usr/local/Gnu/Sol8/lib/gcc/sparc-sun-solaris2.8/4.2.1/include/stdlib.h:206: error: redefinition of parameter 'ttyname'
    /usr/include/unistd.h:540: error: previous definition of 'ttyname' was here
    /usr/local/Gnu/Sol8/lib/gcc/sparc-sun-solaris2.8/4.2.1/include/stdlib.h:209: error: storage class specified for parameter 'atoll'
    /usr/local/Gnu/Sol8/lib/gcc/sparc-sun-solaris2.8/4.2.1/include/stdlib.h:210: error: storage class specified for parameter 'llabs'
    /usr/local/Gnu/Sol8/lib/gcc/sparc-sun-solaris2.8/4.2.1/include/stdlib.h:211: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'lldiv'
    /usr/local/Gnu/Sol8/lib/gcc/sparc-sun-solaris2.8/4.2.1/include/stdlib.h:212: error: storage class specified for parameter 'lltostr'
    /usr/local/Gnu/Sol8/lib/gcc/sparc-sun-solaris2.8/4.2.1/include/stdlib.h:213: error: storage class specified for parameter 'strtoll'
    /usr/local/Gnu/Sol8/lib/gcc/sparc-sun-solaris2.8/4.2.1/include/stdlib.h:214: error: storage class specified for parameter 'strtoull'
    /usr/local/Gnu/Sol8/lib/gcc/sparc-sun-solaris2.8/4.2.1/include/stdlib.h:215: error: storage class specified for parameter 'ulltostr'
    In file included from resource_vector_test.c:7:
    /usr/include/sys/mman.h:162: error: storage class specified for parameter 'mmap'
    /usr/include/sys/mman.h:163: error: storage class specified for parameter 'munmap'
    /usr/include/sys/mman.h:164: error: storage class specified for parameter 'mprotect'
    /usr/include/sys/mman.h:165: error: storage class specified for parameter 'msync'
    /usr/include/sys/mman.h:166: error: storage class specified for parameter 'mlock'
    /usr/include/sys/mman.h:167: error: storage class specified for parameter 'munlock'
    /usr/include/sys/mman.h:168: error: storage class specified for parameter 'mincore'
    /usr/include/sys/mman.h:168: error: redefinition of parameter 'mincore'
    /usr/include/unistd.h:419: error: previous definition of 'mincore' was here
    /usr/include/sys/mman.h:169: error: storage class specified for parameter 'memcntl'
    /usr/include/sys/mman.h:170: error: storage class specified for parameter 'madvise'
    /usr/include/sys/mman.h:172: error: storage class specified for parameter 'getpagesizes'
    /usr/include/sys/mman.h:181: error: storage class specified for parameter 'mmap64'
    /usr/include/sys/mman.h:186: error: storage class specified for parameter 'mlockall'
    /usr/include/sys/mman.h:187: error: storage class specified for parameter 'munlockall'
    /usr/include/sys/mman.h:188: error: storage class specified for parameter 'shm_open'
    /usr/include/sys/mman.h:189: error: storage class specified for parameter 'shm_unlink'
    In file included from /usr/local/Gnu/Sol8/lib/gcc/sparc-sun-solaris2.8/4.2.1/include/sys/signal.h:28,
    from /usr/include/sys/procset.h:42,
    from /usr/include/sys/processor.h:39,
    from resource_vector_test.c:9:
    /usr/include/sys/iso/signal_iso.h:101: error: storage class specified for parameter '_sysconf'
    In file included from /usr/local/Gnu/Sol8/lib/gcc/sparc

    Hi again,
    I think I've solved the problem :)
    The problem was the version of gcc
    I've tried using the gcc shipped with solaris 10 in /usr/sfw
    and the problem get solved.

  • What is the best way to disable tags in SVE when a OPC server is not available?

    I have a LV2009 DSC app with SVE that reads tags (1100 spread acrross them) from 4 PLC's through NI OPC server.  From time to time the PLC will lose power because that test machine will be powered down.  The NI OPC  loses the OPC link then to that particular machine/PLC and this error is transferred through to the SVE. 
    Is there an any/efficient way to stop the reading of tags if/when this happens?  The only way I can think of is to undeploy/re-deploy from the app when it is necessary. 
    In the same way is it possible to prevent the SVE acting on this error?
    I also have a longstanding problem with updates of tag values to the frontend of the LV VI.  The update rate into SVE seems OK, but the tag values are slow to update onto the page.  I have reduced the amount of tags on the pages as well as reducing the amount of code on a page.  It becomes better, but I would like to have an update of less than 2 seconds at least to properly display plant status.  I'm running a heartbeat timer from a PLC and in some cases this takes up to 15 seconds to update.
    Any assistance will be appreciated.
    Pierre

    PierreN,
    In order to set the timeout value of a Shared Variable, you may Right-Click, and select 'Show Timeout':
    Implementing Timeouts through your application variables will allow you to gage which variables are, and are not updating. This troubleshooting stepp will allow you to better characterize the source of the slowed update rate. You also may take a closer look at the OPC Server configuration, and the deadnband settings you have implemented on the I/O Clients. 
    Snowforest has offered good advice in terms of implementing a State-Machine architecture to handle the 'Power Down' system status. Also, if you know the specific error that is propagated, you may choose to implement implicit error handling using the data contained in the Error Cluster.
    Cheers,
    Pcorcs
    Patrick Corcoran
    Application Engineering Specialist | Control
    National Instruments

  • Want to delay alert..............

    Hi All,
    I want to delay my alert from executing for about 10sec.
    Is there any SQL function kind of thing which is avaliable for doing this.
    below is my SQL statement used in alert. I want this SQL statement to delay from executing...., it is after insert alert
    SELECT prh.segment1,
    pap.email_address,
    prh.org_id,
    prh.requisition_header_id,
    prh.type_lookup_code,
    pah.sequence_num
    INTO &SQL_REQ_NUMBER,
    &REQUESTOR_EMAIL,
    &SQL_ORG_ID,
    &REQ_HEADER_ID,
    &TYPE_LOOKUP_CODE,
    &SEQ_NUM
    FROM po_action_history pah,
    po_requisition_headers_all prh,
    per_all_people_f pap
    WHERE pah.object_type_code = 'REQUISITION'
    AND pah.object_id = prh.requisition_header_id
    AND prh.preparer_id = pap.person_id
    AND pah.employee_id = prh.preparer_id
    AND pah.employee_id = pap.person_id
    AND TRUNC(SYSDATE) BETWEEN TRUNC(pap.effective_start_date) AND TRUNC(pap.effective_end_date)
    AND pah.sequence_num = 3
    AND pah.action_code IS NULL
    AND pah.rowid = :ROWID
    Thanks in advance
    Jana
    Edited by: Jana on Jul 14, 2010 7:11 PM

    Hello Jana,
    I have a similar requirement. What I am doing is scheduling an on demand check in the future via a trigger. Warning: I am not sure this would be supported at all.
    You will also need a table to track which checks are being scheduled for which records. You alert sql query will have to join to that table because an on demand check cannot refer to :rowid - only event alerts can do that. You also need to know the alert_id and application_id of your alert.
    First, take a look at the trigger that was generated on po_action_history table when you created your event alert. It will be named something like ALR_PO....
    It is hard to read, so you might want to copy it out into a text file and format it.
    It will have in it statements like these:
    RETVAL:=FND_REQUEST.SET_MODE(DB_TRIGGER => TRUE);
    RETVAL:=FND_REQUEST.SET_OPTIONS(IMPLICIT => 'ERROR');
    REQID:=FND_REQUEST.SUBMIT_REQUEST('ALR','ALECTC','PO_ACTION_HISTORY',NULL,FALSE,USER,'PO_ACTION_HISTORY',rowidtochar(:new.rowid),'U',mailid,ORGID);
    if REQID=0 then raise_application_error(-20160, FND_MESSAGE.GET);end if
    What that does is submit the Check Event Alert conc req (ALECTC) immediately, and makes it invisible to the user who updated po_action_history (SET_MODE(DB_TRIGGER => TRUE). So what I did was to create my own trigger similar to this, but instead submit the conc program that is called when you check an on demand alert, which is ALECDC, and use the start_time parameter for FND_REQUEST.SUBMIT_REQUEST to schedule it in the future.
    Do NOT edit the generated trigger ALR_PO... to do this! You have to create your own trigger.
    You need a table to track the conc req ids. This has to have the fields that uniquely identify the record in po_action_history that was updated - looks like OBJECT_ID, OBJECT_TYPE_CODE,OBJECT_SUB_TYPE_CODE and SEQUENCE_NUM. I suppose you could use rowid, but I haven't tried that. The trigger has to insert in this table.
    Create the table, user apps must have full access to it:
    create table mytable(
    conc_req_id number not null,
    object_id number not null,
    ...whatever other fields are needed to uniquely identify the records
    Create the trigger:
    CREATE OR REPLACE TRIGGER APPS.MYTRIGGER after INSERT on PO_ACTION_HISTORY
    for each row
    WHEN (...put whatever when conditions you want...)
    declare
    REQID NUMBER;
    RETVAL boolean;
    cursor cm_date_format is
    select value date_format
    --into nls_date_fmt
    from nls_session_parameters
    where parameter = 'NLS_DATE_FORMAT';
    date_format_rec cm_date_format%rowtype;
    l_submit_date date;
    begin
    --get the NLS date format, usually DD-MON-RR
    open cm_date_format;
    fetch cm_date_format into date_format_rec;
    close cm_date_format;
    date_format_rec.date_format := nvl(date_format_rec.date_format,'DD-MON-RR');
    --Calculate the date and time in the future you want to run the check
    l_submit_date := sysdate + (10 / (60 * 60 * 24));
    --make sure the user cannot see the conc req
    RETVAL:=FND_REQUEST.SET_MODE(DB_TRIGGER => TRUE);
    RETVAL:=FND_REQUEST.SET_OPTIONS(IMPLICIT => 'ERROR');
    --submit the check
    REQID:=FND_REQUEST.SUBMIT_REQUEST(application => 'ALR',
    program => 'ALECDC',
    description => 'MY ALERT CHECK', --replace this with something more meaningful, like the alert name
    start_time => to_char(l_submit_date,date_format_rec.date_format||' HH24:MI:SS'),
    argument1 => put the application id of your alert here,
    argument2 => put the alert_id of your alert here,
    argument3 => 'A');
    if REQID=0 then
    raise_application_error(-20160, FND_MESSAGE.GET);
    end if;
    insert into mytable(
    conc_req_ID,
    object_ID,
    --all your other fields needed to identify the record being updated
    values(
    REQID,
    :new. object_ID,
    --all your other fields needed to identify the record being updated, from the :new values
    end;
    commit;
    Now create an on demand alert similar to your event alert, but in your sql you cannot refer to :rowid. However, when the alert runs, it runs inside of the conc req that you submitted in the trigger, meaning that FND_GLOBAL.CONC_REQUEST_ID will have the value of the conc req. So remove "AND pah.rowid = :ROWID" from your sql, add mytable to the from clause, and then join to mytable in your where clause:
    and mytable. Conc_Req_id = FND_GLOBAL.CONC_REQUEST_ID
    and mytable.object_id = pah.object_id
    and mytable.... = pah.... (join to all other fields in mytable that uniquely identify the record in po_action_history)
    Now set up your actions and action sets for this new on demand alert similar to what you did for the event alert. Then disable the event alert.

  • Error in creating implicit enhancement

    Hi Experts,
    I want to create an implicit enhancement in a standard program. I went to Edit -> show implicit enhancements
    and right clicked at the yellow lines and clicked create .
    it asked for the enhancement name. after giving name and pressed ok , it is showing error 'Error in creating enhancement'
    why is this error coming?
    Thanks in advance

    hi vijaya
    well let me take an example
    suppose u r requiremwnt is to disable an field in an XYZ transaction
    And let the Enhancemant for this
    XYZ0001P.
    now when u go to CMOD and create
    an project as
    Z_xyz
    and when u go to enhancement Assingment
    here u give the enhance ment number which in our case is
    XYZ0001P
    now if u save it . It will not get saved and show and error message which says
    this enhancemanet is alreay is being used
    in another project
    this is because u can one enhancement can only be used in one project only .
    Hope it have cleared ur problem .
    Cheers
    Snehi

  • ORA-01722: invalid number - Error during implicit conversion (10g vls 11g)

    I am facing oracle error for few SELECT queries in 11g which were working fine in 10g environment.
    Oracle Version:
    10g - 10.2.0.5.0
    11g - 11.2.0.3.0
    We are storing numeric values under CHAR or VARCHAR2 column in few tables. This is known design issue & it can't be changed for now.
    I know this will work fine until all the data is numeric in those columns for respective table. Because by some reason, if any row got character value for that column then implicit string to number conversion will fail and this error can occur. But I have verified that there is no data issue.
    But I can see difference in the execution plan! But not able to recognize the reason issue.
    Any other pointers on why the queries are failing in 11g would be of great help..
    Example SQL:
    Note that table structure and data is same in both the environments.
    View Definition -
    CREATE OR REPLACE FORCE VIEW CIMSOS.LC_LOCATIONS
    (   COUNTRY_ID,    PRODUCTID,
       LANGUAGE_ID,   LOCATION_NAME,
       LOCATION_SHORT_NAME,   TAG_ID,   LOCATION_DEFINITION,
       COMPOSITEKEY,   GLOBAL_LOCATION_KEY,
       CPRODUCTKEYID,   CMODVERSION)
    AS
       SELECT
              CCOUNTRY_ID AS COUNTRY_ID,
              CPRODUCTID AS PRODUCTID,
              CLANGUAGE_CODE AS LANGUAGE_ID,
              CLOCATION_NAME AS LOCATION_NAME,
              CLOCATION_SHORT_NAME AS LOCATION_SHORT_NAME,
              CTAG_ID AS TAG_ID,
              CLOCATION_DEFINITION AS LOCATION_DEFINITION,
              CCOMPOSITEKEY AS COMPOSITEKEY,
              CGLOBAL_LOCATION_KEY0 AS GLOBAL_LOCATION_KEY,
              cproductkeyid,
              cmodversion
         FROM mct_35193, goldencopy
        WHERE     cproductkeyid = productkey
              AND cmodversion = version
              AND catalogid = 35193;Facing issue for SQL query based on above view:
    ** In 10g Env
    SELECT * FROM LC_LOCATIONS WHERE productid = 75;
    -- It executes successfully and provide required results.
    Explain Plan:
    SELECT STATEMENT  ALL_ROWSCost: 12  Bytes: 416  Cardinality: 4                 
         4 NESTED LOOPS  Cost: 12  Bytes: 416  Cardinality: 4            
              1 INDEX RANGE SCAN INDEX CIMSOS.GOLDENCOPY_INDX1 Cost: 10  Bytes: 30,225  Cardinality: 2,015       
              3 TABLE ACCESS BY INDEX ROWID TABLE CIMSOS.MCT_35193 Cost: 1  Bytes: 89  Cardinality: 1       
                   2 INDEX UNIQUE SCAN INDEX (UNIQUE) CIMSOS.XPK_MCT_34342 Cost: 0  Cardinality: 1  ** In 11g Env
    SELECT * FROM LC_LOCATIONS WHERE productid = 75;
    ORA-01722: invalid number
    Explain Plan:
    SELECT STATEMENT  ALL_ROWSCost: 40  Bytes: 8,692  Cardinality: 82            
         3 NESTED LOOPS  Cost: 40  Bytes: 8,692  Cardinality: 82       
              1 TABLE ACCESS FULL TABLE CIMSOS.MCT_35193 Cost: 22  Bytes: 819  Cardinality: 9 
              2 INDEX RANGE SCAN INDEX CIMSOS.GOLDENCOPY_INDX1 Cost: 2  Bytes: 135  Cardinality: 9 
    -- Executes when value is passed as character.
    SELECT * FROM LC_LOCATIONS WHERE productid = '75';

    The problem doesn't appear to be related to the Oracle version, at least not directly. If your query plan does the string to number conversion before eliminating the rows that have non-numeric data, you'll get an error. If the query plan eliminates the rows that have non-numeric data before doing the conversion, the query will succeed. It is entirely possible that you'd get the "bad" plan in 10g or the "good" plan in 11g.
    You can capture the query plans from your 10g database and move them over to the 11g database. Oracle has a nice white paper on upgrading from 10g to 11g that walks you through that process.
    Of course, you really don't want to be dependent on the optimizer picking the "right" plan, you really want to fix the underlying data model issue.
    Justin

  • Implicit coercion Error while Adding Dynamic Rows To Flex DataGrid

    Hi friends
    I   want to add interger for in next next rows while clicking tab   button,one i enter all the values in one row if i press tab means next   row will be editable.for making that i added the following code.i have   some error shows like this
        [Bindable]
                    private var tasks:ArrayCollection;
                    private static const ADD_TASK:int= "";
                    private function init():void
                        tasks = new ArrayCollection();
                        tasks.addItem(new Task(0.01,100000,0));
                        tasks.addItem({frmAmount:ADD_TASK});
                    private function checkEdit(e:DataGridEvent):void
                        // Do not allow editing of Add Task row except for
                        // "Click to Add" column
                        if(e.rowIndex == tasks.length - 1 && e.columnIndex != 0)
                            e.preventDefault();
            private function editEnd(e:DataGridEvent):void
                    // Adding a new task
                    if(e.rowIndex == tasks.length - 1)
                    var txtIn:TextInput =TextInput(e.currentTarget.itemEditorInstance);
                    var dt:Object = e.itemRenderer.data;
                    // Add new task
                    if(parseInt(txtIn.text) != ADD_TASK)
                        tasks.addItemAt(new Task(parseInt(txtIn.text), 0, ""), e.rowIndex);----->Multiple markers at this line:
                                                                                                                               -1067: Implicit  coercion of a value of type String to an unrelated type int.
                                                                                                                                  -txtIn
                    // Destroy item editor
                    commPlanDetGrid.destroyItemEditor();
                        // Stop default behavior
                    e.preventDefault();
            ]]>
    Please help if any suggession
    Thanks in advance
    B.Venkatesan

    Venktesan,
    You are trying compare String and int..! which is not possible try to case the txtIn.text to int using parseInt(txtIn.text).
    ORIGINAL:
    if(txtIn.text != ADD_TASK).---->error : Comparison between a value with static type String and a possibly unrelated type int
                        tasks.addItemAt(new Task(txtIn.text, 0, ""), e.rowIndex);----> error:Implicit coercion of a value of type String to an unrelated type int.
    EDITED:
    if(parseInt(txtIn.text) != ADD_TASK).---->error : Comparison between a value with static type String and a possibly unrelated type int
                        tasks.addItemAt(new Task(parseInt(txtIn.text), 0, ""), e.rowIndex);----> error:Implicit coercion of a value of type String to an unrelated type int.
    Thanks
    Pradeep

  • Error while migrating to Flex 4.5.1 (1067: Implicit coercion of a value...)

    I am getting the following error while migrating my application from Flex 3.6 to Flex 4.5.1:
    1067: Implicit coercion of a value of type __AS3__.vec:Vector.<Object> to an unrelated type Array.
    The error is thrown on the following piece of code:
    var list:ArrayCollection=new ArrayCollection(dgSoftwareTitles.selectedItems);
    dgSoftwareTitles is defined as:
    <s:DataGrid id="dgShareCategoryForTransfer"
    x="34"
    y="369"
    requestedRowCount="5"
    width="90%"
    selectedIndex="-1"
    selectionMode="multipleRows">
    <s:columns>
    <s:ArrayList>
    <s:GridColumn headerText="SoftwareTitle"
    dataField="idSoftware"
    visible="false"/>
    <s:GridColumn headerText="SoftwareName"
    dataField="softwareName"
    visible="false"/>
    ...more GridColumns
    </s:columns>
    </s:ArrayList>
    </s:DataGrid>
    Any ideas why this would trow the "1067: Implicit coercion of a value of type __AS3__.vec:Vector.<Object> to an unrelated type Array" error?
    Thanks!
    Lee

    I think that dgSoftwareTitles.selectedItems is a type of Vector while
    public function ArrayCollection(source:Array = null) expects an array as a source.

  • Getting error while passing implicit request object from JSP to JavaBean

    Hi,
    I am getting error while passing implicit object ie( request object)
    from within JSP to JavaBean.
    Following is source for JSP, JavaBean and Error message I am getting.
    vaLookup.jsp Source
    <jsp:useBean id="db" class="advisorinsight.javabeans.DisplayPages"
    scope="request">
    <jsp:setProperty name="db" property="request" value="<%= request %>"
    />
    </jsp:useBean>
    <jsp:getProperty name="db" property="totalrecords" />
    JAVABEAN DisplayPages.java source
    package javabeans;
    import java.io.Serializable;
    import javax.servlet.http.HttpServletRequest;
    public final class DisplayPages implements Serializable {
    private String totalrecords;
    private HttpServletRequest request;
    public void setRequest(HttpServletRequest req){
    this.request = req;
    public java.lang.String getTotalrecords()
    this.totalrecords =
    this.request.getParameter("totalrecords");
    return this.totalrecords;
    public DisplayPages(){
    totalrecords = "";
    request = null;
    error after executing vaLookup.jsp
    [30/Nov/2001 11:56:04:5] info: EXTMGR-006: GXExtensionManager: Extension
    service JavaExtData successfully loaded
    [30/Nov/2001 11:56:04:5] info: EXTMGR-006: GXExtensionManager: Extension
    service LockManager successfully loaded
    [30/Nov/2001 11:56:04:5] info: EXTMGR-006: GXExtensionManager: Extension
    service RLOPManager successfully loaded
    [30/Nov/2001 11:56:04:5] info: REQ-012: thread add
    [30/Nov/2001 11:56:04:5] info: REQ-012: thread add
    [30/Nov/2001 11:56:04:5] info: REQ-012: thread add
    [30/Nov/2001 11:56:04:5] info: REQ-012: thread add
    [30/Nov/2001 11:56:04:5] info: REQ-012: thread add
    [30/Nov/2001 11:56:04:5] info: REQ-012: thread add
    [30/Nov/2001 11:56:04:5] info: REQ-012: thread add
    [30/Nov/2001 11:56:04:5] info: REQ-012: thread add
    [30/Nov/2001 11:56:04:7] info: ENGINE-ready: ready: 10819
    [30/Nov/2001 11:56:46:0] info: --------------------------------------
    [30/Nov/2001 11:56:46:0] info: JSPRunnerSticky: init
    [30/Nov/2001 11:56:46:0] info: --------------------------------------
    [30/Nov/2001 11:56:51:7] error: Exception: SERVLET-compile_failed:
    Failed in compiling template: /va/valookup.jsp, javac error:
    c:\iplanet\ias6\ias\APPS\variabl
    S\va\valookup.java:76: Undefined variable: JSP_8
    db.setRequest(_JSP__8);
    ^
    1 error
    Exception Stack Trace:
    java.lang.Exception: javac error:
    c:\iplanet\ias6\ias\APPS\variableannuity\va\WEB-INF\compiled_jsp\jsp\APPS\va\valookup.java:76:
    Undefined variable: JSP_8
    db.setRequest(_JSP__8);
    ^
    1 error
    at
    com.netscape.server.servlet.jsp.JSPCompiler.compileJSP(Unknown Source)
    at
    com.netscape.server.servlet.jsp.JSPCompiler.compileOrLoadJSP(Unknown
    Source)
    at
    com.netscape.server.servlet.jsp.JSPCompiler.compileInstance(Unknown
    Source)
    at
    com.netscape.server.servlet.jsp.JSPCompiler.compileInstance(Unknown
    Source)
    at
    com.netscape.server.servlet.platformhttp.PlatformHttpServletResponse.callJspCompiler(Unknown
    Source)
    at
    com.netscape.server.servlet.platformhttp.PlatformHttpServletResponse.callUri(Unknown
    Source)
    at
    com.netscape.server.servlet.platformhttp.PlatformHttpServletResponse.callUriRestrictOutput(Unknown
    Source)
    at
    com.netscape.server.servlet.platformhttp.PlatformRequestDispatcher.forward(Unknown
    Source)
    at com.netscape.server.servlet.jsp.JSPRunner.service(Unknown
    Source)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
    at
    com.netscape.server.servlet.servletrunner.ServletInfo.service(Unknown
    Source)
    at
    com.netscape.server.servlet.servletrunner.ServletRunner.execute(Unknown
    Source)
    at com.kivasoft.applogic.AppLogic.execute(Unknown Source)
    at com.kivasoft.applogic.AppLogic.execute(Unknown Source)
    at com.kivasoft.thread.ThreadBasic.run(Native Method)
    at java.lang.Thread.run(Thread.java:479)

    The only thing that I see that looks funny to me is when you pass the request object into the method using <%=request%>, Im not sure whats going to happen here because that is suppose to print the results. Have you tried simply using <%request%>?

  • Error while using implicit remoting from Win 7 Client

    Anyone who can help with below error while implicit remoting in exchange 2010, i have verified WinRM service, and currently using power-shell v2 both on client and server.
    Error Code:
    Connecting to remote server failed with the following error message : WinRM cannot process the request.
    The following error occured while using Kerberos authentication: A specified logon session does not exist. It may alre
    ady have been terminated.
    Possible causes are:
    -The user name or password specified are invalid.
    -Kerberos is used when no authentication method and no user name are specified.
    -Kerberos accepts domain user names, but not local user names.
    -The Service Principal Name (SPN) for the remote computer name and port does not exist.
    -The client and remote computers are in different domains and there is no trust between the two domains.
    After checking for the above issues, try the following:
    -Check the Event Viewer for events related to authentication.
    -Change the authentication method; add the destination computer to the WinRM TrustedHosts configuration setting or us
    e HTTPS transport.
    Note that computers in the TrustedHosts list might not be authenticated.
    -For more information about WinRM configuration, run the following command: winrm help config. For more information,
    see the about_Remote_Troubleshooting Help topic.
    + CategoryInfo : OpenError: (System.Manageme....RemoteRunspace:RemoteRunspace) [], PSRemotingTransportExc
    eption
    + FullyQualifiedErrorId : PSSessionOpenFailed
    Aditya Mediratta

    Hi Aditya,
    Please running following command to enable the CredSSP on both client and server:
    Parameter Set: Default
    Enable-WSManCredSSP [-Role] <String> [[-DelegateComputer] <String[]> ] [-Force] [ <CommonParameters>]
    I found a blog for your reference in case I have anything misunderstanding:
    How To Use The 2012 Active Directory PowerShell Cmdlets From Windows 7
    http://blogs.technet.com/b/ashleymcglone/archive/2013/06/27/how-to-use-the-2012-active-directory-cmdlets-from-windows-7.aspx
    Thanks
    Mavis
    Mavis Huang
    TechNet Community Support

  • Error occuring with JNI_CreateJavaVM: implicity dependency

    Hi ,
    I tried to create example program of JNI as shown in trial. I wanted to invoke a java program from C. I am unable to compile it. I am sending the compile command and the output I got. I used jni version 1.2
    ##########Compile Command#########
    gcc -I/usr/java1.3.1/include/ -I/usr/java1.3.1/include/solaris -L/usr/java1.3.1/jre/lib/sparc/ -ljava invokenew.c
    *************Output*******************
    Undefined first referenced
    symbol in file
    JNI_CreateJavaVM /var/tmp/ccmQWGHn.o (symbol belongs to implicit dependency /usr/java1.3.1/jre/lib/sparc//libjvm.so)
    ld: fatal: Symbol referencing errors. No output written to a.out
    collect2: ld returned 1 exit status
    I would be glad if someone can answer my question.
    Thank you,
    Kiran

    You should be linking with libjvm.so.
    God bless,
    -Toby Reyelts
    Check out Jace, http://jace.reyelts.com/jace

  • "Statement not accessible" error in Implicit enhancement - SAPMF05A

    Hi,
      I am trying to implement Implicit Enhancement in program SAPMF05A, in module transaktions_init. When I click on Edit -> Enhancement Option -> Show implicit enhancement, it displays implicit enhancement at end of module ( after ENDMODULE) statement. When I click " Enhancement" icon, write code and it gives error statement not accessible.
    Please suggest.
    Regards,
    Priya

    You will have to put the code in a module and then call that module.
    Rob

  • Statement not accessible error in Implicit Enhancement of  SAPMPE03

    ENDMODULE.
    """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""$"$\SE:(1 ) Include MPMKMO00, End                                                                                S
    *$*$-Start: (1)---------------------------------------------------------------------------------$*$*
    ENHANCEMENT 1 ZENH_PE03.
    MESSAGE 'hi' TYPE 'I'.
    ENDENHANCEMENT.
    *$*$-End:   (1)
    As shown above i added a line MESSAGE 'Hi' Type 'I' in the implicit enhancement portion. But it gives me error "Statement not accessible"
    Thanks

    Hi Amber,
    just in case you have to do something similar again: ABAP Code must always be between MODULE ... ENDMODULE or FORM ... ENDFORM. In the example in this post the statement
    MESSAGE 'hi' TYPE 'I'.
    is just after an ENDMODULE. statement and so this code can never be reached (or is not accessible ). The implicit enhancement option outside the existing modularization units is used to define completely new MODULEs or FORMs.
    Hope this helps!
    Regards
    Oliver

  • Error:1067 - Implicit coercion of a value of type QName to an unrelated type QName

    hi,
    I'm new in flex and my english not good. I'll try to explain
    my problem :(
    I have an application mxml and a component mxml. I imported a
    wsdl from .net webservice.
    In main mxml I added:
    <mx:Application .....
    xmlns:webservices="generated.webservices.*"/>
    and
    <webservices:xService id="m_service"/>
    there is no problem for this. But when I added into component
    mxml like this:
    <mx:Canvas.....
    xmlns:webservices2="generated.webservices.*"/>
    and
    <webservices2:xService id="m_service2"/>
    I'm getting the following error:
    error line sample: (and 633 similar lines in
    generated.webservices)
    responseMessage.wrappedQName = new QName("
    http://tempuri.org/","GetMemberListResponse");
    error:
    1067: Implicit coercion of a value of type QName to an
    unrelated type QName
    When I removed the <webservices2:xService
    id="m_service2"/> line from component mxml, I'm not getting an
    error.
    Flex 3.0 - sdk 4.0
    Thanx for your helps

    thanx your answer,
    I changed (like this:[WebService(Namespace = "
    http://Info.WebService/MyInfoService"))
    but it doesn't work. I still have same problem.
    It's really strange problem. When I used in application mxml,
    it's working. But when I used in component mxml, I'm getting error.
    I tested the web servise in other test application mxml with
    following code: (it's working excellent)
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="absolute" xmlns:webservices="generated.webservices.*"
    creationComplete="test12()">
    <mx:Script>
    <![CDATA[
    import mx.rpc.AsyncToken;
    private function test12():void
    m_service12.addgetFuelList_header(GetAuthHeader());
    m_service12.getFuelList();
    ]]>
    </mx:Script>
    <mx:Script source="***/ServiceAuthHeaderGetter.as"/>
    <webservices:TankInfoService id="m_service12"/>
    <mx:DataGrid
    dataProvider="{m_service12.getFuelList_lastResult}">
    </mx:DataGrid>
    </mx:Application>
    And finally I closed "Enable strict type checking" from
    project properties and the errors are disappeared.
    But now I got new problems with webservice :)
    TypeError: Error #1009: Cannot access a property or method of
    a null object reference.
    I guess <webservices:TankInfoService id="m_service"/>
    is null.
    But why?
    in component mxml
    I added xmlns:webservices="generated.webservices.*" namespace
    and
    <webservices:TankInfoService id="m_service"/>
    my code is:
    m_service.addgetMemberList_header(GetAuthHeader());
    m_service.getMemberByUserPassword(this.txtUser.text,
    this.txtPassword.text);
    the error:
    TypeError: Error #1009: Cannot access a property or method
    of a null object reference.
    Any ideas???

Maybe you are looking for

  • Deleting DTP based on Open Hub and Remote Cube

    Hi All, i have created a DTP delta for my Open Hub to load a flat file from a remote cube. i have done some load test request but it doesn't work (no data in my file .csv), i have created another full DTP with others parameters and it works successfu

  • Can no longer connect to my wireless network started today

    every time i try to connect to my network it says connection timed out. i can connect using cable... and my windows laptop is connecting to the network wirelessly. Any sugestions

  • Importing sets "part of compilation" all the time, even when it shouldn't.

    I've just instaled iTunes 9.01 and have been importing about 5 CDs worth of music. The problem is that iTunes seems to be setting the "part of a compilation" flag every time even though none of the CDs I've been importing are compilations CDs. I know

  • Curve 9320 issue (hang problem)

    Hello, i have purchased curve 9320 3G 1 month back but i couldn't use this more than 1 day, i use to freeze frequently, after inserting sim, it was running fine for 10-12 Hrs, after than when i received incoming call, it showed me the number and cont

  • How do I troubleshoot start up problem?

    Hi there, I received a MacBook Pro 13 inch mid 2012 as a gift in 2012. It has 4 gb of ram and 500 gb hard drive. last week, it stopped working. it would not let me get to the desktop. I have tried resetting the ram, repair permissions and repair disk