Re: WOLips SQL problem/question

From: Julius Spencer (jspence..uliusspencer.co.nz)
Date: Tue Jun 26 2007 - 22:33:49 EDT

  • Next message: Kieran Kelleher: "Re: ERExtensions code-assist javadoc"

    Hi.

    Thanks Chuck; it has been resolved.

    The "userInfo" was deleted which had some old "_EntityModeler"
    entries which seemed to be a problem in the "index.eomodeld" file and
    similar stuff in the connection dictionary.

    (I didn't do it, but it worked and your recommendations helped)

    Heh, I will update... soonish. Am I now running the "classic"
    version..? <G>

    On 27/06/2007, at 2:06 PM, Chuck Hill wrote:

    > Hi Julius,
    >
    >
    > On Jun 26, 2007, at 6:23 PM, Julius Spencer wrote:
    >
    >> Hi,
    >>
    >> I'm have trouble getting SQL out of the WOLips part of Eclipse.
    >> I'm running:
    >>
    >> Eclipse SDK
    >> Version: 3.2.2
    >>
    >> and
    >>
    >> WOLips 2.0.0.3966
    >>
    >> (Maybe I need an update?)
    >
    > Well, you _are_ a couple hundred versions behind... :-P
    > I'd update anyway.
    >
    >
    >> I have created an Entity with attributes and a relationship and as
    >> far as I can tell it is all legit. When I have the "Create Tables"
    >> checkbox checked, I get the following error message:
    >>
    >> java.lang.ClassCastException: java.lang.Integer
    >> at
    >> com.webobjects.jdbcadaptor.JDBCExpression.columnTypeStringForAttribut
    >> e(JDBCExpression.java:293)
    >> at
    >> com.webobjects.jdbcadaptor.PostgresqlExpression.columnTypeStringForAt
    >> tribute(PostgresqlExpression.java:345)
    >> at
    >> com.webobjects.eoaccess.EOSQLExpression.addCreateClauseForAttribute
    >> (EOSQLExpression.java:2498)
    >> at
    >> com.webobjects.eoaccess.EOSynchronizationFactory.createTableStatement
    >> sForEntityGroup(EOSynchronizationFactory.java:318)
    >> at
    >> com.webobjects.eoaccess.EOSynchronizationFactory.createTableStatement
    >> sForEntityGroups(EOSynchronizationFactory.java:487)
    >> at
    >> com.webobjects.eoaccess.EOSynchronizationFactory.schemaCreationStatem
    >> entsForEntities(EOSynchronizationFactory.java:951)
    >> at
    >> com.webobjects.eoaccess.EOSynchronizationFactory.schemaCreationScript
    >> ForEntities(EOSynchronizationFactory.java:747)
    >> at
    >> org.objectstyle.wolips.eomodeler.sql.EOFSQLGenerator.getSchemaCreatio
    >> nScript(EOFSQLGenerator.java:389)
    >> 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
    >> org.objectstyle.wolips.eomodeler.actions.GenerateSQLDialog.generateSq
    >> l(Unknown Source)
    >> at org.objectstyle.wolips.eomodeler.actions.GenerateSQLDialog
    >> $1.run(Unknown Source)
    >> at java.lang.Thread.run(Thread.java:613)
    >>
    >>
    >> It is the first time I've used this, but it seems to happen with
    >> other EOs which were made in X-Code too.
    >>
    >> Has anyone else come across this or know what I've done wrong?
    >
    > Are you using prototypes? Also check the plist files for the
    > entities. I have seen some that has some rather odd value types
    > (NSdoubleNumber I think was one). Things like that give it fits.
    >
    > Chuck
    >
    >
    > --
    >
    > 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
    >
    >
    >
    >
    >



    This archive was generated by hypermail 2.0.0 : Tue Jun 26 2007 - 22:34:32 EDT