Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

startGUIRefresh in CaDSRobotGUISwing not working #17

Closed
nos-home opened this issue Apr 19, 2018 · 3 comments
Closed

startGUIRefresh in CaDSRobotGUISwing not working #17

nos-home opened this issue Apr 19, 2018 · 3 comments

Comments

@nos-home
Copy link

when executing startGUIRefresh it throws the following exception:

Exception in thread "main" java.lang.ClassCastException: cads.gnarls.Controller cannot be cast to org.cads.ev3.rmi.consumer.CaDSRMIConsumer
	at org.cads.ev3.gui.swing.CaDSRobotGUIRefresh.<init>(Unknown Source)
	at org.cads.ev3.gui.swing.CaDSRobotGUISwing.startGUIRefresh(Unknown Source)

the Cast probably should be to the interface ICaDSRMIConsumer instead of CaDSRMIConsumer.

@HaukeBu
Copy link
Collaborator

HaukeBu commented Apr 19, 2018

Hi!
Which Java Version do you use?
Which Interface are you implementing with your Controller?

@nos-home
Copy link
Author

  • eclipse says: JavaSE-1.7 (*.jar coming from jdk1.8.0_144)
  • i'm on osx
public class Controller implements
ICaDSEV3RobotFeedBackListener, 
ICaDSEV3RobotStatusListener, 
ICaDSRMIConsumer,
IIDLCaDSEV3RMIMoveGripper, 
IIDLCaDSEV3RMIMoveHorizontal, 
IIDLCaDSEV3RMIMoveVertical, 
IIDLCaDSEV3RMIUltraSonic, 
Runnable {
	CaDSRobotGUISwing view;

	public Controller() {
		super();
		this.view = new CaDSRobotGUISwing(this, this, this, this, this);
		view.startGUIRefresh(1000);
	}
 /* ... all stubs here */
}

@HaukeBu
Copy link
Collaborator

HaukeBu commented Apr 20, 2018

Issue is fixed.

@HaukeBu HaukeBu closed this as completed Apr 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants