Queries running under JBoss Not Working

I'm using Kodo 2.3.2 running under JBoss.
It seems like if I attempt to run the same JDOQL query within a single
transaction under JBoss the second time I run the query I see that Kodo
appears to be querying the entire extent of my class instead of performing
my JDOQL query.
For example,
I have a simple JDOQL function like:
runQuery()
Extent e = aPM.getExtent (Persname.class, true);
String aFilter, anOID;
aFilter = "pers.objid == aObjId";
// Create a new query for the specified class and filter
Query query = aPM.newQuery (e, aFilter);
query.declareParameters("double aObjId");
// execute the query
Collection aColl = (Collection) query.execute (aPersOID);
if ( aColl == null )
this.setResults("ERROR: NULL collection returned from query");
return false;
} // end if
// iterate the results and close the query
If I call this method twice in my session bean I see this the first time
(which is correct SQL):
SELECT t0.ObjId, t0.PersObjId, t0.StpDate, t0.StrDate, t0.TypeCd FROM Pers
t1, PersName t0 WHERE (t1.ObjId = '44946832753163' AND t0.PersObjId =
t1.ObjId)
Then on the second call to the method I see this:
SELECT t0.ObjId, t0.PersObjId, t0.StpDate, t0.StrDate, t0.TypeCd FROM
PersName t0
connect:
jdbc:microsoft:sqlserver://ML1JXT0C:1339;DatabaseName=SMSTHtndIT6DJDO;Select
Method=cursor (sa): 1
then Kodo seems to iterate the entire table using all the primary keys.
Has anyone seen anything like this?
Also, when I run more than one query, the second query performs
significantly slower (5 - 6 seconds).

Fred,
That was the problem, once I configured IgnoreCache=true I didn't see that
behavior anymore. Thanks..
"Fred Lucas" <[email protected]> wrote in message
news:[email protected]...
What is the javax.jdo.option.IgnoreCache property set to? If this is
set to 'false' and you run a query after modifying an object in the
transaction, then we perform the entire query in-memory, for transactional
consistency reasons.
-Fred
In article <[email protected]>, TJanusz wrote:
I'm using Kodo 2.3.2 running under JBoss.
It seems like if I attempt to run the same JDOQL query within a single
transaction under JBoss the second time I run the query I see that Kodo
appears to be querying the entire extent of my class instead of
performing
my JDOQL query.
For example,
I have a simple JDOQL function like:
runQuery()
Extent e = aPM.getExtent (Persname.class, true);
String aFilter, anOID;
aFilter = "pers.objid == aObjId";
// Create a new query for the specified class and filter
Query query = aPM.newQuery (e, aFilter);
query.declareParameters("double aObjId");
// execute the query
Collection aColl = (Collection) query.execute (aPersOID);
if ( aColl == null )
this.setResults("ERROR: NULL collection returned from query");
return false;
} // end if
// iterate the results and close the query
If I call this method twice in my session bean I see this the first time
(which is correct SQL):
SELECT t0.ObjId, t0.PersObjId, t0.StpDate, t0.StrDate, t0.TypeCd FROMPers
t1, PersName t0 WHERE (t1.ObjId = '44946832753163' AND t0.PersObjId =
t1.ObjId)
Then on the second call to the method I see this:
SELECT t0.ObjId, t0.PersObjId, t0.StpDate, t0.StrDate, t0.TypeCd FROM
PersName t0
connect:
jdbc:microsoft:sqlserver://ML1JXT0C:1339;DatabaseName=SMSTHtndIT6DJDO;Select
Method=cursor (sa): 1
then Kodo seems to iterate the entire table using all the primary keys.
Has anyone seen anything like this?
Also, when I run more than one query, the second query performs
significantly slower (5 - 6 seconds).
Fred Lucas
SolarMetric Inc.
202-595-2064 x1122
http://www.solarmetric.com

Similar Messages

  • Background Task running under initiator not under WF-BATCH

    Hi All,
      I am trying to resolve a problem with a Background task running under intiator. Since the initiator does not have authorization to execute the task, it is not working.
    My understanding was, all background tasks will run under WF-BATCH!!. Is it correct?.  in 4.7, it is working this way.
    However in ECC 6.00  the background task before the first dialog work item is executed under 'intiator' in this case.  I have moved the same task after first dialog work item, and it was executed under WF-BATCH.. I cannot move the task after the dialog workitem as the task need to be executed immediatly after the creation of workflow.
    1. How can I run the task in backgroud under WF-BATCH?
    2. Inside the task, I am running a BDC to update a flag in downpayment transaction created using F-47. How can I run the process under batch user to overcome the authorization issue that initiator will not authorization.
    I am running this workflow in SAP ECC 6.0 level 13
    Any help is really appreciated..
    thanks in advance for your help.
    johnson

    This issue can be resolved with triggering the event using the additional flag export parameter 'CREATOR' in function module  ''SWE_EVENT_CREATE_FOR_UPD_TASK' as WF-BATCH. I was not passing this parameter and hence it didn't work in ECC 6.0 as it take who ran the process as creator and ran the background task under that users id.
    Thanks Rachid for your input to resolve this problem.
    johnson zavier

  • Old queries from Windows XP not work in Vista

    Some queries produced with the version Oracle BI Discoverer 10.1.2.1 and Windows XP Pro SP2 do not work with the version 10.1.2.3 and Windows Vista. New queries runs normally. Can you help me? Thanks.

    I have solved the problem! I used Mediainfo and determined they were .dv files (not a format I was ever familiar with!) which of course just stands for digital video.
    I renamed them with .dv and quicktime recognized them.
    Thanks for offering help and hopefully this helps someone else.

  • Queries Running Under the JOB

    Hi,
    At OS level one porocess is taking more CPU how to find the query running under that process.
    5 ? *15581* oracle 241 20 7776M 8704K run 6:58 *99.97* 99.79 oracleCORE
    3 ? *24777* oracle 241 20 7781M 16240K run 79:31 *99.50* 99.32 ora_j001_CORE
    How to find the queries.

    test with the query in proided link http://www.dba-oracle.com/t_high_cpu.htm
    Thanks

  • Agent (10.2.0.5.0) on OEL is running, upload is not working

    Hello,
    I am installing boot/stage server for provisioning on Oracle Enterprise Linux, so I need to install Management Agent.
    Agent is installed and running. But upload XML files is not working (last successful heartbeat to OMS: unknown).
    Oracle Enterprise Manager 10g Release 5 Grid Control 10.2.0.5.0.
    Copyright (c) 1996, 2009 Oracle Corporation. All rights reserved.
    Agent Version : 10.2.0.5.0
    OMS Version : 10.2.0.5.0
    Protocol Version : 10.2.0.5.0
    Agent Home : /home/oracle/OracleHomes/agent10g
    Agent binaries : /home/oracle/OracleHomes/agent10g
    Agent Process ID : 3141
    Parent Process ID : 3122
    Agent URL : https://localhost.localdomain:3872/emd/main/
    Repository URL : https://xxx.xx.xx:1159/em/upload
    Started at : 2009-12-10 11:00:13
    Started by user : oracle
    Last Reload : 2009-12-10 11:00:13
    Last successful upload : (none)
    Last attempted upload : (none)
    Total Megabytes of XML files uploaded so far : 0.00
    Number of XML files pending upload : 123
    Size of XML files pending upload(MB) : 3.37
    Available disk space on upload filesystem : 71.78%
    Last attempted heartbeat to OMS : 2009-12-10 11:44:05
    Last successful heartbeat to OMS : unknown
    Agent is Running and Ready
    When issuing emctl upload agent receiving error:
    EMD upload error: uploadXMLFiles skipped :: OMS version not checked yet..
    When trying to secure, everything is fine:
    Enter Agent Registration Password Agent successfully restarted... Done. Securing agent... Successful.
    When trying to unsecure then getting:
    Oracle Enterprise Manager 10g Release 5 Grid Control 10.2.0.5.0.
    Copyright (c) 1996, 2009 Oracle Corporation. All rights reserved.
    Checking Agent for HTTP... Done.
    Agent successfully stopped... Done.
    Unsecuring agent... Started.
    OMS Upload URL - http://xxx.xx.xx:4889/em/upload/ is locked or unavailable.
    Unsecuring Agent... Failed.
    Agent successfully restarted... Done.
    when trying to connect with telnet:
    Trying 192.168.8.59...
    Connected to xxx.xx.xx (192.168.8.59).
    Escape character is '^]'.
    then issued
    ^]
    and received:
    <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
    <HTML><HEAD>
    <TITLE>501 Method Not Implemented</TITLE>
    </HEAD><BODY>
    <H1>Method Not Implemented</H1>
    ^] to /index.html not supported.<P>
    Invalid method in request ^]<P>
    <HR>
    <ADDRESS>Oracle-Application-Server-10g/10.1.2.2.0 Oracle-HTTP-Server Server at xxx.xx.xx Port 4889</ADDRESS>
    </BODY></HTML>
    Connection closed by foreign host.
    And sample of emagent.trc imho regarding this situation:
    2009-12-10 11:00:13,661 Thread-1173184 ERROR pingManager: nmepm_pingReposURL: Did not receive a response header from repository
    Help needed! What should I check? I am very new to Linux, maybe I missed something?
    Waiting for any response,
    Best regards,
    Nikolajus
    Edited by: Nikolajus on Dec 10, 2009 6:48 AM

    Thanks for answering, Rob
    My activity was:
    On OMS:
    [oracle@gc bin]$ ./emctl secure unlock
    Oracle Enterprise Manager 10g Release 5 Grid Control
    Copyright (c) 1996, 2009 Oracle Corporation. All rights reserved.
    OMS Console is unlocked. HTTP ports too can be used to access console.
    Agent Upload is unlocked. Unsecure Agents may upload over HTTP.
    Then on boot_test:
    ./emctl unsecure agent (all completed without errors)
    Then:
    ./emctl secure agent
    Securing agent... Successful.
    Then back to OMS:
    [oracle@gc bin]$ ./emctl secure lock
    Oracle Enterprise Manager 10g Release 5 Grid Control
    Copyright (c) 1996, 2009 Oracle Corporation. All rights reserved.
    OMS Console is locked. Access the console over HTTPS ports.
    Agent Upload is locked. Agents must be secure and upload over HTTPS port.
    Then on boot_test:
    [oracle@boot_test bin]$ ./emctl stop agent
    Oracle Enterprise Manager 10g Release 5 Grid Control 10.2.0.5.0.
    Copyright (c) 1996, 2009 Oracle Corporation. All rights reserved.
    Stopping agent ... stopped.
    [oracle@boot_test bin]$ ./emctl start agent
    Oracle Enterprise Manager 10g Release 5 Grid Control 10.2.0.5.0.
    Copyright (c) 1996, 2009 Oracle Corporation. All rights reserved.
    Starting agent ..... started.
    [oracle@boot_test bin]$ ./emctl clearstate agent
    Oracle Enterprise Manager 10g Release 5 Grid Control 10.2.0.5.0.
    Copyright (c) 1996, 2009 Oracle Corporation. All rights reserved.
    EMD clearstate completed successfully
    [oracle@boot_test bin]$ ./emctl upload agent
    Oracle Enterprise Manager 10g Release 5 Grid Control 10.2.0.5.0.
    Copyright (c) 1996, 2009 Oracle Corporation. All rights reserved.
    EMD upload error: uploadXMLFiles skipped :: OMS version not checked yet..
    And the status is:
    [oracle@boot_test bin]$ ./emctl status agent
    Oracle Enterprise Manager 10g Release 5 Grid Control 10.2.0.5.0.
    Copyright (c) 1996, 2009 Oracle Corporation. All rights reserved.
    Agent Version : 10.2.0.5.0
    OMS Version : 10.2.0.5.0
    Protocol Version : 10.2.0.5.0
    Agent Home : /home/oracle/OracleHomes/agent10g
    Agent binaries : /home/oracle/OracleHomes/agent10g
    Agent Process ID : 29610
    Parent Process ID : 29594
    Agent URL : https://localhost.localdomain:3872/emd/main/
    Repository URL : https://xxx.xx.xx:1159/em/upload
    Started at : 2009-12-11 09:42:54
    Started by user : oracle
    Last Reload : 2009-12-11 09:42:54
    Last successful upload : (none)
    Last attempted upload : (none)
    Total Megabytes of XML files uploaded so far : 0.00
    Number of XML files pending upload : 78
    Size of XML files pending upload(MB) : 3.84
    Available disk space on upload filesystem : 71.95%
    Last attempted heartbeat to OMS : 2009-12-11 09:51:01
    Last successful heartbeat to OMS : unknown
    Agent is Running and Ready
    So, it seems nothing changed. Am I missing something? Waiting for any help!
    Best regards,
    Nikolajus

  • HT1904 hello i purchase rooftop run but is not working

    hello i purchase rooftop run but is not working

    Assuming that it's an app, have you tried closing the app on your iPad / iPhone / iPod Touch via the taskbar and see if it works properly when you re-open the app : from the home screen (i.e. not with the Rooftop Run app 'open' on-screen) double-click the home button to bring up the taskbar, then press and hold any of the apps on the taskbar for a couple of seconds or so until they start shaking, then press the '-' in the top left of the app to close it, and touch any part of the screen above the taskbar so as to stop the shaking and close the taskbar.
    If that doesn't work also do a reset : press and hold both the sleep and home buttons for about 10 to 15 seconds (ignore the red slider), after which the Apple logo should appear - you won't lose any content, it's the iPad equivalent of a reboot.
    A third option if the above 2 don't work is to try deleting the app and re-download it via the Purchased tab in the App Store app on your device

  • Over / Under payment not working

    My over and under payment setup stopped working after I installed p42...I then upgraded to p47 and it still is not working, has anyone else experienced this problem?
    I have all my set ups done, GL's, doc settings etc....it just will not post my difference and reconcile the document. HELP any ideas
    Joanne

    I have found the issue, please disregard
    Jo

  • Running total forumla not working

    Post Author: Skip
    CA Forum: Formula
    I am probably missing something pretty simple but can someone tell me why this is not working?
    Whileprintingrecords;
    numbervar carryover;
    if (="C") and (=Date(2006/03/31)) then carryover:=carryover+1;

    Post Author: Skip
    CA Forum: Formula
    This formula is in the detail section.  I have another formula in the footer section to display the total
    whilerprintingrecords;numbervar carryover;
    The detail forumla runs, but returns a value of  0.
    I know for a fact there are two records that meet both criteria.  Here is an example of one:
       ID       Flag         Date              hours
    1234        C      2006/03/31             7.5
    I'll explain the why for this...  in the report I need to calculate the number of incidents for the last firscal year.  For this report the FY ends on March 30 so if there is an incident  that is a continuation ("C") from the previous FY, I need to subtract it from the total....

  • While playing temple run 'tilt' does not work !!

    Temple run issues :  tilt does not work smoothly. Need a hard left or right rotation of the device which turns into screen invisible.

    Hello there, Rajesh130591.
    The following Knowledge Base article offers up some great steps to try when troubleshooting issues with an app you've downloaded to your iOS device:
    iOS: An app you installed unexpectedly quits, stops responding, or won’t open
    http://support.apple.com/kb/ts1702
    Thanks for reaching out to Apple Support Communities.
    Cheers,
    Pedro.

  • Double-tapping to switch between or clear running apps is not working with iPhone 4s.

    when I double tap to close out or switch between running functions, it does nothing ever since yesterday. I have the most current update since last week and the home button works for all other purposes so it's not broken. Now my battery is draining because I cannot shut off running apps. Please help!

    Hi Kate,
    Welcome to Apple Support Communities.
    It sounds like you’re running into a multitasking issue that’s preventing you from switching between apps or forcing them to quit. Try restarting your iPhone, as shown in the article linked below.
    Restart or reset your iPhone, iPad, or iPod touch - Apple Support
    If that doesn’t do it, you can always try restoring the iPhone to factory settings too.
    Use iTunes to restore your iOS device to factory settings - Apple Support
    Cheers,
    -Jason 

  • How can I combine two queries ? QoQ does not work

    I have one query where I just count the total qty coming in per month, something like:
    <cfquery name="qryIn" datasource="dbname">
    select count(orderNO) as totalIN,month
    where status = "IN"
    group by month
    </cfquery>
    I then have a second query to count the total qty going out per month
    <cfquery name="qryOut" datasource="dbname">
    select count(orderNO) as totalOut,month
    where status = "OUT"
    group by month
    </cfquery>
    I then use QoQ to combine both:
    <cfquery="qryTotal" dbtype="query">
    select
    totalIN,
    totalOUT
    from qryIN,qryOUT
    where qryIN.month = qryOUT.month
    </cfquery>
    The problem I am running into is that QoQ does not allow LEFT JOIN, so that if the month is in one query but not the other, it will not pick up that record. And that is throwing off my counts.
    How can I combine  both queries, and bypass QoQ to get a qty IN and qty Out value, per month ? and, for example, if qty in exists for one month and qty Out does not exists for that month, then qty Out will be zero for that month.
    I need this data to plot a chart.
    Thanks for any help provided.

    Do it in a single query to your database.  Here is part of it.
    select month
    , sum(case when when status = "IN" then 1 else 0 end) total_in

  • SQL 2008 Agent - run batch file not working

    Hello,
    I am having some strange issues with a batch file running out of SQL agent I'm hoping I can get some help with.
    The batch file's purpose is to send some log files to a SFTP server.
    The job has been working great for the past 3 weeks, however this morning it stopped working. The job doesn't error out, however the entire job completes in 00:00:00 duration and I'm given the following message 
    Date 4/7/2014 3:38:00 PM
    Log Job History (***Log Transfer)
    Step ID 1
    Server *******
    Job Name **** Log Transfer
    Step Name run batch
    Duration 00:00:00
    Sql Severity 0
    Sql Message ID 0
    Operator Emailed
    Operator Net sent
    Operator Paged
    Retries Attempted 0
    Message
    Executed as user: USERNAMERemoved . The step did not generate any output.  Process Exit Code 0.  The step succeeded.
    The batch file looks like 
    echo  *********************************
    echo  ** JOB EXECUTED %date% %time%  ** 
    if %errorlevel% neq 0 exit /b
    C:
    cd "C:\Program Files (x86)\WinSCP"
    winscp /console /script=G:\Batch\LogTransfer.txt
    call G:\Batch\LogTransfer2.bat
    echo ** COMPLETED %date% %time%  ** 
    echo  *********************************
    I have numerous other batch jobs running on this server, no other job has had this issue.  I have deleted and recreated both the job step and the entire job.  I have recreated the batch files from scratch.   I have also deleted the entire
    contents of the batch file and just simply put in echo **** and still received the message so I'm near positive it has nothing to do with the actual batch file.  
    I have reset SQL Agent, as well rechecked that the SQL Agent account has run batch rights granted to it.
    I moved the batch files to another folder, and they worked for about 4 runs until the same issue happened!!!
    The job does execute 100% perfect if I run it manually via batch or if I kick it off starting the job out of SQL.
    I am out of options here, does anyone have any ideas that could help me out?
    Thanks,
    Ryan

    Hello,
    Try to edit the step, and on the Advanced page of that step try to configure the job to create a log on the location you specify (Output file). Try to run the step again and examine the log created.
    Could you try to change the owner of the job to “sa” or to your Windows account? Maybe the SQL Server Agent account does not have access
    to the following folders:
    G:\Batch\
    C:\Program Files (x86)\WinSCP
    Alternatively, you can try to create a proxy account.
    http://technet.microsoft.com/en-US/library/ms190698(v=SQL.105).aspx
    Hope this helps.
    Regards,
    Alberto Morillo
    SQLCoffee.com

  • Kerberos running, but SSO not working??

    hey all
    so - relativley new to OSX Server but am loving it thus far.
    I am trying to get SSO to work but am having huge issues. Kerberos IS running according to Sever Admin but users are not able to use any of the SSO functions. When i run klist on users stations i receive the following message:
    Kerberos 5 ticket cache: 'API:Initial default ccache'
    Default principal: [email protected]
    Valid Starting Expires Service Principal
    03/03/10 09:09:22 03/03/10 19:09:17 krbtgt/[email protected]
    renew until 03/10/10 09:09:22
    which means there IS a Kerberos ticket but i does not seem to be picking up any other ticket - ie for AFP or the RADIUS
    am i missing an obvious step? do i need to set up each service to speak Kerberos?
    could someone point me in the right direction
    thanks

    RADIUS doesn't use Kerberos, so that's not expected to work. For AFP, there are a couple of easy things to check:
    1) Make sure AFP has Kerberos authentication enabled: In Server Admin -> AFP service -> Settings -> Access -> Authentication pop-up, make sure either "Kerberos" or "Any Method" is selected.
    2) Make sure AFP is using the right service principal: in Terminal on the server, run "defaults read /Library/Preferences/com.apple.AppleFileServer kerberosPrincipal". The reply should be "afpserver/[email protected]" (assuming directory.ourcompany.com is both the file server and Open Directory domain master). If it's wrong, you can fix it by stopping the AFP service, running "sudo "defaults write /Library/Preferences/com.apple.AppleFileServer kerberosPrincipal afpserver/[email protected]", then restarting AFP.

  • Oracle bi delivers - Show relevant rows only (under Recipients) not working

    Hi,
    My requirement is to send a report to multipel users and each user should get only relevant information mapped to his email id. If I uncheck option "Show relevant rows only", iBot is working and delivering report but our requirement is to send data related to user. For the I checked "Show relevant rows only" but after that iBot is not sending email. I checked the log at "product/OBIEE/OBIHome/server/Log/iBots", but there is no error.
    If someone has faced this issue and has solution please let me know.
    Thanks a lot.
    Mukul

    You need to set "Data Visilibity" as "Personalized" in the General tab. That means that the iBot will run for each user as each user therefore you need to make sure that each user can read the iBot and the requests that it uses.

  • Saved Queries in Business Partners not working

    Hi All,
    I have 2 saved queries that populate the following Business Partners fields with default data:
    Group - I have a default group for a Vendor and a different default group for a Customer
    ShipType - I have a default Ship Type for a Vendor and a different default Ship Type for a Customer
    To trigger these saved queries, I have used Auto Refresh when BP Type changes.  The problem I am having is you have to change the field from Customer to Vendor and back to Customer again to trigger the saved queries for a Customer.
    Questions: 
    Is there an alternative to using BP Type that will trigger the saved queries that return a different result depending on the BP Types?
    Should I set the default programically instead? And, if so, what event will capture if an 'Add' is a customer or a vendor - keeping in mind you do not change the combobox for customer (because it is already displayed in the combobox as the default in SAP)?  Also, keep in mind the combobox value is returning =Nothing unless I physically change it.
    Any suggestions would be greatly appreciated!
    Ramona

    Hi All,
    I would like to let you all know I have used the following to solve my question:
    1)  The event that works well at capturing whether the data returned is a Customer, Vendor or Lead in FIND mode (when the form is first loaded)is SAPbouiCOM.BoEventTypes.et_FORM_DATA_LOAD.
    I have set default data and default UDF categories depending on if the data returned is a Customer, Vendor or Lead.  I have removed the saved queries.
    2)  For the ADD, I have used a menu event that will force the combobox to change from the default of "customer" to "vendor" when someone clicks on the add button.  Then I have added code to the Combo_Select Event that will populate the defaults.
    I appreciate the responses I received.
    Ramona

Maybe you are looking for