Skip to Content
0
Former Member
Jul 02, 2015 at 11:02 AM

NoSuchFieldError in Trail ~ Testing the DAO

96 Views

Dear hybris experts,

in “Trail ~ Testing the DAO” from “hybris 5 Devloper Training Trails – Part I –Core” I get the below error, if I try to perform the steps in segment “Run the test – Attempt 3” :

 ERROR [main] (junit) [LogRunListener] Test method stadiumDAOTest(de.hybris.platform.cuppytrail.daos.impl.DefaultStadiumDAOIntegrationTest) failed!!
 java.lang.NoSuchFieldError: TRACE
     at org.jboss.logging.Log4jLogger.translate(Log4jLogger.java:60)
     at org.jboss.logging.Log4jLogger.isEnabled(Log4jLogger.java:35)
     at org.jboss.logging.Logger.isTraceEnabled(Logger.java:98)
     at org.hibernate.validator.internal.util.logging.Log_$logger.isTraceEnabled(Log_$logger.java:156)
     at org.hibernate.validator.internal.metadata.aggregated.BeanMetaDataImpl.getValidDefaultGroupSequence(BeanMetaDataImpl.java:387)
     at org.hibernate.validator.internal.metadata.aggregated.BeanMetaDataImpl.setDefaultGroupSequence(BeanMetaDataImpl.java:363)
     at org.hibernate.validator.internal.metadata.aggregated.BeanMetaDataImpl.setDefaultGroupSequenceOrProvider(BeanMetaDataImpl.java:313)
 

The error occurred if modelService object try to save the stadiumModel object in stadiumDAOtest() methode.

How can I fix it?

Regards

Tools in use:

  • JDK 1.8.0_45-b15

  • hybris-commerce-suite-5.5.1.1

  • Spring Tool Suite 3.6.4

  • log4j-1.2.17 in build path