Getting java.lang.NoClassDefFoundError: com/google/common/io/ByteSink

1,648 views
Skip to first unread message

Oliver

unread,
Oct 25, 2013, 5:51:41 AM10/25/13
to adwor...@googlegroups.com
Our application downloads reports daily and has been running well for over a year.

Last night we saw this error for the first time:

java.lang.NoClassDefFoundError: com/google/common/io/ByteSink            


Has anything changed in the API that could have caused this?

Oliver

David Torres (AdWords API Team)

unread,
Oct 29, 2013, 1:16:58 PM10/29/13
to adwor...@googlegroups.com
Hi Oliver,

Which Java library are you using? old or new one?

Best,

- David Torres - AdWords API Team

Oliver

unread,
Oct 29, 2013, 2:02:27 PM10/29/13
to adwor...@googlegroups.com
We're using the new one (version 1.18.1)

Oliver

Takeshi Hagikura (AdWords API Team)

unread,
Nov 1, 2013, 1:29:38 AM11/1/13
to adwor...@googlegroups.com
Hi Oliver, 

We haven't changed anything about the new Java library. 
Loos like the ByteSink class in the guava library is missing. 

Let me confirm following to narrow down the issue: 
 - Are you using Maven or using dependent jars directly?
 - Either way, please confirm guava-jdk{jdk-version}-{guava-version}.jar (e.g. guava-jdk5-14.0.1.jar) is in place and your classpath is correctly set that covers the directly
   where that jar is placed. 

Best,
- Takeshi, AdWords API Team

Oliver

unread,
Nov 2, 2013, 3:20:38 AM11/2/13
to adwor...@googlegroups.com
- We use Maven
- guava-jdk5-13.0.1.   However, we changed to guava-jdk5-14.0.1 and this seems to have fixed the problem.

Thanks

Oliver
Reply all
Reply to author
Forward
0 new messages