Home Tutorialhelp Comment I am getting iIncompatitabletype error

 
 

Comment

Kumar
I am getting iIncompatitabletype error ,
November 14, 2008 at 7:17 AM

Hi
Any body help I am getting Incompatitable error while wirrting code in eclipse

MyClass mc = new MyClass();
ArrayList exam = mc .exMethod(fName, lName, sRank);

actually the above method retuns string array but I want use above code

Pls suggest how to avoid this error
is there any exception handling or if any

thanks
kumar
View All Comments | View Tutorial
Advertisement
Related Tutorial and Articles
Spring Framework Questions

Getting an error :(
Getting an error :(  I implemented the same code as above.. But getting this error in console... Console Oct 5, 2012 10:18:14 AM...:SpringMVC' did not find a matching property. Oct 5, 2012 10:18:14 AM 

JavaMail Questions

when sending the mail from java I am getting the below error - JavaMail
when sending the mail from java I am getting the below error   when sending the mail from java I am getting the below error : Exception... to = "xxx@yahoo.com"; System.out.println("Message Send.2...."); // Get system 

RMI Questions

:( I am not getting Problem (RMI)
I am not getting Problem (RMI)  When i am excuting RMI EXAMPLE 3,2 I am getting error daying nested exception and Connect Exception   

RMI Questions

using spring rmi+maven but i am getting this exception
using spring rmi+maven but i am getting this exception  D:\Nexustool\integrationengine\trunk>mvn exec:java [INFO] Scanning for projects... [INFO...-plugin:1.1:java (default-cli) @ engine >>> [INFO] [INFO] <<< 

JDBC Questions

I am getting error.How can i get details
I am getting error.How can i get details  Exception in thread "main" java.sql.SQLException: Listener refused the connecti n with the following error: ORA-12505, TNS:listener does not currently know of SID given in connect 

Applet Questions

java compilation error - Applet
java compilation error  I am getting compilation error in the following code.: public void paint(Graphics g) { switch(screen...; } } Error is: Illegal start of expression Plz. find why am I getting this error 

Java Beginners

Java compilation error - Java Beginners
Java compilation error  Hello, i am getting an error while running simple core java program on command prompt.java is installed on my pc.... For example if java is installed at c:\Program Files\Java\jdk1.6.0_01 

JDBC Questions

java error - JDBC
java error  Why am I getting errors in the follwing program...[] args) { System.out.println("MySQL Connect Example."); Connection conn..., I saw your posted code. your is currect please add mysql connector jar 

Java Beginners

compilation error - Java Beginners
compilation error  Dear sir, When i compile some pgms i am getting below error.what may be the reason? "uses or overrides a deprecated API... -Xlint:unchecked Anyways, it will make no harm and your program will get run 

Java Beginners

java error - Java Beginners
. But if I want to run that program the fetches me the following error. For example.... since the same program while I am doing via NetBeans 6.7.1 it executes... I...java error  Hello sir, on compiling any program from command prompt 

Swing AWT

i am getting an error in adding a menu item to a menu.
i am getting an error in adding a menu item to a menu.   i am not able to execute the menu program. i am getting an error at menu.add(menuitem); it says add method is undefined for type menu. but as far as i know that is only way 

JDBC Questions

error in driver
error in driver  i have done connection settings for oraclethin driver in netbeans ide 6.9.1. and i was able to view tables of my database.but when i am trying to access tables from my java class i was getting error 

Hibernate Questions

java compilation error - Hibernate
java compilation error  hi i am getting org.hibernate.exception.GenericJDBCException: Cannot open connection exception when runnig the code why this exception is coming 

Java Beginners

error message - Java Beginners
error message  sir, while i m trying to execute my first program(print my name)I get error message like" javac is not recognized as internal... and run java programs. i am sending simple java code, public class Hello 

Java Beginners

Still getting the http 404 error - Java Beginners
Still getting the http 404 error  Dear experts, I refer to the last solution given to me. A few clarification:- 1. I must stress... is userid? Anyway, whatever I do, I still receive the http 404 error...saying 

Java Beginners

what is the error - Java Beginners
what is the error  What is the compile time error that i am getting... is creating the compile time error such as : - ? CANNOT FIND SYMBOL ? because you... this .correct code is this if you don?t want such type of error EG : - import java.lang. 

JSP Servlet Questions

Getting error java.lang.ClassNotFoundException: com.mysql.jdbc.Driver.
Getting error java.lang.ClassNotFoundException: com.mysql.jdbc.Driver.  I am doing project in JSP with database WampServer and glassfish as server .when i done database connection then i get an error 

JDBC Questions

java runtime error - JDBC
java runtime error  when i am running my jdbc program using thin driver this error is coming at runtime: Exception in thread "main..., give me the suggesion yo solve this problem  This kind of error due 

Java Beginners

ERROR - Java Beginners
ERROR  Hello Sir i am getting error to this code 1.write a java program to read these strings apple orange banana and display the frist... am getting an error that is StringProgram.java:6: cannot resolve symbol 

Java Beginners

store Error in a logfile - Java Beginners
store Error in a logfile  I am using java to get details form more... store in a particular file and error should mail error to particular mail id. I... error in a particular log file using java". please reply soon 

Java Beginners

error while compiling - Java Beginners
error while compiling  i am facing problem with compiling and running a simple java program, can any one help me, the error i am getting is javac is not recognised as internal or external command  Check if you JAVA_HOME 

XML Questions

Error-
Error-   Hello, I would like to know about XSD file. I try to print XML file but I am getting error SAXException-- says Content is not allowed in prolog. Please help me 

Java Beginners

java runtime error - Java Beginners
:\Program Files\Java\jdk1.6.0\bin; Thanks  Hello Friend, I am thankful... am getting the same error. whats the other possibility... pls reply as soon..., what can be the possibility of getting the same error again and again 

Java Beginners

Java compilation error - Java Beginners
Java compilation error  Hello I am having this problem while compiling I create a file the package is com.deitel.ch14; the filename...\AccountRecord.java I save AccountRecord.java in ch14 However I get an error saying 

Java Beginners

java compilation error - Java Beginners
java compilation error  HELLO SIR,I HAVE ASKED QUESTION AND I GOT REPLY FOR THAT ALSO BUT I AM GETING COMPILATION ERROR UNCHECKED OR UNSAFE OPERATION... will get the required output. Thanks 

Java Beginners

Hi ..I am Sakthi.. - Java Beginners
Hi ..I am Sakthi..  can u tell me Some of the packages n Sub...://www.roseindia.net/java/example/java/swing/ Thanks... that is available in java and also starts with javax. package HEMAL RAJYAGURU   

JSP Servlet Questions

error
error  I am running a program insert into statement in sql using.../ServletUserEnquiryForm.shtml getting an error given below SQLException caught: [Microsoft][ODBC SQL Server Driver]COUNT field incorrect or syntax error please suggest 

Java Beginners

programming error - Java Beginners
as the user starts typing in the draft ad box please do reply me i am waiting... .please i am waiting. thankyou sir .thankyou so much...) { out.println("Database Error :"+se.getMessage()); } catch(Exception e 

Java Beginners

trap error - Java Beginners
trap error  Hello. Am trying to trap this error that appears when i... type mismatch in criteria expression". what i want is a message cannot post blank fields instead to pop up. how can i do this. please help. source code 

JDBC Questions

java runtime error
java runtime error  hi friends i am trying to run the fallowing program but i am getting the error Exception in thread "main" java.lang.UnsupportedClassVersionError: JDBCCreateTab le (Unsupported major.minor version 50.0 

Java Beginners

java error - Java Beginners
been obsoleted. To get the details of your error, compile your class with Xlint...java error  G:\threading>javac threadmethods.java Note...:deprecation for details. Hello Sir ,What is the meaning of above lines ,how i can 

Java Beginners

Compile error - Java Beginners
Compile error  I get this error when compiling my program: java:167... to be thrown tc.countLines(inFile); ^ 1 error This is an example of my code: import java.io.*; import java.util.*; import 

Java Beginners

Java Compilation error - Java Beginners
() in main,how should i do? example; public,... { public... { ... saveAccount... here? } } when i write [owner = check.resulAcc()throws IOException;] get error there,.. [';' expected] the semicolon i already put at the end like 

Java Beginners

Java Compilation error - Java Beginners
? } } when i write [owner = check.resulAcc()throws IOException;] get error...Java Compilation error  import java.io.*; import java.util...."; for(int i=0 ; i<10 ; i++) { nm[i]=""; acc[i 

Java Beginners

Java code error - Java Beginners
Java code error  Hi, I am using a MooreQuery to look for neighbors in a grid: MooreQuery query = new MooreQuery(grid, this,(int) (2...()){ ................................................. Even though I have the if (query != null), I still get a nullPointer 

Java Beginners

java compilation error - Java Beginners
have given that as a package. now in jButton4ActionPerformed method i am calling other java pgms like k-means and Readfile... when i execute am getting error...java compilation error  package punitha; import java.util.Vector 

JavaScript Questions

error
of framework used and also the JDK version. This type error also comes when java file is complied in old version of java and used on latest version. Thanks 

Java Beginners

JAVA Annotation Error
JAVA Annotation Error  while compiling simple java program i get annotation error i.e class will only be accepted if annotation processing is explicitly requested..how to solve 

Java Beginners

java error - Java Beginners
java error  Dear roseindiamembers, I have checked... not working properly .when i am registering as new user in http://www.roseindia.net/roseindiamembers/login.php i have not entered the email,then it's displays 

Java Beginners

JAVA Error - Java Beginners
JAVA Error  i have made my own calculator GUI..and i want the text...? your help is very much appreciated!  Hi friend, i am sending... but when i used this code: JButton btnBack=new JButton("Backspace 

Java Beginners

Getting Computer Date in java
Getting Computer Date in java  Hi , I want to get the PC Date... but this.. String strDate = new Date(); I get this server error, "The type Date is ambiguous". I've also tried Date date = new Date(); ... but it get's the same error 

Java Beginners

getting random number in java
getting random number in java  getting random number in java Hi everyone, i am trying to get a random number in a particular range. for example... numbers in java i am following the given steps... import java.util.Random - get 

Java Beginners

Java compilation error - Java Beginners
Java compilation error  I place the following code in to my program but get a compile error of cannot resolve symbol on this code - fullFileName.append(vendorID) vendorID is a parameter. What am I doing wrong. public void 

Java Beginners

Error
Error  Hi. I am getting error in the following code after the line I have commented as ERROR. How to solve this. Thanks in advance. package...;"); // ERROR out.println(" var pattern 

Java Beginners

Error
Error  Hi. I am getting error in the following code after the line I have commented as ERROR. How to solve this. Thanks in advance. package...;"); // ERROR out.println(" var pattern 

Java Beginners

Error
Error  Hi. I am getting error in the following code after the line I have commented as ERROR. How to solve this. Thanks in advance. package...;"); // ERROR out.println(" var pattern = /^\d{3,5 

Java Beginners

Error
Error  Hi. I am getting error in the following code after the line I have commented as ERROR. How to solve this. Thanks in advance. package...;"); // ERROR out.println(" var pattern 

Java Beginners

error
"+it); } } this is my program i am getting an error saying cannot find symbol class string 

Java Beginners

j2me io.file error - Java Beginners
j2me io.file error  i am making a project to transfer data from pc to mobile through bluetooth in j2me but it shows error in java.io.File and java.io.inputstream.the error is that -can not resolved java.io.File .java.io package 

JSP Servlet Questions

getting error while inserting values in database
getting error while inserting values in database  AddUser.java... followin error i don't know why "ORA-00947: not enough values". kindly chk...(); Context envContext = (Context) initContext.lookup("java:/comp/env 

Development process Questions

java runtime error - Development process
java runtime error  I Migrated jdk1.3 to jdk1.4. after that my ftp clint not working.iam getting class not found exception fileinputstreem. i am using sun package. can any one send pure java code for FTP process i think jdk 

Java Server Faces Questions

Error - Java Server Faces Questions
""; } But In eclipse i am getting Error Like This, import org.apache.log4j.Logger cannot...Error  Hi All, In Eclipse I have Written This Code, import... Is the Error. Thanks. Puppy   Hi friend, Very simple problem 

Development process Questions

Getting Error - Development process
Getting Error   Hi , i am getting error while executing this code. I just want to store date in to database. Dont mistake me for repeated questions. java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver] Number 

JSP Servlet Questions

JSP Error - JSP-Servlet
JSP Error  When i am running my registration.jsp getting following error. HTTP Status 500... description The server encountered an internal error () that prevented it from fulfilling 

Java Beginners

Error While Compiling - Java Beginners
Error While Compiling  Hi All I Am a beginner and i face the following problem while compiling can anyone help me. C:\javatutorial\example>...;. or try to set the path in envirnment variable..ok.. example set path 

JSP Servlet Questions

Error in using java beans - JSP-Servlet
Error in using java beans  I am getting the following error when I... times more, I get the following error. message description The server... to place the java file, then where should I place it?  Hi Friend 

Java Beginners

java compilation error - Java Beginners
java compilation error  I need to know how to correct a compiler error for my program to run. The error I keep getting is unclosed string literal... and this is when my compiler error occurs. Let me know if you need any 

Development process Questions

java compilation error - Development process
java compilation error  i have a requirement in my prog where i need to create multiple references while looping is going on for example i have...........but the string object is fixed how i can get it please inform me 

Java Beginners

trap error - Java Beginners
trap error  Hello. Am trying to trap this error that appears when i... type mismatch in criteria expression". what i want is a message cannot post blank fields instead to pop up. how can i do this. please help  Hi friend 

Java Beginners

Error in POI - Java Beginners
Error in POI  Hi friend, I am working with Excel using POI... into different location. Along with this I need to remove the extra sheets which is not used by the program. For this I wrote a method inside calling 

Java Beginners

java compilation error - Java Beginners
java compilation error  Dear Sir ........ I was installed the java... getting the error like file not found : exxx.java(my file name is exx), Ill... Shireesha.  Hi Friend, As you have mentioned that your java file 

Java Beginners

Array list in Java - arraylist type error
Array list in Java - arraylist type error  I am using Array list in Java but when i compile i get array list type error. Can anyone please explain what is array list type error and why it occurs 

General

Java Get Example
Java Get Example      .... Java Get Examples.. Get host name in Java: This example... is method and how to use the get method in Java, this example is going 

Struts Questions

java struts error - Struts
THINK EVERY THING IS RIGHT BUT THE ERROR IS COMING I TRIED BY GIVING INPUT...java struts error   my jsp page is post the problem... ActionForward execute(ActionMapping am,ActionForm af,HttpServletRequest req 

Java Beginners

Error - Java Beginners
Error  Hai I am sending my two files.This is for conversion of String to hex. Please have a look on the code. In jsp page I got errors. Error No 1:Incompatible type found,java.lang.objectrequired,java.lang.string. Error 

Java Beginners

java compilation error - Java Beginners
java compilation error  i am going to type program and the error is shaded one this one is giving error please sole this one sir import java.io....:"+ch); } }   Hi friend, Having some error in your code check 

Java Beginners

java compilation error - Java Beginners
java compilation error  i am going to type program and the error is shaded one this one is giving error please sole this one sir import java.io....:"+ch); } }   Hi friend, Having some error in your code check 

Java Beginners

Java Compilation error - Java Beginners
Java Compilation error   i wrote a simple hello world program i get this error every time please help Exception in thread "main" java.lang.NullPointerException 

Java Beginners

error detection - Java Beginners
me an error,of "(" or "[" expected. i tried to change everything i can to repair the error but got stuck. please help me to find out what must i do to repair...error detection   Hi Amardeep and all friends out 

JavaMail Questions

java complilation error - JavaMail
java complilation error  Hi I was trying to send the mails using the below code,This coding is giving errors that java.mail.* does not exists,i am using netbeans 6.5 ide...pls help mail.jsp <@pageimport="java.util. 

Java Beginners

java compiler error
java compiler error  I am trying to compile a simple program which is as follows: public class A { public static void main(String args...(); and B b=new B(pointing below this B)(); I am using windows 7: when i 

Java Beginners

java compilation error - Java Beginners
java compilation error  Sir Thanx for ur response for reading a doc file but when i tried to execute ur code compilation error occurs, it says...; org.apache.poi.hwpf.extractor.WordExtractor does not exist. I am using jdk 1.6 

Java Beginners

Java compile error - Java Beginners
Java compile error  I am having trouble compiling the Java project available on this site at http://www.roseindia.net/chatserver/index.shtml... to compile Java on Mac besides using the Terminal 

Java Beginners

Compile time error
Compile time error  Hi, When i compile my simple program in cmd am getting a error like "Javac is not a recognized as an internal or external...; This means java is not configured properly in your system. Please visit 

Java Beginners

Java Error - Java Beginners
Java Error  Hello Sir ,How i Can solve Following Error Can not find Symbol - in.readLine(); Here Error Display at in  Hi Friend, It seems that you haven't defined the object 'in'.Anyways, Send your code so that we 

Spring Framework Questions

I am getting error org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'IS_AUTHENTICATED_ANONYMOUSLY' is defined - Spring
I am getting error org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'IS_AUTHENTICATED_ANONYMOUSLY' is defined  Hello, I am getting error 

Java Beginners

java runtime error - Java Beginners
java runtime error  sir, i have installed jdk in my system.i had also set path.But i am unable to run the compiled class file.it shows run time... friend, Please send source code and explain in detail. I am sending you 

Java Beginners

Error - Java Beginners
try to solve the error.but i dont know where to correct the error. i am new to java. here following i post the code import java.lang.*; import java.io....Error  I compiled 1 java program,it compiled fine,but can't execute 

Hibernate Questions

error in hibernate example
error in hibernate example  i am getting error in this.... log4j:WARN No appenders could be found for logger (org.hibernate.cfg.Environment). log4j:WARN Please initialize the log4j system properly. Resource: Contact.hbm.xml 

Java Beginners

java compilation error - Java Beginners
thats maybe why I'm getting that error message. Is there a way I can find an image in java graphics to be able to save it as a file if so, how can I do...java compilation error  Hello, I sent a previous message regarding 

Java Beginners

compile error
"); } } i have save this program with A.java. Then I executed this program javac A.java no errors and java A [output Hello World],up to this fine. Then I saved the same...compile error  Hello All for example public class 

Java Beginners

: Java Compilation error. - Java Beginners
: Java Compilation error.  what is the difference between static... instance. Static Block is executed when the Program starts. Example... from another static class or method Example : public class StaticExample 

Java Magazine Questions

Logical error - Java Magazine
Logical error  hi guys... I am facing some probleam in do-while loop so plz check out my code and inform me whats wrong with this code thanks...(char ch) { int count=0; for(int i=0;i0) buf[j++]= i; }while(i != '0 

JDBC Questions

java database error - JDBC
java database error  hi all i am writing one swing application where i want to insert data into database(MS-Access) but dont know how to do this insertion with MS-Access pls do help me out  hi prashant, Use 

Java Beginners

java compilation error - Java Beginners
java compilation error  Hello, I had recently sent an email and got a response regarding how to add an image to a GUI. I used the code that someone provided but now I get this message when I compile 

Java Beginners

Java Compiler Error - Java Beginners
Java Compiler Error  I get this error when i compile this Java inheritance OOP. What I'm i doing wrong. F:\Java\WorkerDemo.java:9: cannot find..."); ^ 1 error Tool completed 

Java Beginners

Java Runtime error - Java Beginners
. I get this error: java.net.ConnectException: Connection refused: connect...Java Runtime error  I have designed a simple chat application where the client and the server is the same computer itself. I have used the ipaddress 

Java Server Faces Questions

error in code - Java Server Faces Questions
it is displaying the error like "Cannot find FacesContext" i am not understanding plz check the error and give me the answer i am sending the code of web.xml... with the extension of "jsf" also but i am not getting if it necessary i will send 

Java Beginners

java compilatior error - Java Beginners
java compilatior error  Hello, here is some additional information...; restockFee = F; } public void setName(String N) //Method to set and get... name; } public void setNumber(String Num) //Method to set and get 

Java-Tutorials

Command Line Standard Error In Java
below). public static final PrintStream err Example Here I am giving a simple.... In this example I have created a Java class named JavaSystemErrExample.java....Command Line Standard Error In Java In this section we will discuss about 

Java Beginners

java run time error - Java Beginners
java run time error  i am getting error "main... only, i have to display number of files and its last modified time ,i use... 23 08:17 0 23 08:17 but after displaying 12 such lines, it show error 

Java Beginners

Java Complication Error - Java Beginners
Java Complication Error  Hello there, I was assigned to do a project in java that I have to set up tabs and in each tab have something in them. Well... and depth. But everytime I try to click the calculate volume button i get 

Hibernate Questions

error come
error come  com.techi.bean.Employee cannot be cast to [Ljava.lang.Object;... i display the data action to jsp using set list atribute on action then get attribute like this--- List data= (List)request.getAttribute 

Java Beginners

Java Error - Java Beginners
Java Error  E:\SUSHANT\Core Java\FileHandling\Error>javac... ch= reader.read(); ^ 1 error import java.io....[]c=s1.toCharArray(); for(int i=0;i 

Framework Questions

error in sample example
error in sample example  hi can u please help me XmlBeanFactory class is deprecation in java 6.0 so, pls send advance version class   Use XmlBeanFactory(Resource) with an InputStreamResource parameter 

Java Beginners

Java Complication Error - Java Beginners
Java Complication Error  Hello there, I was assigned to do a project in java that I have to set up tabs and in each tab have something in them. Well... and depth. But everytime I try to click the calculate volume button i get 

JDBC Questions

error - JDBC
error  i wrote the program using dbms type 4 driver.it is comipled,i got a errors d:temp> java DBConnect db Connect Example...(String[] args) { System.out.println("db Connect Example."); Connection 

Java Beginners

Java Program Complication error - Java Beginners
Java Program Complication error  Hi there, I have this program I had to write called ThreeArrayLists.java, but I keep getting this error "use... elements in the price and quantity arrays (for example, amount [i] = price[i 

Java Server Faces Questions

JSF error - Java Server Faces Questions
JSF error  When i am trying to run my jsf application using tomcat6.0 in eclipse europa ide i am getting the error like "java.lang.NoClassDefFoundError: javax/faces/event/SystemEventListener" Iam using jsf-api & jsf 

Java Beginners

java error - Java Beginners
java error  Thanks for providing me the answer for the question... be dereferenced If Programme saved in SortFileData also shows some error Please rectify the errors and provide the coding that run properly Write a Java program 

Advertisements Advertisements
 

 

 

DMCA.com