• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
AjaxFileUpload problem in deployment
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AjaxFileUpload problem in deployment


  • Subject: AjaxFileUpload problem in deployment
  • From: John & Kim Larson <email@hidden>
  • Date: Fri, 16 Dec 2011 11:03:40 -0600

I have an AjaxFileUpload on a page that works fine in development but not in deployment.  When I upload a file I get an UnknownKeyException on the AjaxProgressBar inside the AjaxFileUpload ??

My bindings are
UploadPicture: AjaxFileUpload {
data = uploadedFile;
filePath = fileName;
succeededAction = savePhoto;
uploadLabel = "Upload photo";
finishedFunction = "img_previewUpdate();";
progressBarBeforeStart = true;
refreshTime = 1000;
}

This is the stack trace:

"URL" = "/cgi-bin/WebObjects/MyApp.woa/4/ajax/6.0.9.1.2.9?_u=_0ProgressBar&1324052204904";
}

com.webobjects.foundation.NSKeyValueCoding$UnknownKeyException: [<er.ajax.AjaxProgressBar name: er.ajax.AjaxProgressBar subcomponents: null > valueForKey()]: lookup of unknown key: 'uploadFormID'.
The WOComponent er.ajax.AjaxProgressBar does not have an instance variable of the name uploadFormID or _uploadFormID, nor a method of the name uploadFormID, _uploadFormID, getUploadFormID, or _getUploadFormID
  at com.webobjects.appserver.WOComponent.handleQueryWithUnboundKey(WOComponent.java:1764)
  at com.webobjects.foundation.NSKeyValueCoding$Utility.handleQueryWithUnboundKey(NSKeyValueCoding.java:494)
  at com.webobjects.foundation.NSKeyValueCoding$_KeyBinding.valueInObject(NSKeyValueCoding.java:894)
  at com.webobjects.foundation.NSKeyValueCoding$DefaultImplementation.valueForKey(NSKeyValueCoding.java:1324)
  at com.webobjects.appserver.WOComponent.valueForKey(WOComponent.java:1736)
  at com.webobjects.foundation.NSKeyValueCoding$Utility.valueForKey(NSKeyValueCoding.java:447)
  at com.webobjects.foundation.NSKeyValueCodingAdditions$DefaultImplementation.valueForKeyPath(NSKeyValueCodingAdditions.java:212)
  at com.webobjects.appserver.WOComponent.valueForKeyPath(WOComponent.java:1804)
  at com.webobjects.appserver._private.WOKeyValueAssociation.valueInComponent(WOKeyValueAssociation.java:50)
  at er.extensions.components._private.ERXWOForm._formName(ERXWOForm.java:296)
  at er.extensions.components._private.ERXWOForm._clearFormName(ERXWOForm.java:338)
  at er.extensions.components._private.ERXWOForm.invokeAction(ERXWOForm.java:230)
  at com.webobjects.appserver._private.WODynamicGroup.invokeChildrenAction(WODynamicGroup.java:105)
  at com.webobjects.appserver._private.WODynamicGroup.invokeAction(WODynamicGroup.java:115)
  at com.webobjects.appserver.WOComponent.invokeAction(WOComponent.java:1079)
  at com.webobjects.appserver._private.WOComponentReference.invokeAction(WOComponentReference.java:127)
  at com.webobjects.appserver._private.WODynamicGroup.invokeChildrenAction(WODynamicGroup.java:105)
  at com.webobjects.appserver._private.WODynamicGroup.invokeAction(WODynamicGroup.java:115)
  at com.webobjects.appserver._private.WOComponentContent.invokeAction(WOComponentContent.java:38)
  
This is what the generated HTML looks like (I took out some whitespace):
<iframe name="_0UploadFrame" src="" width="0" height="0" border="0" style="border: none;"></iframe>

<form name="_0Form" enctype="multipart/form-data" method="post" target="_0UploadFrame" action="">
	<input name="wosid" type="hidden" value="7f5NZMw8JeYq0B8lMUh6tw" />
	<input name="id" type="hidden" value="_0" />
	<table>
		<tr class="upload_row">
			<td class="input_col"><input name="uploadedFile" type="file" /></td>
			<td class="action_col"><input  type="button"  value="Upload photo"></input></td>
		</tr>

		<tr class="progress_row">
			<td colspan = "2">
				<div  id="_0ProgressBar" updateUrl="/cgi-bin/WebObjects/MyApp.woa/ajax/6.0.9.3.5.2.9">
</div><script>AUC.register('_0ProgressBar');</script>
			</td>
		</tr>
	</table>
</form>

I've used this many times before, and everything is fine. Heck, it's fine in development. Everything else works fine in deployment. I'm on EC2 btw with 5.4.3. It's like the context for the ERXWOForm puts it inside the AjaxProgressBar when it should be inside the AjaxFileUpload. ??? I use other Ajax stuff all over and it is fine, so I don't think it is a problem with the handler or something bigger.

Thanks for any help,
John

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: AjaxFileUpload problem in deployment
      • From: Ramsey Gurley <email@hidden>
    • Re: AjaxFileUpload problem in deployment
      • From: "Jérémy DE ROYER [INGENCYS]" <email@hidden>
  • Prev by Date: Re: WOLips Questions
  • Next by Date: Re: AjaxFileUpload problem in deployment
  • Previous by thread: Re: WOLips Questions
  • Next by thread: Re: AjaxFileUpload problem in deployment
  • Index(es):
    • Date
    • Thread