• 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
Re: java.lang.NoSuchMethodError: er.ajax.AjaxResponse.setHeaders
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: java.lang.NoSuchMethodError: er.ajax.AjaxResponse.setHeaders


  • Subject: Re: java.lang.NoSuchMethodError: er.ajax.AjaxResponse.setHeaders
  • From: Alexis Tual <email@hidden>
  • Date: Wed, 26 May 2010 11:52:35 +0200

Problem solved thanks to Henrique :

The Ajax framework was compiled against WO 5.4.x only. I've added a classifier for this framework. Now you must specify which one you want to use (wo53 or wo54) i.e.:

<dependency>
  <groupId>wonder.ajax</groupId>
  <artifactId>Ajax</artifactId>
  <version>5.0.0-SNAPSHOT</
version>
  <classifier>wo53</classifier>
</dependency>

2010/5/11 Alexis Tual <email@hidden>
Continuing my monolog,
i've compiled wonder frameworks with maven rather smoothly :
 mvn clean install -P wo53 -Dwoversion=5.3.3
... and it works at runtime.

Henrique, could you please check how the repository version is compiled ? I guess you have to launch the compilation two times : one with wo53 profile, one with wo54 profile...

Thanks

2010/5/10 Alexis Tual <email@hidden>

Hi list,

i'm facing a similar problem, this time on a project  using wo 5.3.3 with maven and latest fake release of wonder (5.0.0-r10779)
At runtime on an Ajax response, i get the following exception :

[2010-05-10 18:30:19 CEST] <WorkerThread14> java.lang.NoSuchMethodError: er.ajax.AjaxResponse.setHeaders(Ljava/util/Map;)V
        at er.ajax.AjaxUtils.createResponse(AjaxUtils.java:76)
        at er.ajax.AjaxDynamicElement.invokeAction(AjaxDynamicElement.java:85)

I guess this wonder release was compiled against wo 5.4.3 even the wo53 classifier jar.
Anybody having this issue ?
I'll try to compile wonder with maven and see if i can make it work.

Thanks

Alex

2009/9/30 Alexis Tual <email@hidden>

Problem solved, i upgraded to version 5.0.0-r9933 (22 sept. 2009) and it seems to work now... i guess version 5.0.0-9638 was bogus.

Alex

Le 29 sept. 09 à 18:07, Alexis Tual a écrit :


Hi list,
i'm using wonder 5.0.0-9638 (5.4 classifier, yes i'm mavenized), webobjects 5.4.3 and get the following error when clicking an AjaxSubmitButton :

java.lang.NoSuchMethodError: er.ajax.AjaxResponse.setHeaders(Lcom/webobjects/foundation/NSDictionary;)V
       at er.ajax.AjaxUtils.createResponse(AjaxUtils.java:71)
       at er.ajax.AjaxSubmitButton.handleRequest(AjaxSubmitButton.java:320)
       at er.ajax.AjaxSubmitButton.invokeAction(AjaxSubmitButton.java:309)
       ...
The strange thing is at compile time (and decompile time i must say) i can do this kind of thing without problems it doesn't even fail at runtime :
 AjaxResponse ajaxResp = AjaxUtils.createResponse(request, context);
 WOResponse response = new WOResponse();
 ajaxResp.setHeaders(response.headers());

Indeed AjaxResponse.class.getMethods() give me somewhere this method public void com.webobjects.appserver.WOMessage.setHeaders(java.util.Map)

I've seen the NSDictionary class is "patched" by wonder but both this one and the "standard" wo NSDictionary class implements Map so... i'm a bit lost.

Any ideas ?

Thanks

Alex




 _______________________________________________
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

References: 
 >Re: java.lang.NoSuchMethodError: er.ajax.AjaxResponse.setHeaders (From: Alexis Tual <email@hidden>)
 >Re: java.lang.NoSuchMethodError: er.ajax.AjaxResponse.setHeaders (From: Alexis Tual <email@hidden>)

  • Prev by Date: [SOLVED]: Wonder 5.3 last build throws error on EOModel File
  • Next by Date: Re: When can I expect my WOComponent to get garbage collected?
  • Previous by thread: Re: java.lang.NoSuchMethodError: er.ajax.AjaxResponse.setHeaders
  • Next by thread: Re: Dependent popUp with D2W
  • Index(es):
    • Date
    • Thread