Plugin wiring

haddock
haddock New Altair Community Member
edited November 5 in Community Q&A
Hi there,

I'm making my way through "How to build Extensions" from Sebastian and have encountered some strange behaviour.

I can build and deploy the operators provided, but if I use either of the example "super" operators I cannot manually wire up the input of the inner operators, no yellow connecting line appears on mouse drag. However, the meta data is being passed though, and "autowire" connects everything as expected.

If I run Vega via Eclipse I can tag the following glitch message....
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
at com.rapidminer.gui.flow.ProcessRenderer$9.mouseDragged(ProcessRenderer.java:1883)
at java.awt.AWTEventMulticaster.mouseDragged(Unknown Source)
at java.awt.Component.processMouseMotionEvent(Unknown Source)
at javax.swing.JComponent.processMouseMotionEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Can anyone suggest a way round this?

Answers

  • fischer
    fischer New Altair Community Member
    Hi Haddock,

    sorry, it seems I have missed your post in the first place. The error you are describing sounds weird, and if I look at the line of code that causes the exception I would say this is impossible :-)

    Are you using the exact code from the tutorial? If yes, we should be able to reproduce the problem. It might be that this is unrelated to whether it is a "custom" operator or one of the standard ones. Are you really "dragging" the connection or are you clicking and moving the mouse (the latter is what you should be doing, but the first certainly should not crash.)

    Cheers,
    Simon
  • haddock
    haddock New Altair Community Member
    Hi Simon,

    I was running the examples provided, but cannot remember whether I was dragging or clicking - I have since noted that the problem ceases if I use createPort(String) rather than createPort(String,IOObject.class). Thanks for replying anyway.

  • fischer
    fischer New Altair Community Member
    Hi Haddock,

    thanks for replying and providing the information. I will see if I can find a problem with the "IOObejct.class" parameter you mention.

    Cheers,
    Simon