Hi again,
I have a problem with the geotools logging system, but it only happens
on one of my Macs : it works under Linux Fedora 8, Win XP and my other
mac which is supposed to be configured exactly the same... The
processor are however different (Dual Core Xeon on the development
machine on which it works, Core 2 Duo on the other one)
My JVM is :
java version "1.6.0_07"
Java(TM) SE Runtime Environment (build 1.6.0_07-b06-153)
Java HotSpot(TM) 64-Bit Server VM (build 1.6.0_07-b06-57, mixed mode)
Here is the stacktrace I get when I call geotools style factory. Have
you ever seen this ? Is this a geotools bug ?
Exception in thread "main" java.lang.NoSuchFieldError: TRACE
at org.geotools.util.logging.Log4JLogger.toLog4JLevel(Log4JLogger.java:
74)
at org.geotools.util.logging.Log4JLogger.isLoggable(Log4JLogger.java:
114)
at org.geotools.util.logging.LoggerAdapter.logrb(LoggerAdapter.java:530)
at org.geotools.util.logging.LoggerAdapter.log(LoggerAdapter.java:352)
at
org
.geotools
.resources
.IndexedResourceBundle.ensureLoaded(IndexedResourceBundle.java:237)
at
org
.geotools
.resources
.IndexedResourceBundle.handleGetObject(IndexedResourceBundle.java:291)
at java.util.ResourceBundle.getObject(ResourceBundle.java:378)
at java.util.ResourceBundle.getString(ResourceBundle.java:344)
at
org
.geotools
.resources.IndexedResourceBundle.getString(IndexedResourceBundle.java:
443)
at
org
.geotools
.resources.IndexedResourceBundle.getString(IndexedResourceBundle.java:
472)
at
org.geotools.factory.FactoryRegistry.getLogHeader(FactoryRegistry.java:
981)
at
org
.geotools.factory.FactoryRegistry.scanForPlugins(FactoryRegistry.java:
767)
at
org
.geotools
.factory.FactoryRegistry.scanForPluginsIfNeeded(FactoryRegistry.java:
808)
at
org
.geotools
.factory.FactoryRegistry.getUnfilteredProviders(FactoryRegistry.java:
229)
at
org
.geotools
.factory.FactoryRegistry.getServiceImplementation(FactoryRegistry.java:
429)
at
org
.geotools
.factory.FactoryRegistry.getServiceProvider(FactoryRegistry.java:364)
at
org
.geotools
.factory.FactoryCreator.getServiceProvider(FactoryCreator.java:143)
at
org
.geotools
.factory.CommonFactoryFinder.getStyleFactory(CommonFactoryFinder.java:
106)
at xxx.MapViewer.<clinit>(MapViewer.java:137)
at xxx.initializeView(Initializer.java:194)
at xxx.<init>(xxx.java:97)
at xxx.main(xxx.java:40)
Le 29 janv. 09 à 20:23, Benoît Thiébault a écrit :
> It works !
> Thank you Martin !
>
> Le 29 janv. 09 à 19:22, Martin Desruisseaux a écrit :
>
>> Benoît Thiébault a écrit :
>>> I am using Log4j as logging system for my application and I would
>>> like to redirect this message to another appender, a graphical
>>> dialog that is more user friendly than a console log. How can I do
>>> this ?
>>
>>
>> Could you try to put the following line at the begining of your
>> application, before most GeoTools classes get loaded?
>>
>> Logging
>> .GEOTOOLS
>> .setLoggerFactory("org.geotools.util.logging.Log4JLoggerFactory");
>>
>> Martin
>>
>
>
>
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by:
> SourcForge Community
> SourceForge wants to tell your story.
> http://p.sf.net/sfu/sf-spreadtheword
> _______________________________________________
> Geotools-gt2-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
>
Benoît Thiébault
Société Artenum
24 rue Louis Blanc, 75010 Paris
tel: +33 (0)1 46 94 67 54
Artenum - Science & Groupware - http://www.artenum.com
------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users