Re: n00b EO questions :-)

2008-05-22 Thread Guido Neitzer

On 22.05.2008, at 23:21, Kieran Kelleher wrote:

In any case, pick one of the ones that is popular with WO developers  
so that you can get help when you need it. Use prototypes from the  
start and it will be easy to change database platforms later if you  
wish.


This can be extended to:

If you consider using things like ERTaggable or ERAttachment use  
ERPrototypes and Wonder from the beginning. You don't have to use ANY  
of the features in Wonder but the prototypes (or copy them from the  
erprototypes model). It saves you a lot of grief if you want to use  
e.g. ERAttachment.


Also (as long as WO doesn't have an autolocking editing context) use  
either ERXEC (Wonder) or MultiECLockManager from the very beginning.  
It saves you nights of hacking while trying to figure out why your  
application deadlocks ...


cug

--
http://www.event-s.net

___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: n00b EO questions :-)

2008-05-22 Thread Kieran Kelleher


On May 22, 2008, at 10:50 PM, Rams wrote:


Hi Everyone,

Please pardon me if I am asking extremely stupid questions, but I'm  
starting to do some work with my database and I have a few questions  
about EnterpriseObjects and database things in general...


The first question is about creating unique data... I have a user  
object and I need unique usernames for obvious reasons.  Now, I know  
it is unlikely, but let's say that two visitors attempt to create a  
user at the same time and they happen to pick the same username.


EOQualifier qualifier = User.SCREEN_NAME.eq(username);
if(User.fetchUser(ec, qualifier) == null) {
User.createUser(ec, email, password, username);
ec.saveChanges();
}

If these fired at the same time, is it possible that two users with  
the same username could be created?  If so, does anyone have any  
pointers to prevent duplicate data?



The second question regards security/sql injection.  Is there any  
sort of user input I should be on the lookout for in my  
validateUsername method?  Like username "admin'--"  or some such?  I  
assume that as long as I stick to EOQualifiers and don't touch the  
SQL myself that all the input will be properly escaped...



Finally, third question... I'm using MySQL.  I will ensure InnoDB is  
used by default as mentioned here:


http://homepage.mac.com/kelleherk/iblog/C711669388/E20070719095201/index.html

Is there anything else I need to do in order to produce ACID  
transactions with WO?  It doesn't hurt to be buzzword compliant you  
know ;-)


Use InnoDB to esnure transactional commit/rollback.

In MySQL 5.0+, add this param to the config file:

innodb_rollback_on_timeout

IMHO, MySQL is a good database server. Have a look at the silent  
changes it makes . AFAIK all these conditions should be handled by  
your validation methods before they ever hit the database anyway, so  
should not be a problem. YMMV.


http://dev.mysql.com/doc/refman/5.0/en/data-type-defaults.html

With regards "silent" truncation of varchars where they exceed the  
length of the field, this can be configured to throw an error .  
again by configuration. I would think your EO validation methods would  
check for column length anyway  IIRC, EOF will error by default if  
it exceeds the field length specified in the EOModel.


http://dev.mysql.com/doc/refman/5.0/en/char.html
http://dev.mysql.com/doc/refman/5.0/en/server-sql-mode.html

In general MySQL "out of the box" configuration is absolutely useless.  
To use MySQL, you *MUST* configure your installation this is done  
generally with the /etc/my.cnf file which specifies launch arguments  
for mysqld. Read the fine manual or Jeremy Zawodonwy's book "Advanced  
MySQL".


IMHO, MySQL is very versatile and offers a number of different  
"engines" for different applications and offers many configuration  
options to tailor the functionality as you wish. This is just my  
opinion, so feel free to use whatever database you like. In any case,  
pick one of the ones that is popular with WO developers so that you  
can get help when you need it. Use prototypes from the start and it  
will be easy to change database platforms later if you wish.







Thanks everybody!  I really appreciate the help everyone here  
provides.

___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/kieran_lists%40mac.com

This email sent to [EMAIL PROTECTED]


 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Re: n00b EO questions :-)

2008-05-22 Thread Chuck Hill


On May 22, 2008, at 9:25 PM, Q wrote:


Is there anything else I need to do in order to produce ACID  
transactions with WO?  It doesn't hurt to be buzzword compliant you  
know ;-)


I am not sure about 5.1, but last time I tested MySQL 5.0 with it's  
default configuration (but using InnoDB), it was in my opinion NOT  
ACID compliant. InnoDB might be ACID compliant, but MySQL itself  
isn't.


One of the edicts of ACID is data consistency throughout the course  
of a transaction. If the transactions leaves the database in an  
illegal start then the transaction should be aborted and rolled  
back. MySQL doesn't actually do this, instead of aborting the  
transaction it will quietly alter the invalid data that it was  
provided, eg. shorten a string, alter a date, truncate an integer,  
etc so that it no longer violates the integrity constraint and then  
commits it anyway.


Ew!  Now I know why I never used MySQLToy.


This results in a situation where the data that you thought you  
successfully inserted into the database is different from what you  
will get back later, which in my opinion should NEVER happen, EVER.   
EOF will shield you from most of this if your model and validation  
is decent, but it's a risk to your data that you will always need to  
keep at the back of your mind.


Using an enterprise level database such as Frontbase or PostgreSQL  
is also worth considering.



Amen.

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





___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: n00b EO questions :-)

2008-05-22 Thread Q


On 23/05/2008, at 12:50 PM, Rams wrote:


Hi Everyone,

Please pardon me if I am asking extremely stupid questions, but I'm  
starting to do some work with my database and I have a few questions  
about EnterpriseObjects and database things in general...


The first question is about creating unique data... I have a user  
object and I need unique usernames for obvious reasons.  Now, I know  
it is unlikely, but let's say that two visitors attempt to create a  
user at the same time and they happen to pick the same username.


EOQualifier qualifier = User.SCREEN_NAME.eq(username);
if(User.fetchUser(ec, qualifier) == null) {
User.createUser(ec, email, password, username);
ec.saveChanges();
}

If these fired at the same time, is it possible that two users with  
the same username could be created?  If so, does anyone have any  
pointers to prevent duplicate data?


You need to create a uniqueness constraint on this field in your  
database. The database is the only place that can guarantee this  
uniqueness requirement is honoured.




The second question regards security/sql injection.  Is there any  
sort of user input I should be on the lookout for in my  
validateUsername method?  Like username "admin'--"  or some such?  I  
assume that as long as I stick to EOQualifiers and don't touch the  
SQL myself that all the input will be properly escaped...




As long as you don't send anything through EOF as raw SQL you should  
be safe from SQL injection attacks.




Finally, third question... I'm using MySQL.  I will ensure InnoDB is  
used by default as mentioned here:


http://homepage.mac.com/kelleherk/iblog/C711669388/E20070719095201/index.html

Is there anything else I need to do in order to produce ACID  
transactions with WO?  It doesn't hurt to be buzzword compliant you  
know ;-)


I am not sure about 5.1, but last time I tested MySQL 5.0 with it's  
default configuration (but using InnoDB), it was in my opinion NOT  
ACID compliant. InnoDB might be ACID compliant, but MySQL itself isn't.


One of the edicts of ACID is data consistency throughout the course of  
a transaction. If the transactions leaves the database in an illegal  
start then the transaction should be aborted and rolled back. MySQL  
doesn't actually do this, instead of aborting the transaction it will  
quietly alter the invalid data that it was provided, eg. shorten a  
string, alter a date, truncate an integer, etc so that it no longer  
violates the integrity constraint and then commits it anyway.


This results in a situation where the data that you thought you  
successfully inserted into the database is different from what you  
will get back later, which in my opinion should NEVER happen, EVER.   
EOF will shield you from most of this if your model and validation is  
decent, but it's a risk to your data that you will always need to keep  
at the back of your mind.


Using an enterprise level database such as Frontbase or PostgreSQL is  
also worth considering.


--
Seeya...Q

Quinton Dolan - [EMAIL PROTECTED]
Gold Coast, QLD, Australia (GMT+10)
Ph: +61 419 729 806



 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Re: WOLips : Display Group Component ?

2008-05-22 Thread Q


On 23/05/2008, at 1:16 PM, Owen McKerrow wrote:


Thanks David and Louis,

Yeah I found this before, it was more the auto-generation of the  
pages html and wod file with bindings hooked up to already use the  
display-

group that I was after. Its OK will do by hand.


I have though about adding this to WOLips on a couple of occasions,  
but never got around to it as I ended up replacing virtually  
everything but the woo file from those templates anyway.


--
Seeya...Q

Quinton Dolan - [EMAIL PROTECTED]
Gold Coast, QLD, Australia (GMT+10)
Ph: +61 419 729 806



___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: WOLips : Display Group Component ?

2008-05-22 Thread Owen McKerrow

Thanks David and Louis,

Yeah I found this before, it was more the auto-generation of the  
pages html and wod file with bindings hooked up to already use the  
display-group that I was after. Its OK will do by hand.


Owen McKerrow
WebMaster, emlab
Ph : +61 02 4221 5517
http://emlab.uow.edu.au

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
- - - - - - - - -


People who prefer typing to pointing then seem to prefer acronyms to  
save typing  :-)

-Denis Stanton, On people using Command Line Interfaces


On 23/05/2008, at 12:11 PM, David Holt wrote:


No "wizard" but this is what we've got:

http://wiki.objectstyle.org/confluence/display/WO/Web+Applications- 
Development-WODisplayGroup


David


On 22-May-08, at 6:51 PM, Owen McKerrow wrote:


Hi All,

Is there an equivalent "wizard" to xCodes Display Group Component  
under eclipse/wolips ?


Owen McKerrow
WebMaster, emlab
Ph : +61 02 4221 5517
http://emlab.uow.edu.au

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
- - - - - - - - - - -
 'The test of a first-rate intelligence is the ability to hold two  
opposed ideas in the mind at the same time and still be able to  
function.'

-F.Scott Fitzgerald,


___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/ 
programmingosx%40mac.com


This email sent to [EMAIL PROTECTED]




___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: n00b EO questions :-)

2008-05-22 Thread Chuck Hill


On May 22, 2008, at 7:50 PM, Rams wrote:


Hi Everyone,

Please pardon me if I am asking extremely stupid questions, but I'm  
starting to do some work with my database and I have a few questions  
about EnterpriseObjects and database things in general...


The first question is about creating unique data... I have a user  
object and I need unique usernames for obvious reasons.  Now, I know  
it is unlikely, but let's say that two visitors attempt to create a  
user at the same time and they happen to pick the same username.


EOQualifier qualifier = User.SCREEN_NAME.eq(username);
if(User.fetchUser(ec, qualifier) == null) {
User.createUser(ec, email, password, username);
ec.saveChanges();
}

If these fired at the same time, is it possible that two users with  
the same username could be created?  If so, does anyone have any  
pointers to prevent duplicate data?


Create a unique constraint in the database.  WO 5.4 has support for  
indexes in the Model (props to Pierre for that!), but I have not had a  
chance to take them for a spin.




The second question regards security/sql injection.  Is there any  
sort of user input I should be on the lookout for in my  
validateUsername method?  Like username "admin'--"  or some such?  I  
assume that as long as I stick to EOQualifiers and don't touch the  
SQL myself that all the input will be properly escaped...


I can't think of how to do SQL Injection attacks.


Finally, third question... I'm using MySQL.  I will ensure InnoDB is  
used by default as mentioned here:


http://homepage.mac.com/kelleherk/iblog/C711669388/E20070719095201/index.html

Is there anything else I need to do in order to produce ACID  
transactions with WO?  It doesn't hurt to be buzzword compliant you  
know ;-)



I don't use it and don't know.

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





___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


n00b EO questions :-)

2008-05-22 Thread Rams

Hi Everyone,

Please pardon me if I am asking extremely stupid questions, but I'm  
starting to do some work with my database and I have a few questions  
about EnterpriseObjects and database things in general...


The first question is about creating unique data... I have a user  
object and I need unique usernames for obvious reasons.  Now, I know  
it is unlikely, but let's say that two visitors attempt to create a  
user at the same time and they happen to pick the same username.


EOQualifier qualifier = User.SCREEN_NAME.eq(username);
if(User.fetchUser(ec, qualifier) == null) {
User.createUser(ec, email, password, username);
ec.saveChanges();
}

If these fired at the same time, is it possible that two users with  
the same username could be created?  If so, does anyone have any  
pointers to prevent duplicate data?



The second question regards security/sql injection.  Is there any sort  
of user input I should be on the lookout for in my validateUsername  
method?  Like username "admin'--"  or some such?  I assume that as  
long as I stick to EOQualifiers and don't touch the SQL myself that  
all the input will be properly escaped...



Finally, third question... I'm using MySQL.  I will ensure InnoDB is  
used by default as mentioned here:


http://homepage.mac.com/kelleherk/iblog/C711669388/E20070719095201/index.html

Is there anything else I need to do in order to produce ACID  
transactions with WO?  It doesn't hurt to be buzzword compliant you  
know ;-)



Thanks everybody!  I really appreciate the help everyone here provides.

smime.p7s
Description: S/MIME cryptographic signature
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Re: WOLips : Display Group Component ?

2008-05-22 Thread David Holt

No "wizard" but this is what we've got:

http://wiki.objectstyle.org/confluence/display/WO/Web+Applications-Development-WODisplayGroup

David


On 22-May-08, at 6:51 PM, Owen McKerrow wrote:


Hi All,

Is there an equivalent "wizard" to xCodes Display Group Component  
under eclipse/wolips ?


Owen McKerrow
WebMaster, emlab
Ph : +61 02 4221 5517
http://emlab.uow.edu.au

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
- - - - - - - - - -
 'The test of a first-rate intelligence is the ability to hold two  
opposed ideas in the mind at the same time and still be able to  
function.'

-F.Scott Fitzgerald,


___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/programmingosx%40mac.com

This email sent to [EMAIL PROTECTED]


___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


WOLips : Display Group Component ?

2008-05-22 Thread Owen McKerrow

Hi All,

Is there an equivalent "wizard" to xCodes Display Group Component  
under eclipse/wolips ?


Owen McKerrow
WebMaster, emlab
Ph : +61 02 4221 5517
http://emlab.uow.edu.au

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
- - - - - - - - -
  'The test of a first-rate intelligence is the ability to hold two  
opposed ideas in the mind at the same time and still be able to  
function.'

-F.Scott Fitzgerald,


___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: WOWODC

2008-05-22 Thread Chuck Hill


On May 22, 2008, at 4:54 PM, David den Boer wrote:


So are we going to have a WOWODC beer bash?


Surely you mean to ask, "When and where is the WOWODC beer bash?".

Good question!

Chuck



On May 22, 2008, at 11:00 AM, Mike Schrag wrote:

Today is the last day to sign up for WOWODC, so if you're still on  
the fence, the clock is ticking!


ms

___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/ddenboer%40apple.com

This email sent to [EMAIL PROTECTED]



--
David den Boer   |   Architect, IS&T Web Applications  |   [EMAIL PROTECTED] 
  |  ( 408.974.9739


___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net

This email sent to [EMAIL PROTECTED]


--

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





___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: WOWODC

2008-05-22 Thread David den Boer

So are we going to have a WOWODC beer bash?


On May 22, 2008, at 11:00 AM, Mike Schrag wrote:

Today is the last day to sign up for WOWODC, so if you're still on  
the fence, the clock is ticking!


ms

___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/ddenboer%40apple.com

This email sent to [EMAIL PROTECTED]



--
David den Boer   |   Architect, IS&T Web Applications  |   [EMAIL PROTECTED] 
  |  ( 408.974.9739


 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Re: [Wonder-disc] NSUndoManager is Mandatory for any EOEditingContext

2008-05-22 Thread Lachlan Deck

On 23/05/2008, at 3:33 AM, Chuck Hill wrote:


On May 22, 2008, at 8:53 AM, [EMAIL PROTECTED] wrote:


1)
===
I have found that doing:

editingContext.setUndoManager(null);

Will create the following error when you attempt to delete and save  
an EO that has a delete rule of "deny" on an existing relationship  
(using WO 5.3):


java.lang.RuntimeException: java.lang.IllegalStateException:  
Editing context needs an undo manager to recover from delete  
propagation problems. Do not set the undo manager of this editing  
context to null.


Yes, you need the undo manager if you have delete rules, esp deny  
rules.


Ah. Good to know.


2)
===
Additionally, if I try the following:

editingContext.undoManager().disableUndoRegistration();

I find that little undo / redo pieces are still allocated in  
memory... which defeats the purpose of removing registration. This  
can be verified with a tool such as Jprofiler, etc. Any tool which  
allows you to view the java heap and memory allocations.


Yes.


Probably a bug report should be filed. But a work-around would be  
supplying a subclass that does nothing with the register* actions if  
disabled is true.



3)
===
After reflecting on notes #1 and #2 above, its safe to say that the  
NSUndoManager is an integral part of the EOEditingContext and  
should neither be crippled nor removed. Calling the following after  
saving changes, as currently recommended in the wiki, might make  
sense:


editingContext.undoManager().removeAllActions();


That is what I do.  I have an EC subclass that calls this after a  
successful super.saveChanges().  That way, I don't have to remember  
to do this.


Good tip. Done :-)

with regards,
--

Lachlan Deck
___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: 5.3.3 API docs?

2008-05-22 Thread Lachlan Deck

Thanks Kieren,

I'd been meaning to grab this off a tiger install.

On 23/05/2008, at 2:52 AM, Kieran Kelleher wrote:


Ah thanks.

Kieran

PS. I needed a local copy for "on the road" reference, so I just  
used wget to download, so for anyone who wants a local copy in the  
absence of a tgz download (which I can find for every legacy version  
except 5.3), navigate to an empty dir and do sth like this to pull  
the API down:


$ wget --convert-links --lev=10 -r --page-requisites 
http://developer.apple.com/documentation/WebObjects/Reference/WO53_Reference/

You can install wget using macports.

On May 22, 2008, at 12:13 PM, Mike Schrag wrote:


http://developer.apple.com/documentation/webobjects/Reference/WO53_Reference/

On May 22, 2008, at 12:06 PM, Kieran Kelleher wrote:

The current dev documentationj has 5.4.1 API and under Legacy has  
5.2.3, but there is no 5.3.3. Does anyone have a URL to the WO  
5.3.3 API tarball on the web .. google is not helping me find  
it.


Kieran
___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/mschrag%40mdimension.com

This email sent to [EMAIL PROTECTED]



___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/kieran_lists%40mac.com

This email sent to [EMAIL PROTECTED]


___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/lachlan.deck%40gmail.com

This email sent to [EMAIL PROTECTED]


with regards,
--

Lachlan Deck



___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: WOWODC

2008-05-22 Thread Joe Little
The trick is the tell everyone WOWODC is sold out. Then everyone will
fall over each other to get an exception. Sparsity creates demand :)

On Thu, May 22, 2008 at 11:10 AM, Mike Schrag <[EMAIL PROTECTED]> wrote:
>> And it's also the last day to get a full refund if you can't attend.
>>
>>> Today is the last day to sign up for WOWODC, so if you're still on the
>>> fence, the clock is ticking!
>
> Can't attend?  Why would you not attend THE WebObjects event of the year?
>  That's silly, Pascal ;)
>
> ms
>
> ___
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/webobjects-dev/jmlittle%40gmail.com
>
> This email sent to [EMAIL PROTECTED]
>
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: WOWODC

2008-05-22 Thread Mike Schrag

And it's also the last day to get a full refund if you can't attend.

Today is the last day to sign up for WOWODC, so if you're still on  
the fence, the clock is ticking!
Can't attend?  Why would you not attend THE WebObjects event of the  
year?  That's silly, Pascal ;)


ms

___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: WOWODC

2008-05-22 Thread Pascal Robert

And it's also the last day to get a full refund if you can't attend.

Today is the last day to sign up for WOWODC, so if you're still on  
the fence, the clock is ticking!



___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


WOWODC

2008-05-22 Thread Mike Schrag
Today is the last day to sign up for WOWODC, so if you're still on the  
fence, the clock is ticking!


ms

___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: Tracing GC while stalking an OutOfMemoryError

2008-05-22 Thread Simon McLean
If you are using log4j you can also get it to print out memory usage  
which can be helpful:



# * P is set to be a RollingFileAppender.
log4j.appender.P=org.apache.log4j.RollingFileAppender
log4j.appender.P.Threshold=WARN
log4j.appender.P.File=/Logs/Pattern/log.txt
# * Max file size is set to 100KB
log4j.appender.P.MaxFileSize=1000KB
# * Keep one backup file
log4j.appender.P.MaxBackupIndex=100
# * R uses PatternLayout.
log4j.appender.P.layout=er.extensions.ERXPatternLayout
log4j.appender.P.layout.ConversionPattern=%W{n[]} %V{u used/f free}
%-5p %d{dd/MMM/ HH:mm:ss} (%c{1}:%L) %X{logID} %m%n
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Re: Deployment error on start up

2008-05-22 Thread Chuck Hill

OK, back to this.

On May 21, 2008, at 6:44 AM, William Hatch wrote:

On May 20, 2008, at 10:33 PM, Chuck Hill wrote:

On May 20, 2008, at 9:19 AM, William Hatch wrote:

OK, so extreme stupidity accounts for what we'll refer to as  
initial problem,


:-)

at least I think anyway as I now have new problems. Turns out the  
iPhone SDK does install 5.4.2, which overwrote all the frameworks  
in /System/Lib.../Frameworks.


What problem did that cause?


Initially, we were getting weird adaptor errors; I believe I'd  
posted them previously. Basically: I run both 5.4 and 5.3 locally,  
so don't see issues in dev when crossing the 5.3/5.4 line. However,  
it would seem logical that if I developed locally (and  
unknowingly;-) on 5.4, and then pushed the built app up to a Tiger  
server running 5.3 only (and apache 1.3x etc) that there _could be  
problems. After uncovering "extreme stupid mistake #1" I assumed  
that contributed towards the adaptor errors I saw subsequently.


OK, thank makes sense.



No problem I say, simply run the convenient wo53 script and I'll  
be back in biz. Project rebuilt, manually configured the  
MacOSClasspath.txt and MacOSXSClasspath.txt to get rid of the $ 
{jvm} bad argument


I had hoped that it was the iPhone SDK changes that caused this.   
It sounds like it still happens after you re-installed 5.3?  Sigh.


Yes, but eventually I began to think it was probably just the  
project getting flaky so decided to rebuild a new one. This time,  
did NOT select Wonder Project from the wizard; just made it a PO WO  
project and added the wonder dependencies manually afterwards. That  
fixed everything right away. But I first started by removing the  
wo.system embeds, then the wo.local embeds, just to make sure there  
wasn't something else going on. Now, it's not really related, but I  
noticed on the wonderful (seriously) output you get on start up  
(using Wonder) we now have this jar checker that very helpfully  
determines what jars may have duplicate references. I have loads of  
them; even on this new project. I'm not linking to the checked out,  
imported workspace projects (I would, but I have some issue with the  
checked out version of Wonder that seems to prevent me from ever  
being able to build it all and install from subsequent cvs updates),


I have had a few problems, but I think I have them worked out.  What  
is happening for you?



so I occasionally download the latest Wonder built frames... and use  
the check outs largely as reference within the workspace. Instead, I  
reference the installed frameworks. So, even with no project  
dependencies and with the local libraries linked in properly I'm  
still seeing the jar checker warnings. But perhaps this is also  
something that the new classpath stuff will impact.


Specifically what warnings do you see?


and fix the ERExtensions not showing up before ...foundation in  
those files, (and it would be great to at least figure out how to  
make eclipse do the right thing here; configuring the build path  
didn't spotlight any obvious answers).


Mike has some very highly anticipated changes to WOLips classpath  
handling that he is sitting on.  I expect it will be a while before  
he is ready to commit them.


Yes, and absolutely understandable for sure. My question was more  
out of trying to understand all those internal details so I'd be  
able to save my own day;-)


I have not quite figured out how that can work right now either.  I am  
hoping that Mike commits before it gets too far up my priority list.




Anyway, as a refresher, I've got a built .woa which is completely  
embedded; all System and Local frameworks are included in the  
built .woa. Now, when trying to start up I get this:


Generated classpath:
/Library/WebObjects/Applications/locations-prod/CFiPhoneWeb.woa/ 
Contents/Resources/Java/
/Library/WebObjects/Applications/locations-prod/CFiPhoneWeb.woa/ 
Contents/Resources/Java/cfiphoneweb.jar
/Library/WebObjects/Applications/locations-prod/CFiPhoneWeb.woa/ 
Contents//Library/Frameworks/JavaEOAccess.framework/Resources/Java/ 
javaeoaccess.jar
/Library/WebObjects/Applications/locations-prod/CFiPhoneWeb.woa/ 
Contents//Library/Frameworks/JavaEOControl.framework/Resources/ 
Java/javaeocontrol.jar
/Library/WebObjects/Applications/locations-prod/CFiPhoneWeb.woa/ 
Contents//Library/Frameworks/ERExtensions/framework/Resources/Java/ 
ERExtensions.jar


There is the jar file that has the ERXApplication class that it  
says it can't find.  I did notice that this and the next few paths  
have an extra slash: Contents//Library.  My first suspicion would  
lie there.  Check the files in woproject/ (or the build.xml or ...  
depending on how you are including these.


Yup, the build.xml was absolutely the issue; not sure where the  
extra / was coming from, I don't recall modifying it in anyway,  
although I typically would just to add some additional convenience  
targets. I picked up on it after noticing th

Re: Tracing GC while stalking an OutOfMemoryError

2008-05-22 Thread Mike Schrag

# JVMOptions   == verbose:gc -Xms128m
-Xms is setting your STARTING memory, not your MAX memory ... You want  
-Xmx128M instead.


ms

___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: Tracing GC while stalking an OutOfMemoryError

2008-05-22 Thread Simon McLean
I'm dealing with a WebObjects app that has suddenly started  
experiencing OutOfMemoryErrors.


Probably due to a gradual increase of data in the database and large  
to-many relationships.  You might want to check the wiki for some  
advice on managing large relationships if that is the problem.


Or just an increase in data and no fetch limits. I seem to remember an  
app that let people try and fetch a 3 gig table in one go. That kept  
running out of memory :-)		


Simon

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Re: Tracing GC while stalking an OutOfMemoryError

2008-05-22 Thread Chuck Hill


On May 22, 2008, at 8:04 AM, Rick Innis wrote:


Hey folks,

I'm dealing with a WebObjects app that has suddenly started  
experiencing OutOfMemoryErrors.


Probably due to a gradual increase of data in the database and large  
to-many relationships.  You might want to check the wiki for some  
advice on managing large relationships if that is the problem.




The platform is WebObjects 5.2.1, OS X 10.2.6, Java 1.3.1. Yes, it's  
a little behind the curve. In theory it's migrating to a newer  
server running 10.4 Real Soon Now, and has been for about a year.


To try and track this down, I added -verbose:gc to the command line,  
as well as adding -Xms128m to give it more memory and see if that  
eliminates the problem.


Even 128 might be low, but it is a place to start.


Thing is, though I can see that these have the desired effect when I  
run the app from ProjectBuilder (did I mention it's a little behind  
the curve?), I don't see the expected output in the logfile when I  
deploy the app. I've combed the archives and have tried adding them  
as "Additional VM Options" via ProjectBuilder, as "Additional  
Arguments" in WOMonitor, and as JVM_OPTIONS in "Expert View". None  
of them, as Arthur Dent might say, seem to do a dickie-bird's. I've  
done a clean build, and I've even undeployed and redeployed the app.


It's entirely possibly that the options are being picked up, but the  
output is going somewhere other than the WebObjects log. Is there a  
way to get System.out and System.err to redirect to the log file  
defined in WOMonitor, or should they be going there anyway?



They should all go there.  Mercifully, the name is all that I recall  
of Project Builder.  I'd cut to the chase and just manually edit the  
classpath file inside


App.woa/Contents/MacOS/MacOSClassPath.txt

And add them to the JVMOptions:

# JVMOptions   == verbose:gc -Xms128m

NOTE: the # is NOT a comment marker, leave it there


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





___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: [Wonder-disc] NSUndoManager is Mandatory for any EOEditingContext

2008-05-22 Thread Chuck Hill


On May 22, 2008, at 8:53 AM, [EMAIL PROTECTED] wrote:



Hello fellow WOrriors,

How can I get an account to update the confluence wiki at the  
following link:


Try the "Contact Administrators" link in the page footer.  Though that  
is a plain WO page and not a Wonder page (you sent this to the Wonder  
list).  I will copy wo-dev.




http://wiki.objectstyle.org/confluence/display/WO/EOF-Using+EOF-Memory+Management#EOF-UsingEOF-MemoryManagement-NSUndoManager

The advice given regarding EOEditingContexts and their NSUndoManager  
is well-meaning but wrong.


1)
===
I have found that doing:

editingContext.setUndoManager(null);

Will create the following error when you attempt to delete and save  
an EO that has a delete rule of "deny" on an existing relationship  
(using WO 5.3):


java.lang.RuntimeException: java.lang.IllegalStateException: Editing  
context needs an undo manager to recover from delete propagation  
problems. Do not set the undo manager of this editing context to null.


Yes, you need the undo manager if you have delete rules, esp deny rules.



2)
===
Additionally, if I try the following:

editingContext.undoManager().disableUndoRegistration();

I find that little undo / redo pieces are still allocated in  
memory... which defeats the purpose of removing registration. This  
can be verified with a tool such as Jprofiler, etc. Any tool which  
allows you to view the java heap and memory allocations.


Yes.



3)
===
After reflecting on notes #1 and #2 above, its safe to say that the  
NSUndoManager is an integral part of the EOEditingContext and should  
neither be crippled nor removed. Calling the following after saving  
changes, as currently recommended in the wiki, might make sense:


editingContext.undoManager().removeAllActions();


That is what I do.  I have an EC subclass that calls this after a  
successful super.saveChanges().  That way, I don't have to remember to  
do this.



but, in the same breath, we should also recommend that "dispose()"  
might want to be called and explicitly setting the editingContext to  
"null" if the editingContext is no longer needed. But, if that's the  
case, there is no point even worrying about the undoManager in the  
first place.



That depends on how the EC is used and how long it is kept around.

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





___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: 5.3.3 API docs?

2008-05-22 Thread Kieran Kelleher

Ah thanks.

Kieran

PS. I needed a local copy for "on the road" reference, so I just used  
wget to download, so for anyone who wants a local copy in the absence  
of a tgz download (which I can find for every legacy version except  
5.3), navigate to an empty dir and do sth like this to pull the API  
down:


$ wget --convert-links --lev=10 -r --page-requisites 
http://developer.apple.com/documentation/WebObjects/Reference/WO53_Reference/

You can install wget using macports.

On May 22, 2008, at 12:13 PM, Mike Schrag wrote:


http://developer.apple.com/documentation/webobjects/Reference/WO53_Reference/

On May 22, 2008, at 12:06 PM, Kieran Kelleher wrote:

The current dev documentationj has 5.4.1 API and under Legacy has  
5.2.3, but there is no 5.3.3. Does anyone have a URL to the WO  
5.3.3 API tarball on the web .. google is not helping me find it.


Kieran
___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/mschrag%40mdimension.com

This email sent to [EMAIL PROTECTED]



___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/kieran_lists%40mac.com

This email sent to [EMAIL PROTECTED]


___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: 5.3.3 API docs?

2008-05-22 Thread Johann Werner

Try 
http://developer.apple.com/documentation/WebObjects/Reference/WO53_Reference/

jw

Am 22.05.2008 um 18:06 schrieb Kieran Kelleher:

The current dev documentationj has 5.4.1 API and under Legacy has  
5.2.3, but there is no 5.3.3. Does anyone have a URL to the WO 5.3.3  
API tarball on the web .. google is not helping me find it.


Kieran
___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/werner%40isd.uni-stuttgart.de

This email sent to [EMAIL PROTECTED]




smime.p7s
Description: S/MIME cryptographic signature
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Re: 5.3.3 API docs?

2008-05-22 Thread Mike Schrag

http://developer.apple.com/documentation/webobjects/Reference/WO53_Reference/

On May 22, 2008, at 12:06 PM, Kieran Kelleher wrote:

The current dev documentationj has 5.4.1 API and under Legacy has  
5.2.3, but there is no 5.3.3. Does anyone have a URL to the WO 5.3.3  
API tarball on the web .. google is not helping me find it.


Kieran
___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/mschrag%40mdimension.com

This email sent to [EMAIL PROTECTED]



___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


5.3.3 API docs?

2008-05-22 Thread Kieran Kelleher
The current dev documentationj has 5.4.1 API and under Legacy has  
5.2.3, but there is no 5.3.3. Does anyone have a URL to the WO 5.3.3  
API tarball on the web .. google is not helping me find it.


Kieran
___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Tracing GC while stalking an OutOfMemoryError

2008-05-22 Thread Rick Innis

Hey folks,

I'm dealing with a WebObjects app that has suddenly started  
experiencing OutOfMemoryErrors.


The platform is WebObjects 5.2.1, OS X 10.2.6, Java 1.3.1. Yes, it's  
a little behind the curve. In theory it's migrating to a newer server  
running 10.4 Real Soon Now, and has been for about a year.


To try and track this down, I added -verbose:gc to the command line,  
as well as adding -Xms128m to give it more memory and see if that  
eliminates the problem.


Thing is, though I can see that these have the desired effect when I  
run the app from ProjectBuilder (did I mention it's a little behind  
the curve?), I don't see the expected output in the logfile when I  
deploy the app. I've combed the archives and have tried adding them  
as "Additional VM Options" via ProjectBuilder, as "Additional  
Arguments" in WOMonitor, and as JVM_OPTIONS in "Expert View". None of  
them, as Arthur Dent might say, seem to do a dickie-bird's. I've done  
a clean build, and I've even undeployed and redeployed the app.


It's entirely possibly that the options are being picked up, but the  
output is going somewhere other than the WebObjects log. Is there a  
way to get System.out and System.err to redirect to the log file  
defined in WOMonitor, or should they be going there anyway?


Any assistance appreciated.

Thanks,

R.

___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


D2WList Default Sort Issue.

2008-05-22 Thread James Cicenia

Hello -

I have been using D2WList for my reporting needs and never realized
that it had a default sort based upon the first attribute in the  
eomodel ?!


My binding for D2WList is :

List: D2WList {
 entityName = session.reportEntity;
 list = session.theList;
 displayKeys = session.theReportKeys;
}

I am using a just a list or plain old NSArray. No WODisplayGroup etc.

The question than becomes where do I get access to the D2WList to
change the default sort behavior? Is there a rule I am not seeing for  
it?


Thanks
James Cicenia


 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Re: iPhone and WebObjects

2008-05-22 Thread James Cicenia

Well -

When I opened up XCode an introductory panel shows video links, code  
samples, etc.


It is helpful.

HTH
James

On May 21, 2008, at 4:43 PM, Thomas wrote:


James,

sorry to treat you like a personal Google, but I can't find the  
videos you mentioned. Where would I find them? I've looked in  
developer.apple.com and in the WWDC 2007 videos.


Regards
Thomas

On 22/05/2008, at 7:25 AM, James Cicenia wrote:


Sounds like my proflle.

I am slogging through the videos today which are helping.

James

On May 21, 2008, at 4:20 PM, Thomas wrote:


Yippee! Thanks, Mike.

Does anybody have any suggestions on books or other sources to  
learn Objective-C and Cocoa? The only book "approved by Apple" was  
printed in 2001.


I have been writing Java since 1.0 and use Applescript  
occasionally. I used to write a lot of C  in another life, and  
have some experience in C++ but always hated it and never got good  
at it. I'm looking forward to writing Objective-C, but so far any  
code I have seen has been inscrutable to me.


Regards
Thomas

On 22/05/2008, at 6:46 AM, Mike Schrag wrote:

I'm displaying my ignorance here, having never used Cocoa.  
Perhaps it has a WebKit module that can display the Google  
content, but what about Javascript communication between the  
WebKit component and the iPhone application?
Yes, there is a WebKit iPhone component just like on the  
desktop ... I haven't fiddled with it on the iPhone, but i  
presume all the API's are roughly the same, in which case you can  
bind Cocoa objects into and out of Javascript.  It's pretty cool,  
actually.


ms

___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/webobjects%40woomeranet.com.au

This email sent to [EMAIL PROTECTED]



___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/james%40jimijon.com

This email sent to [EMAIL PROTECTED]







___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: Documentation for WOX Flex integration

2008-05-22 Thread Don Lindsay

Hello;

I have downloaded the example application.  I am currently reverse  
engineering what was done to create it.


Don
On May 22, 2008, at 4:09 AM, Christian Trotobas wrote:


Hi Don,

I am working on a getting started guide. It should be available soon.
In the meantime, my only advise is to take a look at the WoxMovies  
samples.


I would suggest to checkout the test app.
You need in the thunk of the svn repository at:
http://www.intellicore.info/wox/repos/

WO-side: Wox4j and WoxMovies
Flex-side: Wox4f and WoxMoviesClient

and a standard Movies database (I use Frontbase).

In the WO project, there is a Flex.eogen file that will generate the  
client-side .as classes from the eomodel(s). After generation, there  
is an Ant script that will rename the .java generated classes  
to .as. You can move them to your flex project.


Regards,
Christian


Le 22 mai 08 à 01:30, Don Lindsay a écrit :


Hello;

I have downloaded the source for WOX/Flex from intellicore.  I  
cannot find any documentation or getting started guide from that  
page.Is there such a thing available?


Don
___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/trotobas%40mac.com

This email sent to [EMAIL PROTECTED]


___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/pccdonl 
%40mac.com


This email sent to [EMAIL PROTECTED]


___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: Documentation for WOX Flex integration

2008-05-22 Thread Christian Trotobas

Hi Don,

I am working on a getting started guide. It should be available soon.
In the meantime, my only advise is to take a look at the WoxMovies  
samples.


I would suggest to checkout the test app.
You need in the thunk of the svn repository at:
http://www.intellicore.info/wox/repos/

WO-side: Wox4j and WoxMovies
Flex-side: Wox4f and WoxMoviesClient

and a standard Movies database (I use Frontbase).

In the WO project, there is a Flex.eogen file that will generate the  
client-side .as classes from the eomodel(s). After generation, there  
is an Ant script that will rename the .java generated classes to .as.  
You can move them to your flex project.


Regards,
Christian


Le 22 mai 08 à 01:30, Don Lindsay a écrit :


Hello;

I have downloaded the source for WOX/Flex from intellicore.  I  
cannot find any documentation or getting started guide from that  
page.Is there such a thing available?


Don
___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/trotobas%40mac.com

This email sent to [EMAIL PROTECTED]


___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: WOLips ( Entity Modeler ) MySQL JDBC NullPointerException

2008-05-22 Thread David Avendasora
If you are using WebObjects 5.4, the SQL generation is broken. It  
works just fine in 5.3.


http://lists.apple.com/archives/webobjects-dev/2008/Apr/msg00585.html

Dave

On May 22, 2008, at 3:53 AM, Francisc Simon wrote:


Hi @all,


i've tried to connect to my mysql database and create the sql with  
Entity Modeler but it gives me the following error:

Can somebody help me please ?
THX :-)


java.lang.RuntimeException: Failed to generate SQL.
	at org.objectstyle.wolips.eomodeler.core.sql.EOFSQLGeneratorFactory 
$ 
ReflectionSQLGenerator 
.generateSchemaCreationScript(EOFSQLGeneratorFactory.java:57)
	at  
org 
.objectstyle 
.wolips 
.eomodeler 
.actions.GenerateSQLDialog.generateSql(GenerateSQLDialog.java:271)
	at org.objectstyle.wolips.eomodeler.actions.GenerateSQLDialog 
$1.run(GenerateSQLDialog.java:252)

at java.lang.Thread.run(Thread.java:613)
Caused by: java.lang.reflect.InvocationTargetException
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.core.sql.EOFSQLGeneratorFactory 
$ 
ReflectionSQLGenerator 
.generateSchemaCreationScript(EOFSQLGeneratorFactory.java:55)

... 3 more
Caused by: java.lang.NullPointerException
	at  
com 
.webobjects 
.jdbcadaptor 
.JDBCExpression.columnTypeStringForAttribute(JDBCExpression.java:160)
	at  
com 
.webobjects 
.eoaccess 
.synchronization 
.EOSchemaSynchronizationFactory 
._columnCreationClauseForAttribute 
(EOSchemaSynchronizationFactory.java:2124)
	at  
com 
.webobjects 
.eoaccess 
.synchronization 
.EOSchemaSynchronizationFactory 
.createTableStatementsForEntityGroup 
(EOSchemaSynchronizationFactory.java:350)
	at  
com 
.webobjects 
.eoaccess 
.synchronization 
.EOSchemaSynchronizationFactory 
.createTableStatementsForEntityGroups 
(EOSchemaSynchronizationFactory.java:500)
	at  
com 
.webobjects 
.eoaccess 
.synchronization 
.EOSchemaSynchronizationFactory 
.schemaCreationStatementsForEntities 
(EOSchemaSynchronizationFactory.java:887)
	at  
com 
.webobjects 
.eoaccess 
.synchronization 
.EOSchemaSynchronizationFactory 
.schemaCreationScriptForEntities(EOSchemaSynchronizationFactory.java: 
685)
	at  
com 
.webobjects 
.eoaccess 
.EOSynchronizationFactory 
.schemaCreationScriptForEntities(EOSynchronizationFactory.java:220)
	at  
org 
.objectstyle 
.wolips 
.eomodeler 
.core 
.sql 
.EOFSQLGenerator.generateSchemaCreationScript(EOFSQLGenerator.java: 
407)

... 8 more


___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/webobjects%40avendasora.com

This email sent to [EMAIL PROTECTED]


 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

WOLips ( Entity Modeler ) MySQL JDBC NullPointerException

2008-05-22 Thread Francisc Simon

Hi @all,


i've tried to connect to my mysql database and create the sql with  
Entity Modeler but it gives me the following error:

Can somebody help me please ?
THX :-)


java.lang.RuntimeException: Failed to generate SQL.
	at org.objectstyle.wolips.eomodeler.core.sql.EOFSQLGeneratorFactory 
$ 
ReflectionSQLGenerator 
.generateSchemaCreationScript(EOFSQLGeneratorFactory.java:57)
	at  
org 
.objectstyle 
.wolips 
.eomodeler 
.actions.GenerateSQLDialog.generateSql(GenerateSQLDialog.java:271)
	at org.objectstyle.wolips.eomodeler.actions.GenerateSQLDialog 
$1.run(GenerateSQLDialog.java:252)

at java.lang.Thread.run(Thread.java:613)
Caused by: java.lang.reflect.InvocationTargetException
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.core.sql.EOFSQLGeneratorFactory 
$ 
ReflectionSQLGenerator 
.generateSchemaCreationScript(EOFSQLGeneratorFactory.java:55)

... 3 more
Caused by: java.lang.NullPointerException
	at  
com 
.webobjects 
.jdbcadaptor 
.JDBCExpression.columnTypeStringForAttribute(JDBCExpression.java:160)
	at  
com 
.webobjects 
.eoaccess 
.synchronization 
.EOSchemaSynchronizationFactory 
._columnCreationClauseForAttribute(EOSchemaSynchronizationFactory.java: 
2124)
	at  
com 
.webobjects 
.eoaccess 
.synchronization 
.EOSchemaSynchronizationFactory 
.createTableStatementsForEntityGroup 
(EOSchemaSynchronizationFactory.java:350)
	at  
com 
.webobjects 
.eoaccess 
.synchronization 
.EOSchemaSynchronizationFactory 
.createTableStatementsForEntityGroups 
(EOSchemaSynchronizationFactory.java:500)
	at  
com 
.webobjects 
.eoaccess 
.synchronization 
.EOSchemaSynchronizationFactory 
.schemaCreationStatementsForEntities 
(EOSchemaSynchronizationFactory.java:887)
	at  
com 
.webobjects 
.eoaccess 
.synchronization 
.EOSchemaSynchronizationFactory 
.schemaCreationScriptForEntities(EOSchemaSynchronizationFactory.java: 
685)
	at  
com 
.webobjects 
.eoaccess 
.EOSynchronizationFactory 
.schemaCreationScriptForEntities(EOSynchronizationFactory.java:220)
	at  
org 
.objectstyle 
.wolips 
.eomodeler 
.core 
.sql.EOFSQLGenerator.generateSchemaCreationScript(EOFSQLGenerator.java: 
407)

... 8 more


 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]