Really strange problem
"Yury Peskin" <[email protected]>
| Newsgroups | gmane.comp.web.webobjects.devel |
|---|---|
| Message-ID | <[email protected]> |
I have two different machines: a development and deployment.
Same code being moved to deployment machine from development.
So far, so good.
Here comes Mr. Murphy.
I can not call Direct Action on the deployment machine, but I can call it on
the development machine. Even more interesting is that I can call a
different Direct Action on both machines, and there's no real difference
between the calls.
The error I get is:
Application: test
Error: java.lang.reflect.InvocationTargetException
Reason:
Stack trace: <Blank>
NA: Non applicable, JIT activated
Here's the Direct Action:
public WOActionResults passedAction() {
System.out.println("formValue: " + request().formValues());
String customer = (String)request().formValueForKey("customer");
String passwd = (String)request().formValueForKey("passwd");
String completed = (String)request().formValueForKey("completed");
String errorString = (String)request().formValueForKey("errorString");
((Session)session()).setUserName(customer);
((Session)session()).setPassword(passwd);
if(((Session)session()).canAuthenticateWithPasswod())
{
System.out.println("Authenticated");
MasteringStatusPage page = (MasteringStatusPage)
pageWithName("MasteringStatusPage");
System.out.println("Created MasteringStatusPage");
page.setPassed(passed);
return page;
}
}
And here's the output from the bad site:
{formValue: {WoIsmapCoords = ("errorString"); completed = ("TRUE"); passwd
= ("XXXX"); customer = ("XXXX"); }
Authenticated
Here's the output from the good site:
{formValue: {WoIsmapCoords = ("errorString"); completed = ("TRUE"); passwd
= ("XXXX"); customer = ("XXXX"); }
Authenticated
Created MasteringStatusPage
Any help is appreciated.
Thanks,
Yury