cancel
Showing results for 
Search instead for 
Did you mean: 

Hybris 5.5.1 - first ant clean all - java.lang.NoSuchMethodError

Former Member
0 Kudos

Hello guys,

I just downloaded Hybris 5.5.1 and installed java 8. I unziped the package and executed

. ./setantenv.sh;

ant clean all

and got this exception ...

  java.lang.NoSuchMethodError: com.google.common.base.Stopwatch.createStarted()Lcom/google/common/base/Stopwatch;
     at de.hybris.ant.taskdefs.TestClassesScannerTask.execute(TestClassesScannerTask.java:63)
     at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
     at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
     at java.lang.reflect.Method.invoke(Method.java:497)

So far i had Hybirs 5.4 , 5.5 working with Java 7 perfectly. OS X 10.10

  [echo] ---------------------------------------------------------------
  [echo] hybris Platform Environment
  [echo] ---------------------------------------------------------------
  [echo] OS family:                 unix
  [echo] Java platform:             Java(TM) SE Runtime Environment, 1.8.0_45-b14
  [echo] Java compiler:             org.ee.jdt.core.JDTCompilerAdapter
  [echo] Build target:              1.7
  [echo] Compilation mode:          strict
  [echo] hybris Platform directory: /Users/yordanyordanov1/Dev/qiagen-project/hybris/bin/platform
  [echo] hybris Platform version:   5.5.1.0
  [echo] Ant version:               Apache Ant(TM) version 1.9.1 compiled on May 15 2013
  [echo] Ant memory settings:       -Xmx512m -XX:MaxPermSize=256M

Anyone experienced same issue?

Thank you.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

is it possible that there is an old google guava version in the classpath?

Former Member
0 Kudos

Hybris 5.5.1 will only support with java 8. If you use lower version same problem occurs.

Former Member
0 Kudos

Hello Yordan, I am using hybris 5.5.1 with Java 8 on OSX 10.10.3 and everything goes fine. Can you please provide your localextensions.xml ?

Former Member
0 Kudos

Just to be clear you (also) get this error if you run 5.5.1 under java 7 (had this problem when running an old VM snapshot).