Error creating bean with name - Teste JUnit[RESOLVIDO]

1 resposta
E

Pessoal,

estou tentando criar um teste, porém esta dando erro abaixo :

org.springframework.beans.factory.BeanCreationException: Error creating bean with name

com.thomsonreuters.suitegtm.specialscheme.movement.service.impl.TrSsMovementServiceImplTest:

Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException:

Could not autowire field: private transient com.thomsonreuters.suitegtm.specialscheme.movement.service.TrSsMovementService

com.thomsonreuters.suitegtm.specialscheme.movement.service.impl.TrSsMovementServiceImplTest.trSsMovementService;

nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name trSsMovementService:

Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException:

Could not autowire field: private com.thomsonreuters.suitegtm.specialscheme.movement.service.TrSsStructureProductionOrderService

com.thomsonreuters.suitegtm.specialscheme.movement.service.impl.TrSsMovementServiceImpl.trSsStructureProductionOrderService;

nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name trSsStructureProductionOrderService:

Invocation of init method failed; nested exception is java.lang.IndexOutOfBoundsException: Index: 0, Size: 0

Could not autowire field: private com.thomsonreuters.suitegtm.specialscheme.movement.service.TrSsStructureProductionOrderService
com.thomsonreuters.suitegtm.specialscheme.movement.service.impl.TrSsMovementServiceImpl.trSsStructureProductionOrderService;
nested exception is org.springframework.beans.factory.BeanCreationException:
Error creating bean with name ‘trSsStructureProductionOrderService’:

public class TrSsMovementServiceImplTest extends TaxitBaseServiceTestCase {

    /**
     * Instancia do Service.
     */
    @Inject
    private transient TrSsMovementService trSsMovementService;

..........................

não sei aonde procurar , para resolver este problema.

Alguem pode me ajudar ??

1 Resposta

E

Resolvi, estava analisando o stack trace o problema estava aqui

com.thomsonreuters.suitegtm.specialscheme.movement.service.impl.TrSsMovementServiceImpl.trSsStructureProductionOrderService;
nested exception is org.springframework.beans.factory.BeanCreationException:
Error creating bean with name ‘trSsStructureProductionOrderService’:
Invocation of init method failed; nested exception is java.lang.IndexOutOfBoundsException: Index: 0, Size: 0

Criado 13 de janeiro de 2015
Ultima resposta 13 de jan. de 2015
Respostas 1
Participantes 1