[slf4j-dev] [Bug 209] New: Java 5 API used

bugzilla-daemon at pixie.qos.ch bugzilla-daemon at pixie.qos.ch
Mon Dec 13 17:18:07 CET 2010


http://bugzilla.slf4j.org/show_bug.cgi?id=209

           Summary: Java 5 API used
           Product: SLF4J
           Version: 1.6.x
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P1
         Component: Core API
        AssignedTo: slf4j-dev at qos.ch
        ReportedBy: dsills at datasourceinc.com


I noted when running a JUnit test using SLF4J 1.6.1 under Java 1.4.2 that a
Java 5 API method was used, which created a problem but did not prevent logging
altogether, simply printed out a stack trace. It should be no great issue to
fix, I should think:

Unexpected problem occured during version sanity check
Reported exception:
java.lang.NoSuchMethodError:
java.util.Arrays.toString([Ljava/lang/Object;)Ljava/lang/String;
      at org.slf4j.LoggerFactory.versionSanityCheck(LoggerFactory.java:161)
      at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:106)
      at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:235)
      at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:208)
      at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:221)
      at
com.datasourceinc.alerts.util.AlertsFileParser.<init>(AlertsFileParser.java:15)
      at
com.datasourceinc.alerts.util.FileParsingTest.testParse(FileParsingTest.java:19)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at junit.framework.TestCase.runTest(TestCase.java:164)
      at junit.framework.TestCase.runBare(TestCase.java:130)
      at junit.framework.TestResult$1.protect(TestResult.java:106)
      at junit.framework.TestResult.runProtected(TestResult.java:124)
      at junit.framework.TestResult.run(TestResult.java:109)
      at junit.framework.TestCase.run(TestCase.java:120)
      at junit.framework.TestSuite.runTest(TestSuite.java:230)
      at junit.framework.TestSuite.run(TestSuite.java:225)
      at
org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130)
      at
org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
      at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
      at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
      at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
      at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197) 

(BTW, I note that Windows 7 is not on your OS list and used Windows XP so as to
come as close as I could.)


-- 
Configure bugmail: http://bugzilla.slf4j.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the slf4j-dev mailing list