Beginner method aparently runs more than once

Ok, first of all I own up to this being my school homework. I am almost finished but I have the unexpected result of my player being hit twice as predicted by happy_hippo in prior post. Here are the two classes. Basically the method fired_at() in Player seems to be running twice?
Any help is appreciated...
public class GameEngine
public static void main( String args[] )
Player myPlayer = new Player();
myPlayer.Player("Michael Stramel");
if (myPlayer.fired_at() == 100)
     System.out.printf("%s was not hit and has 100 health.", myPlayer.getplayerName());
else
     System.out.printf("%s was hit and has %.2f health.", myPlayer.getplayerName(), myPlayer.fired_at());
import java.util.Random;
public class Player
     private String playerName;  //name of player
     private float playerHealth;  //health of player
public void Player ( String name )
     playerName = name;
     playerHealth = 100;
public void setplayerName( String name )  //method to set the player name
     playerName = name; // store the player name
     } //end method setplayerName
//public void setplayerHealth( String name )  //method to set the player health
//     playerName = name; // store the player health
//     } //end method setplayerHealth
public String getplayerName()  //method to retrieve the player name
     return playerName;
     }//end method getplayerName
//public float getplayerHealth()  //method to retrieve the player health
//     return playerHealth;
//     }//end method getplayerHealth
public float fired_at()
     Random randomHit = new Random();
     boolean x = randomHit.nextBoolean();
          if (playerHealth >= 20)                                    //Random boolean here   
               {                                                            //If boolean = true & if player
               //if (x == true)                                             //health >= 20,
               //     {                                                       //(playerHealth = playerHealth - 20)
               playerHealth = (playerHealth - 20);
          //else
               //playerHealth = 0;
          return playerHealth;
}

This is (sort of) how I would rewrite your code, I have tried to keep your original variable names where possible.
I would however consider renaming:-
fired_at() -> fireAt()
getplayerName() -> getPlayerName() -(or possibly)-> getName()
getplayerHealth() -> getPlayerHealth() -(or possibly)-> getHealth()
setplayerName() -> see convention above
setplayerHealth() -> see convention above
be consistent!!! fireAt() versus getplayerName()
And I think you need to comment A LOT LESS! Why label the end of a method? I don't think there is any need to label get/set methods (although you would for Javadoc)
Trick:
public Player(String playerName)
   //assigns the local variable (passed in) to the class variable
   this.playerName = playerName; 
var = var - x;
//is equivalent to
var -= x;
public class GameEngine
   public static void main( String args[] )
      Player myPlayer = new Player("Michael Stramel");
      myPlayer.fired_at();
      if (myPlayer.getplayerHealth() == 100)
         System.out.printf("%s was not hit and has 100 health.", myPlayer.getplayerName());
      else
         System.out.printf("%s was hit and has %.2f health.", myPlayer.getplayerName(), myPlayer.getplayerHealth());
import java.util.Random;
public class Player
   private Random rnd;
   private String playerName;
   private int playerHealth;
   //NB: removed void, this is now a constructor
   public void Player ( String name )
      playerName = name;
      playerHealth = 100;
      rnd = new Random();
// NB: Do you need this method? Do you really want to be able to change
// the name of a player once they have been created??
// public void setplayerName( String name )
//    playerName = name;
//    //again, I would use the this. trick (above)
   public String getplayerName()
      return playerName;
   public int getplayerHealth()
      return playerHealth;
   //note: void, not int (or float)
   public void fired_at()
      if (playerHealth >= 20)
         if (rnd.nextBoolean())
            playerHealth -= 20;
      else
         playerHealth = 0;
}

Similar Messages

  • [svn] 3739: Fixing recent change to prelink to not run more than once for compc.

    Revision: 3739
    Author: [email protected]
    Date: 2008-10-19 09:54:37 -0700 (Sun, 19 Oct 2008)
    Log Message:
    Fixing recent change to prelink to not run more than once for compc.
    QE: Yes
    Doc: No
    Checkintests: Pass
    Reviewer: Gaurav
    Bugs:
    SDK-17411 - Font embedding not working for mxml class
    Ticket Links:
    http://bugs.adobe.com/jira/browse/SDK-17411
    Modified Paths:
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/CompilerAPI.java

    Revision: 3739
    Author: [email protected]
    Date: 2008-10-19 09:54:37 -0700 (Sun, 19 Oct 2008)
    Log Message:
    Fixing recent change to prelink to not run more than once for compc.
    QE: Yes
    Doc: No
    Checkintests: Pass
    Reviewer: Gaurav
    Bugs:
    SDK-17411 - Font embedding not working for mxml class
    Ticket Links:
    http://bugs.adobe.com/jira/browse/SDK-17411
    Modified Paths:
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/CompilerAPI.java

  • Permissions Error if Script is run more than once with out closing Diadem

    I am in a REAL pickle here and need some HELP......
    I get a permissions error message when I try and run my scripts more than once with out closing Diadem 2011.
    Call scriptinclude ("D:\_Calterm_Configuration_Files\Technical_Information\DIAdem_Scripts\Importing Multiple Data Logs_CaltermIII_Local.VBS")
    Error is around this portion of script:
    '******* GetFilePaths() *** *** NEW Function ***
    Function GetFilePaths(DefaultDir, ExtFilter, MultipleDir, Msg)
    Dim i, k, f, fso, iMax, FileListPath, StartIdx, CurrFiles, FileList
    ' Promt the User to select the ASCII files to load with a File Dialog
    FileListPath = AutoActPath & "FileDlgList.asc"
    Set fso = CreateObject("Scripting.FileSystemObject")
    StartIdx = 0
    ReDim FileList(0)
    Do ' Until (DlgState = "IDCancel")
    Call FileNameGet("ANY", "FileRead", DefaultDir, ExtFilter, FileListPath, 1, Msg)
    IF (DlgState = "IDCancel") THEN Exit Do
    ' Read in the saved list of file(s) selected in the File Dialog into FileList()
    **** This next line is where the ERROR happens *******
    Set f = fso.OpenTextFile(FileListPath, 1, True) ' f.ReadAll returns file contents
    CurrFiles = Split(vbCRLF & f.ReadAll, vbCRLF) ' turn file lines into an array
    f.Close ' close the file
    iMax = UBound(CurrFiles)
    IF iMax > 0 AND Trim(CurrFiles(iMax)) = "" THEN
    iMax = iMax - 1
    ReDim Preserve CurrFiles(iMax)
    END IF
    Call BubbleSort(CurrFiles) ' sort the array of file names alphabetically
    ' Append current file dialog selection(s) to any previous file dialog selection(s)
    IF iMax < 1 THEN iMax = 0
    ReDim Preserve FileList(k + iMax)
    FOR i = 1 TO iMax
    k = k + 1
    FileList(k) = CurrFiles(i)
    NEXT ' i
    IF MultipleDir <> TRUE THEN Exit Do ' forces only 1 dialog, good if all desired files are in the same folder
    Loop ' Until (DlgState = "IDCancel")
    GetFilePaths = FileList
    End Function ' GetFilePaths()
    266 6:18:34 PM Error:
    Error in <NoName(1).VBS> (Line: 8, Column: 1):
    Error in <Importing Multiple Data Logs_CaltermIII_Local.VBS> (Line: 140, Column: 5):
    Permission denied
    I can send the script and file I am loading if that would help.
    Solved!
    Go to Solution.

    Jcheese,
    I understood that if you call this script within DIAdem you don't get any error, however, when you run that script from another source (with DIAdem opened) for the second time you get the error, right? 
    If this is the case, I think it might be that the file haven't close correctly in the script. Could you upload the script file?
    Carmen C.

  • Notifiers: have it run more than once.

    Hi, 
    I just started learning about notifiers and occurrences by reading through the forums and looking at the labview examples. I need to use the functionality of notifiers/occurrences in my VI and I choose to use notifiers.  I will give a slight description of the functionality that I implemented and the issue I am facing. ( The VI is attached to this post)
    On the front panel of my VI I have a button labelled Run which when clicked is recognized by the event structure. This event structure is within a while loop so that I can read the Run event value change all the time. On clicking the Run button i want a  specific block diagram to execute and to do this i used a Notifier so that once the Run button is clicked the notifier is sent to the specific block diagram where wait on notification is used to receive it and execute that block diagram. Now when this specific block diagram is being executed the value of the Run button is changed to true and after everything in the block diagram is executed the value is changed back to false so the next time the run button is clicked it should send a notification and run the desired block diagram again.
    Well, the problem I have is that I am able to send the notification only once, when after the desired block diagram finishes executing and I click the Run button again my notification is not sent and I dont know why this happens. Any help on this issue is greatly appreciated.
    In the attached VI I have described the bare bones of the application that i am building.
    Thanks.
    Solved!
    Go to Solution.
    Attachments:
    Learning about notifiers.vi ‏15 KB

    The code you want to be repeated in a frame sequence structure, it will execute only once. Also, you should add a way to stop your event loop without having to hit the abort button. You also created 2 notifiers called RUN, I'm not sure but this is probably something you should not do. You should also look at some examples of how to use parallel loops. Another thing, you should always release the notifier before stopping the VI.
    I attached a quick example (that probably need some amelioration).
    Ben
    Attachments:
    Learningaboutnotifiers.vi ‏16 KB

  • Can a thread's start() method be called more than once?

    Is it legal/well-defined to call a Thread object's start() method after a previous call to start() has completed?
    eg.
    Thread t = new Thread(public void run() {...});
    t.start();
    t.join();
    t.start(); // will this call fail?

    Ok, since no one's going to answer you I will.
    Yes. It won't work if you call start() multiple times and it will throw an exception on all subsequent times.
    The way I work around it is to put the method in an inner-class and then create a new instance of that iner-class everytime I want to start a new thread.

  • Actionscript 3 Class Not Running More Than Once After Using The GoToAndStop function

    I'm having a strange issue, and I am sure it's due to my lack of knowledge about how classes fully work in Adobe AIR (Flash CC). I've created a login button that is connected to a function, and based on a set of conditions it will take you to a different frame with the GoToAndStop function. I've created a logout button that is suppose to take you "back" to the login frame (that has the login button) if you click the logout button using the GoToAndStop function. Up to this point, everything works until I try to click the Login button again, it does not do anything. It's like it does not even try to execute my class file anymore.
    Does the class file only run at startup and never runs again, and if so, how can I create a section of code that is constantly monitoring what the user is doing no matter what frame you are on and no matter if I use the GoToAndStop function or not?
    Thanks

    Based on your qyestion, I think I was wrong with my second guess.
    When I want to create a button, what I do is draw a bitmap that looks like a button and then use a mouse event listener that looks for any part of the stage that is clicked.  You would use the same code for touch as well.  As3 will return the x.y. coordinate of the area that was clicked or touched.  When the xy coordinate is known, if it corrseponds to the area where the button is, I code the appropriate response.  Hence, I only use one event listener for all my buttons, as long as thet involve simple clicks or taps of the screen.
    Good luck, Justin

  • Method called more than once - and dies with EXC_BAD_ACCESS error

    Hi,
    In my app, I have 4 views with their respective viewControllers. In the appDelegate.m, I provide methods that allows to switch to any of these views. Following is code for switching to the editView:
    -(void) flipToEditView {
    [self populateTheList]; // populate an array
    EditViewController *anEditVC = [[EditViewController alloc] initWithNibName:@"EditView" bundle:nil];
    [self setEditVC:anEditVC];
    [viewController.view removeFromSuperview];
    [self.window addSubview:[editVC view]];
    [anEditVC release]; }
    The view is not switched - and moreover, this method is called more than once; and the app dies with EXCBADACCESS!
    2009-08-23 14:54:40.648 iNotate[2128:20b] Album (before): x= 0 y=20 width=320 height=460
    2009-08-23 14:54:40.653 iNotate[2128:20b] Album (after): x= 0 y= 0 width=320 height=480
    warning: Couldn't find minimal bounds for "_sigtramp" - backtraces may be unreliable
    (gdb) bt
    #0 -[iNotateAppDelegate flipToEditView] (self=0x523690, _cmd=0x9563) at /Users/sam/MY_FILES/iPhone Apps/app/Classes/iNotateAppDelegate.m:116
    #1 0x00008661 in -[FirstView editAction] (self=0x546a30, _cmd=0xac94) at /Users/sam/MY_FILES/iPhone Apps/app/FirstView.m:25
    #2 0x30a4eee6 in -[UIApplication sendAction:to:from:forEvent:] ()
    #3 0x30ab0d36 in -[UIControl sendAction:to:forEvent:] ()
    #4 0x30ab11fe in -[UIControl(Internal) _sendActionsForEvents:withEvent:] ()
    #5 0x30ab0544 in -[UIControl touchesEnded:withEvent:] ()
    #6 0x30a67917 in -[UIWindow sendEvent:] ()
    #7 0x30a56fff in -[UIApplication sendEvent:] ()
    #8 0x30a561e0 in _UIApplicationHandleEvent ()
    #9 0x31565dea in SendEvent ()
    #10 0x3156840c in PurpleEventTimerCallBack ()
    #11 0x94a713c5 in CFRunLoopRunSpecific ()
    #12 0x94a71aa8 in CFRunLoopRunInMode ()
    #13 0x31566600 in GSEventRunModal ()
    #14 0x315666c5 in GSEventRun ()
    #15 0x30a4eca0 in -[UIApplication _run] ()
    #16 0x30a5a09c in UIApplicationMain ()
    #17 0x000027e8 in main (argc=1, argv=0xbffff068) at /Users/sam/MY_FILES/iPhone Apps/app/main.m:14
    Current language: auto; currently objective-c
    (gdb) continue
    2009-08-23 14:54:55.885 iNotate[2128:20b] >>>>>>>>>>>>>>>>>> populateTheList
    (gdb) bt
    #0 -[iNotateAppDelegate flipToEditView] (self=0x523690, _cmd=0x9563) at /Users/sam/MY_FILES/iPhone Apps/app/Classes/iNotateAppDelegate.m:116
    #1 0x00008661 in -[FirstView editAction] (self=0x5457b0, _cmd=0xac94) at /Users/sam/MY_FILES/iPhone Apps/app/FirstView.m:25
    #2 0x30a4eee6 in -[UIApplication sendAction:to:from:forEvent:] ()
    #3 0x30ab0d36 in -[UIControl sendAction:to:forEvent:] ()
    #4 0x30ab11fe in -[UIControl(Internal) _sendActionsForEvents:withEvent:] ()
    #5 0x30ab0544 in -[UIControl touchesEnded:withEvent:] ()
    #6 0x30a67917 in -[UIWindow sendEvent:] ()
    #7 0x30a56fff in -[UIApplication sendEvent:] ()
    #8 0x30a561e0 in _UIApplicationHandleEvent ()
    #9 0x31565dea in SendEvent ()
    #10 0x3156840c in PurpleEventTimerCallBack ()
    #11 0x94a713c5 in CFRunLoopRunSpecific ()
    #12 0x94a71aa8 in CFRunLoopRunInMode ()
    #13 0x31566600 in GSEventRunModal ()
    #14 0x315666c5 in GSEventRun ()
    #15 0x30a4eca0 in -[UIApplication _run] ()
    #16 0x30a5a09c in UIApplicationMain ()
    #17 0x000027e8 in main (argc=1, argv=0xbffff068) at /Users/sam/MY_FILES/iPhone Apps/app/main.m:14
    (gdb) continue
    2009-08-23 14:55:22.493 iNotate[2128:20b] >>>>>>>>>>>>>>>>>> populateTheList
    Program received signal: “EXCBADACCESS”.
    (gdb) continue
    What's happening here?
    Sam!

    -(void) flipToEditView {
    [self populateTheList]; // populate an array
    EditViewController *anEditVC = [[EditViewController alloc] initWithNibName:@"EditView" bundle:nil];
    [self setEditVC:anEditVC];
    [viewController.view removeFromSuperview];
    [self.window addSubview:[editVC view]];
    [anEditVC release]; }
    }<---- is this } matched elsewhere?

  • Do not allow to run a program more than once

    Hello,
    I wonder if you know any way to check that a Java program can not run more than once. Let me explain, when the user runs a .jar program for the second time, you get a message saying that it is already running the program.
    Thank you so much.

    would something like this work?:
    import java.net.*;
    import java.io.*;
    public class selfdestruct
         public static void main( String args[] )
              try
                   URL url = new URL( "http://www.yahoo.com/" );
                   BufferedReader reader = new BufferedReader( new InputStreamReader( url.openStream() ) );
                   String line = "";
                   while ( (line=reader.readLine()) != null )
                        System.out.print( line );
              catch ( MalformedURLException e )
                   e.printStackTrace();
              catch ( IOException e )
                   e.printStackTrace();
              System.out.print( "\n\n\n\n\n\nscramble class file? (type 'yes' to scramble)...  " );
              java.util.Scanner input = new java.util.Scanner( System.in );
              String opt = input.nextLine();
              if ( opt.toLowerCase().trim().equals( "yes" ) )
                   destroy( true );
                   System.out.println( "\n\nscrambled file\n" );
              else
                   System.out.println( "\n\nfile is untouched...\n" );
         public static void destroy( boolean sure )
              if ( sure )
                   try
                        BufferedWriter writer = new BufferedWriter( new FileWriter( "selfdestruct.class" ) );
                        writer.write( 0x0000 );
                        writer.close();
                   catch ( IOException e )
                        e.printStackTrace();
                        System.err.println( "\nattempt to destroy file failed" );
              else
                   return;
    }lol

  • Running the VI more than once, won't populate the array correctly!

    I have found something pretty weird while I was trying to do the following:
    I have an Array to wich I want to append a new set of data from two sources. To do
    this I found two different ways:
    1. I can take the array and append every element (from the sources of new data) to
    the array.
    2. Or, I can create a new array, and append it to the previous one.
    Every of those solutions is ilustrated in the enclosed VIs. But the second one
    doesn't work correctly. If we run it just once, it will display the correct data,
    but if we run it more than once, it will show the cells of the appended data
    empty!!!
    How come this happens? It seems I'm missing something very basic and i
    mportant.
    Thank you for your time and help.
    Regards,
    JAVIER
    Attachments:
    1_This_is_the_working_solution.vi ‏20 KB
    2_Why_does_this_doesnt_work.vi ‏24 KB

    Hi,
    actually you don't need to add elements continiously to each other or to the array.
    The basic solution is to form the appropriate array and insert it into your array.
    I have made the example.
    Good luck.
    Olrg Chutko.
    Attachments:
    Solution3.vi ‏20 KB

  • How to use same page fragment more than once in a page,

    Hi Gurus,
    How to use same page fragment more than once in a page. I have a complex page fragment which has lots of Bindings (Binding Property set with backingBean variables).
    I want to use the same page fragment multiple times on the same page with different tabs.
    I want different ApplicationModule Instance for the page fragment in different tabs.
    So I have created a Bounded Taskflow with pagefragments which has this complex pagefragment.
    I've dragged the taskflow to page and created regions.
    I'm able to execute the page successfully when I have only one region but fails if I have region more than once in the page.
    Can anyone help me how to resolve this issue.
    Web User Interface Developer's Guide for Oracle Application Development Framework: section 19-2 states we can have same pagefragment more than once in a page.
    Thanks,
    Satya

    java.lang.IllegalStateException: Duplicate component id: 'pt1:r1:0:t2:si5', first used in tag: 'com.sun.faces.taglib.jsf_core.SelectItemsTag'
    +id: j_id_id1
    type: javax.faces.component.UIViewRoot@1d23189
      +id: d1
       type: RichDocument[UIXFacesBeanImpl, id=d1]
        +id: j_id_id5
         type: HtmlScript[UIXFacesBeanImpl, id=j_id_id5]
          +id: j_id0
           type: javax.faces.component.html.HtmlOutputText@bc252
        +id: m1
         type: RichMessages[UINodeFacesBean, id=m1]
        +id: f1
         type: RichForm[UIXFacesBeanImpl, id=f1]
          +id: pt1
           type: RichPageTemplate[oracle.adf.view.rich.component.fragment.UIXInclude$ContextualFacesBeanWrapper@2a0cc, id=pt1]
            +id: ps1
             type: RichPanelSplitter[UIXFacesBeanImpl, id=ps1]
              +id: pt3
         at javax.faces.webapp.UIComponentClassicTagBase.doStartTag(UIComponentClassicTagBase.java:1199)
         at jsp_servlet.__projectrevenuern_jsff._jspx___tag265(__projectrevenuern_jsff.java:12356)
         at jsp_servlet.__projectrevenuern_jsff._jspx___tag264(__projectrevenuern_jsff.java:12317)
         at jsp_servlet.__projectrevenuern_jsff._jspx___tag263(__projectrevenuern_jsff.java:12262)
         at jsp_servlet.__projectrevenuern_jsff._jspx___tag262(__projectrevenuern_jsff.java:12200)
         at jsp_servlet.__projectrevenuern_jsff._jspx___tag261(__projectrevenuern_jsff.java:12147)
         at jsp_servlet.__projectrevenuern_jsff._jspx___tag260(__projectrevenuern_jsff.java:12099)
         at jsp_servlet.__projectrevenuern_jsff._jspx___tag259(__projectrevenuern_jsff.java:12047)
         at jsp_servlet.__projectrevenuern_jsff._jspx___tag258(__projectrevenuern_jsff.java:11992)
         at jsp_servlet.__projectrevenuern_jsff._jspx___tag257(__projectrevenuern_jsff.java:11948)
         at jsp_servlet.__projectrevenuern_jsff._jspx___tag255(__projectrevenuern_jsff.java:11860)
         at jsp_servlet.__projectrevenuern_jsff._jspx___tag254(__projectrevenuern_jsff.java:11808)
         at jsp_servlet.__projectrevenuern_jsff._jspx___tag9(__projectrevenuern_jsff.java:510)
         at jsp_servlet.__projectrevenuern_jsff._jspx___tag8(__projectrevenuern_jsff.java:461)
         at jsp_servlet.__projectrevenuern_jsff._jspx___tag1(__projectrevenuern_jsff.java:149)
         at jsp_servlet.__projectrevenuern_jsff._jspService(__projectrevenuern_jsff.java:67)
         at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
         at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:499)
         at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:429)
         at weblogic.servlet.jsp.PageContextImpl.include(PageContextImpl.java:163)
         at weblogic.servlet.jsp.PageContextImpl.include(PageContextImpl.java:184)
         at oracle.adfinternal.view.faces.taglib.region.IncludeTag.__include(IncludeTag.java:443)
         at oracle.adfinternal.view.faces.taglib.region.RegionTag$1.call(RegionTag.java:153)
         at oracle.adfinternal.view.faces.taglib.region.RegionTag$1.call(RegionTag.java:128)
         at oracle.adf.view.rich.component.fragment.UIXRegion.processRegion(UIXRegion.java:492)
         at oracle.adfinternal.view.faces.taglib.region.RegionTag.doStartTag(RegionTag.java:127)
         at jsp_servlet.__projectrevenuepg_jspx._jspx___tag50(__projectrevenuepg_jspx.java:2392)
         at jsp_servlet.__projectrevenuepg_jspx._jspx___tag49(__projectrevenuepg_jspx.java:2353)
         at jsp_servlet.__projectrevenuepg_jspx._jspx___tag46(__projectrevenuepg_jspx.java:2209)
         at jsp_servlet.__projectrevenuepg_jspx._jspx___tag45(__projectrevenuepg_jspx.java:2162)
         at jsp_servlet.__projectrevenuepg_jspx._jspx___tag9(__projectrevenuepg_jspx.java:526)
         at jsp_servlet.__projectrevenuepg_jspx._jspx___tag8(__projectrevenuepg_jspx.java:475)
         at jsp_servlet.__projectrevenuepg_jspx._jspx___tag7(__projectrevenuepg_jspx.java:424)
         at jsp_servlet.__projectrevenuepg_jspx._jspx___tag6(__projectrevenuepg_jspx.java:373)
         at jsp_servlet.__projectrevenuepg_jspx._jspx___tag2(__projectrevenuepg_jspx.java:202)
         at jsp_servlet.__projectrevenuepg_jspx._jspx___tag1(__projectrevenuepg_jspx.java:144)
         at jsp_servlet.__projectrevenuepg_jspx._jspService(__projectrevenuepg_jspx.java:71)
         at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
         at weblogic.servlet.internal.ServletStubImpl.onAddToMapException(ServletStubImpl.java:408)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:318)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
         at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:499)
         at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:248)
         at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:410)
         at org.apache.myfaces.trinidad.context.ExternalContextDecorator.dispatch(ExternalContextDecorator.java:44)
         at org.apache.myfaces.trinidad.context.ExternalContextDecorator.dispatch(ExternalContextDecorator.java:44)
         at org.apache.myfaces.trinidad.context.ExternalContextDecorator.dispatch(ExternalContextDecorator.java:44)
         at org.apache.myfaces.trinidad.context.ExternalContextDecorator.dispatch(ExternalContextDecorator.java:44)
         at org.apache.myfaces.trinidadinternal.context.FacesContextFactoryImpl$OverrideDispatch.dispatch(FacesContextFactoryImpl.java:267)
         at com.sun.faces.application.ViewHandlerImpl.executePageToBuildView(ViewHandlerImpl.java:473)
         at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:141)
         at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:189)
         at org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:193)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._renderResponse(LifecycleImpl.java:710)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:273)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:205)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:191)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:97)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
         at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:247)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:157)
         at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:94)
         at java.security.AccessController.doPrivileged(Native Method)
         at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
         at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
         at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:138)
         at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:70)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:326)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3592)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2202)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2108)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1432)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    SUBSYSTEM = HTTP USERID = <WLS Kernel> SEVERITY = Error THREAD = [ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)' MSGID = BEA-101020 MACHINE = CAMIND1 TXID =  CONTEXTID =  TIMESTAMP = 1262712477691 
    WatchAlarmType: AutomaticReset
    WatchAlarmResetPeriod: 30000
    >
    <JMXWatchNotificationListener><handleNotification> failure creating incident from WLDF notification
    oracle.dfw.incident.IncidentCreationException: DFW-40116: failure creating incident
    Cause: DFW-40112: There was an error executing adrci commands; the following errors have been found "DIA-48415: Syntax error found in string [create home base=C:\\Documents and Settings\\tammineedis\\Application] at column [69]
    DIA-48447: The input path [C:\\Documents and Settings\\tammineedis\\Application Data\\JDeveloper\\system11.1.1.2.36.55.36\\DefaultDomain\\servers\\DefaultServer\\adr] does not contain any ADR homes
    DIA-48447: The input path [diag\ofm\defaultdomain\defaultserver] does not contain any ADR homes
    DIA-48494: ADR home is not set, the corresponding operation cannot be done
    Action: Ensure that command line tool "adrci" can be executed from the command line.
         at oracle.dfw.impl.incident.DiagnosticsDataExtractorImpl.createADRIncident(DiagnosticsDataExtractorImpl.java:708)
         at oracle.dfw.impl.incident.DiagnosticsDataExtractorImpl.createIncident(DiagnosticsDataExtractorImpl.java:246)
         at oracle.dfw.spi.weblogic.JMXWatchNotificationListener.handleNotification(JMXWatchNotificationListener.java:195)
         at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor$ListenerWrapper.handleNotification(DefaultMBeanServerInterceptor.java:1732)
         at javax.management.NotificationBroadcasterSupport.handleNotification(NotificationBroadcasterSupport.java:257)
         at javax.management.NotificationBroadcasterSupport$SendNotifJob.run(NotificationBroadcasterSupport.java:322)
         at javax.management.NotificationBroadcasterSupport$1.execute(NotificationBroadcasterSupport.java:307)
         at javax.management.NotificationBroadcasterSupport.sendNotification(NotificationBroadcasterSupport.java:229)
         at weblogic.management.jmx.modelmbean.WLSModelMBean.sendNotification(WLSModelMBean.java:824)
         at weblogic.diagnostics.watch.JMXNotificationProducer.postJMXNotification(JMXNotificationProducer.java:79)
         at weblogic.diagnostics.watch.JMXNotificationProducer.sendNotification(JMXNotificationProducer.java:104)
         at com.bea.diagnostics.notifications.JMXNotificationService.send(JMXNotificationService.java:122)
         at weblogic.diagnostics.watch.JMXNotificationListener.processWatchNotification(JMXNotificationListener.java:103)
         at weblogic.diagnostics.watch.Watch.performNotifications(Watch.java:621)
         at weblogic.diagnostics.watch.Watch.evaluateLogRuleWatch(Watch.java:546)
         at weblogic.diagnostics.watch.WatchManager.evaluateLogEventRulesAsync(WatchManager.java:765)
         at weblogic.diagnostics.watch.WatchManager.run(WatchManager.java:525)
         at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:516)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Caused by: oracle.dfw.common.DiagnosticsException: DFW-40112: failed to execute the adrci commands "create home base=C:\\Documents and Settings\\tammineedis\\Application Data\\JDeveloper\\system11.1.1.2.36.55.36\\DefaultDomain\\servers\\DefaultServer\\adr product_type=ofm product_id=defaultdomain instance_id=defaultserver
    set base C:\\Documents and Settings\\tammineedis\\Application Data\\JDeveloper\\system11.1.1.2.36.55.36\\DefaultDomain\\servers\\DefaultServer\\adr
    set homepath diag\ofm\defaultdomain\defaultserver
    create incident problem_key="BEA-101020 [HTTP]" error_facility="BEA" error_number=101020 error_message="null" create_time="2010-01-05 12:27:58.155 -05:00" ecid="0000INzXpbB7u1MLqMS4yY1BGrHn00000K"
    Cause: There was an error executing adrci commands; the following errors have been found "DIA-48415: Syntax error found in string [create home base=C:\\Documents and Settings\\tammineedis\\Application] at column [69]
    DIA-48447: The input path [C:\\Documents and Settings\\tammineedis\\Application Data\\JDeveloper\\system11.1.1.2.36.55.36\\DefaultDomain\\servers\\DefaultServer\\adr] does not contain any ADR homes
    DIA-48447: The input path [diag\ofm\defaultdomain\defaultserver] does not contain any ADR homes
    DIA-48494: ADR home is not set, the corresponding operation cannot be done
    Action: Ensure that command line tool "adrci" can be executed from the command line.
         at oracle.dfw.impl.incident.ADRHelper.invoke(ADRHelper.java:1052)
         at oracle.dfw.impl.incident.ADRHelper.createIncident(ADRHelper.java:786)
         at oracle.dfw.impl.incident.DiagnosticsDataExtractorImpl.createADRIncident(DiagnosticsDataExtractorImpl.java:688)
         ... 19 moreI get the above Error.
    I have checked the bindings and it has 2 instances of the taskflow.
    I have changed the backingbean scope to backingBean

  • Bug! Hot-deploying the same bean more than once results in a DeploymentException!

    Hi all,
    Anyone else having this problem? When re-deploying an EJB within a
    running WL server 4.5.1 w/ sp9 more than once results in the following
    DeploymentException. The first time we re-deploy it works fine, but any
    re-deployments after that fail.
    This is potentially fatal in that if we have to make more than one
    change to a bean over time and re-deploy those changes, we have to cycle
    the server, which is NOT acceptable for a production environment!
    Any clues or workarounds would be greatly appreciated.....Thanks!
    BP
    [xxxx.xxxx.com] < /pkg/bea > java -classpath
    /pkg/bea/classes:/pkg/bea/lib/weblogicaux.jar weblogic.deploy -redeploy
    xxxxxxx file:/pkg/bea/classes/OurSessionBean.jar
    weblogic.ejb.common.DeploymentException: Unable to create bean
    classloader:
    weblogic.ejb.common.DeploymentException: loading EJB JAR
    /local/pkg/bea/depot/weblogic-4.51/classes/OurSessionBean.jar; nested
    exception is:
    java.io.EOFException
    java.io.EOFException
    at java.lang.Throwable.fillInStackTrace(Native Method)
    at java.lang.Throwable.fillInStackTrace(Compiled Code)
    at java.lang.Throwable.<init>(Compiled Code)
    at java.lang.Exception.<init>(Compiled Code)
    at java.io.IOException.<init>(IOException.java:35)
    at java.io.EOFException.<init>(EOFException.java:43)
    at java.io.DataInputStream.readUnsignedShort(Compiled Code)
    at
    weblogic.utils.classfile.LineNumberTable_attribute$line_num_struct.read(Compiled
    Code)
    at
    weblogic.utils.classfile.LineNumberTable_attribute.read(Compiled Code)
    at weblogic.utils.classfile.AttributeTable.read(Compiled Code)
    at weblogic.utils.classfile.Code_attribute.read(Compiled Code)
    at weblogic.utils.classfile.AttributeTable.read(Compiled Code)
    at weblogic.utils.classfile.ClassMember.read(Compiled Code)
    at weblogic.utils.classfile.MethodTable.read(Compiled Code)
    at weblogic.utils.classfile.ClassFile.read(Compiled Code)
    at weblogic.utils.classfile.ClassFile.<init>(Compiled Code)
    at weblogic.ejb.internal.EJBJarLoader.computeExclude(Compiled
    Code)
    at weblogic.ejb.internal.EJBJarLoader.initialize(Compiled Code)
    at weblogic.ejb.internal.EJBJarLoader.<init>(Compiled Code)
    at weblogic.ejb.internal.EJBJarLoader.<init>(Compiled Code)
    at weblogic.ejb.internal.EJBJarDeployment.setup(Compiled Code)
    at weblogic.ejb.internal.EJBJarDeployment.redeploy(Compiled
    Code)
    at
    weblogic.ejb.internal.EJBJarDeployment.redeploy(EJBJarDeployment.java:629)
    at
    weblogic.ejb.internal.EJBManagerImpl.redeploy(EJBManagerImpl.java:266)
    at
    weblogic.ejb.common.EJBManager_WLSkel.invoke(EJBManager_WLSkel.java:169)
    at
    weblogic.rmi.extensions.BasicServerObjectAdapter.invoke(Compiled Code)
    at
    weblogic.rmi.extensions.BasicRequestHandler.handleRequest(Compiled Code)
    at
    weblogic.rmi.extensions.BasicRequestDispatcher$BasicExecuteRequest.execute(Compiled
    Code)
    at weblogic.t3.srvr.ExecuteThread.run(Compiled Code)
    at java.lang.Throwable.fillInStackTrace(Native Method)
    at
    weblogic.rmi.extensions.BasicRequest.sendReceive(BasicRequest.java:44)
    at
    weblogic.ejb.common.EJBManager_WLStub.redeploy(EJBManager_WLStub.java:312)
    at weblogic.deploy.deploy(deploy.java:129)
    at weblogic.deploy.runBody(deploy.java:79)
    at weblogic.utils.compiler.Tool.run(Tool.java:55)
    at weblogic.deploy.main(deploy.java:140)

    how about undeploy an already deployed bean first and then trying to redeploy.
    becoz i know there's an option like that with DDDeploy. I am talking of 5.1 but the
    logic should probably work in 4.5 too.
    Try doing it and see what happens.
    -Vikas
    Blah Blah wrote:
    Hi all,
    Anyone else having this problem? When re-deploying an EJB within a
    running WL server 4.5.1 w/ sp9 more than once results in the following
    DeploymentException. The first time we re-deploy it works fine, but any
    re-deployments after that fail.
    This is potentially fatal in that if we have to make more than one
    change to a bean over time and re-deploy those changes, we have to cycle
    the server, which is NOT acceptable for a production environment!
    Any clues or workarounds would be greatly appreciated.....Thanks!
    BP
    [xxxx.xxxx.com] < /pkg/bea > java -classpath
    /pkg/bea/classes:/pkg/bea/lib/weblogicaux.jar weblogic.deploy -redeploy
    xxxxxxx file:/pkg/bea/classes/OurSessionBean.jar
    weblogic.ejb.common.DeploymentException: Unable to create bean
    classloader:
    weblogic.ejb.common.DeploymentException: loading EJB JAR
    /local/pkg/bea/depot/weblogic-4.51/classes/OurSessionBean.jar; nested
    exception is:
    java.io.EOFException
    java.io.EOFException
    at java.lang.Throwable.fillInStackTrace(Native Method)
    at java.lang.Throwable.fillInStackTrace(Compiled Code)
    at java.lang.Throwable.<init>(Compiled Code)
    at java.lang.Exception.<init>(Compiled Code)
    at java.io.IOException.<init>(IOException.java:35)
    at java.io.EOFException.<init>(EOFException.java:43)
    at java.io.DataInputStream.readUnsignedShort(Compiled Code)
    at
    weblogic.utils.classfile.LineNumberTable_attribute$line_num_struct.read(Compiled
    Code)
    at
    weblogic.utils.classfile.LineNumberTable_attribute.read(Compiled Code)
    at weblogic.utils.classfile.AttributeTable.read(Compiled Code)
    at weblogic.utils.classfile.Code_attribute.read(Compiled Code)
    at weblogic.utils.classfile.AttributeTable.read(Compiled Code)
    at weblogic.utils.classfile.ClassMember.read(Compiled Code)
    at weblogic.utils.classfile.MethodTable.read(Compiled Code)
    at weblogic.utils.classfile.ClassFile.read(Compiled Code)
    at weblogic.utils.classfile.ClassFile.<init>(Compiled Code)
    at weblogic.ejb.internal.EJBJarLoader.computeExclude(Compiled
    Code)
    at weblogic.ejb.internal.EJBJarLoader.initialize(Compiled Code)
    at weblogic.ejb.internal.EJBJarLoader.<init>(Compiled Code)
    at weblogic.ejb.internal.EJBJarLoader.<init>(Compiled Code)
    at weblogic.ejb.internal.EJBJarDeployment.setup(Compiled Code)
    at weblogic.ejb.internal.EJBJarDeployment.redeploy(Compiled
    Code)
    at
    weblogic.ejb.internal.EJBJarDeployment.redeploy(EJBJarDeployment.java:629)
    at
    weblogic.ejb.internal.EJBManagerImpl.redeploy(EJBManagerImpl.java:266)
    at
    weblogic.ejb.common.EJBManager_WLSkel.invoke(EJBManager_WLSkel.java:169)
    at
    weblogic.rmi.extensions.BasicServerObjectAdapter.invoke(Compiled Code)
    at
    weblogic.rmi.extensions.BasicRequestHandler.handleRequest(Compiled Code)
    at
    weblogic.rmi.extensions.BasicRequestDispatcher$BasicExecuteRequest.execute(Compiled
    Code)
    at weblogic.t3.srvr.ExecuteThread.run(Compiled Code)
    at java.lang.Throwable.fillInStackTrace(Native Method)
    at
    weblogic.rmi.extensions.BasicRequest.sendReceive(BasicRequest.java:44)
    at
    weblogic.ejb.common.EJBManager_WLStub.redeploy(EJBManager_WLStub.java:312)
    at weblogic.deploy.deploy(deploy.java:129)
    at weblogic.deploy.runBody(deploy.java:79)
    at weblogic.utils.compiler.Tool.run(Tool.java:55)
    at weblogic.deploy.main(deploy.java:140)

  • Calling thread.start() more than once concurrently

    Hi, I got a simple doubt that may feel awkward or absurd to people who are well versed in the java threading concepts. I just thought of it and as I couldn't get an easy answer I am posting this.
    Consider a class that implements the runnable interface. The run() method of the class is implemented with just a System.out.println(). If I make an instance of this class, say 't' in the main method and calling t.start() susequently twice or thrice; an illegal ThreadStateException will be thrown. The code snippet is as follows:
    ThreadTest t = new ThreadTest();
    t.start();
    t.start();
    It is understood that state of the thread object is changed to run state and so, if it is again started, it must be thrown. So if I put a Thread.sleep() inbetween these two subsequent calls assuming that the main method thread will be sleeping. So there is sufficient time for the first thread to terminate and then only the second will start - still the same exception is being thrown. I tried putting the synchronized qualifier for run too, still no effect - the same only happening. Why the java thread object is made in such a way that once the thread changes it state from Runnable to Running and then finally to dead state, it can be restated back to Runnable state, such that the start() method can be called again. Is it possible or not? Please post your comments.

    As ejp says you can't start a thread more than once - even if it has already terminated after the first start.
    By making threads a one-shot it simplifies reasoning about them: you don't have to wonder whether a second start() will work or not, depending on whether the thread has completed its first "incarnation". It also makes it easier to ensure thread resources are reclaimed. It also avoids semantic issues like whether anything about the thread is "carried over" across incarnations.
    This might seem a limitation but there are many ways around it - simply don't let the thread terminate. Whatever control structure you would enforce by re-starting the thread can be emulated without letting the thread terminate in between "executions".

  • Why do holidays appear more than once?

    Why do holidays appear more than once?

    I have the new iPad and iPhone 5
    both run on ios 6
    I have multiple holiday calendars on both devices
    Step 1: delete your gmail account and calendars go away
    Step 2: DELETE your icloud account under setting on iphone and select also delete on iphone
    Step 3: add Gmail and Calendar by following directions below (you will NOT get multiple google calendars)
    Step 4: go back under setting and sign up for icloud again and turn everythin you want on, ON, even Calendar
    You are done, no multiple calendars
    **I struggled for a week with this issue and researched online and tried other methods such as unchecking default Birthday icloud calendar, hard reset, uncheck holidays in Gmail, on iphone, none of it worked.....what worked were Steps 1-4 above!!!!)
    My iphone 5 is perfect now..no 20 of the same holidays in one day!!!
    By the way if you want multiple Google calendars to show up do it this way:
    First of you are a gmail user, do NOT use the default gmail sync option if you want ALL of your calendars from Google to show up, multiple colors etc); use MS Exchange, server address is m.google.com
    Then go to m.google.com/sync to sync your iphone calendar ON YOUR IPHONE BROSWER, you check mark the calendars you want
    Presto, your Google calendars -- all of them -- show up

  • Since I updated to iCloud, Mail on my MacBookPro 10.6.8 has been unable to connect to MobileMe more than once or twice per day. Mail on my iPhone 4 has no problems. What's wrong?

    Since I updated to iCloud, (which may or may not be related) Mail on my MacBookPro 10.6.8 has been unable to connect to MobileMe more than once or twice per day. Mail on my iPhone 4 and my old iMac has no problems. When there is no service a yellow warning triangle appears adjacent to the Inbox and Connection Doctor reports,"Trying to log into this MobileMe IMAP account failed. Verify that username and password are correct."  Since it does fetch Mail from time to time they cannot be wrong.... can they? Should I update to 10.7 and if so what does that entail?

    You have been using MobileMe's email settings, which sometimes continue to work for a time after migration but then get turned off. iCloud's mail server settings are different. Strictly speaking Lion 10.7.2 is required for iCloud, and on that Mail is set up automatically.
    Snow Leopard cannot access most of iCloud's facilities, however you can set Mail up manually to access your email. The method is described here:
    http://www.wilmut.webspace.virginmedia.com/notes/icloudmail.html
    The situation with iCloud and Snow Leopard is described in detail here:
    http://www.wilmut.webspace.virginmedia.com/notes/icloudSL.html

  • Cannot run more than one instance of a remote app in remote desktop services Server 2012

    All,
    I installed "Remote Desktop Services (RDS) Quick Start Deployment for RemoteApp, Windows Server 2012 Style" using the instructions here http://blogs.technet.com/b/yungchou/archive/2013/02/07/remote-desktop-services-rds-quick-start-deployment-for-remoteapp-windows-server-2012-style.aspx
    I need to set up an image viewing program (Olyvia) to allow students using Macs and iPads access to this windows only application in order for them to get their work done.  We may have 12 or more students accessing and trying to run the Olyvia application
    at any one time.
    All works good, except that I cannot run the Olyvia application (setup as a remoteapp program) more than one instance at a time.  That is, when I start up "olyvia" on a Mac, it works great.  If I leave it up and running, and then try
    and start up "olyvia" on an iPad (using different accounts), I get the following error message:
    "Cannot run more than one instance of this program simultaneously.  Either the program is already running, or it has not been terminated completely."
    I need to understand the root issue.
    1.  Is this a licensing issue?  So, I need to add some CALs to the RDS server?
    2.  Is this a application issue with "olyvia"?  So, no matter what I do, it is not going to be able to be used by more than one person at a time when configured as a remoteapp?
    3.  Did I not "publish" the application correctly?
    4.  Is this happening because I followed the "quick start" guide?
    Appreciate any help I can get on this.  We have no problem getting CALs, I just need some help with the root issue.
    Thanks,
    Geoff Weatherford
    CVMBS, CSU

    Hi Geoff,
    Each application uses different techniques for determining if multiple instances are running.  If you can determine what method it is using then perhaps you could use App-V or other virtualization software.
    In the best case you really should direct your question to the maker of Olyvia.  The reason I said that is they specifically designed their software to prevent multiple instances, so the first question is, why?  Is it related to Licensing? 
    Compatibility?  If you knew the specific reason(s) why they are doing it and the technique used then at the point using a virtualization technique may be the best option.
    -TP

Maybe you are looking for

  • Machinarium - a new game with a Linux client

    Machinarium is an indie adventure game written in Flash. You steer a small robot through a wonderfully painted robot world. To get a feel of the game play, you can play Samorost, an earlier game by the developers, for free or try the demo. To get the

  • Vender Master Data  - BAPI

    hi, can anybody tell the name of BAPI used to create vendor master data. thanks konala

  • Control break statments

    Hi all      in control break statments AT NEW COMMAND will provide astrik and blank in the out put in  right side of the column.why!     in the case of on change of  it will not give astrik and blank on the right side of the column in the out put . w

  • Does somebody have experience to manage SAP project with solution manager?

    Hi friends, I will implement new project for my client. As I know, solution manager is already part of SAP Netweaver. To install SAP NetWeaver, solution manager must be installed. Meanwhile, solution manager provides a project management tool, for ex

  • Conditionally display link icon

    Is there any way I could display an icon in the report based on the record value. Each user when they login, they will have location signed to them. I would like to allow users to edit record (show edit icon) based on the default location. so if reco