[Logo] Serotonin Software Community
  [Search] Search   [Recent Topics] Recent Topics   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
time periods mixed up  XML
Forum Index » User help
Author Message
craig

Initiate

Joined: 06/08/2007 16:50:46
Messages: 144
Offline

I've upgraded a mango installation from 1.2.3 to 1.4.0 and then to 1.4.1.

When I load up the data source edit page for a modbus_ip datasource it shows the update period as 15 seconds instead of 15 minutes. If I save it as 15 minutes, and then reload the page it still shows 15 seconds. However the update period must be saved correctly as the source is only updated every 15 minutes. When I view source on the select box there is no SELECTED attribute on any of the option tags.

This problem is not confined to the datasource edit page. I've observed the same behaviour while switching points over to interval logging.

I do not have this problem on a fresh 1.4.1 installation.

I created a new datasource on the upgraded 1.4.1 installation and was unable to set the update period properly on the new ds, so the problem isn't confined to pre-existing datasources either.

Can I delete and re-install the webapps/ROOT directory or is there some way of investigating how the upgrade is botched? I have remote access to the server and eclipse is installed so remote debugging is an option.

Thanks
Craig
mlohbihler

Master
[Avatar]

Joined: 01/03/2007 22:48:52
Messages: 1456
Offline

I can't recreate the problem on my instances, so i suggest a reinstallation.

All you really need to keep is the database. The only difference between the regular installation and the upgrade is that a couple of configuration files are not included in the latter (in case the user changed some values). If you delete the ROOT dir and replace with a fresh instance, assuming you didn't change where your database is, everything should still be good.

Best regards,
Matthew Lohbihler
craig

Initiate

Joined: 06/08/2007 16:50:46
Messages: 144
Offline

I deleted the webapps/ROOT directory and extracted the 1.4.1 archive and I'm still seeing the same behaviour.

Could it be caused by an incomplete upgrade?
mlohbihler

Master
[Avatar]

Joined: 01/03/2007 22:48:52
Messages: 1456
Offline

The code in question is in WEB-INF/jsp/dataSourceEdit/editModbus.jsp. Starting at line 124 there is this:



The important part is the sst="true" in line 129. If this is present it should work ok.

If you find that the code is ok, can you please post or email to me how this code renders in the browser.

This message was edited 1 time. Last update was at 08/11/2008 11:14:27


Best regards,
Matthew Lohbihler
craig

Initiate

Joined: 06/08/2007 16:50:46
Messages: 144
Offline

The sst=true is present in the editModus.jsp file. The select tag in the browser is:


editModbus.jsp in CVS is different from the commercial version so I don't think there is much debugging I can do short of sending you a copy of the database without any pointdata.

Thanks for the help,
craig

This message was edited 1 time. Last update was at 08/11/2008 14:35:33

mlohbihler

Master
[Avatar]

Joined: 01/03/2007 22:48:52
Messages: 1456
Offline

You can do something like this: in the JSP that i mentioned earlier, add the code after the input below: (you can put it into a comment if you like - the forums won't let me do it for some reason)



Then, again post the rendered html. The JSP will recompile automatically.

Best regards,
Matthew Lohbihler
craig

Initiate

Joined: 06/08/2007 16:50:46
Messages: 144
Offline

I added the periods around the 2. When I paste this HTML I am removing many empty lines. I don't know if that is relevant.

mlohbihler

Master
[Avatar]

Joined: 01/03/2007 22:48:52
Messages: 1456
Offline

Hmm... "2" is certainly not equal to " 2 ". But the value is an integer; i have no explanation why spaces would be showing up.

Best regards,
Matthew Lohbihler
craig

Initiate

Joined: 06/08/2007 16:50:46
Messages: 144
Offline

I put the spaces there too! The appropriate value for minutes is in the ${dataSource.updatePeriods} variable. I

This message was edited 1 time. Last update was at 08/11/2008 19:55:05

mlohbihler

Master
[Avatar]

Joined: 01/03/2007 22:48:52
Messages: 1456
Offline

I'm stumped. Do you have an instance available on the internet i can look at?

Best regards,
Matthew Lohbihler
craig

Initiate

Joined: 06/08/2007 16:50:46
Messages: 144
Offline

I upgraded from tomcat 5.5.17 to the latest 6.x and this problem has disappeared.
 
Forum Index » User help
Go to:   
Powered by JForum 2.1.9 © JForum Team