Hi gang,
I recently bought some Rio Receivers and quickly found tRio - in general it works great. But, I somehow managed to break the web manager. It would come up on the Status tab, but when I clicked on the 'Player' tab, it would not do anything. I checked the Java Console, which indicated this error:
java.lang.IllegalArgumentException:setSelectedIndex: 2 out of bounds
I found that if I restored the trio.xml that was part of the distribution (and edited it as I started), it would work again. So, I played with it until it broke and compared the files. It will break when the manager is left on the Radio function when the tRio manager's Status tab is selected and the manager page is re-loaded. There are probably other ways to reproduce the problem, but the problem seems to be related to the addition of an extra parameter in trio.xml. The following lines are from the <application> section of trio.xml:
Comparing files trio.xml and TRIO.OK.XML
***** trio.xml
<unit mode="Queue 'n Play" layout="universal" access="protected"/>
<unit ip="192.168.0.3" mode="Radio"/>
***** TRIO.OK.XML
<unit mode="Queue 'n Play" layout="universal" access="protected"/>
<unit ip="192.168.0.3"/>
*****
So, you can see the extra _mode="Radio"_ text on the version that causes it to choke. Thoughts?
-Matt