Why the errors ?

Can someone tell me why I'm getting these errors, I am fairly new to building my own classes.
  if (id.inList())
int i = reg.getIndex();
drop.add((Student)o);
}I am getting 3 errors here, Cannot Find Symbol, but the methods are in the class Addmisions, see Addmisions below
1)
RegistrationTestClass.java:50: cannot find symbol
symbol : method inList()
location: class java.lang.String
if (id.inList())
^
2)
RegistrationTestClass.java:53: cannot find symbol
symbol : method getIndex()
location: class Addmisions
int i = reg.getIndex();
^
3)
RegistrationTestClass.java:55: cannot find symbol
symbol : variable o
location: class RegistrationTestClass
drop.add((Student)o);
^
import java.util.ArrayList;
import java.lang.Object;
public class Addmisions
ArrayList list;            
int index;
Addmisions()               
list = new ArrayList();
void add(Student s)        
list.add(s);
boolean Empty()            
{return list.isEmpty();
int getindex()
return index;
Object removeItem (int i)
return list.remove(i);
boolean inList(String id)
int i = 0;
boolean found = false;
while(i<list.size() && !found)
{ Object o = list.get(i);
  if (o instanceof Student)
   {  Student s = (Student)o;        
    if(s.getID().equals(id))    
       { found = true;}
        else i++;                        
index = i;
return found;
}

Here is the code, below are the errors(only 2 now)
import java.util.*;
import javax.swing.JOptionPane;
public class RegistrationTestClass
public static void main (String[] args)
int a;
a=4;
while (a == 4)
Addmisions reg = new Addmisions();
Addmisions drop = new Addmisions();
String input;
input = JOptionPane.showInputDialog("1 Register Student   2 Drop Student   3 Print Student Info");
a= Integer.parseInt(input);
while (a==1)
  String lname = JOptionPane.showInputDialog("Last Name:");
   String fname = JOptionPane.showInputDialog("First Name:");
     Name n = new Name(lname,fname);
     String str = JOptionPane.showInputDialog("Street:");
     String city = JOptionPane.showInputDialog("City:");
     String sta = JOptionPane.showInputDialog("State:");
     String zip = JOptionPane.showInputDialog("Zip:");
     Address adr = new Address(str,city,sta,zip);
     String id = JOptionPane.showInputDialog("ID number:");
     Student s = new Student(n,adr,id);
     reg.add(s);
         a = 4;
      // Drop
  while (a==2)
   String id = JOptionPane.showInputDialog("Enter ID of Student to Drop:");
if (reg.Empty())
   { JOptionPane.showMessageDialog(null,"There are no Students to Drop", "Addmissions",JOptionPane.INFORMATION_MESSAGE);
a= 4;
else if (reg.inList(id))
int i = reg.getIndex();
drop.add((Student)o);
System.exit(0);
RegistrationTestClass.java:52: cannot find symbol
symbol : method getIndex()
location: class Addmisions
int i = reg.getIndex();
^
RegistrationTestClass.java:54: cannot find symbol
symbol : variable o
location: class RegistrationTestClass
drop.add((Student)o);

Similar Messages

  • Why the error in one, but not the other

    Why does this code Generate the error:
    Complex object types cannot be converted to simple values.
    The expression has requested a variable or an intermediate
    expression result
    as a simple value, however, the result cannot be converted to
    a simple
    value. Simple values are strings, numbers, boolean values,
    and date/time
    values. Queries, arrays, and COM objects are examples of
    complex values.
    The most likely cause of the error is that you are trying to
    use a complex
    value as a simple one. For example, you might be trying to
    use a query
    variable in a <CFIF> tag. This was possible in
    ColdFusion 2.0 but creates an
    error in later versions.
    The error occurred in
    C:\Inetpub\wwwroot\2onboard\kBookList.cfm: line 40
    38 : <tr>
    39 : <td colspan="6">
    40 : <cfif showList IS NOT "yearly"><a class="nav"
    href=""> Yearly  </a>  </cfif>
    41 : <cfif showList IS NOT "complete"><a class="nav"
    href=""> Complete  </a>  </cfif>
    42 : <cfif showList IS NOT "wish"><a class="nav"
    href=""> Wish
    List  </a>  </cfif>
    CODE.........
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
    Transitional//EN" "
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="
    http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html;
    charset=iso-8859-1" />
    <title>2onboard.com - Kevin's Korner - Book
    List</title>
    <!--- SET DEFAULT VARIABLES --->
    <cfparam name="showList" default="complete">
    <cfparam name="showOrder" default="title">
    <cfparam name="showStatus" default="own">
    <!--- QUERIES --->
    <cfquery name="showList" datasource="2onboard">
    SELECT
    title,author,status,completed,pages,queue,rating,cover,series,book,link
    FROM books
    WHERE status = '#showStatus#'
    ORDER BY '#showOrder#'
    </cfquery>
    </head>
    <body>
    <div id="container"> <!--- GRAY ALL ENCOMPASING BOX
    --->
    <cfinclude template="header.cfm"> <!--- HEADER
    --->
    <cfinclude template="explanation.cfm"> <!---
    EXPLANITION OF SCREEN BOX --->
    <div class="raised"> <!--- CONTENT OF - HOME PAGE
    --->
    <b class="top"><b class="b1"></b><b
    class="b2"></b><b class="b3"></b><b
    class="b4"></b></b>
    <div class="boxcontent">
    <div class="boxcontenttext">
    <table cellspacing="0">
    <tr>
    <td><span class="title">Kevin's
    Korner</span><b> - Reading</b></td>
    <td colspan="5"
    align="right"><cfoutput> Library contains
    <b>#showList.recordCount#</b>
    books</cfoutput></td>
    </tr>
    <tr><td colspan="6"><span
    class="spacetext"> </span></td></tr>
    <tr>
    <td colspan="6">
    <cfif showList IS NOT "yearly"><a class="nav"
    href=""> Yearly  </a>  </cfif>
    <cfif showList IS NOT "complete"><a class="nav"
    href=""> Complete  </a>  </cfif>
    <cfif showList IS NOT "wish"><a class="nav"
    href=""> Wish
    List  </a>  </cfif>
    </td>
    CODE CONTINUES ON FROM HERE….
    BUT, if I take just the bare minimum and test it as the
    following, it works fine - WHY?
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
    Transitional//EN" "
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="
    http://www.w3.org/1999/xhtml">
    <cfparam name="showList" default="complete">
    <head>
    <meta http-equiv="Content-Type" content="text/html;
    charset=iso-8859-1" />
    <title> </title>
    </head>
    <body>
    <cfif showList IS NOT "yearly"><a class="nav"
    href=""> Yearly  </a>  </cfif>
    <cfif showList IS NOT "complete"><a class="nav"
    href=""> Complete  </a>  </cfif>
    <cfif showList IS NOT "wish"><a class="nav"
    href=""> Wish
    List  </a>  </cfif>
    </body>

    > <cfparam name="showList" default="complete">
    This line creates showList as a simple string variable
    containing
    "complete".
    > <cfquery name="showList" datasource="2onboard">
    This line redefines showList as a recordset containing the
    data returned
    from the database which is not a simple variable and can not
    be accessed
    with code such as <cfoutput>#showList#</cfoutput>
    > <cfparam name="showList" default="complete">
    This line does NOT redefine showList back to a simple string
    because a
    <cfparam ...> only fires if the variable does not
    exist. The previous
    two lines would create the variable, thus it exists.
    jkgiven wrote:
    > Why does this code Generate the error:
    >
    > Complex object types cannot be converted to simple
    values.
    >
    > The expression has requested a variable or an
    intermediate expression result
    > as a simple value, however, the result cannot be
    converted to a simple
    > value. Simple values are strings, numbers, boolean
    values, and date/time
    > values. Queries, arrays, and COM objects are examples of
    complex values.
    >
    > The most likely cause of the error is that you are
    trying to use a complex
    > value as a simple one. For example, you might be trying
    to use a query
    > variable in a <CFIF> tag. This was possible in
    ColdFusion 2.0 but creates an
    > error in later versions.
    >
    > The error occurred in
    C:\Inetpub\wwwroot\2onboard\kBookList.cfm: line 40
    >
    > 38 : <tr>
    > 39 : <td colspan="6">
    > 40 : <cfif showList IS NOT "yearly"><a
    class="nav"
    >
    href=""> Yearly  </a>  </cfif>
    > 41 : <cfif showList IS NOT "complete"><a
    class="nav"
    >
    href=""> Complete  </a>  </cfif>
    > 42 : <cfif showList IS NOT "wish"><a
    class="nav" href=""> Wish
    >
    List  </a>  </cfif>
    >
    >
    > CODE.........
    >
    > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
    Transitional//EN"
    > "
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    > <html xmlns="
    http://www.w3.org/1999/xhtml">
    > <head>
    > <meta http-equiv="Content-Type" content="text/html;
    charset=iso-8859-1" />
    > <title>2onboard.com - Kevin's Korner - Book
    List</title>
    >
    > <!--- SET DEFAULT VARIABLES --->
    > <cfparam name="showList" default="complete">
    > <cfparam name="showOrder" default="title">
    > <cfparam name="showStatus" default="own">
    >
    > <!--- QUERIES --->
    > <cfquery name="showList" datasource="2onboard">
    > SELECT
    title,author,status,completed,pages,queue,rating,cover,series,book,link
    > FROM books
    > WHERE status = '#showStatus#'
    > ORDER BY '#showOrder#'
    > </cfquery>
    >
    > </head>
    >
    > <body>
    >
    > <div id="container"> <!--- GRAY ALL ENCOMPASING
    BOX --->
    > <cfinclude template="header.cfm"> <!--- HEADER
    --->
    > <cfinclude template="explanation.cfm"> <!---
    EXPLANITION OF SCREEN BOX --->
    >
    > <div class="raised"> <!--- CONTENT OF - HOME
    PAGE --->
    > <b class="top"><b class="b1"><b
    class="b2"><b class="b3"><b
    > class="b4">
    > <div class="boxcontent">
    > <div class="boxcontenttext">
    > <table cellspacing="0">
    > <tr>
    > <td><span class="title">Kevin's
    Korner</span>
    - Reading</td>
    > <td colspan="5"
    align="right"><cfoutput> Library contains
    >
    #showList.recordCount# books</cfoutput></td>
    > </tr>
    > <tr><td colspan="6"><span
    class="spacetext"> </span></td></tr>
    > <tr>
    > <td colspan="6">
    > <cfif showList IS NOT "yearly"><a class="nav"
    >
    href=""> Yearly  </a>  </cfif>
    > <cfif showList IS NOT "complete"><a class="nav"
    >
    href=""> Complete  </a>  </cfif>
    > <cfif showList IS NOT "wish"><a class="nav"
    href=""> Wish
    >
    List  </a>  </cfif>
    > </td>
    >
    > CODE CONTINUES ON FROM HERE?.
    >
    > BUT, if I take just the bare minimum and test it as the
    following, it works
    > fine - WHY?
    >
    > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
    Transitional//EN"
    > "
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    > <html xmlns="
    http://www.w3.org/1999/xhtml">
    >
    > <cfparam name="showList" default="complete">
    >
    > <head>
    > <meta http-equiv="Content-Type" content="text/html;
    charset=iso-8859-1" />
    > <title> </title>
    > </head>
    >
    > <body>
    >
    > <cfif showList IS NOT "yearly"><a class="nav"
    >
    href=""> Yearly  </a>  </cfif>
    > <cfif showList IS NOT "complete"><a class="nav"
    >
    href=""> Complete  </a>  </cfif>
    > <cfif showList IS NOT "wish"><a class="nav"
    href=""> Wish
    >
    List  </a>  </cfif>
    >
    > </body>
    >
    >
    >

  • Why the error "unable to create unique temporary file" ?

    Hi,
    I've created a very simple zone on s10_69. The global zone is a default Solaris install, nothing added. When installing the local zones I get theses error messages:
    pkgadd: ERROR: unable to create unique temporary file </zones/zone2/root/usr/openwin/lib/X11/fonts/100dpi/fonts.dirMMaypm>
    pkgadd: ERROR: unable to create unique temporary file </zones/zone2/root/usr/openwin/lib/X11/fonts/75dpi/fonts.dirNMaypm>
    pkgadd: ERROR: unable to create unique temporary file </zones/zone2/root/usr/openwin/lib/X11/fonts/F3bitmaps/fonts.dirOMaypm>
    pkgadd: ERROR: unable to create unique temporary file </zones/zone2/root/usr/openwin/lib/X11/fonts/misc/fonts.dirPMaypm>
    pkgadd: ERROR: unable to create unique temporary file </zones/zone2/root/usr/openwin/lib/X11/fonts/encodings/encodings.dirSMaypm>
    pkgadd: ERROR: unable to create unique temporary file </zones/zone2/root/usr/openwin/lib/X11/fonts/TrueType/ttmap/ttmaps.dirUMaypm>
    pkgadd: ERROR: unable to create unique temporary file </zones/zone2/root/usr/openwin/server/etc/OWconfigjha4tm>
    pkgadd: ERROR: unable to create unique temporary file </zones/zone2/root/usr/sfw/lib/mozilla/.pkg_update_stampepaybn>
    pkgadd: ERROR: unable to create unique temporary file </zones/zone2/root/usr/openwin/lib/X11/fonts/75dpi/fonts.dirgOa4Gn>
    pkgadd: ERROR: unable to create unique temporary file </zones/zone2/root/usr/openwin/lib/X11/fonts/F3bitmaps/fonts.dirhOa4Gn>
    pkgadd: ERROR: unable to create unique temporary file </zones/zone2/root/usr/openwin/lib/X11/fonts/Type1/fonts.diriOa4Gn>
    pkgadd: ERROR: unable to create unique temporary file </zones/zone2/root/usr/openwin/lib/X11/fonts/misc/fonts.dirjOa4Gn>
    pkgadd: ERROR: unable to create unique temporary file </zones/zone2/root/usr/openwin/lib/X11/fonts/misc/fonts.alias.alllOa4Gn>
    pkgadd: ERROR: unable to create unique temporary file </zones/zone2/root/usr/openwin/lib/X11/fonts/encodings/encodings.dirfGaWoo>
    pkgadd: ERROR: unable to create unique temporary file </zones/zone2/root/usr/openwin/lib/X11/fonts/TrueType/ttmap/ttmaps.dirhGaWoo>
    pkgadd: ERROR: unable to create unique temporary file </zones/zone2/root/usr/openwin/server/etc/OWconfigL2aqZo>
    pkgadd: ERROR: unable to create unique temporary file </zones/zone2/root/usr/openwin/lib/X11/fonts/TrueType/ttmap/ttmaps.dirgPaW7o>
    pkgadd: ERROR: unable to create unique temporary file </zones/zone2/root/usr/openwin/lib/X11/fonts/encodings/encodings.dirhPaW7o>
    pkgadd: ERROR: unable to create unique temporary file </zones/zone2/root/usr/openwin/lib/xil/config1Faipp>
    pkgadd: ERROR: unable to create unique temporary file </zones/zone2/root/usr/openwin/lib/xil/config2_aWtp>
    pkgadd: ERROR: unable to create unique temporary file </zones/zone2/root/usr/openwin/lib/X11/fonts/encodings/encodings.dirEhaywp>
    pkgadd: ERROR: unable to create unique temporary file </zones/zone2/root/usr/openwin/lib/X11/fonts/TrueType/ttmap/ttmaps.dirGhaywp>
    pkgadd: ERROR: unable to create unique temporary file </zones/zone2/root/usr/openwin/lib/X11/fonts/TrueType/ttmap/ttmaps.dirsVaqAp>
    pkgadd: ERROR: unable to create unique temporary file </zones/zone2/root/usr/openwin/lib/X11/fonts/encodings/encodings.diruVaqAp>
    pkgadd: ERROR: unable to create unique temporary file </zones/zone2/root/usr/bin/wscompilejbaWAp>
    pkgadd: ERROR: unable to create unique temporary file </zones/zone2/root/usr/bin/wsdeploykbaWAp>
    pkgadd: ERROR: unable to create unique temporary file </zones/zone2/root/usr/openwin/lib/X11/fonts/F3/fonts.dirioaqBp>
    pkgadd: ERROR: unable to create unique temporary file </zones/zone2/root/usr/openwin/server/etc/OWconfigLYaaCp>
    pkgadd: ERROR: unable to create unique temporary file </zones/zone2/root/usr/openwin/lib/X11/fonts/TrueType/ttmap/ttmaps.dir10a4Dp>
    pkgadd: ERROR: unable to create unique temporary file </zones/zone2/root/usr/openwin/lib/X11/fonts/encodings/encodings.dirZAaOEp>
    pkgadd: ERROR: unable to create unique temporary file </zones/zone2/root/usr/openwin/lib/X11/fonts/TrueType/ttmap/ttmaps.dir1AaOEp>
    pkgadd: ERROR: unable to create unique temporary file </zones/zone2/root/usr/openwin/lib/X11/fonts/encodings/encodings.dirhUaqFp>
    pkgadd: ERROR: unable to create unique temporary file </zones/zone2/root/usr/openwin/lib/X11/fonts/TrueType/ttmap/ttmaps.dirjUaqFp>
    pkgadd: ERROR: unable to create unique temporary file </zones/zone2/root/usr/openwin/lib/X11/fonts/encodings/encodings.dirDNaGGp>
    pkgadd: ERROR: unable to create unique temporary file </zones/zone2/root/usr/openwin/lib/X11/fonts/TrueType/ttmap/ttmaps.dirFNaGGp>
    pkgadd: ERROR: unable to create unique temporary file </zones/zone2/root/usr/openwin/lib/X11/fonts/encodings/encodings.diryVaGLp>
    pkgadd: ERROR: unable to create unique temporary file </zones/zone2/root/usr/openwin/lib/X11/fonts/TrueType/ttmap/ttmaps.dirAVaGLp>
    pkgadd: ERROR: unable to create unique temporary file </zones/zone2/root/usr/openwin/lib/X11/fonts/encodings/encodings.dirdtaGMp>
    pkgadd: ERROR: unable to create unique temporary file </zones/zone2/root/usr/openwin/lib/X11/fonts/TrueType/ttmap/ttmaps.dirftaGMp>
    pkgadd: ERROR: unable to create unique temporary file </zones/zone2/root/usr/openwin/lib/X11/fonts/100dpi/fonts.dirgZaWKq>
    pkgadd: ERROR: unable to create unique temporary file </zones/zone2/root/usr/openwin/lib/X11/fonts/75dpi/fonts.dirhZaWKq>
    pkgadd: ERROR: unable to create unique temporary file </zones/zone2/root/usr/openwin/lib/X11/fonts/F3/fonts.diriZaWKq>
    pkgadd: ERROR: unable to create unique temporary file </zones/zone2/root/usr/openwin/lib/X11/fonts/Speedo/fonts.dirjZaWKq>
    pkgadd: ERROR: unable to create unique temporary file </zones/zone2/root/usr/openwin/lib/X11/fonts/75dpi/fonts.alias.alllZaWKq>
    pkgadd: ERROR: unable to create unique temporary file </zones/zone2/root/usr/openwin/lib/X11/fonts/F3/fonts.alias.allmZaWKq>
    pkgadd: ERROR: unable to create unique temporary file </zones/zone2/root/usr/openwin/lib/X11/fonts/encodings/encodings.dirlqaGLq>
    pkgadd: ERROR: unable to create unique temporary file </zones/zone2/root/usr/openwin/lib/X11/fonts/TrueType/ttmap/ttmaps.dirnqaGLq>
    pkgadd: ERROR: unable to create unique temporary file </zones/zone2/root/usr/appserver/bin/asadminsTaGNq>
    pkgadd: ERROR: unable to create unique temporary file </zones/zone2/root/usr/appserver/pointbase/tools/serveroption/startcommander.shbHayPq>
    pkgadd: ERROR: unable to create unique temporary file </zones/zone2/root/usr/appserver/pointbase/tools/serveroption/startconsole.shcHayPq>
    pkgadd: ERROR: unable to create unique temporary file </zones/zone2/root/usr/appserver/pointbase/tools/serveroption/startserver.shdHayPq>
    pkgadd: ERROR: unable to create unique temporary file </zones/zone2/root/usr/appserver/pointbase/tools/serveroption/stopserver.sheHayPq>
    pkgadd: ERROR: unable to create unique temporary file </zones/zone2/root/usr/openwin/server/etc/OWconfigt2aGYq>
    pkgadd: ERROR: unable to create unique temporary file </zones/zone2/root/usr/appserver/bin/appclienta2aOyr>
    pkgadd: ERROR: unable to create unique temporary file </zones/zone2/root/usr/appserver/bin/asantb2aOyr>
    pkgadd: ERROR: unable to create unique temporary file </zones/zone2/root/usr/appserver/bin/capture-schemac2aOyr>
    pkgadd: ERROR: unable to create unique temporary file </zones/zone2/root/usr/appserver/bin/deploytoold2aOyr>
    pkgadd: ERROR: unable to create unique temporary file </zones/zone2/root/usr/appserver/bin/jspce2aOyr>
    pkgadd: ERROR: unable to create unique temporary file </zones/zone2/root/usr/appserver/bin/package-appclientf2aOyr>and more like these.
    Any ideas why ?
    The files are all there after installation, without the temporary names. So it doesn't seem to be a big problem...
    Thanks,
    Vlad.

    I don't have the bug number handy but I'm quite certain this was
    resolved in one of the post-s10_69 builds. Please download the
    official Solaris 10 initial release and by all means, let us know if you
    continue to see this issue during zone installation.

  • Whats wrong with this logic - Why the error, out of bounds

    Hi there,
    I have this code that I am trying to work out with some logic I have put together, as shown below, but I get an error message saying "Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String index out of range: -29
    ":" What I am basically trying to do is print out a string which has both numbers and words into a vertical dialog window with the appropriate words next to their corresponding numbers.
    {code}
    A = "91011Word121314Sentence151617";
    int start = 9;
    int end = 17;
    // Considering that we are on the first iteration
    for(int i = start; i <= end; i++)
    String a2 = "" + i; // convert the integer 9 into a string
    int a1 = A.indexOf(a2); // get the index of 9 in the string A
    int a3 = a2.length(); // get the length of 9
    int a4 = a1 + a3; // the index of 9 plus its length is "equivalent" to the index of the next number in A -- 1
    String a5 = "" + (i+1); // convert the next integer 10 into a string
    int a6 = A.indexOf(a5); // get the index of 10 in the string A -- 1
    add += a2 + " " + A.substring(a4,a6) + "\n";
    /** Following the logic I would expect that at the end of the first iteration the String "add" should contain,
    just 9 followed by a space, and the A.substring(1,1) would return nothing since there is no word in the
    middle then there will be a new line */
    {code}
    However, I ended up getting a string index out of bounds exception. I would appreciate it if someone could explain to me why that would be so.
    Thanks

    define wrote:
    for(int i = start; i <= end; i++)
    That should probably be "i < end". This program seems very fragile btw. No checking if indexOf() return numbers less than zero, and ambiguous data..
    To improve your code, you should use better variable names. Also, it's better to use String.valueOf(i) instead of "" + i
    Edited by: paul.miner on Dec 7, 2007 8:53 PM - Typos

  • Why the Error Window that Will Not Leave?

    I keep getting an error window, usually it occurs whenever I turn on my printer, & sometimes when I turn it off. This window, despite having an "OK" button, never leaves the screen, necessitating my having to move it around, as it gets in the way. It will only leave when I reboot my computer.
    The ironic thing is, there is NOTHING WRONG with my printer, the connection, or the function of my printer! The only thing wrong is this rather LARGE, and uninvited error window!
    The exact wording is:
    Failed to connect to the device
    -Check the I/F cable connection between the device & your computer.
    -Please turn OFF the device once, and then turn ON the device
    Then try again.
    (MTW005)
    and then there's an "OK" button
    On the top left is the image of a camera within a shadowy image of what looks like a piece from a jig-saw puzzle...

    BDAqua wrote:
    Is this a Brother Printer?
    Look for a "TwainBridge" driver in Activity Monitor, then kill it/force quit it.
    Maybe try reinstalling it...
    http://www.brother.com/E-ftp/macosxdownloadscn.htm
    THANKS.....

  • Why the error message?

    Do I really have to get an error message every time I start iTunes but I'm not connected to the internet? I mean the one that says "Uh-oh, we couldn't connect to the Store!" Is there any way to supppress that?
    iBook G4   Mac OS X (10.4.8)   768 MG RAM

    Yes there is. Go to iTunes>Preferences>Store and uncheck "Automatically download pre-purchased content". That should do it. Good luck.

  • Why the Error in ArrayList Program : java.util.NoSuchElementException

    import java.util.List;
    import java.util.ArrayList;
    import java.util.Iterator;
    import java.util.ListIterator;
    import java.util.Collections;
    import java.util.Random;
    public class ArrayListDoubt {
        public static void main(String[] args) {
    //        ArrayList Creation
            List arraylistA = new ArrayList();
            List arraylistB = new ArrayList();
    //        Adding elements to the ArrayList
            for (int i = 0; i < 5; i++) {
                arraylistA.add(new Integer(i));
            arraylistB.add("beginner");
            arraylistB.add("java");
            arraylistB.add("tutorial");
            arraylistB.add(".");
            arraylistB.add("com");
            arraylistB.add("java");
            arraylistB.add("site");
    // Iterating through the ArrayList to display the Contents.
            Iterator i1 = arraylistA.iterator();
            System.out.print("ArrayList arraylistA --> ");
            while (i1.hasNext()) {
                System.out.print(i1.next()+ " , ");
            System.out.println();
            System.out.print("ArrayList arraylistA --> ");
            for (int j=0; j < arraylistA.size(); j++) {
                System.out.print(arraylistA.get(j)+ " , ");
            System.out.println();
            Iterator i2 = arraylistB.iterator();
            System.out.println("ArrayList arraylistB --> ");
            while (i2.hasNext()) {
                System.out.print(i2.next()+ " , ");
            System.out.println();
            System.out.println("Using ListIterator to retireve ArrayList Elements");
            System.out.println();
            ListIterator li = arraylistA.listIterator();
    //       next(), hasPrevious(), hasNext(), hasNext() nextIndex() can be used with a
    //        ListIterator interface implementation
            System.out.println("ArrayList arraylistA --> ");
            while (li.hasNext()) {
                 System.out.print(i1.next()+ " , ");
    Output
    ArrayList arraylistA --> 0 , 1 , 2 , 3 , 4 ,
    ArrayList arraylistA --> 0 , 1 , 2 , 3 , 4 ,
    ArrayList arraylistB -->
    beginner , java , tutorial , . , com , java , site ,
    Using ListIterator to retireve ArrayList Elements
    ArrayList arraylistA -->
    Exception in thread "main" java.util.NoSuchElementException
         at java.util.AbstractList$Itr.next(AbstractList.java:427)
         at ArrayListDoubt.main(ArrayListDoubt.java:58)

    System.out.println("Using ListIterator to
    retireve ArrayList Elements");
    System.out.println();
    ListIterator li = arraylistA.listIterator();
    next(), hasPrevious(), hasNext(), hasNext()
    nextIndex() can be used with a
    /        ListIterator interface implementation
    System.out.println("ArrayList arraylistA -->
    while (li.hasNext()) {
         System.out.print(i1.next()+ " , ");
    }I think you mean to call the next()-method of the ListIterator li, but instead call i1, which is an already used Iterator.
    Where you want to iterate with ListIterator, change this line
    System.out.print(i1.next()+ " , ");to this
    System.out.print(li.next()+ " , ");and it works

  • How to resolve the error message "JBO-25009" in ADF table?

    Hi all,
    There is a master detail form in jsff page using adf application. Detail is represented as ADF table. In the adf Table we have 4 primary key, two foreign key from master table.
    Type of primary key in master are Big Decimal and String. When I input value in field of detail, we get error message :
    "JBO-25009: Cannot create an object of type:java.math.BigDecimal from type:java.lang.String with value:AC".
    How to make if I input value in detail table don't show the error message?
    Please let me know if you have any solution for this.
    Thanks.

    Hi Rakesh.
    I don't try insert String into Big Decimal variable. I have adf table with 5 column and 4 primary key. The type of primary key are: 1Big Decimal and 3 String.
    Now, I want to insert data to the table. when I input data to first column (primary key : Big Decimal) is work well and then I want to insert data to second column (primary key : String) with value "AC"
    but when I insert, the error message is show "JBO-25009: Cannot create an object of type:java.math.BigDecimal from type:java.lang.String with value:AC".
    Why the error message is show when I insert data to second column with type String and I have been input data with String value?
    Are the second column is remember of type first column is Big Decimal ?
    Thanks.

  • Getting the error pop up ORA-04063: package body "APPS.PA_FAXFACE"

    Hi All,
    When I try to open the 'Capital Projects' screen (Capitalization -> Capital Projects) I get an error pop up with the error message "ORA-04063: package body "APPS.PA_FAXFACE"". I choose to close the error pop up, it shows me the Capital Projects window where I tried to search for my capital project. Just when I hit the Find button it throws me away and closes my forms session.
    I checked the status of the package PA_FAXFACE which was INVALID (obviously, because it says the package has errors). I tried to recompile the package body with alter package command but that failed and it didn't show any error messages.
    So, I understand that there are some errors in the package PA_FAXFACE. I am not sure why the errors are there and what might have caused the errors.
    Any pointers to resolve the above issue or any light towards resolving the issue would be of great help.
    Thanks in Advance !!
    Lalitha.

    Tom,
    modified the file $APPL_TOP/admin/adconfig.txt
    replace the old node to new node in this file and run adautocfg.shAre you referring to APPL_TOP_NAME?
    but after successful autoconfig and check the name in adconfig.txt it changed back the really old name.
    Please advise where it picked up that name from.From the context file, so verify all parameters in the application context file which still points to the old server and replace it with the new one then run AutoConfig again. For APPL_TOP_NAME, it is "<APPL_TOP_NAME oa_var="s_atName">NODE NAME</APPL_TOP_NAME>".
    Regards,
    Hussein

  • What is the error telling me!!??

    I get the following error when I try to conncet to an Oracle8 instance that is not the default. I do not get it when I connect to system as the admiistrator.
    Error accessing PRODUCT_USER_PROFILE
    Warning: Product user profile information not loaded!
    You may need to run PUPBLD.SQL as SYSTEM
    What is this telling me?
    What is PUBBLD.sql?
    Thank you

    Hi Brian,
    I don't know why the error is occuring but how u r able to solve it.
    connect to your database with
    USERNAME: SYSTEM
    PASSWORT: MANAGER
    Enter the following line:
    SQL>@ PUPBLD.SQL
    When it doesn't work and an error occurs like:
    Can't find file! search for this file and type the whole path after the @.
    hope it works
    tommyO

  • Customizing the Error Activity Space

    I'm doing a rush evaluation of using google appliance to crawl our guest-readable portal. We have numerous issues that i'm trying to work around, but one is that a lot of error pages are being indexed.
    Is there any reason why the error space returns a status code 200? Can it be easily modified to return 500?
    I've asked these questions before, but has anyone done the leg work to configure the portal / google appliance so the crawl works correctly? What url patterns did you set? What does your robots.txt / nofollow meta tags do? Where do you put googleon and googleoff?
    Thanks!

    public class CustomErrorDP : ErrorDP
              private static OpenLogger log = OpenLogService.GetLogger(OpenLogService.GetComponent(PTDebugHelpers.COMPONENT_PORTAL_BROWSING),
                   "com.plumtree.portalpages.common.error.CustomErrorDP");
              public new const string STR_MVC_CLASS_NAME = "ErrorDP";
              public override void Display(IWebData pageData)
                   base.Display (pageData);
                   pageData.SetStatus(500);
                   log.Error("Status set to 500 in CustomErrorDP");
         public class CustomErrorAS : PlumtreeAS
              private static OpenLogger log = OpenLogService.GetLogger(OpenLogService.GetComponent(PTDebugHelpers.COMPONENT_PORTAL_BROWSING),
                   "com.plumtree.portalpages.common.error.CustomErrorAS");
              public const string STR_MVC_CLASS_NAME = "ErrorAS";
              public override object Create()
                   return new CustomErrorAS();
              public override string GetName()
                   return "ErrorAS";
              public override void Init()
                   log.Info("CUSTOM: Starting init");
                   base.Init();
                   this.RegisterPage(new CustomErrorDP());
                   this.RegisterModel("SinglePageErrorModel");
                   IModel model = this.GetModel("SinglePageErrorModel");
                   this.RegisterControl("SinglePageErrorControl", model);
                   this.RegisterView("SinglePageErrorView", model);
    //               this.GetCurrentHTTPResponse().SetStatus(500,"Custom Error Message");
    //               this.GetCurrentHTTPResponse().AddHeader("Some stuff", "More Stuff");
                   log.Error("CUSTOM: Finished custom init, set header to 500");
         }

  • How does the Error Row Definition and Error Message Lookup setup work?

    Suppose I use web ADI to load data to PA_TRANSACTION_INTERFACE_ALL (This is Oracle standard Interface table for Projects)
    I call a Importer (The Importer is called post upload of data to above Interface Table). The Importer will update the Interface table columns (TRANSACTION_STATUS_CODE) and (TRANSACTION_REJECTION_CODE) with values based on the clearing all validations. If validation fails, the column, TRANSACTION_STATUS_CODE is updated with value 'R' and TRANSACTION_REJECTION_CODE has the error code. This error code is stored in the Lookup, with Lookup Type = 'TRANSACTION REJECTION REASON'
    I define the Error Row Definition as follows -
    select * from PA_TRANSACTION_INTERFACE_ALL where TRANSACTION_STATUS_CODE = 'R' and BATCH_NAME = $param$.batchname (BATCH_NAME is populated in the Web ADI Template)
    I define the Error Message Lookup as -
    select meaning from apps.fnd_lookup_values where lookup_type ='TRANSACTION REJECTION REASON'
    and language='US' and lookup_code = $param$.TRANSACTION_REJECTION_CODE
    I have defined the , Document Row : Interface Attribute Mapping - with the column, ORIG_TRANSACTION_REFERENCE (THe column with the Unique value for a row and links the Excel row with the Interface table)
    I feel my setups are fine. Still why the Error -
    An error has occurred while running an API import. The ERRORED_ROWS step 275:ER_501996, parameter number 1 must contain the value BIND in attribute 1.

    Duplicate post -- https://community.oracle.com/thread/2615675

  • In iCal - I keep getting the error message " This calendar was created by Mail" and it will not accept any input; why..??

    In iCal - I keep getting the error message “ This calendar was created by Mail” and it will not accept any input; why..??

    use Disk Utility and Verify Permisions then fix and Verify Disk and fix, this should fix it.

  • I'm trying to update my iphone 3GS to the 4.3.4 version and I am getting the error message "This version of itunes (version 9.1.1) is the current version.  How do I update my PHONE and why is an itunes update being confused for my iphone?

    I'm trying to update my iphone 3GS to the 4.3.4 version and I am getting the error message "This version of itunes (version 9.1.1) is the current version.  How do I update my PHONE and why is an itunes update being confused for my iphone?

    You need iTunes 10.0 or greater to update your phone...iTunes isn't confused at all. If you're on a Mac, you'll need OS X 10.5.8 or greater to update iTunes to 10.0 or greater.

  • Why do I get the error message "unable to load page (HTTP 502) when I try to open Mobile Web?

    I have an LG Octane 3 basic phone.   Does everything I need, phone and text, and I never was interested in web or e-mail capabilities until I recently upgraded our plan to the "More Everything" and was able to use data and check e-mail and access the internet.   Whenever I try to open Mobile Web, I get the error message "unable to load page (HTTP 502)".    As of March 31, 2015, all of us basic phone users lose the "Mobile Email" app on our phones, and will have to access web versions of our e-mail via the web.  Which is currently unavailable and doesn't work.
    Over a week ago, did a chat session with a tech support rep, and she indicated that either she or an engineer would contact me with how to fix the problem.   Have not heard anything from anybody, and the deadline is approaching quickly.   Have no need of all the excess features of a smart phone, nor do I wish to be forced to jettison a perfectly working phone for my needs and buy something I don't want to be able to do 2 simple things.............check e-mail to see if there's something that needs to be answered right away, and to check traffic reports when I'm on the road, or find something in an area with which I'm not familiar.     Not really too much to ask, you would think....   )
    Has anyone else had this same problem, and if so, how do we fix it....???  My next move is a phone call, but those haven't always been very productive.
    If any of you have any ideas why this error keeps coming up and the web can't load, and some on how to fix it, I would really appreciate some advice.
    Thanks in advance.
    Karen

    Since the chat session got no reply, I contacted Verizon by phone and a very nice level 2 tech created a trouble ticket and sent it up the food chain.  Got a call back, maybe 2 days later, and had a nice, although very long session with a higher level tech.  They had determined that the browser for the LG Octane is an old one and no longer supported by Verizon.    We tried everything we could to download the Opera browser, but since I was totally unable to get Mobile Web to work, couldn't do it.   The only other possible "fix" was to totally reset the phone to factory specs and try it again.   That would mean a lot of work on my part to move anything I didn't want to disappear off the phone, and find a place to forward texts that had to be saved.   Caught our tenants lying about why the rent was late (again), and need that for when I put them back on a lease....  
    Long story short is that unless we try this total reset, which isn't a sure fix, either, anyone who isn't able to access the Mobile Web with the LG Octane will have to change their plan to avoid paying for data that you can't access using any method. 
    I ran a test with an app that I knew was no longer valid.....that was sending photos to PixPlace.   Got the exact same error message as when trying to access Mobile Web to get the web version of my e-mail.   That just verified that the 502 error is, at least in the LG Octane, for an app that no longer works.   After today, we'll get the same thing when we try to access Mobile E-Mail.
    Have to admit, it's a real ****-off, but this shouldn't surprise me, since Verizon won't repair older copper phone lines if you are in an area where FIOS is offered. 
    I am going to immediately change my husband's and my cell phone plan to one without data, and see what I can find that will still give unlimited calls and text.  The way my luck runs, they won't offer one for a decent price.  The other half has some very long-winded friends and he was always running over minutes, and some months are very text-heavy and I'd go over my limit.   Absolutely HATE touch screens, and am not looking forward to having to get a new phone.  

Maybe you are looking for