-
Notifications
You must be signed in to change notification settings - Fork 30
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
Unknown property type error after loading 1.0 #50
Comments
fxml_accessor takes a Property type like SimpleStringProperty instead of normal types like String. |
ok, changed my code to this new scheme, however I"m still getting errors Here's the stack: Exception running Application: Process finished with exit code 0 On Mon, Jun 3, 2013 at 11:44 AM, Patrick Plenefisch <
Charles A. Monteiro |
ok, apparently the fxml_root setting has also changed On Mon, Jun 3, 2013 at 12:39 PM, Charles Monteiro
Charles A. Monteiro |
all good now 1.0 made certain key changes to the set up of an app |
Trying to get past my last bug reported. I loaded jrubyfx 1.0 and now I'm getting unknown property type errors where I wasn't getting them before. The class below TbEntity was successfully used as collection type for a list within a tableview.
Apparently , the error is in the method <fxml_accessor> here:
ptype.java_class.java_instance_methods.find_all{|x|x.name == "getValue"}
i.e. the above returns an empty array.
Again, I was successfully making those calls based on prior git repo source code.
The code says to manually supply a which I didn't have to before. By do we mean Ruby type i.e. in this case a String ?
Stack:
RuntimeError: Unknown property type. Please manually supply a type or report this as a bug
fxml_accessor at /Users/charles/.rvm/gems/jruby-1.7.4/gems/jrubyfx-1.0.0-java/lib/jrubyfx/module.rb:135
TbEntity at /Users/charles/RubymineProjects/TbHolidayMaintenance/src/lib/tb_entity.rb:9
(root) at /Users/charles/RubymineProjects/TbHolidayMaintenance/src/lib/tb_entity.rb:4
require at org/jruby/RubyKernel.java:1054
(root) at file:/Users/charles/.rvm/rubies/jruby-1.7.4/lib/jruby.jar!/jruby/kernel19/kernel.rb:1
require_relative at file:/Users/charles/.rvm/rubies/jruby-1.7.4/lib/jruby.jar!/jruby/kernel19/kernel.rb:21
require at org/jruby/RubyKernel.java:1054
(root) at /Users/charles/RubymineProjects/TbHolidayMaintenance/src/lib/holiday_maintenance_controller.rb:5
(root) at file:/Users/charles/.rvm/rubies/jruby-1.7.4/lib/jruby.jar!/jruby/kernel19/kernel.rb:1
load at org/jruby/RubyKernel.java:1073
(root) at -e:1
Process finished with exit code 1
class TbEntity
include JRubyFX
fxml_accessor :processed_date, java.lang.String
fxml_accessor :entity_type, java.lang.String
fxml_accessor :entity_name, java.lang.String
def initialize date, type , name
converted_date = (DateTime.parse date).strftime('%m/%d/%y')
@processed_date = SimpleStringProperty.new converted_date
@entity_type = SimpleStringProperty.new type
@entity_name = SimpleStringProperty.new name
end
end
TbEntity.become_java!
The text was updated successfully, but these errors were encountered: