Method Iteretor Cache Results Problem

Hi all,
I am executing a method and taking some results via method iterator.
Method iterator Cache Results property is true. But i want to clear or remove all data from cache after completing my job.
I am trying set to methodIteretor.result property to null in bindings. But this bindings property is unsettable property.
Thanks to all.
gokmeni

Are you attempting to set the property with the Flat editor or within the XML file itself?
--Ric                                                                                                                                                                                                       

Similar Messages

  • With VPD I see other users results - problems with AM caching??

    I am using JDeveloper 11.1.1.0.2.
    In my application I have 3 Appllication Modules (Admin, Store and Sale) and I use VPD and setcontext in every AM.
    @Override
    protected void prepareSession(Session session) {
    super.prepareSession(session);
    setVPDcontext();
    private void setVPDcontext() {
    String userName = getUserContext().getUserId();
    String ind = "J";
    String sql =
    "begin xxx_context.set_context('" + userName +
    "', '" + ind + "'); end;";
    java.sql.CallableStatement stmt = null;
    try {
    stmt = getDBTransaction().createCallableStatement(sql, 0);
    stmt.execute();
    catch (SQLException se) {
    throw new JboException(se.getMessage());
    finally {
    if (stmt != null) {
    try {
    stmt.close();
    catch (SQLException e) {
    throw new JboException(e);
    The problem is that I see the results of previous VPD-queries.
    3 testcases:
    1. User1 has access to 3 AM (Admin, Store, Sale), if I log in I can see the correct results in the application (in Admin, Store and Sale).
    User2 has only access to 1 AM (Store), If I log in as User2 I see the results of User1 in Store (wrong).
    2. After restarting the weblogic server and logging in as User2 I see the correct results for User2!
    If I log in as User1 I see the results of User2 in Store (wrong!!) and the correct results in Admin and Sale!
    3. User1 has access to 3 AM (Admin, Store, Sale), if I login as user User1 I only use Admin and Sale (so there are no cached results for Store).
    User3 has access to Sale and Store. If I login as User3 I see the results of User1 in Sale and the correct result in Store.
    Conclusion: I see cached query results of the first user who logges in a Application Module. Only restarting the Weblogic Server makes the cache empty. The problem only occurs with queries with VPD.
    How can I resolve this problem?

    User,
    I'm on a bind variable crusade today (not the answer to your question, unfortunately). Please please please please use bind variables instead of gluing literals together like that (use PreparedStatement instead of callable statement). You can also parse the PreparedStatement once and avoid the overhead of parsing on each call to prepareSession.
    John

  • Using a hashmap for caching -- performance problems

    Hello!
    1) DESCRIPTION OF MY PROBLEM:
    I was planing to speed up computations in my algorithm by using a caching-mechanism based on a Java HashMap. But it does not work. In fact the performance decreased instead.
    My task is to compute conditional probabilities P(result | event), given an event (e.g. "rainy day") and a result of a measurement (e.g. "degree of humidity").
    2) SITUATION AS AN EXCERPT OF MY CODE:
    Here is an abstraction of my code:
    ====================================================================================================================================
    int numOfevents = 343;
    // initialize cache for precomputed probabilities
    HashMap<String,Map<String,Double>> precomputedProbabilities = new HashMap<String,Map<String,Double>>(numOfEvents);
    // Given a combination of an event and a result, test if the conditional probability has already been computed
    if (this.precomputedProbability.containsKey(eventID)) {
    if (this.precomputedProbability.get(eventID).containsKey(result)) {
    return this.precomputedProbability.get(eventID).get(result);
    } else {
    // initialize a new hashmap to maintain the mappings
    Map<String,Double> resultProbs4event = new HashMap<String,Double>();
    precomputedProbability.put(eventID,resultProbs4event);
    // unless we could use the above short-cut via the cache, we have to really compute the conditional probability for the specific combination of the event and result
    * make the necessary computations to compute the variable "condProb"
    // store in map
    precomputedProbabilities.get(eventID).put(result, condProb);
    ====================================================================================================================================
    3) FINAL COMMENTS
    After introducing this cache-mechanism I encountered a severe decrease in performance of my algorithm. In total there are over 94 millions of combinations for which the conditional probabilities have to be computed. But there is a lot of redundancy in this set of feasible combinations. Basically it can be brought down to just about 260.000 different combinations that have to be captured in the caching structure. Therefore I expected a significant increase of the performance.
    What do I do wrong? Or is the overhead of a nested HashMap so severe? The computation of the conditional probabilities only contains basic operations.
    Only for those who are interested in more details
    4) DEEPER CONSIDERATION OF THE PROCEDURE
    Each defined event stores a list of associated results. These results lists include 7 items on average. To actually compute the conditional probability for a combination of an event and a result, I have to run through the results list of this event and perform an Java "equals"-operation for each list item to compute the relative frequency of the result item at hand. So, without using the caching, I would estimate to perform on average:
    7 "equal"-operations (--> to compute the number of occurences of this result item in a list of 7 items on average)
    plus
    1 double fractions (--> to compute a relative frequency)
    for 94 million combinations.
    Considering the computation for one combination (event, result) this would mean to compare the overhead of the look-up operations in the nested HashMap with the computational cost of performing 7 "equal' operations + one double fration operation.
    I would have expected that it should be less expensive to perform the lookups.
    Best regards!
    Edited by: Coding_But_Still_Alive on Sep 10, 2008 7:01 AM

    Hello!
    Thank you very much! I have performed several optimization steps. But still caching is slower than without caching. This may be due to the fact, that the eventID and results all share long common prefixes. I am not sure how this affects the computation of the values of the hash method.
    * Attention: result and eventID are given as input of the method
    Map<String,Map<String,Double>> precomputedProbs = new HashMap<String,Map<String,Double>>(1200);
    HashMap<String,Double> results2probs = (HashMap<String,Double>)this.precomputedProbs.get(eventID);
    if (results2Probs != null) {
           Double prob = results2Probs.get(result);
           if (prob != null) {
                 return prob;
    } else {
           // so far there are no conditional probs for the annotated results of this event
           // initialize a new hashmap to maintain the mappings
           results2Probs = new HashMap<String,Double>(2000);
           precomputedProbs.put(eventID,results2Probs);
    * Later, in case of the computation of the conditional probability... use the initialized map to save one "get"-operation on "precomputedProbs"
    // the variable results2probs still holds a reference to the inner HashMap<String,Double> entry of the HashMap  "precomputedProbs"
    results2probs.put(result, condProb);And... because it was asked for, here is the computation of the conditional probability in detail:
    * Attention: result and eventID are given as input of the method
    // the computed conditional probabaility
    double condProb = -1.0;
    ArrayList resultsList = (ArrayList<String>)this.eventID2resultsList.get(eventID);
    if (resultsList != null) {
                // listSize is expected to be about 7 on average
                int listSize = resultsList.size(); 
                // sanity check
                if (listSize > 0) {
                    // check if given result is defined in the list of defined results
                    if (this.definedResults.containsKey(result)) { 
                        // store conditional prob. for the specific event/result combination
                        // Analyze the list for matching results
                        for (int i = 0; i < listSize; i++) {
                            if (result.equals(resultsList.get(i))) {
                                occurrence_count++;
                        if (occurrence_count == 0) {
                            condProb = 0.0;
                        } else {
                            condProb = ((double)occurrence_count) / ((double)listSize);
                        // the variable results2probs still holds a reference to the inner HashMap<String,Double> entry of the HashMap  "precomputedProbs"
                        results2probs.put(result, condProb);
                        return condProb;
                    } else {
                        // mark that result is not part of the list of defined results
                        return -1.0;
                } else {
                    throw new NullPointerException("Unexpected happening. Event " + eventID + " contains no result definitions.");
            } else {
                throw new IllegalArgumentException("unknown event ID:"+ eventID);
            }I have performed tests on a decreased data input set. I processed only 100.000 result instances, instead of about 250K. This means there are 343 * 100K = 34.300K = 34M calls of my method per each iteration of the algorithm. I performed 20 iterations. With caching it took 8 min 5 sec, without only 7 min 5 sec.
    I also tried to profile the lookup-operations for the HashMaps, but they took less than a ms. The same as with the operations for computing the conditional probability. So regarding this, there was no additional insight from comparing the times on ms level.
    Edited by: Coding_But_Still_Alive on Sep 11, 2008 9:22 AM
    Edited by: Coding_But_Still_Alive on Sep 11, 2008 9:24 AM

  • Cache update problem in Integration Directory

    Hi all,
    We have a cache update problem in our PI development server.
    If we try to edit, save and activate any of the ID objects, under Cache notifications>Central Adapter Engine> all these objects are displayed as gray items.
    We have tried:
    1. Clearing the SLD Data Cache.
    2. Did SXI_CACHE complete refresh.
    3. Did CPA cache refresh.
    4. Did a complete cache refresh of the server.
    5. Restarted the server.
    But still the problem has not bee resolved. Could you pls provide your inputs and resolution points.
    Thank you very much.
    regards,
    Jack Nuson

    HI Jack ,
    first try to manually update the cache from ID select on your cache notifiaction and click on delta cache refresh button and refresh button .IF it does not yied any result then
    Perform a full cache refresh using the URL
    http://<host>:<port>/CPACache/refresh?mode=full . If the cache refresh happens properly then your problem will get resolved other wise you have to see the cache log to view why it failed there it will show you the exact reason . You might need to restart your java server also if the problem persist .
    Regards,
    Saurabh

  • WLS9.2 caching results of CallableStatement?

    Hello All,
    I've been flummoxed by a problem in which the results of a CallableStatement seem to be cached by our WebLogic 9.2 server. We have a connection pooled DataSource talking to Oracle8i (8.1.7.4.0), configured with 10 statements in a cache and the LRU algorithm, also 1 connection initially and a maximum of 15. We're using Oracle's ojdbc14.jar implementation and orai18n.jar.
    We're mostly executing CallableStatments for packaged procedures/functions that in turn call other procedures or run selects. What I'm geting at is, we're retrieving data rather than updating through our CallableStatement. The retreieved data we extract from the returned oracle ARRAY type using a homegrown map to the "shape" of each Struct underlying the ARRAY collection. In this problem, two CallableStatements are run and return data to our Java app, and at the start all is well. Then the underlying data is changed - via procedures in an oracle forms app on the database, not our Java app. Our Java app should display the changed data. The first CallableStatement runs again and an Eclipse remote debug shows the updated data, however the second CallableStatement continues to return the older data. We have oracle test harnesses that call the same procedures as our CallableStatements; both return the new data. If we leave it for sometime less than 45 minutes, the new data is then returned by both statements. Similarly, if we set the statement cache size to 0, the newe data is returned both times. We're closing the DB resources, (and in the right order: ResultSet, Statement and Connection)
    Has anyone come across this issue before? (From my searches it appears not). Secondly, is there a way of debugging into the WLS DataSource mechanism? I can go down as far as getting the ARRAY and no further, but if there's a switch/command line arg that I could use in the startWeblogic script that'd be great. I remember reading about a WebLogic attributeSpy, (or maybe spyAttribute?) and if I had to try the WLS driver for that I'd give it a go, but if Oracle have something similar that'd be fantastic.
    FWIW, changing the data via the oracle forms app changes the sysdate on the oracle database too.
    Variables from the debug that might be relevant:
    DataSource retrieved from jndi context of type WLEventContextImpl
    driversettings
    weblogic.jdbc.rmi.internal.RmiDriverSettings{verbose=false chunkSize=256 rowCacheSize=0}
    driverProps entrySet [EmulateTwoPhaseCommit=false, connectionPoolID=xxxxx, jdbcTxDataSource=true, LoggingLastResource=false, dataSourceName=xxxxx]
    Connection is PoolConnection_oracle_jdbc_driver_T4CConnection
    weblogic.jdbc.wrapper.PoolConnection_oracle_jdbc_driver_T4CConnection@5f1
    statement     is CallableStatement_oracle_jdbc_driver_T4CCallableStatement (id=nnnnn)     
    weblogic.jdbc.wrapper.CallableStatement_oracle_jdbc_driver_T4CCallableStatement@5f2
    There is a StatementHolder too:
    weblogic.jdbc.wrapper.CallableStatement_oracle_jdbc_driver_T4CCallableStatement@5f2=weblogic.jdbc.common.internal.StatementHolder@21cae26
    In the "stmts" table in "conn" in "stmt", there are the following two variables:
    jstmt     T4CCallableStatement (id=nnnnn) oracle.jdbc.driver.T4CCallableStatement@21cad44
    key     StatementCacheKey (id=nnnn)     { call my_pack_name.my_proc_name(?,?)}:true:-1:-1
    Thanks for any help that anyone might be able to shed on this!
    Best Regards,
    ConorD

    Hi Joe,
    Thanks for your reply; I'm delighted to see that you're still here helping WLS users under the Oracle banner :-)
    To answer your question, yes, we do get good behaviour when we set the statement cache size to 0. I ran a test on that where I set the Statement cache size to 0 and the initial number of connections to 0, then:
    *1)* Logged in through our Java/WLS app to a few test scenarios and saw the data
    *2)* Ran the oracle app on that DB outside of WLS which moved forward the state of the app, including sysdate
    *3)* Logged in again through our Java/WLS app to the test scenarios and saw the new data being returned from both CallableStatements
    I don't think that the initial number of connections had any effect on this, since WLS was running all the time and there was no retargetting of the DataSource, so IMHO it must have been the statement cache size.
    Where we hadn't got the Statement cache size 0, for step *3)* above one of the two CallableStatements continued to return the old data, (as if it had been told by the DB that the result hadn't changed, and it might as well return a cached result - if WLS does cache ResultSets?)
    Lastly, there is one case where we do see good behaviour even with a Statement cache size of 10:
    Between steps *2)* and *3)* above, if I untarget & activate, then retarget & activate the DataSource (to the same server/db that had just been untargetted) we see new data back from both statements on running step *3)*, even with the Statement cache size set to 10. My guess is that the untarget frees up any object in the Statement cache for collection and removes the remote DB session stubs that may be caching on the DB side.
    Thanks again and Best Regards,
    ConorD

  • Cache Refresh Problem

    Hi,
    We updated XI 3.0 to SP4, and started seeing several problems related to Cache Refresh and JCo.
    In the <b>SAPGUI in transaction SXI_CACHE</b>, we are unable to refresh the cache, and getting the following error:
    Connection to system RUNTIME using application RUNTIME lost. Detailed information: Error accessing "http://NETWEAVER:50000/run/hmi_service_id_fresh_mappings/int?container=any" with user "XIDIRUSER". Response code is 503, response message is "Service Unavailable".
    In <b>SM59 for RFC HTTP destinations</b>, the INTEGRATION_DIRECTORY_HMI test gives the HTTP/1.1 500 Internal Server Error. The URL is /dir/CacheRefresh.
    On the Runtime Workbench, I am trying to run the self-test for <b>Mapping Runtime</b>. We get the following errors:
    Ping Status: HTTP request failed. Error code: "503". Error message: "Service Unavailable"
    Self-test status: HTTP request failed. Error code: "503". Error message: "Service Unavailable"
    We are on XI3.0 SP4, J2EE SP7 and ABAP SP4.
    What can I check on the J2EE server to see if the service is running ? And what can I do to fix the JCo connections ? Thanks,
    Manish

    Thanks Hart. I have updated the URL and it succeeds on Test.
    However, I still have the Cache updation problem.
    When I update an object (say, a mapping) in the Integration Builder, and activate it, the XI Server Cache should get updated with this new object.
    On running the scenario, I am getting the following error as observed in the monitor (SXMB_MONI):
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    <!--  Receiver Identification
      -->
    <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
      <SAP:Category>XIServer</SAP:Category>
      <SAP:Code area="XICACHE">UPDATE</SAP:Code>
      <SAP:P1 />
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText>HTTP status code401 Unauthorized</SAP:AdditionalText>
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack>An error occurred when refreshing the XI runtime cache</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    To resolve this problem, I have to manually go to the transaction SXI_CACHE, and do a delta cache refresh. It asks for the user credentials everytime for XIISUSER.
    Is there a way to automatically enable this user to enable the cache refresh in the background ?
    thanks,
    Manish

  • Ibots are not retrieving cached results.

    Hello,
    I have scheduled the ibots on reports available on a dashboard page and added a list of users in the recipients tab. i want the results to be cached for these list of users.
    I get an email with the results of the dashboard report whenever the ibots finish to run. Then i tried to login as one of the users from the list of users in the recipients, but the reports seems to run again without retriving the cached results.
    Can anyone help me to understand why the results are not being cached?
    Thanks,
    sK.

    hi SK,
    check this
    http://www.artofbi.com/index.php/2010/03/obiee-ibots-obi-caching-strategy-with-seeding-cache/
    thanks,
    Saichand.v

  • Is there a solution to Rapidweaver Stacks Cache size problems?

    Is there a solution to Rapidweaver Stacks Cache size problems?
    My website http://www.optiekvanderlinden.be , has about 100 pages and is about 250MB in size. Every time I open RapidWeaver with the Stacks-plugin, the user/library/cache/com.yourhead.YHStacksKit folder grows to several Gigabytes in size. If I don't  manually empty the com.yourhead.YHStacksKit Cache daily, AND empty the Trash before i turn off my mac, my Mac still has problems and stalls at startup the next day. Sometimes up to 5 minutes and more before he really boots. If i have a been working on such a large site for a few weeks without deleting that cache, than my iMac doesn't start up anymore, and the only thing left to do is completely reinstall the iOs operating system. This problem doesn't happen the days i use all my other programs but don't use Rapidweaver.
    Does anyone know a solution and / or what is the cause of this?

    once more,
    i just launched my project in Rapidweaver, and WITHOUT making any changes to my pages, the cache/com.yourhead.YHStacksKit folder filled itself with 132 folders (total 84Mb), most of them containing images of specific pages etc. The largest folder in the cache is the one with the images of a page containing a catalogue of my company, this folder is 7Mb. It seems by just starting up a project, immediately different folders are created containing most of the images in my project, and some folders with a log.txt file. Still i don't see the reason why it is filling op a huge Cache even without making changes to the project. I have 2 different sites, so 2 different projects, and i get this with both of them.

  • Im unable to quit safari by cmd q or any other method as a result my mac book won't close down

    Im unable to quit safari using CMD Q or any other method as a result my mac book won't close down, any suggestions?

    Hold down Option  Command  Escape  at the same time, In the window that Appears  choose  Force Quit Safari...
    Or you can click on the Apple Icon (top left) > Force Quit > Safari

  • Why is my cache results not highligted anymore?

    why is my cache results not highligted anymore?

    When I do a word/s search.
    Normally the words I typed and searched on Google will be highlighted in different colors each word at the top of the webpage.
    The same color will be highligted for each word/s whenever they appears all throught out the page. when I open it as cached.
    Now the words don't highlight any more and no color even.
    Here below info from About.com about what I am asking about:
    http://google.about.com/od/searchingtheweb/qt/cache_syntax.htm
    ''''''Highlight Keywords With Google Cache Search''''''
    Find Specific Information Faster With Google's Cache
    By Marziah Karch, About.com Guide
    Is it hard to find a specific piece of information on a large Web page? You can simply this by using Google's cached page to highlight your search term.
    As Google indexes Web pages, it retains a snapshot of the page contents, known as a cached page. When a cached page is available, you'll see a Cached link at the bottom of the search result.
    Clicking on the Cached link will show you the page as it was last indexed on Google, but with your search keywords highlighted. This is extremely useful if you want to find a specific piece of information without having to scan the entire page.
    Keep in mind that this shows the last time the page was indexed, so sometimes images will not show up and the information will be out of date. For most quick searches, that doesn't matter. You can always go back to the current version of the page and double check to see if the information has changed.

  • How to install flashplayer on iphone or could you tell me an alternate method to solve this problem?

    Hello,
    I use InDesign to arrange our catalog. After finish it, my boss want to have a website. So I export this file as SWF format(page transitions==>page turn==>SWF only), and a E-book was born.
    My boss like this E-book very much, which can flip like a real book. This E-book become our first official website. We are frustrated that we can not see our E-catalog with iphone just because we can not install flashplayer.
    Would you please tell me a method or an alternate method to solve this problem?
    Thank you very much!
    Best Regards,
    Flora

    There is not, and never has been a Flash Player for iPhones, iPads or iPods.  Steve Jobs was ADAMANT about making iOS incompatible with it in 2006, and Adobe has never developed a Player for iOS. Apple has and recomends "SkyFire" (free in the App store) if you view content that MUST have Flash Player.

  • Crystal Report Caching(?) Problem

    Post Author: cfernald
    CA Forum: General
    We have a web app that launches Crystal Reports (version 10) in the crystal reports viewer that plugs into IE (version 6.0). The whole thing is managed by Crystal Enterprise Server. 
    The problem: You launch a report and let's say it shows you 10 lines of data on the report. You perform some activity in the application that updates the database such that an 11 lines should appear on the report. However, when you run the report again (after closing the IE session from the first viewing) you only see 10 lines (while expecting 11).
    There's a little "dance" I do to "clear cache":  I hit the "Refresh Report" icon (the "lightening bolt" icon), close the browser and then relaunch the report.  This seems to tell the report to re-read the database rather than use the data that was previously retrieved. 
    Clearly the results are being cached somewhere - can someone point to where I might look to control that behavior?
    \cbf

    Post Author: cfernald
    CA Forum: General
    Ok, I did some additional research and learned all about how CR has a CacheServer that can be controlled through the Crystal Management Console. Specifically there is a setting for the CacheServer named: "Oldest on-demand data given to a client" which is expressed as a number of minutes. From the manual:
    This value controls how long report pages and prompt pages can stay in the cache. Once an object has been in the cache for the given number of minutes, it is aged out of the cache and there will be no further cache hits for this object. The default setting is 0 u2013 which means that no prompt pages or report pages will be server from cache. For optimal prompting performance, we recommend setting this value to the largest possible value without impacting data currency. For example, if the data that your reports access changes only once a day, then you can probably set this value to be 8 hours (or 480 minutes). If the data that your reports access changes every 5 seconds, and your report consumers need to see current data, then this value should be set to 0.
    Based on the last sentence above, I want this value set to zero to meet our reporting needs.  However, after setting it to zero and restarting everything, I still see cache entries in the CacheServer directory and Crystal is still caching report data.
    What am I missing?

  • Trying SSH CLI ,  reading command line method is infinte loop problem!

    I am trying excute command and reading result. but reading result part has problem.
    below source is a part of my method.
    try{
                   SessionChannelClient sessionChannel = ssh.openSessionChannel();
                   sessionChannel.startShell();
                   OutputStream out = sessionChannel.getOutputStream();
                   String cmd = s + "\n";
                   out.write(cmd.getBytes());
                   out.flush();
                   InputStream in = sessionChannel.getInputStream();
                   BufferedReader br = new BufferedReader(new InputStreamReader(in));
                   byte buffer[] = new byte[255];
                   String read= "";
                   while (true) {
                        String line = br.readLine();
                        if (line == null)
                             break;
                        str += line;
                        str += "\n";
                   System.out.print(str); //print result
                   sessionChannel.close();
                   in.close();
                   out.close();
              }catch(IOException ee){
                   System.out.println(ee);
              }finally{
                   System.out.println("=============end cmd=============");
    while loop has problem. While statement has infinite loop problem.
    why has this problem?
    anybody, help me please. Thanks for reading .
    Edited by: BreathAir on Aug 5, 2008 12:16 AM

    That loop will loop until readLine() returns null, which will only happen when the other end closes its end of the connection, and it will block while no data is available.

  • POWL: Refresh the cache results of POWL during page load.

    Hi Friends,
    I am using a feeder class for my POWL. Whenever the user clicks opens the POWL, he sees the cached data/results and he is expected to do a manual refresh to see current/new data. I want to eliminate this by refreshing the cache during the page load itself and show user current data. I already know about the exporting parameter in handle_action method which is used to do refresh. But it does not work in this case.
    Pls help.

    Hello Saud,
    In which release you are? in new release you can do refresh by personalization where options are there.
    There are other options also to refresh
    1) By passing URL parameter refreshA=X it will refresh all queies when loading
    2) By passing refreshq=X, it will refresh the current query
    best regards,
    Rohit

  • AirTime / Threads and resulting problems

    Hi,
    i ve written something like a proprietary webservice to authenticate a user. So consider this code:
            MyHTTPRequest request = new PlayerRequest("authenticateLogin");
            request.addParameter("login", playername);
            request.addParameter("password", password);
            request.execute();
            if (!request.isError()) {
                Player[] playerArray = (Player[]) request.createObjectsFromHTTP();
                player = playerArray[0];
            } else {
                player = null;
            }execute() fires a new Thread and does the HTTP stuff. Now the Emulator shows the AIRTIME yes/no Screen. It locks because isError() contains a join(), this is because isError() must wait for the HTTP connection to finish to see what happened.
    When i leave out the join() in the isError() method, i can answer the yes/no screen, but then my isError() gets a NullPointer, because the request is not finished.
    So i have a situation, where i cant go on in my code before the HTTPRequest is ended, but i must be able to answer the yes/no screen.
    I tried several things like a loop in the code above which asks if the thread from PlayerRequest is still running but as soon i do something like this, i got my deadlock on yes/no screen again.
    Any suggestions?

    thats exactly the problem why you have to use Threads. The main thread has first to be finished, before the networking thread can be started. By using join() you make the use of Threads obselete since this must be processed sequentially (because the main thread waits for the networking thread, in your implementation). Finally, for this what you want to do using threads is senseless, but they are mandatory for MIDP 2.0.
    Okay, now for the solution ;)
    You have to initiate the processing of the result from your networking thread. That means the main thread finishes and does nothing (or displays a gauge or sth). After the networking, the networking thread calls something like "processResult()" and thus gives the control back to the main thread. This is the principle of using threads: that they can work asynchronously and (more or less) independent from another.
    hth
    Kay

Maybe you are looking for

  • Cannot connect to server on IPad for yahoo mail

    I can't seem to be able to access my Yahoo mail from my IPad 3 anymore. Any ideas as to what's causing this? I have wifi through a Verizon wireless router and then I have a range extender as well but when I'm in the house I use the Verizon user name

  • 5th gen iPod will not unmount

    I have a 5th gen iPod which I use to backup other data files. The iPod setting within iTunes allow for desktop mounting of the iPod. When I attempt to unmount the iPod from the desktop (with iTunes closed) and only the finder (and dashboard) running,

  • Serious boot issues with Powerbook G3 (Wallstreet II, OS 9.2.2)

    Hello, I have major issues with a Powerbook Wallstreet II I got recently. When it's finally running, it works just as well as Wallstreet Powerbooks usually do, no errors, no crashing, smooth performance, everything fine. But booting it up is, to put

  • HELP! Windows 7 Partition Crashed, Now I Can't Resize My HD!

    I created a Windows 7 Partition using Boot Camp a few months back. Then, suddenly, the Partition crashed. Now, it doesn't even show up in my Disk Utility and I can't remove the partition with Boot Camp or resize the HD partition with Disk Utility. An

  • Bridge + Photoshop buggy

    1.Bridge is slow, it oftens displays a cache error problem on start up even when I have emptied cache. 2.Camera RAW will not display the correct tool eg Adjustment Brush [k] shows the loading circle unless click return. I often have many hundreds of