Hello,
I suspect (although there seems to be lots of error messages there!) that
what is happening here is that the Java API has not been included with
backwards compatibility code. It was just not something that was going to
be added (it's a lot of work) for something that was not being used that
much. So the recommendation here is that you open up this project in the
equivalent Python API and then do a "save all" option to update all the
project files to the latest release. Then hopefully that error message
will go away (but I'm sure you'll find other problems). (Well, I would
recommend, as always, to backup the project first before you do a
"saveAll".)
You might have noticed that Analysis does not have a "save all" option.
What you can do in Analysis is to do the following at the command line:
>>> top.project.saveAll()
(or similarly in any application where you can get hold of the project).
Wayne
On Tue, 23 Oct 2007, Gary Thompson wrote:
> Wayne Boucher wrote:
> > Hello,
> >
> > The 1.0.b3 Java API was produced from the same data model as 1.0.15
> > Analysis. It probably has (perhaps bad) bugs in it, because it hasn't
> > really been tested.
> Hi I gave it a try and this is what I got
>
> 1. I had to enlarge the memory footprint
> -Xms64m -Xmx256m
>
> 2. with a real project and TestLoad.java
> it crashed
> Getting Persons...
> Finding Experiment...
> WARNING, ccp.Molecule data release 1.0.207 differ from current release
> 1.1.a3memops.general.ApiException: Illegal invocation for method 'load'
> in class 'ccp.xml.nmr.Nmr': memops.general.ApiException: Error
> dereferencing link ccp.api.nmr.Nmr.AtomSet.atoms, key was:
> [MS1, A, 1, C]
> memops.general.ApiException: Illegal invocation for method 'getByKey' in
> class 'ccp.api.molecule.MolSystem.Atom': memops.general.ApiException:
> Illegal invocation for method 'getMolSystems' in class
> 'memops.api.Implementation.Project': memops.general.ApiException:
> Illegal invocation for method 'load' in class
> 'ccp.xml.molecule.MolSystem': memops.general.ApiException: Error
> dereferencing link ccp.api.molecule.MolSystem.Chain.molecule, key was:
> [k7r]
> memops.general.ApiException: Illegal invocation for method 'getByKey' in
> class 'ccp.api.molecule.Molecule.Molecule': memops.general.ApiException:
> Illegal invocation for method 'getMolecules' in class
> 'memops.api.Implementation.Project': memops.general.ApiException:
> Illegal invocation for method 'load' in class
> 'ccp.xml.molecule.Molecule': memops.general.ApiException: No storage
> found for package ccp.Molecule
> ERROR loading xml ccp.molecule.Molecule ccp/Molecule.xml
> ERROR loading xml ccp.molecule.MolSystem ccp/MolSystem.xml
> ERROR loading xml ccp.nmr.Nmr ccp/Nmr.xml
>
> at memops.general.Util.invokeMethod(Util.java:343)
> at memops.general.Util.invokeMethod(Util.java:327)
> at memops.api.Implementation.NormalStorage.load(NormalStorage.java:951)
> at
> memops.api.Implementation.Project.findFirstNmrProject(Project.java:14966)
> at
> memops.api.Implementation.Project.findFirstNmrProject(Project.java:14885)
> at
> memops.api.Implementation.Project.getCurrentNmrProject(Project.java:1044)
> at TestLoad.main(TestLoad.java:49)
>
>
> regards
> gary
>
> --
> -------------------------------------------------------------------
> Dr Gary Thompson
> Astbury Centre for Structural Molecular Biology,
> University of Leeds, Astbury Building,
> Leeds, LS2 9JT, West-Yorkshire, UK Tel. +44-113-3433024
> email: [log in to unmask] Fax +44-113-2331407
> -------------------------------------------------------------------
>
|