Updating from 3.11.X to 3.12.X breaks

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Declined
    • Priority: Major - P3
    • None
    • Affects Version/s: 3.12.0, 3.12.1
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      When I try to upgradeĀ mongo-java-driver from 3.11.X to 3.12.X. The following code breaks.

      @RunWith(SpringJUnit4ClassRunner.class)
      @ContextConfiguration("classpath:spring-mvc-servlet.xml")
      public class DatabaseTest {
      
      	@Autowired
      	private IPersonService personService;
      	
      	@Test
      	public void testConnection() {
      		try {
      			personService.findById("1");
      		} catch (Exception e) {
      			System.out.println("!!!!!!!!");
      			fail("Database connection failed!");
      		}
      	}
      }
      
      public interface IPersonService {
      
      	Person findById(String id);
      }
      
      public class Person {
          private String id;
      }
      

      The test should pass, but it failed with the error "Database connection failed!"
      The related configuration files are in the attachment.

        1. mongodb-config.xml
          1.0 kB
        2. spring-mvc-servlet.xml
          1 kB

            Assignee:
            Jeffrey Yemin
            Reporter:
            Lingchao Chen
            None
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: