Live Chat & Podcast at 1:00PM Eastern on Sunday!
There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
Search
Tag Cloud
access acer asus bios bsod computer crash drive driver drivers error ethernet excel freeze games gaming graphics hard drive hardware hdmi internet laptop malware memory monitor motherboard netgear network printer problem ram random registry router slow software sound trojan usb video virus vista wifi windows windows 7 windows 7 32 bit windows 7 64 bit windows xp wireless xbox
Search
Search for:
Tech Support Guy Forums > Software & Hardware > Software Development >
[Java] NoSuchMethodError Exception

Reply  
Thread Tools
TypeSK's Avatar
Senior Member with 687 posts.
 
Join Date: Mar 2002
Experience: Intermediate
27-Oct-2009, 02: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 0 posts.
 
Join Date: Oct 2009
Location: Westborough
Experience: Advanced
28-Oct-2009, 10: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

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.

Search Tech Support Guy

Find the solution to your
computer problem!




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



Facebook Facebook Twitter Twitter TechGuy.tv TechGuy.tv Mobile TSG Mobile
You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 04:28 PM.
Copyright © 1996 - 2011 TechGuy, Inc. All rights reserved.

Powered by Cermak Technologies, Inc.