SQL describe command not running in JSP

Hello All,
i hope u all will be enjoying ur lives :)
i have a problem that when i run the SQL describe command it gives me the error that Invalid SQL Statement...
the command syntax is
desc tablename; OR describe tablename;
and i am doing it like that
ResultSet rs = stmt.executeQuery("describe CF");
where CF is the name of table..
actually what i want to do is get the columns and its datatypes dynamically.. means that i want i get all the tables first from database then whichever table i select i can display its records and also add delete and modify the records...
if anyone have already code of this ..please email me at
[email protected]
i will be very very thank ful for that..
otherwise tell me the solution of the above problem :(
thanx in advance
RANA

You can get all the information about the table using the meta data. Run a dummy query (I don't think it even needs to return any results), and then grab the meta data
from the result set:
ResultSet rs = null;
ResultSetMetaData rsmd;
int numcolumns = 0;
Vector field = new Vector();
rs = statement.executeQuery( "select * from mytable where field='nevermatchme'");
rsmd = rs.getMetaData();
numcolumns = rsmd.getColumnCount();
for ( int i = 1 ; i <= numcolumns ; i++ ) {
field.add( rsmd.getColumnName(i) );
You now have a Vector with one element per database field, each containing a String of that fields name. I believe it is also possible to get field
type, etc also the MetaData.

Similar Messages

  • SQL script runs under SQL Devoper, will not run under UNIX, SQLPlus

    I have a sql program I developed under the SQL Developer tool and it runs fine. I have ftp'd the sql to the Unix server and I am trying to run the same program under SQL Plus in unix. The program echo's back the line number that is the last line number in the code before the 'Exception' code in the program and it goes out into never never land.
    I can't figure out why this runs under SQL Developer but will not run under SQLPlus in Unix. Any ideas would be appreciated!!!!

    Assuming that the ftp process did not append any invisible characters(which it usually does) at the end of each line,
    did you put the '/' symbol at the end of your program before running in sql*plus
    something like
    begin
    end;
    /

  • OSCommand ODI Command not running on Agent

    Hello,
    I have a simple .bat file I need to kick off in ODI. When I run it with local service(no agent) it runs fine but when I try to run it under my (installed as a service )agent it fails with the generic error "wrong process return code"
    I have changed the properties of the service and specified to log on as administrator but it still fails.
    any ideas?
    Thanks
    Kind regards,
    Caoimhe
    Edited by: user9213000 on Dec 15, 2010 8:26 AM

    user-arch@archusrpc /home/@solushome/user-solus/QtADB-cwm_edition $ QtADB
    bash: QtADB: command not found
    user-arch@archusrpc /home/@solushome/user-solus/QtADB-cwm_edition $ ./QtADBbash: ./QtADB: No such file or directory
    user-arch@archusrpc /home/@solushome/user-solus/QtADB-cwm_edition $ sh ./QtADB
    ./QtADB: ./QtADB: cannot execute binary file
    user-arch@archusrpc /home/@solushome/user-solus/QtADB-cwm_edition $ sh QtADB
    QtADB: QtADB: cannot execute binary file
    user-arch@archusrxpc /home/@solushome/user-solus/QtADB-cwm_edition $ ls -l
    σύνολο 2940
    -rw-rw-r-- 1 user-arch 1000    5259 Απρ  13  2012 Changes.txt
    -rw-rw-r-- 1 user-arch 1000   25330 Ιούν 26  2012 debug.log
    -rwxrwxr-x 1 user-arch 1000 2970612 Απρ  13  2012 QtADB
    drwxr-xr-x 1 user-arch 1000       0 Ιούν 26  2012 tmp
    drwxrwxr-x 1 user-arch 1000     366 Μάρ  13  2012 tools
    user-arch@archusrpc /home/@solushome/user-solus/QtADB-cwm_edition $
    Last edited by dancer69 (2013-01-17 18:30:23)

  • Basic commands not running

    Dear All,
    Only after installing Lion, the Terminal now claims
    that "man: command not found"
    "ssh: command not found"  (remote login enabled)
    I've also realised some missing environment variables
    echo $PATH just returns /bin
    Regards
    El

    Well, it's alright that those missing files do not exist. The command I provided would try to find files that could possibly be changing the PATH variable. And it did! Log on to the problem account "thestudio" and move /Users/thestudio/.bash_profile ->
    /bin/mv /Users/thestudio/.bash_profile /Users/thestudio/bash_profile
    Quit the Terminal.app then reopen it. Now try->
    echo $PATH

  • This SQL  script is not running properly

    The following is SQL script which I want to run.When I am running individual statements , all the statements are working. But When I am running script as a whole, its not working.
    what might be the problem with following script
    --the following table is created with list of Singapore Holidays
    set define off
    drop table exclude_date;
    create table exclude_date as
    select 2007 as year#, 1 month#, 1 day#, 'New Year Day' as name# from dual union all
    select 2007 as year#, 1 month#, 2 day#, 'New Year Day' as name# from dual union all
    select 2007 as year#, 2 month#, 18 day#, 'Chinese New Year' as name# from dual union all
    select 2007 as year#, 2 month#, 19 day#, 'Chinese New Year' as name# from dual union all
    select 2007 as year#, 2 month#, 20 day#, 'Chinese New Year' as name# from dual union all
    select 2007 as year#, 4 month#, 6 day#, 'Good Friday' as name# from dual union all
    select 2007 as year#, 5 month#, 1 day#, 'Labour Day' as name# from dual union all
    select 2007 as year#, 5 month#, 31 day#, 'Vesak Day' as name# from dual union all
    select 2007 as year#, 8 month#, 9 day#, 'National Day' as name# from dual union all
    select 2007 as year#, 10 month#, 13 day#, 'Hari Raya Puasa' as name# from dual union all
    select 2007 as year#, 11 month#, 8 day#, 'Deepavali' as name# from dual union all
    select 2007 as year#, 12 month#, 20 day#, 'Hari Raya Hji' as name# from dual union all
    select 2007 as year#, 12 month#, 25 day#, 'Christmas Day' as name# from dual ;
    show errors;
    drop type DateList;
    --This statement creates type of DateList for the function all_date_list which return DateList
    create or replace type DateList as table of date;
    show errors;
    --the following function returns list of working dates  between two dates excluding SAT , SUN and Singapore Holidays
    drop function all_date_list;
    create or replace function all_date_list(p_start date, p_end date)
    RETURN DateList
    PIPELINED
    IS
    curdate date:=p_start;
    exclude number;
    BEGIN
    WHILE curdate <= p_end
    LOOP
    BEGIN
    select 1
    into exclude
    from exclude_date
    where to_date(year#||lpad(month#,2,0)||lpad(day#,2,0),'YYYYMMDD')=trunc(curdate) --excluding unworked days
    or mod(to_char(curdate,'j'),7) in (5,6); --excluding week-end
    EXCEPTION WHEN NO_DATA_FOUND THEN PIPE ROW( curdate );
    WHEN OTHERS THEN NULL;
    END;
    curdate:=curdate+1;
    END LOOP;
    RETURN;
    END;
    show errors;
    --the following function returns number of working days  between two dates excluding SAT , SUN and Singapore Holidays
    drop function WorkingDays;
    CREATE OR REPLACE function WorkingDays(msgSentDate Date) return NUMBER is
    noOfWokingDays number;
    begin
    select count(*) into noOfWokingDays from table(all_date_list(msgSentDate,sysdate));
    return noOfWokingDays;
    end;
    show errors;

    --the following table is created with list of Singapore Holidays
    set define off
    drop table exclude_date;
    create table exclude_date as
    select 2007 as year#, 1 month#, 1 day#, 'New Year Day' as name# from dual union all
    select 2007 as year#, 1 month#, 2 day#, 'New Year Day' as name# from dual union all
    select 2007 as year#, 2 month#, 18 day#, 'Chinese New Year' as name# from dual union all
    select 2007 as year#, 2 month#, 19 day#, 'Chinese New Year' as name# from dual union all
    select 2007 as year#, 2 month#, 20 day#, 'Chinese New Year' as name# from dual union all
    select 2007 as year#, 4 month#, 6 day#, 'Good Friday' as name# from dual union all
    select 2007 as year#, 5 month#, 1 day#, 'Labour Day' as name# from dual union all
    select 2007 as year#, 5 month#, 31 day#, 'Vesak Day' as name# from dual union all
    select 2007 as year#, 8 month#, 9 day#, 'National Day' as name# from dual union all
    select 2007 as year#, 10 month#, 13 day#, 'Hari Raya Puasa' as name# from dual union all
    select 2007 as year#, 11 month#, 8 day#, 'Deepavali' as name# from dual union all
    select 2007 as year#, 12 month#, 20 day#, 'Hari Raya Hji' as name# from dual union all
    select 2007 as year#, 12 month#, 25 day#, 'Christmas Day' as name# from dual ;
    drop type DateList;
    create or replace type DateList as table of date;
    --the following function returns list of working dates  between two dates excluding SAT , SUN and Singapore Holidays
    drop function all_date_list;
    create or replace function all_date_list(p_start date, p_end date)
    RETURN DateList
    PIPELINED
    IS
    curdate date:=p_start;
    exclude number;
    BEGIN
    WHILE curdate <= p_end
    LOOP
    BEGIN
    select 1
    into exclude
    from exclude_date
    where to_date(year#||lpad(month#,2,0)||lpad(day#,2,0),'YYYYMMDD')=trunc(curdate) --excluding unworked days
    or mod(to_char(curdate,'j'),7) in (5,6); --excluding week-end
    EXCEPTION WHEN NO_DATA_FOUND THEN PIPE ROW( curdate );
    WHEN OTHERS THEN NULL;
    END;
    curdate:=curdate+1;
    END LOOP;
    RETURN;
    END;
    show errors;
    --the following function returns number of working days  between two dates excluding SAT , SUN and Singapore Holidays
    drop function WorkingDays;
    CREATE OR REPLACE function WorkingDays(msgSentDate Date) return NUMBER is
    noOfWokingDays number;
    begin
    select count(*) into noOfWokingDays from table(all_date_list(msgSentDate,sysdate));
    return noOfWokingDays;
    end;
    show errors;
    commit;
    The above script is not working properly.Last two fuctions are not executing.
    What might be the error?

  • EEM CLI command not running

    Hi guys,
    I have an issue with an EEM applet that I have configured. Part of the applet is to run a kron occurrence. I know the applet is executing by viewing event manager history, but when I then run show kron schedule, the kron job is not set to run.
    If I manually input the same CLI commands, the schedule starts without issue.
    The config for the applet is below:
    event manager applet RESTORED
    event track 100 state up
    action 1.0 cli command "enable"
    action 1.1 cli command "conf t"
    action 1.2 cli command "kron occurrence MONITOR in 0:10"
    action 1.3 cli command "policy-list MONITOR"
    action 1.4 syslog msg "ATTENTION:THE CCT HAS RESTORED"
    exit
    Any help with this would be greatly appreciated.
    Thanks
    Scott

    I have debugged event manager action cli, and discovered that the reason the CLI commands are not taking is that aaa (tacacs) is applied to this router, so when the system attempts to enter commands, command authorisation is failing.
    *Jul 15 15:14:26.245: %TRACKING-5-STATE: 100 interface Lo100 ip routing Up->Down
    *Jul 15 15:14:26.261: %HA_EM-6-LOG: DWNBT : DEBUG(cli_lib) : : CTL : cli_open called.
    *Jul 15 15:14:26.269: %HA_EM-6-LOG: DWNBT : DEBUG(cli_lib) : : OUT : CC
    *Jul 15 15:14:26.269: %HA_EM-6-LOG: DWNBT : DEBUG(cli_lib) : : OUT :
    *Jul 15 15:14:26.269: %HA_EM-6-LOG: DWNBT : DEBUG(cli_lib) : : OUT :
    *Jul 15 15:14:26.269: %HA_EM-6-LOG: DWNBT : DEBUG(cli_lib) : : OUT : This is a test router for SNMP traps
    *Jul 15 15:14:26.269: %HA_EM-6-LOG: DWNBT : DEBUG(cli_lib) : : OUT :
    *Jul 15 15:14:26.269: %HA_EM-6-LOG: DWNBT : DEBUG(cli_lib) : : OUT :
    *Jul 15 15:14:26.269: %HA_EM-6-LOG: DWNBT : DEBUG(cli_lib) : : OUT : WAKE-ANT-TEST-RTR>
    *Jul 15 15:14:26.269: %HA_EM-6-LOG: DWNBT : DEBUG(cli_lib) : : IN  : WAKE-ANT-TEST-RTR>enable
    *Jul 15 15:14:26.281: %HA_EM-6-LOG: DWNBT : DEBUG(cli_lib) : : OUT : WAKE-ANT-TEST-RTR#
    *Jul 15 15:14:26.281: %HA_EM-6-LOG: DWNBT : DEBUG(cli_lib) : : IN  : WAKE-ANT-TEST-RTR#conf t
    *Jul 15 15:14:26.497: %HA_EM-6-LOG: DWNBT : DEBUG(cli_lib) : : OUT : Command authorization failed.
    *Jul 15 15:14:26.497: %HA_EM-6-LOG: DWNBT : DEBUG(cli_lib) : : OUT :
    *Jul 15 15:14:26.497: %HA_EM-6-LOG: DWNBT : DEBUG(cli_lib) : : OUT : WAKE-ANT-TEST-RTR#
    *Jul 15 15:14:26.497: %HA_EM-6-LOG: DWNBT : DEBUG(cli_lib) : : IN  : WAKE-ANT-TEST-RTR#no kron occurrence MONITOR in 0:03
    *Jul 15 15:14:26.513: %HA_EM-6-LOG: DWNBT : DEBUG(cli_lib) : : OUT :                      ^
    *Jul 15 15:14:26.513: %HA_EM-6-LOG: DWNBT : DEBUG(cli_lib) : : OUT : % Invalid input detected at '^' marker.
    *Jul 15 15:14:26.513: %HA_EM-6-LOG: DWNBT : DEBUG(cli_lib) : : OUT :
    *Jul 15 15:14:26.513: %HA_EM-6-LOG: DWNBT : DEBUG(cli_lib) : : OUT : WAKE-ANT-TEST-RTR#
    Does anyone out there know if its possible for EEM to authenticate against aaa?
    I did try adding a "login" command after
    action 1.0 cli command "enable", but this failed authorisation also.
    Thanks
    Scott

  • Command not running successfully

    I am installing Weblogic and got to the point where I needed to deconfigure my database on a Windows server 2008. I have to run the following command to deconfigure the database - /bin/emca -deconfig dbcontrol db -repos drop
    but anytime I run that command, I get "The system cannot find the path specified" error. I know the path exists. I actually cd into the oracle home location and can see /BIN/ and emca in there but I constantly get the same error. Help is needed.

    these do not work either may be I'm doing something wrong. I open the command line and type 'id' and get "id is not recognized as an internal or external command, operable pro9gram or batch file.
    I also type 'id env | sort" and get a similar error message as above

  • I can not run "hello1.jsp" on windows 2000 server

    I have just installed WebLogic 6.1 on windows 2000 server
              I put this file(hello1.jsp) on
              "c:\bea\wlserver6.0\config\mydomain\applications\DefaultWebApp" .When I
              tried to
              load this jsp file on explorer ,i input "http://localhost:7001/hello1.jsp"
              ,the following error happened
              Compilation of
              'C:\bea\wlserver6.0\config\mydomain\applications\DefaultWebApp\WEB-INF\_tmp_
              war_myserver_myserver_DefaultWebApp\jsp_servlet\_hello1.java' failed:
              C:\bea\wlserver6.0\config\mydomain\applications\DefaultWebApp\WEB-INF\_tmp_w
              ar_myserver_myserver_DefaultWebApp\jsp_servlet\_hello1.java error=2
              Full compiler error(s):
              java.io.IOException: CreateProcess: javac -classpath
              C:\bea\wlserver6.0\config\mydomain\applications\DefaultWebApp;C:\bea\wlserve
              r6.0\config\mydomain\applications\DefaultWebApp\WEB-INF\_tmp_war_myserver_my
              server_DefaultWebApp;C:\bea\jdk131\jre\lib\rt.jar;C:\bea\jdk131\jre\lib\i18n
              .jar;C:\bea\jdk131\jre\lib\sunrsasign.jar;C:\bea\jdk131\jre\classes;.;C:\bea
              \wlserver6.0\lib\weblogic_sp.jar;C:\bea\wlserver6.0\lib\weblogic.jar -d
              C:\bea\wlserver6.0\config\mydomain\applications\DefaultWebApp\WEB-INF\_tmp_w
              ar_myserver_myserver_DefaultWebApp
              C:\bea\wlserver6.0\config\mydomain\applications\DefaultWebApp\WEB-INF\_tmp_w
              ar_myserver_myserver_DefaultWebApp\jsp_servlet\_hello1.java error=2
              at java.lang.Win32Process.create(Native Method)
              at java.lang.Win32Process.<init>(Win32Process.java:66)
              at java.lang.Runtime.execInternal(Native Method)
              at java.lang.Runtime.exec(Runtime.java:551)
              at java.lang.Runtime.exec(Runtime.java:477)
              at java.lang.Runtime.exec(Runtime.java:443)
              at weblogic.utils.Executable.exec(Executable.java:147)
              at weblogic.utils.Executable.exec(Executable.java:111)
              at
              weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(CompilerInvoker.jav
              a:550)
              at
              weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:359)
              at weblogic.servlet.jsp.JspStub.compilePage(JspStub.java:381)
              at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:189)
              at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:154)
              at
              weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:36
              6)
              at
              weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
              :240)
              at
              weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
              :200)
              at
              weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
              ntext.java:2390)
              at
              weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
              :1959)
              at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
              at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
              

    Looks like that weblogic server is unable to create Java process for
              compilation of JSP into (JAVA) class file .......
              It may be due to:
              a. You do not have JDK installed/configured on the machine. [JDK is required
              for JSP pages to be compiled at runtime]
              b. WebLogic server is unable to invoke correct javac.exe [Check JAVA_HOME
              and PATH variable to ensure that they are correct and it is correctly
              specified in the startWebLogic.cmd, startWLS.cmd files]
              Thanks,
              Selva-
              "weblogic.developer.interest.jsp" <[email protected]> wrote in message
              news:[email protected]...
              > I have just installed WebLogic 6.1 on windows 2000 server
              >
              > I put this file(hello1.jsp) on
              > "c:\bea\wlserver6.0\config\mydomain\applications\DefaultWebApp" .When I
              > tried to
              > load this jsp file on explorer ,i input "http://localhost:7001/hello1.jsp"
              > ,the following error happened
              >
              >
              >
              > Compilation of
              >
              'C:\bea\wlserver6.0\config\mydomain\applications\DefaultWebApp\WEB-INF\_tmp_
              > war_myserver_myserver_DefaultWebApp\jsp_servlet\_hello1.java' failed:
              > --------------------------------------------------------------------------
              > ----
              >
              >
              C:\bea\wlserver6.0\config\mydomain\applications\DefaultWebApp\WEB-INF\_tmp_w
              > ar_myserver_myserver_DefaultWebApp\jsp_servlet\_hello1.java error=2
              >
              > --------------------------------------------------------------------------
              > ----
              > Full compiler error(s):
              > java.io.IOException: CreateProcess: javac -classpath
              >
              C:\bea\wlserver6.0\config\mydomain\applications\DefaultWebApp;C:\bea\wlserve
              >
              r6.0\config\mydomain\applications\DefaultWebApp\WEB-INF\_tmp_war_myserver_my
              >
              server_DefaultWebApp;C:\bea\jdk131\jre\lib\rt.jar;C:\bea\jdk131\jre\lib\i18n
              >
              .jar;C:\bea\jdk131\jre\lib\sunrsasign.jar;C:\bea\jdk131\jre\classes;.;C:\bea
              > \wlserver6.0\lib\weblogic_sp.jar;C:\bea\wlserver6.0\lib\weblogic.jar -d
              >
              C:\bea\wlserver6.0\config\mydomain\applications\DefaultWebApp\WEB-INF\_tmp_w
              > ar_myserver_myserver_DefaultWebApp
              >
              C:\bea\wlserver6.0\config\mydomain\applications\DefaultWebApp\WEB-INF\_tmp_w
              > ar_myserver_myserver_DefaultWebApp\jsp_servlet\_hello1.java error=2
              > at java.lang.Win32Process.create(Native Method)
              > at java.lang.Win32Process.<init>(Win32Process.java:66)
              > at java.lang.Runtime.execInternal(Native Method)
              > at java.lang.Runtime.exec(Runtime.java:551)
              > at java.lang.Runtime.exec(Runtime.java:477)
              > at java.lang.Runtime.exec(Runtime.java:443)
              > at weblogic.utils.Executable.exec(Executable.java:147)
              > at weblogic.utils.Executable.exec(Executable.java:111)
              > at
              >
              weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(CompilerInvoker.jav
              > a:550)
              > at
              > weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:359)
              > at weblogic.servlet.jsp.JspStub.compilePage(JspStub.java:381)
              > at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:189)
              > at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:154)
              > at
              >
              weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:36
              > 6)
              > at
              >
              weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
              > :240)
              > at
              >
              weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
              > :200)
              > at
              >
              weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
              > ntext.java:2390)
              > at
              >
              weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
              > :1959)
              > at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
              > at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
              >
              >
              >
              >
              >
              

  • Can not run Oracle JSP's

    I'm getting a "500 Internal Server Error" when trying to run an oracle jsp (which we will be customizing)
    Can anyone offer some pointers as to what classes i may be missing or if I may have missed some env setup in Jdev. Thx.
    Error Details:
    500 Internal Server Error
    OracleJSP:
    JSP Error:
    Request URI:/xxx.jsp
    Exception:
    java.lang.ClassCastException: com.evermind.server.http.HttpApplication
         at com.evermind.server.http.EvermindJSPWriter.<init>(EvermindJSPWriter.java:159)
         at com.evermind.server.http.EvermindPageContext.initialize(EvermindPageContext.java:169)
         at com.evermind.server.http.EvermindJSPFactory.getCachedPageContext(EvermindJSPFactory.java:41)
         at com.evermind.server.http.EvermindJSPFactory.getPageContext(EvermindJSPFactory.java:22)
         at xxx.jspService(xxx.jsp:24)
         [xxx.jsp]
         at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:139)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:349)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:509)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:413)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:778)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:317)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
         at java.lang.Thread.run(Thread.java:534)

    After having applied the latest sdk from sun and made modifications to libraries, i now get a slightly different error:
    Target URL -- http://localhost:8988/oracle/html/xxx.jsp
    04/06/18 17:40:24 Auto-deploying file:/D:/oracle/html/ (New server version detected)...
    04/06/18 17:40:27 java.lang.SecurityException: access denied (javax.management.MBeanTrustPermission register)
    04/06/18 17:40:27      at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.checkMBeanTrustPermission(DefaultMBeanServerInterceptor.java:1727)
    04/06/18 17:40:27      at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerMBean(DefaultMBeanServerInterceptor.java:342)
    04/06/18 17:40:27      at com.sun.jmx.mbeanserver.JmxMBeanServer.registerMBean(JmxMBeanServer.java:504)
    04/06/18 17:40:27      at com.evermind.server.Application.addWebModuleMBean(Application.java:3582)
    04/06/18 17:40:27      at com.evermind.server.Application.access$000(Application.java:65)
    Source D:\\oracle\\classes does not exist.
    04/06/18 17:40:27      at com.evermind.server.Application$WebModuleCollectionModificationListener.notifyAdd(Application.java:3661)
    04/06/18 17:40:27      at oracle.oc4j.admin.management.util.CollectionModificationBase.notifyAdd(CollectionModificationBase.java:87)
    04/06/18 17:40:27      at oracle.oc4j.admin.management.util.NotifyingMap.put(NotifyingMap.java:93)
    Source D:\\oracle\\classes does not exist.
    04/06/18 17:40:27      at com.evermind.server.Application.getHttpApplicationConfig(Application.java:964)
    04/06/18 17:40:27      at com.evermind.server.Application.initHttp(Application.java:2866)
    04/06/18 17:40:27      at com.evermind.server.Application.postInit(Application.java:812)
    04/06/18 17:40:27      at com.evermind.server.Application.setConfig(Application.java:170)
    04/06/18 17:40:27      at com.evermind.server.ApplicationServer.addApplication(ApplicationServer.java:1927)
    04/06/18 17:40:27      at com.evermind.server.ApplicationServer.getApplication(ApplicationServer.java:2536)
    Source D:\\oracle\\classes does not exist.
    04/06/18 17:40:28      at com.evermind.server.XMLApplicationServerConfig.initHttp(XMLApplicationServerConfig.java:1962)
    04/06/18 17:40:28      at com.evermind.server.ApplicationServerLauncher.run(ApplicationServerLauncher.java:97)
    04/06/18 17:40:28      at java.lang.Thread.run(Thread.java:534)
    Source D:\\oracle\\classes does not exist.
    04/06/18 17:40:29 warning: running 1.1 version of SwingUtilities
    04/06/18 17:40:40 warning: running 1.1 version of SystemEventQueueUtilities

  • Unable to open file: "repscheme.sql"  The command failed.

    Hello,
    I'm trying to apply the commands specified in repscheme.sql but am getting the error in the subject line when trying. The replication documentation did not specify the location to save repscheme.sql to, so I suspect I may have it in the wrong place.
    It's currently saved to c:\temp\ - the same location as the masterds & subscriberds.
    Thanks,
    Gary

    I assume that you are trying to run this from inside a ttIsql session? The 'default' location for .sql files, if no path is incldued is your current directory (i.e. the directory you were in when you started ttIsql. So, if you were in C:\Temp when you started ttIsql you could issue the following at the ttIsql command prompt:
    Command&gt; run repscheme.sql;
    or
    Command&gt; run repscheme;
    or
    Command&gt; *@repscheme.sql;*
    or
    Command&gt; *@repscheme;*
    If your current directory is elsewhere then you can give the full path of the file as follows; note that as the '\' character is the 'escape' character you have to escape it.
    Command&gt; run C:\\temp\\repscheme.sql;
    or
    Command&gt; run c:\\temp\\repscheme;
    or
    Command&gt; *@c:\\temp\\repscheme.sql;*
    or
    Command&gt; *@c:\\temp\\repscheme;*
    Is that what you were asking or have I misunderstood the question?
    Chris

  • Sql Exception : Sql command not properly ended

    Hi,
    I have the following piece of code which i am using to search into the database and display the result in my jsp page. But it is throwing this exception. This happens only when i give 2 conditions. If i try to search with only one parameter, it works fine and returns the result. But when i enable two parameters , it throws the exception.
    Below is the code i have written.
    <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
        pageEncoding="ISO-8859-1"%>
    <%@page import="java.sql.*"%>
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <title>Insert title here</title>
    </head>
    <body>
    <%  
            String queryString=null;
            String Part_Number=null;
                String Revision_Id=null;     
                String Part_Desc=null;     
                String Keyword_Name=null;
                String Design_Style=null;     
                String Configuration_Name=null;
                String Charateristic_Name=null;
             String pN=null;
            String rI=null;
            String pD=null;
            String kN=null;
            String dS=null;
            String coN=null;
            String chN=null;
             queryString ="select * from PART";
             Connection con=null;
               Statement pst=null;
               ResultSet rs=null;
               Part_Number =request.getParameter("part_nbr");
              Revision_Id=request.getParameter("rev_id");
               Part_Desc=request.getParameter("part_desc");
               Keyword_Name=request.getParameter("keyword_name");     
               Design_Style=request.getParameter("Design_style");
               Configuration_Name=request.getParameter("configuration");
               Charateristic_Name=request.getParameter("characteristic");
                pN=Part_Number.trim();
                rI=Revision_Id.trim();
                pD=Part_Desc.trim();
                kN=Keyword_Name.trim();
                dS=Design_Style.trim();
                coN=Configuration_Name.trim();
                chN=Charateristic_Name.trim();
              System.out.println("Part Number In success: "+pN);
              System.out.println("Rev Number In serchsuccess: "+rI);
              System.out.println("part desc In seachsuccess: "+pD);
              System.out.println("Keyword In sesuccess: "+kN);
              System.out.println("Design style In sesuccess: "+dS);
              System.out.println("Config In sesuccess: "+coN);
              System.out.println("charac In sesuccess: "+chN);
              System.out.println("queryString in sesuccess: "+queryString);
               if(rI!=null)     
                   queryString = queryString+" where REV_ID= '"+rI+"'";
               if(pD!=null)     
                   queryString = queryString+" where OBJ_DESC= '"+pD+"'";
               System.out.println("queryString in sesuccess: "+queryString);
              try
                   DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
                    System.out.println("driver manager");
                con=DriverManager.getConnection("jdbc:oracle:thin:@172.18.93.53:1521:PDMDumm", "Dumm1", "satyam");
                System.out.println("connection established");
                 pst = con.createStatement();
                rs = pst.executeQuery(queryString);
                System.out.println("Query executed");
              catch(SQLException se)
                System.out.println("database error2");
                se.printStackTrace();
              catch(Exception e)
                   System.out.println("error");
            if(rs!=null)
            %>
          <table>
              <tr>
                <th> PartNumber
                <th> Revision_Id
                <th> Description
                <th> Characteristic
                <th> Configuration
                <th> DesignStyle
                <th> Keyword
                  <th> Planned Eff In Dte
                  <th> Infos
                  <th> Native File
           </table>     
       <tr>         
        <%       
                   while(rs.next())
                      %>
            <td> <%=rs.getString(1) %>          
            <td> <%=rs.getString(2) %>          
            <td> <%=rs.getString(3) %>          
            <td> <%=rs.getString(4) %>
            <td> <%=rs.getString(5) %>
            <td> <%=rs.getString(6) %>
            <td> <%=rs.getString(7) %>     
            <td> <%=rs.getString(8) %>     
            <td> <%=rs.getString(9) %>     
            <td> <%=rs.getString(10) %>     
          <%             
            %>
    </body>
    </html>And this is the exception i get.
    Part Number In success:
    Rev Number In serchsuccess:
    part desc In seachsuccess: cat
    Keyword In sesuccess: ----
    Design style In sesuccess: ----
    Config In sesuccess: ----
    charac In sesuccess: ----
    queryString in sesuccess: select * from PART
    queryString in sesuccess: select * from PART where REV_ID= '' where OBJ_DESC= 'cat'
    driver manager
    connection established
    database error2
    java.sql.SQLException: ORA-00933: SQL command not properly ended
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java)
         at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java)
         at oracle.jdbc.ttc7.Oall7.receive(Oall7.java)
         at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java)
         at oracle.jdbc.ttc7.TTC7Protocol.parseExecuteDescribe(TTC7Protocol.java)
         at oracle.jdbc.driver.OracleStatement.doExecuteQuery(OracleStatement.java)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java)
         at oracle.jdbc.driver.OracleStatement.executeQuery(OracleStatement.java)
         at org.apache.jsp.searchsuccess_jsp._jspService(searchsuccess_jsp.java:129)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
         at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
         at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
         at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
         at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
         at SearchKdcc.doPost(SearchKdcc.java:60)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
         at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
         at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
         at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
         at java.lang.Thread.run(Thread.java:619)

    Hi drvijayy2k2 ,
    Thanks for replying.
    I used your code in my application and this is the problem i am facing now. The query is getting executed but its not taking the value from the database because of the Null Rev Id that is getting inputted into queryString. I have given only part_desc as the search criteria. If i just search using part description , commenting the rev_id part , i am able to retrieve the result from the database.
    I have to code in a way using which i can search using either rev_id or part_desc , or using both at the same time.
    Part Number In success:
    Rev Number In serchsuccess:
    part desc In seachsuccess: cat
    Keyword In sesuccess: ----
    Design style In sesuccess: ----
    Config In sesuccess: ----
    charac In sesuccess: ----
    queryString in sesuccess: select * from PART
    queryString in sesuccess: select * from PART where REV_ID= '' and OBJ_DESC= 'cat'
    driver manager
    connection established
    Query executed

  • Add does not run with sql server 2008

    Hi all,
    My add on in the development environment does not run with SQL SERVER 2008. It ran well with SQL Server 2005 and sap b1 2207 B.
    On executing the project file system throws an error "YOU ARE NOT CONNECTED TO THE COMPANY"
    we are trying this scenario on a test machine where SAP B1 2007B with temporary license for one month and SQL server 2008
    is installed.
    Help needed.
    Thanking you
    Pradnya

    Hi Use this
    Dim i as integer
    i=oCompany.Connect()
    if i<> 0 Then
    msgbox(ocompany.GetLastErrorDescription ())
    end if
    the you will get the error description also use try catch wherever necessary
    Alternatively you can use
    Dim SboGuiApi As SAPbouiCOM.SboGuiApi
    Dim sConnectionString As String
    Set SboGuiApi = New SAPbouiCOM.SboGuiApi
    sConnectionString = Command
    SboGuiApi.Connect sConnectionString
    Set SBO_Application = SboGuiApi.GetApplication()
    Set ocompany = New SAPbobsCOM.Company 'initialate DI company object
      ocompany = SBO_Application.Company.GetDICompany
    HTH,
    Atul

  • Not able to run a JSP file in Tomcat 5.5

    Hello friends i am new to JSP programming.
    I recently designed a application to enter values of certain field in a database (Using SQL Server Database)
    i used a file name Register.jsp, so when the action is performed by clicking submit button it use to call another file named Register_DB.jsp in which database insertion is performed this 2nd file includes another .java file which is actually creating the JDBC ODBC connection drivers
    but whenever i use to run the programme using tomcat-5.5 i use to get certain error as below ------------------->
    HTTP Status 500 -
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: Unable to load class for JSP
         org.apache.jasper.JspCompilationContext.load(JspCompilationContext.java:591)
         org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:137)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:305)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    root cause
    java.lang.ClassNotFoundException: org.apache.jsp.Registration_jsp
         java.net.URLClassLoader$1.run(Unknown Source)
         java.security.AccessController.doPrivileged(Native Method)
         java.net.URLClassLoader.findClass(Unknown Source)
         org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:158)
         org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:71)
         org.apache.jasper.JspCompilationContext.load(JspCompilationContext.java:589)
         org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:137)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:305)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    note The full stack trace of the root cause is available in the Apache Tomcat/5.5.9 logs.
    Apache Tomcat/5.5.9***********************************************************************************************************
    So can anybody tell me what should i do to resolve this error
    here is the code what i have written
    File Name Registration.jsp
    <!--     *****     File Name Test.jsp     *****     -->
    <%@ import="Login.connectionBean" %>
    <%@ language="java" %>
    <%@ import="java.io.*" %>
    <%@ import="java.sql.*" %>
    <%@ import="javax.sql.*" %>
    <jsp:useBean id="sq" scope="page" class="Login.connectionBean" type="connectionBean"/>
         <jsp:setProperty name="sq" property="*"/>
    <html>
    <!-- DW6 -->
         <head>
              <!-- Copyright 2005 Macromedia, Inc. All rights reserved. -->
              <title>Registration Form</title>
         </head>
         <body>
              <form name="Test" action="Registration_DB.jsp" method="get">
                   <table width="100%" border="0">
                     <tr>
                        <td colspan="5"></td>
                     </tr>
                     <tr>
                        <td width="10%" height="250"></td>
                        <td width="90%" colspan="4"><div align="center">
                          <table width="437" border="1">
                               <tr>
                                  <td><div align="center">User ID </div></td>
                                  <td> </td>
                                  <td><div align="center">
                                         <input name="User_ID" type="text" size="25" maxlength="25" />
                                  </div></td>
                               </tr>
                               <tr>
                                  <td><div align="center"></div></td>
                                  <td> </td>
                                  <td><div align="center"></div></td>
                               </tr>
                               <tr>
                                  <td width="149"><div align="center">User name </div></td>
                                  <td width="27"> </td>
                                  <td width="239"><div align="center">
                                       <input name="User_Name" type="text" size="25" maxlength="25" />
                                  </div></td>
                               </tr>
                               <tr>
                                  <td><div align="center"></div></td>
                                  <td><div align="center"></div></td>
                                  <td><div align="center"></div></td>
                               </tr>
                               <tr>
                                  <td><div align="center">Password</div></td>
                                  <td> </td>
                                  <td><div align="center">
                                        <input name="Password" type="text" size="25" maxlength="25" />
                                       </div>
                                  </td>
                               </tr>
                               <tr>
                                  <td><div align="center"></div></td>
                                  <td> </td>
                                  <td><div align="center"></div></td>
                               </tr>
                               <tr>
                                  <td><div align="center">
                                    <input name="Button_Reset" type="reset" value="Reset Fields" />
                                  </div></td>
                                  <td> </td>
                                  <td><div align="center">
                                       <input name="Button_Submit" type="reset" value="Submit Details" />
                                                   <%
              String User_Id=request.getParameter("User_Id")
              String User_Name="";
              String Password="";
              %>
              <%
              try
              sq.connect();
              if(user_Id!==null && User_Id!="")
              ResultSet rs2.sq.execQuery("select User_Name FROM User_Login where User_Id='"+User_Id+"'");
              catch(Exception e)
                   out.println("Exception Caught" +e);
                   e.printStackTrace();
              %>
                                       </div></td>
                               </tr>
                               </table>
                        </div></td>
                     </tr>
                   </table>
              </form>
         </body>
    </html>***********************************************************************************************************
    File Name Registration_DB.jsp
    <!--     *****     File Name Test_DB.jsp     *****     -->
    <%@ language="java" %>
    <%@ import="Login.connectionBean" %>
    <%@ import="java.sql.*" %>
    <%@ import="javax.sql.*" %>
    <%@ import="java.io.*" %>
    <jsp:useBean id="sq" scope="page" class="Login.connectionBean" type="connectionBean"/>
         <jsp:setProperty name="sq" property="*"/>
    <html>
         <head>
              <title>Untitled Document</title>
         </head>
    <body>     
              <%
              String Button_Submit = request.getParameter("Button_Submit");
              String User_Id = request.getParameter("User_Id");
              String User_Name = request.getParameter("User_Name");
              String Password = request.getParameter("Password");
              %>
              <%!
              ResultSet rs1=null;
              ResultSet rs2=null;
              %>
              <%
              try
                   sq.connect();
                   if(Button_Submit!=null && Button_Submit!="")
                        String qry="INSERT INTO User_Login (User_Id, User_Name, Password) VALUES('"+User_Id+"','"+User_Name+"','"+Password+"')";
                        int i=sq.executeUpdae(qry);
                        if (i>0)
                             response.sendRedirect("Registration.jsp");
              catch(Exception e)
                   out.println("Exception Caught" +e);
                   e.printStackTrace();
    %>
         </body>
    </html>***********************************************************************************************************
    File name connectionBean.java
    package Login;
    import java.sql.*;
    public class connectionBean
         private Connection con;
         public connectionBean()
              super();
         public boolean connect() throws ClassNotFoundException, SQLException
               Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
               con=DriverManager.getConnection("jdbc:odbc:JAVA"," "," ");
               return true;
         public void close() throws SQLException
              con.close();
         public ResultSet execQuery(String qry) throws SQLException
              Statement stmt=con.createStatement();
              ResultSet rs=stmt.executeQuery(qry);
              return(rs==null)?null:rs;
         public int execUpdae(String qry) throws SQLException
              Statement stmt=con.createStatement();
              int i=stmt.executeUpdate(qry);
              return(i==0)?0:i;
    }

    hi
    here the problem is tat the server culdnt find the class for u page,
    check u hav deployed it properly or not,
    check the tomcat installation and is it working fine,
    regards
    venkat

  • CallableStatement error: SQL command not properly ended

    I am getting a strange error using CallableStatement and Oracle 7.3.4 with PL/SQL 2.3 using Classes12 JDBC driverset from Oracle. Here is the code we are using, which is almost verbatim from several Java/Oracle CallableStatement examples for Oracle 8. I am wondering what I am missing to make this work on Oracle 7 and am unable to find a reference online:
    //String query = "begin PAC.PAC_WIP_WIPHEADER_PKG.GetWipNumPartList(?,?); end;";
    String query = "{ call PAC.PAC_WIP_WIPHEADER_PKG.GETWIPNUMPARTLIST(?,?) } ";
    CallableStatement csth = Connection.prepareCall(query);
    csth.setString(1, wipNumber);
    csth.setInt(2, PacCarousel.getCarouselNumber());
    csth.execute();
    using either the Begin or the call query (Begin commented in above code snip) is returning the following error from the JDBC driver:
    java.sql.SQLException: ORA-00933: SQL command not properly ended
    This identical 'begin' query works fine in TOAD or the PL/SQL console for Oracle, but just won't work using this set of JDBC drivers.
    Has anyone run into this problem before or perhaps have some suggestions?
    Thanks in advance

    I am getting a strange error using CallableStatement and Oracle 7.3.4 with PL/SQL 2.3 using Classes12 JDBC driverset from Oracle. Here is the code we are using, which is almost verbatim from several Java/Oracle CallableStatement examples for Oracle 8. I am wondering what I am missing to make this work on Oracle 7 and am unable to find a reference online:
    //String query = "begin PAC.PAC_WIP_WIPHEADER_PKG.GetWipNumPartList(?,?); end;";
    String query = "{ call PAC.PAC_WIP_WIPHEADER_PKG.GETWIPNUMPARTLIST(?,?) } ";
    CallableStatement csth = Connection.prepareCall(query);
    csth.setString(1, wipNumber);
    csth.setInt(2, PacCarousel.getCarouselNumber());
    csth.execute();
    using either the Begin or the call query (Begin commented in above code snip) is returning the following error from the JDBC driver:
    java.sql.SQLException: ORA-00933: SQL command not properly ended
    This identical 'begin' query works fine in TOAD or the PL/SQL console for Oracle, but just won't work using this set of JDBC drivers.
    Has anyone run into this problem before or perhaps have some suggestions?
    Thanks in advance

  • Error in SQl Query - SQl Command not properly ended

    Hi All
    I have this SQL query that returns the following error when I run it in TOAD:
    SELECT
    VC.CAMPAIGN_NUMBER,VC.CAMPAIGN_TITLE,VC.CAMPAIGN_DESC,
    VCV.START_DATE, VCV.END_DATE,VC.CAMPAIGN_TYPE,VC.APPLICABILITY,
    VC.CAMPAIGN_PRIORITY
         FROM
         VM_CAMPAIGN_VIN VCV ,VM_CAMPAIGN VC
         WHERE
              VCV.VIN = 'US'
              AND
    VCV.CAMPAIGN_NUMBER = VC.CAMPAIGN_NUMBER AND VC.COUNTRY_CODE = 'E'
              AND VC.LANGUAGE_CODE = 'L' AND VC.CAMPAIGN_TYPE = null
    AND SYSDATE BETWEEN VCV.START_DATE AND VCV.END_DATE
    AND SYSDATE BETWEEN VC.START_DATE AND VC.END_DATE)
    A ORDER BY A.CAMPAIGN_PRIORITY DESC, A.END_DATE
    The error is:
    SQl Command not properly ended
    Any help is highly appreciated. Thanks

    Thanks a lot to everyone. It helped me run the query without any problem. Now I have another issue. This may not be the right place to post this question, I think.My apologies for that. The problem is, Weblogic posts an error as follows:
    java.sql.SQLException: ORA-00923: FROM keyword not found where expected
    I am wondering if this is an Java related error or an SQL related error.
    Well, I am using the SQL Statement which you helped debug, and it is inside something called "XXSQLConstants.java consisting of the following SQL statement:
    public static final String XX_ALL_CAMPS_SELECT = "SELECT * FROM" +
         "(SELECT vc.campaign_number, vc.campaign_title, vc.campaign_desc, vc.start_date," +
         "vc.end_date, vc.campaign_type, vc.applicability, vc.campaign_priority" +
    "FROM vm_campaign vc" +
    "WHERE vc.applicability = 'Y'" +
    "AND vc.country_code = ? " +
    "AND vc.language_code = ? " +
    "AND vc.campaign_type = ? "+
    "AND SYSDATE BETWEEN vc.start_date AND vc.end_date" +
    "AND NOT EXISTS (" +
    "SELECT 'X'" +
    "FROM vm_campaign_vin vcv" +
    "WHERE (vcv.vin = ? " +
    "AND vcv.campaign_number = vc.campaign_number" +
    "))" +
         "UNION" +
         "SELECT vc.campaign_number, vc.campaign_title, vc.campaign_desc," +
         "vcv.start_date, vcv.end_date, vc.campaign_type, vc.applicability," +
    "vc.campaign_priority" +
    "FROM vm_campaign_vin vcv, vm_campaign vc" +
    "WHERE vcv.vin = ? " +
    "AND vcv.campaign_number = vc.campaign_number" +
    "AND vc.country_code = ? " +
    "AND vc.language_code = ? " +
    "AND vc.campaign_type IS NULL" +
    "AND SYSDATE BETWEEN vcv.start_date AND vcv.end_date" +
    "AND SYSDATE BETWEEN vc.start_date AND vc.end_date)";
    The SQl runs fine when tested (well, it does not return any data for the rows returned, but there are no errors), but in my application server I get the following error (pointing out the same SQL code pasted above:
    java.sql.SQLException: ORA-00923: FROM keyword not found where expected
    Any suggestions? Thanks in advance. I appreciate all replies

Maybe you are looking for

  • Photos in iPhoto 11 albums disappeared...

    Hey all! I recently had pictures from an old drive recovered. I was given the iphoto library folder but I had built a new library with new pictures since. I used iPhoto Library Manager to merge both libraries and it worked fine until recently, all th

  • Lost messages on iPad 2 when creating new Apple ID on new iPhone and changed it on the iPad

    We have got a new iPhone5, and when setting it up the first time, a new Apple ID was typed in, unaware the problemes it would cause. We also changed the Apple ID on our iPad2, and lost all historic messages at iMessages. Is it possible to have it res

  • Copying in color blocked(HP LaserJet CM1415fn)

    Hi! I have HP LaserJet CM1415fn. When i try to copy, it gives me an error "copying in color is blocked"(translated from Russian). How i can resolve this issue? I'm update firware, but this not helps This question was solved. View Solution.

  • IWeb and svBuilder and  Simpleviewer 2

    I just bought SV Pro and I generated a gallery in Photoshop using the Simpleviewer script. I used svBuillder to customize it. But I have some problems. No matter what I do the images and thumbnails show up off center to the right. Also the images are

  • Datawarehouse Admin Console : Reading column failed

    While importing column from Database (MSSQL) into Datawarehouse Admin Console i am getting below error. Reading Columns failed com.siebel.analytics.etl.schema.reader.SchemaReaderException: Error while initializing the list of tables. Help me to resol