Uploaded image for project: 'SLF4J'
  1. SLF4J
  2. SLF4J-200

Java 5 API used

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.6.x
    • Core API
    • None
    • Operating System: Windows XP
      Platform: PC

    Description

      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.)

      Attachments

        Activity

          People

            slf4j-dev SLF4J developers list
            dsills@datasourceinc.com David Sills
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: