You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@heron.apache.org by GitBox <gi...@apache.org> on 2019/04/24 08:20:55 UTC

[GitHub] [incubator-heron] Vxider opened a new issue #3242: com.twitter.heron.streamlet.impl.sources.ComplexSource cannot be cast to org.apache.heron.api.spout.ISpout

Vxider opened a new issue #3242: com.twitter.heron.streamlet.impl.sources.ComplexSource cannot be cast to org.apache.heron.api.spout.ISpout
URL: https://github.com/apache/incubator-heron/issues/3242
 
 
   I have encountered an exception when using implementing 'custom source' followed by "SimplePulsarSourceTopology" in example. Here is the exception log:
   
   ```
   java.lang.ClassCastException: com.twitter.heron.streamlet.impl.sources.ComplexSource cannot be cast to org.apache.heron.api.spout.ISpout
           at org.apache.heron.instance.spout.SpoutInstance.<init>(SpoutInstance.java:121)
           at org.apache.heron.instance.Slave.handleNewAssignment(Slave.java:154)
           at org.apache.heron.instance.Slave.handleNewPhysicalPlan(Slave.java:364)
           at org.apache.heron.instance.Slave.access$300(Slave.java:55)
           at org.apache.heron.instance.Slave$1.run(Slave.java:124)
           at org.apache.heron.common.basics.WakeableLooper.executeTasksOnWakeup(WakeableLooper.java:191)
           at org.apache.heron.common.basics.WakeableLooper.runOnce(WakeableLooper.java:110)
           at org.apache.heron.common.basics.WakeableLooper.loop(WakeableLooper.java:100)
           at org.apache.heron.instance.Slave.run(Slave.java:186)
           at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
           at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
           at java.lang.Thread.run(Thread.java:745)
   ```
   
   Is this error caused by the difference between the Heron application(org.apache.xxx) and the maven API(com.twitter.xxx) package name?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services