This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes JSF and the fly likes App runs properly on one computer only! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » JSF
Bookmark "App runs properly on one computer only!" Watch "App runs properly on one computer only!" New topic
Author

App runs properly on one computer only!

Jamie Williams
Ranch Hand

Joined: Mar 31, 2006
Posts: 70
I have an app which gets some information from the database, displays it in text fields for the user to edit, and then submit to be processed and inserted back into the database (based on some conditions).

This was working fine two weeks ago, but since I changed some stuff in the back end it seems the program isn't even calling the action method. The wierdest thing is my computer is the only one in the office that this runs properly for! When I submit changes I get taken to the next step, but everyone else's browser just reloads the same page!!!

The JSF:


The action method:


The action method and interface have not been changed at all since I made the backend changes. I even tried commenting out all of the action method code and simply putting in 'return "fail"' to redirect to an error page, but it just didn't do anything - just reloaded the page!!!

I've been trying to get around this for about 6 hours now - I've looked at cacheing, different browsers, even different servers but my computer is still the only one that will show the right action. Every other action runs perfectly on the other computers, just not this! Please help if you can!
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16095
    
  21

When things get that bad, I generally have to call other people in for help and they point out that my URL is pointing to the wrong computer.
[ June 29, 2006: Message edited by: Tim Holloway ]

Customer surveys are for companies who didn't pay proper attention to begin with.
Jamie Williams
Ranch Hand

Joined: Mar 31, 2006
Posts: 70
Each computer is following exactly the same link, the same app on the same server. I have tested it running tomcat on my own machine, on the company's test server and out production server. They all work for me, but anyone else who tries the test or production server can't run it properly!
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16095
    
  21

Hmmm. Well, if you return an unknown action string, you don't get an error page, you get a return to the submitting page.

I'd suggest putting this in your action method:

public String doEditing() {
throw new RuntimeException("SQUIRRELY ACTION PROBLEM. ACTION CALLED OK.");
}

That'll help you pinpoint the times that the action processor got called vs times it was outright ignored.
Jamie Williams
Ranch Hand

Joined: Mar 31, 2006
Posts: 70
Ok I'll try that and see how it goes. Thanks
Jamie Williams
Ranch Hand

Joined: Mar 31, 2006
Posts: 70
Okay, throwing the exception worked on my computer but not on the others, it just reloads the page, so it can't be calling the action method at all, which I don't understand. Any ideas?
Jamie Williams
Ranch Hand

Joined: Mar 31, 2006
Posts: 70
I found the problem! The date conversion isn't working - I work for a French company and I'm the only one in my company who uses English as the language for Windows - everyone else is in French. From the last release I changed the formatting of the dates from 'dd/mm/yy' to 'dd-MMM-yy' (I have these in a read-only text field that is updated by Javascript functions, based on other form entries) which means the converter must be expecting '30-Jui-06' instead of '30-Jun-06'!

I don't know how to fix this problem though... does anyone know how to enforce a web site to use only English?
Jamie Williams
Ranch Hand

Joined: Mar 31, 2006
Posts: 70
Answer:

 
GeeCON Prague 2014
 
subject: App runs properly on one computer only!