Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / March 2007

Tip: Looking for answers? Try searching our database.

NoSuchMethodError  IllegalAccessError problem

Thread view: 
yunkang.ahn@gmail.com - 14 Mar 2007 16:01 GMT
Hi,

I've got a strange problem :

Exception in thread "Thread-7" java.lang.NoSuchMethodError:
org.rubato.rubettes.score.Note.getOnset()D
       at
org.rubato.rubettes.structures.PartARubette.createBundle(PartARubette.java:
255)

But actually the method getOnset does exist ! (and it would have been
an error during the compilation) but it appears at the execution of my
code.

Moreover this method is just an accessor ; so I tried to make my slots
public (onset is a slot) , and when I did that ther's an other
error :

Exception in thread "Thread-7" java.lang.IllegalAccessError: tried to
access field org.rubato.rubettes.score.Note.onset from class
org.rubato.rubettes.structures.PartARubette
       at
org.rubato.rubettes.structures.PartARubette.createBundle(PartARubette.java:
259)

I don't understand why it doesn't work ... could anyone help me ?
`
Many thanks in advance
Mark Jeffcoat - 14 Mar 2007 19:53 GMT
> Exception in thread "Thread-7" java.lang.NoSuchMethodError:
> org.rubato.rubettes.score.Note.getOnset()D
[quoted text clipped - 5 lines]
> an error during the compilation) but it appears at the execution of my
> code.

You're org.rubato.rubettes, and PartARubette is something
you're writing, yes?

If you're getting errors at runtime that should have been
caught in the compile, it generally means you've got .class
files that are out of date. Throwing them all away (and
thus forcing a complete re-compile) will solve the problem,
or at least tell you what's really wrong.

I like to do an 'ant clean build' before every check-in
to avoid this problem.

Signature

Mark Jeffcoat
Austin, TX



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.