[slf4j-user] Problem with SLF4J and Android

Ceki Gulcu ceki at qos.ch
Thu Jul 2 19:47:59 CEST 2009


I went and downloaded openrdf-sesame-2.3-pr1-sdk.zip. I could find, in addition 
to slf4j-api.jar, both slf4j-jdk14.jar and logback-*.jar.

Would it be possible for you to try running a small test application under 
Android? openrdf-sesame is quite big...

Max Braun wrote:
> Sorry, I meant "slf4j-api-1.5.8.jar and slf4j-jdk14-1.5.8.jar" of 
> course. It shouldn't have anything to do with differing versions then, 
> right?
> 
> Max
> 
> 
> Am 02.07.2009 um 18:47 schrieb Ceki Gulcu:
> 
>>
>> Hello Max,
>>
>> Which version of slf4j-api is on your class path?
>>
>> "I'm using slf4j-jdk14-1.5.8.jar and slf4j-jdk14-1.5.8.jar" is not 
>> very clear.
>>
>> See also
>>  http://slf4j.org/faq.html#compatibility
>>  http://slf4j.org/faq.html#IllegalAccessError
>>  http://slf4j.org/manual.html
>>
>> BR
>>
>> Max Braun wrote:
>>> Hi,
>>> I'm trying to get Sesame to run on Android. There seems to be a 
>>> problem with SLF4J, which is used by Sesame, resulting in the 
>>> following error:
>>> E/ActivityThread( 724): Failed to find provider info for 
>>> com.google.settings
>>> I/dalvikvm( 724): DexOpt: access denied from 
>>> Lorg/slf4j/LoggerFactory; to field 
>>> Lorg/slf4j/impl/StaticLoggerBinder;.SINGLETON
>>> W/dalvikvm( 724): VFY: unable to resolve static field 3716 
>>> (SINGLETON) in Lorg/slf4j/impl/StaticLoggerBinder;
>>> W/dalvikvm( 724): VFY: rejecting opcode 0x62 at 0x0006
>>> W/dalvikvm( 724): VFY: rejected 
>>> Lorg/slf4j/LoggerFactory;.getSingleton 
>>> ()Lorg/slf4j/impl/StaticLoggerBinder;
>>> W/dalvikvm( 724): Verifier rejected class Lorg/slf4j/LoggerFactory;
>>> I hope someone here can help me with this.
>>> I'm using slf4j-jdk14-1.5.8.jar and slf4j-jdk14-1.5.8.jar. My initial 
>>> question in the Sesame forum can be found here: 
>>> http://www.openrdf.org/forum/mvnforum/viewthread?thread=2145
>>> Thanks,
>>> Max
>>
>> -- 
>> Ceki Gülcü
>> Logback: The reliable, generic, fast and flexible logging framework 
>> for Java.
>> http://logback.qos.ch
>> _______________________________________________
>> user mailing list
>> user at slf4j.org
>> http://www.slf4j.org/mailman/listinfo/user
> 
> _______________________________________________
> user mailing list
> user at slf4j.org
> http://www.slf4j.org/mailman/listinfo/user
> 

-- 
Ceki Gülcü
Logback: The reliable, generic, fast and flexible logging framework for Java.
http://logback.qos.ch



More information about the slf4j-user mailing list