• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

App runs properly on one computer only!

 
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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!
 
Saloon Keeper
Posts: 27808
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 ]
 
Jamie Williams
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 27808
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 70
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ok I'll try that and see how it goes. Thanks
 
Jamie Williams
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 70
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 70
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Answer:

 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic