ProC/C++ compilation error

hi,
I am new to proc/c++. I am trying to run some demo programs. but i am getting some errors....while running this coomand to compile-
proc include=/usr/include/linux include=/usr/lib/bcc/include sample3.pc
10-15 errors like the following error
Syntax error at line 97, column 6, file /usr/include/gconv.h:
Error at line 97, column 6 in file /usr/include/gconv.h
size_t *);
.....1
PCC-S-02201, Encountered the symbol "size_t" when expecting one of the following
... auto, char, const, double, enum, float, int, long,
OCIBFileLocator OCIBlobLocator, OCIClobLocator, OCIDate,
OCINumber, OCIRaw, OCIString, register, short, signed,
sql_context, sql_cursor, static, struct, union, unsigned,
varchar, void, volatile, a typedef name, exec oracle,
exec oracle begin, exec, exec sql, exec sql begin,
exec sql type, exec sql var,
The symbol "enum," was substituted for "size_t" to continue.
and in last of error messages.....
Syntax error at line 0, column 0, file sample3.pc:
Error at line 0, column 0 in file sample3.pc
PCC-S-02201, Encountered the symbol "<eof>" when expecting one of the following:
; : an identifier, end-exec, random_terminal
Error at line 0, column 0 in file sample3.pc
PCC-F-02102, Fatal error while doing C preprocessing
PCC-W-02105, Unable to open list file
I hav got stuck at this point....plz respond....

proc is not getting the complete prototype header files .
try as shown below
proc sample3.pc

Similar Messages

  • PROC C Compilation error: Supect the pick up path is incorrect

    Hi
    I have installed the Proc with Oracle 10.2.0.3 client. While compilation I am getting the below error
    orbit@lxnebc46:~/prd_code> make -f dri9.mk dri_loading OS=LINUX
    Now preparing file dri_loading.c
    Pro*C/C++: Release 10.2.0.3.0 - Production on Tue Aug 5 23:52:42 2008
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    System default option values taken from: /u01/oraClient/product/10.2.0/db//precomp/admin/pcscfg.cfg
    Error at line 7, column 11 in file /usr/include/gnu/stubs.h
    # include <gnu/stubs-32.h>
    ..........1
    PCC-S-02015, unable to open include file
    Error at line 34, column 11 in file /usr/include/stdio.h
    # include <stddef.h>
    ..........1
    PCC-S-02015, unable to open include file
    Error at line 31, column 10 in file /usr/include/bits/types.h
    #include <stddef.h>
    I suspect the problem is with extra "/" in the pick up path
    can you please tell hoe to correct it?
    present: from: /u01/oraClient/product/10.2.0/db//precomp/admin/pcscfg.cfg
    Should be : from: /u01/oraClient/product/10.2.0/db/precomp/admin/pcscfg.cfg

    Ideally speaking your pcscfg.cfg should have the paths to the directories where you will be getting all your headers from
    Based on what linux flavor & version of gcc you have the following directory will have the headers you are missing
    /usr/lib/gcc/ABC-XYZ-linux/<gcc_version_no>/include
    where ABC could be i386/i586 depending on the hardware and XYZ could be the linux flavor like redhat/suse/whatever you have

  • Can't Export Movie - Unknown Compile Error - Help!

    I edited a 32 minute movie in Premiere Elements 10, and now I'm trying to export it.  At some point during the export, and it seems to vary, I get an unknown compile error.  I've been trying to export the movie for the past week and all I get is failure despite trying just about everything I've found written about how to solve this.
    I have Win 7 Ultimate SP 1 running on a Lenovo desktop machine with an Intel Core 2 Quad CPU at 2.67 GHz, 4GB of RAM, 32 bit proc.
    Premiere is installed on system C drive with 6 GB of free space.
    Project and scrach disks are on D drive with 165 GB of free space.
    Media files are on 2nd E drive with 50GB of free space.
    Project and most source material is NTSC DV -- there are quite a few photos with motion, plus some iPhone HD video on the timeline, hundreds of clips in all plus narration, a few titles, etc.
    Export destination folder is on D drive.
    Everything will render to green lines atop timeline (sometimes it quits during render and I have to keep hitting Enter to continue rendering, but eventually it's all green)
    So far I've tried:
    - Reinstalling PE 10
    - Reinstalling Quicktime
    - Copying all the photos to their own separate folder
    - Editing each photo slightly (outside of PE 10) and resaving to make sure none of the photos are corrupted
    - Emptying the temp folder
    - Deleting all the renders and cache files and letting them rebuild
    - Exporting small pieces of the timeline to try to identify a bad clip -- this is a maddening process and I did find one clip that would generate the error, but I managed to export that to AVI and reimport and replace on timeline.  It would be awfully nice if PE would just TELL ME which clip it doesn't like if in fact it's a clip error.
    - Turning off the shadow / highlight feature I had on some clips, but this wasn't the issue, smaller sections with these clips exported fine
    - Tried exporting to various formats: Vimeo SD, MPEG DV Standard, iPad Standard High Quality, AVI -- all result in the same error (the format I want by the way is Vimeo SD)
    - Rebooting the machine and turning everything off that might possibly consume memory
    This machine has never had problems exporting in the past.  One thing I did try that worked -- installed PE 10 on another (less capable) Win 7 machine, and fed it all the media via an external drive.  The other machine did the export fine (though it took a while given it is underpowered).  This is nothing more than a work around though as I don't normally have access to this machine and I'm not done editing.
    I'm at my wits' end!  What else can I do to get this movie file to export?
    Appreciate any help or clues you can provide to solve this mystery.

    Oh, that is tragic!
    I never had any issues with mine. Maybe it knew how respectful I was, having come from manual rewinds and a sync block? The Moviola was a godsend, at least for me. I am glad that I got to edit film, and on many setups, as some of that translated well to digital Video. Back when I was in film school, Video was 2" tape, and the only editing was by cutting at a 45 degree angle, and splicing the tape. There was not even deck-to-deck editing, way back then. Also, Video looked like crap, at least to my eyes. We could only use a switcher, to "edit," or do a feed to air. Looked like crap!
    As for the Lexus, I can imagine all sorts of problems. My new LX-570 requires me to "Accept," when I put it into reverse, on the rear-view monitor! At least my wife's MB does not require that, but it is a 2011 model, so maybe the 2013 models will require that the user sign off on all sorts of "stuff."
    Now, I can play Finding Nemo, for my rear-seat passengers, while driving, but the front-seat passengers cannot see it, which is just fine. When driving, I am not even a fan of hands-free calls, and declined most of the streaming stock quotes, etc. for XM/Sirius radio. NOT while I am driving. I will save that for reading the WSJ in the club at the airport.
    Some years ago, our driver in London got a new BMW 7-series, and it allowed the playing of DVD's, even in the front, while driving. Not sure that I would want that, but such is life. At least his seats' ventilation system was "well-chilled," where ours' are just air. He almost froze my bum, showing off his new auto.
    Now, working with PS, or PrE in an auto, or even on a mobile device, is just not something that I can wrap my old head around. I want a fast computer, with a big display, and cannot imagine editing Images, or Video, on any handheld (or auto) device.
    Hunt

  • Why compilation error--when trying to access the table from itcsi schema

    Hi,
    when querying the table from itcsi.app iam able to see the data but used in proc saying invalid table name. Whats the problem
    when declared p_app_i_old app.app_i%type----It is throwing pls-00201 error
    1 Create or replace procedure Test_insert(p_app_i_old integer,
    2 p_app_i_new integer,
    3 p_APP_ISAC_CPT_I varchar2)
    4 is
    5 cursor c1 is
    6 select distinct table_name,owner
    7 from all_tab_columns
    8 where owner = 'ITCSI' and column_name='APP_I';
    9 t_tablename varchar2(25);
    10 t_string varchar2(300);
    11 t_num number;
    12 Begin
    13 For c2 in c1 loop
    14 t_num := 0;
    15 t_string := 'SELECT count(*) FROM ' || c2.owner ||'.'||c2.table_name||' WHERE APP_I = '||p_
    16 execute immediate t_string into t_num;
    17 if t_num > 0 then
    18 -- dbms_output.put_line('The table name is '||c1_rec.table_name);
    19 if c2.Table_name = 'APP' Then
    20 INSERT INTO itcsi.App
    21 SELECT p_app_i_new,
    22 app_acrnym_c,
    23 app_x,
    24 app_desc_t,
    25 app_ipads_t,
    26 app_prdcn_stat_t,
    27 app_prdcn_stat_d,
    28 app_isd_tier_c,
    29 app_bus_cont_c,
    30 app_extnl_cstm_c,
    31 app-ecrpt_lvl_c,
    32 app_isac_cpt_i,
    33 dsw_gpn_i,
    34 ed_cntnt_srce_t,
    35 usr_upd_uunm_i,
    36 ed_upd_m
    37 FROM itcsi.APP
    38 WHERE app_i = p_app_i_old;
    39 elsif c2.Table_name = 'APP_CETRN' Then
    40 Insert into itcsi.APP_CETRN
    41 select p_app_i_new,
    42 app_cetrn_i,
    43 app-curr_cmplnc_t,
    44 app_rqr_cmplnc_t,
    45 dsw_gpn_i,
    46 ed_cntnt_srce_t,
    47 usr_upd_uunm_i,
    48 ed_upd_m
    49 FROM itcsi.APP_CETRN
    50 WHERE app_i = p_app_i_old;
    51 elsif c2.Table_name = 'APP_GPC' Then
    52 Insert into itcsi.APP_GPC
    53 select p_app_i_new,
    54 gpc_dpnt_x,
    55 gpc_elemy_x,
    56 pro_i,
    57 dsw_gpn_i,
    58 ed_cntnt_srce_t,
    59 usr_usr_upd_uunm
    60 FROM itcsi.APP_GPC
    61 WHERE app_i = p_app_i_old;
    62 End if;
    63 End if;
    64 End loop;
    65 --Commit;
    66* End;
    SQL> /
    Warning: Procedure created with compilation errors.
    SQL> show errors
    Errors for PROCEDURE TEST_INSERT:
    LINE/COL ERROR
    20/2 PL/SQL: SQL Statement ignored
    37/23 PL/SQL: ORA-00942: table or view does not exist
    40/2 PL/SQL: SQL Statement ignored
    Thanks

    how do i check the grant?
    if am in my own schema,how do i connect to itcsi
    schema?if you are using a schema other than the ITCSI schema, you need to login as ITCSI. or if you have dba user account you can grant a privilege of
      GRANT ALL on ITCSI.APPS to <other SCHEMA>;

  • Help with Data Block Based on Procedure--getting compilation error

    I am trying to create a datablock based on a procedure , but im getting errors in compilation:
    Errors are :
    1) identifier 'HSM_WSH_DEL_UTIL.DEL_TBL' must be declared
    2)PL/SQL ERROR 320 at line 7, column 27
    the declaration of the type of this expression is incomplete or malformed
    ANy Help would be appreciated !
    Heres my pkg spec and body for the data block:
    CREATE OR REPLACE PACKAGE hsm_wsh_del_util IS
    TYPE del_record is record
    (delivery_id number);
    TYPE del_tbl is table of del_record INDEX BY BINARY_INTEGER;
    procedure do_query(p_del IN OUT del_tbl);
    END hsm_wsh_del_util ;
    CREATE OR REPLACE PACKAGE BODY hsm_wsh_del_util IS
    procedure do_query(p_del IN OUT del_tbl)
    IS
    idx number :=1;
    CURSOR DELIVERY IS
    SELECT DELIVERY_ID
    FROM abc_deliveries;
    begin
    FOR CUR IN DELIVERY LOOP
    p_del(idx).delivery_id :=cur.delivery_id;
    idx:= idx+1;
    END LOOP;
    end do_query;
    END hsm_wsh_del_util;
    Edited by: 981170 on Mar 13, 2013 1:08 PM

    Hi,
    Yes I did use the wizard,
    I agve it the package.proc name for query.
    it pulled up the field delivery ID,
    Hit finish, because I do not need update/delete/inserts.
    the query data source columns and arguments was defaulted correctly.
    THe QUERY-PROCEDURE was built by default.
    It is giving me an error though: wrong number or types of arguments in call to POPULATE_BLOCK..
    DECLARE
    bk_data HSM_WSH_DEL_UTIL.DEL_TBL;
    BEGIN
    hsm_wsh_del_util.do_query(bk_data);
    PLSQL_TABLE.POPULATE_BLOCK(bk_data, 'NEW_DELIVERIES');
    END;

  • ShObjIdl.h compile error when including Photoshop SDK header?

    I develop photoshop plugins on both Mac 10.6 and Windows 7, now my code has been built and run successfully on Mac, but on Windows there are curious compile errors in a file "ShObjIdl.h", this is a Windows SDK header file. ( my VC++ version is 2010 ). It seems including some adobe SDK header file will cause the error. Is there someone who had met this? I guess some macro define conflicts.

    Sophie
    did your program work ok under 10.3.6? Is it just Tiger that gives the problem?
    I have not used xmlrpc but I have used Pro*C on OS X with no probelms.
    Where did the xmlrpc.h you are using come from? I could not find it on OS X on either Tiger or Panther. However I do find an xmlrpc.cp and a make file so I assume you would include a shared library from it in the make file for your program to be able to make the xmlrpc calls you need to.
    In general, the include files are in sub directories of /System/Library/Frameworks and it would be worth a grep -r for the declarations you want to include and put the path in the include parameter to proc.
    I hope this info helps.
    Paul

  • Blackfin ez-lite compile error on 537 FlagCallba​ck example

    I received the following message from the details on Compile error when I "Rebuild All" on the ADSP-537 FlagCallbackExample.
    Sorry for the long message, but I don't know which part of it might be important.
    Any thoughts?
    Hummer 1
    *** compiler output ***
    C:\Program Files\National Instruments\LabVIEW 2009\examples\lvemb\Blackfin\BF537\Flag with callback\BF537 FlagWithCallback\BF537\VDK_Application>"C:\Program Files\Analog Devices\VisualDSP 5.0\ccblkfn.exe" -O1 -Ov100 -c -proc ADSP-BF537 -threads -labview -implicit-pointers -I. @.\prjHeaders.lst -DCHeadless -D__vdk -D__USE_FFT_REL45__ -Wsuppress 0001,1661 "C:\Program Files\National Instruments\LabVIEW 2009\examples\lvemb\Blackfin\BF537\Flag with callback\BF537 FlagWithCallback\BF537\VDK_Application\FlagCallbac​k1.c" @.\prjOptions.lst 
    C:\Program Files\National Instruments\LabVIEW 2009\examples\lvemb\Blackfin\BF537\Flag with callback\BF537 FlagWithCallback\BF537\VDK_Application>"C:\Program Files\Analog Devices\VisualDSP 5.0\ccblkfn.exe" -O1 -Ov100 -c -proc ADSP-BF537 -threads -labview -implicit-pointers -I. @.\prjHeaders.lst -DCHeadless -D__vdk -D__USE_FFT_REL45__ -Wsuppress 0001,1661 "C:\Program Files\National Instruments\LabVIEW 2009\examples\lvemb\Blackfin\BF537\Flag with callback\BF537 FlagWithCallback\BF537\VDK_Application\FlagCallbac​k2.c" @.\prjOptions.lst 
    C:\Program Files\National Instruments\LabVIEW 2009\examples\lvemb\Blackfin\BF537\Flag with callback\BF537 FlagWithCallback\BF537\VDK_Application>"C:\Program Files\Analog Devices\VisualDSP 5.0\ccblkfn.exe" -O1 -Ov100 -c -proc ADSP-BF537 -threads -labview -implicit-pointers -I. @.\prjHeaders.lst -DCHeadless -D__vdk -D__USE_FFT_REL45__ -Wsuppress 0001,1661 "C:\Program Files\National Instruments\LabVIEW 2009\examples\lvemb\Blackfin\BF537\Flag with callback\BF537 FlagWithCallback\BF537\VDK_Application\BF_Flag_Ope​n.c" @.\prjOptions.lst 
    C:\Program Files\National Instruments\LabVIEW 2009\examples\lvemb\Blackfin\BF537\Flag with callback\BF537 FlagWithCallback\BF537\VDK_Application>"C:\Program Files\Analog Devices\VisualDSP 5.0\ccblkfn.exe" -O1 -Ov100 -c -proc ADSP-BF537 -threads -labview -implicit-pointers -I. @.\prjHeaders.lst -DCHeadless -D__vdk -D__USE_FFT_REL45__ -Wsuppress 0001,1661 "C:\Program Files\National Instruments\LabVIEW 2009\examples\lvemb\Blackfin\BF537\Flag with callback\BF537 FlagWithCallback\BF537\VDK_Application\BF_Flag_Ins​tall_Callback.c" @.\prjOptions.lst 
    C:\Program Files\National Instruments\LabVIEW 2009\examples\lvemb\Blackfin\BF537\Flag with callback\BF537 FlagWithCallback\BF537\VDK_Application>"C:\Program Files\Analog Devices\VisualDSP 5.0\ccblkfn.exe" -O1 -Ov100 -c -proc ADSP-BF537 -threads -labview -implicit-pointers -I. @.\prjHeaders.lst -DCHeadless -D__vdk -D__USE_FFT_REL45__ -Wsuppress 0001,1661 "C:\Program Files\National Instruments\LabVIEW 2009\examples\lvemb\Blackfin\BF537\Flag with callback\BF537 FlagWithCallback\BF537\VDK_Application\FlagWithCal​lback.c" @.\prjOptions.lst 
    At end of source: : internal error: Uncaught exception Assertion failed raised
              at ../../../libutil/cii/src/array.c:38 (in pass final_annotate
              during compilation of _FlagWithCallback_BlockDiagram). Please submit
              a bug report with this message, the command line used, type of
              machine and the output of the compiler when you add -ED -v to the
              command line. Please also send us the pre-processed file that is
              generated by the -ED option (the file generated is named
              <original_filename>.i)
    1 catastrophic error detected in the compilation of "C:\Program Files\National Instruments\LabVIEW 2009\examples\lvemb\Blackfin\BF537\Flag with callback\BF537 FlagWithCallback\BF537\VDK_Application\FlagWithCal​lback.c".
    Compilation aborted.
    cc3089: fatal error: Compilation failed
    *** linker output ***
    Attachments:
    compiler output.pdf ‏49 KB

    Hi Hummer1,
    I will look into this error, but I have a couple questions.
    1.) Does this happen when you choose to "Build" as well?
    2.) Does this happen only with the FlagWithCallback example or with all examples?
    Aaron P
    National Instruments
    Applications Engineer
    http://www.ni.com/support

  • Sun Studio 11 f90 INTERNAL COMPILER ERROR: "FWOutput"

    Hello SUN-Users,
    I am new here, so I don't know I am right here!?
    I have a w2100z with two opteron proc. With Sun Studio 11 I am trying to compile the new MUMPS (Ver. 4.6) package, but I get still the error message:
    f90 -I/opt/mpich/include -Dpord -I. -I../include -c dmumps_ooc.F
    1:LEN$1:1INTERNAL COMPILER ERROR near line 2494 in dmumps_ooc.F (phase FWOutput):
    FWOutput: no visit function for class 'SubscriptTriplet'
    *** Error code 1
    make: Fatal error: Command failed for target `dmumps_ooc.o'
    I search with google for "FWOutput" and I found out, that a similar problem already was recognized in Sun Studio 9 and fixed with the patch 115985-04 (6351156 f90 compiler internal error "FWOutput: no vist function for class 'SubscriptTriplet').
    Here is some code near line 2494 from file dmumps_ooc.F:
          SUBROUTINE DMUMPS_614(id)
          I=id%MYID
          J=id%OOC_NB_FILES
          K=id%KEEP(35)
          L=MOD(id%KEEP(204),3)
    TMP_DIR=TRIM(id%DMUMPS_OOC_TMPDIR)
          TMP_FILE=TRIM(id%DMUMPS_OOC_PREFIX)
          DIM_DIR=LEN(TRIM(id%DMUMPS_OOC_TMPDIR))
          DIM_FILE=LEN(TRIM(id%DMUMPS_OOC_PREFIX))
        END SUBROUTINE DMUMPS_614The bolded line is the line 2494.
    I can not see anything worng in this routine, but maybe I am already too tired for today.... :-)
    Realy it is important to me to compile the MUMPS package,
    so I hope somebody can help me?
    ****With best regards****

    I think the TRIM should remove last character of the
    string. (?)TRIM removes the trailing blanks in a string. String assignment then adds trailing blanks, so there's no point writing something like
    s1 = TRIM(s2)
    Can you say me where can I make a bug report? What is
    to do?
    Maybe next time I can do also a bug report?That's a good question. If you have a support contract, then you should be able to submit a bug report through that. Until recently, I believe that would have been the only way to do it. However, we now have an online support service:
    http://developers.sun.com/developer_help/
    I imagine you could get a bug filed through that channel as well.

  • Capture sql_test ||Trigger compilation errors.

    Thanks Liu Fan.
    I use the sql statement you gave me,it works well on sqlplus, but while put into trigger and have warning message:
    Warning: Trigger created with compilation errors.
    following is code snippet:
    create or replace trigger test_trg
    after UPDATE or DELETE or INSERT on emp
    declare
    this_sql_text varchar2(800);
    CURSOR c1 is
    select b.sql_text from v$session a, v$sqltext_with_newlines b where a.sql_address = b.address
    and a.audsid = (select userenv('SESSIONID') from dual)
    and a.sql_hash_value =b.hash_value
    order by b.piece;
    rec c1%ROWTYPE;
    begin
    open c1;
    loop
    fetch c1 into rec;
    exit when c1%NOTFOUND;
    this_sql_text := this_sql_text &#0124; &#0124; rec.sql_text;
    end loop;
    close c1;
    insert into change_audit (changeDate, mysql_text) values (sysdate,this_sql_text);
    end;
    Does Anyone have a clue why this is happening? Any help will be greatly appreciated.
    null

    I create the same trigger as yours to test. But it failed in compiling because the v$session view cannot be resolved. Then try to wrap the sql statement in dynamic sql. Then compilation is successful and cannot resolve the view during execution.
    My suggestion is that if you can do a test in your system schema to see if the view can be resolved. Following the the test script:
    (You can call this proc in your trigger.)
    PROCEDURE TEST_TRACESQL AS
    PRAGMA AUTONOMOUS_TRANSACTION;
    TYPE TestType IS REF CURSOR;
    test_cv TestType;
    sql_stmt VARCHAR2(200);
    sql_text VARCHAR2(2000);
    tmp_text VARCHAR2(200);
    BEGIN
    sql_stmt := 'select b.sql_text ' &#0124; &#0124;
    'from sys_session a, sys_sqltext b ' &#0124; &#0124;
    'where a.sql_address = b.address ' &#0124; &#0124;
    'and a.audsid = (select userenv(''SESSIONID'') from dual) ' &#0124; &#0124;
    'and a.sql_hash_value = b.hash_value';
    DBMS_OUTPUT.PUT_LINE(SQL_STMT);
    OPEN test_cv FOR sql_stmt;
    LOOP
    FETCH test_cv INTO tmp_text;
    EXIT WHEN test_cv%NOTFOUND;
    sql_text := sql_text &#0124; &#0124; tmp_text;
    END LOOP;
    CLOSE test_cv;
    INSERT INTO test_sql (sqltext) values(sql_text);
    COMMIT;
    END;
    null

  • Compilation error while calling static method from another class

    Hi,
    I am new to Java Programming. I have written two class files Dummy1 and Dummy2.java in the same package Test.
    In Dummy1.java I have declared a static final variable and a static method as you can see it below.
    package Test;
    import java.io.*;
    public class Dummy1
    public static final int var1= 10;
    public static int varDisp(int var2)
    return(var1+var2);
    This is program is compiling fine.
    I have called the static method varDisp from the class Dummy2 and it is as follows
    package Test;
    import java.io.*;
    public class Dummy2
    public int var3=15;
    public int test=0;
    test+=Dummy1.varDisp(var3);
    and when i compile Dummy2.java, there is a compilation error <identifier > expected.
    Please help me in this program.

    public class Dummy2
    public int var3=15;
    public int test=0;
    test+=Dummy1.varDisp(var3);
    }test+=Dummy1.varDisplay(var3);
    must be in a method, it cannot just be out somewhere in the class!

  • Compile Error: "schema 'name' does not exist

    Im trying to build a program that quereys a table in a database but i keep getting this error. Am i missing a link between the files or am i missing a line of code in my program??

    Apologies. I receive a compiler error which reads as follows;
    java.lang.ClassNotFoundException: org.apache.derby.jdbc.EmbeddedDriver
    java.sql.SQLSyntaxErrorException: Schema 'DEMO' does not exist
    Heres the main body of code i am trying to execute.
    public class Main {
    * @param args the command line arguments
    public static void main(String[] args) {
    // TODO code application logic here
    try{
    Class.forName("org.apache.derby.jdbc.EmbeddedDriver");
    }catch(ClassNotFoundException e){
    System.out.println(e);
    try{
    Connection con = DriverManager.getConnection("jdbc:derby://localhost:1527/SimpleDBDemo", "demo", "demo");
    Statement stmt = con.createStatement();
    ResultSet rs = stmt.executeQuery("SELECT * FROM DEMO.Table1");
    while (rs.next()) {
    String s = rs.getString("Name");
    float n = rs.getFloat("Age");
    System.out.println(s + " " + n);
    }catch(SQLException e){
    System.err.println(e);
    I am using NetBeans IDE and have created a database under: Services->Databases-> Java DB->SimpleDBDemo.
    I have a database connection in which theres a simple table (called "TABLE1") created which contains the names and ages of two people.
    Hope this makes the problem a bit clearer.
    Any help would be greatly appreciated.

  • Experiencing "The type or namespace name 'DirectoryServices' does not exist in the namespace 'System' (are you missing an assembly reference?)" compilation error

    I am just starting to implement a new user login authentication process wherein after prompting user for username & password, I hope to authenticate them againts our company Active Directory user data. Since I am just starting, I only have very few things
    done at this point which is how I wanted to work on this so that my development environment is still at its simplest state.
    I am using the following for development:
    MS-Visual Studios Professional 2013 Version 12.0.30501.00 Update 2, and
    MS .NET Framework Version 4.5.50938.
    Here are my project solution's current items:
    Web.config:
    <?xml version="1.0"?>
    <!--
    For more information on how to configure your ASP.NET application, please visit
    http://go.microsoft.com/fwlink/?LinkId=169433
    -->
    <configuration>
    <system.web>
    <compilation debug="true" targetFramework="4.5" />
    <httpRuntime targetFramework="4.5" />
    </system.web>
    <system.webServer>
    <defaultDocument enabled="true">
    <files>
    <add value="Login.aspx" />
    </files>
    </defaultDocument>
    </system.webServer>
    </configuration>
    Web.Debug.config:
    <?xml version="1.0" encoding="utf-8"?>
    <!-- For more information on using web.config transformation visit http://go.microsoft.com/fwlink/?LinkId=125889 -->
    <configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
    <!--
    In the example below, the "SetAttributes" transform will change the value of
    "connectionString" to use "ReleaseSQLServer" only when the "Match" locator
    finds an attribute "name" that has a value of "MyDB".
    <connectionStrings>
    <add name="MyDB"
    connectionString="Data Source=ReleaseSQLServer;Initial Catalog=MyReleaseDB;Integrated Security=True"
    xdt:Transform="SetAttributes" xdt:Locator="Match(name)"/>
    </connectionStrings>
    -->
    <system.web>
    <compilation xdt:Transform="RemoveAttributes(debug)" />
    <!--
    In the example below, the "Replace" transform will replace the entire
    <customErrors> section of your web.config file.
    Note that because there is only one customErrors section under the
    <system.web> node, there is no need to use the "xdt:Locator" attribute.
    <customErrors defaultRedirect="GenericError.htm"
    mode="RemoteOnly" xdt:Transform="Replace">
    <error statusCode="500" redirect="InternalError.htm"/>
    </customErrors>
    -->
    </system.web>
    </configuration>
    Web.Assemblies.config:
    <?xml version="1.0"?>
    <configuration>
    <system.web>
    <compilation debug="false" targetFramework="4.5" />
    <httpRuntime targetFramework="4.5" />
    <assemblies>
    <add assembly="System.DirectoryServices, Version=4.0.0.0, Culture=neutral PublicKeyToken=b03f5f7f11d50a3a"/>
    </assemblies>
    </system.web>
    </configuration>
    Login.aspx:
    <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Login.aspx.cs" Inherits="Login" %>
    <!DOCTYPE html>
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
    <title></title>
    </head>
    <body>
    <form id="form1" runat="server">
    <div id="loginForm" style="height: 562px; width: 399px; margin-left: 0px" title="Login Form">
    &nbsp;&nbsp;&nbsp;&nbsp;
    <asp:Label ID="loginPageLabel" runat="server" Font-Bold="True" Font-Names="Arial Black" Font-Size="Large" Text="Please Log In"></asp:Label>
    <br />
    <br />
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <asp:Label ID="loginUsernameLabel" runat="server" Text="Username:"></asp:Label>
    &nbsp;&nbsp;&nbsp;
    <asp:TextBox ID="loginUserNameTextBox" runat="server" OnTextChanged="loginUserNameTextBox_TextChanged" Width="213px" Wrap="False" AutoPostBack="True" TabIndex="1"></asp:TextBox>
    <br />
    <br />
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <asp:Label ID="loginPasswordLabel" runat="server" Text="Password:"></asp:Label>
    &nbsp;&nbsp;&nbsp;
    <asp:TextBox ID="loginPasswordTextBox" runat="server" OnTextChanged="loginPasswordTextBox_TextChanged" Width="212px" Wrap="False" AutoPostBack="True" TabIndex="2"></asp:TextBox>
    <br />
    <br />
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <asp:RadioButton ID="loginUAradioButton" runat="server" Font-Bold="True" OnCheckedChanged="loginUAradioButton_CheckedChanged" Text="TUPSS Associate" AutoPostBack="True" TabIndex="3" />
    &nbsp;&nbsp;
    <asp:RadioButton ID="loginAFradioButton" runat="server" Font-Bold="True" OnCheckedChanged="loginAFradioButton_CheckedChanged" Text="Area Franchisee" AutoPostBack="True" TabIndex="4" />
    <br />
    <br />
    <br />
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <asp:Button ID="loginSubmitButton" runat="server" Font-Bold="True" OnClick="loginSubmitButton_Click" Text="Log In" TabIndex="5" />
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <asp:Button ID="loginCancelButton" runat="server" Font-Bold="True" OnClick="loginCancelButton_Click" Text="Cancel" TabIndex="6" />
    <br />
    <br />
    &nbsp;&nbsp;
    <asp:Label ID="loginStatusInstructionLabel" runat="server" Text="Status/Instruction:"></asp:Label>
    <br />
    &nbsp;&nbsp;
    <asp:TextBox ID="loginStatusInstructionTextBox" runat="server" Height="230px" MaxLength="100" Rows="12" TextMode="MultiLine" Width="360px" EnableViewState="False" OnTextChanged="loginStatusInstructionTextBox_TextChanged" ReadOnly="True" TabIndex="-1"></asp:TextBox>
    </div>
    </form>
    </body>
    </html>
    Login.aspx.cs:
    using System;
    using System.DirectoryServices;
    public partial class Login : System.Web.UI.Page
    private string uName; // user-entered username
    private string pWord; // user-entered password
    private int loginLoadCycles; // just keeping track of how many times Page_Load is called
    protected void Page_Load(object sender, EventArgs e)
    if (this.loginUserNameTextBox.Text == String.Empty &&
    this.loginPasswordTextBox.Text == String.Empty &&
    this.loginUAradioButton.Checked == false &&
    this.loginAFradioButton.Checked == false)
    this.loginInit();
    this.setLoginVisibilityAndFocus();
    this.loginLoadCycles += 1;
    private void loginInit()
    this.uName = String.Empty;
    this.pWord = String.Empty;
    this.loginLoadCycles = 0;
    private void setLoginVisibilityAndFocus()
    // Decide on whether or not the Login submit & cancel buttons should be enabled or not
    if ( this.loginUserNameTextBox.Text == String.Empty ||
    (this.loginUAradioButton.Checked == false && this.loginAFradioButton.Checked == false) )
    this.loginSubmitButton.Enabled = false;
    this.loginCancelButton.Enabled = false;
    this.loginStatusInstructionTextBox.Text = "Please specify if you are a TUPSS Associate or an Area Franchisee by checking either the 'TUPSS Associate' or 'Area Franchisee' checkbox.";
    else
    this.loginSubmitButton.Enabled = true;
    this.loginCancelButton.Enabled = true;
    if (this.loginPasswordTextBox.Text == String.Empty)
    this.loginStatusInstructionTextBox.Text = "Now that you have entered your username & type, please enter your password.";
    else
    this.loginStatusInstructionTextBox.Text = "When you are ready, please select either the Log In button to login, or the Cancel button to abort.";
    if (this.loginUAradioButton.Checked == false && this.loginAFradioButton.Checked == false)
    this.SetFocus(this.loginUAradioButton);
    else if (this.loginUserNameTextBox.Text == String.Empty)
    this.SetFocus(this.loginUserNameTextBox);
    else if (this.loginPasswordTextBox.Text == String.Empty)
    this.SetFocus(this.loginPasswordTextBox);
    else
    this.SetFocus(this.loginSubmitButton);
    protected void loginUserNameTextBox_TextChanged(object sender, EventArgs e)
    protected void loginPasswordTextBox_TextChanged(object sender, EventArgs e)
    // For some reason, after specifying that the password entry box's textmode to 'Password' setting,
    // the UI's password textbox is emptied
    this.loginStatusInstructionTextBox.Text = "NOTICE:\nThis application is still under development.\n\n" +
    "This is why the password you entered is visible. Once this portion of the application is ready, it will be masked.\n\n" +
    "Also, still need to figure out why when changing this to Password entry mode to mask its entered data, password is getting reset.";
    protected void loginSubmitButton_Click(object sender, EventArgs e)
    this.loginLoadCycles = 0;
    this.uName = this.loginUserNameTextBox.Text;
    this.pWord = this.loginPasswordTextBox.Text;
    if (this.loginUAradioButton.Checked == true && this.loginAFradioButton.Checked == false)
    this.loginLADPauthenticate('U'); // authenticate UPS Associates against UPS Corp's Active Directory
    else if (this.loginUAradioButton.Checked == false && this.loginAFradioButton.Checked == true)
    this.loginLADPauthenticate('A'); // authenticate Area Franchisees against UPS Store's iNet Active Directory
    else
    // set colors to show that this is an error instead of a status message or instruction
    this.loginStatusInstructionTextBox.Text = "ERROR: Cannot log in without specifying if you are an UPS Associate or an Area Franchisee!";
    protected void loginCancelButton_Click(object sender, EventArgs e)
    this.loginStatusInstructionTextBox.Text = "You have selected to cancel from logging in...";
    // Still need to plan what to do when user cancels out of logging in. For now, just initialize class attributes
    this.loginInit();
    protected void loginUAradioButton_CheckedChanged(object sender, EventArgs e)
    String msg = String.Empty;
    if (this.loginUAradioButton.Checked == true)
    this.loginAFradioButton.Checked = false;
    msg = "Thanks for specifying that you are a TUPSS Associate. ";
    if (this.loginUserNameTextBox.Text == String.Empty)
    msg += "Now please specify your username.";
    else if (this.loginPasswordTextBox.Text == String.Empty)
    msg += "Now please enter your password.";
    this.loginStatusInstructionTextBox.Text = msg;
    protected void loginAFradioButton_CheckedChanged(object sender, EventArgs e)
    String msg = String.Empty;
    if (this.loginAFradioButton.Checked == true)
    this.loginUAradioButton.Checked = false;
    msg = "Thanks for specifying that you are an Area Franchisee. ";
    if (this.loginUserNameTextBox.Text == String.Empty)
    msg += "Now please specify your username.";
    else if (this.loginPasswordTextBox.Text == String.Empty)
    msg += "Now please enter your password.";
    this.loginStatusInstructionTextBox.Text = msg;
    private void loginLADPauthenticate(char whichActiveDirectory)
    String msg = "Authenticating user '" + this.uName + "' with password '" + this.pWord + "' against ";
    if (whichActiveDirectory == 'U')
    msg += "UPS Corp's Active Directory...";
    else if (whichActiveDirectory == 'A')
    msg += "The UPS Store's Franchisee Active Directory...";
    msg += "\n\nNOTICE:\nThis is still under development.\n\nAt this point, this application is supposed to do something else now but is not yet ready.";
    this.loginStatusInstructionTextBox.Text = msg;
    this.loginStatusInstructionTextBox.AutoPostBack = true;
    // Authenticate using LDAP
    protected void loginStatusInstructionTextBox_TextChanged(object sender, EventArgs e)
    I confirmed that I have System.DirectoryServices.dll located in
    C:\Windows\Microsoft.NET\assembly\GAC_MSIL\v4.0_4.0.0.0__b03f5f7f11d50a3a\ folder and that I as well as System have read as well as read&execute privileges
    not only to all folders in its path but also to the DLL file itself.
    I would appreciate any help in trying to resolve this compilation error so that I can proceed with implementing LDAP features for this endeavor.
    Thanks so much,
    hguico @ The UPS Store

    Hi,
    For web application problem, please post your thread in
    ASP.NET forum.
    Best Wishes!
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey. Thanks<br/> MSDN Community Support<br/> <br/> Please remember to &quot;Mark as Answer&quot; the responses that resolved your issue. It is a common way to recognize those who have helped you, and
    makes it easier for other visitors to find the resolution later.

  • PL/SQL Procedure Compilation error

    Hi,
    <br><br>
    I have wrote a PL/SQL Stored Procedure to read a couple of table values and then output some data to a file, when I create the procedure on the database I get the following compilation error:
    <br><br>
    LINE/COL ERROR<br>
    -------- -----------------------------------------------------------------<br>
    25/7 PLS-00103: Encountered the symbol ")" when expecting one of the<br>
    following:<br>
    ( - + case mod new null <an identifier><br>
    <a double-quoted delimited-identifier> <a bind variable> avg<br>
    count current max min prior sql stddev sum variance execute<br>
    forall merge time timestamp interval date<br>
    <a string literal with character set specification>
    <a number> <a single-quoted SQL string> pipe<br>
    The symbol "null" was substituted for ")" to continue.<br>
    <br>
    The script is below: <br><br>
    CREATE OR REPLACE <br>
         PROCEDURE TDF_EXTRACT AS<br>
    v_file UTL_FILE.FILE_TYPE;<br>
    YEAR number(4);<br>
    Q1_VALUE NUMBER(7);<br><br>
    BEGIN<br><br>
    SELECT PERSON_VALUE<br>
    INTO     Q1_VALUE<br>
    FROM PERSON<br>
    WHERE ID = 79;<br><br>
    SELECT EXTRACT(YEAR FROM SYSDATE)<br>
    INTO YEAR <br>
    FROM DUAL;<br><br>
    v_file := UTL_FILE.FOPEN(location => '/tmp',<br>
    filename => 'extratced_values.txt',<br>
    open_mode => 'W',<br>
    max_linesize => 32767);<br><br>
    UTL_FILE.PUT_LINE(v_file,<br>
    'Q1'     ||     YEAR     ||     '23'     ||     Q1_VALUE || '\r\n' ||<br>
              );<br><br>
    UTL_FILE.FCLOSE(v_file);<br><br>
    END TDF_EXTRACT;

    'Q1' || YEAR || '23' || Q1_VALUE || '\r\n' ||
    );Syntax error during concatenation, maybe?
    C.
    Message was edited by:
    cd

  • How can I read ALL the compilation errors in a DOS window?

    On compilation using a DOS window, if the number of errors exceeds the window size, some of the errors disappear off the top of the window and I cannot read them.
    Is there an effective solution to somehow use scrolling of the DOS window or transfer the compilation errors to a file?

    Hey buddy,
    When I first started programming with Java, I wondered the same thing. I have the very best solution for you. This one is waaay easy!!!!
    There is a text editor which will not only color code your text for you, but you can easily configure it to give you the compiler /DOS output for Java. Just go to this website and download the program. Enjoy!
    http://www.textpad.com/

  • How to find out which PL/SQL Proc is Compiled with Debug?

    Hi,
    is there any View where i can see, which PL/SQL Proc is compiled with the debug flag?
    Thanks
    Marco
    Message was edited by:
    mpatzwah

    Alternatively:
    select name, plsql_debug from sys.all_plsql_object_settings

Maybe you are looking for

  • AUTOMATIC CLEARING FOR CUSTOMER

    Hello, In OB74 I have additional rules for automatic clearing -customer D : ZUONR , BUKRS ,WRBTR Account type : D From acct: 1-999999999 F.13 and  I'm getting message:" No customer documents selected" Could You give me through this..... Thanks.

  • Re:Flash Player Setup Download "Windows 8"

    No Download Link Available My Computer Says The Software Is Not Installed No Way To Download The Newest Version

  • Reporting fault

    I have beem without my phone service for a week.I have reported fault several times  but I am being ignored.I can only report on line and I just get directed from one page to another and back again.I am getting really angry.I have done all the checks

  • GREP in FindChangeByList-script!

    Hi! Running the script in IDCS3 and it works well, but... I want to use a GREP search and change the Character Style for the result. {appliedCharacterStyle:"xxx"} only works if the search is TEXT. How can I make the same work in a GREP line??? And Ye

  • End lead time

    Hi We are testing one scenario.  In this scenario i have to simulate confirmed delivery date before end lead time.  I have a requirement of 10 numbers and have 100 nos unrestricted stock.  When i give required date in sales order as 13-10-2010, still