• 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
Error in a ModerD2W application
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Error in a ModerD2W application


  • Subject: Error in a ModerD2W application
  • From: Ângelo Andrade Cirino <email@hidden>
  • Date: Fri, 07 Sep 2012 02:53:02 -0300

Hi,

I am facing this error when I try to edit or create an entity:

UnknownKeyException: [<er.modern.look.pages.ERMODInspectPage name: er.modern.look.pages.ERMODInspectPage subcomponents: null > takeValueForKey()]: attempt to assign value to unknown key: 'masterObjectAndRelationshipKey'.
This WOComponent does not have an instance variable of the name masterObjectAndRelationshipKey or _masterObjectAndRelationshipKey, nor a method of the name setMasterObjectAndRelationshipKey or _setMasterObjectAndRelationshipKey
  at com.webobjects.appserver.WOComponent.handleTakeValueForUnboundKey(WOComponent.java:1781)
     ... skipped 4 stack elements
  at com.webobjects.directtoweb.D2WPage.setExtraBindings(D2WPage.java:130)
     ... skipped 7 stack elements
  at com.webobjects.appserver.WOComponent.pullValuesFromParent(WOComponent.java:525)
     ... skipped 86 stack elements
  at er.extensions.appserver.ERXComponentRequestHandler._dispatchWithPreparedPage(ERXComponentRequestHandler.java:190)
  at er.extensions.appserver.ERXComponentRequestHandler._dispatchWithPreparedSession(ERXComponentRequestHandler.java:235)
  at er.extensions.appserver.ERXComponentRequestHandler._dispatchWithPreparedApplication(ERXComponentRequestHandler.java:268)
  at er.extensions.appserver.ERXComponentRequestHandler._handleRequest(ERXComponentRequestHandler.java:302)
  at er.extensions.appserver.ERXComponentRequestHandler.handleRequest(ERXComponentRequestHandler.java:377)
     ... skipped 3 stack elements
  at com.visionar.administraAgencia.app.Application.dispatchRequest(Application.java:42)
  ... skipped 3 stack elements
_ignoredPackages:: ("com.webobjects", "java.applet", "java.awt", "java.awt.datatransfer", "java.awt.event", "java.awt.image", "java.beans", "java.io", "java.lang", "java.lang.reflect", "java.math", "java.net", "java.rmi", "java.rmi.dgc", "java.rmi.registry", "java.rmi.server", "java.security", "java.security.acl", "java.security.interfaces", "java.sql", "java.text", "java.util", "java.util.zip")

The entity in question has three to-one relationships and the only that is not set is a to one to an ERDatabaseAttachment. Should this be the reason for the exception? It is interesting to notice that inspecting the entity doesn't raise the exception and that I was able to create a new entity without raising the exception before I entered some data directly in MySQL. It is also noticeable that I faced this exception when using one but not both of this rules simultaneously:

100 : pageConfiguration = 'CreateAgency' => displayNameForPageConfiguration = "Create New Agency" [com.webobjects.directtoweb.Assignment]
100 : pageConfiguration = 'CreateAgency' => navigationState = "Agency.CreateAgency" [com.webobjects.directtoweb.Assignment]

Angelo
 _______________________________________________
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: Re: Exception with pageForConfigurationNamed
  • Next by Date: Re: Problem with nextPageDelegate
  • Previous by thread: Re: Exception with pageForConfigurationNamed
  • Next by thread: Migrations: A result was returned when none was expected.
  • Index(es):
    • Date
    • Thread