Why JRC executes query two times? (reports.queryengine(?:?) - Executing query: ...)

Hello! Using JRC. While creating the report for viewing, I noticed one interesting thing. Why JRC executes query two times AND first time is executed with default parameters AND if default parameters are NULL the query can be invalid (even if it is marked to convert all database NULLs to defaults in Report Options).
<!break>
1. Why do you need to execute query the first time with these default parameters, which are later set to the others? We need to make some valid default parameters to make everything work. Also it is not efficient to execute unnecessary query.
2. If I'm wrong could you explain please? If I'm right, is it a bug and when do you fix it?
Waiting for answer,
Anton Stalnuhhin
Java-developer, Webmedia AS

.

Similar Messages

  • Only firefox executing mysql query two times. but other browser works perfect why?

    i am a web developer. and i am facing a problem only with firefox. every time i use MySQL query in my php code fire fox execute it two times. but same query is working fine on other browsers.

    Yes, the problem is seen without extensions and also in safe mode.
    But, I am starting to think that firefox is running low on memeory or CPU.
    Without extensions the possibility of failing is 1 in 3.
    I am still unable to explain why closing the browser or aborting the request can cause the stuck request to immediately reach the server.
    Is there a way to collect Firefox logs and post it here ?

  • Hi i want to execute bapi two times with different paramters....Possible

    Hi,
    i want to execute bapi twice times.Possible please explain where i put which code.Means i put bind code at doinit() method of conpopnent controller and execute bapi code in doinit() iof view. But for second time where i put bind and execute code. 
    Regards,
    Gurprit
    Edited by: GURPRIT BHATIA on Dec 17, 2007 1:24 PM

    Hi Gurprit,
    For executing the bapi second time, you can put the execute bapi code in the action of the button which is on your form. You need not write the bind code again.
    Bye
    Ankur

  • Why windowClosing is called two times?

    Hi,
    I'm saving my project in JFrame windowClosing event. But it is called two times...
    How to prevent it?
    this.addWindowListener(new java.awt.event.WindowAdapter() {
         public void windowClosing(java.awt.event.WindowEvent e) {
         saveCurrentProject();
    Thanks,
    Andr�

    Thanks, problem solved.
    this.addWindowListener(new java.awt.event.WindowAdapter() {
    public void windowClosing(java.awt.event.WindowEvent e) {
    saveCurrentProject();
    System.exit(0); // <-- new line
    Andre

  • Why do I have two time zones in my calendar?

    With a recent move to a new time zone I now have two time zone in my calendar.  My area code is in a central time zone but have moved to the east coast.
    I have checked my icloud calendar, iPhone settings and each is set to eastern time.

    Hi beachbouy,
    If you need to change the time zone for your calendars in iCloud, use the steps in this article -
    iCloud: Change your calendar’s time zone
    Thanks for using Apple Support Communities.
    Best,
    Brett L 

  • Why my JInternalFrame show two times?

    /* I want to Draw a cycle on JPanel in JInternalFrame, but it Draw two times, and when I klick the JInternalFrame, it will show right.
    There are two Class, one ist TestDrawingJPanel, another ist DrawingJPanel.
    import java.awt.*;
    public class TestDrawingJPanel extends javax.swing.JFrame {
    /** Creates new form TestDrawingJPanel */
    public TestDrawingJPanel() {
    initComponents();
    DrawingJPanel drawingJPanel=new DrawingJPanel();
    jInternalFrame1.getContentPane().add(drawingJPanel,java.awt.BorderLayout.CENTER);
    drawingJPanel.start();
    /** This method is called from within the constructor to
    * initialize the form.
    * WARNING: Do NOT modify this code. The content of this method is
    * always regenerated by the Form Editor.
    private void initComponents() {
    jInternalFrame1 = new javax.swing.JInternalFrame();
    addWindowListener(new java.awt.event.WindowAdapter() {
    public void windowClosing(java.awt.event.WindowEvent evt) {
    exitForm(evt);
    jInternalFrame1.setBackground(java.awt.Color.white);
    jInternalFrame1.setPreferredSize(new java.awt.Dimension(300, 260));
    try {
    jInternalFrame1.setSelected(true);
    } catch (java.beans.PropertyVetoException e1) {
    e1.printStackTrace();
    jInternalFrame1.setVisible(true);
    getContentPane().add(jInternalFrame1, java.awt.BorderLayout.CENTER);
    pack();
    /** Exit the Application */
    private void exitForm(java.awt.event.WindowEvent evt) {
    System.exit(0);
    * @param args the command line arguments
    public static void main(String args[]) {
    new TestDrawingJPanel().show();
    // Variables declaration - do not modify
    private javax.swing.JInternalFrame jInternalFrame1;
    // End of variables declaration
    import java.awt.*;
    public class DrawingJPanel extends javax.swing.JPanel implements Runnable {
    /** Creates a new instance of DrawingJPanel */
    Graphics g;
    Thread thisThread;
    public void start(){
    thisThread=new Thread(this);
    thisThread.start();
    public void paint(Graphics g){
    g.setColor(Color.black);
    g.drawArc((this.getWidth()/2)-100,(this.getHeight()/2)-100,200,200,0,360);
    public void run() {
    try{
    thisThread.sleep(100);
    }catch(Exception e){};
    repaint();

    Q1
    2 internalframes
    ANS
    remove any one of these
    jInternalFrame1.setVisible(true);
    new TestDrawingJPanel().show();

  • In Report How To Execute Query Two Times in One Layout

    hi
    All
    In My Report i have creating on main Query and then query run two type with Defrent Parameter how is possible in Oracle Report 6i
    example
    my Query is
    For Example First time query run defrent parameter and again run some other parameter in same layout help me
    select decode(art_mkt,'1',art_brc,art_mkt) art_mkt,
    &f1 art_prd,
    sum(nvl(art_amt,0)) art_amt,
         sum(nvl(art_net,0)) art_net,
    nvl(substr(art_vou_ser,2,1),' ') art_mfg_type,
    nvl(substr(art_vou_ser,3,1),' ') art_src_code
    from art
    where art_rec_ty = 58
    and art_ml in (:art_ml1,:art_ml2)
    and art_dt between to_date(:start_dt,'dd-mm-yyyy')
    and to_date(:end_dt,'dd-mm-yyyy')
    and art_vou_dt between to_date(:dt1,'dd-mm-yyyy')
    and to_date(:dt2,'dd-mm-yyyy')
    group by decode(art_mkt,'1',art_brc,art_mkt),
    substr(art_vou_ser,2,1),
    substr(art_vou_ser,3,1),
    &g1
    order by decode(art_mkt,'1',art_brc,art_mkt),
    substr(art_vou_ser,2,1),
    substr(art_vou_ser,3,1),
    &g1

    That would be a great question in the [url http://forums.oracle.com/forums/forum.jspa?forumID=84]Reports Forum wouldn't it ;)
    Tony

  • Query Execution time differs when executed inside a procedure

    Hi All,
    Oracle 10.2.0
    Windows 2003 server
    We have a query that runs faster when it is executed as a seperate query.
    But its taking time when it is executed as a procedure.
    Please advice to find the problem.
    TIA,

    ORCLDB wrote:
    Hi All,
    Oracle 10.2.0
    Windows 2003 server
    We have a query that runs faster when it is executed as a seperate query.
    But its taking time when it is executed as a procedure.
    Please advice to find the problem.
    TIA,You should be able to enable a 10046 trace at level 12 for each execution environment, and examine the STAT lines in the raw trace files to see how the execution plans differ, and if bind variables are used, to see if those bind variables are defined as an incorrect data type. Search the forums to see how to enable a 10046 trace and read the resulting trace files.
    Here is a post which shows how to read the trace files. I probably posted a couple times in the past how to enable a 10046 trace:
    Re: some 10046 traceing questions.....
    Are you running 10.2.0.1, 10.2.0.2, 10.2.0.3, or 10.2.0.4?
    Charles Hooper
    IT Manager/Oracle DBA
    K&M Machine-Fabricating, Inc.

  • Why the data inserted two times into the DB?

    Hai all,
    When I press the submit button in my form the data will be inserted two timesinto DB. Please help me.
    import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import com.vguss.bean.RegisterInfoBean; import com.vguss.helper.Out; public class InsertRegInfo { public static Connection connection = DBConnection.getDBConnection(); public static void insertRegData(RegisterInfoBean bean) { Connection connection = DBConnection.getDBConnection(); String loginID = bean.getLoginId(); try { PreparedStatement pst = connection .prepareStatement("SELECT login_id FROM login_details WHERE login_id = ?"); pst.setString(1, loginID); ResultSet set = pst.executeQuery(); if (!set.next()) { insertData(bean); } } catch (SQLException e1) { e1.printStackTrace(); } } private static void insertData(RegisterInfoBean bean) { try { PreparedStatement ps = connection .prepareStatement("INSERT INTO login_details (login_id, password, profile_created_by, security_question, answer, full_name, receive_sms, show_details, agree_terms, register_on) VALUES (?,?,?,?,?,?,?,?,?,now())"); ps.setString(1, bean.getLoginId()); ps.setString(2, bean.getPassword()); ps.setString(3, bean.getProf_created_by()); ps.setString(4, bean.getSecurity_Question()); ps.setString(5, bean.getAnswer()); ps.setString(6, bean.getFullName()); ps.setString(7, bean.getLikeSMS()); ps.setString(8, bean.getShowDetails()); ps.setString(9, bean.getAgreeToTerms()); ps.executeUpdate(); PreparedStatement pstmt = connection .prepareStatement("INSERT INTO user_profile (login_id, gender, email, date_of_birth) VALUES (?, ?, ?, ?)"); pstmt.setString(1, bean.getLoginId()); pstmt.setString(2, bean.getGender()); pstmt.setString(3, bean.getEmailID()); pstmt.setString(4, bean.getDateOfBirth()); pstmt.executeUpdate(); /* insert login id to preferred_partner table */ PreparedStatement pStmt = connection .prepareStatement("INSERT INTO preferred_partner (login_id) VALUES(?)"); pStmt.setString(1, bean.getLoginId()); pStmt.executeUpdate(); } catch (SQLException e) { Out.err(e); } } }

    The most obvious thought is that you have a duplicate login id.
    You're trying, but I would not consider this to be well written code, for these reasons:
    1. You don't close any JDBC resources in finally blocks - no connections, no statements, no result sets. Search the forum for people with "max open cursors exceeded" to see why this is a bad idea.
    2. You create a static Connection in this class, but nobody closes it. Classes that execute SQL should not be responsible for obtaining connections; a Connection should be provided to them. Transactions are the reason: a class executing SQL can't know if it's involved in a unit of work with other classes. Somebody who knows the use case and the transaction boundaries ought to be getting the Connection, handling commit/rollback, and closing the Connection.
    3. Refactor that INSERT into three methods. You'll be glad you did someday.
    4. Your INSERT method looks like it's doing a security check, too. Isn't it a little late for that? If you must, move that code into a separate method that returns a boolean. A well-designed method does one thing well. Yours is doing two.
    5. The common JDBC idiom isn't "if (!set.next())", it's "while (set.next())". It's good to use common idioms, because it makes it easier for other people to understand your code.
    But see if you have a repeated login ID.
    And step through in a debugger to see what's going on.
    %

  • Can i execute bapi two times if yes then wht code i need to write 2 time.

    Hi,
    I am trying to execute my bapi at wdDoInit() method of view . Same Bapi will execute at  Controller.
    But my view bapi is not running.
    Why this is happeded?
    My code for View is like this
    public void wdDoInit()
        //@@begin wdDoInit()
         IWDMessageManager manager = wdComponentAPI.getMessageManager();
                   try
                               wdContext.currentZcrm_Sales_Orders_InputElement().setRun_Bp("ALL");
                               wdContext.currentZcrm_Sales_Orders_InputElement().setUname("SUNIL103");
                               wdContext.currentZcrm_Sales_Orders_InputElement().modelObject().execute();     
    wdContext.nodeOutput().invalidate();
                   catch(WDDynamicRFCExecuteException e)
                                    manager.reportException(e.getMessage(), false);
        //@@end
    Please help me to trace this thing ,
    Regards,
    Gurprit Bhatia

    Hi,
       Change this code a bit:
    Zcrm_Sales_Orders_Input input = new Zcrm_Sales_Orders_Input();
    wdContext.nodeZcrm_Sales_Orders_Input().bind(input);
    input.setRun_Bp("ALL");
    input.setUname("SUNIL103");
    wdContext.currentZcrm_Sales_Orders_InputElement().modelObject().execute();
    wdContext.nodeOutput().invalidate();
    Regards,
    Satyajit.

  • No of times Report is executed and execution dates

    Hi,
    I want to know how many times my ZReport is executed and on what dates it is executed? Please suggest.
    Regards
    K Srinivas

    >
    Thomas Zloch wrote:
    > where n > 500
    And that's just last week.

  • Using one query two times

    Hi i have a system that control car acidents ..
    I have a query that return the streets from a choosed city, and after i ask if the crash happens in streets crossings,
    So i get the variable $street
    If so i do the same query to return the same streets to the user choose the street crossing.
    So i get the variable $street_crossing
    I only need assign diferent variables names to handle the street and the street crossing.
    Is there any way to not go to the database to do the same work that already is done? and get the previous query result ? i am using php and oracle
    thanks in advance

    After the query, the street list is in $results_crzmt_logr. You
    should be able to print this array twice. The first time with
    headings for "Street" and the second time for "Street Crossing".
    For performance reasons the query may benefit from a bind variable.
    Something like:
        $cmdstr_crzmt_logr = "SELECT NOME, ".
        "B, ".
        "CEP, ".
        "FROM TABLE ".
        "WHERE MUNIC=:mun ".
        "ORDER BY NOME ASC";
        $parsed_crzmt_logr = ociparse($db_conn, $cmdstr_crzmt_logr);
        OCIBindByName($parsed_crzmt_logr, ":mun", $_POST[MUN_CODIGO], 10);
        ociexecute($parsed_crzmt_logr);
        $nrows_crzmt_logr = ocifetchstatement($parsed_crzmt_logr, $results_crzmt_logr);Adding error checking may be useful. The free statement should be:
        OCIFreeStatement($parsed_crzmt_logr);-- CJ

  • Does anybody know why I can see two times on my lock screen? The right time then a wrong one in the background behind it?

    Can anyone help please?

    The only thing behind my lock screen clock is my lock screen wall-paper. Do you have a different wall-paper set for your lock screen than what you have set for your home screen?

  • Controller method executed two times

    Hi,
    i created one method called :FileLov
    i called this method in PR like:
    am.invokeMethod("FileLov");
    in am i implemet the code :
    public void FileLov() {}
    method is working fine but it is executing two times.
    when each time executes values are inserted into tables , so that table contains duplicate values.
    can any one please help me why this method is invoked two time, how can i resolve this issue.

    once the page is loaded method is executed automatically two times.
    i used if condition but still it is not effected.
    please find the below
    Target URL -- http://xxxxx.corp.xxxxx.com:8988/OA_HTML/runregion.jsp
    13/04/23 14:33:01 Oracle Containers for J2EE 10g (10.1.3.3.0) initialized
    13/04/23 14:33:03 TIME: runregion: initialization [15 ms]
    13/04/23 14:33:05 TIME: runregion: session and transaction creation [1657 ms]
    Apr 23, 2013 2:33:06 PM oracle.adf.share.config.ADFConfigFactory findOrCreateADFConfig
    INFO: oracle.adf.share.config.ADFConfigFactory Reading META-INF/adf-config.xml
    13/04/23 14:33:06 java.lang.IllegalArgumentException: Unknown signal: ALRM
    13/04/23 14:33:06      at sun.misc.Signal.<init>(Signal.java:126)
    13/04/23 14:33:06      at oracle.apps.fnd.framework.AppsDiagnosticsHandler.install(Unknown Source)
    13/04/23 14:33:06      at oracle.apps.fnd.framework.server.OAApplicationModuleImpl.initializeSignalHandler(Unknown Source)
    13/04/23 14:33:06      at oracle.apps.fnd.framework.server.OAApplicationModuleImpl.<clinit>(Unknown Source)
    13/04/23 14:33:06      at java.lang.Class.forName0(Native Method)
    13/04/23 14:33:06      at java.lang.Class.forName(Class.java:242)
    13/04/23 14:33:06      at oracle.jbo.common.java2.JDK2ClassLoader.loadClassForName(JDK2ClassLoader.java:38)
    13/04/23 14:33:06      at oracle.jbo.common.JBOClass.forName(JBOClass.java:164)
    13/04/23 14:33:06      at oracle.jbo.common.JBOClass.findCustomClass(JBOClass.java:177)
    13/04/23 14:33:06      at oracle.jbo.server.ApplicationModuleDefImpl.loadFromXML(ApplicationModuleDefImpl.java:836)
    13/04/23 14:33:06      at oracle.jbo.server.ApplicationModuleDefImpl.loadFromXML(ApplicationModuleDefImpl.java:770)
    13/04/23 14:33:06      at oracle.jbo.server.MetaObjectManager.loadFromXML(MetaObjectManager.java:534)
    13/04/23 14:33:06      at oracle.jbo.mom.DefinitionManager.loadLazyDefinitionObject(DefinitionManager.java:547)
    13/04/23 14:33:06      at oracle.jbo.mom.DefinitionManager.findDefinitionObject(DefinitionManager.java:425)
    13/04/23 14:33:06      at oracle.jbo.mom.DefinitionManager.findDefinitionObject(DefinitionManager.java:358)
    13/04/23 14:33:06      at oracle.jbo.mom.DefinitionManager.findDefinitionObject(DefinitionManager.java:340)
    13/04/23 14:33:06      at oracle.jbo.server.MetaObjectManager.findMetaObject(MetaObjectManager.java:700)
    13/04/23 14:33:06      at oracle.jbo.server.ApplicationModuleDefImpl.findDefObject(ApplicationModuleDefImpl.java:232)
    13/04/23 14:33:06      at oracle.jbo.server.ApplicationModuleImpl.createRootApplicationModule(ApplicationModuleImpl.java:401)
    13/04/23 14:33:06      at oracle.jbo.server.ApplicationModuleHomeImpl.create(ApplicationModuleHomeImpl.java:91)
    13/04/23 14:33:06      at oracle.apps.fnd.framework.webui.OAJSPApplicationRegistry.createStaticAKApplicationModule(Unknown Source)
    13/04/23 14:33:06      at oracle.apps.fnd.framework.webui.OAJSPApplicationRegistry.getStaticAKApplicationModuleSync(Unknown Source)
    13/04/23 14:33:06      at oracle.apps.fnd.framework.webui.OAJSPApplicationRegistry.getStaticAKApplicationModule(Unknown Source)
    13/04/23 14:33:06      at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(Unknown Source)
    13/04/23 14:33:06      at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(Unknown Source)
    13/04/23 14:33:06      at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(Unknown Source)
    13/04/23 14:33:06      at OA.jspService(_OA.java:71)
    13/04/23 14:33:06      at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
    13/04/23 14:33:06      at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:462)
    13/04/23 14:33:06      at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
    13/04/23 14:33:06      at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
    13/04/23 14:33:06      at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    13/04/23 14:33:06      at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713)
    13/04/23 14:33:06      at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
    13/04/23 14:33:06      at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
    13/04/23 14:33:06      at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
    13/04/23 14:33:06      at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:221)
    13/04/23 14:33:06      at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:122)
    13/04/23 14:33:06      at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:111)
    13/04/23 14:33:06      at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
    13/04/23 14:33:06      at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
    13/04/23 14:33:06      at java.lang.Thread.run(Thread.java:595)
    13/04/23 14:33:06 **************************************************************************
    13/04/23 14:33:06 *** WARNING: Oracle BC4J debug build executing - do not use for timing ***
    13/04/23 14:33:06 **************************************************************************
    13/04/23 14:33:10 filelength is 11
    13/04/23 14:33:11 filelength is 11
    here i wrote one printout statement in a method
    it displays two times.

  • When i type the https URL in my FireFox browser version 3.6 to 5.0, i get login pop up window two times. But in IE browser i get only once. Please tell me why FireFox is showing pop up screen two times to enter my uid/pwd. Thanks!

    We have our company internal application which is protected by SiteMinder. When we type https://appname.domain.com in IE i get popup window asking me to enter uid/pwd and works fine. However same URL when i login in FireFox, i get pop up window two times. So i wonder why FF is asking two times instead of just only once.
    Thanks for your help.

    Do you have that problem when running in the Firefox SafeMode?
    [http://support.mozilla.com/en-US/kb/Safe+Mode]
    ''Don't select anything right now, just use "Continue in SafeMode."''
    If not, see this:
    [http://support.mozilla.com/en-US/kb/troubleshooting+extensions+and+themes]

Maybe you are looking for

  • Exception raised while trying to join Table and Stream

    I have written a sample Project to fetch the data from a Table and join it with the Input Stream. Followed the same procedure specified at http://download.oracle.com/docs/cd/E17904_01/doc.1111/e14301/processorcql.htm#CIHCCADG I am getting the excepti

  • J1IEX-Excose part 2 posting

    Dear guru's, User is trying to post the Excise Part-2 by using the T.code : J1IEX , but he is getting the error message " Balance in transaction currency". Detailed Error message is "A balance has occurred in transaction currency 'INR' with the follo

  • I need a simple button/movieclip interaction

    If I have a button named "b" and a movie clip named "mc" that has an internal timeline, what is the code in AS3 to make the mc play? The main timeline is only one frame. Thanks in advance!

  • c:redirect not working?

    Hi folk, I'm new to JSP. We use JSTL to parse XML file at work. We use WebSphere and Java 1.4.x. It seem the <c:redirect> tag is not working. Someone point out somewhere, that this is a know bug using WebSphere. But I still have doubt. I'm more use t

  • Blackberry maps route

    hello, i use blackberry maps on my 8310 curve. if a choose route everything is fine until my route has nodes with special chars like äöü or ß in it like böhmissche straße or berlin-neukölln. these are correct in the xml-file (that i see if i use the