Okay making some progress here -
1. You may not of done significant work in the last year - but we are
running in a new version of Eclipse; and thus a new version of OSGi
which is trying to buckle down even harder on the kind of hacking we
like to do with FactorySPI.
2. FactoryRegistry.scanForPlugins is not getting called by
ReferencingFactoryFinder.scanForPlugins() - it does not do this because
at the time it is called the factoryRegistry is null. I was trying to
*force* a scanForPlugins() while the current thread was in a good
classloader to you know ... find stuff. Apparently this is not the way
so I will need to experiment.
3. NoSuchAuthorityCodeException is created - without
FactoryRegistry.scanForPlugins being called at all
So this is confusing for me? The joys of referencing...
So far the debug walkthrough looks like this (stop me if there are any
surprises):
CRS.decode
CRS.getAuthorityFactory
DefaultAuthorityFactory<init>
DefaultAuthorityFactory.getBackingFactory
ReferencingFactoryFinder.getCRSAuthoritFactories
ReferencingFactoryFinder.getFactories
ReferencingFactoryFinder.getServiceRegistry <-- I suspect this
method should of called scanForPlugins?
<--this method gets a lazy set; when asked for the contents
WebCRSFactory and AutoCRSFactory are around but no EPSG factory
Please note I am making use of the
Hints.FORCE_LONGITUDE_FIRST_AXIS_ORDER hint. So it makes sense that the
EPSG factory is not found on the classpath when requested with this Hint.
So what is the story again on how these hints are supposed to be used?
Is this a case where a global hint (used to describe what the
application wants to work with) is interfering with your ability to
discover everything on the classpath?
Now this is uDig so I am willing to take a little pain here; but I don't
want to kill myself on this stuff. It was recommended to me that I
should set these hints globally ... perhaps we just have a debugging
problem with referencing.
Jody
Martin Desruisseaux wrote:
> Jody Garnett a écrit :
>> This email is a starting place; I will comment as I learn more.
>> Martin I assume nothing has changed on your end?
>
> No I haven't done any significant work in EPSG factory for a year or
> so...
>
> I will look if I have idea.
>
> Martin
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel