Re: Entity Modeler hates me.

From: Q (qdola..mail.com)
Date: Tue Feb 27 2007 - 18:55:59 EST

  • Next message: Chuck Hill: "Re: Entity Modeler hates me."

    Scale can be negative.

    http://developer.apple.com/documentation/WebObjects/UsingEOModeler/
    4WorkingWithAttributes/chapter_4_section_2.html

    On 28/02/2007, at 9:38 AM, Chuck Hill wrote:

    > Shouldn't Entity Modeler be _preventing_ this? Scale, precision,
    > string length all should be zero or positive integers.
    >
    >
    > On Feb 27, 2007, at 3:23 PM, Mike Schrag wrote:
    >
    >> What the heck does a negative scale even mean, btw?
    >>
    >> On Feb 27, 2007, at 6:02 PM, Q wrote:
    >>
    >>>
    >>> Found it. Entity Modeler is not quoting "scale" values that are
    >>> negative. Manually editing the model to quote these values fixed it.
    >>>
    >>> On 28/02/2007, at 1:23 AM, Mike Schrag wrote:
    >>>
    >>>> Looks like a bug. If you can figure out what is not being
    >>>> quoted properly, that would be very helpful.
    >>>>
    >>>> On Feb 27, 2007, at 9:46 AM, Q wrote:
    >>>>
    >>>>> I have a model that if I open it and save it in EOModeler it
    >>>>> works fine, however if I open it in Entity Modeler and save it
    >>>>> my app throws the following error on startup (reopening in
    >>>>> EOModeler and resaving again fixes whatever is wrong with it).
    >>>>> Is this a bug or have I not done something that EOModeler does
    >>>>> for me automagically?:
    >>>>>
    >>>>> Also, which plist file is it most likely referring to?
    >>>>>
    >>>>> [2007-02-28 00:27:07 EST] <main>
    >>>>> java.lang.IllegalArgumentException: Property list parsing
    >>>>> failed while attempting to read unquoted string. No allowable
    >>>>> characters were found. At line number: 20, column: 19.
    >>>>> at com.webobjects.foundation.NSPropertyListSerialization
    >>>>> $_Utilities._readUnquotedStringIntoStringBuffer
    >>>>> (NSPropertyListSerialization.java:606)
    >>>>> at com.webobjects.foundation.NSPropertyListSerialization
    >>>>> $_Utilities._readObjectIntoObjectReference
    >>>>> (NSPropertyListSerialization.java:588)
    >>>>> at com.webobjects.foundation.NSPropertyListSerialization
    >>>>> $_Utilities._readDictionaryContentsIntoDictionary
    >>>>> (NSPropertyListSerialization.java:836)
    >>>>> at com.webobjects.foundation.NSPropertyListSerialization
    >>>>> $_Utilities._readObjectIntoObjectReference
    >>>>> (NSPropertyListSerialization.java:584)
    >>>>> at com.webobjects.foundation.NSPropertyListSerialization
    >>>>> $_Utilities._readArrayContentsIntoArray
    >>>>> (NSPropertyListSerialization.java:786)
    >>>>> at com.webobjects.foundation.NSPropertyListSerialization
    >>>>> $_Utilities._readObjectIntoObjectReference
    >>>>> (NSPropertyListSerialization.java:580)
    >>>>> at com.webobjects.foundation.NSPropertyListSerialization
    >>>>> $_Utilities._readDictionaryContentsIntoDictionary
    >>>>> (NSPropertyListSerialization.java:836)
    >>>>> at com.webobjects.foundation.NSPropertyListSerialization
    >>>>> $_Utilities._readObjectIntoObjectReference
    >>>>> (NSPropertyListSerialization.java:584)
    >>>>> at com.webobjects.foundation.NSPropertyListSerialization
    >>>>> $_Utilities._propertyListFromString
    >>>>> (NSPropertyListSerialization.java:397)
    >>>>> at com.webobjects.foundation.NSPropertyListSerialization
    >>>>> $_Utilities.propertyListFromString
    >>>>> (NSPropertyListSerialization.java:375)
    >>>>> at
    >>>>> com.webobjects.foundation.NSPropertyListSerialization.propertyList
    >>>>> FromString(NSPropertyListSerialization.java:80)
    >>>>> at
    >>>>> com.webobjects.foundation.NSPropertyListSerialization.propertyList
    >>>>> WithPathURL(NSPropertyListSerialization.java:93)
    >>>>> at com.webobjects.eoaccess.EOModel.entityNamed(EOModel.java:307)
    >>>>> at com.webobjects.eoaccess.EOModel.entities(EOModel.java:356)
    >>>>> at er.extensions.ERXModelGroup.flattenPrototypes
    >>>>> (ERXModelGroup.java:898)
    >>>>> at er.extensions.ERXModelGroup.fixPrototypesForModel
    >>>>> (ERXModelGroup.java:810)
    >>>>> at er.extensions.ERXModelGroup.resetConnectionDictionaryInModel
    >>>>> (ERXModelGroup.java:730)
    >>>>> at er.extensions.ERXModelGroup.addModel(ERXModelGroup.java:153)
    >>>>> at er.extensions.ERXModelGroup.addModelWithPathURL
    >>>>> (ERXModelGroup.java:307)
    >>>>> at er.extensions.ERXModelGroup.loadModelsFromLoadedBundles
    >>>>> (ERXModelGroup.java:105)
    >>>>> at er.extensions.ERXExtensions.defaultModelGroup
    >>>>> (ERXExtensions.java:82)
    >>>>> 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:585)
    >>>>> at com.webobjects.foundation.NSSelector._safeInvokeMethod
    >>>>> (NSSelector.java:120)
    >>>>> at com.webobjects.foundation._NSDelegate._perform
    >>>>> (_NSDelegate.java:225)
    >>>>> at com.webobjects.foundation._NSDelegate.perform
    >>>>> (_NSDelegate.java:158)
    >>>>> at com.webobjects.eoaccess.EOModelGroup.defaultGroup
    >>>>> (EOModelGroup.java:365)
    >>>>> at er.extensions.ERXEntityClassDescription
    >>>>> $Factory.applicationDidFinishLaunching
    >>>>> (ERXEntityClassDescription.java:276)
    >>>>> 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:585)
    >>>>> at com.webobjects.foundation.NSSelector._safeInvokeMethod
    >>>>> (NSSelector.java:120)
    >>>>> at com.webobjects.foundation.NSNotificationCenter
    >>>>> $_Entry.invokeMethod(NSNotificationCenter.java:601)
    >>>>> at
    >>>>> com.webobjects.foundation.NSNotificationCenter.postNotification
    >>>>> (NSNotificationCenter.java:545)
    >>>>> at
    >>>>> com.webobjects.foundation.NSNotificationCenter.postNotification
    >>>>> (NSNotificationCenter.java:559)
    >>>>> at com.webobjects.appserver.WOApplication.run
    >>>>> (WOApplication.java:878)
    >>>>> at er.extensions.ERXApplication.run(ERXApplication.java:622)
    >>>>> at com.webobjects.appserver.WOApplication.main
    >>>>> (WOApplication.java:324)
    >>>>> at er.extensions.ERXApplication.main(ERXApplication.java:389)
    >>>>> at Application.main(Application.java:16)
    >>>>>
    >>>>>
    >>>>>
    >>>>> --
    >>>>> Seeya...Q
    >>>>>
    >>>>> Quinton Dolan - qdola..mail.com
    >>>>> Gold Coast, QLD, Australia
    >>>>> Ph: +61 419 729 806
    >>>>>
    >>>>>
    >>>>
    >>>
    >>>
    >>>
    >>> --
    >>> Seeya...Q
    >>>
    >>> Quinton Dolan - qdola..mail.com
    >>> Gold Coast, QLD, Australia
    >>> Ph: +61 419 729 806
    >>>
    >>>
    >>
    >
    > --
    >
    > Practical WebObjects - for developers who want to increase their
    > overall knowledge of WebObjects or who are trying to solve specific
    > problems.
    > http://www.global-village.net/products/practical_webobjects
    >
    >
    >
    >
    >

    -- 
    Seeya...Q
    

    Quinton Dolan - qdola..mail.com Gold Coast, QLD, Australia Ph: +61 419 729 806



    This archive was generated by hypermail 2.0.0 : Tue Feb 27 2007 - 18:56:25 EST