Eclipse source of problems?

2012-09-10 Thread Ângelo Andrade Cirino
Hi, I am very concerned about the reliability of Eclipse. It seems to be the cause of my four days of work lost in last week and it keeps causing me problems. For instance, one application with ERAttachments that was working, after I experimented some changes in the database with migrations,

ERAttachment error

2012-09-10 Thread Ângelo Andrade Cirino
Hi, As I said in a previous post, I have two applications using the same framework. In one of them I am able to use ERAttachments to add an image to an entity. But in the other application, trying to attach an image to an entirely different entity, I have the following:

Re: ERAttachment error

2012-09-10 Thread Kieran Kelleher
My guess is that the order of save operations means that sometimes you are not violating the foreign constraint and other times you are. Bottom line, MySQL does not support DEFERRED Foreign Key Constraints, so the easy fix is to eliminate Foreign Key constraints in the database if you use MySQL

Re: Eclipse source of problems?

2012-09-10 Thread Pascal Robert
Le 2012-09-10 à 02:53, Ângelo Andrade Cirino aacir...@gmail.com a écrit : Hi, I am very concerned about the reliability of Eclipse. It seems to be the cause of my four days of work lost in last week and it keeps causing me problems. For instance, one application with ERAttachments that

Re: Eclipse source of problems?

2012-09-10 Thread Ângelo Andrade Cirino
Hi George, I used Golipse in my latest reinstall, a couple of days ago. My environment is Eclipse 3.7.2, Java 1.6 with the latest updates by Apple and MySQL 5.5.24. Angelo Em 10/09/2012, às 10:29, George Domurot escreveu: I did a fresh install recently without any issues. What version of

Re: Problem with nextPageDelegate

2012-09-10 Thread Antoine Berry
Hi, Well my action methods match this signature... Here's my class : public class ListInvoiceController extends ERDBranchDelegate { private WOComponent sender; private WOComponent sender() { return sender; } private void setSender(WOComponent sender) {

Re: Problem with nextPageDelegate

2012-09-10 Thread Antoine Berry
Actually my controller rule is : 105 : pageConfiguration like 'List*Invoice' = pageController = fr.sophiacom.application.ui.components.controllers.ListInvoiceController [er.directtoweb.ERDDelayedObjectCreationAssignment] So that's not a path problem, everything is fired. Sorry for the

Re: Eclipse source of problems?

2012-09-10 Thread Ângelo Andrade Cirino
Hi Pascal, Em 10/09/2012, às 11:23, Pascal Robert escreveu: What do you have in the EO_PK_TABLE table? And this part of a migration? The EO_PK_TABLE isn't part of the migration and is correctly created after the first inserts in the database. Interesting enough, the PK table is updated even

WOWorkerThread deadlocks

2012-09-10 Thread Maik Musall
Hi, in an app with high concurrency, the app sometimes becomes unresponsive to everything but DirectActions at the time of day with the most concurrency. All users aren't seeing responses any more. In jstack I see hundreds of these: WorkerThread207 prio=5 tid=131e0a800 nid=0x151aa2000 waiting

Re: Eclipse source of problems?

2012-09-10 Thread George Domurot
I personally haven't had a good experience with Golipse. Instead, I've always installed Eclipse and WOLips independently. In any case, I'm using: Eclipse Java EE IDE for Web Developers Version: Indigo Service Release 2 It's working great for me. No issues whatsoever. -G On

Re: Eclipse source of problems?

2012-09-10 Thread Pascal Robert
Le 2012-09-10 à 11:11, George Domurot masterm...@knuckleheads.net a écrit : I personally haven't had a good experience with Golipse. Instead, I've always installed Eclipse and WOLips independently. I would like to know why, because in my case, it's the other way around. Workspace Mechanics

Re: Eclipse source of problems?

2012-09-10 Thread George Domurot
Each time I tried over the past years, Golipse never worked. Installing as separates has always worked. Indigo Eclipse has Eclipse Marketplace (extremely helpful for installing add-ons). -G On Sep 10, 2012, at 8:23 AM, Pascal Robert wrote: Le 2012-09-10 à 11:11, George Domurot

Re: Eclipse source of problems?

2012-09-10 Thread Jesse Tayler
I submit that if folks have troubles with golips or its configuration somehow, we put in the community-wide effort to ensure that whatever fixes or workarounds might be required are reflected in golips. for example -- if we have troubles with a release of Eclipse, or anything like that --

Re: ERAttachment error

2012-09-10 Thread Ramsey Gurley
Just thought I would add… You can sorta have FK constraints in MySQL if you add the property com.webobjects.eoaccess.ERXEntityDependencyOrderingDelegate.active=true You still can't have circularly required relationships with FKs though. For that, you'll need a different database. Ramsey On

Re: Eclipse source of problems?

2012-09-10 Thread Pascal Robert
+1. And I'm willing to give $75 to anyone who back extend Golipse so that it also install Wonder and the core WO frameworks along Eclipse, WOLips and Workspace Mechanics. Bonus points if your solution also work on Windows and Linux. It doesn't have to be Golipse, but it have to install

Re: Problem with nextPageDelegate

2012-09-10 Thread Ramsey Gurley
On Sep 10, 2012, at 7:57 AM, Antoine Berry wrote: Hi, Well my action methods match this signature... Here's my class : public class ListInvoiceController extends ERDBranchDelegate { private WOComponent sender; private WOComponent sender() { return sender; }

Re: Eclipse source of problems?

2012-09-10 Thread Jesse Tayler
Pascal makes a really good point! If we, as a community, were able to standardize the workspace to INCLUDE WOnder and the frameworks and install setup, so that one could indeed build-deploy reliably etc. that would be amazingly useful. we would all be using the same developer setup core

Re: Eclipse source of problems?

2012-09-10 Thread Ângelo Andrade Cirino
Surely, and would provide a common language when talking about issues. No need to ask if this is set up this way or if that is installed. Everybody would have a common ground. Angelo Em 10/09/2012, às 12:59, Jesse Tayler escreveu: Pascal makes a really good point! If we, as a

Re: adding a component to a D2W page

2012-09-10 Thread Theodore Petrosky
ok this is what I figured out so far: 10 : (look = 'ERModernLook' and (task = 'list' or task = 'select' or (task = 'edit' and subTask = 'list'))) = repetitionComponentName = ERMDSimpleListPageRepetition [com.webobjects.directtoweb.Assignment] from that rule, I see that if we are creating a

Re: ERAttachment error

2012-09-10 Thread Ângelo Andrade Cirino
Hi, Kieran's suggestion did not solve the problem. Following the suggestion, after looking at MySQL's docs, I set up sql_mode='traditional' in my.conf and restarted the server, to no avail. Setting com.webobjects.eoaccess.ERXEntityDependencyOrderingDelegate.active=true did raise a circular

Re: Eclipse source of problems?

2012-09-10 Thread G Brown
Hey, I used golips 2 weeks ago, it almost worked. I got something called a Null Pointer Exception; whewnever heard of one of those things.. ;) After I ripped out the m2e stuff and then updated the m2e stuff then it worked. Some of the parts of eclipse have moved on from February 2012.

Community bounties

2012-09-10 Thread Pascal Robert
Ok, like we said here: Ça va faire le niaisage! So we need people who can: - Make something like Golipse that will install not only Eclipse (current stable version, so 3.7 or 3.8 for now), but also WOLips, Rule Modeler, useful plugins, Workspace Mechanics, the core WO frameworks (remember: we

Re: adding a component to a D2W page

2012-09-10 Thread David LeBer
WOSwitchComponent is your friend. Look at the templates, they are used everywhere. D -- David LeBer Codeferous Software On 2012-09-10, at 12:21 PM, Theodore Petrosky tedp...@yahoo.com wrote: ok this is what I figured out so far: 10 : (look = 'ERModernLook' and (task = 'list' or task =

Re: Community bounties

2012-09-10 Thread Ângelo Andrade Cirino
Hi Pascal, It would be great, indeed. But I must ask if NetBeans would be an option too. Angelo Em 10/09/2012, às 13:37, Pascal Robert escreveu: Ok, like we said here: Ça va faire le niaisage! So we need people who can: - Make something like Golipse that will install not only Eclipse

Re: Community bounties

2012-09-10 Thread James Cicenia
Because I have suffered at the hands Eclipse as most here know, I will match Pascal's offers. I cower in fear when I am asked to install a WebObjects development environment on some typical consumer MacBook. Unless you are super, duper organized and can wield jars like pints, and take every

Re: Community bounties

2012-09-10 Thread Pascal Robert
Rewriting WOLips to NetBeans won't be a easy task... Hi Pascal, It would be great, indeed. But I must ask if NetBeans would be an option too. Angelo Em 10/09/2012, às 13:37, Pascal Robert escreveu: Ok, like we said here: Ça va faire le niaisage! So we need people who can: -

Re: Community bounties

2012-09-10 Thread Ângelo Andrade Cirino
As I feared, but it would be nice to have the right to choose. Angelo Em 10/09/2012, às 13:56, Pascal Robert escreveu: Rewriting WOLips to NetBeans won't be a easy task... ___ Do not post admin requests to the list. They will be ignored.

Re: Problem with nextPageDelegate

2012-09-10 Thread Ramsey Gurley
You need to supply your own css to override it. Ramsey On Sep 10, 2012, at 9:55 AM, Antoine Berry wrote: You were right, the buttons are actually hidden on the span tag! How could I set it? Le 10/09/12 17:56, Ramsey Gurley a écrit : On Sep 10, 2012, at 7:57 AM, Antoine Berry wrote:

Re: Community bounties

2012-09-10 Thread Pascal Robert
Sadly, in a community of about 800 members, resources are quite low… We are not Apple (and they won't help us), and we're not the size of the PHP community either. As I feared, but it would be nice to have the right to choose. Angelo Em 10/09/2012, às 13:56, Pascal Robert escreveu:

Re: Problem with nextPageDelegate

2012-09-10 Thread Antoine Berry
Okay I'm gonna work on that! Thank you a lot for your help. Le 10/09/12 19:08, Ramsey Gurley a écrit : You need to supply your own css to override it. Ramsey On Sep 10, 2012, at 9:55 AM, Antoine Berry wrote: You were right, the buttons are actually hidden on the span tag! How could I set

Re: Community bounties

2012-09-10 Thread Chuck Hill
If you put in the effort to write a NetBeans (or IntelliJ or...) plugin, then you have the right to choose. :-) Chuck On 2012-09-10, at 9:59 AM, Ângelo Andrade Cirino wrote: As I feared, but it would be nice to have the right to choose. Angelo Em 10/09/2012, às 13:56, Pascal Robert

Re: WOWorkerThread deadlocks

2012-09-10 Thread Miguel Arroz
Hi, Isn't that normal? Only one thread can be accepting at any time, when it accepts, it releases the lock for the next one to enter the accept state. I think those are not the threads you are looking for… Regards, Miguel Arroz On 2012-09-10, at 8:03 AM, Maik Musall m...@selbstdenker.ag

Re: Eclipse source of problems?

2012-09-10 Thread Chuck Hill
On 2012-09-09, at 11:53 PM, Ângelo Andrade Cirino wrote: Hi, I am very concerned about the reliability of Eclipse. It seems to be the cause of my four days of work lost in last week and it keeps causing me problems. I don't think that Eclipse is to blame for all of them (UTF-8 in the

Re: Community bounties

2012-09-10 Thread Ângelo Andrade Cirino
Hi Chuck, I am not skilled enough, at least for now, to develop any plugin for any platform. I would have to study a lot. But the question is, and I ask for your opinion: Is the effort worth? I mean, if we have two different platforms to choose from, will the effort of maintaining two plugins

Re: Community bounties

2012-09-10 Thread Pascal Robert
Le 2012-09-10 à 13:17, Ângelo Andrade Cirino aacir...@gmail.com a écrit : Hi Chuck, I am not skilled enough, at least for now, to develop any plugin for any platform. I would have to study a lot. But the question is, and I ask for your opinion: Is the effort worth? I mean, if we have

Re: WOWorkerThread deadlocks

2012-09-10 Thread Chuck Hill
Hi Maik, WorkerThread207 that many worker threads indicates two things to me: 1. Your app configuration is too high. I'd use a max of 6-10 and a listen queue size of around 4 (adjusted to suit your specific needs). A WO app is very, very unlikely to recover from a 200 worker thread backlog in

Re: Community bounties

2012-09-10 Thread Chuck Hill
For me, it is definitely NOT worth it. WOProject and WOLips are the result of huge amounts of effort over many years. While Eclipse may not be perfect, it meets my needs. Chuck On 2012-09-10, at 10:17 AM, Ângelo Andrade Cirino wrote: Hi Chuck, I am not skilled enough, at least for now,

Re: adding a component to a D2W page

2012-09-10 Thread Theodore Petrosky
I must be doing something wrong because it worked so easily. I created a component AgendaInstructions with: these are the agenda instructions From the AgendaInstructions component!!! webobject name=ComponentContent/webobject in the html and: ComponentContent: WOComponentContent { } in the

Project Wonder cookbook

2012-09-10 Thread Pascal Robert
Ok, so one of the objectives of WOCommunity for this year is to write a Project Wonder Cookbook. If you ever bought a O'Reilly Cookbook, you know what I'm talking about. If not, those books have a really simple purpose: to provide examples and answers for specific topics. Guess what? I already

EOStoredProcedure

2012-09-10 Thread Ramsey Gurley
Does anybody use EOStoredProcedure? It looks like I would need to drop down to the adaptor channel to call executeStoredProcedure, then follow with repeat calls to fetchRow, followed by returnValuesForLastStoredProcedureInvocation. Is the API for this really that terrible? :-) I see if I

Re: WOWorkerThread deadlocks

2012-09-10 Thread Maik Musall
Hi Chuck, Am 10.09.2012 um 19:23 schrieb Chuck Hill ch...@global-village.net: Hi Maik, WorkerThread207 that many worker threads indicates two things to me: 1. Your app configuration is too high. I'd use a max of 6-10 and a listen queue size of around 4 (adjusted to suit your specific

Re: Eclipse source of problems?

2012-09-10 Thread Ângelo Andrade Cirino
Hi Chuck, Em 10/09/2012, às 14:16, Chuck Hill escreveu: I don't think that Eclipse is to blame for all of them (UTF-8 in the path excepted). I think you are just blaming Eclipse for problems whose source lies elsewhere. For instance, one application with ERAttachments that was working,

Re: Community bounties

2012-09-10 Thread Mike Schrag
As with any open source, you gotta want it … If you hate something, fix it. If you don't know how to fix it, learn it. There's basically nobody doing any real tools development work right now. That's a great opportunity for you to learn how and really out help the community. If you want it in

Re: Eclipse source of problems?

2012-09-10 Thread Chuck Hill
On 2012-09-10, at 11:09 AM, Ângelo Andrade Cirino wrote: Hi Chuck, Em 10/09/2012, às 14:16, Chuck Hill escreveu: I don't think that Eclipse is to blame for all of them (UTF-8 in the path excepted). I think you are just blaming Eclipse for problems whose source lies elsewhere. For

Re: Eclipse source of problems?

2012-09-10 Thread Pascal Robert
... One of the problematic applications I was able to start from scratch by deleting the project and its files, copying a different working one and modifying it with the classes and user interface I started developing for the former. My feeling is that Eclipse is the cause of the

Re: EOStoredProcedure

2012-09-10 Thread Mike Schrag
yes and yes. it's terrible. here's a chunk that might be usefulish: EODatabaseContext context = EOUtilities.databaseContextForModelNamed(ec, modelName); results = ERXEOAccessUtilities.executeAdaptorChannelOperation(context, 3, new

Re: EOStoredProcedure

2012-09-10 Thread Chuck Hill
Another dark, unfinished corner of WO. I wonder if David Avendasora uses this... :-P On 2012-09-10, at 11:51 AM, Mike Schrag wrote: yes and yes. it's terrible. here's a chunk that might be usefulish: EODatabaseContext context = EOUtilities.databaseContextForModelNamed(ec,

Re: adding a component to a D2W page

2012-09-10 Thread David LeBer
Ted, You don't need the WOComponentContent (unless you plan on wrapping content with your 'instructions' component). You probably want to use something more descriptive than 'compName', i.e: headerInstructionComponentName. Some thoughts: If you can eliminate the dependency on pushing a value

FYI - regex to list installed WO frameworks

2012-09-10 Thread Kieran Kelleher
[Just sharing a cryptic command so future me never forgets it :) ] There might be a shorter, more efficient command, but anyway, this works. It lists WebObjects frameworks currently installed in your OS X /Library/Frameworks by looking for paths matching the pattern

Re: WOWorkerThread deadlocks

2012-09-10 Thread Chuck Hill
Hi Maik, On 2012-09-10, at 11:04 AM, Maik Musall wrote: Hi Chuck, Am 10.09.2012 um 19:23 schrieb Chuck Hill ch...@global-village.net: Hi Maik, WorkerThread207 that many worker threads indicates two things to me: 1. Your app configuration is too high. I'd use a max of 6-10 and a

Re: WOWorkerThread deadlocks

2012-09-10 Thread Maik Musall
Hi Chuck, Am 10.09.2012 um 21:35 schrieb Chuck Hill ch...@global-village.net: WorkerThread207 that many worker threads indicates two things to me: 1. Your app configuration is too high. I'd use a max of 6-10 and a listen queue size of around 4 (adjusted to suit your specific needs). A WO

Re: WOWorkerThread deadlocks

2012-09-10 Thread Chuck Hill
Hi Maik, On 2012-09-10, at 1:07 PM, Maik Musall wrote: Hi Chuck, Am 10.09.2012 um 21:35 schrieb Chuck Hill ch...@global-village.net: WorkerThread207 that many worker threads indicates two things to me: 1. Your app configuration is too high. I'd use a max of 6-10 and a listen queue size

Re: Eclipse source of problems?

2012-09-10 Thread Ângelo Andrade Cirino
Dear Pascal and Chuck, The frameworks order solved my problem. But I remain with two other problems. First I still get an error trying to generate SQL: java.lang.RuntimeException: Failed to generate SQL. at

Re: WOWorkerThread deadlocks

2012-09-10 Thread Alexis Tual
Hi, 2012/9/11 Maik Musall m...@selbstdenker.ag Note that I recently switched to Wonder for this project (using all the Wonder base classes), and since I did, this problem occurred more frequently. It's now almost once a day, and was about once a week before. I switched from

Re: FYI - regex to list installed WO frameworks

2012-09-10 Thread Bastian Triller
jfc@ul30a:~$ ls -1 /opt/Apple/Local/Library/Frameworks/*.framework/Resources/Java/*.jar ; find --version ; for regextype in emacs posix-{awk,basic,egrep,extended} ; do echo $regextype ; find /opt/Apple/Local/Library/Frameworks/ -regextype $regextype -iregex

Re: WOWorkerThread deadlocks

2012-09-10 Thread Chuck Hill
That is a good point! And also make sure that the long requests and background threads are not using the main EOF stack. Chuck On Sep 10, 2012, at 2:19 PM, Alexis Tual alexis.t...@gmail.com wrote: Hi, 2012/9/11 Maik Musall m...@selbstdenker.ag Note that I recently switched to Wonder

Re: FYI - regex to list installed WO frameworks

2012-09-10 Thread Kieran Kelleher
Here is the output of the original 3-stage command - I was curious if anyone could produce the same output with a shorter command (purely as a fun exercise :) ) kieran@kieranmacpro ~ find /Library/Frameworks -name *.jar | egrep (.+).framework/Resources/Java/(\1).jar | sed -E

Re: Trouble Shooting Mountain Lion

2012-09-10 Thread Jeffrey Schmitz
Am having this same problem myself after upgrading to mountain lion server: The requested URL /cgi-bin/WebObjects/netBrackets.woa was not found on this server. but I do have the ScriptAlias in my /etc/apache2/httpd.conf: ScriptAliasMatch ^/cgi-bin/((?!(?i:webobjects)).*$)

Re: FYI - regex to list installed WO frameworks

2012-09-10 Thread Alexis Tual
Hi Kieran, I thought awk could do it, but it can't handle grouping, so perl to the rescue (aka the fun) : find . -name *.jar | perl -n -e '/(.+).framework\/Resources\/Java\/(\1).jar/ print $1.framework\n' Cheers, Alex 2012/9/11 Kieran Kelleher kelleh...@gmail.com Here is the output of the

Re: Trouble Shooting Mountain Lion

2012-09-10 Thread Chuck Hill
Have you restarted Apache? On 2012-09-10, at 9:09 PM, Jeffrey Schmitz wrote: Am having this same problem myself after upgrading to mountain lion server: The requested URL /cgi-bin/WebObjects/netBrackets.woa was not found on this server. but I do have the ScriptAlias in my

Re: Eclipse source of problems?

2012-09-10 Thread Chuck Hill
On 2012-09-10, at 1:48 PM, Ângelo Andrade Cirino wrote: Dear Pascal and Chuck, The frameworks order solved my problem. But I remain with two other problems. First I still get an error trying to generate SQL: java.lang.RuntimeException: Failed to generate SQL. at

Re: FYI - regex to list installed WO frameworks

2012-09-10 Thread Q
find /Library/Frameworks -regex .*/\([^\.]*\)\.framework/Resources/Java/\1.jar -execdir sh -c 'echo {} | sed s/jar$/framework/' \; On 11/09/2012, at 12:38 PM, Kieran Kelleher kelleh...@gmail.com wrote: Here is the output of the original 3-stage command - I was curious if anyone could