java.lang.ClassCastException while debugging plugin
Posted: Tue Apr 07, 2015 9:12 pm
Hello All,
I have been trying to debug a plugin for Oxygen using eclipse. I followed the steps outlined here http://www.oxygenxml.com/doc/ug-editor/ ... lugin.html.
Firstly, I would note that the folder specified in step 6 does not contain lib immeditely inside its hierarchy but rather in and that the path should be corrected in the instructions.
I created the project as specified and used the workspace access plugin as a starting point. I have previously deployed the workspace-access plugin manually after running Maven install, so I am certain that the source code works correctly. Every time I launch the debugged instance of oxygen I would get a java.lang.ClassCastException, and the plugin would not load.
I tried to setup the oxygen-sample-plugin-workspace-access project by following the debugging instructions instead but when I launch oxygen, I get the same java.lang.ClassCastException, and the plugin does not load. If I exclude the VM argument to adjust the plugin path, the debugged instance of oxygen works correctly. Note, I have set the Java JRE to be the one included with Oxygen, so I am sure there isn't any major version mismatches.
Any help related to this problem would be greatly appreciated.
Thanks,
Dirk
I have been trying to debug a plugin for Oxygen using eclipse. I followed the steps outlined here http://www.oxygenxml.com/doc/ug-editor/ ... lugin.html.
Firstly, I would note that the
Code: Select all
C:\[OXYGEN_DIR]
Code: Select all
C:\[OXYGEN_DIR]\oxygen\lib
I created the project as specified and used the workspace access plugin as a starting point. I have previously deployed the workspace-access plugin manually after running Maven install, so I am certain that the source code works correctly. Every time I launch the debugged instance of oxygen I would get a java.lang.ClassCastException, and the plugin would not load.
I tried to setup the oxygen-sample-plugin-workspace-access project by following the debugging instructions instead but when I launch oxygen, I get the same java.lang.ClassCastException, and the plugin does not load. If I exclude the VM argument to adjust the plugin path, the debugged instance of oxygen works correctly. Note, I have set the Java JRE to be the one included with Oxygen, so I am sure there isn't any major version mismatches.
Any help related to this problem would be greatly appreciated.
Thanks,
Dirk