[ome-devel] OMERO Spring
josh.moore at gmx.de
josh.moore at gmx.de
Thu Jun 12 13:05:51 BST 2008
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