I have a one-2-many relationship from master to detail. The user selects a
detail from a ListDetail page configuration, then clicks edit on a given
detail. In page configuration EditDetail I have a ERD2WEditToOneRelationship
as a popup for the toMaster relationship. Now the user thinks/wants to
I am trying to set up my work environment such as a grown up adult should do,
with Migrations, and Git and ERAttachment etc, and now the final step:
in
http://wiki.objectstyle.org/confluence/display/WO/Development-Direct+Connect
a man called Chuck Hill claims that this will lead to Profit.
I
It's not a problem (my application works correctly) but something a little bit
odd for me.
First here a description of the relationships of interest:
I have a to-many relationship from A to B and a inverse to-one relationship
from B to C (A is a sub-entity of C).
Here what happens:
When I
Probably that wotaskd is only listening to localhost (127.0.0.1) but your
application is not. Try to launch both wotaskd and your app with -WOHost
localhost
I am trying to set up my work environment such as a grown up adult should do,
with Migrations, and Git and ERAttachment etc, and now
Hi all,
I am trying to implement Migrations in an existing Application.
I followed the instructions in this page:
http://webobjects.mdimension.com/hudson/job/Wonder/javadoc/er/extensions/migration/package-summary.html
and this one
Yes, don't do that. :-) Use UTF-8. I don't know of any public constant,
only the private NSStringUtilities.UTF8_ENCODING
On Apr 6, 2011, at 9:03 AM, Amedeo Mantica wrote:
this for example:
in my Application Class
ERXMessageEncoding.setDefaultEncodingForAllLanguages(UTF8);
Regards
Hi Markus,
On 2011-04-05, at 11:14 PM, Markus Ruggiero wrote:
I have a one-2-many relationship from master to detail. The user selects
a detail from a ListDetail page configuration, then clicks edit on a
given detail. In page configuration EditDetail I have a
ERD2WEditToOneRelationship as
ok
thanks
On 06/apr/2011, at 18.59, Chuck Hill wrote:
Yes, don't do that. :-) Use UTF-8. I don't know of any public constant,
only the private NSStringUtilities.UTF8_ENCODING
On Apr 6, 2011, at 9:03 AM, Amedeo Mantica wrote:
this for example:
in my Application Class
Is this a full Wonder app, extending ERXApplication? If not, you need to
initiate the migration:
if (ERXMigrator.shouldMigrateAtStartup())
{
try
{
migrator().migrateToLatest();
}
catch
Miguel
You will need to call the external sql script from inside of your
Migration.java file.
@Override
public void upgrade(EOEditingContext editingContext, ERXMigrationDatabase
database) throws Throwable {
Thanks Chuck
The Application class extends ERXApplication.
But I just tried the code and the
migrator().migrateToLatest();
line of code is reached but nothing happens.
I just added a System.out.println like this in the
com.toracom.app.migration.DInAdminEOModel1.java class
Thanks Paul
For some reason the code inside the upgrade class is never called.
I think I should mistyped something. I am checking now.
On Apr 6, 2011, at 12:16 PM, Paul D Yu wrote:
Miguel
You will need to call the external sql script from inside of your
Migration.java file.
On 6 apr 2011, at 15:50, Pascal Robert wrote:
Probably that wotaskd is only listening to localhost (127.0.0.1) but your
application is not. Try to launch both wotaskd and your app with -WOHost
localhost
Spot on. Profit!
(I'll change the wiki accordingly).
I am trying to set up my
More than likely you've already run once, and the migration did nothing, so it
succeeded, and it's not going to run it again unless you modify the data in the
migration version table to reset it back.
On Apr 6, 2011, at 1:24 PM, Miguel Angel Torres Avila wrote:
Thanks Paul
For some reason
Look at the _dbupdater table in your database.
It should have a row in there with your EOModel name in it; set the version
back to null.
Paul
On Apr 6, 2011, at 1:43 PM, Mike Schrag wrote:
More than likely you've already run once, and the migration did nothing, so
it succeeded, and it's
On 5 apr 2011, at 02:40, Johnny Miller wrote:
Hi,
I was wondering if anyone else had experienced the same thing. I have a
X-Serve running OS X 10.5.8 whose apache server is going into a frozen state
where it stops serving requests and can only be restarted by rebooting the
machine.
Or move your own startup code to finishInitialization() instead.
On Wed, Apr 6, 2011 at 1:07 PM, Miguel Angel Torres Avila
mig...@toracom.net wrote:
Thanks Chuck, Paul and Mike for your help
The principal problem was that Migrations functionality is called
automatically after my own code
Thanks Chuck, Paul and Mike for your help
The principal problem was that Migrations functionality is called automatically
after my own code that loads some info from de data base, so if the migration
has changes in a table that is considered in my code the app crashes before the
migration
Nope,
It did not work for me.
Same error, it looks like the Migrations functions are called after
finishInitialization also.
Thanks for the hint.
This is the code in my Application class
On Apr 6, 2011, at 1:12 PM, John Huss wrote:
Or move your own startup code to
Hi Johan,
Yeah, I'm not doing anything unusual like creating a DB connection per server.
If I run from the CLI:
sudo lsof | grep httpd | wc -l
The count kind of bounces up and down between 500 - 1,500
If I just look at the contents instead of the count I see a bunch of redundant
connections
Le 2011-04-06 à 14:38, Johnny Miller a écrit :
Hi Johan,
Yeah, I'm not doing anything unusual like creating a DB connection per server.
If I run from the CLI:
sudo lsof | grep httpd | wc -l
The count kind of bounces up and down between 500 - 1,500
If I just look at the contents
On Apr 6, 2011, at 11:54 AM, Pascal Robert wrote:
Le 2011-04-06 à 14:38, Johnny Miller a écrit :
Hi Johan,
Yeah, I'm not doing anything unusual like creating a DB connection per
server.
If I run from the CLI:
sudo lsof | grep httpd | wc -l
The count kind of bounces up and
But when didFinishLaunching happens the app is already accepting requests
(if concurrent handling is turned on), isn't it? I thought so; if so,
that's not a good place to do something that your app requires to run
correctly.
John
On Wed, Apr 6, 2011 at 2:02 PM, Miguel Angel Torres Avila
Mssr. Robert,
Thank you for the suggestion. If I run the command you suggested I get a
fluctuating count between 3 and 9. While that is way below the threshold you
suggested I'm not sure I'm convinced that is the whole story. Otherwise why
would I be having a problem?
Best,
Johnny
On Apr
You are confusing number of Apache processes with file handles/sockets. The
error message
Too many open files in system:Some/path/on/system
refers to the latter, the number of connections is the former.
Chuck
On Apr 6, 2011, at 12:10 PM, Johnny Miller wrote:
Mssr. Robert,
Thank you for
I am not sure why finishInitialization() is called before migrating:
I think because when I wrote migrations, I was using that method for something
that had to run before migrations :) When you write migrations, you can put it
before ;)
It would be a good place to to do post-migration work if
Le 2011-04-06 à 15:26, Chuck Hill a écrit :
You are confusing number of Apache processes with file handles/sockets. The
error message
Too many open files in system:Some/path/on/system
refers to the latter, the number of connections is the former.
And using lsof on Some/path/on/system will
This is a bit of an aside probably not relevant to most but be warned that
ApplicationDidFinishLaunchingNotification does not fire under servlet
deployment.
On 4/6/11 3:37 PM, Amedeo Mantica wrote:
Hi Miguel,
you are having the same trouble I had some time ago.
i solved using an
Another good reason to choose #1!
On Apr 6, 2011, at 2:41 PM, Jon Nolan wrote:
This is a bit of an aside probably not relevant to most but be warned that
ApplicationDidFinishLaunchingNotification does not fire under servlet
deployment.
On 4/6/11 3:37 PM, Amedeo Mantica wrote:
Hi
Hello,
Did anyone ever find a solution for this problem?
http://lists.apple.com/archives/webobjects-dev/2007/Jan/msg00169.html
Apparently with MySQL there is an error with using the mutableDictionary
prototype?
I'm seeing the following error:
Hi,
How do I avoid committing duplicate entries in the DB? I have a form
from where I take entries. Is there a single line of code that can
accomplish this?
MR
___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing
It looks like it's just fundamentally broken, FKs and unique indexes just don't
work in other schemas for postgtgres.
For my fixes if you're curious.
http://issues.objectstyle.org/jira/browse/WONDER-696
Thanks Tim this info. was helpful.
-Mike
On Apr 6, 2011, at 12:14 AM, D Tim Cummings
Based on the column/attribute in your DB/EOModel that would make your consider
the record/EO to be duplicate of another, you should implement a method that
would check for those values in the existing set.
I don't think there is a one line solution to what you are seeking.
Paul
On Apr 6, 2011,
That is going to leave you with a race condition. The only certain way to
prevent the creation of duplicates is to put an unique constraint on the
database. Then you have to catch the database exception
(EOGeneralAdaptorException) in your code and handle appropriately. The ugly
part is that
I agree with Chuck. To display a more meaningful error message, I've been
putting a mapping in my ValidationTemplate.strings something like:
User.USERNAME_DUP_IDX = Username already exists;
where
User = modelname
USERNAME_DUP_IDX = name of your unique index.
HTH,
Amiel
On Thu, Apr 7, 2011 at
35 matches
Mail list logo