Hi,I've got a strange problem :Exception in thread "Thread-7" java.lang.NoSuchMethodError:org.rubato.rubettes.score.Note.getOnset()D atorg.rubato.rubettes.structures.PartARubette.createBundle(PartARubette.java:255)But actually the method getOnset does exist ! (and it would have beenan error during the compilation) but it appears at the execution of mycode.Moreover this method is just an accessor ; so I tried to make my slotspublic (onset is a slot) , and when I did that ther's an othererror :Exception in thread "Thread-7" java.lang.IllegalAccessError: tried toaccess field org.rubato.rubettes.score.Note.onset from classorg.rubato.rubettes.structures.PartARubette atorg.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
|
|
0
|
|
|
|
Reply
|
yunkang.ahn (2)
|
3/14/2007 3:01:37 PM |
|
yunkang.ahn@gmail.com writes:
> 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.
>
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.
--
Mark Jeffcoat
Austin, TX
|
|
0
|
|
|
|
Reply
|
Mark
|
3/14/2007 6:53:34 PM
|
|