• 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: Prototypes and Inheritance
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Prototypes and Inheritance


  • Subject: Re: Prototypes and Inheritance
  • From: Dev WO <email@hidden>
  • Date: Fri, 26 Aug 2005 02:15:31 +0200

The application starts with a loggin panel, I enter an email and a password which are in the database (from when the application was working) and got:
----
[2005-08-26 01:02:55 CEST] <WorkerThread1> java.lang.NullPointerException
at com.webobjects.eoaccess.EOAttribute.adaptorValueByConvertingAttribu teValue(EOAttribute.java:2020)



I'm pretty sure I saw that on one of these list just last week. I'm also pretty certain that something is missing from the model. Check that the column names, value types, value class, entity name, table name etc. are all still there. Adding prototypes after an entity has been created will erase some of the information.


I have try to set a fetch of all the user without arguments and print it to the log and I got a class cast exception...


Sounds like some model is not getting loaded at run time.
I really feel I did a mistake in my prototypes frameworks...
I'll try to recap what I've done so maybe you'll see where I did a mistake:
-I created an eomodel named EOPrototypes with no connection (none selected between "jdbc, odbc, none")
-I created an entity named EOJDBCPrototypes
-I created a couple attributes in this entity


I created a framework only for this prototypes and named it EOMySQLPrototypes.framework
I built this framework and add the built to /Library/Frameworks


I added the frameworks to my application Framework project (let's name it application.framework)
I edited the application eomodel and selected the different prototype for each attributes, made sure everything has an external name.


Then built the application.framework and put it in /Library/Frameworks/

Then opened my application project, and ran it
The application project has the application.framework and JavaJDBCAdaptor.framework.
Should it have the EOMySQLPrototypes.framework too?




That make me think about something:
When I setup the prototypes framework, do I have to tell EOModeler that it's JDBC?? Because I selected "nothing" as of now.



No, that should be fine. It looks for EOJDBCPrototypes to find the prototypes for JDBC.
Which framework is calling this? JavaJDBCFramework?

I did something wrong for sure, but cannot find it...I'll try without prototypes for the login parameter to see if it effectively comes from the prototypes framework...


--
Practical WebObjects - a book for intermediate WebObjects developers who want to increase their overall knowledge of WebObjects, or those who are trying to solve specific application development problems.
http://www.global-village.net/products/practical_webobjects





_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40anazys.com


This email sent to email@hidden



_______________________________________________ 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: Prototypes and Inheritance
      • From: Chuck Hill <email@hidden>
References: 
 >Prototypes and Inheritance (From: Dev WO <email@hidden>)
 >Re: Prototypes and Inheritance (From: Chuck Hill <email@hidden>)
 >Re: Prototypes and Inheritance (From: Dev WO <email@hidden>)
 >Re: Prototypes and Inheritance (From: Chuck Hill <email@hidden>)
 >Re: Prototypes and Inheritance (From: Dev WO <email@hidden>)
 >Re: Prototypes and Inheritance (From: Chuck Hill <email@hidden>)

  • Prev by Date: Re: Prototypes and Inheritance
  • Next by Date: Re: Prototypes and Inheritance
  • Previous by thread: Re: Prototypes and Inheritance
  • Next by thread: Re: Prototypes and Inheritance
  • Index(es):
    • Date
    • Thread