Mourning the loss of our friend, WhitPhil.
There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
Search
 
Software Development
Tag Cloud
access audio black screen blue screen boot bsod connection crash desktop driver drivers dvd email error excel firefox hard drive hardware hijackthis internet keyboard laptop malware monitor motherboard network networking outlook problem processor recovery router safe mode screen slow sound spyware tdlwsp.dll trojan upgrade vba video virus vista vundo windows windows 7 windows vista windows xp wireless
Search
Search for:
Tech Support Guy Forums > Software & Hardware > Software Development >
[Java] NoSuchMethodError Exception

Tip: Click here to scan for System Errors and Optimize PC performance
[ Sponsored Link ]

 
Thread Tools
TypeSK's Avatar
Senior Member with 681 posts.
 
Join Date: Mar 2002
Experience: Intermediate
27-Oct-2009, 01:41 PM #1
[Java] NoSuchMethodError Exception
question about this exception. Say I have this java code.

and when running the code, I get this exception:

java.lang.NoSuchMethodError
com.models.CreateContext(Ljava/lang/String;IILjava/lang/String;ILjava/lang/String;Ljava/lang/StringI

that looks to be a function like:

int CreateContext(String, Int, Int, String, Int, String, String){ }

now, is that saying that I am calling a function using that signature?

such as
int n = CreateContext("Str", 0, 0, "Str", 0, "Str", "Str");

or the function I am calling has that signature?

CreateContext("Str", 0, 0, "Str", 0, "Str", "Str");

grr, I just realized the question doesn't make much sense

basically, I am calling this function such as:

Code:
p = new SomeObject();
p.CreateContext("Str", 0, 0, "Str", 0, "Str", "Str");
works fine and well locally, but once moved live, it gives me back the above Exception.

I dont know if the jar file with the SomeObject Code is the wrong or what, because the exception shows an int return value. The old JAR file had the function with an int return value, but the new JAR file with the updated code has it as a void function.
__________________
AMD Athlon64 X2 4400+
DFI LanParty nF4 SLI-DR
256MB BFG 7800GTX OC
1GB OCZ Gold 2x512 DC PC3200

It's Not That We Don't Know, It's That We Don't Do What We Do Know
lovely-babli's Avatar
Junior Member with 2 posts.
 
Join Date: Oct 2009
Location: Westborough
Experience: Advanced
28-Oct-2009, 09:53 PM #2
Try to debug your code in some IDE. It will give you better idea, which function is getting called, and why that exception is coming.
Let us know which IDE you are using, or you used, and what did you find out.
Reply Bookmark and Share

Smart Search

Find your solution!



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who want to help you solve your computer problems. See our Welcome Guide to get started.

Thread Tools


You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -5. The time now is 03:42 PM.
Copyright © 1996 - 2009 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2009, Jelsoft Enterprises Ltd.
Powered by Cermak Technologies, Inc.