Method not found in class errors when compiling project

Hi,
I am getting the following errors when compiling my project:
Error(3,8): ReqLinesNotificationsVORowImpl not found
Error(25,25): method getAttributeInternal(java.lang.String) not found in class oracle.apps.icx.por.wf.server.ReqLinesNotificationsVOExRowImpl
Error(31,9): method setAttributeInternal(java.lang.String, oracle.jbo.domain.Number) not found in class oracle.apps.icx.por.wf.server.ReqLinesNotificationsVOExRowImpl
Error(37,25): method getAttributeInternal(java.lang.String) not found in class oracle.apps.icx.por.wf.server.ReqLinesNotificationsVOExRowImpl
Error(43,9): method setAttributeInternal(java.lang.String, oracle.jbo.domain.Number) not found in class oracle.apps.icx.por.wf.server.ReqLinesNotificationsVOExRowImpl
Error(49,25): method getAttributeInternal(java.lang.String) not found in class oracle.apps.icx.por.wf.server.ReqLinesNotificationsVOExRowImpl
Error(55,9): method setAttributeInternal(java.lang.String, oracle.jbo.domain.Number) not found in class oracle.apps.icx.por.wf.server.ReqLinesNotificationsVOExRowImpl
Error(61,25): method getAttributeInternal(java.lang.String) not found in class oracle.apps.icx.por.wf.server.ReqLinesNotificationsVOExRowImpl
Error(67,9): method setAttributeInternal(java.lang.String, java.lang.String) not found in class oracle.apps.icx.por.wf.server.ReqLinesNotificationsVOExRowImpl
Error(67,9): method setAttributeInternal(java.lang.String, java.lang.String) not found in class oracle.apps.icx.por.wf.server.ReqLinesNotificationsVOExRowImpl
Error(79,9): method setAttributeInternal(java.lang.String, java.lang.String) not found in class oracle.apps.icx.por.wf.server.ReqLinesNotificationsVOExRowImpl
Error(85,25): method getAttributeInternal(java.lang.String) not found in class oracle.apps.icx.por.wf.server.ReqLinesNotificationsVOExRowImpl
Error(91,9): method setAttributeInternal(java.lang.String, java.lang.String) not found in class oracle.apps.icx.por.wf.server.ReqLinesNotificationsVOExRowImpl
Error(97,25): method getAttributeInternal(java.lang.String) not found in class oracle.apps.icx.por.wf.server.ReqLinesNotificationsVOExRowImpl
Error(103,9): method setAttributeInternal(java.lang.String, java.lang.String) not found in class oracle.apps.icx.por.wf.server.ReqLinesNotificationsVOExRowImpl
Error(109,25): method getAttributeInternal(java.lang.String) not found in class oracle.apps.icx.por.wf.server.ReqLinesNotificationsVOExRowImpl
Error(115,9): method setAttributeInternal(java.lang.String, java.lang.String) not found in class oracle.apps.icx.por.wf.server.ReqLinesNotificationsVOExRowImpl
Error(121,25): method getAttributeInternal(java.lang.String) not found in class oracle.apps.icx.por.wf.server.ReqLinesNotificationsVOExRowImpl
Error(127,9): method setAttributeInternal(java.lang.String, oracle.jbo.domain.Number) not found in class oracle.apps.icx.por.wf.server.ReqLinesNotificationsVOExRowImpl
Error(133,25): method getAttributeInternal(java.lang.String) not found in class oracle.apps.icx.por.wf.server.ReqLinesNotificationsVOExRowImpl
Error(139,9): method setAttributeInternal(java.lang.String, oracle.jbo.domain.Number) not found in class oracle.apps.icx.por.wf.server.ReqLinesNotificationsVOExRowImpl
Error(145,25): method getAttributeInternal(java.lang.String) not found in class oracle.apps.icx.por.wf.server.ReqLinesNotificationsVOExRowImpl
Error(151,9): method setAttributeInternal(java.lang.String, oracle.jbo.domain.Number) not found in class oracle.apps.icx.por.wf.server.ReqLinesNotificationsVOExRowImpl
Error(157,25): method getAttributeInternal(java.lang.String) not found in class oracle.apps.icx.por.wf.server.ReqLinesNotificationsVOExRowImpl
Error(163,9): method setAttributeInternal(java.lang.String, java.lang.String) not found in class oracle.apps.icx.por.wf.server.ReqLinesNotificationsVOExRowImpl
Error(169,25): method getAttributeInternal(java.lang.String) not found in class oracle.apps.icx.por.wf.server.ReqLinesNotificationsVOExRowImpl
Error(175,9): method setAttributeInternal(java.lang.String, java.lang.String) not found in class oracle.apps.icx.por.wf.server.ReqLinesNotificationsVOExRowImpl
Error(181,23): method getAttributeInternal(java.lang.String) not found in class oracle.apps.icx.por.wf.server.ReqLinesNotificationsVOExRowImpl
Error(187,9): method setAttributeInternal(java.lang.String, oracle.jbo.domain.Date) not found in class oracle.apps.icx.por.wf.server.ReqLinesNotificationsVOExRowImpl
Error(193,23): method getAttributeInternal(java.lang.String) not found in class oracle.apps.icx.por.wf.server.ReqLinesNotificationsVOExRowImpl
Error(199,9): method setAttributeInternal(java.lang.String, oracle.jbo.domain.Date) not found in class oracle.apps.icx.por.wf.server.ReqLinesNotificationsVOExRowImplError(205,23): method getAttributeInternal(java.lang.String) not found in class oracle.apps.icx.por.wf.server.ReqLinesNotificationsVOExRowImpl
I have ReqLinesNotificationsVORowImpl and ReqLinesNotificationsVOImpl files in myprojects directory. Can anyone help please?
Thanks

Hi,
From the error it seems that the code is refering ReqLinesNotificationsVOExRowImpl file.
Please make sure that its class file is present in myclasses folder.
Since u have mentioned that ReqLinesNotificationsVORowImpl is already placed in myclasses folder. Hope this should resolve your issue.
Regards,
Raj Papdeja

Similar Messages

  • "method not found in class " error message !

    Dear People,
    I have an error message that says:
    "Clerk.java": Error #: 300 : method doTransaction(stan_ch15p622.Transaction) not found in class stan_ch15p622.Bank at line 36, column 12
    below is the Clerk class of the program.
    doTransaction() is defined below the constructor and is called at the
    bottom of the class.
    Thank you in advance
    Stan
    package stan_From_Ivor_Horton_ch15p622;
    public class Clerk implements Runnable
    private Bank theBank; // the employer. who the clerk works for
    private Transaction inTray; //holds a transaction
    public Clerk(Bank theBank)
    this.theBank = theBank;
    inTray = null; // no transaction initially
    //receive a transaction
    public void doTransaction(Transaction transaction)
    inTray = transaction;
    //The working clerk...
    public void run()
    while(true) // no transaction waiting ?
         while(inTray == null)
         try
         Thread.sleep(150); // then take a break
    catch(InterruptedException e)
         System.out.println(e);
         theBank.doTransaction(inTray);
         inTray = null;
    //you can check whether a clerk is busy by calling the isBusy() member
    // it returns true if the transaction is strill in progress
    public boolean isBusy()
    return inTray != null;
    }

    Dear Hambone3,
    Due to your help I was able to correct my error. I mispelled the
    method in the Bank class. I wrote "toTransaction" instead of
    "doTransaction".I have alwyas had a hard time interrpreting the
    error messages literally because many times I don't see the
    connection between the message and the error. Cold water over
    the brain is sometimes what I need.
    God bless you.
    Stan

  • Inner class not found error when compiling project

    I tried to use 9iDS (JDeveloper 9.0.2.822) to generate applet that has textbox and button.
    I inserted UI components trough UI editor and added actionlistener there.
    Now when trying to compile (and run) project I get always "Class MyClass$1 not found in class MyPackage.MyClass"
    This only happens if both package and class are same named. If not it works... Is this feature of java, jdeveloper or something other? (Well, actually this is not a problem because rarely packages and classes are named as same.)

    Also, it's probably a good idea to name your packages different than your classesMoreover, common naming conventions dictate you should never even use capitals in your package names if I'm not mistaken. Whereas class names should always at least begin with a capital.
    This will help prevent a lot of confusion, both for the developer and the IDE. ;-)

  • Variable Not Found in Class Error

    I have a project which I organized the source in 4 packages. I have 4 source programs which use an external class which I don't have the source. So I imported the class and brought a copy of the class straight under the classes directory. Via "Project Properties" I modified the "Profiles + Development + Path" with the pass of this added class into the "Additional Classpath:" section. When I compile I'm getting this error: "Error(765,18): variable InfraAPI not found in class com.eds.soc.common.SocSharesEvent". It is not finding the InfraAPI.class that I imported. What am I doing wrong?

    You might want to use the JDeveloper library mechanism for this.
    Create a JAR with the files you need, then in project properties->libraries add this jar.

  • Methods not found in class !  HELP !

    Dear java People,
    I am trying to draw, move, and erase balls in a ArrayList. I get an error message that says:
    "BallDemo.java": Error #: 300 : method draw() not found in class java.lang.Object at line 126,
    "BallDemo.java": Error #: 300 : method move() not found in class java.lang.Object at line 132
    "BallDemo.java": Error #: 300 : method erase() not found in class java.lang.Object at line 138
    below are the lines causing the errors and the method with the problem code
    Thank you in advance
    Stan
    public void bounce()
            int ground = 400;   // position of the ground line
            int numberOfBalls = 0;
            myCanvas.setVisible(true);
            ArrayList balls = new ArrayList();
            // draw the ground
            myCanvas.drawLine(50, ground, 550, ground);
            //ex 5.50 (a)
            System.out.println("Type in the number of balls you would like to see bouncing and hit enter");
              numberOfBalls = input.readInt();
             //(b)
             for(int i = 0; i < numberOfBalls; i++)
               //(c) (d)
            Random rg = new Random(255);
             BouncingBall newBall =  new BouncingBall(i + 15, 0, 16, new Color(rg.nextInt(255),rg.nextInt(255),rg.nextInt(255)), ground, myCanvas);
             //add the ball to the ArrayList object
            balls.add(newBall);
           for(int i = 0; i < numberOfBalls; i++)
               balls.get(i).draw();
              // make them bounce
              boolean finished =  false;
              while(!finished) {
               myCanvas.wait(50);           // small delay
               balls.get(i).move();
                // stop once ball has travelled a certain distance on x axis
               // if(ball.getXPosition() >= 550 && ball2.getXPosition() >= 550)
                    finished = true;
              balls.get(i).erase();
        }balls.get(i).draw();
    balls.get(i).move();
    balls.get(i).erase();

    I actually caught this error myself !
    I must be improving !
    Cheers
    Stan

  • Method not found :set_ToggleSidePanel(SidePanelKind) error

    I developed an wpf application in vs2010. I am generating the reports using crystal report wpf viewer. Its working fine on the system it is developed but on target machine its giving following error:
    method not found: void SAPBusinessObjects.WPF.Viewer.viewercore.set_ToggleSidePanel(SidePanelKind)
    I am using redistributable installation file for crystal report deployment.

    I am having the same issue.  My Visual Sutdio environment is 10.0.40219.1 SP1.  I have run the CRRuntime_32bit_13_0.msi on the clients machine.  When I run the reports on my development machine I do not have an issue.  When the clients run the reports on their machine the get : Method not found: 'Void
    SAPBusinessObjects.WPF.Viewer.CrystalReportsViewer.set_ToggleSidePanel(SidePanelKind)'.
    What we are trying to do is set the ToggleSidePanel to none.  Can someone help me with this?

  • Method Not Found Invoke Node error 1316 using Solid Works IEdm

    Hi Forum members,
    I have been having a problem with calling a function in a dll file.  I have attached the VI as example.  When I use the GetFile method I get a reference to that.  I then use the Invoke node and recieve a list of methods, the first of which is ChangeState.  I select this method and wire all required inputs and when I run the program I receive the error at that invoke node that the method does not exist.  How is this possible?  I have tried various methods to ensure the inputs are all correct and none have worked.  I do not believe the fault lies in the inputs, but I cannot for the life of me find the problem...  Perhaps someone has experience using Solid Works in Labview?  Any help would be appreciated.!!
    Cheers
    Ben
    Attachments:
    SetFileSatus.vi ‏18 KB

    I have determined that there is a problem with the Invoke node not recognising the function.  This is a Labview problem as the function is listed and selectable, so when the error comes saying the function is not found, this is a problem with Labview and not the dll.  The Function when selected also has the right input parameters that automatically appear.  How is it then that the method is not found when the program is run?

  • "404 Not Found nginx" Certificate Error when performing Google search

    Ever since I upgraded to Mavericks on my 2.4 GHz Intel iMac I have started getting occasional errors when trying to access Google sites (search, docs, calendar, YouTube, etc).  In Safari, I get the warning that the Certificate is Invalid, and when I view the certificate I see a hierarchy of Certificates: "Class 3 Public Primary Certification Authority > Verisign Class 3 Public Primary Certification Authority - G5 > Verisign Class 3 Secure Server CA - G3 > [and here is the weird part to me] a web domain *other than* google or the site I am visiting, e.g. "www.netflix.com" (I don't have a netflix account), or www.skype.com, or others.  Sometimes when I then accept the certificate I am redirected to the site listed in the cert screen, e.g. Netflix, other times I get a screen that says "404 Not Found nginx", other times a screen saying "Invalid URL: The requested URL "/", is invalid. Reference #9.4d290e6b1389574.4981108".  I am then not able to access any google sites until some time has passed. This happens in all browsers; it is not specific to Safari.
    Other notes:
    -My computer's date and time is correct
    -I deleted the SystemRoot Certificates for Verisign and the problem went away but not having that certificate created a lot of different problems.
    -I reinstalled Mavericks to get the System Root certs back and the problem returned
    Thanks for any advice you have.

    1. Have you restarted your router and your broadband device (if they're separate) since you first noticed the problem? If not, do that now and see whether there's any change.
    2. From the Safari menu bar, select
    Safari ▹ Preferences... ▹ Privacy ▹ Remove All Website Data
    and confirm. Test.

  • Object not found in store error when trying to load MimeContent of an email (containing attachments)

    This is a weird one and I'm hoping someone can reproduce this and give me some help.
    We have a system that uses the EWS Managed API to send emails. Optionally an email may need to be saved out as an rfc822 (.eml) file afterwards for storing in our own database. In order to save to a file I need to load up the MimeContent of the message.
    And this is where an "Object not found in store" exception can get thrown.
    The really strange part is that the exception only seems to occur if the email contains an attachment and if there is too much of a delay between sending the email and trying to access the MimeContent!
    My test code is something like:
    // Set up the basics
    _item = new EmailMessage(P7ExchangeService.Service);
    _item.Subject ="Hello world";
    _item.ToRecipients.Add("some name", "[email protected]");
    _item.Body = new MessageBody(BodyType.HTML, @"<html><head></head><body>hello world<image src=""cid:blah""/></body></html>");
    // Add attachment
    FileAttachment att = _item.Attachments.AddFileAttachment("blah", "c:\temp\blah.jpg");
    att.IsInline = true;
    att.ContentId = "blah";
    // Send and save
    _item.SendAndSaveCopy();
    // Wait a bit (see comments below)
    Thread.Sleep(5000);
    // Now try and save out
    var propCollection = _item.GetLoadedPropertyDefinitions();
    propCollection.Add(ItemSchema.MimeContent);
    _item.Load(new PropertySet(propCollection)); // EXCEPTION!
    // ... etc
    On some systems it seems that the sending can take a while, hence my Thread.Sleep() call to simulate this.
    Its when I try and load up the MimeContent that I will then get the exception. But ONLY if I sleep (simulating the occasional delay seen on customer sites) and ONLY if the email contains an attachment.
    The mimecontent is necessary in order to save out to a file (by accessing the _item.MimeContetn property).
    Can someone please explain the exception and/or provide a better way of doing this??

    This is normal EWS doesn't return the Id of the Item in the SentItems Folder so you need to use a workaround like
    http://blogs.msdn.com/b/exchangedev/archive/2010/02/25/determining-the-id-of-a-sent-message-by-using-extended-properties-with-the-ews-managed-api.aspx .
    If you want to understand the issue you can enable tracing and look at responses, the actually Id your trying to load the MimeContent from is probably the Id of the draft message. Eg to send a message via EWS with attachments multiple operations must be
    used to construct it and when the messages finally gets sent the copy in the drafts folder is deleted and a copy is created in the SentItems folder. However the Id isn't returned for the SentItems copy hence you need the workaround.
    Cheers
    Glen

  • I am getting this error when compiling project.

    I created a project from an existing source files. I then wanted to compile my entire project. When I do that, I am getting the following errors on all my .jsp files. Does anyone know what this mean or how to stop this. Thanks.
    Error: JSP files must reside in the server root directory or a subdirectory beneath it

    Thaks for posting replying. I like to understand why you need to have it under a perticular directory. We have our project organized as follow.
    Project
    |
    |- src
    |--- java
    |------ com
    |--------- abc
    |--- web
    |--- xml
    |--- conf
    |--- db
    |--- other ...
    And we have the .jsp files all under web directory. We are currently using another IDEA and I would like to give JDeveloper a try. So, I checked out my project from CVS into a temp directory and playing with jdeveloper. Do I have to re-arrange all my directory structure to make it work with jdeveloper?

  • JBO:33001 bc4j.xcfg file not found in class path

    Hi,
    I am yet another victim of the age-old error JBO:33001 bc4j.xcfg file not found in class path, When i have my BC4JApp.jar in Tomcat Web-inf/lib directory. All the other jar files and class files in my webserver-application web-inf classes and lib directory works.
    But Tomcat server is not able to read this bc4j.xcfg file. I can see in my jar file that this bc4j.xcfg exists and in the specified package directory. still the problem persists. My BC4JApp.jar is perfectly working when i use JDeveloper. but not when i use tomcat4.0 and call a JSP using BC4JApp.jar from browser (My environment is Jdeveloper3.2, Tomcat4.0+IIS in middle tier and oracle 8i as DB, everything on windows2k)
    I have gone through almost all the threads possible that relates to this error in this form. None of them have a answer except to say "put the file in classpath". and last reply is "will fix in jDeveloper 9i. So what happens to us who are working in Jdeveloper 3.2?
    1. I have this file in my jar file.
    2. I also tried creating a seperate directory manually, with the same name as my package under web-inf/classes, web-inf/lib , just under web-inf directory and atlast under approot directory also. I tried having my package directory containing bc4j.xcfg in these folders one at a time and also tried having this directory in all these folders at the same time.
    Still no solution.
    Itz frustrating that neither proper documentation nor a right url page nor i am aware of available addressing this. page links given in above threads only gives me the wonderful page of ie's "Page cannot be displayed".
    Is there a answer to this error and my problem. If this doesn't work, then i have to all the way develop from scratch creating my jsp using JDBC calls and Stored packages etc.
    I don't want to give up on this Jdeveloper at this final moment because if this bc4j.xcfg file is found, my application will work perfectly. on these final moments, if this doesn't work, i am frightened to imagine to develop my application in standard way. Atlast, if thatz the option left,we have to do that bcos our production date is close by.
    Please can some one in this forum or Jdeveloper help me to solve this problem. I am desperate and very urgent.
    Waiting for a reply from Jdev team very much...
    ( I just posted in the other thread which is pretty old, dated backto May 2001, which was relevant to this error. Just to make sure it is noticed, I am posting it seperately too)
    Thanks
    Hari(2/3/02)

    Hi All,
    For those who are following this thread, I got a solution for this error with the help of Jdev Team.
    This solution may work, if you have deployed your application in Tomcat4.0.1. This is the environment in which I work and tested.
    As you may be aware, Tomcat ignores value in CLASSPATH variable.
    To see any files that are existing or newly deployed, it has it own way of detecting it.
    Addition information on Tomcat working, you can follow this link,
    http://jakarta.apache.org/tomcat/tomcat-4.0-doc/index.html
    Coming to point, Tomcat has got five classloaders and each classloader invoked, looks in their related directories for files in following order.
    1. /WEB-INF/classes of your web-application
    2. /WEB-INF/lib/*.jar of your web application
    3. BootStrap classes of your JVM (Tomcat's $JAVA_HOME/jre/lib/ext)
    4. System class loader classes($CATALINA_HOME/bin/bootstrap.jar,CATALINA_HOME/lib/tools.jar)
    5. $CATALINA_HOME/common/classes
    6. $CATALINA_HOME/common/lib/*.jar
    7. $CATALINA_HOME//classes
    8. $CATALINA_HOME/lib/*.jar
    So All your individual application related files should be deployed in your application's WEB-INF/classes or WEB-INF/lib directory accordingly.
    If your application files are unpacked, they should be deployed or copied under WEB-INF/classes directory
    if the files are within a jar, they should be under WEB-INF/lib directory.
    If your Jar-files contains bc4j components, then those jar files should be deployed under WEB-INF/lib directory. Also,do the next step to copy all relavant BC4J runtime libraries under lib directory.
    IMPORTANT: Please remember to copy and paste all the required BC4j runtime libraries in the Same WEB-INF/lib directory along with your application jar files. This is the real reason which can solve this JBO:33001 to disappear. It worked for me.
    To configure your directory for tag-lib uri's, use web.xml to set the taglib-uri attribute.
    Put your web.xml and DataTags.tld in the WEB-INF directory.
    Your simple web.xml may look like as follows.
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
    "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app>
         <taglib>
              <taglib-uri>
                   /webapp/DataTags.tld
              </taglib-uri>
              <taglib-location>
                   /WEB-INF/DataTags.tld
              </taglib-location>
         </taglib>
    </web-app>
    You may then modify this web.xml to suit further requirements of your application.
    Remember to stop and restart the Tomcat Server (service) by using shutdown and startup scripts after updating any jar files/class files/ JSP or source files deployed in Tomcat.
    Sometimes, only this helps even though your context's reloadable attribute is set to true in Tomcat Server's server.xml file.
    Hope this above information helps you to solve this error in Tomcat environment. My Sincere thanks once again to Juan and Jdev team for their help and efforts to solve this problem.
    Thanks
    Hari

  • Error(400,8): method include(java.lang.String, boolean) not found in class

    I have uploaded my Application which was running fine in other IDE to jdev 10.1.3, when i compile the follwing error error in jsp page.
    Error(400,8): method include(java.lang.String, boolean) not found in class javax.servlet.jsp.PageContext
    My jsp code where error is shown is
    <jsp:include page="querySections/generation.jsp" flush="true">
                                            <jsp:param name="TSN" value="<%=strParamValue[1]%>"/>
                                            <jsp:param name="SectionID" value="<%=String.valueOf(lngSectionID)%>"/>
                                       </jsp:include>
    pl help me in solving this its urgent...
    Thanks & Regards
    Lakshmi

    Hi,
    code snippet looks okay and is identical with what JDeveloper generates.
    Frank

  • UI Error 'Method clone not found in class java.lang.Class'

    When attempting to view an application window in the User Interface error I receive the error 'Method clone not found in class java.lang.Class'. The window will run correctly when I execute the application and other objects on the window are displayed correctly in the UI editor.
    Within the window class I have used the following line of code to clone a reference list of values that is loaded just once when the application starts up: -
    dsDefaultComboBoxModel priorityComboBoxModel = (dsDefaultComboBoxModel) dsReferenceLuLists.priorityComboBoxModel.clone();
    And then this line of code to create a combo box: -
    dsGuiComboBoxRefelu priorityComboBox = new dsGuiComboBoxRefelu(priorityComboBoxModel,ReportWindowSql.priorityCodeBuffer);
    And then later on the combo box is displayed.
    detailsArea.add(priorityComboBox, new XYConstraints(250,10,dsGlobalVariables.gvFieldWidthLarge,-1));
    'dsDefaultComboBoxModel' is defined as follows: -
    public class dsDefaultComboBoxModel extends DefaultComboBoxModel implements Cloneable
    public dsDefaultComboBoxModel()
    public Object clone()
    try
    return super.clone();
    catch ( CloneNotSupportedException e )
    // Shouldn't happen.
    throw new InternalError( e.toString() );
    This error occurs using the latest v903, but was also present in previous versions of JDeveloper.
    At the moment this means that I did to execute the window in order to see all of the GUI elements that are displayed. As on option I could use something other than the clone method, but it seems to be such a nice way of copying the static reference lists.
    Thanks for any help.

    Hi Darren,
    My guess is that since DefaultComboBoxModel doesn't implement Cloneable, you can't call super.clone(). Does your code compile?
    Later.
    Dennis

  • Error(23,19): method getName(java.lang.String) not found in class javax.swi

    Hi , when i try to run my program, i keep getting the error msg:
    Error(23,19): method getName(java.lang.String) not found in class javax.swing.JTextField
    I have checked the java API and it inherits from the awt.Component class and should be accessible via the jtextfield.
    I have tried the following:
    trying to initailise the JTextField at the start.
    Using getName works if i use it within the loop after setting the name.
    Does anybody know what i am doing wrong please?
    public class clsMember extends JPanel implements ActionListener {
        private JButton jbtnLog;
        private String surname;
        private JTextField txtItem;
        public clsMember() {
            super(new SpringLayout());
            makeInterface();
            surname = txtItem.getName("Surname").toString();
    private void makeInterface() {
         //code omitted
               for (int i = 0; i < numpairs; i++) {
                JLabel l = new JLabel(strLabels, JLabel.LEADING);
    this.add(l);
    //if the array item is salutation create a combobox
    if (strLabels[i] == "Salutation") {
    jcomSalutation = new JComboBox(strSalutation);
    jcomSalutation.setSelectedIndex(0);
    this.add(jcomSalutation);
    } else {
    txtItem = new JTextField(10);
    l.setLabelFor(txtItem);
    txtItem.setName(strLabels[i].replaceAll(" ", "")); //this is where the label is set and if i do a system.out it shows fine. getName works here too.
    this.add(txtItem);
    //code omitted

    If i have a loop that creates the jtextfields such as
                    txtItem = new JTextField(10);
                    l.setLabelFor(txtItem);
                    txtItem.setName(strLabels.replaceAll(" ", ""));
    this.add(txtItem);How is it then possible to assign to a string the value of a *specific jtextfield*. Lets say that one of these JTextfields has the name surname.
    How is it possible for me to writeString surname = surnamejtextfield.getText();                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Error of method not found in C# class in VS 2013 on win7

    I am changing a C# code in a solution (it has many files and projets) from VS 2013 on win 7.
    I added some properties in class1. It was built well.
    But, it has run-time error:
    Method not found : class1.set_p1(system.string)
    The code logic is as follows:
    public class class1
    public string p1 {get; set;} // **have updated**
    class1 is defined in a C# project that has been added in the solution.
    public abstract class class2 : class1
    class2 ins2;
    ins2.p1 = myData.order.data_file; // myData is from an xml file after deserialize and serialize, data_file is a file path.
    I have cleaned up the solution before building. I have also search the error online but none of them can solve my problems.
    Any help would be appreciated.

    Check your dependencies in your projects. I understand the project was added to the solution but was it also added to the projects that will be 1. implementing/inheriting types from that project and 2. consuming types from that project
    Check your name spaces to make sure that the type class1 is not also defined in another namespace in that or even a different project. In that case class1 might not have that property available because its pointing to the wrong type.
    If that does not solve your problem it would be helpful to include.
    the fully qualified namespaces of the types in your type hierarchy that are giving you the problem
    the full calling code, the sample above is not correct in syntax.
    the project dependencies for the code in question and where the types are located in each project
    Mark as answer or vote as helpful if you find it useful | Igor

Maybe you are looking for

  • F4 for select options

    Hi SDN's i have a filed on the selection screen of a report,which is customised data element. How do i activate the F4 for that field? Regards Pratyusha

  • MS Word, Excel will not print black characters

    This is the oddest upgrade problem EVER, and I've been running Macs since 1987. Using MS Excel and Word, printing to my HP printers, none of the 'black' text will print in a word doc or excel sheet, but all of the 'colored' background fills will work

  • How is the table DDSHPVAL50 maintained ?

    How is the table DDSHPVAL50 maintained ?

  • Error Screen

    Every couple of days since the last itunes update, my ipod classic will stop playing music and go to an error screen, after which I have to reboot it it. The error screen is an apple with blue and black colors on the bottom half of the screen. Is any

  • Clickable image doesn' t work in the table

    Hi all, Our Visual Composer has been upgraded to sps12. And when I add an image to a form and assign it a hyperlink action, it does work well. But when I add an image column to a table and assign it the similar hyperlink action, it doesn't work. Does