Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8107936

java.lang.NoSuchMethodError: After changing from javafx1.1 to 1.2

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P4 P4
    • None
    • None
    • javafx
    • None
    • OS: Windows Vista Business N
      Java platform: Java 1.6 update 12
      JavaFX plaftorm : javafx 1.2
      Desktop profile

      Somewhere on the code I have (can't post all the code because the application is too big):

      public class LevelIndicator extends PropertyIndicator, ILevelIndicator{
      var _glowEffect: Glow = Glow { level: 0
      };
      (...)

      var _outerRectangle = Rectangle{
      effect: _glowEffect
      width: bind componentWidth
      height: bind componentHeight
      x: bind positionX - componentWidth / 2
      y: bind positionY - componentHeight / 2
      arcWidth: 10
      arcHeight: 10
      fill: Color.WHITE
      stroke: Color.BLACK
      };
      (...)


      If I comment the "effect: _glowEffect" the exception doesn't happen.

      I'm running javafx through Java using this technique: http://forums.sun.com/thread.jspa?threadID=5395504. I'm rewriting a portion of my application UI in JavaFX.

      Here is the exception:
      java.lang.NoSuchMethodError: com.sun.scenario.effect.Effect.getBounds(Lcom/sun/javafx/geom/AffineTransform;Lcom/sun/scenario/effect/Effect;)Lcom/sun/javafx/geom/Rectangle2D;
      at com.sun.scenario.scenegraph.EffectFilter.getBounds(EffectFilter.java:33)
      at com.sun.scenario.scenegraph.SGNode$Filters.getBounds(SGNode.java:1462)
      at com.sun.scenario.scenegraph.SGNode.getClippedBounds(SGNode.java:171)
      at com.sun.scenario.scenegraph.SGNode.updateTxBounds(SGNode.java:565)
      at com.sun.scenario.scenegraph.SGNode.getCompleteBounds(SGNode.java:144)
      at javafx.scene.Node.computeBoundsInParent(Node.fx:1066)
      at javafx.scene.Node$_SBECL.compute(Node.fx:771)
      at com.sun.javafx.runtime.location.AbstractVariable.update(AbstractVariable.java:128)
      at com.sun.javafx.runtime.location.AbstractVariable.ensureValid(AbstractVariable.java:163)
      at com.sun.javafx.runtime.location.ObjectVariable.get(ObjectVariable.java:94)
      at com.sun.javafx.runtime.location.ObjectVariable$1.compute(ObjectVariable.java:89)
      at com.sun.javafx.runtime.location.AbstractVariable.update(AbstractVariable.java:128)
      at com.sun.javafx.runtime.location.AbstractVariable.ensureValid(AbstractVariable.java:163)
      at com.sun.javafx.runtime.location.ObjectVariable.get(ObjectVariable.java:94)
      at com.sun.javafx.runtime.location.AbstractBindingExpression.pushFrom(AbstractBindingExpression.java:116)
      at com.sun.javafx.runtime.location.Locations$5.compute(Locations.java:204)
      at com.sun.javafx.runtime.location.AbstractVariable.update(AbstractVariable.java:128)
      at com.sun.javafx.runtime.location.AbstractVariable.ensureValid(AbstractVariable.java:163)
      at com.sun.javafx.runtime.location.ObjectVariable.get(ObjectVariable.java:94)
      at com.sun.javafx.runtime.location.ObjectVariable$1.compute(ObjectVariable.java:89)
      at com.sun.javafx.runtime.location.AbstractVariable.update(AbstractVariable.java:128)
      at com.sun.javafx.runtime.location.AbstractVariable.invalidate(AbstractVariable.java:142)
      at com.sun.javafx.runtime.location.AbstractLocation$2.onAction(AbstractLocation.java:235)
      at com.sun.javafx.runtime.location.AbstractLocation$2.onAction(AbstractLocation.java:229)
      at com.sun.javafx.runtime.location.AbstractLocation.iterateChildren(AbstractLocation.java:182)
      at com.sun.javafx.runtime.location.AbstractLocation.invalidateDependencies(AbstractLocation.java:255)
      at com.sun.javafx.runtime.location.AbstractLocation.invalidate(AbstractLocation.java:109)
      at com.sun.javafx.runtime.location.AbstractVariable.invalidate(AbstractVariable.java:140)
      at com.sun.javafx.runtime.location.AbstractLocation$2.onAction(AbstractLocation.java:235)
      at com.sun.javafx.runtime.location.AbstractLocation$2.onAction(AbstractLocation.java:229)
      at com.sun.javafx.runtime.location.AbstractLocation.iterateChildren(AbstractLocation.java:182)
      at com.sun.javafx.runtime.location.AbstractLocation.invalidateDependencies(AbstractLocation.java:255)
      at com.sun.javafx.runtime.location.ObjectVariable.notifyListeners(ObjectVariable.java:136)
      at com.sun.javafx.runtime.location.ObjectVariable.replaceValue(ObjectVariable.java:104)
      at com.sun.javafx.runtime.location.ObjectVariable.set(ObjectVariable.java:115)
      at FXAnimationScene.AnimationComponents.LevelIndicator.set$FXAnimationScene$AnimationComponents$LevelIndicator$_outerRectangle(LevelIndicator.fx:45)
      at FXAnimationScene.AnimationComponents.LevelIndicator.applyDefaults$(LevelIndicator.fx:45)
      at FXAnimationScene.AnimationScene.createLevel(AnimationScene.fx:210)
      at FXAnimationScene.ScenePopupMenu$4.lambda(ScenePopupMenu.fx:63)
      at FXAnimationScene.ScenePopupMenu$4.invoke(ScenePopupMenu.fx:62)
      at FXAnimationScene.ScenePopupMenu$4.invoke(ScenePopupMenu.fx:62)
      at org.jfxtras.menu.NativeMenuItem$1ActionListener$anon3.actionPerformed(NativeMenuItem.fx:67)
      at java.awt.MenuItem.processActionEvent(MenuItem.java:627)
      at java.awt.MenuItem.processEvent(MenuItem.java:586)
      at java.awt.MenuComponent.dispatchEventImpl(MenuComponent.java:300)
      at java.awt.MenuComponent.dispatchEvent(MenuComponent.java:288)
      at java.awt.EventQueue.dispatchEvent(EventQueue.java:602)
      at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
      at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
      at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
      at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
      at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
      at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

            kcr Kevin Rushforth
            pdvieira Pedro Vieira
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: