Re: java.lang.NoSuchMethodError
"Fu,Bin" <[email protected]> Thu, 15 Jan 2004 13:15:42 +0100
| Newsgroups | gmane.comp.java.netbeans.modules.mdr.devel |
|---|---|
| Message-ID | <005701c3db61$c1f5d4d0$a50aa8c0@Bin> |
hi, Martin, I am sure that there is updated jar file on my classpath, which is generated from the same metamodel source as my program currently uses. This jar file contains library.LibraryPackage.getDiagramInterchange() method. Bin ----- Original Message ----- From: "Martin Matula" <[email protected]> To: <[email protected]> Sent: Wednesday, January 14, 2004 8:55 PM Subject: Re: [mdr-dev] java.lang.NoSuchMethodError > It seems that the classes you have on the classpath do not contain the > method. Are you sure you have correctly build the new generated > interfaces and replaced the old ones on your application's classpath? > Martin > > Fu,Bin wrote: > > > Hi, > > > > I added the metamodel "diagraminterchange" into my metamodel. With MDR > > explorer, it is no problem to get JMI interfaces from the package > > "diagraminterchange". But when I read it into MDR programmatically, the > > method "getDiagramInterchange()" in the top level package Java file > > cannot be found. See following exception message: > > > > /java.lang.NoSuchMethodError: > > library.LibraryPackage.getDiagramInterchange()Llibrary/diagraminterchange/Di agramInterchangePackage;/ > > > > But the method "getDiagramInterchange()" exists in the java file of top > > level package generated by MDR explorer. Please have a look at java file > > "library" of top level package as following: > > > > /package library;/ > > /public interface LibraryPackage extends javax.jmi.reflect.RefPackage { > > public library.infrastructurelibrary.InfrastructureLibraryPackage > > getInfrastructureLibrary(); > > public library.uml2.Uml2Package getUml2(); > > public library.diagraminterchange.DiagramInterchangePackage > > getDiagramInterchange(); > > } > > / > > > > I guess the problem is in my current model, or what else could be the > > reason? If you need, I can send you my current metamodel or create an issue. > > > > Thanks & Regards > > > > Fu, Bin > > > > > > > >