[ome-devel] Exception for getDefaultGroup

Matthias Dunda Matthias.Dunda at carus-it.com
Mon Sep 29 15:23:01 BST 2008


Hi guys,

I have the collection of pojos.ProjectData from the Treeview in Insight, which I want to process in some way.

When I do

for (pojos.ProjectData project : selectedProjects) {
        long projectId = project.getId();
        long userId = project.getOwner().getId();
        pojos.GroupData = project.getOwner().getDefaultGroup();
      /* more code... */
}

I get this exception:

java.lang.Exception: Abnormal termination due to an uncaught exception.
java.lang.IllegalStateException: Object unloaded:Experimenter:Id_1
        at ome.model.meta.Experimenter.errorIfUnloaded(Experimenter.java:857)
        at ome.model.meta.Experimenter.preGetter(Experimenter.java:69)
        at ome.model.meta.Experimenter.getDefaultGroupLink(Experimenter.java:613)
        at pojos.ExperimenterData.getDefaultGroup(ExperimenterData.java:223)
      ...

What's the reason for that?

Cheers
Matthias





More information about the ome-devel mailing list