[ 
https://issues.apache.org/jira/browse/UIMA-2569?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14047321#comment-14047321
 ] 

Greg Holmberg edited comment on UIMA-2569 at 6/30/14 2:19 AM:
--------------------------------------------------------------

I get this error compiling uimaj/trunk (revision 1602048) on Ubuntu 14.04 using 
Oracle Java 1.8.0_05 (64-bit) and maven 3.2.2.

junit.framework.AssertionFailedError
        at junit.framework.Assert.fail(Assert.java:47)
        at junit.framework.Assert.assertTrue(Assert.java:20)
        at junit.framework.Assert.assertTrue(Assert.java:27)
        at 
org.apache.uima.util.impl.JSR47Logger_implTest.testLogWrapperCreation(JSR47Logger_implTest.java:63)

The code in question is:

  public void testLogWrapperCreation() throws Exception {
    // Set the root logger's level to INFO ... may not be the default
    
java.util.logging.Logger.getLogger("").setLevel(java.util.logging.Level.INFO);

    org.apache.uima.util.Logger uimaLogger = JSR47Logger_impl.getInstance();
    org.apache.uima.util.Logger classLogger = 
JSR47Logger_impl.getInstance(this.getClass());

    // check base configuration
    Assert.assertNotNull(uimaLogger);
    Assert.assertNotNull(classLogger);
    Assert.assertTrue(uimaLogger.isLoggable(Level.INFO));                       
                                            <==== Line 63
    Assert.assertTrue(classLogger.isLoggable(Level.INFO));
  }

Hmm, that paste is a mess.  The line is:

 Assert.assertTrue(uimaLogger.isLoggable(Level.INFO));


was (Author: holmberg):
I get this error compiling uimaj/trunk (revision 1602048) on Ubuntu 14.04 using 
Oracle Java 1.8.0_05 (64-bit) and maven 3.2.2.

junit.framework.AssertionFailedError
        at junit.framework.Assert.fail(Assert.java:47)
        at junit.framework.Assert.assertTrue(Assert.java:20)
        at junit.framework.Assert.assertTrue(Assert.java:27)
        at 
org.apache.uima.util.impl.JSR47Logger_implTest.testLogWrapperCreation(JSR47Logger_implTest.java:63)

The code in question is:

  public void testLogWrapperCreation() throws Exception {
    // Set the root logger's level to INFO ... may not be the default
    
java.util.logging.Logger.getLogger("").setLevel(java.util.logging.Level.INFO);

    org.apache.uima.util.Logger uimaLogger = JSR47Logger_impl.getInstance();
    org.apache.uima.util.Logger classLogger = 
JSR47Logger_impl.getInstance(this.getClass());

    // check base configuration
    Assert.assertNotNull(uimaLogger);
    Assert.assertNotNull(classLogger);
    Assert.assertTrue(uimaLogger.isLoggable(Level.INFO));                       
                                            <==== Line 63
    Assert.assertTrue(classLogger.isLoggable(Level.INFO));
  }



> JSR47Logger_implTest fails with JDK 7 on builds.apache.org
> ----------------------------------------------------------
>
>                 Key: UIMA-2569
>                 URL: https://issues.apache.org/jira/browse/UIMA-2569
>             Project: UIMA
>          Issue Type: Bug
>          Components: Core Java Framework
>    Affects Versions: 2.4.1SDK
>            Reporter: Richard Eckart de Castilho
>            Assignee: Richard Eckart de Castilho
>
> There is a test failure when building uimaj on the Apache Jenkins using JDK 7:
> {noformat}
> junit.framework.AssertionFailedError
>       at junit.framework.Assert.fail(Assert.java:47)
>       at junit.framework.Assert.assertTrue(Assert.java:20)
>       at junit.framework.Assert.assertTrue(Assert.java:27)
>       at 
> org.apache.uima.util.impl.JSR47Logger_implTest.testLogWrapperCreation(JSR47Logger_implTest.java:60)
> ---
> 60:     Assert.assertTrue(uimaLogger.isLoggable(Level.INFO));
> {noformat}
> Cannot reproduce that failure locally in Eclipse nor on the command line 
> under OS X with:
> {noformat}
> Java version "1.7.0_10"
> Java(TM) SE Runtime Environment (build 1.7.0_10-b18)
> Java HotSpot(TM) 64-Bit Server VM (build 23.6-b04, mixed mode)
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to