• 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
ERXPartials and ERRest
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ERXPartials and ERRest


  • Subject: ERXPartials and ERRest
  • From: Pascal Robert <email@hidden>
  • Date: Tue, 03 Jun 2014 11:16:34 -0500 (CDT)
  • Thread-topic: ERXPartials and ERRest

Hi guys,

Anyone have tried to mix ERXPartials with ERRest? I have a "Device" base entity with a "Computer" child that extends from Device. If I simply register Computer in the routes, it registers /devices since the entity name of Computer is "Device". If I have register the route like this:

   restHandler.addDefaultRoutes("Computer", ComputerController.class);

I'm getting an exception (osVersion is an attribute in Computer):

juin 03 12:13:44 LeGestionnaire[65159] ERROR er.rest.routes.ERXRouteController  - Request failed: /cgi-bin/WebObjects/LeGestionnaire.woa/ra/computers.json
NullPointerException
  at er.extensions.partials.ERXPartial.takeStoredValueForKey(ERXPartial.java:155)
  at com.druide.legestionnaire.modele._Computer.setOsVersion(_Computer.java:75)
     ... skipped 10 stack elements
  at er.extensions.eof.ERXKey.takeValueInObject(ERXKey.java:2547)
  at er.rest.ERXRestRequestNode.updateObjectWithFilter(ERXRestRequestNode.java:1403)
  at er.rest.ERXRestRequestNode.createObjectWithFilter(ERXRestRequestNode.java:859)
  at er.rest.routes.ERXRouteController.create(ERXRouteController.java:668)
  at er.rest.routes.ERXRouteController.create(ERXRouteController.java:636)
  at er.rest.routes.ERXRouteController.create(ERXRouteController.java:621)
  at com.druide.legestionnaire.rest.ComputerController.createAction(ComputerController.java:42)
     ... skipped 4 stack elements
  at er.rest.routes.ERXRouteController.performActionWithArguments(ERXRouteController.java:1575)
  at er.rest.routes.ERXRouteController.performRouteActionNamed(ERXRouteController.java:1526)
  at er.rest.routes.ERXRouteController.performActionNamed(ERXRouteController.java:1401)
  at er.rest.routes.ERXRouteController.performActionNamed(ERXRouteController.java:1344)
  ... skipped 8 stack elements


Computer is using Device as the partial entity in the model, and er.extensions.partials.enabled=true is part of the properties.
 _______________________________________________
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


  • Prev by Date: apache adaptor settings
  • Next by Date: EO advice
  • Previous by thread: apache adaptor settings
  • Next by thread: EO advice
  • Index(es):
    • Date
    • Thread