Variable not found in class....?????

package untitled1;
import java.awt.*;
import java.awt.event.*;
import java.applet.*;
public class Applet1 extends Applet
Button knop1, knop2, knop3;
TextField tekstvakje;
Font opmaak1, opmaak2, opmaak3;
public void init()
knop1 = new Button("knop 1");
knop1.addActionListener(new Knop1Handler());
knop2 = new Button("knop 2");
knop2.addActionListener(new Knop2Handler());
knop3 = new Button("knop 3");
knop3.addActionListener(new Knop3Handler());
tekstvakje = new TextField("test",10);
opmaak1 = new Font("Serif", Font.BOLD, 10);
opmaak2 = new Font("Serif", Font.ITALIC, 15);
opmaak3 = new Font("Serif", Font.PLAIN, 20);
add(knop1);
add(knop2);
add(knop3);
add(tekstvakje);
class Knop1Handler implements ActionListener
public void actionPerformed(ActionEvent e)
tekstvakje.setFont(opmaak1);
class Knop2Handler implements ActionListener
public void actionPerformed(ActionEvent e)
tekstvakje.setFont(opmaak2);
class Knop3Handler implements ActionListener
public void actionPerformed(ActionEvent e)
tekstvakje.setFont(opmaak3);
error message:
"Applet1.java": Error #: 300 : variable opmaak1 not found in class untitled1.Knop1Handler at line 38, column 28
"Applet1.java": Error #: 300 : variable tekstvakje not found in class untitled1.Knop1Handler at line 38, column 9
"Applet1.java": Error #: 300 : variable opmaak2 not found in class untitled1.Knop2Handler at line 45, column 28
and so on........
what's the reason he don't fount this variables??? the KnopHandlers are a subclass fromm Applet so I don't understand the subclass can't find the variables....
sorry for this stupid question, but I just started with making Object Orientated code.

moi,
Ten eerste is Knop1Handler geen subclass van Applet maar van Object. Alle classen erfen van object of een subclass van Object.
Ik neem aan dat Knop1Handler een aparte class is in een apart bestand. Dan kan hij nooit attribute van Applet1 gebruiken. Dat gaat enkel via inner classes.
Je kan verschillende dingen doen:
je maakt de Knop1Handler class een inner class wat in dit geval de mooiste oplossing is.
je verplaatst Font opmaak1 naar class Knop1Handler.
je maakt Font opmaak1 static en roept in class Knop1Handler Applet1.opmaak1. wat een slechte oplossing is

Similar Messages

  • Variable not found in class - Newbie

    public void executeSearch() {
    try {
    File startSearchDir = new File(directory);
    } catch (NullPointerException npe) {
    System.out.println("The file path entered is not valid.");
    return;
    File [] fileArray = startSearchDir.listFiles();
    Why is the startSearchDir variable not found on the last line of this method?
    Thanks,
    Devon

    This is the whole class. I have tried the previous suggestion but then I get a duplicate declaration for the variable.
    package PgScan;
    import java.awt.*;
    import javax.swing.JPanel;
    import java.io.*;
    import java.lang.reflect.Array;
    * Title: Page Scanner
    * Description: Page scanner recurisively scans through subdirectories through a provided path and
    * for a provided tag.
    * Copyright: Copyright (c) 2001
    * @author
    * @version 1.0
    public class PgScan extends JPanel {
    BorderLayout borderLayout1 = new BorderLayout();
    private String directory = "";
    private String searchString = "";
    public PgScan() {
    try {
    jbInit();
    catch(Exception ex) {
    ex.printStackTrace();
    private void jbInit() throws Exception {
    this.setLayout(borderLayout1);
    //Main Method
    public static void main(String[] args) {
    PgScan pgScan1 = new PgScan();
    //Properties
    public String getDirectory() {
    return directory;
    public void setDirectory(String newDirectory) {
    directory = newDirectory;
    public String getSearchString() {
    return searchString;
    public void setSearchString(String newString) {
    searchString = newString;
    //Methods
    public void executeSearch() {
    try {
    File startSearchDir = new File(directory);
    } catch (NullPointerException npe) {
    System.out.println("The file path entered is not valid.");
    return;
    File [] fileArray = startSearchDir.listFiles();
    TIA,
    Devon

  • 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.

  • Variable NOT Found in Class. I'm Confused!

    Variable "no" not found in class. I don't understand. Also, this code is really a mess. If a User enters an integer, then another and another, it's suppose to count the number of integers and how many times each was chosen. Example 1.4.4.5.7.7.7.8. It would print out that 1 was entered 1 time, 4 was entered 2 times, 5 once, 7 entered three times, and 8 once, etc.. Anyway, below is the code with the varibale that can't be found.
    public class Arbitrary
      public static void main(String[] args)
        final int NUMNUMERIC = 50;
        String str, another = "y";
        while (another.equals("y"))
          int[]myNumbers = new int[NUMNUMERIC];
        char current;  //the current character being processed
        String line = Console.readString ("Enter an integer from 0-50:");
        for (int no = 0; no <line.length();no++);
          current = line.charAt(no);
        System.out.println("The total of numbers is:" +current);
        another = Console.readString ("Type another number or press 0 to quit:");
    }

    for (int no = 0; no <line.length();no++);                    try removing this ";" ----^

  • Newbie:( error "Variable not found in class" help ppls

    Hello, making a program for school having a problem with my code
    because i am combining and modifying programs to suit my requirements,
    the error is as follows
    Error:(185) variable EXIT_ON_CLOSE not found in class javax.swing.JFrame
    can anyone give me some idea's on how to fix this or where i have gone wrong have i left something vital out?
    thanks

    Hello, making a program for school having a problem
    with my code
    because i am combining and modifying programs to suit
    my requirements, Script kiddie. I see. Bad approach.
    the error is as follows
    Error:(185) variable EXIT_ON_CLOSE not found in class
    javax.swing.JFrame
    can anyone give me some idea's on how to fix this or
    where i have gone wrong have i left something vital
    out?Weird error, since EXIT_ON_CLOSE is defines in JFrame. Are you using an IDE? Save, clean, rebuild. Make sure you imported the class, too.

  • Error: variable XMLInterface not found in class

    Hi,
    I am creating an XML Publisher Report Output from OAF Page.
    This is my code in CustAM
    public void initSunReportVO()
    SunReportVOImpl vo = getSunReportVO1();
    if(vo == null)
    MessageToken errTokens[] = {
    new MessageToken("OBJECT_NAME", "SunReportVO1")
    throw new OAException("AK", "FWK_TBX_OBJECT_NOT_FOUND", errTokens);
    } else
    vo.executeQuery();
    public void getSunReportDataXML()
    try {
    ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
    OAViewObject vo = (OAViewObject)findViewObject("SunReportVO1");
    ((XMLNode) vo.writeXML(4, XMLInterface.XML_OPT_ALL_ROWS)).print(outputStream);
    System.out.println(outputStream.toString());
    catch(Exception e)
    throw new OAException (e.getMessage());
    I am getting the following errors.
    Error(1608,27): variable XMLInterface not found in class XXX.oracle.apps.po.requisition.server.custamImpl
    Could anyone help me how to resolve the above issues.
    Thanks in Advance.
    Sruthi

    Hi,
    WebExpensesAMImpl$ExpenseTypeAmount is an inner class that you cannot access from outside of the class in which it is specified
    Frank

  • Variable textArea not found in class javax.swing.JFrame...

    Making progress on this issue -- but still stuck. Again trying to get the text from a JTextArea on exit:
            frame.addWindowListener
           (new WindowAdapter() {
             public void windowClosing(WindowEvent e)
                System.out.println("Why me???" + frame.textArea.getText());
            });User MARSIAN helped me understand the scope fo the variables and now that has been fixed. Unfortunately I cannot access my variable textArea in the above code. If get this error:
    Error: variable textArea not found in class javax.swing.JFrame
    What am I doing wrong?
    import  java.net.*;
    import  javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import FragImpl.*;
    public class Framework extends WindowAdapter {
        public int numWindows = 0;
        private Point lastLocation = null;
        private int maxX = 500;
        private int maxY = 500;
        JFrame frame;
        public Framework() {
            newFrag();
            Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
            maxX = screenSize.width - 50;
            maxY = screenSize.height - 50;
            makeNewWindow();
        public void makeNewWindow() {
            frame = new MyFrame(this);  //*
            numWindows++;
            System.out.println("Number of windows: " + numWindows);
            if (lastLocation != null) {
                //Move the window over and down 40 pixels.
                lastLocation.translate(40, 40);
                if ((lastLocation.x > maxX) || (lastLocation.y > maxY)) {
                    lastLocation.setLocation(0, 0);
                frame.setLocation(lastLocation);
            } else {
                lastLocation = frame.getLocation();
            System.out.println("Frame location: " + lastLocation);
            frame.setVisible(true);
            frame.addWindowListener
           (new WindowAdapter() {
             public void windowClosing(WindowEvent e)
                System.out.println("Why me???" + frame.textArea.getText());
        //This method must be evoked from the event-dispatching thread.
        public void quit(JFrame frame) {
            if (quitConfirmed(frame)) {
                System.exit(0);
            System.out.println("Quit operation not confirmed; staying alive.");
        private boolean quitConfirmed(JFrame frame) {
            String s1 = "Quit";
            String s2 = "Cancel";
            Object[] options = {s1, s2};
            int n = JOptionPane.showOptionDialog(frame,
                    "Windows are still open.\nDo you really want to quit?",
                    "Quit Confirmation",
                    JOptionPane.YES_NO_OPTION,
                    JOptionPane.QUESTION_MESSAGE,
                    null,
                    options,
                    s1);
            if (n == JOptionPane.YES_OPTION) {
                return true;
            } else {
                return false;
         private void newFrag()
              Frag frag = new FragImpl();
        public static void main(String[] args) {
            Framework framework = new Framework();
    class MyFrame extends JFrame {
        protected Dimension defaultSize = new Dimension(200, 200);
        protected Framework framework = null;
        private Color color = Color.yellow;
        private Container c;
        JTextArea textArea;
        public MyFrame(Framework controller) {
            super("New Frame");
            framework = controller;
            setDefaultCloseOperation(DISPOSE_ON_CLOSE);
            setSize(defaultSize);
            //Create a text area.
            textArea = new JTextArea(
                    "This is an editable JTextArea " +
                    "that has been initialized with the setText method. " +
                    "A text area is a \"plain\" text component, " +
                    "which means that although it can display text " +
                    "in any font, all of the text is in the same font."
            textArea.setFont(new Font("Serif", Font.ITALIC, 16));
            textArea.setLineWrap(true);
            textArea.setWrapStyleWord(true);
            textArea.setBackground ( Color.yellow );
            JScrollPane areaScrollPane = new JScrollPane(textArea);
            //Create the status area.
            JPanel statusPane = new JPanel(new GridLayout(1, 1));
            ImageIcon icoOpen = null;
            URL url = null;
            try
                icoOpen = new ImageIcon("post_it0a.gif"); //("doc04d.gif");
            catch(Exception ex)
                ex.printStackTrace();
                System.exit(1);
            setIconImage(icoOpen.getImage());
            c = getContentPane();
            c.setBackground ( Color.yellow );
            c.add ( areaScrollPane, BorderLayout.CENTER )  ;
            c.add ( statusPane, BorderLayout.SOUTH );
            c.repaint ();
    }

    Yeah!!! It works. Turned out to be a combination of DrKlap's and Martisan's suggestions -- had to change var frame's declaration from JFrame to MyFrame:
        MyFrame frame;Next, created the external class -- but again changed JFrame references to MyFrame:
    public class ShowOnExit extends WindowAdapter {
    //   JFrame aFrame;
       MyFrame aFrame;
       public ShowOnExit(MyFrame f) {
          aFrame = f;
       public void windowClosing(WindowEvent e)
          System.out.println("Why me???" + aFrame.textArea.getText()); // aFrame here not frame !!!
    }This worked. So looks like even though the original code added a WindowListener to 'frame', the listener didn't couldn't access frame's methods unless it was explicitly passed in as a parameter. Let me know if that's wrong.
    Thanks again, all.

  • 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

  • On make: variable not found in include file (it's in including page)

    JDeveloper 10.1.2.1.0 build 1913
    I'm new to JDeveloper and finally have things set up correctly but when I try to make/run my app (java/beans/jsp) I get the "variable not found" error;
    Error(25,16): variable subActionName not found in class includes.vendorSubsidiaries
    since the variable is defined in the including page.
    I found this thread from 2 years ago:
    JSP Static Include in JDeveloper
    that was exactly the same....but had no resolution.
    Hopefully over the last 2 years someone knows the answer to this dilemna.
    thanks.

    Hi,
    I was able to make xerces.jar available in OC4J 9.0.3 but now I got problem with JMS.
    I got the following exception:
    java.lang.ClassCastException: com.evermind.util.CharString
    at com.evermind.server.jms.JMSExpressionParser.processParts(JMSExpressionParser.java:49)
    at com.evermind.parser.ExpressionParser.parseParts(ExpressionParser.java:449)
    at com.evermind.parser.ExpressionParser.parse(ExpressionParser.java:121)
    at com.evermind.server.jms.MessageSelector.<init>(MessageSelector.java:23)
    at com.evermind.server.jms.MessageSelector.getSelector(MessageSelector.java:54)
    at com.evermind.server.jms.LocalQueueConnection.receive(LocalQueueConnection.java:56)
    at com.evermind.server.jms.EvermindQueueSession.receive(EvermindQueueSession.java:241)
    at com.evermind.server.jms.EvermindQueueReceiver.receiveNoWait(EvermindQueueReceiver.java:85)
    at com.nrx.job.JobManager.receive(JobManager.java:167)
    at com.nrx.repository.appServer.SearchServlet.service(SearchServlet.java:120)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:721)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
    at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
    at java.lang.Thread.run(Unknown Source)
    I don't get this exception if I use Oracle XML parsing classes. They use crimson.jar.
    Thanks a lot,
    Andrei.

  • Compiler error "oracle.xml.parser.v2.XMLElement" not found in class com.ora

    Compiler error "oracle.xml.parser.v2.XMLElement" not found in class com.oracle.demos......?
    I am currently testing a simple sample application with a java code similar to the one shown at
    the bottom of this post.
    However during deployment/compilation the compiler gives an error:
    Error(26,23): XMLElement not found in class com.oracle.demos.orderbooking.ApproveImpl
    Additionally similar other errors appear:
    Error(23,66): JAXBException not found in class com.oracle.demos.orderbooking.ObjectFactory
    Error(51,58): UnmarshalException not found in class com.oracle.demos.orderbooking.ObjectFactory
    Error(9,92): Element not found in interface com.oracle.demos.orderbooking.Approve
    What's wrong?
    It seems to me that I have to add some (more) *.jar files/libraries to the project?
    Which *.jars and where should I add them in JDeveloper?
    source code:
    package com.oracle.demos.orderbooking;
    public class ApproveImpl extends com.oracle.demos.orderbooking.ApproveTypeImpl implements com.oracle.demos.orderbooking.Approve
    public ApproveImpl(oracle.xml.parser.v2.XMLElement node)
    super(node);
    }

    Hai James this the response I am getting can you please tell what should I write inside ora:getNodeValue() to get the value of node <genReturnText>
    The drag and dropping the variable name is not working, I have to write the path manually but I dont know how.
    <ns1:getRoutingAndFrameJumpersResponse xmlns:ns1="com.NetworkInstallations">
    -<com.GetRoutingAndFrameJumpersOutput>
    <destination>
    SW
    </destination>
    <e2EData>
    busProcOriginator
    </e2EData>
    <genReturnCode>
    40777
    </genReturnCode>
    <genReturnText>
    EMW_Get_Routing_And_FrameJumpers_Succeeded
    </genReturnText>
    <supplCode>
    ISY002
    </supplCode>
    <supplText>
    Transaction successfully completed.
    </supplText>
    <severityCode>
    S
    </severityCode>
    <retriable>
    false
    </retriable>
    </com.GetRoutingAndFrameJumpersOutput>
    </ns1:getRoutingAndFrameJumpersResponse>

  • Error(10,47): EntryFlowPageCO not found  in class oracle.apps.ap.oie.entry.

    Hi All,
    I extended a CO named IndusFinalReviewPageCOXX and I got the following error.
    Error(10,47): EntryFlowPageCO not found in class oracle.apps.ap.oie.entry.summary.webui.FinalReviewPageCO in class indus.oracle.apps.ap.oie.entry.summary.webui.IndusFinalReviewPageCOXX.
    I already drag the class file of EntryFlowPageCO in path myclasses\oracle\apps\ap\oie\entry\summary\webui
    and import the file. but the error remains same..after that I compile the class file of EntryFlowPageCO and found one more CO imports in EntryFlowPageCO. I drag class file of that CO also in appropriate path.. But still get the same error.
    Pls give me the solution ASAP.
    Thanks
    Amit Jaitly

    Amit,
    In the standard CO you can check that controller EntryFlowPageCO is not under myclasses\oracle\apps\ap\oie\entry\summary\webui.
    Its under oracle/apps/ap/oie/entry/webui so put the same under this directory structure.
    Regards,
    Gyan

  • Method addLayout not found in class ...cp.request.ConcurrentRequest

    I am trying to send concurrent request (XML publisher report) through OAF controller.
    But I get next error when compile it:
    Error(46,20): method addLayout(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String) not found in class oracle.apps.fnd.cp.request.ConcurrentRequest
    Below the sample of code.
    Please, help me to find a root of cause
    package xxcust.oracle.apps.ap.oie.webui;
    import oracle.apps.fnd.common.VersionInfo;
    import oracle.apps.fnd.framework.webui.OAControllerImpl;
    import oracle.apps.fnd.framework.webui.OAPageContext;
    import oracle.apps.fnd.framework.webui.beans.OAWebBean;
    import oracle.jdbc.OracleCallableStatement;
    import java.util.Vector;
    import oracle.apps.fnd.cp.request.ConcurrentRequest;
    import oracle.apps.fnd.framework.OAApplicationModule;
    import oracle.apps.fnd.framework.OAException;
    import oracle.apps.fnd.framework.server.OADBTransaction;
    public class xxMyPrintCO extends OAControllerImpl
    public static final String RCS_ID="$Header$";
    public static final boolean RCS_ID_RECORDED =
    VersionInfo.recordClassVersion(RCS_ID, "%packagename%");
    public void processRequest(OAPageContext pageContext, OAWebBean webBean)
    { super.processRequest(pageContext, webBean);
    OAApplicationModule am = pageContext.getApplicationModule(webBean);
    OADBTransaction tx = am.getOADBTransaction();
    java.sql.Connection pConncection = tx.getJdbcConnection();
    ConcurrentRequest cr = new ConcurrentRequest(pConncection);
    int xxRequestId = 0;
    // concarent parameters
    String xxp_type = null;
    String applnName = "SQLAP";
    String cpName = "XXKVP_KO1";
    String LayName = "XXKVP_KO1";
    String cpDesc = null;
    try
    cr.addLayout("PER",LayName,"ru","RU","PDF");
    catch(Exception e)
    {throw new OAException("addLayout -" + e.getMessage(), (byte)0);
    public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processFormRequest(pageContext, webBean);
    }

    it was a bug described in doc [ID 1360914.1]
    JBO-29000 java.lang.NoSuchMethodError When Calling oracle.apps.fnd.cp.request.ConcurrentRequest.addLayout [ID 1360914.1]

  • 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();                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • 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

  • Variable not found in repository - Done

    Hi,
    I have an ODI procedure for Oracle SP which needs an input param . Syntax
    begin
    Proc(sessionId);
    end;
    Generated a scenario out of this procedure. I want to use this scenario in some package.
    Steps:
    1)Created a variable; dragged that as a first step in the package
    2)Interface
    3)ODI Procedure Scenario ( used the additional variable field) : Command generated for Scenario --
    OdiStartScen "-SCEN_NAME=BATCHREPORT" "-SCEN_VERSION=003" "-INVOICEPROCCESSING.sessionId=#sessionId"
    I tried using the additional variable filed in the scenario , when dragged into a package; while executing the package an error occurs.
    java.lang.Exception: Specified variable not found in the Repository : INVOICEPROCCESSING.sessionId
    Thanks,
    Is
    Done!
    Edited by: Is916 on Sep 2, 2009 1:57 AM

    Hi,
    Are you creating temp tables in our code, if yes
    if we have a same temp table name as that of the variable it will not work for that connection.
    try it with a different variable name.
    Regards,
    Naveen

Maybe you are looking for

  • How do I add multiple email addresses for a contact to a group?

    (I'm a recent convert from eMailer to Outlook Express, to Entourage, and finally to Mail.app) I'm trying to set up a group in Address Book that includes multiple email addresses from a given card. These are folks that want me to include, for example,

  • Host / Port in the hyperlinked field.

    In the RTF data template added hyperlink on the field, This hyperlink should fetch HTTP host/port from the variable declared in the xsl file. So that report could run without hard coding the host / port in the hyperlink. When tried to embed the <xsl:

  • Powerpoint in maximized window, when de machine is starting up from batch

    Hello, I want to start a .pps presentation with Powerpoint Viewer in a maximized window, after the machine is powered-up. The slide show is saved with kiosk settings as a .pps (slideshow). I put a shortcut with screen maximized on in the STARTUP dire

  • Video only playing audio

    On my PC (Windows7 and ITunes10.6), my music videos only play audio.  It did play both video and audio, but currenly only audio is working.  Any advise is appreciated.

  • Download Instant Client 9.0.1 ?

    I use Oracle Server 8.1.6 and at the moment no is possivel to make upgrade of the server - With the Instant Client that I am using no it is possible to connect way PHP. My Instant Client is 10.2.0.1, where obtains to make download of the Instant Clie