Problems executing vo query from am class

Hi Gurus,
I have a big one right now, when I'm trying to execute VO query throws me an exception "JBO-27122" I wonder if you could tell me what I'm doing wrong, I hope you can help me, I'll be pending to your answer... have a nice one.
let me share you my code:
this is my AM method:
public ArrayList getPlazaSinAlta(RepIndicatorsBean bn) {
ArrayList list = null;
PromedioDiasBean bean = null;
PlazaSinAltaVOImpl vo = null;
try{
vo = (PlazaSinAltaVOImpl)this.am.findViewObject("PlazaSinAltaVO");
vo.clearCache();
vo.setRangeSize(-1);
vo.setWhereClauseParam(0,"'" + bn.getIdPlaza() + "'");
vo.setWhereClauseParam(1,"'" + bn.getFechaSinIni() + "'");
vo.setWhereClauseParam(2,"'" + bn.getFechaSinFin() + "'");
vo.setWhereClauseParam(3,"'" + bn.getFechaAltaIni() + "'");
vo.setWhereClauseParam(4,"'" + bn.getFechaAltaFin() + "'");
System.out.println(vo.getQuery());
vo.executeQuery();
Utils.setVOSize(vo);
Row[] row = vo.getAllRowsInRange();
list = new ArrayList();
for(int i = 0; i < row.length; i++){
PlazaSinAltaVORowImpl vor = (PlazaSinAltaVORowImpl)row;
bean = new PromedioDiasBean(vor);
list.add(bean);
}catch(Exception e){
Utils.sendError(e);
}finally{
if(vo != null){
vo.closeRowSet();
return list;
and here's my VO's query:
SELECT se.IDSINIESTRO,
se.IDSINIESTRO_ORIG,
se.ID_ETAPA_SEGUIMIENTO,
t.IDTIENDA,
t.TIENDA,
t.FORMATOTIENDA AS COMPANIA,
p.IDPLAZA,
p.NOMBREPLAZA,
si.FECHACREACION,
si.FECHASINIESTRO,
(SELECT round(SUM(d.DIAS_TRANSCURRIDOS)/COUNT(*))
FROM xxrlab.xxrlab_sin_siniestro_comp d
INNER JOIN xxrlab.siniestro s
ON (s.IDSINIESTRO = d.IDSINIESTRO)
INNER JOIN xxrlab.xxrlab_seguimiento_siniestro ss
ON (ss.IDSINIESTRO_ORIG = s.IDSINIESTRO)
INNER JOIN xxrlab.plaza p
ON (p.IDPLAZA = s.IDPLAZA)
INNER JOIN xxrlab.tienda t
ON (t.IDTIENDA = s.IDTIENDA)
WHERE p.IDPLAZA = :1
AND s.FECHASINIESTRO BETWEEN :2 AND :3
AND d.CREATION_DATE BETWEEN :4 AND :5 ) AS PATRIMONIAL,
(SELECT round(SUM(d.DIAS_TRANSCURRIDOS)/COUNT(*))
FROM xxrlab.xxrlab_seguimiento_denuncia d
INNER JOIN xxrlab.xxrlab_seguimiento_siniestro ss
ON (ss.IDSINIESTRO = d.IDSINIESTRO)
INNER JOIN xxrlab.siniestro s
ON (s.IDSINIESTRO = ss.IDSINIESTRO_ORIG)
INNER JOIN xxrlab.plaza p
ON (p.IDPLAZA = s.IDPLAZA)
INNER JOIN xxrlab.tienda t
ON (t.IDTIENDA = s.IDTIENDA)
WHERE p.IDPLAZA = :1
AND s.FECHASINIESTRO BETWEEN :2 AND :3
AND d.CREATION_DATE BETWEEN :4 AND :5 ) AS DESPACHO_DENUNCIA,
(SELECT round(SUM(d.DIAS_TRANSCURRIDOS)/COUNT(*))
FROM xxrlab.xxrlab_seguimiento_ctrl_tienda d
INNER JOIN xxrlab.xxrlab_seguimiento_siniestro ss
ON (ss.IDSINIESTRO = d.IDSINIESTRO)
INNER JOIN xxrlab.siniestro s
ON (s.IDSINIESTRO = ss.IDSINIESTRO_ORIG)
INNER JOIN xxrlab.plaza p
ON (p.IDPLAZA = s.IDPLAZA)
INNER JOIN xxrlab.tienda t
ON (t.IDTIENDA = s.IDTIENDA)
WHERE p.IDPLAZA = :1
AND s.FECHASINIESTRO BETWEEN :2 AND :3
AND d.CREATION_DATE BETWEEN :4 AND :5 ) AS CONTROL_INGRESOS,
(SELECT round(SUM(d.DIAS_TRANSCURRIDOS)/COUNT(*))
FROM xxrlab.xxrlab_seguimiento_admtvo d
INNER JOIN xxrlab.xxrlab_seguimiento_siniestro ss
ON (ss.IDSINIESTRO = d.IDSINIESTRO)
INNER JOIN xxrlab.siniestro s
ON (s.IDSINIESTRO = ss.IDSINIESTRO_ORIG)
INNER JOIN xxrlab.plaza p
ON (p.IDPLAZA = s.IDPLAZA)
INNER JOIN xxrlab.tienda t
ON (t.IDTIENDA = s.IDTIENDA)
WHERE p.IDPLAZA = :1
AND s.FECHASINIESTRO BETWEEN :2 AND :3
AND d.CREATION_DATE BETWEEN :4 AND :5 ) AS ADMINISTRATIVO,
(SELECT round(SUM(d.DIAS_TRANSCURRIDOS)/COUNT(*))
FROM xxrlab.xxrlab_seguimiento_tesoreria d
INNER JOIN xxrlab.xxrlab_seguimiento_siniestro ss
ON (ss.IDSINIESTRO = d.IDSINIESTRO)
INNER JOIN xxrlab.siniestro s
ON (s.IDSINIESTRO = ss.IDSINIESTRO_ORIG)
INNER JOIN xxrlab.plaza p
ON (p.IDPLAZA = s.IDPLAZA)
INNER JOIN xxrlab.tienda t
ON (t.IDTIENDA = s.IDTIENDA)
WHERE p.IDPLAZA = :1
AND s.FECHASINIESTRO BETWEEN :2 AND :3
AND d.CREATION_DATE BETWEEN :4 AND :5 ) AS TESORERIA,
(SELECT round(SUM(d.DIAS_TRANSCURRIDOS)/COUNT(*))
FROM xxrlab.xxrlab_seguimiento_despacho d
INNER JOIN xxrlab.xxrlab_seguimiento_siniestro ss
ON (ss.IDSINIESTRO = d.IDSINIESTRO)
INNER JOIN xxrlab.siniestro s
ON (s.IDSINIESTRO = ss.IDSINIESTRO_ORIG)
INNER JOIN xxrlab.plaza p
ON (p.IDPLAZA = s.IDPLAZA)
INNER JOIN xxrlab.tienda t
ON (t.IDTIENDA = s.IDTIENDA)
WHERE p.IDPLAZA = :1
AND s.FECHASINIESTRO BETWEEN :2 AND :3
AND d.CREATION_DATE BETWEEN :4 AND :5 ) AS DESPACHO_TESORERIA
FROM xxrlab.siniestro si
INNER JOIN xxrlab.plaza p
ON (p.IDPLAZA = si.IDPLAZA)
INNER JOIN xxrlab.tienda t
ON (t.IDTIENDA = si.IDTIENDA)
INNER JOIN xxrlab.xxrlab_seguimiento_siniestro se
ON (se.IDSINIESTRO_ORIG = si.IDSINIESTRO)
Best Regards,
mentor

Did you check that the VO is set to Oracle Positional?
And: You cannot use the same bind variable multiple times in the query. Older Oracle JDBC drivers allowed you to do that.
But since the ... 10.2 or something drivers ... this is no longer possible.
So, where you previously could do a:
"WHERE STAFF_ID = :1 AND DEPARTMENT = :2 AND MANAGER_ID = :1"
with:
setWhereClauseParam( 0, id );
setWhereClauseParam( 1, dept );
you now need to:
WHERE STAFF_ID = :1 AND DEPARTMENT = :2 AND MANAGER_ID = :3
with a separate:
setWhereClauseParam( 2, id );
Alternatively, you could use named where clause params. There you can repeat the variable in the query.
Sascha

Similar Messages

  • 0ADHOC error while executing the query from Report Designer

    Hi All,
    When I am executing The Query from Report Designer,  am getting the below error.
    Please help me in this regard.
    The initial exception that caused the request to fail was:
    The Web template "0ADHOC" does not exist in the master system
    com.sap.ip.bi.base.exception.BIBaseRuntimeException: The Web template "0ADHOC" does not exist in the master system
    at com.sap.ip.bi.webapplications.runtime.service.template.impl.TemplateService.getTemplateContent(TemplateService.java:57)
    at com.sap.ip.bi.webapplications.runtime.jsp.portal.service.template.PortalTemplateAccessService.getTemplateContent(PortalTemplateAccessService.java:82)
    at com.sap.ip.bi.webapplications.runtime.preprocessor.Preprocessor.parseTemplate(Preprocessor.java:163)
    at com.sap.ip.bi.webapplications.runtime.xml.XmlTemplateAssembler.doInit(XmlTemplateAssembler.java:79)
    at com.sap.ip.bi.webapplications.runtime.template.TemplateAssembler.init(TemplateAssembler.java:133)
    Thanks,
    KVR

    Hi,
    The web template 0ADHOC is usually the standard web template for 3.x queries. The Report Designer executes the reports in java web, thus tries to find the template 0ADHOC in the 7.0 templates and does not find it. Check whether you have maintained the standard web template 0ADHOC for 7.0 reports also:
    Transaktion SPRO -> SAP Reference Image -> SAP NetWeaver -> Business Intelligence -> Settings for Reporting and Analysis -> Bex Web -> Set Standard Web Templates
    Best regards,
    Janine

  • ORA-27092 Error while executing any query from client

    Hello
    I am getting following error while executing any query from client remotly.
    IAMDBA@TEST_OAT.ABCD > select userid from dual;
    select userid from dual
    ERROR at line 1:
    ORA-00604: error occurred at recursive SQL level 1
    ORA-01116: error in opening database file 1
    ORA-01110: data file 1: '/u01/prod/system/system01.dbf'
    ORA-27092: size of file exceeds file size limit of the process
    Additional information: 131071
    Additional information: 286209
    But while local connection,its working.

    hi,
    ulimit command- Limit user resources
    su - oracle
    ulimit -n (this command will show you the current value for ulimit the default value is 1024)
    to increase its value:---
    ulimit -n <some value> ( this command will change value for current session only)
    example
    ulimit -n 101062
    once done check the value as:--
    ulimit -n( for verification)
    search in google for more explanation or revert back to me for any suggestions.... :)
    Edited by: varun4dba on Jan 31, 2011 4:09 PM

  • How can I execute a query from a BSP application?

    How can I execute a query from a BSP application?
    I´m trying to execute a Query from intranet. I´ve been looking for examples, but the templates I´ve found doesn´t help me.
    does anybody has an example?
    Thanks.

    Hi
    Have you designed the BSP application ?
    design it first with one page
    page will have layout and Event handlers
    Design the layout with the fields
    in the event handler there are events
    in the event On Initiailization or ON inputprocessing write the select query similar to what we write in routine ABAp and fetch the data into ITAB and that has to be passed to the Layout
    see the doc
    BSP
    To learn how to create Web applications with Business Server Pages, you can work through the simple tutorials that build on each other. You should be able to run through all of the steps described here in your own system.
    If you want to develop Web applications with BSPs, your system must meet the following requirements: Prerequisites for Creating Web Applications.
    The following tutorials are available:
    · First Tutorial: First Steps with Business Server Pages…
    · Second tutorial: A Small BSP Application and A Small BSP Application with HTMLB
    · Third tutorial: Our First Online Bookshop
    · Fourth tutorial: Further Developing the Bookshop
    · A small Tutorial is also available for your first steps with the Model View Controller design pattern.
    · For a more complex MVC tutorial based on the third tutorial, see: Our Little Online Bookshop Using MVC and HTMLB
    When creating BSP applications, note the browser dependencies described in Note 598860.
    steps:
    1) start the transaction RZ10.
    2) now u u have to select Profile name, so select the INSTANCE Profile from the list of options given with the Profile parameter list.U may find multiple instance profile in the list, so select the profile in which ur server name is given.
    3) u will also find three options in the same window.
    Administrator data, Basic Maintenance, and Extended Maintenance. So select the last one from that.
    4) Now click on change button.
    5) here u will find parameter icm/host_name_full, so now set it as FQDN.
    6) Now copy ur settings with new version number.
    7) Activate that version.
    8) And now please restart ur WAS.
    So this will set ur FQDN, and also don't forget to login using Admin User.
    Now u also check for following service are active in your ICF setting or not,( just start transaction code SICF)
    /default_host/sap/bc/bsp/sap
    /default_host/sap/bc/bsp/sap/system
    /default_host/sap/bc/bsp/sap/public/bc
    /def ault_host/sap/public/bc
    /default_host/sap/public/bc/ur
    /default_host/sap/public/bsp/sap/public
    /default_host/sap/public/bsp/sap/public/bc
    /defaul t_host/sap/public/bsp/sap/system
    /default_host/sap/public/bsp/sap/htmlb
    if not then activate all.
    check this link
    Read this weblog...
    /people/brian.mckellar/blog/2003/09/25/bsp-in-depth-fully-qualified-domain-names
    http://www.thespot4sap.com/articles/SAP_WAS_Creating_BSP_Apps.asp
    it consists of screen shots also
    Check it.
    http://help.sap.com/saphelp_nw04/helpdata/en/c8/101c3a1cf1c54be10000000a114084/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/e9/bb153aab4a0c0ee10000000a114084/frameset.htm
    Regards
    Anji

  • How to execute the query from different blocks in Forms

    Hi,
    Curently I have a case where I need to execute the query from some other block. I used
    l_curr_item VARCHAR2(62) := :SYSTEM.CURSOR_ITEM;
    Go_Block ('BLOCK2');
    Execute_Query;
    Go_Item(l_curr_item);
    This works fine , but as I am using Go_Block it does some other activities related to that block, which I dont want them to get executed.
    So can any one please suggest me how I can call the query alone without using the Go_Block .
    Thank you.

    you can set global variable and filter for this variable in the triggers of blocks the actions then you avoid the code of trigger and you can use go_block

  • Execute a Query from a report sending it parameters and capture the result

    Hello everybody,
    Greetings from Peru, I want your help, Do you know how to execute a query from a report sending parameteres and capture the result in a internal table?
    The attached imaged has in red square the parameteres I want to send from a report.
    The idea is to have a JOB that executes everyday and parameters like DATE PERIOD will change automatically.
    Thanks for your time.

    Hi Enrique,
    You can call a query from a report by using submit statement.
    Every query has a corresponding program associated with it.
    Execute the query from SQ01. On te selection screen of query, goto SYSTEM  from menu and then click on STATUS, you will get program name (In this case aqzzzent_struct=zmm_ent_struc1). Use this program to call the query from your custom program.
    Also populate the rspar int table as per the selection criteria you want to pass to query.
       DATA: rspar     TYPE TABLE OF rsparams,
        wa_rspar  LIKE LINE OF rspar.
          wa_rspar-selname = 'SP$00001'.
          wa_rspar-kind = 'S'.
          wa_rspar-sign = 'I'.
          wa_rspar-option = 'BT'.
          wa_rspar-low  = s_cmp_cd-low.
          wa_rspar-high = s_cmp_cd-high.
          APPEND wa_rspar TO rspar.
       SUBMIT aqzzzent_struct=zmm_ent_struc1 WITH SELECTION-TABLE rspar AND RETURN.
    Thanks,
    Sachin

  • Problem executing .bat file from within Java class

    I'm stumped: I have no problem executing a .bat file that sets classpaths and executes a Java jar, but when I try to execute other executables first and then the .jar, my application hangs and since the DOS box doesn't come up over my GUI, I can't see what's going on.
    This works:
    public void execute() throws Exception {
    String s = "c:\\cs47auxs\\omnijar\\omni.bat";
    Process p = Runtime.getRuntime().exec("\"" + s + "\"");
    p.waitFor();
    JOptionPane.showMessageDialog(frame,
    "The Database Has Been Successfully Reloaded.",
    "Information Message",
    JOptionPane.INFORMATION_MESSAGE);
    Here's the .bat 'omni.bat'
    set JAVA_HOME=c:\j2sdk1.4.2_04\bin
    %JAVA_HOME%\java -jar C:\CS47AUXS\OMNILOADJAR\OmniLoad.jar
    This doesn't work:
    public void execute() throws Exception {
    String s = "c:\\cs47auxs\\omnijar\\jobomni.bat";
    Process p = Runtime.getRuntime().exec("\"" + s + "\"");
    p.waitFor();
    JOptionPane.showMessageDialog(frame,
    "The Database Has Been Successfully Reloaded.",
    "Information Message",
    JOptionPane.INFORMATION_MESSAGE);
    Here's the .bat file 'jobomni.bat'
    SET NETX_HOME=C:\CS47AUXS
    SET COBOL_HOME=C:\CS47AUXS\OFFLINE
    CD %NETX_HOME%
    CALL SET-NETX.CMD
    CD %COBOL_HOME%
    SSBPPC10 JOBOMNI X
    SET JH=C:\J2SDK1.4.2_04\BIN
    SET OMNI_HOME=C:\CS47AUXS\OMNILOADJAR
    CD %OMNI_HOME%
    %JH%\java -jar omniload.jar
    Can anyone shed some light here? Even when I execute the application from the command line the new DOS box doesn't become visible nor can I see any errors. If I could just get that visibility, I could probably figure out what is going wrong.

    Same problem with me as well.... Badly looking for a solution...
    I predict the following:
    - If your batch file has pretty less number of dos/shell commands then it gets executed fine with exec() and proc.waitFor();
    - If you increase the number of dos/shell commands in the bat file then try executing it then it definately hangs at proc.waitFor();
    Even "cmd.exe /C C:\\test.bat" hangs... if the commands are more...
    Is this some sort of bug? or am i doing anything wrong? I tried searching for solution on the net and search forums... but couldnt find a solution for the same.. not sure where i missed, what i missed...
    Incase some one finds a solution.. do post it here...
    Message was edited by:
    amadas

  • Time out error while executing BW query from SRST

    Hello Experts,
    While running a query from SRST t-code im getting time out dump.
    Is there any possibility to run the query in background to avoid dumps, apart from taking the report and executing from SE 38
    Regards,
    Arjun Reddy.

    Hi,
    Your target may have huge and report may be trying to extract whole data.
    please try to your report with some selections/filters and check it.
    it may work.
    Thanks

  • Execute Bex query from ABAP

    Hi,
    I am using the method mentioned by Durairaj (@  /people/durairaj.athavanraja/blog/2005/04/03/execute-bw-query-using-abap-part-i )
    to execute queries from ABAP.
    When I try to execute a query with characteristics in rows and if the characteristics name is large then i get a dump:
    'Field symbol has not yet been assigned'
    @ <l_field> = wa_set-chavl .
    I tried the same for another cahracteristic of lesser length and it works fine.
    Initially the chara name was like:
    <8 letter dim name>__<7 letter chara name >
    when i used a dim name with lesser no of letters:
    <7 letter dim name>__<6 letter chara name >
    It works fine.
    is there any restricition on the lenght of characteristics ?
    Thanks,
    Message was edited by:
            Rithesh Vijayakrishnan

    Matthias,
    I have tried to use this method before, but with the follow URL:
    /SAP/BC/WebDynpro/SAP/YWEBTEMPLATE_TEST/bi_template_page.htm?&varn1=0pcalmon&varv1=200901&varn2=0p_cocd&varv2=b047&url=/irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fcom.sap.pct!2fplatform_add_ons!2fcom.sap.ip.bi!2fiViews!2fcom.sap.ip.bi.bex
    didn't work as I image.
    Do I have to transform this url before execute the method?
    Tnks for your patience.

  • Problem executing the Query.

    Hi,
    When I am trying to open a Query in the Query Designer I am getting the error, like
    Error Characteristic BP in Ext.Sys (BPCo) must be uniquely selected in the query
    Error Characteristic BP in Ext.Sys (BPEmp) must be uniquely selected in the query
    Error Characteristic BP in Ext.Sys (BP R) must be uniquely selected in the query
    Error Characteristic BP in Ext.Sys (BP-P) must be uniquely selected in the query
    Error Characteristic BP in Ext.Sys (BPSh-P) must be uniquely selected in the query
    Error Characteristic BP in Ext.Sys (BPSldTo) must be uniquely selected in the query
    Error Characteristic BP in Ext.Sys (BPSrvEm) must be uniquely selected in the query
    Error Characteristic BP in Ext.Sys (BPR) must be uniquely selected in the query
    It may be due to a characteristic 0BP_EXTERN- Previous Account Number which is a Navigation Attribute of all these characteristics,
    *0CRM_SOLDTO, 0CRM_SHIPTO, 0CRM_BILLTO, etc etc.  So all these characteristics which are associated with 0BP_EXTERN are having some problem.
    All those Queries where 0BP_EXTERN is used are having the same issue. There used to be no issue till yesterday, I was able to execute the Query.
    Can anybody help me solving this issue??
    Thanks in advance.
    Prasapbi

    Also, when I went to InfoObject Properties,
    Business Explorer--> Selection --> "Unique for Every Cell" (this option is selected for the InfoObject 0BP_EXTERN),
    Or will it work if I select the option "No Selection Restriction".
    Thanks
    Prasapbi

  • Execute operatingsystem commands from java classes?

    How can I execute operatingsystem commands from my java classes?
    So that I on a Linux box could i.e. execute "ls -l" etc.

    Also read this:
    http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html

  • Problem executing Unix script from Java...

    Hi there, I'm having trouble executing a unix script from a java program. The script receives multiple parameters and it seems that one of them ( or more ) is not well interpreted. When I run the script directly from a shell, the script executes without any errors. But, when I run the exact same script with the exact same parameters, it does not work.
    Here is the command to execute the script with all the parameters that is executed from the shell ( with success ) and also from the java program ( with errors ):
    /z/opus/dcap/intfu001.csh 'NODEBUG^NOTKPROF^NOSTACK' opus dcap JACQUES JACQUES '2625781' 'ORA$PIPE$001D00D70001' JOB^DEBUG^SINISIMU^STATPROD^DECTIDANC^81^503^4080^86^87^151^97^98^99 BUT^N^N^SPRI^0^13^24^3^J^05^N^19^19^19 >> /tmp/switcher8.999.null.pgm.test
    And here is my portion of code that executes the script:
    Runtime wShell = Runtime.getRuntime();
    Process wProc = wShell.exec(cmd_unix_final);
    wProc.waitFor();
    return wProc.exitValue();
    Please give me your thoughts on this!
    Thanks in advance!

    Ok.
    Let's proceed surgically, else we'll never solve or overcome anything.
    In the last your reply you wrote:
    the normal output is what I get when the script runs successfully, the script first prints a few things
    and then does stuff that takes at least 2 or 3 secondsWhat do you mean?
    -Finally have you got your script correctly executed?
    The stuffs you spoke of are really performed?
    If this is the case I can't see the prob.
    Is your concern only about exitValue() for it doesn't let you distinguish programmatically
    the success or failure of the script execution?
    Of course you surely already have a routine in your java code to handle
    exceptional situations of errors from the script.
    And the "normal output" is just what you must parse to detect those errors.
    Then who cares about exitValue() in this case?
    Don't invoke it, relay on the stdout and stderr of the script.
    -Or you get only a deceiving standard output
    that let you think the script execution went alright, while instead it didn't.
    In this case we have to investigate some other thing.
    I can't still exclude that the problem isn't related with the buffer size of the stdout
    allocated by the environment to the subprocess. You spoke of few things printed out.
    Be explicit. What's the size of the output you get?
    And is the "normal output" complete till the very last char
    or is it truncated from somewhere on?
    Also it's important that you hit a ps command after the java main process terminates
    (or simply when waitFor() returns) and see if the script subprocess hung up.
    As an alternative approach directly call your pro*C code from Java through JNI, instead of translating it.
    1. Exec.java
    public class Exec{
         static{
              System.loadLibrary("Exec");
         public static native void proCFunct();
         public static void main( String[] args){
              proCFunct();
    }2. javac Exec.java
    3. javah Exec
    4.Exec.c
    #include "Exec.h"
    JNIEXPORT void JNICALL Java_Exec_proCFunct(JNIEnv * a, jclass b){
         //here call the function that executes the script
    5. cc -G -I$JAVA_HOME/include -I$JAVA_HOME/include/solaris -I$YOUR_INCLUDES Exec.c -o libExec.so
    6. setenv LD_LIBRARY_PATH .
    7. java Exec

  • Problems with data controls from java classes in JSF pages.

    Hi! We have a problem in our Application that we are developing with JSF pages using Data Controls generated from facades java classes. When we running a page in debug mode and the page are loading, if we insert a breakpoint in the first line of method referenced in the data control, the execution enter two times in the method, and this is a problem for us. How to solve this?
    We are using JDeveloper 11.1.1.2 with ADF faces.

    You might need to play around with the refresh property of the action binding.
    http://download.oracle.com/docs/cd/E15523_01/web.1111/b31974/adf_lifecycle.htm#BJECHBHF

  • Problems witth sql query from servlet

    hi,
    I have a servlet that accesses a MySql database to get the ID of an employee based on employee name (grabbed from session). My problem is that :
    empName contains a whitespace (String empName ="abc xyz")
    When I try to give this to the query:
    String query ="select id from user where eName =" +empName;
    Now I keep getting a "SQL syntax error:please check your syntax to use near 'xyz' at line 1." here which I think is because of the white space in the empName. ( I tried dummy empName without spaces).
    How do I get around this ..I cannot keep the names in the database without any space since they are being dislpayed in other pages. I tried doing a trim() on the empName before passing it to the sql query but I keep getting the same error.
    Is there any way I could query the DB with a white space in the empName?
    Thanks,
    G.
    Is there any way to

    Second of all: Use prepared statements:
    like:
    insertStatement = "SELECT ? FROM ? WHERE name=?";                    
    stmnt = _sql_connection.prepareStatement(insertStatement);
    stmnt.setString(1, "name");
    stmnt.setString(2, "table");
    stmnt.setString(3, "test");This is more secure. If you do it the above way i could enter some thing like
    *; DROP TABLE *; --
    You dont want a user to kill your whole db, dont you?
    so your querry String query ="select  id from user where eName = '" +empName +"'"; will end up:
    select  id from user where eName = '*'; DROP TABLE *; -- 'where everything after -- is ignored because this is a comment flag.

  • Problem when exporting Query from Web template to Excel Sheet.

    Hello,
    Im encoutering a problem when im trying to export query output from web template to excel sheet.
    A popup windown appears when excel sheet opens which reads.."problem cameup in the following areas during  load : Cell Value".The report layout appears to be fine but the totals shows unwanted values starting with * followed by number.
    Any valuable inputs, what could be the problem. where can i rectify the same.
    Regards
    Ellora

    Hello A K,
    Thanks for ur time and response but the option u mentioned did not serve my purpose.
    The problem seems to be only with pirticular cells.As mentioned earlier the layout appears properly..all the values are seen..but the end result..totals are disturbed.
    eg: If the report shows in template the total value :20,668,554...when exported the values is shown as **668553.88000000600000.
    So what could be the problem ? any template setting ? global setting to look at ?
    Regards
    Ellora

Maybe you are looking for