[Logo] Terracotta Discussion Forums (LEGACY READ-ONLY ARCHIVE)
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Slider Demo  XML
Forum Index -> Terracotta Platform
Author Message


Joined: 05/24/2006 12:45:08
Messages: 71

just started to look into TC-DSO and is trying to build and run the slider demo. I did follow the steps given in eclipse plugin DSO tutorial. But, when I try to run the demo, I get an exception when I run the second client as TC-DSO application. Not sure where exactly I went wrong...

Exception and config file details are as below and the code is same as the one in the DSO tutorial:

Exception in thread "main" java.lang.NullPointerException
at javax.swing.DefaultBoundedRangeModel.addChangeListener(Unknown Source)
at javax.swing.JSlider.setModel(Unknown Source)
at javax.swing.JSlider.<init>(Unknown Source)
at demo.Slider.<init>(Slider.java:18)
at demo.Slider.main(Slider.java:11)

<con:tc-config xmlns:con="http://www.terracottatech.com/config-v1">
<server name="localhost">
<method-expression>void javax.swing.DefaultBoundedRangeModel.setRangeProperties(int, int, int, int, boolean)</method-expression>
<method-expression>void javax.swing.DefaultBoundedRangeModel.fireStateChanged()</method-expression>

Thanks in advance for any help!!!


Joined: 05/24/2006 12:45:08
Messages: 71

Hi. Very sorry about that - the tutorial is actually missing a critical step. We're working on getting a new version of it posted soon.

In the meantime, you can workaround it by simply editing this part of the configuration:


to be like this:


The short explanation that there are some listeners in the range model that are getting shared which should not be - setting <hone-transient> to true ensures that this happens.

As I say, we're fixing the tutorial to add the step that tells you to configure this. Sorry for confusion, and let me know if there's anything else I can do to help.


Patrick Calahan
Director, Product Management
Terracotta, Inc.


Joined: 05/24/2006 12:45:08
Messages: 71

Hi Patrick,

Thank you for the update. I thought that I tried setting <honor-transient> to true before. Well, I did this again and it works now.

Thank You!!!
Forum Index -> Terracotta Platform
Go to:   
Powered by JForum 2.1.7 © JForum Team