• 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: Error after adding entity and relationship to model
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Error after adding entity and relationship to model


  • Subject: Re: Error after adding entity and relationship to model
  • From: Ângelo Andrade Cirino <email@hidden>
  • Date: Mon, 24 Mar 2014 13:38:35 -0300

Hi Chuck,

Never mind, I deleted the entity and recreated it with a new name and was able to circumvent the error.

I did not model the relationship as flattened neither did anything other then the usual for a one to one relationship.

Angelo


2014-03-24 13:30 GMT-03:00 Chuck Hill <email@hidden>:
From the stack trace, it looks like you modelled this as a flattened relationship and did it wrong.  Can you post the plist section for this?


Chuck


On 2014-03-24, 9:03 AM, "Ângelo Andrade Cirino" wrote:

Hi,

After simply adding a new entity and a relationship to an existing entity I get the following error:

Mar 24 12:54:47 TesteModelos[52428] INFO  er.extensions.appserver.ERXApplication  - Wonder version: 6.1.2-SNAPSHOT

Mar 24 12:54:47 TesteModelos[52428] INFO  er.extensions.appserver.ERXApplication  - Welcome to TesteModelos !

Mar 24 12:54:47 TesteModelos[52428] WARN  er.extensions.eof.ERXModelGroup  - Clearing previous class descriptions

Mar 24 12:54:47 TesteModelos[52428] DEBUG NSLog  - Using JDBCPlugIn 'com.webobjects.jdbcadaptor.JDBCPlugIn' for JDBCAdaptor@218940734

Mar 24 12:54:47 TesteModelos[52428] DEBUG NSLog  - Using JDBCPlugIn 'MySQLPlugIn' for JDBCAdaptor@1450090084

Mar 24 12:54:47 TesteModelos[52428] ERROR er.extensions.appserver.ERXApplication  - TesteModelos failed to start.

ClassCastException: com.webobjects.eoaccess.EORelationship cannot be cast to com.webobjects.eoaccess._EOExpressionArray

  at com.webobjects.eoaccess.EOAttribute._normalizeDefinitionPath(EOAttribute.java:2935)

  at com.webobjects.eoaccess.EOAttribute._normalizeDefinitionPath(EOAttribute.java:2967)

  at com.webobjects.eoaccess.EOAttribute._setDefinitionWithoutFlushingCaches(EOAttribute.java:2772)

  at com.webobjects.eoaccess.EOAttribute.awakeWithPropertyList(EOAttribute.java:1217)

  at com.webobjects.eoaccess.EOEntity.attributes(EOEntity.java:830)

  at er.extensions.eof.ERXModelGroup.modifyModelsFromProperties(ERXModelGroup.java:1146)

  at er.extensions.eof.ERXModelGroup.loadModelsFromLoadedBundles(ERXModelGroup.java:258)

  at er.extensions.ERXExtensions.defaultModelGroup(ERXExtensions.java:148)

     ... skipped 5 stack elements

  at com.webobjects.foundation._NSDelegate._perform(_NSDelegate.java:223)

  at com.webobjects.foundation._NSDelegate.perform(_NSDelegate.java:155)

  at com.webobjects.eoaccess.EOModelGroup.defaultGroup(EOModelGroup.java:328)

  at er.extensions.migration.ERXMigrator.migrateToLatest(ERXMigrator.java:169)

  at er.extensions.appserver.ERXApplication.finishInitialization(ERXApplication.java:1300)

  ... skipped 13 stack elements

Mar 24 12:54:47 TesteModelos[52428] WARN  NSLog  - A fatal exception occurred: com.webobjects.eoaccess.EORelationship cannot be cast to com.webobjects.eoaccess._EOExpressionArray

[2014-3-24 12:54:47 BRT] <main> java.lang.ClassCastException: com.webobjects.eoaccess.EORelationship cannot be cast to com.webobjects.eoaccess._EOExpressionArray

at com.webobjects.eoaccess.EOAttribute._normalizeDefinitionPath(EOAttribute.java:2935)

at com.webobjects.eoaccess.EOAttribute._normalizeDefinitionPath(EOAttribute.java:2967)

at com.webobjects.eoaccess.EOAttribute._setDefinitionWithoutFlushingCaches(EOAttribute.java:2772)

at com.webobjects.eoaccess.EOAttribute.awakeWithPropertyList(EOAttribute.java:1217)

at com.webobjects.eoaccess.EOEntity.attributes(EOEntity.java:830)

at er.extensions.eof.ERXModelGroup.modifyModelsFromProperties(ERXModelGroup.java:1146)

at er.extensions.eof.ERXModelGroup.loadModelsFromLoadedBundles(ERXModelGroup.java:258)

at er.extensions.ERXExtensions.defaultModelGroup(ERXExtensions.java:148)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:597)

at com.webobjects.foundation.NSSelector._safeInvokeMethod(NSSelector.java:122)

at com.webobjects.foundation._NSDelegate._perform(_NSDelegate.java:223)

at com.webobjects.foundation._NSDelegate.perform(_NSDelegate.java:155)

at com.webobjects.eoaccess.EOModelGroup.defaultGroup(EOModelGroup.java:328)

at er.extensions.migration.ERXMigrator.migrateToLatest(ERXMigrator.java:169)

at er.extensions.appserver.ERXApplication.finishInitialization(ERXApplication.java:1300)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:597)

at com.webobjects.foundation.NSSelector._safeInvokeMethod(NSSelector.java:122)

at com.webobjects.foundation.NSNotificationCenter$_Entry.invokeMethod(NSNotificationCenter.java:588)

at com.webobjects.foundation.NSNotificationCenter.postNotification(NSNotificationCenter.java:532)

at com.webobjects.foundation.NSNotificationCenter.postNotification(NSNotificationCenter.java:546)

at com.webobjects.appserver.WOApplication.run(WOApplication.java:1229)

at er.extensions.appserver.ERXApplication.run(ERXApplication.java:1417)

at com.webobjects.appserver.WOApplication.main(WOApplication.java:548)

at er.extensions.appserver.ERXApplication.main(ERXApplication.java:861)

at TesteModelos.app.Application.main(Application.java:15)


Since the new entity is a very simple one (a list of options for another entity) I chose to implement it as a ERXGenericRecord. If I remove the relationship the application will start.

Any hint?

Angelo



--
Ângelo Andrade Cirino
email@hidden
31-3494-8642
31-9303-0695
MSN email@hidden
Skype aacirino
 _______________________________________________
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: Error after adding entity and relationship to model
      • From: David Avendasora <email@hidden>
References: 
 >Error after adding entity and relationship to model (From: Ângelo Andrade Cirino <email@hidden>)
 >Re: Error after adding entity and relationship to model (From: Chuck Hill <email@hidden>)

  • Prev by Date: Re: Error after adding entity and relationship to model
  • Next by Date: Re: Error after adding entity and relationship to model
  • Previous by thread: Re: Error after adding entity and relationship to model
  • Next by thread: Re: Error after adding entity and relationship to model
  • Index(es):
    • Date
    • Thread