Exception in thread "main" java.lang.NoSuchMethodError: com.google.protobuf.Descriptors$FileDescriptor.internalBuildGeneratedFileFrom(Ljava/lang/String;[Lcom/google/protobuf/Descriptors$FileDescriptor;Lcom/google/protobuf/Descriptors$FileDescripto

109 views
Skip to first unread message

skumaresan

unread,
Oct 12, 2010, 2:48:14 PM10/12/10
to java-twitter
Hi all,

the Code
import net.unto.twitter.Api;
import net.unto.twitter.TwitterProtos.Status;
public class LastestMessage
{
public static void main(String[] args)
{
Api api = Api.builder().build();
for (Status status :
api.publicTimeline().build().get()) {
System.out.println(String.format("%s wrote
'%s'", status.getUser().getName(), status.getText()));
}
}
}

This code is compiling fine but not when i run the program the
Exception throws as given below..

Exception in thread "main" java.lang.NoSuchMethodError:
com.google.protobuf.Descriptors
$FileDescriptor.internalBuildGeneratedFileFrom(Ljava/lang/String;[Lcom/
google/protobuf/Descriptors$FileDescriptor;Lcom/google/protobuf/
Descriptors$FileDescriptor$InternalDescriptorAssigner;)V
at net.unto.twitter.UtilProtos.<clinit>(UtilProtos.java:598)
at net.unto.twitter.UtilProtos$Url
$Scheme.<clinit>(UtilProtos.java:83)
at net.unto.twitter.Api.<clinit>(Api.java:97)
at LastestMessage.main(LastestMessage.java:7)


Please Help Me...


Thank you,
Kumaresan
Reply all
Reply to author
Forward
0 new messages