Memory leak should be fixed, but LinkageError occurs on JavaEE tests