[ome-devel] OMERO Spring

josh.moore at gmx.de josh.moore at gmx.de
Thu Jun 12 13:51:17 BST 2008


Simon Kainz writes:
 > :-)
 > 
 > Hi! Seems I found it !!!

Great! Thanks for tracking this down, Simon. The release coming out
in the next few days also uses 2.5, so things should continue to work
for you.

Cheers,
~josh.

 > At http://jira.springframework.org/browse/SPR-4135 , there is the same
 > issue noted. I tried with a newer Spring version (2.5) and it worked !!!
 >  Too bad I didn't try this before, as i thought "my" version of Spring
 > (2.0.8) already included in my project if sufficient.
 > 
 > Thank you anyway,
 > 
 > josh.moore at gmx.de wrote:
 > > Simon Kainz writes:
 > > 
 > >  > Hi!
 > > 
 > > Hi Simon.
 > > 
 > > Recompiling won't help. I'm not sure, but I'm assuming that this is a
 > > classloading issue. You had said that under other conditions the
 > > service invocation worked correctly. Did that also involve your
 > > version of spring? What does your CLASSPATH look like?
 > > 
 > > One thing to test would be to remove your version of spring (2.0.8)
 > > try again. This shouldn't be a problem unless you are doing
 > > something in particular with classloaders.
 > > 
 > > Best wishes,
 > > ~J.
 > > 
 > > P.S. What version of OMERO are you currently working with? 
 > > 
 > > 
 > >  > I tracked down the issue: There seems to be a version conflict regarding
 > >  > spring: Omero uses 2.0.6, whereas I'm trying to use the omero client lib
 > >  >  inside our application which uses spring 2.0.8. I also tested this by
 > >  > writing an example prog which works using spring 2.0.6 but doesn't when
 > >  > use 2.0.8.
 > >  > 
 > >  > I get the following error using Spring 2.0.8.
 > >  > 
 > >  > xception in thread "main" java.lang.NullPointerException
 > >  >         at java.util.Hashtable.put(Hashtable.java:394)
 > >  >         at
 > >  > org.springframework.util.CollectionUtils.mergePropertiesIntoMap(CollectionUtils.java:100)
 > >  >         at
 > >  > org.springframework.jndi.JndiTemplate.createInitialContext(JndiTemplate.java:112)
 > >  >         at
 > >  > org.springframework.jndi.JndiTemplate.execute(JndiTemplate.java:86)
 > >  >         at
 > >  > org.springframework.jndi.JndiTemplate.lookup(JndiTemplate.java:130)
 > >  >         at
 > >  > org.springframework.jndi.JndiTemplate.lookup(JndiTemplate.java:155)
 > >  >         at
 > >  > org.springframework.jndi.JndiLocatorSupport.lookup(JndiLocatorSupport.java:93)
 > >  >         at
 > >  > org.springframework.jndi.JndiObjectLocator.lookup(JndiObjectLocator.java:105)
 > >  >         at
 > >  > org.springframework.jndi.JndiObjectTargetSource.getTarget(JndiObjectTargetSource.java:131)
 > >  >         at ome.client.JBossTargetSource.getTarget(JBossTargetSource.java:73)
 > >  >         at
 > >  > org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:184)
 > >  >         at $Proxy8.saveAndReturnObject(Unknown Source)
 > >  >         at Importer.main(Importer.java:45)
 > >  > 
 > >  > 
 > >  > 
 > >  > Any ideas as how to solve this ? Maybe recompile using Spring 2.0.8 ?
 > >  > 
 > >  > TIA, Simon


More information about the ome-devel mailing list