[ome-devel] using blitz
Bernhard Voigt
bernhard.voigt at gmail.com
Wed Nov 19 16:20:32 GMT 2008
Hi Josh!
Thanks for your help! You're right, the query was just wrong. Now I
get results :-)
After $ ant clean the compilation was successful, too. I didn't start
the self-compiled server yet, but at least the files in dist/lib and
dist/bin are there as expected.
I have another question now - I'm making progress ;-)
I tried to create plates and wells but I can't add wells to a plate
that has been saved already:
# create plate.... and save
plate = update.saveAndReturnObject(plate)
# creat well... add plate link and save
well.setPlate(plate)
well = update.saveAndReturnObject(well)
The last call yields a security exception similar to this one
serverExceptionClass = ome.conditions.SecurityViolation
message = You are not authorized to change the update event for
ome.model.screen.Plate:Id_55 from ome.model.meta.Event:Id_355 to
ome.model.meta.Event:Id_354
Changing the order of object creation, ie. creaet wells and then the
plate does not work either, I get an error that I can't save a well
without a plate reference.
Thanks! Bernhard
plate.
> > I was now able to do something like this:
> > 2 : import omero
> > 3 : cl = omero.client()
> > 4 : ses = cl.createSession('omero','omero')
> > 5 : q = ses.getQueryService()
> > 6 : omero.sys.Parameters(map={'name': omero.RString('omero')})
> > 7 : omero.sys.Parameters(map={'name': omero.RString('omero')})
> > 8 : param = omero.sys.Parameters(map={'name': omero.RString('omero')})
> > 9 : q.findByQuery('select p from Project p where p.details.owner.name
> > = :name', param)
...snip...
> > What I now get is a java exception:
> >
> > serverExceptionClass = ome.conditions.ApiUsageException
> > message = could not resolve property: name of:
> > ome.model.meta.Experimenter [select p from
> > ome.model.containers.Project p where p.details.owner.name = :name];
> > nested exception is org.hibernate.QueryException: could not resolve
> > property: name of: ome.model.meta.Experimenter [select p from
> > ome.model.containers.Project p where p.details.owner.name = :name]
>
> This is simply a typo. The query should read:
>
> "...where p.details.owner.omeName = :name "
>
> or perhaps
>
> "...where p.details.owner.lastName = :name "
>
> > I don't have JBOSS running, but as far as I understood, this is not
> > necessary anymore for omero-blitz to work, right?
>
> Very, very correct.
>
> > > > Compilation does not work, too. Attached is the output from java omero
> > > > build-blitz, I couldn't figure out what the root cause of the errors
> > > > is. What do I have to put in the classpath, e.g Ice.jar and the
> > > > "berkeley-db".jar used during Ice.jar compilation... what about all
> > > > the jars in the omero/lib/repository folder, I guess the problem I
> > > > have are missing libraries in the classpath?!
> > >
> > > The problem here also looks like a mismatch between the Ice
> > > versions. Since the classpath is automatically handled, my guess is
> > > that slice2java and slice2py still point to 3.2.1 versions. If not,
> > > let me know and we'll do some more tracking.
> > I'm pretty sure this is not the case, I get the same version output as
> > you write above.
> > Did you check the ant output I've send. For me it seems some classes
> > cannot be found, I see some ClassNotFoundExcpt. for hibernate classes.
> >
> > Well, currently there's no need to compile Beta3.1.1 myself it was
> > just that I though that the binary dist was not complete.
>
> Does this mean that you haven't built yet? If so, please let me know.
>
> The only errors I see in your log are of the form:
>
> /home/bernhard/devel/omero/Beta_3.1.1/components/blitz/target/generated/src/omero/model/ExperimenterGroup.java:137: cannot find symbol
> symbol : class DispatchStatus
> location: package IceInternal
> public static IceInternal.DispatchStatus
>
> which is an Ice version mismatch, in which case something still's
> stale or left-over.
>
> > Thanks again! Bernhard
>
> Gladly,
> ~Josh.
>
More information about the ome-devel
mailing list