Hi,

Rajarshi Guha wrote:
> Hi, I have some code that brings up a JmolViewer with a IAtomContainer
> object loaded into it. My code looks like:
>
>         JmolViewer viewer = jmolPanel.getViewer();
>
>         if (this.molecule != null)
>             viewer.openClientFile("", "", this.molecule);
>         else if (this.filename != null) {
>         }
>
> However when I do this I am getting,
>
> Exception in thread "main" java.lang.NoSuchMethodError: 
> org.jmol.api.JmolAdapter.getAtomSetCollectionAuxiliaryInfo(Ljava/lang/Object;)Ljava/util/Hashtable;
>         at org.jmol.viewer.Frame.<init>(Frame.java:223)
>         at org.jmol.viewer.ModelManager.setClientFile(ModelManager.java:78)
>         at org.jmol.viewer.Viewer.openClientFile(Viewer.java:1157)
>         at org.guha.rcdk.view.ViewMolecule3D.show(ViewMolecule3D.java:45)
>
> Looking at the sources I see that this method is indeed missing. 
>
> I'm working with the latest SVN copy of Jmol.
>   
Are you sure ?
 From the SVN source code:
- org.jmol.api.JmolAdapter:
  public Hashtable getAtomSetCollectionAuxiliaryInfo(Object clientFile) {
    return null;
  }
- org.jmol.adapter.smarter.SmarterJmolAdapter:
  public Hashtable getAtomSetCollectionAuxiliaryInfo(Object clientFile) {
    return ((AtomSetCollection)clientFile).atomSetCollectionAuxiliaryInfo;
  }

For me, the method is there.


> Also, I've ended up using the unsigned Jmol jar file, since whenever I
> try and use the signed version in my code I get the exception noted
> below. Why is the application jar signed?
>   
I don't remember why, it has been discussed a few months ago on the 
Jmol-developers list.
Maybe one reason is the ability to use Java Web Start.

> Exception in thread "main" java.lang.SecurityException: class 
> "org.jmol.api.JmolSelectionListener"'s signer information does not match 
> signer information of other classes in the same package
>         at java.lang.ClassLoader.checkCerts(ClassLoader.java:775)
>         at java.lang.ClassLoader.preDefineClass(ClassLoader.java:487)
>         at java.lang.ClassLoader.defineClass(ClassLoader.java:614)
>         at 
> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
>         at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
>         at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
>         at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
>         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
>         at org.jmol.viewer.SelectionManager.<init>(SelectionManager.java:37)
>         at org.jmol.viewer.Viewer.<init>(Viewer.java:132)
>         at org.jmol.viewer.Viewer.allocateViewer(Viewer.java:150)
>         at org.jmol.api.JmolViewer.allocateViewer(JmolViewer.java:51)
>         at org.guha.rcdk.view.JmolPanel.<init>(JmolPanel.java:20)
>         at org.guha.rcdk.view.ViewMolecule3D.show(ViewMolecule3D.java:37)
>
> -------------------------------------------------------------------
>
>   

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Jmol-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-developers

Reply via email to