Slightly more complex fxml fails to load

hi,

added an issue at GitHub but thought I post here as well, if that’s ok.

I created a fxml file that used split panes , basically a left nav pane

holding a liar and on the right a top and bottom panes both holding =
tables. A header section containing labels and a basic user login pane.

Here’s a screenshot:

http://www.screencast.com/t/WlbUeYA8Gtd

As one can see not a very complex UI.

The fxml in question can be found at the bottom.It was created using =
Scene Builder 1.1

So I want to know what’s going on with this particular example but in =
general how the jrubyfx central go about debugging this ? i.e. the =
output is not very friendly , what I mean its crashing trying to apply =
the property for a particular widget but there’s no output indicating =
the offending widget. Mind you I would put a breakpoint but IDEA is =
having problems dealing with a locally installed Gem namely jrubyfx but

I digress.

BTW, I have an active app that I’m evaluating porting to jrubyfx. This =
is not it, just trying to get my feet wet.

Here’s the error stack:

monteiro:lib charles$ jruby -S schema_browser_application.rb
[converter for Java::JavafxSceneLayout::ColumnConstraints, new]
[converter for Java::JavafxSceneLayout::RowConstraints, new]
[converter for Java::JavafxSceneInput::DragEvent, accept_transfer_modes]
[converter for Java::JavafxSceneEffect::DropShadow, color]
[converter for #Class:Java::JavafxSceneEffect::DropShadow, new]
[converter for Java::JavafxSceneImage::ImageView, viewport]
[converter for Java::JavafxSceneMedia::MediaPlayer, cycle_count]
[converter for Java::JavafxSceneControl::Pagination, page_count]
[converter for Java::JavafxSceneControl::Pagination, new]
[converter for Java::JavafxSceneControl::ProgressIndicator, progress]
[converter for Java::JavafxSceneControl::ProgressIndicator, new]
[converter for Java::JavafxSceneControl::ProgressBar, progress]
[converter for Java::JavafxSceneControl::ProgressBar, new]
[converter for #Class:Java::JavafxScenePaint::RadialGradient, new]
[converter for #Class:Java::JavafxScenePaint::LinearGradient, new]
[converter for Java::JavafxSceneLayout::Region, min_width]
[converter for Java::JavafxSceneLayout::Region, min_height]
[converter for Java::JavafxSceneLayout::Region, pref_width]
[converter for Java::JavafxSceneLayout::Region, pref_height]
[converter for Java::JavafxSceneLayout::Region, max_width]
[converter for Java::JavafxSceneLayout::Region, max_height]
[converter for Java::JavafxSceneLayout::Region, padding]
[converter for Java::JavafxSceneTransform::Rotate, axis]
[converter for #Class:Java::JavafxSceneTransform::Rotate, new]
[converter for Java::JavafxSceneControl::TableView, =
column_resize_policy]
[converter for Java::JavafxAnimation::Timeline, cycle_count]

/Users/charles/.rvm/gems/ruby-1.9.3-p0/gems/jrubyfx-fxmlloader-0.0.1/lib/f=
xmlloader/real_elts.rb:62 warning: singleton on non-persistent Java type

Java::JavafxFxml::ObjectBuilder (http://wiki.jruby.org/Persistence)
Exception running Application:
#<RuntimeError: oh no!>

/Users/charles/.rvm/gems/ruby-1.9.3-p0/gems/jrubyfx-fxmlloader-0.0.1/lib/f=
xmlloader/rrba.rb:400:in `coerce’

/Users/charles/.rvm/gems/ruby-1.9.3-p0/gems/jrubyfx-fxmlloader-0.0.1/lib/f=
xmlloader/rrba.rb:344:in `coerce’

/Users/charles/.rvm/gems/ruby-1.9.3-p0/gems/jrubyfx-fxmlloader-0.0.1/lib/f=
xmlloader/rrba.rb:235:in `[]=3D’

/Users/charles/.rvm/gems/ruby-1.9.3-p0/gems/jrubyfx-fxmlloader-0.0.1/lib/f=
xmlloader/elts.rb:424:in `applyProperty’

/Users/charles/.rvm/gems/ruby-1.9.3-p0/gems/jrubyfx-fxmlloader-0.0.1/lib/f=
xmlloader/elts.rb:284:in `processValue3’

/Users/charles/.rvm/gems/ruby-1.9.3-p0/gems/jrubyfx-fxmlloader-0.0.1/lib/f=
xmlloader/elts.rb:243:in `processPropertyAttribute’

/Users/charles/.rvm/gems/ruby-1.9.3-p0/gems/jrubyfx-fxmlloader-0.0.1/lib/f=
xmlloader/elts.rb:152:in processInstancePropertyAttributes' org/jruby/RubyArray.java:1613:in each’

/Users/charles/.rvm/gems/ruby-1.9.3-p0/gems/jrubyfx-fxmlloader-0.0.1/lib/f=
xmlloader/elts.rb:151:in `processInstancePropertyAttributes’

/Users/charles/.rvm/gems/ruby-1.9.3-p0/gems/jrubyfx-fxmlloader-0.0.1/lib/f=
xmlloader/value_elts.rb:86:in `processEndElement’

/Users/charles/.rvm/gems/ruby-1.9.3-p0/gems/jrubyfx-fxmlloader-0.0.1/lib/j=
rubyfx-fxmlloader.rb:409:in `processEndElement’

/Users/charles/.rvm/gems/ruby-1.9.3-p0/gems/jrubyfx-fxmlloader-0.0.1/lib/j=
rubyfx-fxmlloader.rb:205:in `load’

/Users/charles/.rvm/gems/ruby-1.9.3-p0/gems/jrubyfx-0.9.2-java/lib/jrubyfx=
/fxml_controller.rb:89:in load_into' schema_browser_application.rb:13:in start’

/Users/charles/.rvm/gems/ruby-1.9.3-p0/gems/jrubyfx-0.9.2-java/lib/jrubyfx=
/java_fx_impl.rb:121:in launch_app_after_platform' org/jruby/gen/InterfaceImpl1875744039.gen:13:in run’
monteiro:lib charles$=20


here’s the fxml in question:

<?xml version=3D"1.0" encoding=3D"UTF-8"?> <?import java.lang.*?> <?import java.util.*?> <?import javafx.geometry.*?> <?import javafx.scene.control.*?> <?import javafx.scene.layout.*?> <?import javafx.scene.paint.*?> <?import javafx.scene.text.*?>

<AnchorPane id=3D"AnchorPane" maxHeight=3D"-Infinity" =
maxWidth=3D"-Infinity" minHeight=3D"-Infinity" minWidth=3D"-Infinity" =
prefHeight=3D"600.0" prefWidth=3D"800.0" =
xmlns:fx=3D"http://javafx.com/fxml">

<SplitPane dividerPositions=3D"0.2506265664160401" =
focusTraversable=3D"true" prefHeight=3D"501.0" prefWidth=3D"800.0" =
AnchorPane.bottomAnchor=3D"0.0" AnchorPane.leftAnchor=3D"0.0" =
AnchorPane.rightAnchor=3D"0.0" AnchorPane.topAnchor=3D"99.0">

<AnchorPane minHeight=3D"0.0" minWidth=3D"0.0" =
prefHeight=3D"160.0" prefWidth=3D"100.0">

<ListView fx:id=3D"tables" onMouseClicked=3D"#table_selected"

prefHeight=3D"598.0" prefWidth=3D"197.0" AnchorPane.bottomAnchor=3D"0.0"

AnchorPane.leftAnchor=3D"0.0" AnchorPane.rightAnchor=3D"0.0" =
AnchorPane.topAnchor=3D"0.0" />


<Insets left=3D"1.0" />


<AnchorPane minHeight=3D"0.0" minWidth=3D"0.0" =
prefHeight=3D"598.0" prefWidth=3D"435.9999000000025">

<SplitPane dividerPositions=3D"0.22937625754527163" =
focusTraversable=3D"true" orientation=3D"VERTICAL" prefHeight=3D"598.0"

prefWidth=3D"595.0" AnchorPane.bottomAnchor=3D"0.0" =
AnchorPane.leftAnchor=3D"0.0" AnchorPane.rightAnchor=3D"0.0" =
AnchorPane.topAnchor=3D"0.0">

<AnchorPane minHeight=3D"0.0" minWidth=3D"0.0" =
prefHeight=3D"100.0" prefWidth=3D"160.0">

<TableView fx:id=3D"schema_details" =
prefHeight=3D"160.0" prefWidth=3D"593.0" AnchorPane.bottomAnchor=3D"0.0"

AnchorPane.leftAnchor=3D"0.0" AnchorPane.rightAnchor=3D"0.0" =
AnchorPane.topAnchor=3D"0.0">

<TableColumn prefWidth=3D"75.0" text=3D"Column =
X" />
<TableColumn prefWidth=3D"75.0" text=3D"Column =
X" />







<AnchorPane minHeight=3D"0.0" minWidth=3D"0.0" =
prefHeight=3D"100.0" prefWidth=3D"160.0">

<TableView fx:id=3D"table_data" prefHeight=3D"430.0"

prefWidth=3D"593.0" AnchorPane.bottomAnchor=3D"0.0" =
AnchorPane.leftAnchor=3D"0.0" AnchorPane.rightAnchor=3D"0.0" =
AnchorPane.topAnchor=3D"0.0">

<TableColumn prefWidth=3D"75.0" text=3D"Column =
X" />
<TableColumn prefWidth=3D"75.0" text=3D"Column =
X" />










<VBox id=3D"VBox" alignment=3D"CENTER" layoutX=3D"1.0"
layoutY=3D"1.0"=
prefHeight=3D"98.0" spacing=3D"5.0">

<HBox prefHeight=3D"38.0" prefWidth=3D"800.0">

<Label text=3D"Schema Browser" textAlignment=3D"CENTER">

<Font name=3D"System Bold" size=3D"24.0" />




<HBox alignment=3D"CENTER_LEFT" prefHeight=3D"100.0" =
prefWidth=3D"200.0" spacing=3D"5.0">

<Label text=3D"Service:“>

<Font name=3D"System Bold” size=3D"13.0" fx:id=3D"x1" />


<TextField prefWidth=3D"200.0" />
<Label font=3D"$x1" text=3D"User:" />
<PasswordField prefWidth=3D"94.0" />
<Label font=3D"$x1" text=3D"Pass:" />
<PasswordField prefWidth=3D"123.0" />
<Button mnemonicParsing=3D"false" text=3D"Connect" />


<Insets left=3D"5.0" />






Charles M.
[email protected]