Random Generator semantic error

I need to create a public class method for a class RandomGenerator called getRandomNumber() which takes a single int argument and returns a random number between 1 and its argument (inclusive) which is generated by sending a suitable nextInt() message to the class variable rand.
This is my code so far.
import java.util.Random;
import ou.*;
* Class RandomGenerator - write a description of the class here.
* @author (your name)
* @version (a version number or a date)
public class RandomGenerator
     /* instance variables */
     private int exampleVar; // replace this example variable with your own
      * Default constructor for objects of class RandomGenerator
     public RandomGenerator()
          super();
     private Random rand = new Random();
    public int getRandomNumber(int num)
        int ranum;
        String StringNum;
        StringNum = OUDialog.request("Please enter a number");
        num = Integer.parseInt(StringNum);
        if (num <=0)
        StringNum = OUDialog.request("Please enter a positive integer");
        return
        ranum = rand.nextInt(num);
        When I test it I get the error 'Semantic error: Cannot reach instance method: getRandomNumber( int ) from static context: RandomGenerator'
I don't understand what the error means.

When calling methods, you can either call the method on an object (an instance of a class), or directly on the class. Calling a method directly on the class assumes that the method is static, which means that the method is shared among all instances of the class, rather than each instance having it's own version.
For instance, this line in your code:
num = Integer.parseInt(StringNum);You called the parseInt() method of the Integer class statically, because parseInt() is a static method. You don't need a previous integer value to call parseInt(). Now the Integer class also has a method called intValue() which returns the current value of the Integer as an int. Obviously, if there's no int value stored in the integer, calling that method would be useless:
Integer.intValue(); //no value to return
Integer anInteger = new Integer(3);
int anInt = anInteger.intValue(); //returns 3So since your getRandomNumber() method is not static, you must have an instance of the RandomGenerator class to call it on, like the post above shows.

Similar Messages

  • Identity Sync - Password randomly generated in AD

    Configuration:
    DS 5.2 Patch 2
    on Solaris 9
    with Identity Sync for Windows 1 2004Q3
    configured to Synch from DS to AD
    I have set up object creation to flow from DS to AD, and the user creation works okay but the password I create the account with is not being pushed to AD. Instead it creates the account with a randomly generated password. Is there a way around this, I am attempting to script new user creations. Here is log entry I get in error.log when I create a user.
    [08/Mar/2005:11:35:59.416 +1000] WARNING 29 CNN101 tyr "Successfully created user cn=James Test,cn=users,dc=xxx,dc=xxx,dc=xx with randomly generated password. This account will be unusable until another password is set." (Action ID=CNN100-1027FA4BBD3-491, SN=2)
    Thankyou in advance for any assistance!!
    regards
    Gryph

    I've been doing some more testing and have some more information that might be important.
    I have been testing the attribute synchronisation for the mappings I have done, and noticed that if I modify the userpassword attribute in the DS console it is not being synch'd to AD, but I can modify other attributes and they do get synch'd. If I modify the password on the AD side it gets synch'd back to DS ok. I have attribute modification set to flow in both directions and the password mapping is (DS) userpassword <--> unicodepwd (AD).
    Given it seems to ignore changes to the userpassword attribute for modifications, it looks like this is also holding true for creations, and I guess this is why it's randomly assigning a password.
    Any ideas why it sees other attribute modifcations and synch's them from the DS side, but is not seeing the userpassword attribute?
    Regards
    Gryph

  • Mail software-hundreds of undeliverable emails randomly generated

    Mac mail using iCloud. Undeliverable emails randomly generated and undeliverable

    Dear Brody:I turned on my computer this morning but when I connected to Outlook Express it asked for my password (which is saved on my computer) so I usually don't get this mesage. When I entered password the message returned. The problem reads:Jan 22 2014  There was a problem logging onto your mail server. Your Password was rejected. Account: 'Dot Lewis', Server: 'mail.bigpond.com', Protocol: POP3, Server Response: '-ERR invalid user name or password.', Port: 110, Secure(SSL): No, Server Error: 0x800CCC90, Error Number: 0x800CCC92  I have now tried to access mail on my labtop and get the same response.I have not changed any settings. Have Telstra changed something? Funnily enough I can access webmail (for the moment!!!) and I was able to send a test message in Outlook Express which was unexpected.Can you help?ThanksDotPS I did a Malwarebytes complete scan of my desktop computer but nothing was found.CheersD

  • "Open Vi Reference" generates a Error 7

    Hello,
      I am getting "Error 7" from the "Open VI Reference" vi, the name of the vi is wired vi path input. The "Error 7" means that the vi cannot be found. So I went to "Tools ===> Options ===> Paths" and modified the Path so that Labview can find it. But for reasons I do not understand the vi I want to get a reference for cannot be found. So it leads me to beleive that the "Open vi Reference" does not use the path option to find a vi. Any ideas what is going on?
    Regards,
    Kaspar
    Solved!
    Go to Solution.

    Hello,
      Thanks for getting back to me. I have attached a file fo the screenshot of the Block diagram. The "Open Vi Reference" is in the upper left hand corner, which generates a error when I have updated the path options to point to where the file exists.
    Regards,
    Kaspar
    Attachments:
    vi_error.GIF ‏21 KB

  • I recently got a new computer because my old one wouldn't let me open creative suite 3 after it generated a error and now I can't deactivate the key to activate it onto my new account.

    I recently got a new computer because my old one wouldn't let me open creative suite 3 after it generated a error and now I can't deactivate the key to activate it onto my new computer. Any help would be appreciated. Thank you.

    You are allowed to have two activted installations, so if the first machine is the only machine with an activated installation there is nothing prohibiting you from installing and activating on the new machine.
    You can contact Adobe Support thru chat to have the old installation deactivation.
    Serial number and activation support (non-CC)
    http://helpx.adobe.com/x-productkb/global/service1.html ( http://adobe.ly/1aYjbSC )

  • How to create a new user in IDM 8.1 with random generated password?

    Hi, i want create a new user using a modified tabbed user fom that cannot ask for password and confirm password to the administrator but randomly generate a new password (only when the form is opened in user creation) according to password policy and display it on the form.
    I think it is possible because Reset User Password Form does it, but i don't know how put this kind og logic in an other form.
    thanks
    Marco

    If you want to generate a users password randomly then you could take a look at the com.waveset.provision.PasswordGenerator class inside the Identity Mgr REF kit. Here's an example:
    <Rule name='generateRandomPassword'>
           <Comments>generate a random password</Comments>
           <RuleArgument name='accountId' value='Configurator'>
             <Comments>accountId of the user</Comments>
             <String>Configurator</String>
           </RuleArgument>
           <RunAsUser>
             <ObjectRef type='User' id='#ID#Configurator' name='Configurator'/>
           </RunAsUser>
           <block trace='true'>
             <defvar name='session'>
               <or>
                 <ref>context</ref>
                 <ref>display.session</ref>
               </or>
             </defvar>
             <defvar name='wsuser'>
               <invoke name='getObject' class='com.waveset.ui.FormUtil'>
                 <ref>session</ref>
                 <s>User</s>
                 <ref>accountId</ref>
               </invoke>
             </defvar>
              <defvar name='pwgenerator'>
               <new class='com.waveset.provision.PasswordGenerator'>
                 <ref>session</ref>
               </new>
             </defvar>
             <invoke name='generatePassword'>
               <ref>pwgenerator</ref>
               <ref>wsuser</ref>
             </invoke>
           </block>
        </Rule> You'll want to take the password.password field and inside the Default event handler check to see if waveset.id is null, if it is then call the Rule above.
    HTH,
    Paul

  • Generate an error message that Adobe Reader 8 or later is required

    Afternoon all,
    I have created a form (in Acrobat 10 Pro) with a lot of scripts and we have determined that they do not all work as desired in Adobe Reader 7 and earlier.
    Is there a way to generate an error message if a user opens this form with Adobe 7 or earlier?
    We would like a message to pop up advising the user that Adobe 8 or later is required for this form.
    It does not have to lock them out or anything, we just want to advise them.
    Thanks much,
    Steve

    Thanks,
    This is how my bosses want this done. For one part, some of the functionality we are using just doesn't exist in Reader prior to version 8. For others, the users don't really have an option to go elsewhere.
    As for thescript, i am not sure how to apply it. Where do i access the initial page's open event?
    I do know how to enter document level scripts (this form has several) but what does "outside of a function definition" mean and how do i do that?
    Thanks everyone,
    steve

  • Final cut pro generated an error or unexpectedly quit

    final cut pro generated an error or unexpectedly quit
    This message appears everytime i want to share my video
    Any suggestions please

    The Following is what I did and it worked for me... Thank You
    Chakravarthy Cuddapah
    Re: Share Monitor error 
    Jun 27, 2011 3:10 AM (in response to Chakravarthy Cuddapah)
    Not sure about this 'solution'. But after a few tries, I noticed that FaceBook feature works only when "Background Rendering' is selected to 'This Computer'. Screen shot:

  • Conversion program generated with errors

    in lsmw idoc method at the step 11 convert data iam getting error as conversion program generated with errors can some body help me .i assigned port ,partnertype and partner number and activated inbound processing but still getting this error.somebody pls help me its urgent.

    Hi Mamidi,
    Go to the LSMW you have choosen and if it is Recording Method you are getting this error.
    Select Goto-->Recordings.
    Select the Recording you have choosen in the Edit Mode.
    Click on the Defaults All Button and save the recording.
    Now go to the option Convert Data and check .
    You will receive a message ..Conversion program successfully generated.
    Thanks,
    Sri

  • Troubles generating an error message in WebDynpro ABAP

    Good evening guys.
    I set the following code in enhancement method (pre-method) of ONACTIONNAVIGATE method, which is triggered after push the "Review" button in WebDynpro Application FITE_REQUEST:
    method PRED78YJIDJ8M8KXTC2MXQI1XK5O . "Exit of ONACTIONNAVIGATE (in ZENH_FITV_FPM_02 )
      data: L_CURRENT_CONTROLLER type ref to IF_WD_CONTROLLER,
            L_MESSAGE_MANAGER    type ref to IF_WD_MESSAGE_MANAGER,
            TEKSTO TYPE STRING.
      IF NAVIGATION_TYPE = 'FORWARD'.
        L_CURRENT_CONTROLLER ?= WD_THIS->WD_GET_API( ).
        call method L_CURRENT_CONTROLLER->GET_MESSAGE_MANAGER
          receiving
            MESSAGE_MANAGER = L_MESSAGE_MANAGER.
    report message
    CALL METHOD l_message_manager->REPORT_T100_MESSAGE
      EXPORTING
        MSGID                     = '00'
        MSGNO                     = '398'
        MSGTY                     = 'E'
        P1                        = 'Test'
        P2                        = 'Test2'
       P3                        =
       P4                        =
       MSG_USER_DATA             =
       IS_PERMANENT              = ABAP_FALSE
       SCOPE_PERMANENT_MSG       = CO_MSG_SCOPE_CONTROLLER
       VIEW                      =
       SHOW_AS_POPUP             =
       CONTROLLER_PERMANENT_MSG  =
       MSG_INDEX                 =
         CANCEL_NAVIGATION         = 'X'
       ENABLE_MESSAGE_NAVIGATION =
    RECEIVING
       MESSAGE_ID                =
    ENDIF.
    endmethod.
    Unfortunately, this code is not working, because the message is not appearing. I generated this piece of code with the WebDynpro Code Wizard, but even so is not working.
    The standard application generates standard messages an places them in WDR_MESSAGE_AREA WD component, in the View MESSAGE_AREA, regarding blanks in text fields that are located on another WebDynpro component (FITE_VC_GENERAL_DATA, view GENERAL_DATA_VIEW). I put my own code in WD component FITV_FPM, in the LAYOUT_VIEW. But I wanna the messages also appear at WDR_MESSAGE_AREA WD component, MESSAGE_AREA view.
    Do you know why I am having trouble generating an error message in this standard Webdynpro? It is not possible to generate an error message to appear in another Webdynpro component, but the same WD application?
    Regards guys!

    Hi
    you can store message ID, message no and message type in the context node in ur exit and make this context node interface enabled. Map this node to the component where you want todisplay the message. read the context node .
    Call the method for displaying the messages and pass message id, no and type from context node.
    invalidate this context node using method "invalidate" from interface if_wd_context_node.
    Regards
    Vishal kapoor

  • How to use the random generator in java

    hey peeps, this is the class in which i am trying to implement the random generator in;
    public class Matchlist
        private studentdetails sd = new studentdetails();
        /** matchList StringBuilder stores the match list in progress */
        private StringBuilder matchList = new StringBuilder();
        private int loop = 0;
        private int matches = 0;
        public Matchlist()
            sd.createstudentdetails();
        /** Method to create the actual match list, returns the list as a string */
        public String CreateMatch()
            int g;
            int y;
                for (g = 0; g < 4; g++)//g = game
                    for (y = 17; y > -1; y--)//y = green house
                        /** Check to see if the game is empty */
                        if (sd.getgh(y).getGame(g).equalsIgnoreCase(""))
                            for (int x = 0; x < 18; x++) //x = yellow house
                                if (sd.getyh(x).getGame(g).equalsIgnoreCase(""))
                                    if (sd.getgh(y).getC_lass() != sd.getyh(x).getC_lass())
                                        /** Check to see if the person has played the other person */
                                        if (sd.getgh(y).checkPlayed(sd.getyh(x).getName()) == false)
                                            /** Set the game to the name of the opponent played */
                                            sd.getyh(x).changeGame(g, sd.getgh(y).getName());
                                            sd.getgh(y).changeGame(g, sd.getyh(x).getName());
                                            /** Build the match list step by step using append with \n at the end to create a new line */
                                            matchList.append(sd.getyh(x).getName() + " vs " + sd.getgh(y).getName() + "\n");
                                            matches++;
                                            break;
                /** Convert the stringbuilder into an actual string, then return it */
                String completeMatchList = matchList.toString();
                System.out.println(matches);
                for (int i = 0; i <18; i++)
                    sd.getyh(i).getEmptyMatches();
                    sd.getgh(i).getEmptyMatches();
                return completeMatchList;
        }what i dont understand is how to implement it to pick my matches at random using the http://java.sun.com/j2se/1.4.2/docs/api/java/util/Random.html java tutorials from here
    regards

    How to use Random ?
    First you open API then you read it, then you use it.
    You mention you try to use it but i just see a horrible nested for for for if if if loop.
    Restructure code and question and maybe it makes more sense.
    Edited by: pgeuens on 10-mrt-2008 22:58

  • How to make a random generator with a max and a minimum

    hello
    can anybody telle me how to make a random generator for numbers with a maximum and minimum input
    thanks in advance

    Hi suske,
    If you want a random day for a given month, this is how I would do it.
    Hope this helps,
    -D
    Message Edited by Darren on 02-02-2006 01:35 PM
    Darren Nattinger, CLA
    LabVIEW Artisan and Nugget Penman
    Attachments:
    Days_per_month.jpg ‏32 KB

  • NWDS is generating IndexedStore Errors when I do reload +rebuild

    Hi All,
    I am working on a Java Webdynpro application in NWDS V7.0.13 with Eclipse 2.1.2. When I am trying to RELOAD + REBUILD NWDS is generating some errors which are not source code related.
    I would like to know why I am getting those errors whenever I rebuild my project. And if I go to the Project Explorer and do DC rebuild and refresh sometimes the errors are gone after 7 to 8 rebuilds.
    I would appreciate if I get any help here as I am working on a critical project.
    The error log shows below errors:
    Error Wed Apr 02 19:25:53 CDT 2008 Apr 2, 2008 7:25:53 PM    com.sap.ide.webdynpro.generation.eclipse.GenerationEclipse  [Thread[ModalContext,5,main]] Error: Refresh of resource C:/Documents and Settings/mkosuri/.dtc/0/DCs/deloitte.com/home/enrolment/_comp/gen_wdp/packages/com/deloitte/component/enrollment/OpenEnrollmentComponent.java fails (org.eclipse.core.internal.resources.ResourceException: Indexed store transactions did not commit properly: C:\Documents and Settings\mkosuri\Documents\SAP\workspace\.metadata\.plugins\org.eclipse.core.resources\.projects\NWP_ESSTRK4_Dhomeenrolment~deloitte.com\.properties.)
    org.eclipse.core.internal.resources.ResourceException(C:/Documents and Settings/mkosuri/Documents/SAP/workspace/.metadata/.plugins/org.eclipse.core.resources/.projects/NWP_ESSTRK4_Dhomeenrolment~deloitte.com/.properties)[272]: IndexedStoreException:Error committing the indexed store.
    org.eclipse.core.internal.indexing.ObjectStoreException: Cannot store page in page store.
         at org.eclipse.core.internal.indexing.IndexedStore.commit(IndexedStore.java:139)
         at org.eclipse.core.internal.properties.IndexedStoreWrapper.commit(IndexedStoreWrapper.java:86)
         at org.eclipse.core.internal.properties.PropertyStore.commit(PropertyStore.java:449)
         at org.eclipse.core.internal.properties.PropertyManager.setProperty(PropertyManager.java:173)
         at org.eclipse.core.internal.resources.Resource.setPersistentProperty(Resource.java:1190)
         at com.sap.ide.webdynpro.generation.eclipse.GenerationEclipse.refreshResourceNew(GenerationEclipse.java:1344)
         at com.sap.ide.webdynpro.generation.eclipse.GenerationEclipse.access$1000(GenerationEclipse.java:76)
         at com.sap.ide.webdynpro.generation.eclipse.GenerationEclipse$11.run(GenerationEclipse.java:1386)
         at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1595)
         at com.sap.ide.webdynpro.generation.eclipse.GenerationEclipse.refreshResourceInBatch(GenerationEclipse.java:1391)
         at com.sap.ide.webdynpro.generation.eclipse.GenerationEclipse.generatePersistentComponent(GenerationEclipse.java:268)
         at com.sap.ide.webdynpro.generation.eclipse.GenerationEclipse.generatePersistentComponent(GenerationEclipse.java:307)
         at com.sap.ide.webdynpro.generation.eclipse.GenerationVisitor.visitComponent(GenerationVisitor.java:297)
         at com.sap.ide.webdynpro.generation.eclipse.GenerationVisitor.visit(GenerationVisitor.java:127)
         at org.eclipse.core.internal.resources.Resource$2.visit(Resource.java:106)
         at org.eclipse.core.internal.resources.Resource$1.visitElement(Resource.java:50)
         at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:76)
         at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:80)
         at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:80)
         at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:80)
         at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:80)
         at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:80)
         at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:80)
         at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:80)
         at org.eclipse.core.internal.watson.ElementTreeIterator.iterate(ElementTreeIterator.java:119)
         at org.eclipse.core.internal.resources.Resource.accept(Resource.java:60)
         at org.eclipse.core.internal.resources.Resource.accept(Resource.java:104)
         at org.eclipse.core.internal.resources.Resource.accept(Resource.java:82)
         at com.sap.ide.webdynpro.generation.eclipse.GenerationBuilder.build(GenerationBuilder.java:99)
         at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:427)
         at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1006)
         at org.eclipse.core.runtime.Platform.run(Platform.java:413)
         at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:125)
         at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:181)
         at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:191)
         at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:151)
         at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1006)
         at org.eclipse.core.runtime.Platform.run(Platform.java:413)
         at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:165)
         at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:265)
         at org.eclipse.core.internal.resources.Project.build(Project.java:85)
         at org.eclipse.ui.actions.BuildAction.invokeOperation(BuildAction.java:156)
         at org.eclipse.ui.actions.WorkspaceAction.execute(WorkspaceAction.java:122)
         at org.eclipse.ui.actions.WorkspaceAction$1.execute(WorkspaceAction.java:279)
         at org.eclipse.ui.actions.WorkspaceModifyOperation$1.run(WorkspaceModifyOperation.java:71)
         at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1595)
         at org.eclipse.ui.actions.WorkspaceModifyOperation.run(WorkspaceModifyOperation.java:85)
         at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:101)
    org.eclipse.core.internal.indexing.ObjectStoreException: Cannot store page in page store.
         at org.eclipse.core.internal.indexing.ObjectStore.commit(ObjectStore.java:183)
         at org.eclipse.core.internal.indexing.IndexedStore.commit(IndexedStore.java:137)
         at org.eclipse.core.internal.properties.IndexedStoreWrapper.commit(IndexedStoreWrapper.java:86)
         at org.eclipse.core.internal.properties.PropertyStore.commit(PropertyStore.java:449)
         at org.eclipse.core.internal.properties.PropertyManager.setProperty(PropertyManager.java:173)
         at org.eclipse.core.internal.resources.Resource.setPersistentProperty(Resource.java:1190)
         at com.sap.ide.webdynpro.generation.eclipse.GenerationEclipse.refreshResourceNew(GenerationEclipse.java:1344)
         at com.sap.ide.webdynpro.generation.eclipse.GenerationEclipse.access$1000(GenerationEclipse.java:76)
         at com.sap.ide.webdynpro.generation.eclipse.GenerationEclipse$11.run(GenerationEclipse.java:1386)
         at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1595)
         at com.sap.ide.webdynpro.generation.eclipse.GenerationEclipse.refreshResourceInBatch(GenerationEclipse.java:1391)
         at com.sap.ide.webdynpro.generation.eclipse.GenerationEclipse.generatePersistentComponent(GenerationEclipse.java:268)
         at com.sap.ide.webdynpro.generation.eclipse.GenerationEclipse.generatePersistentComponent(GenerationEclipse.java:307)
         at com.sap.ide.webdynpro.generation.eclipse.GenerationVisitor.visitComponent(GenerationVisitor.java:297)
         at com.sap.ide.webdynpro.generation.eclipse.GenerationVisitor.visit(GenerationVisitor.java:127)
         at org.eclipse.core.internal.resources.Resource$2.visit(Resource.java:106)
         at org.eclipse.core.internal.resources.Resource$1.visitElement(Resource.java:50)
         at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:76)
         at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:80)
         at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:80)
         at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:80)
         at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:80)
         at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:80)
         at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:80)
         at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:80)
         at org.eclipse.core.internal.watson.ElementTreeIterator.iterate(ElementTreeIterator.java:119)
         at org.eclipse.core.internal.resources.Resource.accept(Resource.java:60)
         at org.eclipse.core.internal.resources.Resource.accept(Resource.java:104)
         at org.eclipse.core.internal.resources.Resource.accept(Resource.java:82)
         at com.sap.ide.webdynpro.generation.eclipse.GenerationBuilder.build(GenerationBuilder.java:99)
         at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:427)
         at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1006)
         at org.eclipse.core.runtime.Platform.run(Platform.java:413)
         at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:125)
         at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:181)
         at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:191)
         at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:151)
         at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1006)
         at org.eclipse.core.runtime.Platform.run(Platform.java:413)
         at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:165)
         at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:265)
         at org.eclipse.core.internal.resources.Project.build(Project.java:85)
         at org.eclipse.ui.actions.BuildAction.invokeOperation(BuildAction.java:156)
         at org.eclipse.ui.actions.WorkspaceAction.execute(WorkspaceAction.java:122)
         at org.eclipse.ui.actions.WorkspaceAction$1.execute(WorkspaceAction.java:279)
         at org.eclipse.ui.actions.WorkspaceModifyOperation$1.run(WorkspaceModifyOperation.java:71)
         at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1595)
         at org.eclipse.ui.actions.WorkspaceModifyOperation.run(WorkspaceModifyOperation.java:85)
         at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:101)
    org.eclipse.core.internal.indexing.PageStoreException: Error occurred opening transaction log file.
         at org.eclipse.core.internal.indexing.LogWriter.open(LogWriter.java:39)
         at org.eclipse.core.internal.indexing.LogWriter.putModifiedPages(LogWriter.java:26)
         at org.eclipse.core.internal.indexing.PageStore.commit(PageStore.java:209)
         at org.eclipse.core.internal.indexing.ObjectStore.commit(ObjectStore.java:181)
         at org.eclipse.core.internal.indexing.IndexedStore.commit(IndexedStore.java:137)
         at org.eclipse.core.internal.properties.IndexedStoreWrapper.commit(IndexedStoreWrapper.java:86)
         at org.eclipse.core.internal.properties.PropertyStore.commit(PropertyStore.java:449)
         at org.eclipse.core.internal.properties.PropertyManager.setProperty(PropertyManager.java:173)
         at org.eclipse.core.internal.resources.Resource.setPersistentProperty(Resource.java:1190)
         at com.sap.ide.webdynpro.generation.eclipse.GenerationEclipse.refreshResourceNew(GenerationEclipse.java:1344)
         at com.sap.ide.webdynpro.generation.eclipse.GenerationEclipse.access$1000(GenerationEclipse.java:76)
         at com.sap.ide.webdynpro.generation.eclipse.GenerationEclipse$11.run(GenerationEclipse.java:1386)
         at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1595)
         at com.sap.ide.webdynpro.generation.eclipse.GenerationEclipse.refreshResourceInBatch(GenerationEclipse.java:1391)
         at com.sap.ide.webdynpro.generation.eclipse.GenerationEclipse.generatePersistentComponent(GenerationEclipse.java:268)
         at com.sap.ide.webdynpro.generation.eclipse.GenerationEclipse.generatePersistentComponent(GenerationEclipse.java:307)
         at com.sap.ide.webdynpro.generation.eclipse.GenerationVisitor.visitComponent(GenerationVisitor.java:297)
         at com.sap.ide.webdynpro.generation.eclipse.GenerationVisitor.visit(GenerationVisitor.java:127)
         at org.eclipse.core.internal.resources.Resource$2.visit(Resource.java:106)
         at org.eclipse.core.internal.resources.Resource$1.visitElement(Resource.java:50)
         at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:76)
         at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:80)
         at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:80)
         at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:80)
         at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:80)
         at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:80)
         at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:80)
         at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:80)
         at org.eclipse.core.internal.watson.ElementTreeIterator.iterate(ElementTreeIterator.java:119)
         at org.eclipse.core.internal.resources.Resource.accept(Resource.java:60)
         at org.eclipse.core.internal.resources.Resource.accept(Resource.java:104)
         at org.eclipse.core.internal.resources.Resource.accept(Resource.java:82)
         at com.sap.ide.webdynpro.generation.eclipse.GenerationBuilder.build(GenerationBuilder.java:99)
         at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:427)
         at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1006)
         at org.eclipse.core.runtime.Platform.run(Platform.java:413)
         at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:125)
         at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:181)
         at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:191)
         at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:151)
         at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1006)
         at org.eclipse.core.runtime.Platform.run(Platform.java:413)
         at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:165)
         at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:265)
         at org.eclipse.core.internal.resources.Project.build(Project.java:85)
         at org.eclipse.ui.actions.BuildAction.invokeOperation(BuildAction.java:156)
         at org.eclipse.ui.actions.WorkspaceAction.execute(WorkspaceAction.java:122)
         at org.eclipse.ui.actions.WorkspaceAction$1.execute(WorkspaceAction.java:279)
         at org.eclipse.ui.actions.WorkspaceModifyOperation$1.run(WorkspaceModifyOperation.java:71)
         at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1595)
         at org.eclipse.ui.actions.WorkspaceModifyOperation.run(WorkspaceModifyOperation.java:85)
         at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:101)
    java.io.FileNotFoundException: C:\Documents and Settings\mkosuri\Documents\SAP\workspace\.metadata\.plugins\org.eclipse.core.resources\.projects\NWP_ESSTRK4_Dhomeenrolment~deloitte.com\.properties.log (Access is denied)
         at java.io.FileOutputStream.open(Native Method)
         at java.io.FileOutputStream.<init>(FileOutputStream.java:179)
         at java.io.FileOutputStream.<init>(FileOutputStream.java:70)
         at org.eclipse.core.internal.indexing.LogWriter.open(LogWriter.java:37)
         at org.eclipse.core.internal.indexing.LogWriter.putModifiedPages(LogWriter.java:26)
         at org.eclipse.core.internal.indexing.PageStore.commit(PageStore.java:209)
         at org.eclipse.core.internal.indexing.ObjectStore.commit(ObjectStore.java:181)
         at org.eclipse.core.internal.indexing.IndexedStore.commit(IndexedStore.java:137)
         at org.eclipse.core.internal.properties.IndexedStoreWrapper.commit(IndexedStoreWrapper.java:86)
         at org.eclipse.core.internal.properties.PropertyStore.commit(PropertyStore.java:449)
         at org.eclipse.core.internal.properties.PropertyManager.setProperty(PropertyManager.java:173)
         at org.eclipse.core.internal.resources.Resource.setPersistentProperty(Resource.java:1190)
         at com.sap.ide.webdynpro.generation.eclipse.GenerationEclipse.refreshResourceNew(GenerationEclipse.java:1344)
         at com.sap.ide.webdynpro.generation.eclipse.GenerationEclipse.access$1000(GenerationEclipse.java:76)
         at com.sap.ide.webdynpro.generation.eclipse.GenerationEclipse$11.run(GenerationEclipse.java:1386)
         at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1595)
         at com.sap.ide.webdynpro.generation.eclipse.GenerationEclipse.refreshResourceInBatch(GenerationEclipse.java:1391)
         at com.sap.ide.webdynpro.generation.eclipse.GenerationEclipse.generatePersistentComponent(GenerationEclipse.java:268)
         at com.sap.ide.webdynpro.generation.eclipse.GenerationEclipse.generatePersistentComponent(GenerationEclipse.java:307)
         at com.sap.ide.webdynpro.generation.eclipse.GenerationVisitor.visitComponent(GenerationVisitor.java:297)
         at com.sap.ide.webdynpro.generation.eclipse.GenerationVisitor.visit(GenerationVisitor.java:127)
         at org.eclipse.core.internal.resources.Resource$2.visit(Resource.java:106)
         at org.eclipse.core.internal.resources.Resource$1.visitElement(Resource.java:50)
         at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:76)
         at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:80)
         at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:80)
         at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:80)
         at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:80)
         at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:80)
         at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:80)
         at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:80)
         at org.eclipse.core.internal.watson.ElementTreeIterator.iterate(ElementTreeIterator.java:119)
         at org.eclipse.core.internal.resources.Resource.accept(Resource.java:60)
         at org.eclipse.core.internal.resources.Resource.accept(Resource.java:104)
         at org.eclipse.core.internal.resources.Resource.accept(Resource.java:82)
         at com.sap.ide.webdynpro.generation.eclipse.GenerationBuilder.build(GenerationBuilder.java:99)
         at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:427)
         at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1006)
         at org.eclipse.core.runtime.Platform.run(Platform.java:413)
         at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:125)
         at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:181)
         at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:191)
         at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:151)
         at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1006)
         at org.eclipse.core.runtime.Platform.run(Platform.java:413)
         at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:165)
         at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:265)
         at org.eclipse.core.internal.resources.Project.build(Project.java:85)
         at org.eclipse.ui.actions.BuildAction.invokeOperation(BuildAction.java:156)
         at org.eclipse.ui.actions.WorkspaceAction.execute(WorkspaceAction.java:122)
         at org.eclipse.ui.actions.WorkspaceAction$1.execute(WorkspaceAction.java:279)
         at org.eclipse.ui.actions.WorkspaceModifyOperation$1.run(WorkspaceModifyOperation.java:71)
         at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1595)
         at org.eclipse.ui.actions.WorkspaceModifyOperation.run(WorkspaceModifyOperation.java:85)
         at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:101)
    Thanks for your time and consideration!
    Madhavi

    Solution:
    http://jira.pentaho.com/browse/BISERVER-5282
    Short Fix using find und sed:
    http://jira.pentaho.com/browse/BISERVER-5282?focusedCommentId=91528&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#action_91528

  • Generated servlet error: method is undefined for type

    Hi,
    I keep getting the following error when I attempt to run my JSP:
    org.apache.jasper.JasperException: Unable to compile class for JSP
    An error occurred at line: 12 in the jsp file: /jsp-examples/JSPandMySQL/loginuser.jsp
    Generated servlet error:
    The method getValidUser() is undefined for the type LoginDetails
    In my JSP file I have the code:
    <%
    boolean validName = login.getValidUser();
    if(validName == false) {
    out.println("Invalid Username");
    } else {
    out.println("Valid Username");
    %>
    and the method getValidUser(); is in a Java Bean that I have created and the code for that method is just :
    public boolean getValidUser() {
    return valid;
    I've tried searching the net for some answers but none of the solutions given work for mine, I would be grateful for any advice on how to solve this program.

    DId you import the class at the top of the jSP? Does the method exist? Is the class compiled properly?
    - Saish

  • Writing a class using random generator in bluej

    Hello
    Im trying to write a class for a deck of cards. Im using a random generator but I dont know how to write the instance variable.
    I have to make 4 suits heart, club, spade, dimonds. and 13 for face value. I know how to random generate numbers. Like if I were making a slot machine to give me 3 numbers in a rage from 0-10. Thats just numbers. How do I random generate values of 1-13 and have it output a random suit? Also how do I make it say if its a jack king or queen? Do I need a constructor or how would I make the card with the face value of 13 suit heart and the card be a queen.
    before jumping down my throat about this being a homework assignment...yes it is but this step Im seeking help on there is no example for this type of generating.
    Thanks for any help
    Rewind

    Well, this is far from bullet-proof, but I think gets the basic idea across. This does sampling with replacement; if you wanted to do something like shuffle a deck of cards you'll need a smarter approach than this.
    import java.util.*;
    public class RandomCards {
      public static void main(String[] args) {
        Suit suit=new Suit();
        for (int i=0; i < 10; i++) {
          System.out.println(suit.nextSuit());
      private static class Suit {
        public static final String HEART="Heart";
        public static final String DIAMOND="Diamond";
        public static final String SPADE="Spade";
        public static final String CLUB="Club";
        private final String[] SUITS={ HEART, DIAMOND, SPADE, CLUB };
        private Gen suitGen=new Gen(0,3);
        public String nextSuit() {
          return SUITS[suitGen.nextInt()];
      private static class Gen {
        private int floor,ceiling;
        private Random rand;
        public Gen(int floor, int ceiling) {
          this.floor=floor;
          this.ceiling=ceiling;
          rand=new Random();
        public int nextInt() {
          return rand.nextInt(ceiling-floor)+floor;

Maybe you are looking for

  • Enforce date datatype in oracle 11g

    Can I restrict database so that application can not enter date data in certain format. E.g. If I want that date enter should be registered in [year to minute] 'MM-DD-YYYY' hh:mm' only format and not in [year to second format]'MM-DD-YYYY' hh:mm:ss' th

  • Report - Logic needed

    I have to print a ordinary classical report in this format. I need print a report that material wise material text needs to be printed in tabular format. Scenarios: 1. Material 12345 have 85 lines ,then first 60 lines to printed in left and balance 2

  • How to call function created in another schema...

    I am trying as follows... user1 has one function named 'function1' Now I am granting execute privilege to user2 as ... GRANT EXECUTE ON function1 TO USER2 ; But when I run the function from user2 I am getting following error... declare aa varchar2(10

  • OM Ranges

    Hi Gurus Can we set two number ranges in OM for creating org unit in different company code? (without any exit) REgards

  • "Playlists" has disappeared from my menu.  How do I get it back?

    "Playlists" has disappeared from my menu.  How do I get it back?