• 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: ERXKeyFilter.setAnonymousUpdateEnabled(Z)V on remote server
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ERXKeyFilter.setAnonymousUpdateEnabled(Z)V on remote server


  • Subject: Re: ERXKeyFilter.setAnonymousUpdateEnabled(Z)V on remote server
  • From: Fred Opims <email@hidden>
  • Date: Wed, 07 May 2014 09:40:47 -0400

Hi !
I succeed to run some request on the application deployed on the server. That means that the server can received ERRest request. 

But for request involving  ERXKeyFilter, i have the same error message: 

The request i’m sending is like this one:
http://somesite.ca/cgi-bin/WebObjects/SomeServer.woa/ra/highlight.json
POST
{
    "title": “TEST_3",
    "kind": "1",
    "length": "18s",
    "path": “some_url.m4v",
    "thumbnailPath": “some.png",
    "detail": “SOME DETAIL"
  }




Here is the response:

er.extensions.eof.ERXKeyFilter.setAnonymousUpdateEnabled(Z)V. 

 ERROR er.rest.routes.ERXRouteController - Request failed: /cgi-bin/WebObjects/SomeServer.woa/1/ra/highlight.json NoSuchMethodError: er.extensions.eof.ERXKeyFilter.setAnonymousUpdateEnabled(Z)V at abc.app.rest.controllers.HighlightController.filter(HighlightController.java:68) at abc.app.rest.controllers.HighlightController.createAction(HighlightController.java:52) ... skipped 4 stack elements at er.rest.routes.ERXRouteController.performActionNamed(ERXRouteController.java:1372) at er.rest.routes.ERXRouteController.performActionNamed(ERXRouteController.java:1238) ... skipped 8 stack elements 


Any ideas?

Thank you


On Tue, May 6, 2014 at 10:18 AM, Fred Opims <email@hidden> wrote:
ERRest.jar is on JavaMonitor.woa, wotaskd.woa and the  App.

Here is the content of the Frameworks directory from the App

ERExtensions.framework
ERJars.framework
ERPrototypes.framework
ERRest.framework
H2PlugIn.framework
JavaEOAccess.framework
JavaEOControl.framework
JavaFoundation.framework
JavaJDBCAdaptor.framework
JavaWebObjects.framework
JavaWOExtensions.framework
JavaXML.framework
PostgresqlPlugIn.framework
WOOgnl.framework


I used Ant to make my build and i followed this link to install Wonder on the server. 
http://wiki.wocommunity.org/display/documentation/Deploying+on+Linux

Thank you


On Tue, May 6, 2014 at 9:57 AM, Pascal Robert <email@hidden> wrote:
Do you have the ERRest.jar file elsewhere on the server? You can use the « find » command to find if it's the case (find / -name 'ERRest.jar' -ls)

And are you building Wonder or did you download the frameworks from somewhere?

----- Mail original -----
De: "Fred Opims" <email@hidden>
À: "Pascal Robert" <email@hidden>
Cc: "WebObjects Development" <email@hidden>
Envoyé: Mardi 6 Mai 2014 09:54:18
Objet: Re: ERXKeyFilter.setAnonymousUpdateEnabled(Z)V on remote server

Hi Pascal!

I confirm that the ERRest framework is in the Application's Frameworks directory,

Here is the content of Contents/Unix:

# JVM == java
# JVMOptions ==
# JDB == jdb
# JDBOptions ==
# ApplicationClass == bsc.app.Application

APPROOT/Resources/Java/
APPROOT/Resources/Java/bscserver.jar

APPROOT/Frameworks/ERJars.framework/Resources/Java/ERJars.jar
APPROOT/Frameworks/ERJars.framework/Resources/Java/ERFoundation.jar
APPROOT/Frameworks/ERJars.framework/Resources/Java/ERWebObjects.jar
APPROOT/Frameworks/ERJars.framework/Resources/Java/commons-lang-2.5-sources.jar
APPROOT/Frameworks/ERJars.framework/Resources/Java/commons-lang-2.5.jar
APPROOT/Frameworks/ERJars.framework/Resources/Java/erxservletadaptor.jar
APPROOT/Frameworks/ERJars.framework/Resources/Java/icu4j-3_8_1.jar
APPROOT/Frameworks/ERJars.framework/Resources/Java/joda-time-1.6.2-sources.jar
APPROOT/Frameworks/ERJars.framework/Resources/Java/joda-time-1.6.2.jar
APPROOT/Frameworks/ERJars.framework/Resources/Java/junit-4.8.jar
APPROOT/Frameworks/ERJars.framework/Resources/Java/log4j-1.2.16.jar
APPROOT/Frameworks/ERJars.framework/Resources/Java/ognl-2.6.7.jar
APPROOT/Frameworks/ERJars.framework/Resources/Java/slf4j-api-1.5.0.jar
APPROOT/Frameworks/ERJars.framework/Resources/Java/slf4j-log4j12-1.5.0.jar
APPROOT/Frameworks/ERPrototypes.framework/Resources/Java/ERPrototypes.jar
APPROOT/Frameworks/JavaWOExtensions.framework/Resources/Java/JavaWOExtensions.jar
APPROOT/Frameworks/WOOgnl.framework/Resources/Java/WOOgnl.jar
APPROOT/Frameworks/WOOgnl.framework/Resources/Java/WOOgnl53.jar
APPROOT/Frameworks/WOOgnl.framework/Resources/Java/WOOgnl54.jar
APPROOT/Frameworks/ERRest.framework/Resources/Java/ERRest.jar
APPROOT/Frameworks/ERRest.framework/Resources/Java/commons-beanutils-1.7.0.jar
APPROOT/Frameworks/ERRest.framework/Resources/Java/commons-collections-3.2.1.jar
APPROOT/Frameworks/ERRest.framework/Resources/Java/commons-lang-2.4.jar
APPROOT/Frameworks/ERRest.framework/Resources/Java/commons-logging-1.1.1.jar
APPROOT/Frameworks/ERRest.framework/Resources/Java/ezmorph-1.0.6.jar
APPROOT/Frameworks/ERRest.framework/Resources/Java/json-lib-2.3-jdk15.jar
APPROOT/Frameworks/H2PlugIn.framework/Resources/Java/H2PlugIn.jar
APPROOT/Frameworks/H2PlugIn.framework/Resources/Java/h2-1.3.151.jar
APPROOT/Frameworks/ERExtensions.framework/Resources/Java/ERExtensions.jar
APPROOT/Frameworks/PostgresqlPlugIn.framework/Resources/Java/PostgresqlPlugIn.jar
APPROOT/Frameworks/JavaEOAccess.framework/Resources/Java/javaeoaccess.jar
APPROOT/Frameworks/JavaEOAccess.framework/WebServerResources/Java/JavaEOAccess.jar
APPROOT/Frameworks/JavaEOControl.framework/Resources/Java/javaeocontrol.jar
APPROOT/Frameworks/JavaEOControl.framework/WebServerResources/Java/JavaEOControl.jar
APPROOT/Frameworks/JavaFoundation.framework/Resources/Java/javafoundation.jar
APPROOT/Frameworks/JavaFoundation.framework/WebServerResources/Java/JavaFoundation.jar
APPROOT/Frameworks/JavaJDBCAdaptor.framework/Resources/Java/javajdbcadaptor.jar
APPROOT/Frameworks/JavaJDBCAdaptor.framework/WebServerResources/Java/JavaJDBCAdaptor.jar
APPROOT/Frameworks/JavaWebObjects.framework/Resources/Java/javawebobjects.jar
APPROOT/Frameworks/JavaWebObjects.framework/WebServerResources/Java/JavaWebObjects.jar
APPROOT/Frameworks/JavaXML.framework/Resources/Java/javaxml.jar
APPROOT/Frameworks/JavaXML.framework/WebServerResources/Java/javaxml.jar

Thank you!


On Tue, May 6, 2014 at 8:41 AM, Pascal Robert < email@hidden > wrote:


It looks like a classpath problem. In your deployed application, can you send your UNIXClasspath.txt (located in Contents/UNIX/), or if you are deploying on OS X, the MacOSClassPath.txt file located in Contents/MacOS. And please confirm that the ERRest framework is located in the Frameworks directory of the deployed application.

----- Mail original -----
De: "Fred Opims" < email@hidden >
À: "Pascal Robert" < email@hidden >
Cc: "WebObjects Development" < email@hidden >
Envoyé: Mardi 6 Mai 2014 07:10:53
Objet: Re: ERXKeyFilter.setAnonymousUpdateEnabled(Z)V on remote server

Hi !
I made sure that my WO configuration are up to date and i follow the steps written on http://www.amazon.com/Learning-The-Wonders-introduction-applications/dp/3952423300 .
But i still have the same error message:
er.extensions.eof.ERXKeyFilter.setAnonymousUpdateEnabled(Z)V
The WoAdaptorInfo has given the following error message:
The requested application was not found on this server.

Do you have an idea?
Thank you!


On Mon, May 5, 2014 at 7:26 AM, Fred Opims < email@hidden > wrote:



Thank you Pascal!
Yes i'm bundling my frameworks inside the application bundle. But i'm only using the BSCServer-Application.tar and BSCServer-WebServerResources.tar files for the deployment.
Should i use rather application bundle ?
Thank you!
Best!



On Mon, May 5, 2014 at 1:00 AM, Pascal Robert < email@hidden > wrote:

<blockquote>
Bonjour Fred,

It looks like you have an older version of ERRest on the server. Do you bundle your frameworks inside the application bundle (the .woa) ? If not, you should do it.

> Hi!
> I’ve made a application with ERRest. I made some test my localhost server and it works great.
> I’ve tried to deploy on remote server. I could launch the application normally but when i try to post some data, i’ve got the following error:
>
> er.extensions.eof.ERXKeyFilter.setAnonymousUpdateEnabled(Z)V.
>
> I’ve made some research on that but could not find something helping me.
> I’ve remove this line aFilter.setAnonymousUpdateEnabled(true); on my controller just to what was happening and i got the following message:
>
> er.extensions.eof.ERXKeyFilter.setUnknownKeyIgnored(Z)V.
>
>
> When i use the following instruction,
> curl -X POST -d -v '{"title": “Toto","kind": "1","length": "18s","path”:"APath","thumbnailPath":" https://dl.dropboxusercontent.com/ ","detail": "Penalty ”}' http://opsoft.ca/cgi-bin/WebObjects/Server.woa/ra/highlight.json
> I’ve got a could not resolve for every key of my json
>
> [1/6]: "title": "Toto" --> <stdout>
> --_curl_--"title": "Toto"
> curl: (6) Could not resolve host: "title"
>
> [2/6]: "kind": "1" --> <stdout>
> --_curl_--"kind": "1"
> curl: (6) Could not resolve host: “kind"
> ...
>
>
> The same POST request works great in the local server but not in the remote one.
>
>
> Do you have an idea?
>
>
> Best!
>
> Fred
>
>
> _______________________________________________
> 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











</blockquote>





 _______________________________________________
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: 
 >ERXKeyFilter.setAnonymousUpdateEnabled(Z)V on remote server (From: Fred Opims <email@hidden>)
 >Re: ERXKeyFilter.setAnonymousUpdateEnabled(Z)V on remote server (From: Pascal Robert <email@hidden>)
 >Re: ERXKeyFilter.setAnonymousUpdateEnabled(Z)V on remote server (From: Fred Opims <email@hidden>)
 >Re: ERXKeyFilter.setAnonymousUpdateEnabled(Z)V on remote server (From: Fred Opims <email@hidden>)
 >Re: ERXKeyFilter.setAnonymousUpdateEnabled(Z)V on remote server (From: Pascal Robert <email@hidden>)
 >Re: ERXKeyFilter.setAnonymousUpdateEnabled(Z)V on remote server (From: Fred Opims <email@hidden>)
 >Re: ERXKeyFilter.setAnonymousUpdateEnabled(Z)V on remote server (From: Pascal Robert <email@hidden>)
 >Re: ERXKeyFilter.setAnonymousUpdateEnabled(Z)V on remote server (From: Fred Opims <email@hidden>)

  • Prev by Date: Re: PrimaryKey generation takes a lot of time
  • Next by Date: Re: AjaxGrid single row select UPDATE
  • Previous by thread: Re: ERXKeyFilter.setAnonymousUpdateEnabled(Z)V on remote server
  • Next by thread: Isn't ERXActiveImage obsolete?
  • Index(es):
    • Date
    • Thread