LMS 3.2 logs "Died method called for process..."

This is a new LMS 3.2 installation on Windows Server 2003 SP2
We are continually seeing messages in the syslog that looks like a process attempting to start then die. (sample of messages attached and pdshow output)
Nothing is obviously wrong at this stage but I haven't gone through and checked ALL functionality.
Anyone seen these messages before and/or give any pointers to start troubleshooting?
Thanks in advance, Graeme

This is perfectly fine.  Each job that is run is registered as a Daemon Manager controlled process.  The job will run, terminate, then get unregistered.  As you run pdshow, you may periodically notice daemons whose name is a number.  These are jobs, and the number is the job ID.

Similar Messages

  • How do I log a support call for Pages with Apple?

    Hello,
    Sorry to have to ask this question here because I suspect it has been covered and I'm searching wrong. Anyway I'm on the Apple support site trying to log a call for some erratic behaviour when Pages tries to sync with iCloud. It seems that no matter what I end up having to enter the serial number of my hardware. Well first off this is a software issue and not a hardware issue - I've been to the Genius Bar and they believe it is Pages failing to sync with the iCloud. I have had both the iPad and the iPhone replaced during the issue and still the same problem. Secondly I have two devices affected by the same Pages behaviour
    Ok so after going around in circles for quite some time and becoming quite frustrated I thought I would come here for some sane suggestions. The first of which I fully expect to be an explanation of how to log a software support call Is there anyone out there who can advise me on how to log my issue please?
    Many thanks in advance,
    Andy

    Do what you did before and, in a second session, look at V$SESSION and other relevant dynamic performance views.

  • What's the chain of methods called for painting components?

    Hi, I'm trying to find out at what point components are painted within a container, as in what methods are being called for that component to be rendered to the graphics context.
    I've tried watching for calls going to paint, paintAll and paintComponents, but if a component has been added to a container it seems that even if I override all of those methods of the container the components that have been added still get displayed.
    So I suppose I have two questions:
    * - What is the chain of methods called when a container is told to paint/repaint itself?
    * - What are the purpose of paintAll & paintComponents, I can't find anything that actually uses these calls.
    Thanks in advance,
    L

    Well it seems that the paint method of the component is being called from sun.awt.RepaintArea.paint(...) which itself is being kicked off from handling an event that's been thrown.
    That's clearer now....but has anyone seen when paintAll, paintComponents or the printXXX counterparts have actually been called by a part Sun's code? I can see how they (Sun) would advocate a practice lke this, but it would seem kinda lame for them to suggest it and then for them not to use it themselves.....that's why I think there's probably something in the JRE that does call these methods at sometime....can anyone cast some light on this?

  • ADF test appmodule generates illegal java method call for Oracle binds

    I'm on the latest (likely) release of JDeveloper 10.1.3.
    ADF Business Components     10.1.3.36.73
    Java™ Platform     1.5.0_06
    Oracle IDE     10.1.3.36.73
    Struts Modeler Version     10.1.3.36.73
    UML Modelers Version     10.1.3.37.32
    Versioning Support     10.1.3.36.73
    Using ADF wizards, I've created a readonly view and modified the sql with a named bind variable.
    The sql is
    SELECT RaDocumentation.RA_DOC_ID,
    RaDocumentation.RA_DOC,
    RaDocumentation.MIME_TYPE
    ,dbms_lob.getlength(RaDocumentation.RA_DOC) bloblength
    FROM RA_DOCUMENTATION RaDocumentation
    where ra_doc_id = :blobKey
    Then I defined blobKey in the bind variables section to be type integer with default value of 0. When I run TEST on the appmodule, which only has this view defined in it, a prompt screen appears to ask for a new value for blobKey. When I press enter, an error screen appears saying
    Business Component Browser - java.lang.NoSuchMethodError
    oracle.jdbc.OraclePreparedStatement.setObjectAtName(Ljava/lang/String;Ljava/lang/Object;)V
    This JDeveloper application is generated "out-of-the-box", in that I did not change any defaults, etc from that which comes defaulted in standard JDeveloper 10.1.3. I did apply the most recent JDeveloper patches from Oracle's download site.
    Any suggestions as to the problem?

    I appreciate your help, but the problem is not yet solved.
    Below is the JDev log generated upon execution of the Browser. I do not see anything unusual.
    The log is the execution of JDev 10.1.3 after what I think is complete removal of all incarnations of anything relating to JDeveloper. All versions of JDev were deleted, all jdevhome directories. I found a OpenBaseJDBC.jar in the java extensions subdirectory and removed it.
    I then downloaded again the production JDev 10.1.3, executed it (it created its jdevhome directory in my home directory), and I updated with the required patch only (patch 5?), and restarted. Created application with a readonly view using a bind variable. Same error appeared. I did not find any suspect .jar files in the java directory.
    ----- JDev log output --
    /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/bin/java -classpath /Applications/JDeveloper.app/Contents/Resources/jdev/BC4J/jlib/bc4jtester.jar:/Applications/JDeveloper.app/Contents/Resources/jdev/jlib/jdev-cm.jar:/Applications/JDeveloper.app/Contents/Resources/jdev/lib/xmlparserv2.jar:/Applications/JDeveloper.app/Contents/Resources/jdev/jlib/help4.jar:/Applications/JDeveloper.app/Contents/Resources/jdev/jlib/share.jar:/Applications/JDeveloper.app/Contents/Resources/jdev/jlib/jewt4.jar:/Applications/JDeveloper.app/Contents/Resources/jdev/jlib/oracle_ice.jar:/Applications/JDeveloper.app/Contents/Resources/jdev/jlib/ojmisc.jar:/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Classes/classes.jar:/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Classes/ui.jar:/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Classes/laf.jar:/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Classes/sunrsasign.jar:/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Classes/jsse.jar:/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Classes/jce.jar:/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Classes/charsets.jar:/MyDeveloper/JDeveloperApplications/Model/classes:/Applications/JDeveloper.app/Contents/Resources/jdev/BC4J/lib/adfshare.jar:/Applications/JDeveloper.app/Contents/Resources/jdev/BC4J/lib/bc4jmt.jar:/Applications/JDeveloper.app/Contents/Resources/jdev/BC4J/lib/collections.jar:/Applications/JDeveloper.app/Contents/Resources/jdev/BC4J/lib/bc4jct.jar:/Applications/JDeveloper.app/Contents/Resources/jdev/jlib/commons-el.jar:/Applications/JDeveloper.app/Contents/Resources/jdev/jlib/jsp-el-api.jar:/Applications/JDeveloper.app/Contents/Resources/jdev/jlib/oracle-el.jar:/Applications/JDeveloper.app/Contents/Resources/jdev/BC4J/lib/adfm.jar:/Applications/JDeveloper.app/Contents/Resources/jdev/BC4J/jlib/adfui.jar:/Applications/JDeveloper.app/Contents/Resources/jdev/BC4J/lib/adfbinding.jar:/Applications/JDeveloper.app/Contents/Resources/jdev/jdbc/lib/ojdbc14dms.jar:/Applications/JDeveloper.app/Contents/Resources/jdev/jdbc/lib/orai18n.jar:/Applications/JDeveloper.app/Contents/Resources/jdev/jdbc/lib/ocrs12.jar:/Applications/JDeveloper.app/Contents/Resources/jdev/diagnostics/lib/ojdl.jar:/Applications/JDeveloper.app/Contents/Resources/jdev/lib/dms.jar:/Applications/JDeveloper.app/Contents/Resources/jdev/BC4J/lib/bc4jdomorcl.jar:/Applications/JDeveloper.app/Contents/Resources/jdev/BC4J/jlib/bc4jdatum.jar: oracle.jbo.jbotester.MainFrame -X 10E38CE209A -H jar:file:/Applications/JDeveloper.app/Contents/Resources/jdev/jdev/doc/studio_doc/ohj/bc4j_f1.jar!/bc4j_f1.hs
    2006-10-11 14:16:44.546 java[717] CFLog (0): CFMessagePort: bootstrap_register(): failed 1103 (0x44f), port = 0x13703, name = 'java.ServiceProvider'
    See /usr/include/servers/bootstrap_defs.h for the error codes.
    2006-10-11 14:16:44.547 java[717] CFLog (99): CFMessagePortCreateLocal(): failed to name Mach port (java.ServiceProvider)
    BC4J Tester exit code(0)
    -- JDev log output end --

  • Logging method calls

    Hi all!
    I'm working on a complex java system and have problems debugging it. One of the problems is, that sometimes the program stops with a NullPointerException. Unfortunately this happens in third party code, which I do not have as source. However, I'm sure that the bug is caused by a module developed by my as exchanging this module with another implementation stops the problem.
    Is there an easy way to generate a list of method calls for an entire run of a program? At the time the exception is raised, none of my methods remains in the call stack, i.e. the exception is triggered by the foreign code, but probably caused by a value returned earlier from one of my methods. I would therefore like to see what methods have been called before the exception is triggered.
    I'm currently working with JBuilder 6. It offers a debugger, but this debugger is terrible slow and very bad when the code that is to debug is not available. You could set a method breakpoint for every method I have implemented, but this would take ages. Even with only one such exception defined, the programm takes several minutes in debug mode, while it usually takes only a fraction of a second. This seems to be completely unworkable. Another thing I have tried was the built-in profiler of the JVM, but it shows results in an aggregated and messy way, not much of a help either.
    Any better tools/techniques out there?
    Thanx in advance,
    Mathias

    A method for writing to a log file is not a problem, but I would need to add at least one line of code for every
    of my methods and, more important, a meaningful log message like the method name and arguments.
    One of the reasons I decided not to implement this, was the impossibility to determine the name or signature
    of the current method automatically.Below the code I wrote for my dissertation project. I assert my authorship and copyright of this code, and hereby grant anyone who wants it permission to reproduce this and to create derivatives. It determines the name of the current method automatically, and runs under Java 1.1 (Microsoft machine - I think the Sun machine dislikes using null as the argument for the StringStream constructor, but I wasn't worried about fixing that so haven't investigated too closely). The Tracer.enter() method appends the method name and "{" to the log file. It's proof of concept - I may write an improved version after my exams. Comments cut short to avoid annoying people who don't want to scroll too far.
    import java.io.*;
    public abstract class Tracer
        static File trace_file;
        static FileWriter fw;
        static final int METHOD = 0;
        static final int FLOW = 2;
        static final int MAJOR = 4;
        static final int MINOR = 6;
        static final int trace_level = 7;
        /* Params:    IN  filename    - a String containing the desired name for */
        /*                              the trace file.                          */
        public static void open(String filename)
            try
                trace_file = new File(filename);
                fw = new FileWriter(trace_file);
            catch (IOException ioe)
                System.out.println("IOException in Tracer.open()");  
        /* Params:    IN  s           - the String containing the trace message  */
        /*            IN  level       - the level of detail of the message       */
        /* Operation: If the specified level is sufficiently low, this method    */
        /*            constructs a Throwable and processes its stack trace to    */
        /*            find the name of the method which called trace.  It then   */
        /*            writes this method name and the trace message to the trace */
        /*            file, terminating the line with a Microsoft EOL (LF-CR).   */
        private static void trace(String s, int level)
            if (level <= trace_level)
                StringStream stringStream = new StringStream(null);
                Throwable bomb = new Throwable();
                bomb.printStackTrace(stringStream);
                String method = stringStream.getMethod();
                try
                    fw.write(method+"  "+s + "\015\012");
                    fw.flush();
                catch (IOException ioe)
                    System.out.println("IOException in Tracer.trace()");  
        /* Operation: Closes the FileWriter and sets the File and FileWriter to  */
        /*            null.                                                      */
        public static void close()
            try
                fw.close();
            catch (IOException ioe)
                System.out.println("IOException in Tracer.close()");  
            trace_file = null;
            fw = null;
        /* Operation: Calls trace with message "{" and trace level METHOD.  This */
        /*                method should be called whenever a method is entered.  */
        public static void enter(String method)
            trace("{", METHOD);
        /* Operation: Calls trace with message "}" and trace level METHOD.  This */
        /*            method should be called just before any return statement,  */
        /*            or before the final } of a method with return type void.   */
        public static void exit()
            trace("}", METHOD);
        /* Params:    IN  flow_statement                                         */
        /*                            - a description of the branch just taken   */
        /* Operation: Calls trace with message flow_statement and trace level    */
        /*            FLOW.  NB This method should be called at the start of any */
        /*            block except a method body, when enter should be called.   */
        public static void flow(String flow_statement)
            trace(flow_statement, FLOW);  
        /* Operation: Calls trace with message major_statement and trace level   */
        /*            MAJOR.  This method should be used for displaying the      */
        /*            results of important steps.                                */
        public static void major(String major_statement)
            trace(major_statement, MAJOR);
        /* Operation: Calls trace with message minor_statement and trace level   */
        /*            MINOR.  This method should be used for displaying the      */
        /*            results of minor steps.  It would probably be overkill to  */
        /*            call minor after every single statement.                   */
        public static void minor(String minor_statement)
            trace(minor_statement, MINOR);
    import java.io.*;
    /* This class, which extends PrintStream, exists to allow me to get the   */
    /* name of the method invoking trace by creating a Throwable and          */
    /* examining its stack trace.  This is more reliable than tracking the    */
    /* stack myself.                                                          */
    class StringStream extends PrintStream
        StringBuffer sb = new StringBuffer();
        int state = 0;
        public StringStream(OutputStream out)
            super(out);
        public StringStream(OutputStream out,
                            boolean autoFlush)
            super(out, autoFlush);
        String getMethod()
            String return_value = sb.toString();
            sb = new StringBuffer();
            state = 0;
            return return_value;
        public void print(char[] chars)
            for (int j = 0; j < chars.length; j++)
                print(chars[j]);
        public void print(char ch)
            switch (state)
                case 0:
                case 1:
                case 2:
                    if (ch == '\t')
                        state++;
                    break;
                case 3:
                    if (ch == ' ')
                        state++;
                    break;
                case 4:
                    if (ch == ' ')
                        state++;
                    else if (ch == '/')
                        sb.append('.');
                    else
                        sb.append(ch);
                    break;
                default:
                    // do nothing
    }

  • Dynamic method calls in bounded task flows?

    Hi!
    I have the following scenario:
    We are developing a framework in which we would include modules as ADF libraries (as JAR files) with bounded task flows. This framework contains a bean class with bindings for some UI components in framework which I enable or disable (depends on user action). That is the main reason bean class should be present in framework application.
    I have a bounded task flow in every module which needs to call a method in bean with UI component's bindings that would enable or disable that component.
    How can I achieve that? To pass bean as a parameter into bounded task flow and then call its methods? That is dynamic method calls for bean.
    I'm using JDeveloper 11.1.2.1.0
    Thanks for your help
    Regards, Marko

    Hi,
    I explained this; +"I have a bounded task flow in every module which needs to call a method in bean with UI component's bindings that would enable or disable that component. How can I achieve that? To pass bean as a parameter into bounded task flow and then call its methods?"+ a couple of times already (not sure if it was all for you) and don't think I change my position here. I also explained how to use a ValueExpression to lookp a managed bean containing component bindings (should be in requestscope).
    Frank

  • Passing a method call to a facelet tag

    Hello,
    I am trying to create a JSF confirmation box that replaces the Javascript confirm() function. I am using Seam and Rich Faces 3.2.1. The confirm box is a facelet tag that pops up a modal box with 'cancel' and a 'continue' buttons. Everything is working correctly except for one crucial piece; passing the method call for continue button.
    Here is the set up for the facelets tag in the main xhtml page:
    <at:confirm
        id="confirm"
        title="Confirm"
        message="Do you want to continue"
        buttonText="Continue"
        backingBean="#{confirmAction}"
        method="testMethodTwo"
    />Here is the code for the button inside the facelets tag:
    <a4j:commandLink
        styleClass="rdSplGr1"
        href="#"
        action="#{backingBean[method]}">
        <s:span>#{buttonText}</s:span>
    </a4j:commandLink>The method simply does nothing when the use clicks the button. I am assuming this is due to the lack of "()" however there does not seem to be a way to get those in there. I have tried the following:
    1) placing the parens like this - method="testMethodTwo()"
    2) placing the parens like this - action="#{backingBean[method]()}"
    The first does nothing, the second causes an EL exception.
    I know that it has nothing to do with the modal as I have also placed a button like this into the modal:
    <a4j:commandLink
        styleClass="rdSplGr1"
        href="#"
        action="#{confirmAction.testMethodOne()}">
         <s:span>MethodOne</s:span>
    </a4j:commandLink>That button as you can see has what I am trying to create dynamically and it works like a charm.
    So how do I pass a method call correctly? Or if that is impossible how do I solve the problem of having a the continue button having a different method assigned to it?
    Thanks for any insight into this.
    Edited by: Rhythmicdevil on Aug 4, 2008 7:57 AM

    I agree, reflection should be a last resort. An
    interface would not be useful if you don't know what
    method you want to invoke at compile time. Interfaces
    are useful when you know the method you want to
    invoke, but not the class.That's not true. This is a really lame-ass example but it shows the point.
    public interface RuntimeMethod
       public void method();
    class AClass {
       public static void main(Sting[] args)
          new AClass.handleAtRuntime(
             Factory.getRuntimeMethod(Integer.parse(args[0])));
       public void handleAtRuntime(RuntimeMethod runtime)
          runtime.method();
    class Factory
       public static getRuntimeMethod(int method)
          switch(method)
             case 0: return new RuntimeMethod
                public void method()
                   methodA();
             case 2: return new RuntimeMethod
                public void method()
                   methodB();
             default:
                throw new IllegalArgumentException("bad input");
    }

  • A tricky way to twick ValueBinding language to bind a method call

    Here is the scenario:
    I'd like component can bind value to method call(with parameters) to a java instance, of course including backingBean.
    I wish this solution would be useful, especially when you are working in iteration component such as ForEach, TreeView or DataTable, EL ValueBinging language might be too restricted to complex expression. This way, you can pass iteration items as parameters into a method can and return a value to you page by valuebinding language
    In JSP:
        <h:outputText value="#{Page1.callHelper[Page1]['targetMethod']['James'][Page1.callEnd]}"/>In PageBean:
         public String targetMethod(String name){
             return "Hello, " + name +"!";
        private CallHelper callHelper = new CallHelper();
         public CallHelper getCallHelper() {
              return callHelper;
         public void setCallHelper(CallHelper callHelper) {
              this.callHelper = callHelper;
         private CallEnd callEnd = new CallEnd();
         public CallEnd getCallEnd() {
              return callEnd;
         public void setCallEnd(CallEnd callEnd) {
              this.callEnd = callEnd;
         }Util classes:
    import java.lang.reflect.InvocationTargetException;
    import java.lang.reflect.Method;
    import java.util.ArrayList;
    import java.util.LinkedHashMap;
    import java.util.List;
    import java.util.Map;
    public class CallHelper extends LinkedHashMap {
         private CallHelper parent;
         public Object get(Object key){
              if(key instanceof CallEnd)return getRoot().methodCall();
              else{
                   Object value = super.get(key);          
                   if(value == null){
                        value = new CallHelper();
                        put(key, value);
                        ((CallHelper)value).parent = this;
                   return value;
         public boolean containsKey(Object key){
              return true;
         public boolean realContainsKey(Object key){
              return super.containsKey(key);
        protected CallHelper getRoot(){
             CallHelper root = this;
             if(root.parent==null)return root;
             else return root.parent.getRoot();
         protected Object methodCall(){
              Object result = null;
             List callParameters = new ArrayList(2);
             listCallParameters(callParameters, this);
             if(callParameters.size()>1){
                  Object instance = callParameters.get(0);
                  String methodName = callParameters.get(1).toString();
                  List methodParameters = new ArrayList();
                  for(int i=2; i<callParameters.size(); i++){
                       methodParameters.add(callParameters.get(i));
                  Method method = findMethod(instance, methodName, methodParameters);
                  if(method != null){
                       try {
                             result = method.invoke(instance, methodParameters.toArray());
                        } catch (IllegalArgumentException e) {
                        } catch (IllegalAccessException e) {
                        } catch (InvocationTargetException e) {
              this.clear();
              return result;
         private void listCallParameters(List list, Map map){
              if(map==null || !map.keySet().iterator().hasNext())return;
              Object key = map.keySet().iterator().next();
              if(key instanceof CallEnd)return;
              list.add(key);
              listCallParameters(list, (Map)map.get(key));
         private Method findMethod(Object instance, String methodName, List parameters){
              Method result = null;
              Method[] methods = instance.getClass().getMethods();
              for(int i=0; i<methods.length; i++){
                   if(methods.getName().equals(methodName)){
                        System.out.println(methodName);
                        Class[] paraClasses = methods[i].getParameterTypes();
                        if(paraClasses.length==parameters.size()){
                             boolean match = true;
                             for(int j=0; j<paraClasses.length; j++){
                                  if(parameters.get(j)!=null && !paraClasses[j].isInstance(parameters.get(j))){
                                       match = false;
                                       break;
                             if(match){
                                  result = methods[i];
                                  break;
              return result;
    public class CallEnd {
    Improvement:
    Anyone can make it thread safety and bind callhelper and callend directly to FacesContext properties rather than each backingBean.
    Have fun!
    And feel free to contect me at:
    [email protected]
    [email protected]

    You must seperate your parameter preparing and action method calling for sure.
    It depends on what kind of parameters you need to pass in:
    1. If action method is bound to several buttons, and it just wants to know which button was clicked, you can set actionListener to prepare it for you. Because the event includes the information you need.
    2. For other kinds of parameters, you can use ValueBinding Language to bind parameter values to backingBean, then the action method(without parameters) can pick parameters up from backingBean.

  • Failed to wait for process condition: errno(22).

    Hello,
    I am experiencing some failures with FMS 3.5.1.
    Searched the logs and it appears the following error repeats itself more than 20 times per second in the admin logs:
    Failed to wait for process condition: errno(22).
    Can anyone offer some info on this error ?
    Thanks

    check that:
    http://kb2.adobe.com/cps/407/kb407245.html

  • Best practice for method calling on objects within a collection.

    Hi guys
    As you may be aware, based on my other thread here. I'm designing a card game in Java. I was hoping for some advice on the best practise on how methods should be called on a custom Object contained within a custom Collection.
    I have an instance variable for the Deck class as follows: List<Card> deckWhen creating an instance of the class I use deck = new ArrayList<Card>();So I have a Deck which only holds Card objects. My question is, for the Card methods, should I call them on the Card objects after 'getting' the Cards from the Deck or should I write methods within the Deck class which handles this method calling. Code explanation is as follows:
    Deck standardDeck = new Deck();I want to retrieve the suit value of a card within the deck. Is this the best way to do it this way:
    standardDeck.getCardAt(50).getSuit();
    //getCardAt is a method within the Deck class, getSuit() is a method within the Card classor this way:
    standardDeck.getSuitForCardAt(50);
    //getSuitForCardAt() is a method within the Deck class. This method calls the getSuit() method within its method body.Cheers for any help guys.
    Edited by: Faz_86 on Jul 10, 2010 9:53 AM

    Hey Saish
    Thanks for the response.
    My Card class does indeed override hashCode(), equals() and toString().
    The reason I am asking a card from the deck for its Suit is simply because of the rules of the game being played. The game I made is a 'Card Shredding' game where a player attempts to remove as many cards from their hand during each turn. The first to remove all their cards is the winner.
    When the game starts, two decks are created. A standard 52 card deck and an empty deck. Then 8 cards are dealt to each player and one card is dealt into the empty deck. The suit and value of the card on the empty deck called the 'shredding deck' dictates which moves are valid during each turn; The played card must match the Suit or the Value of the current card on the 'shredding deck'
    For example:
    Card on the empty deck = 8 of Spades
    The only card from a players hand which can be removed are any Spade or an Eight of any suit.
    Going back to the Deck.getSuitOfCardAtIndex(int index) , this method is needed because both the AI player and human player need to have the ability to take a look at the cards which have been added to the 'shredding deck'. Again this is because of the rules of the game. Therefore I need a method to take a look at the Suit and Value for any card in the 'shredding deck'.
    Taking all this into account, so far I have the following in my Deck class. Please comment on my design so far. As you can see I've tried to follow the Law Of Demter by creating many little wrapper methods. I understand totally wh getters and setters are bad but I cannot come up with a design solution to achieve what I need to based on the rules of the game without users getters. - Any tips on this would be great.
         public Card dealCard()
              Card cardToDeal = deck.remove(0);
              return cardToDeal;
         public void addCard(Card usedCard) //This method is used to add 'used' cards to the deck.
              deck.add(usedCard);
         public Card getFaceCard() //Returns the current face up playing card
              Card faceCard = deck.get(deck.size()-1);
              return faceCard;
         public int getFaceCardValue()
              int faceCardValue = deck.get(deck.size()-1).getValue();
              return faceCardValue;
         public int getFaceCardSuit()
              int faceCardSuit = deck.get(deck.size()-1).getSuit();
              return faceCardSuit;
         public String getFaceCardName()
              String faceCardName = deck.get(deck.size()-1).toString();
              return faceCardName;
         public Card getCardAt(int position) //Returns the current face up playing card
              Card card = deck.get(position);
              return card;
         public int getFaceCardValueAt(int position)
              int cardValue = deck.get(position).getValue();
              return cardValue;
         public int getFaceCardSuitAt(int position)
              int cardSuit = deck.get(position).getSuit();
              return cardSuit;
         public String getFaceCardNameAt(int position)
              String cardName = deck.get(position).toString();
              return cardName;
         public int getDeckSize() //When recycling cards, the size of the deck is needed to determine the best time to add more cards.
              return deck.size();
         }

  • Method calls in switch and for statements

    I have 2 questions concerning method calls in switch and for statements. Consider these two chunks of code:
    1)
         switch (foo.getIntegerValue()){
              case 1:
              case 2:
         }My question is, is getIntegerValue() being called for every case statement (since it has to compare with each case) or is the method called only once?
    2)
    for (Foo bla : xyz.compileFoos()) {
    }Is compileFoos called once or on every iteration?
    I assume it gets called only once but I would like to be sure. The reason I ask is of course to avoid multiple method calls.
    any help is appreciated

    sdb2 wrote:
    I have 2 questions concerning method calls in switch and for statements. Consider these two chunks of code:
    1)
         switch (foo.getIntegerValue()){
              case 1:
              case 2:
         }My question is, is getIntegerValue() being called for every case statement (since it has to compare with each case) or is the method called only once?
         Once, and the value returned compared to each "case" in turn.
    2)
    for (Foo bla : xyz.compileFoos()) {
    }Is compileFoos called once or on every iteration?
    I assume it gets called only once but I would like to be sure. The reason I ask is of course to avoid multiple method calls.
    any help is appreciatedAlso once, and the returned list/set/array is iterated over.

  • Backing file init method always called for proxy portlets

    Hello,
    We are currently using Weblogic Portal 10 MP1. Deployed within our Portal EAR is a local proxy portlet and attached to this proxy portlet is a backing file, which currently implements the init() and prerender() methods from the backing interface.
    When this is placed in a page that is within a desktop, the init() method is always invoked no matter which page you access within the desktop. As I understand it from the documentation, if you have "tree optimization" turned on, then the init() method will only be called when rendering the actual page the proxy portlet is in. But this doesn't seem to be the case. However, if I define a standard Java portlet within the EAR and attach a backing file, then the init() follows the rules when tree optimization is turned on or off.
    Does anyone know if this is a defect within the portal framework, or is this expected and proxy portlets do not follow this rule?
    And I guess, if it is a defect or known limitation, is there a possible workaround? I assume the simplest workaround will be to move the logic into the prerender() method.
    Regards,
    Jonathan

    Hello Jonathan,
    Tree optimization is a tricky thing- some portlets may still be initialized even when the page they are on isn't visible. The rules for which get initialized and which don't are very complicated and depend on a number of things, so it is just best to not rely on the init() method not getting called.
    By far the best option for your use-case is to have the proxy portlet listen to the "onRefresh" event, and move the logic from the backing file's init() method into an event-handling method in the backing file, then have this method called when the refresh event is received. Here's a sample portion of the .portlet file for doing this:
    <netuix:handlePortalEvent event="onRefresh" eventLabel="onRefreshEvent">
        <netuix:invokeBackingFileMethod method="handleRefreshEvent"/>
    </netuix:handlePortalEvent>The "onRefresh" event is sent to the portlet only when it is visible on the page, so it should work perfectly for your use-case.
    Kevin

  • Can I view/print a log of my phone calls for the last year?

    How can I view/print a log of my phone calls for the last year without going into each of my individual monthly bills?

        tinaro, managing your account online at My Verizon is easy breezy. You can view and print your call details for the last 12 months. However, I apologize that you will be required to access these records from your previous billing statements. For your convenience, you may click here to access your account online: http://bit.ly/xB4iTc
    LasinaH_VZW
    Follow us on Twitter @VZWSupport

  • HT1430 Hi I am having a problem to delete call log in iPhone 3GS from last 1 month, I have restore iPhone many times but it doesn't works, pls give me a solution , whenever I try to delete call log it's hang for some time.

    Hi I am having a problem to delete call log in iPhone 3GS from last 1 month, I have restore iPhone many times but it doesn't works, pls give me a solution , whenever I try to delete call log it's hang for some time, pls tell me how to restore call delete option

        jsavage9621,
    It pains me to hear about your experience with the Home Phone Connect.  This device usually works seamlessly and is a great alternative to a landline phone.  It sounds like we've done our fair share of work on your account here.  I'm going to go ahead and send you a Private Message so that we can access your account and review any open tickets for you.  I look forward to speaking with you.
    TrevorC_VZW
    Follow us on Twitter @VZWSupport

  • Time method calls

    What is the best way to time method calls? In my app it is taking a long time to do one specific operation and I wanted to pinpoint what method is holding everything up. Currently I am just using System.currentTimeMillis()...is that the way to go?

    well, i have made a separate utility class called PerformanceLog. it has two methods. start, and stop.
    these methods should be used in pair, and cannot be overlapped.
    when u call start, it records the system.currentTimeInMillis in a private member. then u call stop, it again records the current millis, finds the different and logs it in a separate file, along with a message, indicating whether it was a success, or a failure (a fialure message is usually logged inside a catch statement).
    u can use utility in all ur future projects. dunno for sure, but it should exist in sourceforge.net
    even otherwise, hope this info gives u enuff info to develop ur own.
    regards

Maybe you are looking for

  • Orarrp: How to suppress the extra formfeed in a direct printing.

    We are using ORARRP 1.3.4 to print rrpt files directly to a line printer. After report, the ORARRP mechanism send an extra form feed (as we see at ORARRP debug file). Is there a way to avoid this form feed ? Thanks.

  • Illustrator cant open files and have troubles saving.

    I have some issues with Illustrator CC on my mac. Sometimes when I try to open a file it says its not enough memory to open the drawing. And also, sometimes I cant save my work, I think it is when Illustrator has been open for a while. I cant save, I

  • Need help in uninstalling driver through inf

    Hi, I need help in removing files, deleting service from INF when the device is getting uninstalled through the device manager. In my INF file i have the following section to add service and copy files during installation. [XYZ.NTAMD64] CopyFiles=Dri

  • Help needed with JTable

    Hello... This might be simple but I am not getting any ideas.. I have so many components in a single panel, one of which is a Jtable. While I hit the tab on the keyboard, the control switches from one component to another but when it comes to the Tab

  • Can't boot from older 10.5x CD

    Hi all, I have to run two Mac OS's on my MacBookPro because a piece of software that I use does not support Snow Leopard. I was really happy to find that SL allows repartitioning without having to erase any volumes! (glad I didn't have to try gparted