alexcwyu/neo-ib-api

Simple Sample Program Fails

Closed this issue · 4 comments

What steps will reproduce the problem?
1. Copy/paste the simple sample
2. Create dummy My*.java with empty methods
3. Run

What is the expected output? What do you see instead?
Messages of a successful run were expected. Exceptions were thrown.

What version of the product are you using? On what operating system?
Was using Neo IB 1.0.1-SNAPSHOT on Windows 7 Home Premium

Please provide any additional information below.
Sending the log

Original issue reported on code.google.com by oleg.g.r...@gmail.com on 30 Oct 2012 at 3:48

Attachments:

Ok thanks. I'll try to fix this.

Original comment by cmarco...@gmail.com on 1 Nov 2012 at 5:29

  • Changed state: Accepted
Works fine with me.
Do you inherit from the right listeners ?
* public final class MyContractSpecificationEventListener implements 
ContractSpecificationEventListener
* public class MyTickSizeEventListener implements TickSizeEventListener
* public class MyTickGenericEventListener implements TickGenericEventListener
* public class MyCompositeTickEventListener implements 
CompositeTickEventListener

You must inherit from one subclass listener of 
ch.aonyx.broker.ib.api.EventListener<E>.
I'm going to fix this sending an exception telling exactly what's happening.

Original comment by cmarco...@gmail.com on 1 Nov 2012 at 5:41

  • Changed state: Started
Fixed NullPointerException when no Annotation has been found on the listener if 
one does not use listeners provided by API.

Original comment by cmarco...@gmail.com on 1 Nov 2012 at 4:45

  • Changed state: Fixed
This took me a long time to find this. As the documentation is lacking, can you 
please put this on the wiki, or even as comments above each line in the sample 
code? The inheritance was not obvious.

Original comment by drew.so...@gmail.com on 24 Mar 2013 at 2:24