session.getAttribute caused "inconvertible types" exception Programming Web Development by Tu Dinh … file: /WEB-INF/jsp/index.jsp PWC6199: Generated servlet error: inconvertible types required: boolean found: java.lang.Object So below is… MailUserBean Errors Programming Web Development by dazzagaelic …getAttribute(java.lang.String) location: interface javax.servlet.http.HttpSession inconvertible types found : javax.servlet.http.HttpSession.getAttribute required: demo.…getAttribute(java.lang.String) location: interface javax.servlet.http.HttpSession inconvertible types found : javax.servlet.http.HttpSession.getAttribute required: demo.… Someone help me hate trees less Programming Software Development by kharri5 … no idea how to make chars Objects, because they are inconvertible type. Secondly I have to put all of these chars… Summing Issue from Array Programming Software Development by no1zson …: class Compactdisk return (totalValue += cds[cdCount].getValue()); ^ Compactdisk.java:86: inconvertible types found : <nulltype> required: float return (totalValue += cds… class Hand Programming Software Development by krhillery …] error message: return (Card)hand.removeElementAt(position); is highlighted, "inconvertible types" Typecasting enumerated type Programming Software Development by VernonDozier …. It's giving me errors in lines 42 and 47 (inconvertible types). If the constructor gets passed 3, I want [ICODE… method can't find my array name? i'm stumped Programming Software Development by TrickyT … location: class Invent2 totValue+= arrCam[number].getIValue(); ^ Invent2.java:116: inconvertible types found : <nulltype> required: double totValue+= arrCam[number… How to remove from a HashTable PLZZ..help Programming Software Development by coroll ….util.Hashtable myHash.Remove(p.charAt(i)); ^ myOwnBm.java:77: inconvertible types found : java.lang.Object required: int int v=(int… Re: How to remove from a HashTable PLZZ..help Programming Software Development by coroll …(c); int v=(int)myHash.get(ch); still it says inconvertible types. coucld you plz tech me how to convert char… Re: Error in stack Programming Software Development by NormR1 ….0_29\bin\javac.exe -Xlint TestCode9.java TestCode9.java:293: inconvertible types found : java.lang.Object required: char char cac2 = (…char)oac; //inconvertible types ^ 1 error 1 error(s) No errors with 1… Re: Array gone awry Programming Software Development by clueless101 … scores location: class JoptionPaneTester average += scores[i]; ^ JoptionPaneTester.java:44: inconvertible types found : <nulltype> required: double average += scores[i… Re: Array gone awry Programming Software Development by VernonDozier … scores location: class JoptionPaneTester average += scores[i]; ^ JoptionPaneTester.java:44: inconvertible types found : <nulltype> required: double average += scores[i… Re: calculate the value of e^x Programming Software Development by alreem it also gives me an error .. it sayes : operator ^ can not be applied to double , int inconvertible types required: java.lang.Double found: int Re: magicsquare compile error Programming Software Development by serph09 … tried ([B]int)input.get(i)[/B] I got [I]inconvertible types found: lang.object but required: int[/I] Re: Error in stack Programming Software Development by NormR1 … = ac; // Change variable type to Object // char cac2 = (char)oac; //inconvertible types char cac3 = (char)((Character)oac); // cast then unbox System… Re: session.getAttribute caused "inconvertible types" exception Programming Web Development by masijade Use Boolean not boolean. Re: session.getAttribute caused "inconvertible types" exception Programming Web Development by Tu Dinh WOW that looks so simple and makes sense, an Object instead of primitive type. I will try tonight. @masijade Thank you so much! Re: MailUserBean Errors Programming Web Development by sillyboy there is no such thing as javax.servlet.http.HttpSession.getAttribute() Re: MailUserBean Errors Programming Web Development by kvprajapati I think that you are using different version of MailUserBean. Re: MailUserBean Errors Programming Web Development by deepalihanand According to me - try this : [code=java]HttpSession session = request.getSession(); MailUserBean nameBean = (MailUserBean)session.getAttribute("nameBean"); if (nameBean == null) { ...Your steps //String firstName = request.getParameter("firstName"); //String lastName = request.getParameter("… Re: MailUserBean Errors Programming Web Development by dazzagaelic -------------------------------------------------------------------------------- Okay got past the last problem, but now it is showing the following error, but I'm not sure where exactly it wants me to add the -extension [code] [WARNING] Ignoring SOAP port "LicenseServiceSoap12": it uses non-standard SOAP 1.2 binding. You must … Re: MailUserBean Errors Programming Web Development by kvprajapati [QUOTE=dazzagaelic;864405]-------------------------------------------------------------------------------- Okay got past the last problem, but now it is showing the following error, but I'm not sure where exactly it wants me to add the -extension [code] [WARNING] Ignoring SOAP port "LicenseServiceSoap12": it uses non-standard SOAP… Re: MailUserBean Errors Programming Web Development by dazzagaelic Yes, good call, 5.5 compiled it fine. thanks Re: Someone help me hate trees less Programming Software Development by jwenting There is a wrapper class Character which can be used to store chars as Objects. This is equivalent to classes like Integer, Boolean, and Double (among others). If you're using 1.5 (Tiger, 5.0) that wrapping will be taken care of for you. If you use the correct Tree from the collections API your sorting will be done for you and all you'll need … Re: Someone help me hate trees less Programming Software Development by kharri5 thanks for the hint on Character class...niiice....but the Tree i have to construct from scratch. can't use predifined stuff for it. I have no idea how to set up the tree class, and what methods it should have...the API has confused me more I think. Re: Someone help me hate trees less Programming Software Development by jwenting Check out any decent book on data structures, all should have information on defining trees and iterating over them. You may also look at the sourcecode for java.util.TreeMap or java.util.TreeSet and take inspiration from there. Re: Summing Issue from Array Programming Software Development by iamthwee What are you trying to do your code makes little sense? Re: Summing Issue from Array Programming Software Development by Cerberus The first error is saying that the CD Class doesn't know about the other class. This line isn't really necessary anyway. What i would do would make a float variable in the inventory class and every time you loop and insert another element into the array add it to the float: e.g. [CODE] float runningTotal = 0; runningTotal = runningTotal + … Re: Summing Issue from Array Programming Software Development by no1zson Sorry iamthwee, here is my other class, as it now stands. Maybe my question will make more sense now. I am not very good yet, so maybe it will make less sense. ;) [CODE]import java.util.Scanner; //uses class Scanner public class Inventory {// begin class Inventory public static void main(String[] args) {//begin method main // … Re: Summing Issue from Array Programming Software Development by no1zson Thought I figured it out, but I just made it worse. I moved the count line to run after the totalValue line. Logic being, the count was moving forward before I was ready for it to. Thought I had it because now I can run the loop again. When I enter STOP to leave the loop, and hopefully see my total value I get a whole string of errors. Again, it …