jsgilmore / gostorm

GoStorm is a Go library that implements the communications protocol required to write Storm spouts and Bolts in Go that communicate with the Storm shells.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Undefined: proto.ErrWrongType

agopinath12 opened this issue · comments

For my investigation I was using your “split sentence.go” example with the “WordCountTopology.java” example. When I run this example (mvn compile exec:java -Dstorm.topology=storm.starter.WordCountTopology) I get the following error:

This error can also be reproduced by just running the go file on it own.

github.com/jsgilmore/gostorm/messages
/Users//go/src/github.com/jsgilmore/gostorm/messages/messages.pb.go:266: undefined: proto.ErrWrongType
/Users//go/src/github.com/jsgilmore/gostorm/messages/messages.pb.go:288: undefined: proto.ErrWrongType
/Users//go/src/github.com/jsgilmore/gostorm/messages/messages.pb.go:349: undefined: proto.ErrWrongType
/Users//go/src/github.com/jsgilmore/gostorm/messages/messages.pb.go:364: undefined: proto.ErrWrongType
/Users//go/src/github.com/jsgilmore/gostorm/messages/messages.pb.go:426: undefined: proto.ErrWrongType
/Users//go/src/github.com/jsgilmore/gostorm/messages/messages.pb.go:448: undefined: proto.ErrWrongType
/Users//go/src/github.com/jsgilmore/gostorm/messages/messages.pb.go:509: undefined: proto.ErrWrongType
/Users//go/src/github.com/jsgilmore/gostorm/messages/messages.pb.go:531: undefined: proto.ErrWrongType
/Users//go/src/github.com/jsgilmore/gostorm/messages/messages.pb.go:558: undefined: proto.ErrWrongType
/Users//go/src/github.com/jsgilmore/gostorm/messages/messages.pb.go:620: undefined: proto.ErrWrongType
/Users//go/src/github.com/jsgilmore/gostorm/messages/messages.pb.go:620: too many errors

I could not find any reference on "ErrWrongType" on google documentation.

In the WordCountTopology.java I have just changed the shell that was using python to use go instead:

public static class SplitSentence extends ShellBolt implements IRichBolt {

public SplitSentence() {
  super("go","run", "splitsentence.go");
}

@Override
public void declareOutputFields(OutputFieldsDeclarer declarer) {
  declarer.declare(new Fields("word"));
}

@Override
public Map<String, Object> getComponentConfiguration() {
  return null;
}

}

I am not sure why I am getting the above error and I not able to find proto.ErrWrongType either (not sure if its been deprecated). I would very much appreciate it if you could quickly have a look.

goprotobuf and gogoprotobuf removed proto.ErrWrongType.
Just regenerate the proto files with a new version of goprotobuf or gogoprotobuf.
Or you can roll back to an older version of either.

Rebuilt the protocol buffer definitions to take into account recent protocol buffer changes.