Re: Wonder-slim

2024-05-01 Thread Ricardo Parada via Webobjects-dev
Hi all,

I’m just curious, what is Wonder-slim?

Thanks
Ricardo


> On Apr 29, 2024, at 4:57 PM, Hugi Thordarson via Webobjects-dev 
>  wrote:
> 
> Hi Francois,
> I'm pretty sure I'm the only one using it at the moment :). If you're 
> considering using it, I'd be more than happy to start making actual releases. 
> As the only user, I've been lazy enough to just work from snapshot releases 
> which is pretty far from best practice, so it's about time.
> 
> Cheers,
> - hugi
> 
> 
>> On Apr 28, 2024, at 22:06, Francois BIENTZ via Webobjects-dev 
>>  wrote:
>> 
>> Someone using Wonder-slim ?
>> ___
>> 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:
>> https://lists.apple.com/mailman/options/webobjects-dev/hugi%40karlmenn.is
>> 
>> This email sent to h...@karlmenn.is
> 
> ___
> 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:
> https://lists.apple.com/mailman/options/webobjects-dev/rparada%40mac.com
> 
> This email sent to rpar...@mac.com

 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Can't open WO components after Eclipse upgraded to Version 2023-06

2023-06-23 Thread Ricardo Parada via Webobjects-dev
Hello everyone,

My Eclipse upgraded itself to Version 2023-06.  I first noticed my WOLips 
perspective button turned into WOLips text.  I also had compilation errors.

I had to reinstall WOLips.  Now the WOLips icon for the WOLips perspective is 
showing normal, e.g. the one that looks like an EO.

But now, Eclipse won’t open any of my WO components.

Anybody having these problems?

Thanks,
Ricardo Parada

 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Variables in .classpath for selecting log4j Framework?

2023-05-22 Thread Ricardo Parada via Webobjects-dev
We are using ant. And yes I kicked out the JavaXML framework. I added some jars 
to ERJars/Libraries to get ERExtensions to compile. 

I wrote a little script using the find and sed Unix commands that replace the 
framework in all the .classpath files. 

Thank you 
Ricardo Parada 



> On May 22, 2023, at 4:17 AM, René Bock  wrote:
> 
>  Hi Ricardo,
> 
> are you using ant or maven for building?
> 
> Keep in mind, that a very old version of log4j1 is bundled in the JavaXML 
> framework. So you have to kick out this framework in order to get completely 
> rid of log4j1  
> 
> 
> 
> 
>> Am 20.05.2023 um 01:00 schrieb Ricardo Parada via Webobjects-dev 
>> :
>> 
>> Hi everyone,
>> 
>> Our build system is still using ant and relies on the .classpath entries. 
>> 
>> I have added a couple of frameworks to our Wonder fork:
>> 
>> * ERLog4j1Extensions
>> * ERLog4j2Extensions
>> 
>> If I want my apps in to use the old log4j 1.2 logging library then I simply 
>> put a classpathentry in the .classpath for the ERLog4j1Extensions framework 
>> like this:
>> 
>>  
>> 
>> If I want to switch to the latest log4j2 then I replace the above with an 
>> entry for the ERLog4j2Extensions framework like this:
>> 
>> 
>> 
>> The problem is that I have a lot of apps that need their .classpath updated. 
>> And switching back and forth during my testing is a lot of .classpath that I 
>> need to update. I could probably write a script but I’m hoping there is an 
>> easier way. 
>> 
>> Is there a trick to make the logging framework a variable that can be set 
>> externally somewhere else and all the .classpath files pick it up, e.g. 
>> ${ERLoggingFrameworkName} and without breaking Eclipse? ;-D
>> 
>> Thanks for any ideas
>> Ricardo Parada
>> 
>> ___
>> 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:
>> https://lists.apple.com/mailman/options/webobjects-dev/bock%40salient-doremus.de
>> 
>> This email sent to b...@salient-doremus.de
> 
 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Variables in .classpath for selecting log4j Framework?

2023-05-19 Thread Ricardo Parada via Webobjects-dev
Hi everyone,

Our build system is still using ant and relies on the .classpath entries. 

I have added a couple of frameworks to our Wonder fork:

* ERLog4j1Extensions
* ERLog4j2Extensions

If I want my apps in to use the old log4j 1.2 logging library then I simply put 
a classpathentry in the .classpath for the ERLog4j1Extensions framework like 
this:

 

If I want to switch to the latest log4j2 then I replace the above with an entry 
for the ERLog4j2Extensions framework like this:



The problem is that I have a lot of apps that need their .classpath updated. 
And switching back and forth during my testing is a lot of .classpath that I 
need to update. I could probably write a script but I’m hoping there is an 
easier way. 

Is there a trick to make the logging framework a variable that can be set 
externally somewhere else and all the .classpath files pick it up, e.g. 
${ERLoggingFrameworkName} and without breaking Eclipse? ;-D

Thanks for any ideas
Ricardo Parada

 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Replacing log4j with slf4j in Wonder

2023-03-11 Thread Ricardo Parada via Webobjects-dev
Hi René I used Henrique’s fork to help us advance our Wonder fork to slf4j.I commented out references to classes in ERXLog4j2LoggingAdapter and ERXLogbackLoggingAdapter because we still have an ant based build and I don’t know how to specify optional dependencies as he seems to have done in the pom.xml for maven. I am moving classes to separate frameworks as you and him had discussed. For example, ERLog4j1Extensions, ERLog4j2Extensions and ERLogbackExtensions. The application decides which logging library to use by adding one of these to their .classpath / pom.xml. For this to work I moved the slf4j log4j1 binding library from ERJars to ERLog4j1Extensions. I also rewrote the currentBinding() and createLoggingAdapter() in ERXLoggingUtilities to look up classes by name rather than referencing the classes directly which requires optional dependency for the code to compile. My application is working and using ERLog4j1Extensions. I’m am converting  ERXPatternLayout and its converter classes to their equivalent in log4j2 and I will be putting them in the ERLog4j2Extensions framework. Once I have completed that portion and can launch my app successfully I’ll report back. Ricardo ParadaOn Jan 31, 2023, at 10:42 AM, Ricardo Parada  wrote:Hi René,I’m wondering if he got hired by Apple since I have not seen any activity from him since then.  :-)Anyways, in the coming months I may start trying it out. And possibly start converting some of the appenders and pattern layout classes from log4j1 to log4j2. I found some good articles with examples on how those get implemented for log4j2. I also saw your suggestion about perhaps moving those library specific classes to their own framework, e.g. ERXLog4jExtensions, ERXLog4j2Extensions, ERXLogbackExtensions. We’re still using an ant based build. I’m our code base we split the JavaXML framework into 3 separate frameworks (one for log4j, one for WSDL, and another one for the rest). Regards,Ricardo ParadaOn Jan 27, 2023, at 4:04 AM, René Bock  wrote:




Hi,


I successfully  merged  Henriques PR into our Wonder-fork and we are using log4j2 now for our current projects.


But in order to get rid of the log4j1.jar, we had to move form ant  to maven build. And kick out the JavaXML.framework.


I'll like to support Henrique in finalising this PR, but unfortunately, I got no reply from him :-(




Regards,


René
 


Am 26.01.2023 um 19:11 schrieb Ricardo Parada via Webobjects-dev <webobjects-dev@lists.apple.com>:



Hi Henrique,

It is true that Wonder uses mostly the Apache commons logging library, e.g. org.apache.commons.logging and a little bit of the log4j 1 library, e.g. org.apache.log4j.  That
 is what I concluded b searching *.jar and *.java files in Wonder.


And you mention it in your list of open issues on your pull request, e.g. open issue # 2.8

I do not see Wonder using log4j 2, e.g. org.apache.logging.log4j. So I think technically, it is not affected by vulnerabilities CVE-2021-44228 and CVE-2021-45046 which I’ve been asked to address in our code base.

I am interested in your pull request [1].  I took a look at it and I see you have a couple issues left to resolve. For instance, updating five classes that currently extend log4j1 classes. Any progress on that?

Do you see this being merged to Wonder anytime soon? 
Will you wait until the 3 open issues have all been resolved? 
Is anybody else using it and/or helping you?

I’m thinking of applying your pull request to our version of Wonder to see how well it works with our code base. 

Using slf4j in Wonder and letting the developer choose the actual logging library seems like a winning strategy to me. 

Thank you,
Ricardo Parada


[1] 
https://github.com/wocommunity/wonder/pull/977



On Mar 2, 2022, at 6:55 PM, Henrique Prange via Webobjects-dev <webobjects-dev@lists.apple.com> wrote:


Hey guys! 

I'm replacing the log4j dependency with slf4j in Wonder, as promised. I've created a draft pull request [1] on GitHub so more people can comment, test, and assist me with this change. Please, take a look at it if you have time. Your comments are always welcome.

Cheers,

HP

[1]https://github.com/wocommunity/wonder/pull/977
___
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:
https://lists.apple.com/mailman/options/webobjects-dev/rparada%40mac.com

This email sent to rpar...@mac.com








___
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:
https://lists.apple.com/mailman/options/webobjects-dev/bock%40salient-doremus.de

This email sent to b...@salient-doremus.de








 ___
Do not post admin requests to the list. They will

Re: Replacing log4j with slf4j in Wonder

2023-01-31 Thread Ricardo Parada via Webobjects-dev
Hi René,I’m wondering if he got hired by Apple since I have not seen any activity from him since then.  :-)Anyways, in the coming months I may start trying it out. And possibly start converting some of the appenders and pattern layout classes from log4j1 to log4j2. I found some good articles with examples on how those get implemented for log4j2. I also saw your suggestion about perhaps moving those library specific classes to their own framework, e.g. ERXLog4jExtensions, ERXLog4j2Extensions, ERXLogbackExtensions. We’re still using an ant based build. I’m our code base we split the JavaXML framework into 3 separate frameworks (one for log4j, one for WSDL, and another one for the rest). Regards,Ricardo ParadaOn Jan 27, 2023, at 4:04 AM, René Bock  wrote:




Hi,


I successfully  merged  Henriques PR into our Wonder-fork and we are using log4j2 now for our current projects.


But in order to get rid of the log4j1.jar, we had to move form ant  to maven build. And kick out the JavaXML.framework.


I'll like to support Henrique in finalising this PR, but unfortunately, I got no reply from him :-(




Regards,


René
 


Am 26.01.2023 um 19:11 schrieb Ricardo Parada via Webobjects-dev <webobjects-dev@lists.apple.com>:



Hi Henrique,

It is true that Wonder uses mostly the Apache commons logging library, e.g. org.apache.commons.logging and a little bit of the log4j 1 library, e.g. org.apache.log4j.  That
 is what I concluded b searching *.jar and *.java files in Wonder.


And you mention it in your list of open issues on your pull request, e.g. open issue # 2.8

I do not see Wonder using log4j 2, e.g. org.apache.logging.log4j. So I think technically, it is not affected by vulnerabilities CVE-2021-44228 and CVE-2021-45046 which I’ve been asked to address in our code base.

I am interested in your pull request [1].  I took a look at it and I see you have a couple issues left to resolve. For instance, updating five classes that currently extend log4j1 classes. Any progress on that?

Do you see this being merged to Wonder anytime soon? 
Will you wait until the 3 open issues have all been resolved? 
Is anybody else using it and/or helping you?

I’m thinking of applying your pull request to our version of Wonder to see how well it works with our code base. 

Using slf4j in Wonder and letting the developer choose the actual logging library seems like a winning strategy to me. 

Thank you,
Ricardo Parada


[1] 
https://github.com/wocommunity/wonder/pull/977



On Mar 2, 2022, at 6:55 PM, Henrique Prange via Webobjects-dev <webobjects-dev@lists.apple.com> wrote:


Hey guys! 

I'm replacing the log4j dependency with slf4j in Wonder, as promised. I've created a draft pull request [1] on GitHub so more people can comment, test, and assist me with this change. Please, take a look at it if you have time. Your comments are always welcome.

Cheers,

HP

[1]https://github.com/wocommunity/wonder/pull/977
___
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:
https://lists.apple.com/mailman/options/webobjects-dev/rparada%40mac.com

This email sent to rpar...@mac.com








___
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:
https://lists.apple.com/mailman/options/webobjects-dev/bock%40salient-doremus.de

This email sent to b...@salient-doremus.de








 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Replacing log4j with slf4j in Wonder

2023-01-26 Thread Ricardo Parada via Webobjects-dev
Hi Henrique,

It is true that Wonder uses mostly the Apache commons logging library, e.g. 
org.apache.commons.logging and a little bit of the log4j 1 library, e.g. 
org.apache.log4j.  That is what I concluded b searching *.jar and *.java files 
in Wonder.

And you mention it in your list of open issues on your pull request, e.g. open 
issue # 2.8

I do not see Wonder using log4j 2, e.g. org.apache.logging.log4j. So I think 
technically, it is not affected by vulnerabilities CVE-2021-44228 and 
CVE-2021-45046 which I’ve been asked to address in our code base.

I am interested in your pull request [1].  I took a look at it and I see you 
have a couple issues left to resolve. For instance, updating five classes that 
currently extend log4j1 classes. Any progress on that?

Do you see this being merged to Wonder anytime soon? 
Will you wait until the 3 open issues have all been resolved? 
Is anybody else using it and/or helping you?

I’m thinking of applying your pull request to our version of Wonder to see how 
well it works with our code base. 

Using slf4j in Wonder and letting the developer choose the actual logging 
library seems like a winning strategy to me. 

Thank you,
Ricardo Parada

[1] https://github.com/wocommunity/wonder/pull/977 
<https://github.com/wocommunity/wonder/pull/977>


> On Mar 2, 2022, at 6:55 PM, Henrique Prange via Webobjects-dev 
>  wrote:
> 
> Hey guys! 
> 
> I'm replacing the log4j dependency with slf4j in Wonder, as promised. I've 
> created a draft pull request [1] on GitHub so more people can comment, test, 
> and assist me with this change. Please, take a look at it if you have time. 
> Your comments are always welcome.
> 
> Cheers,
> 
> HP
> 
> [1]https://github.com/wocommunity/wonder/pull/977
> ___
> 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:
> https://lists.apple.com/mailman/options/webobjects-dev/rparada%40mac.com
> 
> This email sent to rpar...@mac.com

 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: ERJGroupsSynchronizer

2022-03-28 Thread Ricardo Parada via Webobjects-dev
Hello, all, here’s a plain text version of my previous email, in case anybody 
had trouble reading it.

I created this subclass to keep EOF in sync within a single java VM:


/**
 * Keeps EOF in sync within a single java VM.
 *
 * Wonder's ProcessChangesQueue seems to takes care of keeping
 * in sync EOF stacks used in other threads.
 */
public class LocalSynchronizer extends ERXRemoteSynchronizer {
 
public LocalSynchronizer(IChangeListener listener) {
super(listener);
}
 
@Override
public void join() throws Throwable { }
 
@Override
public void leave() throws Throwable { }
 
@Override
public void listen() throws Throwable { }
 
@Override
protected void _writeCacheChanges(int transactionID, NSArray 
cacheChanges) throws Throwable
{
// Nothing to write to the group
} 
}



To use it you use these properties:

# Synchronization across EOF stacks (single VM)
#
# NOTE: The maxCoordinator property is needed to trigger the of
# initialization the synchronizer.
#
er.extensions.ERXObjectStoreCoordinatorPool.maxCoordinators=1
er.extensions.remoteSynchronizer.enabled=true
er.extensions.remoteSynchronizer=com.mpv.eof.LocalSynchronizer

Notice that the properties to specify which entities to include / exclude is 
not needed as the filtering of changes by entity seems to be used only when 
deciding which changes to send to remote instances.

Thank you
Ricardo J. Parada



> On Mar 25, 2022, at 5:03 PM, Ricardo Parada via Webobjects-dev 
>  wrote:
> 
> 
> By the way, here’s a synchronizer subclass I wrote to  keep changes in sync 
> within a single java VM.
> 
> 
> /**
>  * Keeps EOF in sync within a single java VM.
>  *
>  * Wonder's ProcessChangesQueue seems to takes care of keeping 
>  * in sync EOF stacks used in other threads.
>  */
> public class LocalSynchronizer extends ERXRemoteSynchronizer {
>  
> public LocalSynchronizer(IChangeListener listener) {
> super(listener);
> }
>  
> @Override
> public void join() throws Throwable { }
>  
> @Override
> public void leave() throws Throwable { }
>  
> @Override
> public void listen() throws Throwable { }
>  
> @Override
> protected void _writeCacheChanges(int transactionID, NSArray 
> cacheChanges) throws Throwable 
> {
> // Nothing to write to the group
> } 
> }
> 
> To use it you use these properties:
> 
> # Synchronization across EOF stacks (single VM)
> #
> # NOTE: The maxCoordinator property is needed to trigger the of
> # initialization the synchronizer.
> #
> er.extensions.ERXObjectStoreCoordinatorPool.maxCoordinators=1
> er.extensions.remoteSynchronizer.enabled=true
> er.extensions.remoteSynchronizer=com.mpv.eof.LocalSynchronizer
> 
> Notice that the properties to specify which entities to include / exclude is 
> not needed as the filtering of changes by entity seems to be used only when 
> deciding which changes to send to remote instances.
> 
> Thank you
> Ricardo J. Parada
> 
> 
>> On Mar 25, 2022, at 4:49 PM, Ricardo Parada via Webobjects-dev 
>> mailto:webobjects-dev@lists.apple.com>> 
>> wrote:
>> 
>> Thank you all for the responses.
>> 
>> When we put the ERJGroupsSynchronizer in production we started receiving 
>> reports of users not being able to access the application instances or 
>> getting kicked out of the application.  I do not know if the 
>> ERJGroupsSynchronizer is the one to blame.  So I think it would be unfair to 
>> blame the problem on ERJGroupsSynchronizer.
>> 
>> We just noticed the these warnings in the console and the first thing we 
>> tried was to disable the synchronizer and the problem seems like it 
>> disappeared after we did that.  
>> 
>> Mar 11, 2022 12:14:10 AM org.jgroups.protocols.UDP setBufferSize
>> WARNING: JGRP15: the send buffer of socket MulticastSocket was set to 
>> 5MB, but the OS only allocated 212.99KB. This might lead to performance 
>> problems. Please set your max send buffer in the OS correctly (e.g. 
>> net.core.wmem_max on Linux)
>> 
>> This seems like it could be fixed by increasing the max send buffer on the 
>> servers.
>> 
>> The testers in our UAT environment noticed the following warnings:
>> 
>> WARNING: JGRP12: discarded message from different cluster 
>> UATClaimScrubber (our cluster is UATContractManager). Sender was 
>> f677bf19-c5e7-a69e-2000-97638a06f579 (received 4 identical messages from 
>> f677bf19-c5e7-a69e-2000-97638a06f579 in the last 64665 ms)
>> 
>> I think this just means that two different instances with a different 
>> application name are using the same multi

Re: ERJGroupsSynchronizer

2022-03-25 Thread Ricardo Parada via Webobjects-dev

By the way, here’s a synchronizer subclass I wrote to  keep changes in sync 
within a single java VM.


/**
 * Keeps EOF in sync within a single java VM.
 *
 * Wonder's ProcessChangesQueue seems to takes care of keeping 
 * in sync EOF stacks used in other threads.
 */
public class LocalSynchronizer extends ERXRemoteSynchronizer {
 
public LocalSynchronizer(IChangeListener listener) {
super(listener);
}
 
@Override
public void join() throws Throwable { }
 
@Override
public void leave() throws Throwable { }
 
@Override
public void listen() throws Throwable { }
 
@Override
protected void _writeCacheChanges(int transactionID, NSArray 
cacheChanges) throws Throwable 
{
// Nothing to write to the group
} 
}

To use it you use these properties:

# Synchronization across EOF stacks (single VM)
#
# NOTE: The maxCoordinator property is needed to trigger the of
# initialization the synchronizer.
#
er.extensions.ERXObjectStoreCoordinatorPool.maxCoordinators=1
er.extensions.remoteSynchronizer.enabled=true
er.extensions.remoteSynchronizer=com.mpv.eof.LocalSynchronizer

Notice that the properties to specify which entities to include / exclude is 
not needed as the filtering of changes by entity seems to be used only when 
deciding which changes to send to remote instances.

Thank you
Ricardo J. Parada


> On Mar 25, 2022, at 4:49 PM, Ricardo Parada via Webobjects-dev 
>  wrote:
> 
> Thank you all for the responses.
> 
> When we put the ERJGroupsSynchronizer in production we started receiving 
> reports of users not being able to access the application instances or 
> getting kicked out of the application.  I do not know if the 
> ERJGroupsSynchronizer is the one to blame.  So I think it would be unfair to 
> blame the problem on ERJGroupsSynchronizer.
> 
> We just noticed the these warnings in the console and the first thing we 
> tried was to disable the synchronizer and the problem seems like it 
> disappeared after we did that.  
> 
> Mar 11, 2022 12:14:10 AM org.jgroups.protocols.UDP setBufferSize
> WARNING: JGRP15: the send buffer of socket MulticastSocket was set to 
> 5MB, but the OS only allocated 212.99KB. This might lead to performance 
> problems. Please set your max send buffer in the OS correctly (e.g. 
> net.core.wmem_max on Linux)
> 
> This seems like it could be fixed by increasing the max send buffer on the 
> servers.
> 
> The testers in our UAT environment noticed the following warnings:
> 
> WARNING: JGRP12: discarded message from different cluster 
> UATClaimScrubber (our cluster is UATContractManager). Sender was 
> f677bf19-c5e7-a69e-2000-97638a06f579 (received 4 identical messages from 
> f677bf19-c5e7-a69e-2000-97638a06f579 in the last 64665 ms)
> 
> I think this just means that two different instances with a different 
> application name are using the same multicast address.  Nothing really 
> harmful.  This could probably be taken care of by setting the group name to 
> the same name on both.
> 
> If I get any additional information I will post my findings.
> 
> Thank you all,
> Ricardo J. Parada
> 
> 
> 
> 
> 
>> On Mar 21, 2022, at 11:28 AM, Steve Peery > <mailto:spe...@icloud.com>> wrote:
>> 
>> I’ve also been using it for years to synchronize instances.
>> 
>> I’m not sure it is going to do what you want. You say you want to use it so 
>> you can update "without resorting to fetching”. I think the synchronization 
>> notifications simply pass the global IDs of the objects that have changed so 
>> they are refetched in the receiving instances.
>> 
>> Steve
>> 
>> 
>> 
>>> On Mar 20, 2022, at 6:21 PM, Paul Hoadley via Webobjects-dev 
>>> mailto:webobjects-dev@lists.apple.com>> 
>>> wrote:
>>> 
>>> Hi Ricardo,
>>> 
>>> On 19 Mar 2022, at 14:25, Ricardo Parada via Webobjects-dev 
>>> mailto:webobjects-dev@lists.apple.com>> 
>>> wrote:
>>> 
>>>> Does anybody use ERJGroupsSynchronizer?
>>> 
>>> We've been using it for years now, albeit with some light modifications to 
>>> allow JGroups to work on AWS (originally via the Meltmedia AWS_PING 
>>> project, but now via our own fork of that since it's essentially 
>>> abandonware).
>>> 
>>>> I’m trying to synchronize two EOF stacks within a single VM. I don’t want 
>>>> the synchronization to happen across application instances. 
>>>> 
>>>> The video from Mike Shrag from a WOWODC conference said it can be single 
>>>> VM or across VM. I’m interested in the single VM but have not yet figured 
>>>> out

Re: ERJGroupsSynchronizer

2022-03-25 Thread Ricardo Parada via Webobjects-dev
Thank you all for the responses.

When we put the ERJGroupsSynchronizer in production we started receiving 
reports of users not being able to access the application instances or getting 
kicked out of the application.  I do not know if the ERJGroupsSynchronizer is 
the one to blame.  So I think it would be unfair to blame the problem on 
ERJGroupsSynchronizer.

We just noticed the these warnings in the console and the first thing we tried 
was to disable the synchronizer and the problem seems like it disappeared after 
we did that.  

Mar 11, 2022 12:14:10 AM org.jgroups.protocols.UDP setBufferSize
WARNING: JGRP15: the send buffer of socket MulticastSocket was set to 5MB, 
but the OS only allocated 212.99KB. This might lead to performance problems. 
Please set your max send buffer in the OS correctly (e.g. net.core.wmem_max on 
Linux)

This seems like it could be fixed by increasing the max send buffer on the 
servers.

The testers in our UAT environment noticed the following warnings:

WARNING: JGRP12: discarded message from different cluster UATClaimScrubber 
(our cluster is UATContractManager). Sender was 
f677bf19-c5e7-a69e-2000-97638a06f579 (received 4 identical messages from 
f677bf19-c5e7-a69e-2000-97638a06f579 in the last 64665 ms)

I think this just means that two different instances with a different 
application name are using the same multicast address.  Nothing really harmful. 
 This could probably be taken care of by setting the group name to the same 
name on both.

If I get any additional information I will post my findings.

Thank you all,
Ricardo J. Parada





> On Mar 21, 2022, at 11:28 AM, Steve Peery  wrote:
> 
> I’ve also been using it for years to synchronize instances.
> 
> I’m not sure it is going to do what you want. You say you want to use it so 
> you can update "without resorting to fetching”. I think the synchronization 
> notifications simply pass the global IDs of the objects that have changed so 
> they are refetched in the receiving instances.
> 
> Steve
> 
> 
> 
>> On Mar 20, 2022, at 6:21 PM, Paul Hoadley via Webobjects-dev 
>> mailto:webobjects-dev@lists.apple.com>> 
>> wrote:
>> 
>> Hi Ricardo,
>> 
>> On 19 Mar 2022, at 14:25, Ricardo Parada via Webobjects-dev 
>> mailto:webobjects-dev@lists.apple.com>> 
>> wrote:
>> 
>>> Does anybody use ERJGroupsSynchronizer?
>> 
>> We've been using it for years now, albeit with some light modifications to 
>> allow JGroups to work on AWS (originally via the Meltmedia AWS_PING project, 
>> but now via our own fork of that since it's essentially abandonware).
>> 
>>> I’m trying to synchronize two EOF stacks within a single VM. I don’t want 
>>> the synchronization to happen across application instances. 
>>> 
>>> The video from Mike Shrag from a WOWODC conference said it can be single VM 
>>> or across VM. I’m interested in the single VM but have not yet figured out 
>>> how to do it. 
>>> 
>>> Basically, I have a background task doing work on a separate EOF stack and 
>>> I want the changes to reflect on the EOF stack used by the user interface 
>>> without resorting to fetching. 
>> 
>> Intra-JVM like that is not a configuration we've used. Can you walk us 
>> through what you've tried and why you think it's not working? There have 
>> been a few others using it over the years, maybe they're still on the list.
>> 
>> 
>> -- 
>> Paul Hoadley
>> https://logicsquad.net/ <https://logicsquad.net/>
>> https://www.linkedin.com/company/logic-squad/ 
>> <https://www.linkedin.com/company/logic-squad/>
>> 
>> ___
>> Do not post admin requests to the list. They will be ignored.
>> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com 
>> <mailto:Webobjects-dev@lists.apple.com>)
>> Help/Unsubscribe/Update your Subscription:
>> https://lists.apple.com/mailman/options/webobjects-dev/speery%40me.com 
>> <https://lists.apple.com/mailman/options/webobjects-dev/speery%40me.com>
>> 
>> This email sent to spe...@me.com <mailto:spe...@me.com>
 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


ERJGroupsSynchronizer

2022-03-18 Thread Ricardo Parada via Webobjects-dev
Hi everyone,

Does anybody use ERJGroupsSynchronizer?

I’m trying to synchronize two EOF stacks within a single VM. I don’t want the 
synchronization to happen across application instances. 

The video from Mike Shrag from a WOWODC conference said it can be single VM or 
across VM. I’m interested in the single VM but have not yet figured out how to 
do it. 

Basically, I have a background task doing work on a separate EOF stack and I 
want the changes to reflect on the EOF stack used by the user interface without 
resorting to fetching. 

Thanks for any help

Ricardo Parada
 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: AjaxAutoComplete in AjaxModalDialog

2021-12-05 Thread Ricardo Parada via Webobjects-dev
Hi Samuel,

Yes that is basically what we did. We rolled back prototype to version 1.7

Regards,
Ricardo

> 
> On Dec 5, 2021, at 8:13 AM, Samuel Pelletier  wrote:
> 
> Hi Ricardo,
> 
> I also noticed the problem outside modal dialog after testing it. After many 
> try and errors, I found a pattern. There is a problem with the latest 
> prototype.js clonePosition when the element is inside a float block (at 
> least).
> 
> I simplified the clone position to use the new (prototype 1.7) Layout 
> functions and it fixes my problems.
> 
> Here is the diff from my GitHub fork, can you give it a try on your apps. If 
> you have good results, I will create a pull request for the main Wonder 
> source.
> 
> https://github.com/wocommunity/wonder/compare/master...spelletier:Fix_prototype_clonePosition?expand=1#diff-b6bffd9eba6821e533154f2617bd3a1c5ec0378a3cbbb2acce98ecd245e3a085
> 
> Regards,
> 
> Samuel
> 
> 
> 
>> Le 4 déc. 2021 à 22:55, Ricardo Parada  a écrit :
>> 
>> Hi Samuel,
>> 
>> That sounds like a problem that we had that was solved by rolling back 
>> prototype.js to version 1.7
>> 
>> I believe wonder uses a more recent version, 1.7.3. We tried 1.7, 1.7.1, 
>> 1.7.2 and 1.7.3. 
>> 
>> I think all versions prior to 1.7.3 fix the display of AjaxAutoComplete. 
>> 
>> By the way, for us, the problem occurred outside ajax modal dialogs too when 
>> the page was scrolled if I remember correctly. 
>> 
>> But we also had other stuff that required Ajax dragging and for that we had 
>> to roll back all the way to the good old 1.7
>> 
>> I think I discussed this problem in the WebObjects slack channel and I may 
>> have included screenshots of what I was seeing. 
>> 
>> Hope that helps. 
>> 
>> Sent from my iPhone
>> 
>>>> On Dec 3, 2021, at 3:27 PM, Samuel Pelletier via Webobjects-dev 
>>>>  wrote:
>>> 
>>> Hi,
>>> 
>>> I want to use AjaxAutoComplete inside AjaxModalDialog and usually, it works 
>>> OK. A very strange problem occur when the main page is scrolled though, the 
>>> selection choices are displayed with a vertical distance from the textfield 
>>> that correspond to the vertical scroll of the main page bellow.
>>> 
>>> It seems the javascript code compute this offset and set the absolute 
>>> position using it. This is fine on the scrolled contents but not inside a 
>>> modal dialog.
>>> 
>>> Someone knows a work around for this problem ?
>>> 
>>> Regards,
>>> 
>>> Samuel
>>> 
>>> 
>>> ___
>>> 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:
>>> https://lists.apple.com/mailman/options/webobjects-dev/rparada%40mac.com
>>> 
>>> This email sent to rpar...@mac.com
> 
 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: To-one relationship with propagating primary key

2019-01-24 Thread Ricardo Parada
Hi Aaron,

In my case there cannot be a B without an A and viceversa. So I am okay with 
this behavior. 

Regards
Ricardo 

Sent from my iPhone

> On Jan 13, 2019, at 12:45 PM, Aaron Rosenzweig  wrote:
> 
> Wait a second… thinking about this more.
> 
> If you are going A -> B where A has a primary key and you have a two one 
> relationship to B where you “propagate” primary key - this is a very bad 
> thing!!
> 
> What it means is the PK of A also points to the PK of B… it will always think 
> there is a B… so it “has to” make an EO over there. 
> 
> You would be better off making a new integer FK on A pointing to B. Do not 
> propagate primary key.
> 
> AARON ROSENZWEIG / Chat 'n Bike
> e:  aa...@chatnbike.com  t:  (301) 956-2319   
>   
> 
>>> On Jan 13, 2019, at 12:42 PM, Johann Werner  wrote:
>>> 
>>> 
>>> 
>>> Am 13.01.2019 um 18:37 schrieb Ricardo Parada :
>>> 
>>> When I create A will it have a B set in the to-one?
>> 
>> I think so. It is a lng time ago I used key propagation though.
>> 
>>> 
>>> Ricardo
>>> 
>>>> On Jan 13, 2019, at 12:35 PM, Johann Werner  
>>>> wrote:
>>>> 
>>>> Hi Ricardo,
>>>> 
>>>> don’t fight the system ;-)
>>>> 
>>>> When you have your to-one relationship A -> B with key propagation just 
>>>> create an instance of A and you automatically have a B in place when you 
>>>> check the relationship A.toB(). You just have to (re)use the present B 
>>>> instead of creating and connecting your own B.
>>>> 
>>>> jw
>>>> 
>>>> 
>>>>> Am 13.01.2019 um 13:07 schrieb Ricardo Parada :
>>>>> 
>>>>> Hi Johann,
>>>>> 
>>>>> My workaround is to model the relationship as a to-many propagating the 
>>>>> primary key.   It’s less elegant but at least it works. 
>>>>> 
>>>>> Thanks 
>>>>> Ricardo
>>>>> 
>>>>>> On Jan 13, 2019, at 7:02 AM, Johann Werner  
>>>>>> wrote:
>>>>>> 
>>>>>> Hi Ricardo,
>>>>>> 
>>>>>> when using pk propagation I vaguely remember that EOF is automatically 
>>>>>> creating an instance of the dependent entity. Thus when you create a 
>>>>>> second object B and set the relationship to A the auto created object is 
>>>>>> left without connection.
>>>>>> 
>>>>>> jw
>>>>>> 
>>>>>>> Am 13.01.2019 um 12:44 schrieb Ricardo Parada :
>>>>>>> 
>>>>>>> Hi all,
>>>>>>> 
>>>>>>> I have an entity A with a to-one relationship to entity B. 
>>>>>>> 
>>>>>>> The relationship is setup in eomodeler to propagate it’s primary key 
>>>>>>> from A to B. 
>>>>>>> 
>>>>>>> I then create A and B, insert into editing context and set the to-one 
>>>>>>> relationship in A to point to B. When I save changes EOF is trying to 
>>>>>>> insert TWO instances of B. The second instance of B has NULL in all its 
>>>>>>> properties:
>>>>>>> 
>>>>>>> INSERT INTO HOSTING_COMPANY(CUSTOMER_ID, name) VALUES (?, ?)" 
>>>>>>> withBindings: 1:20462(customerID), 2:"test"(name)>
>>>>>>> 
>>>>>>> INSERT INTO HOSTING_COMPANY(CUSTOMER_ID, name) VALUES (NULL, NULL)
>>>>>>> 
>>>>>>> 
>>>>>>> Is this a know bug? I am using a very old version of Wonder. 
>>>>>>> 
>>>>>>> The relationship is also set up to own the destination and Cascade on 
>>>>>>> Delete. 
>>>>>>> 
>>>>>>> Thanks in advance for any help. 
>>>>>>> 
>>>>>>> Ricardo
>>>>>>> ___
>>>>>>> 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:
>>>>>>> https://lists.apple.com/mailman/options/webobjects-dev/johann.werner%40posteo.de
>>>>>>> 
>>>>>>> This email sent to johann.wer...@posteo.de
>>>>>> 
>>>>> 
>>>> 
>>> 
>> 
>> ___
>> 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:
>> https://lists.apple.com/mailman/options/webobjects-dev/aaron%40chatnbike.com
>> 
>> This email sent to aa...@chatnbike.com
> 
 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: To-one relationship with propagating primary key

2019-01-13 Thread Ricardo Parada
Yes it did. That was the problem. And now that you both mention the logic 
behind it makes total sense. 

Thank you Johann and Aaron. 

Ricardo 

> On Jan 13, 2019, at 12:42 PM, Johann Werner  wrote:
> 
> 
> 
>> Am 13.01.2019 um 18:37 schrieb Ricardo Parada :
>> 
>> When I create A will it have a B set in the to-one?
> 
> I think so. It is a lng time ago I used key propagation though.
> 
>> 
>> Ricardo
>> 
>>> On Jan 13, 2019, at 12:35 PM, Johann Werner  wrote:
>>> 
>>> Hi Ricardo,
>>> 
>>> don’t fight the system ;-)
>>> 
>>> When you have your to-one relationship A -> B with key propagation just 
>>> create an instance of A and you automatically have a B in place when you 
>>> check the relationship A.toB(). You just have to (re)use the present B 
>>> instead of creating and connecting your own B.
>>> 
>>> jw
>>> 
>>> 
>>>> Am 13.01.2019 um 13:07 schrieb Ricardo Parada :
>>>> 
>>>> Hi Johann,
>>>> 
>>>> My workaround is to model the relationship as a to-many propagating the 
>>>> primary key.   It’s less elegant but at least it works. 
>>>> 
>>>> Thanks 
>>>> Ricardo
>>>> 
>>>>> On Jan 13, 2019, at 7:02 AM, Johann Werner  
>>>>> wrote:
>>>>> 
>>>>> Hi Ricardo,
>>>>> 
>>>>> when using pk propagation I vaguely remember that EOF is automatically 
>>>>> creating an instance of the dependent entity. Thus when you create a 
>>>>> second object B and set the relationship to A the auto created object is 
>>>>> left without connection.
>>>>> 
>>>>> jw
>>>>> 
>>>>>> Am 13.01.2019 um 12:44 schrieb Ricardo Parada :
>>>>>> 
>>>>>> Hi all,
>>>>>> 
>>>>>> I have an entity A with a to-one relationship to entity B. 
>>>>>> 
>>>>>> The relationship is setup in eomodeler to propagate it’s primary key 
>>>>>> from A to B. 
>>>>>> 
>>>>>> I then create A and B, insert into editing context and set the to-one 
>>>>>> relationship in A to point to B. When I save changes EOF is trying to 
>>>>>> insert TWO instances of B. The second instance of B has NULL in all its 
>>>>>> properties:
>>>>>> 
>>>>>> INSERT INTO HOSTING_COMPANY(CUSTOMER_ID, name) VALUES (?, ?)" 
>>>>>> withBindings: 1:20462(customerID), 2:"test"(name)>
>>>>>> 
>>>>>> INSERT INTO HOSTING_COMPANY(CUSTOMER_ID, name) VALUES (NULL, NULL)
>>>>>> 
>>>>>> 
>>>>>> Is this a know bug? I am using a very old version of Wonder. 
>>>>>> 
>>>>>> The relationship is also set up to own the destination and Cascade on 
>>>>>> Delete. 
>>>>>> 
>>>>>> Thanks in advance for any help. 
>>>>>> 
>>>>>> Ricardo
>>>>>> ___
>>>>>> 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:
>>>>>> https://lists.apple.com/mailman/options/webobjects-dev/johann.werner%40posteo.de
>>>>>> 
>>>>>> This email sent to johann.wer...@posteo.de
>>>>> 
>>>> 
>>> 
>> 
> 

 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: To-one relationship with propagating primary key

2019-01-13 Thread Ricardo Parada
When I create A will it have a B set in the to-one?

Ricardo

> On Jan 13, 2019, at 12:35 PM, Johann Werner  wrote:
> 
> Hi Ricardo,
> 
> don’t fight the system ;-)
> 
> When you have your to-one relationship A -> B with key propagation just 
> create an instance of A and you automatically have a B in place when you 
> check the relationship A.toB(). You just have to (re)use the present B 
> instead of creating and connecting your own B.
> 
> jw
> 
> 
>> Am 13.01.2019 um 13:07 schrieb Ricardo Parada :
>> 
>> Hi Johann,
>> 
>> My workaround is to model the relationship as a to-many propagating the 
>> primary key.   It’s less elegant but at least it works. 
>> 
>> Thanks 
>> Ricardo
>> 
>>> On Jan 13, 2019, at 7:02 AM, Johann Werner  wrote:
>>> 
>>> Hi Ricardo,
>>> 
>>> when using pk propagation I vaguely remember that EOF is automatically 
>>> creating an instance of the dependent entity. Thus when you create a second 
>>> object B and set the relationship to A the auto created object is left 
>>> without connection.
>>> 
>>> jw
>>> 
>>>> Am 13.01.2019 um 12:44 schrieb Ricardo Parada :
>>>> 
>>>> Hi all,
>>>> 
>>>> I have an entity A with a to-one relationship to entity B. 
>>>> 
>>>> The relationship is setup in eomodeler to propagate it’s primary key from 
>>>> A to B. 
>>>> 
>>>> I then create A and B, insert into editing context and set the to-one 
>>>> relationship in A to point to B. When I save changes EOF is trying to 
>>>> insert TWO instances of B. The second instance of B has NULL in all its 
>>>> properties:
>>>> 
>>>> INSERT INTO HOSTING_COMPANY(CUSTOMER_ID, name) VALUES (?, ?)" 
>>>> withBindings: 1:20462(customerID), 2:"test"(name)>
>>>> 
>>>> INSERT INTO HOSTING_COMPANY(CUSTOMER_ID, name) VALUES (NULL, NULL)
>>>> 
>>>> 
>>>> Is this a know bug? I am using a very old version of Wonder. 
>>>> 
>>>> The relationship is also set up to own the destination and Cascade on 
>>>> Delete. 
>>>> 
>>>> Thanks in advance for any help. 
>>>> 
>>>> Ricardo
>>>> ___
>>>> 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:
>>>> https://lists.apple.com/mailman/options/webobjects-dev/johann.werner%40posteo.de
>>>> 
>>>> This email sent to johann.wer...@posteo.de
>>> 
>> 
> 

 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: To-one relationship with propagating primary key

2019-01-13 Thread Ricardo Parada
Hi Johann,

My workaround is to model the relationship as a to-many propagating the primary 
key.   It’s less elegant but at least it works. 

Thanks 
Ricardo

> On Jan 13, 2019, at 7:02 AM, Johann Werner  wrote:
> 
> Hi Ricardo,
> 
> when using pk propagation I vaguely remember that EOF is automatically 
> creating an instance of the dependent entity. Thus when you create a second 
> object B and set the relationship to A the auto created object is left 
> without connection.
> 
> jw
> 
>> Am 13.01.2019 um 12:44 schrieb Ricardo Parada :
>> 
>> Hi all,
>> 
>> I have an entity A with a to-one relationship to entity B. 
>> 
>> The relationship is setup in eomodeler to propagate it’s primary key from A 
>> to B. 
>> 
>> I then create A and B, insert into editing context and set the to-one 
>> relationship in A to point to B. When I save changes EOF is trying to insert 
>> TWO instances of B. The second instance of B has NULL in all its properties:
>> 
>> INSERT INTO HOSTING_COMPANY(CUSTOMER_ID, name) VALUES (?, ?)" withBindings: 
>> 1:20462(customerID), 2:"test"(name)>
>> 
>> INSERT INTO HOSTING_COMPANY(CUSTOMER_ID, name) VALUES (NULL, NULL)
>> 
>> 
>> Is this a know bug? I am using a very old version of Wonder. 
>> 
>> The relationship is also set up to own the destination and Cascade on 
>> Delete. 
>> 
>> Thanks in advance for any help. 
>> 
>> Ricardo
>> ___
>> 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:
>> https://lists.apple.com/mailman/options/webobjects-dev/johann.werner%40posteo.de
>> 
>> This email sent to johann.wer...@posteo.de
> 

 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


To-one relationship with propagating primary key

2019-01-13 Thread Ricardo Parada
Hi all,

I have an entity A with a to-one relationship to entity B. 

The relationship is setup in eomodeler to propagate it’s primary key from A to 
B. 

 I then create A and B, insert into editing context and set the to-one 
relationship in A to point to B. When I save changes EOF is trying to insert 
TWO instances of B. The second instance of B has NULL in all its properties:

INSERT INTO HOSTING_COMPANY(CUSTOMER_ID, name) VALUES (?, ?)" withBindings: 
1:20462(customerID), 2:"test"(name)>

INSERT INTO HOSTING_COMPANY(CUSTOMER_ID, name) VALUES (NULL, NULL)
 

Is this a know bug? I am using a very old version of Wonder. 

The relationship is also set up to own the destination and Cascade on Delete. 

Thanks in advance for any help. 

Ricardo
 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Problem calling NSBundle.bundleForClass from junit test code

2018-09-18 Thread Ricardo Parada
Hi all,

I am running a junit test case. The code there wants to load a file that 
resides in the Resources folder from the framework bundle. That framework is 
where the class I am testing and the junit class reside.  

However, this returns null:

NSBundle bundle = NSBundle.bundleForClass(MyClass.class):

Any ideas?

Thanks
Ricardo Parada
 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Looking towards JDK 9, 10

2018-04-30 Thread Ricardo Parada
Hi Paul

We are using 8. 



> On Apr 30, 2018, at 7:11 AM, Paul Hoadley  wrote:
> 
> Hello,
> 
> Just out of curiosity, has anyone experimented with migration to JDK 9 or 10? 
> There are a handful of usages of internal APIs in both the WebObjects JARs, 
> as well as ERExtensions and ERProfiling. (Some of those would be easily 
> replaced in Wonder, and jdeps gives alternatives. I take it Signal and 
> SignalHandler are still present in JDK 9, though jdeps (from JDK 8) is saying 
> Resource and URLClassPath have been removed, and would need suitable 
> alternatives found. I'm not sure what the path would be for the offending 
> classes in WebObjects.)
> 
> Has anyone looked at this, or is JDK 8 likely to be the end of the road?
> 
> 
> -- 
> Paul Hoadley
> https://logicsquad.net/
> https://www.linkedin.com/company/logic-squad/
> 
> ___
> 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:
> https://lists.apple.com/mailman/options/webobjects-dev/rparada%40mac.com
> 
> This email sent to rpar...@mac.com
 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


WOLips error: The class for 'XYZ' is either missing or does not extend WOElement

2018-04-04 Thread Ricardo Parada
Hi all,

For a long time I’ve seen error messages such as the one below when in the WO 
component editor in WOLips in Eclipse:

The class for 'AjaxModalDialogOpener' is either missing or does not extend 
WOElement.

Does anybody know why that is?  Is this a known bug or am I doing something 
wrong? The Ajax framework is in the class path of the framework that uses the 
AjaxModialDialogOpener.

Thanks
Ricardo Parada

 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Strange error

2018-03-17 Thread Ricardo Parada
Hi Michael,

It appears one of the objects being saved is for a read only entity.  Can you 
tell if that is what is going on?

Ricardo


> On Mar 17, 2018, at 11:34 AM, Michael Kondratov  
> wrote:
> 
> Hello!
>   I am getting a new strange error in our new WO application:
> 
> java.lang.NullPointerException
> at 
> com.webobjects.eoaccess.EODatabaseContext._verifyNoChangesToReadonlyEntity(EODatabaseContext.java:4700)
> at 
> com.webobjects.eoaccess.EODatabaseContext.performChanges(EODatabaseContext.java:6187)
> at 
> com.webobjects.eocontrol.EOObjectStoreCoordinator.saveChangesInEditingContext(EOObjectStoreCoordinator.java:376)
> at 
> com.webobjects.eocontrol.EOEditingContext.saveChanges(EOEditingContext.java:3192)
> at er.extensions.eof.ERXEC._saveChanges(ERXEC.java:1178)
> at er.extensions.eof.ERXEC.saveChanges(ERXEC.java:1099)
> 
> 
> Would any one know what is causing it?
> 
> Thank you!
> 
> 
> Michael
> ___
> 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:
> https://lists.apple.com/mailman/options/webobjects-dev/rparada%40mac.com
> 
> This email sent to rpar...@mac.com
 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: AjaxAutoComolete - scroll bar in results?

2017-12-20 Thread Ricardo Parada
I got the scroll bar to show with some CSS:

div.auto_complete {
max-height: 30em;
overflow: auto;
}



> On Dec 18, 2017, at 4:05 PM, Ricardo Parada  wrote:
> 
> Hi all,
> 
> Does anybody know if there is a way to have the AjaxAutoComplete component to 
> display a scroll bar when displaying the list of autocomplete matches?
> 
> Thanks
> Ricardo Parada
> ___
> 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:
> https://lists.apple.com/mailman/options/webobjects-dev/rparada%40mac.com
> 
> This email sent to rpar...@mac.com
 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


AjaxAutoComolete - scroll bar in results?

2017-12-18 Thread Ricardo Parada
Hi all,

Does anybody know if there is a way to have the AjaxAutoComplete component to 
display a scroll bar when displaying the list of autocomplete matches?

Thanks
Ricardo Parada
 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: File update issues with Eclipse

2017-12-08 Thread Ricardo Parada
Hi Markus,

I’ve seen the problem you have described when editing WO components. I don’t 
know what causes it. When it tells me that the file has changed and whether I 
want to reload it I usually just say no because I know I have not changed the 
file from underneath Eclipse.  

Ricardo Parada


> On Dec 8, 2017, at 6:29 PM, Hugi Thordarson  wrote:
> 
> Hi Markus,
> no real help here, just adding some info: I've noticed this happening in 
> another app recently (TextWrangler). But I'm running on High Sierra and 
> thought it was related to changes in file APIs there.
> 
> Haven't noticed this in Eclipse though. Do you have "Refresh using native 
> hooks or polling" on in your Workspace preferences? I found that to help with 
> similar problems in the past.
> 
> - hugi
> 
> 
> 
>> On 8 Dec 2017, at 12:09, Markus Ruggiero  wrote:
>> 
>> I am having a really bad time with Eclipse and WO Editor and Entity Modeler. 
>> (Eclipse 7.71a Oxygen with WOLips 4.7.20170731.3) on macOS Sierra 12.6.
>> 
>> When I edit a WOComponent, switch to the java file, switch back and forth, 
>> very often I get alerted that there are changes on the file system and 
>> whether I want to reload from disk or (in the case of trying to save) 
>> overwrite what has changed on disk. Anyone seen this, too? Is there a way to 
>> switch that off (whatever "that" is)? I am often thorougly confused and do 
>> never exactly know which button to press. Depending on the context (reload 
>> from disk or overwrite disk) I need to pick one or the other option.
>> 
>> I have experienced maybe related effects in Entity Modeler. Sometimes it 
>> gets confused by edits, particularly when renaming entities, and corrupts 
>> the model. The entity is still listed in index.eomodel but the corresponding 
>> plist is gone. This happens on save. As long as I do not save everything is 
>> there (in memory). And even when saving as long as I don't close Entity 
>> Modeler things continue to work. Thus possibly an intermediate save action 
>> already corrupts the model on disk.
>> 
>> Are these bugs in WOLips? Or in Eclipse? 
>> Thanks for any ideas and maybe tips for workarounds
>> 
>> ---markus---
>> 
>> 
>> ___
>> 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:
>> https://lists.apple.com/mailman/options/webobjects-dev/hugi%40karlmenn.is
>> 
>> This email sent to h...@karlmenn.is
> 
> ___
> 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:
> https://lists.apple.com/mailman/options/webobjects-dev/rparada%40mac.com
> 
> This email sent to rpar...@mac.com
 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Wonder 7 is out!

2017-11-05 Thread Ricardo Parada
Thank you all involved.


> On Nov 5, 2017, at 2:18 PM, Theodore Petrosky  wrote:
> 
> Thank you!!!
> 
> More than you know!!!
> 
> 
>> On Nov 4, 2017, at 5:39 PM, Johann Werner  wrote:
>> 
>> Hi everyone,
>> 
>> for a long time the next big Wonder iteration has been worked on and 
>> probably used or tested by many of us already. Today the waiting is over and 
>> Wonder 7.0 has got its official status.
>> 
>> That release focuses on removal of deprecated elements, clean up of lot of 
>> things. But most important change is the move to Java 8. So be sure you meet 
>> this requirement during upgrade!
>> 
>> Head to https://github.com/wocommunity/wonder/releases/tag/wonder-7.0 to get 
>> the changelog to see a rough overview of all changes that await you. If you 
>> are thinking of migrating from Wonder 6 to 7 be sure to look into github 
>> wiki at 
>> https://github.com/wocommunity/wonder/wiki/Migration-Guide-Wonder-6-to-7 
>> what you might adapt, exchange, or replace in your code and templates.
>> 
>> Thanks to all committers giving back what we all get out of Wonder: ideas, 
>> time savers, and solutions. Special thanks to Paul, Henrique, and Maik for 
>> their time and help getting this release out to all of us.
>> 
>> jw
>> ___
>> 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:
>> https://lists.apple.com/mailman/options/webobjects-dev/tedpet5%40yahoo.com
>> 
>> This email sent to tedp...@yahoo.com
> 
> ___
> 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:
> https://lists.apple.com/mailman/options/webobjects-dev/rparada%40mac.com
> 
> This email sent to rpar...@mac.com
 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: javax.swing.JFileChooser vs. WOFileUpload etc

2017-11-02 Thread Ricardo Parada
Hi Kwasi,

I think there’s also AjaxFlexibleFileUpload. 

Ricardo

> On Nov 2, 2017, at 5:06 PM, Kwasi O-Ahoofe  wrote:
> 
> Has anyone successfully used/implemented Java File Chooser, using 
> javax.swing.JFileChooser in ProjectWonder component app?
> Just wondering, since javax.swing.JFileChooser seems simple in Java apps, to 
> access the server’s file system…hmmm
> Thanks
> 
> Kwasi
 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Is Wonder's javadoc down?

2017-05-02 Thread Ricardo Parada
Great job. Thanks!!!


> On May 2, 2017, at 2:40 PM, Musall, Maik  wrote:
> 
> Thanks Johann,
> 
> javadocs are up again! Great job!
> 
> https://jenkins.wocommunity.org/job/Wonder7/lastSuccessfulBuild/javadoc/index.html
> 
> I also had to adjust Jenkins' Content Security Policy [1], because it 
> wouldn't show much otherwise with a newer Jenkins version. Safari is still 
> complaining about the Javascripts, but the site does mostly work. Is it ok 
> like it is now?
> 
> Maik
> 
> 
> [1] 
> https://wiki.jenkins-ci.org/display/JENKINS/Configuring+Content+Security+Policy
> 
> http://stackoverflow.com/questions/34315723/blocked-script-execution-in-url-because-the-documents-frame-is-sandboxed-and#34372607
> 
> 
>> Am 02.05.2017 um 16:20 schrieb Johann Werner :
>> 
>> Hi Maik,
>> 
>> finally I had a look at the Javadoc problem and I could identify the cause 
>> of the problem. In one of those package.html file theres was some Javascript 
>> code hidden—in this case as simple as javascript:void(0)—which made the 
>> Javadoc task to stop execution and thus did prevent creation of the missing 
>> html files we were searching for.
>> 
>> Besides some other little fixes I removed that Javascript and voila I am 
>> getting all files I had expected. I just pushed a commit on master, please 
>> check if it is correctly building the Javadoc files on the Jenkins server.
>> 
>> jw
>> 
>> 
>>> Am 06.04.2017 um 10:26 schrieb Musall, Maik :
>>> 
>>> Hey guys,
>>> 
>>> seems like no one is able to help. But now I tried generating the javadocs 
>>> on the console, and when I do "ant docs", I also end up with a directory 
>>> dist/wonder/Documentation/api that only contains com and er subdirectories, 
>>> but no index.html and stuff.
>>> 
>>> (I also had encoding errors to overcome because ant would see utf-8 sources 
>>> as ascii, fix is in https://github.com/maiksd/wonder/tree/docs-fixes.)
>>> 
>>> Now, if someone can help resolving this to a point that javadocs can be 
>>> build on the console from the current wonder repo, I might be able to take 
>>> it from there.
>>> 
>>> Maik
>>> 
>>> 
 Am 28.03.2017 um 20:24 schrieb Musall, Maik :
 
 Hi Johann,
 
 here's the config.xml from the Wonder7 job. It's basically the same as on 
 the old Jenkins. (I hope this attachment makes it through the mailing list 
 server.)
 
 Maik
 
>>> 
 
 
 
> Am 28.03.2017 um 15:07 schrieb Johann Werner :
> 
> Hi Maik,
> 
> can you tell us what Jenkins config you did? Perhaps screenshots of the 
> job configuration page? You should not need any special plugins to create 
> the Javadocs, just the existing Wonder build.xml, ant and the correct job 
> setup ;-)
> 
> jw
> 
> 
>> Am 22.03.2017 um 01:16 schrieb Maik Musall :
>> 
>> Hi Paul,
>> 
>> I mainly copied the old config over, but the previous jenkins version 
>> was very old, and this one is now current. I don’t know if that could 
>> influence things. I tend to think it doesn’t. But perhaps I’m missing 
>> some plugin or something.
>> 
>> Maik
>> 
>>> Am 22.03.2017 um 00:50 schrieb Paul Hoadley :
>>> 
>>> Hi Maik,
>>> 
 On 22 Mar 2017, at 01:40, Musall, Maik  wrote:
 
 In regard to the javadoc, I mostly get the same result in jenkins as I 
 get with a local cmdline build. I was hoping someone with better ant 
 skills can take a look.
>>> 
>>> I’ve never tried to build the Javadocs from source, but it must be 
>>> doable. Maik, were you able to copy over the configuration from the old 
>>> Jenkins instance, or have you had to set this up from scratch? Pascal, 
>>> do you have a few minutes to take a look at some stage?
>>> 
>>> 
>>> --
>>> Paul Hoadley
>>> http://logicsquad.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:
 https://lists.apple.com/mailman/options/webobjects-dev/maik%40selbstdenker.ag
 
 This email sent to m...@selbstdenker.ag
> 
> ___
> 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:
> https://lists.apple.com/mailman/options/webobjects-dev/rparada%40mac.com
> 
> This email sent to rpar...@mac.com
 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Can EOF stream from file to database?

2017-04-06 Thread Ricardo Parada
Minor correction to EOF code below:

File file = …;
FileInputStream stream = new FileInputStream(file);
NSData data = new NSData(stream, 1024);
FileContent fileContent = FileContent.create(editingContext);
fileContent.setContent(data);
editingContext.saveChanges();



> On Apr 6, 2017, at 7:03 PM, Ricardo Parada  wrote:
> 
> Hi all,
> 
> Using JDBC I can stream the contents of a file to the database as follows:
> 
> File file = …;
> FileInputStream stream = new FileInputStream(file);
> PreparedStatement ps = connection.prepareStatement("INSERT INTO FILE_CONTENT 
> (ID, CONTENT) VALUES (?,?)");
> ps.setString(1, fileContentID);
> ps.setBinaryStream(2, stream, (int)file.length());
> ps.execute();
> ps.close();
> connection.close();
> 
> Is it possible to do something similar in EOF.  I thought that maybe if I 
> created the NSData like this:
> 
> File file = …;
> FileInputStream stream = new FileInputStream(file);
> NSData data = new NSData(stream, 1024);
> FileContent fileContent = FileContent.create(editingContext);
> mimeContent.setContent(data);
> editingContext.saveChanges();
> 
> However, creating the NSData object with the stream seems to read all the 
> data into memory.
> 
> Is it possible to do this in EOF?  I'd prefer to use EOF so that I don't have 
> to create a new connection to the database to do this.
> 
> Thanks
> Ricardo Parada
> 
> ___
> 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:
> https://lists.apple.com/mailman/options/webobjects-dev/rparada%40mac.com
> 
> This email sent to rpar...@mac.com

 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Can EOF stream from file to database?

2017-04-06 Thread Ricardo Parada
Hi all,

Using JDBC I can stream the contents of a file to the database as follows:

File file = …;
FileInputStream stream = new FileInputStream(file);
PreparedStatement ps = connection.prepareStatement("INSERT INTO FILE_CONTENT 
(ID, CONTENT) VALUES (?,?)");
ps.setString(1, fileContentID);
ps.setBinaryStream(2, stream, (int)file.length());
ps.execute();
ps.close();
connection.close();

Is it possible to do something similar in EOF.  I thought that maybe if I 
created the NSData like this:

File file = …;
FileInputStream stream = new FileInputStream(file);
NSData data = new NSData(stream, 1024);
FileContent fileContent = FileContent.create(editingContext);
mimeContent.setContent(data);
editingContext.saveChanges();

However, creating the NSData object with the stream seems to read all the data 
into memory.

Is it possible to do this in EOF?  I'd prefer to use EOF so that I don't have 
to create a new connection to the database to do this.

Thanks
Ricardo Parada

 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: wiki down??

2017-04-02 Thread Ricardo Parada
What link do you use to access it? Maybe my bookmark is outdated. 

Thanks

Sent from my iPhone

> On Apr 2, 2017, at 7:18 PM, Theodore Petrosky  wrote:
> 
> I see it as up and beautiful!!!
> 
> 
> 
> 
>> On Apr 2, 2017, at 7:15 PM, Ricardo Parada  wrote:
>> 
>> The Wonder javadoc is still down right?
>> 
>> Sent from my iPhone
>> 
>>> On Apr 2, 2017, at 2:17 PM, Pascal Robert  wrote:
>>> 
>>> It’s up now.
>>> 
>>>> Le 2 avr. 2017 à 05:45, Musall, Maik  a écrit :
>>>> 
>>>> Hi,
>>>> 
>>>> the entire server is down. I can't even ssh into it. Someone with access 
>>>> to the hypervisor needs to take care of that.
>>>> 
>>>> Maik
>>>> 
>>>>> Am 02.04.2017 um 09:48 schrieb Paul Hoadley :
>>>>> 
>>>>> Hi Maik,
>>>>> 
>>>>>> On 31 Mar 2017, at 8:42 am, Musall, Maik  wrote:
>>>>>> 
>>>>>> It's back up again now.
>>>>> 
>>>>> Has it fallen over again?
>>>>> 
>>>>> 
>>>>> -- 
>>>>> Paul Hoadley
>>>>> http://logicsquad.net/
>>>>> https://www.linkedin.com/company/logic-squad/
>>>>> 
>>>>> 
>>>>> 
>>>> 
>>>> 
>>>> ___
>>>> 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:
>>>> https://lists.apple.com/mailman/options/webobjects-dev/probert%40macti.ca
>>>> 
>>>> This email sent to prob...@macti.ca
>>> 
>>> 
>>> ___
>>> 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:
>>> https://lists.apple.com/mailman/options/webobjects-dev/rparada%40mac.com
>>> 
>>> This email sent to rpar...@mac.com
>> 
>> ___
>> 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:
>> https://lists.apple.com/mailman/options/webobjects-dev/tedpet5%40yahoo.com
>> 
>> This email sent to tedp...@yahoo.com
> 
 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: wiki down??

2017-04-02 Thread Ricardo Parada
The Wonder javadoc is still down right?

Sent from my iPhone

> On Apr 2, 2017, at 2:17 PM, Pascal Robert  wrote:
> 
> It’s up now.
> 
>> Le 2 avr. 2017 à 05:45, Musall, Maik  a écrit :
>> 
>> Hi,
>> 
>> the entire server is down. I can't even ssh into it. Someone with access to 
>> the hypervisor needs to take care of that.
>> 
>> Maik
>> 
>>> Am 02.04.2017 um 09:48 schrieb Paul Hoadley :
>>> 
>>> Hi Maik,
>>> 
 On 31 Mar 2017, at 8:42 am, Musall, Maik  wrote:
 
 It's back up again now.
>>> 
>>> Has it fallen over again?
>>> 
>>> 
>>> -- 
>>> Paul Hoadley
>>> http://logicsquad.net/
>>> https://www.linkedin.com/company/logic-squad/
>>> 
>>> 
>>> 
>> 
>> 
>> ___
>> 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:
>> https://lists.apple.com/mailman/options/webobjects-dev/probert%40macti.ca
>> 
>> This email sent to prob...@macti.ca
> 
> 
> ___
> 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:
> https://lists.apple.com/mailman/options/webobjects-dev/rparada%40mac.com
> 
> This email sent to rpar...@mac.com

 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: Weird problem with ERXGenericRecord

2017-04-01 Thread Ricardo Parada
Hi Markus,

I ran into that problem before with a restricting qualifier in one of our 
entities.  I fixed it by doing what Fabian suggested.

Ricardo


> On Apr 1, 2017, at 2:18 AM, Fabian Peters  wrote:
> 
> Hi Markus,
> 
> To me it looks like you're getting bitten by the 
> "applyRestrictingQualifierOnInsert" feature:
> 
> ## Specifies that you want restricting qualifiers "applied" to your newly
> ## inserted objects.  For instance, if you have an entity that is part of
> ## single table inheritance and your restricting qualifier only uses 
> ## EOAndQualifiers and EOKeyValueQualifiers, ERX can interpret the qualifier
> ## and make your EO's automatically match the restricting qualifier.  This
> ## allows you to skip the awakeFromInsertion step where you have to remember
> ## to make your EO match the restricting qualifier you chose in your model. 
> # er.extensions.ERXEnterpriseObject.applyRestrictingQualifierOnInsert=true
> 
> The makeQualifierTrue method in ERXEOControlUtilities is not able to handle 
> your case (and apparently shouldn't). Overriding 
> applyRestrictingQualifierOnInsert() in ElectronicDocument and returning false 
> should do the trick…
> 
> Fabian
> 
>> Am 31.03.2017 um 22:21 schrieb Markus Ruggiero > >:
>> 
>> In a large project we have used "extends EOGenericRecord" in our 
>> _Entity.java templates.
>> 
>> Just recently we wondered why (probably just an oversight) and changed that 
>> to "extends ERXGenericRecord". Don't see any reason why this should not work.
>> 
>> One of our entities (ElectronicDocument) in the eomodel has the following 
>> qualifier set in the basic properties in Entity Modeler: (product.visible = 
>> 'Y')
>> ElectronicDocument has a to-one relationship to Product called product and a 
>> Product has a char(1) attribute called visible with possible values 'Y' and 
>> 'N'
>> 
>> Or idea is to only ever work with electronic documents that belong to a 
>> visible product. This works with EOGenericRecord but does not when using 
>> ERXGenericRecord. Using ERXGenericRecord ultimately results in the following 
>> crash (dump below). Action was creating a new ElectronicDocument in a D2W 
>> app.
>> 
>> Why?
>> It seems that ERXGenericRecord.takeValueForKey() passes its params without 
>> anything to EOCustomObject.takeValueForKey() which then crashes. It looks as 
>> if the call should go to takeValueForKeyPath() instead or somesuch. Is this 
>> a bug in Wonder? What do I miss?
>> 
>> Thanks for any clarification.
>> 
>> ---markus---
>> 
>> 
>> 
>> Application: ec_admin 
>> Error:   > message ' 
>> takeValueForKey(): attempt to assign value to unknown key: 
>> 'product.visible'. This class does not have an instance variable of the name 
>> product.visible or _product.visible, nor a method of the name 
>> setProduct.visible or _setProduct.visible' object 
>> '' key 'product.visible'> 
>> Reason:   
>> takeValueForKey(): attempt to assign value to unknown key: 
>> 'product.visible'. This class does not have an instance variable of the name 
>> product.visible or _product.visible, nor a method of the name 
>> setProduct.visible or _setProduct.visible 
>> Stack trace: 
>> File Line#   Method  Package
>> NSKeyValueCoding.java1399handleTakeValueForUnboundKey
>> com.webobjects.foundation
>> EOCustomObject.java  1562handleTakeValueForUnboundKey
>> com.webobjects.eocontrol
>> NSKeyValueCoding.java519 handleTakeValueForUnboundKey
>> com.webobjects.foundation
>> NSKeyValueCoding.java899 setValueInObject
>> com.webobjects.foundation
>> EOCustomObject.java  1529takeValueForKey com.webobjects.eocontrol
>> ERXGenericRecord.java1253takeValueForKey er.extensions.eof
>> NSKeyValueCoding.java469 takeValueForKey 
>> com.webobjects.foundation
>> ERXEOControlUtilities.java   2190makeQualifierTrue   
>> er.extensions.eof
>> ERXGenericRecord.java513 awakeFromInsertion  
>> er.extensions.eof
>> EOEditingContext.java2871insertObjectWithGlobalID
>> com.webobjects.eocontrol
>> ERXEC.java   978 insertObjectWithGlobalIDer.extensions.eof
>> EOEditingContext.java2889insertObjectcom.webobjects.eocontrol
>> ERXEC.java   989 insertObjecter.extensions.eof
>> ERXEOControlUtilities.java   322 createAndInsertObject   
>> er.extensions.eof
>> ERXEOControlUtilities.java   297 createAndInsertObject   
>> er.extensions.eof
>> ERD2WFactory.java214 _newObjectWithEntityer.directtoweb
>> ERD2WFactory.java225 editPageForNewObjectWithEntityNamed 
>> er.directtoweb
>> MenuHeader.java  78  newObjectAction com.dsm.ec_admin.components
>> NativeMethodAccessorImpl.javaNA  invoke0 sun.reflect
>> NativeMethodAccessorImpl.java62  invoke  sun.reflect
>> DelegatingMethodAccessorImpl.java43  invoke  sun.reflect
>> Method.java  497 invoke  j

Re: Opinion on ERXKey type parameterization

2017-03-27 Thread Ricardo Parada
I have wondered about that too but never put any energy into changing it or 
thinking about what would happen if I changed it. 

Regards,
Ricardo 

> On Mar 27, 2017, at 8:11 PM, Matthew Ness  wrote:
> 
> Hi Paul and list,
> 
> I know when I make custom keys which are to-many, I specify the
> collection in the key:
> 
> public static final ERXKey> BARS = ...
> 
> The template could express this also, but I've never made that change.
> 
> -- 
> Matt
> http://logicsquad.net
> 
> 
>> On Mon, Mar 27, 2017, at 03:10 PM, Paul Hoadley wrote:
>> Hello,
>> 
>> Say I have a ‘Foo' entity, with a to-many relationship ‘bars’ to a ‘Bar’
>> entity. Every Velocity generation template I’ve ever seen will output
>> something like:
>> 
>>  public static final ERXKey BARS = new ERXKey(“bars”);
>> 
>> or, even better:
>> 
>>  public static final ERXKey BARS = new ERXKey(“bars”,
>>  ERXKey.Type.ToManyRelationship);
>> 
>> But shouldn’t ERXKey there be parameterized as ERXKey>?
>> Admittedly, I’m struggling to see where it would make a huge
>> difference—but just for completeness?
>> 
>> 
>> -- 
>> Paul Hoadley
>> http://logicsquad.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:
> https://lists.apple.com/mailman/options/webobjects-dev/rparada%40mac.com
> 
> This email sent to rpar...@mac.com

 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: ERXWOConditional - where does it get installed?

2017-03-23 Thread Ricardo Parada
Hi all,

I'm reporting back.  I noticed my test app had WOConcurrentRequestHandling set 
to false.  Once I turned it on the dynamic elements started being shared across 
the sessions.

Thanks everyone.

Ricardo


> On Mar 21, 2017, at 7:34 PM, Ricardo Parada  wrote:
> 
> 
> Thanks Johann.
> 
> I'm confused because in my test I was seeing 3 x 5 for #3. Each session had 3 
> dynamic elements created.  The dynamic elements started being shared within 
> the same session when I started creating multiple instances of the page. All 
> the pages in the session started using the same three dynamic elements. But 
> other sessions kept on using their own. Each of the 5 sessions was using 
> three.
> 
> So I am not sure why I see that behavior and you see only 3 being created. 
> 
> But if they work as you described #3 then yes I can see trouble big time. 
> 
> To make things worse I have not found great documentation on how they are 
> used by WebObjects. I will take a look at that session that you mentioned. 
> 
> 
>> On Mar 21, 2017, at 6:50 PM, Johann Werner  wrote:
>> 
>> The essence is that a
>> 
>> 1) WOComponent is created for every occurrence within a specific page 
>> template for each session
>> 
>> 2) stateless WOComponent is created once for any number of occurrences 
>> within any page template, additional instances are created if a stateless 
>> component is currently used by a thread and requested by another one
>> 
>> 3) WODynamicElement is created for every occurrence within a specific page 
>> template
>> 
>> 
>> That means that if you have one page where the template uses your component 
>> / element three times and you are serving 5 users you end up with
>> 
>> 1) 3 × 5 = 15
>> 
>> 2) 1 ≤ n ≤ 5
>> 
>> 3) 3
>> 
>> instances of your component / element. For 1) and 2) you can be sure that 
>> during a RR-phase you won’t share an instance with multiple threads (unless 
>> you do some weird things like passing a component instance into a background 
>> thread or stuff like that). However in case 3) those instances are shared 
>> with any thread that requests them which can happen at any time during the 
>> RR-loop where WO does not mind for initialization or cleanup of local values 
>> (that is one point in making those components fast).
>> 
>> jw
>> 
>> 
>>> Am 21.03.2017 um 23:18 schrieb Ricardo Parada :
>>> 
>>> Was that in a session-less app instance perhaps? I have not tested that 
>>> scenario.
>>> 
>>> In my test I do not see dynamic elements being shared across sessions, so 
>>> I'm not seeing exactly how is it that concurrency plays a role in the 
>>> session app scenario where the dynamic elements are not shared with the 
>>> ones from other sessions processing a request at the same time.
>>> 
>>> But again, there may be something else, a property or something that 
>>> affects this sharing that I may be missing.
>>> 
>>> Anyways, the consensus is that it is a bad idea, so I'll follow advise and 
>>> implement it as a WOComponent subclass instead.
>>> 
>>> Thank you all.
>>> 
>>>> On Mar 21, 2017, at 5:34 PM, Chuck Hill  wrote:
>>>> 
>>>> I’ve run into code that did this in the past.  It is very, very much not 
>>>> fun to debug.  You could stash the values in a ThreadLocal or in the 
>>>> context.userInfo().  But don’t ever add state to a WODynamicElement 
>>>> subclass.
>>>> 
>>>> Chuck
>>>> 
>>>> From:  on 
>>>> behalf of Johann Werner 
>>>> Date: Tuesday, March 21, 2017 at 2:19 PM
>>>> To: Ricardo Parada 
>>>> Cc: WebObjectsDev 
>>>> Subject: Re: ERXWOConditional - where does it get installed?
>>>> 
>>>> Hi Ricardo,
>>>> 
>>>> you are ignoring one very important aspect of dynamic components: they 
>>>> must be thread-safe!
>>>> 
>>>> As soon as you are holding local values you will head to a serious mess. 
>>>> In your „manual“ tests of course you probably won’t ever encounter 
>>>> concurrency problems as long as you are not doing sort of automated 
>>>> parallel tests where multiple request are processed concurrently. Just 
>>>> think about why WO uses constructs like WOAssociations in dynamic 
>>>> components which introduce an additional layer of complexity to exchange / 
>>>> access request dependent values.

Re: ERXWOConditional - where does it get installed?

2017-03-21 Thread Ricardo Parada

Thanks Johann.

I'm confused because in my test I was seeing 3 x 5 for #3. Each session had 3 
dynamic elements created.  The dynamic elements started being shared within the 
same session when I started creating multiple instances of the page. All the 
pages in the session started using the same three dynamic elements. But other 
sessions kept on using their own. Each of the 5 sessions was using three.

So I am not sure why I see that behavior and you see only 3 being created. 

But if they work as you described #3 then yes I can see trouble big time. 

To make things worse I have not found great documentation on how they are used 
by WebObjects. I will take a look at that session that you mentioned. 


> On Mar 21, 2017, at 6:50 PM, Johann Werner  wrote:
> 
> The essence is that a
> 
> 1) WOComponent is created for every occurrence within a specific page 
> template for each session
> 
> 2) stateless WOComponent is created once for any number of occurrences within 
> any page template, additional instances are created if a stateless component 
> is currently used by a thread and requested by another one
> 
> 3) WODynamicElement is created for every occurrence within a specific page 
> template
> 
> 
> That means that if you have one page where the template uses your component / 
> element three times and you are serving 5 users you end up with
> 
> 1) 3 × 5 = 15
> 
> 2) 1 ≤ n ≤ 5
> 
> 3) 3
> 
> instances of your component / element. For 1) and 2) you can be sure that 
> during a RR-phase you won’t share an instance with multiple threads (unless 
> you do some weird things like passing a component instance into a background 
> thread or stuff like that). However in case 3) those instances are shared 
> with any thread that requests them which can happen at any time during the 
> RR-loop where WO does not mind for initialization or cleanup of local values 
> (that is one point in making those components fast).
> 
> jw
> 
> 
>> Am 21.03.2017 um 23:18 schrieb Ricardo Parada :
>> 
>> Was that in a session-less app instance perhaps? I have not tested that 
>> scenario.
>> 
>> In my test I do not see dynamic elements being shared across sessions, so 
>> I'm not seeing exactly how is it that concurrency plays a role in the 
>> session app scenario where the dynamic elements are not shared with the ones 
>> from other sessions processing a request at the same time.
>> 
>> But again, there may be something else, a property or something that affects 
>> this sharing that I may be missing.
>> 
>> Anyways, the consensus is that it is a bad idea, so I'll follow advise and 
>> implement it as a WOComponent subclass instead.
>> 
>> Thank you all.
>> 
>>> On Mar 21, 2017, at 5:34 PM, Chuck Hill  wrote:
>>> 
>>> I’ve run into code that did this in the past.  It is very, very much not 
>>> fun to debug.  You could stash the values in a ThreadLocal or in the 
>>> context.userInfo().  But don’t ever add state to a WODynamicElement 
>>> subclass.
>>> 
>>> Chuck
>>> 
>>> From:  on 
>>> behalf of Johann Werner 
>>> Date: Tuesday, March 21, 2017 at 2:19 PM
>>> To: Ricardo Parada 
>>> Cc: WebObjectsDev 
>>> Subject: Re: ERXWOConditional - where does it get installed?
>>> 
>>> Hi Ricardo,
>>> 
>>> you are ignoring one very important aspect of dynamic components: they must 
>>> be thread-safe!
>>> 
>>> As soon as you are holding local values you will head to a serious mess. In 
>>> your „manual“ tests of course you probably won’t ever encounter concurrency 
>>> problems as long as you are not doing sort of automated parallel tests 
>>> where multiple request are processed concurrently. Just think about why WO 
>>> uses constructs like WOAssociations in dynamic components which introduce 
>>> an additional layer of complexity to exchange / access request dependent 
>>> values. Surely not for the fun of it ;-)
>>> 
>>> Of course concurrency problems only show up infrequently and are often not 
>>> reproducible. So depending on the number and activity of your app users you 
>>> could have been just luckily to not run into any problems or—most 
>>> likely—did not notice when you actually hit one of those situations.
>>> 
>>> jw
>>> 
>>> 
>>> PS: If you have access to the recordings of WOWODC 2012 there is actually a 
>>> talk on dynamic elements.
>>> 
>>> 
>>> Am 21.03.2017 um 21:11 schrieb Ricardo Parada :
>>> Hi all,
>>>

Re: ERXWOConditional - where does it get installed?

2017-03-21 Thread Ricardo Parada
Was that in a session-less app instance perhaps? I have not tested that 
scenario. 

In my test I do not see dynamic elements being shared across sessions, so I'm 
not seeing exactly how is it that concurrency plays a role in the session app 
scenario where the dynamic elements are not shared with the ones from other 
sessions processing a request at the same time. 

But again, there may be something else, a property or something that affects 
this sharing that I may be missing. 

Anyways, the consensus is that it is a bad idea, so I'll follow advise and 
implement it as a WOComponent subclass instead. 

Thank you all. 

> On Mar 21, 2017, at 5:34 PM, Chuck Hill  wrote:
> 
> I’ve run into code that did this in the past.  It is very, very much not fun 
> to debug.  You could stash the values in a ThreadLocal or in the 
> context.userInfo().  But don’t ever add state to a WODynamicElement subclass. 
>  
> Chuck
>  
> From:  on behalf 
> of Johann Werner 
> Date: Tuesday, March 21, 2017 at 2:19 PM
> To: Ricardo Parada 
> Cc: WebObjectsDev 
> Subject: Re: ERXWOConditional - where does it get installed?
>  
> Hi Ricardo,
>  
> you are ignoring one very important aspect of dynamic components: they must 
> be thread-safe!
>  
> As soon as you are holding local values you will head to a serious mess. In 
> your „manual“ tests of course you probably won’t ever encounter concurrency 
> problems as long as you are not doing sort of automated parallel tests where 
> multiple request are processed concurrently. Just think about why WO uses 
> constructs like WOAssociations in dynamic components which introduce an 
> additional layer of complexity to exchange / access request dependent values. 
> Surely not for the fun of it ;-)
>  
> Of course concurrency problems only show up infrequently and are often not 
> reproducible. So depending on the number and activity of your app users you 
> could have been just luckily to not run into any problems or—most likely—did 
> not notice when you actually hit one of those situations.
>  
> jw
>  
>  
> PS: If you have access to the recordings of WOWODC 2012 there is actually a 
> talk on dynamic elements.
>  
>  
> Am 21.03.2017 um 21:11 schrieb Ricardo Parada :
> Hi all,
> I’m just reporting back on my findings on whether saving state between 
> appendToResponse and a subsequent takeValuesFromRequest in a dynamic 
> component is bad or not.
> I read Chuck’s Practical WebObjects, p. 193 where it talks about Dynamic 
> Elements.  As he pointed out there, dynamic elements are shared among all 
> instances of a WOComponent subclass.  My MPVWOConditional is implemented as a 
> dynamic element because it extends ERXWOConditional which then extends 
> WODynamicGroup which then extends WODynamicElement.
> To test this I created a Hello app with a single page, Main.wo.  I have three 
> MPVWOConditionals in there.  An instance is created for each occurrence of my 
> MPVWOConditional in Main.  A total of three to be exact.
> I then have a link on Main that calls an action returning a new instance of 
> the page Main:
> public WOActionResults newPage() {
>  return pageWithName(Main.class);
> }
> Every time this newPage() action gets called I can confirm that the 
> constructor in Main gets called, which indicates that a new page is being 
> created every single time this action gets called.
> However, the constructor of the MPVWOConditional is not getting called three 
> times as when the first/second time the page was created.  On the other hand, 
> the appendToResponse() of the MPVWOConditional keeps getting called three 
> times, once for every instance of MPVWOConditional in Main.  The hashCode() 
> of each of these three MPVWOConditional coincides with the ones that were 
> previously created.
> To summarize, when new instances of the page are created, the 
> MPVWOConditionals are being reused on new instances of the page.
> Fortunately, the dynamic components are not shared among page instances from 
> different sessions.  Which makes sense.  The sharing only applies among 
> instances within the same session.
> I can see how some might object to storing this state in the dynamic 
> component.  It has worked like this all this time.  It’s the way it works.
> However, I think it is okay to save this piece of state between an 
> appendToResponse and a subsequent takeValuesFromRequest because the 
> takeValuesFromRequest is being done on the same page that generated the 
> appendToResponse.
> Furthermore, if a new page is created and the components are shared, their 
> appendToResponse will get called and this piece of state will be re-computed 
> and saved awaiting a subsequent takeValuesFromRequest.
> Now, let’s ass

Re: ERXWOConditional - where does it get installed?

2017-03-21 Thread Ricardo Parada
Hi all,

I’m just reporting back on my findings on whether saving state between 
appendToResponse and a subsequent takeValuesFromRequest in a dynamic component 
is bad or not.

I read Chuck’s Practical WebObjects, p. 193 where it talks about Dynamic 
Elements.  As he pointed out there, dynamic elements are shared among all 
instances of a WOComponent subclass.  My MPVWOConditional is implemented as a 
dynamic element because it extends ERXWOConditional which then extends 
WODynamicGroup which then extends WODynamicElement.

To test this I created a Hello app with a single page, Main.wo.  I have three 
MPVWOConditionals in there.  An instance is created for each occurrence of my 
MPVWOConditional in Main.  A total of three to be exact.  

I then have a link on Main that calls an action returning a new instance of the 
page Main:

public WOActionResults newPage() {
return pageWithName(Main.class);
}

Every time this newPage() action gets called I can confirm that the constructor 
in Main gets called, which indicates that a new page is being created every 
single time this action gets called.  

However, the constructor of the MPVWOConditional is not getting called three 
times as when the first/second time the page was created.  On the other hand, 
the appendToResponse() of the MPVWOConditional keeps getting called three 
times, once for every instance of MPVWOConditional in Main.  The hashCode() of 
each of these three MPVWOConditional coincides with the ones that were 
previously created.

To summarize, when new instances of the page are created, the MPVWOConditionals 
are being reused on new instances of the page.

Fortunately, the dynamic components are not shared among page instances from 
different sessions.  Which makes sense.  The sharing only applies among 
instances within the same session.

I can see how some might object to storing this state in the dynamic component. 
 It has worked like this all this time.  It’s the way it works.

However, I think it is okay to save this piece of state between an 
appendToResponse and a subsequent takeValuesFromRequest because the 
takeValuesFromRequest is being done on the same page that generated the 
appendToResponse.  

Furthermore, if a new page is created and the components are shared, their 
appendToResponse will get called and this piece of state will be re-computed 
and saved awaiting a subsequent takeValuesFromRequest.  

Now, let’s assume that instead of submitting a form, a regular action is called 
on the page.  Let’s suppose this action retrieves the previous page from some 
sort of cache and returns that page.  Then that page’s appendToResponse will 
get called and so will the appendToResponse of the  dynamic components being 
shared, which would recompute the condition and save it awaiting a possible 
subsequent takeValuesFromRequest or invokeAction.  Again, this behavior just 
makes the appendToResponse consistent with the 
invokeAction/takeValuesFromRequest phases.

Having this behavior has corrected problems for me.  It is yet to be determined 
whether this will create a problem.  If I find out later that this creates a 
problem I’ll be happy to report back to the group.

But so far, on my tests, it looks like it is okay.

Thanks for all the comments and feedback.

Ricardo



> On Mar 14, 2017, at 10:46 AM, Samuel Pelletier  wrote:
> 
> Ricardo,
> 
> This patch seem dangerous to first. I do not thing it is safe to have state 
> in WODynamicElement. I think they can be reused by the framework.
> 
> The correct way is to make sure the condition does not change during RR loop 
> cycle, same apply to WORepetition list for example.
> 
> Regards,
> 
> Samuel
> 
>> Le 14 mars 2017 à 09:53, Ricardo Parada > <mailto:rpar...@mac.com>> a écrit :
>> 
>> Thanks Samuel.  I see that now.
>> 
>> Have others experienced a problem where a form is submitted and then during 
>> takeValuesFtomTequest a condition that was false when the page was rendered 
>> becomes true all of a sudden causing some input elements (textfields, pop-up 
>> list, etc.) to participate in takeValuesFromRequest even though those 
>> elements were not on the page when the form was submitted? This causes those 
>> elements to be set to null.   I've ran into such bugs in the past many times.
>> 
>> I have been able to prevent that from happening by using the following code: 
>> 
>> 
>> public class MPVWOConditional extends ERXWOConditional {
>> 
>>protected boolean conditionValue = false;
>> 
>>public MPVWOConditional(String name, NSDictionary dict, WOElement 
>> element) {
>>   super(name, dict, element);
>>}
>> 
>>@Override
>>public void appendToResponse(WOResponse woresponse, WOContext wocontext) {
>>   // Cache the condition every time the p

Is Wonder's javadoc down?

2017-03-21 Thread Ricardo Parada
Is Wonder’s javadoc down?  I usually access it using this:

https://jenkins.wocommunity.org/job/WonderIntegration/lastSuccessfulBuild/javadoc/
 


Thanks
Ricardo

 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: KeyValueCoding is coming for Swift!

2017-03-19 Thread Ricardo Parada
Hi Lars,

I just saw that.  It looks very interesting and I’m still trying to assimilate 
that proposal.

I had created something similar to ERXKey in Swift called Key that you use like 
this:

class Person {
static let firstName = Key(“firstName”)
static let lastName = Key(“lastName”)

var firstName: String 
var lastName: String

…
}

Then build a qualifier like this 
Person.lastName.like(“Para*”).and(Person.age.equals(age).  It looks nicer than 
the ALL-CAPS java version, i.e. Person.LAST_NAME.like(“Para*”).  However, when 
you need key paths this model you have to use the similar to ERXKey’s .dot() 
which doesn’t look very elegant.


> On Mar 18, 2017, at 2:15 PM, Lars Sonchocky-Helldorf 
>  wrote:
> 
> For those interested in this: 
> https://lists.swift.org/pipermail/swift-evolution/Week-of-Mon-20170313/033998.html
> 
> Maybe one day we can reimplement WebObjects in Swift.
> 
> 
> regards,
> 
>   Lars
> ___
> 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:
> https://lists.apple.com/mailman/options/webobjects-dev/rparada%40mac.com
> 
> This email sent to rpar...@mac.com


 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: ERXQuery Preview

2017-03-19 Thread Ricardo Parada
All done.  I created feature branches as suggested and used them to create the 
pull requests.

Thanks for the help.

Ricardo


> On Mar 19, 2017, at 3:21 AM, Ricardo Parada  wrote:
> 
> That sounds like what is going on. I'll give that a shot tomorrow. Thanks 
> Chuck. 
> 
> Sent from my iPhone
> 
> On Mar 19, 2017, at 2:59 AM, Chuck Hill  <mailto:ch...@gevityinc.com>> wrote:
> 
>> Hi Ricardo,
>>  
>> You need to create a branch (push from your local) in your GitHub fork of 
>> Wonder for each set of changes in GitHub (aka a Feature Branch), then make a 
>> pull request from that branch to Wonder.  Otherwise all of your changes get 
>> inter-mixed.
>>  
>> Chuck
>>  
>>  
>> From: Ricardo Parada mailto:rpar...@mac.com>>
>> Date: Saturday, March 18, 2017 at 11:22 PM
>> To: "webobjects-dev@lists.apple.com <mailto:webobjects-dev@lists.apple.com>" 
>> mailto:webobjects-dev@lists.apple.com>>
>> Cc: Markus Ruggiero > <mailto:mailingli...@kataputt.com>>, Paul Hoadley > <mailto:pa...@logicsquad.net>>, "koa...@icloud.com 
>> <mailto:koa...@icloud.com>" mailto:koa...@icloud.com>>, 
>> "g...@knuckleheads.net <mailto:g...@knuckleheads.net>" 
>> mailto:g...@knuckleheads.net>>, Chuck Hill 
>> mailto:ch...@gevityinc.com>>, "aa...@chatnbike.com 
>> <mailto:aa...@chatnbike.com>" > <mailto:aa...@chatnbike.com>>
>> Subject: Re: ERXQuery Preview
>>  
>> Hi all, 
>>  
>> As promised, I have committed ERXQuery to my Wonder clone on GitHub, i.e. 
>> rparada/wonder.  I just need help creating the pull request.  :-)
>>  
>> It turns out that I created first a pull request for ERXExtensions.java 
>> unrelated to ERXQuery.  Now when I tried to create the pull request for 
>> ERXQuery it just seems to show the previous pull request.  So I’m not sure 
>> what is going on.  I don’t have much experience with GitHub.
>>  
>> Anyways, the ERXQuery is an additive change to Wonder and consists of only 
>> three files: ERXQuery.java, ERXQueryAttributes and ERXQueryEOAttribute.  
>> It’s the last two commits in rparada/wonder.
>>  
>> I took the time to polish the API a bit more.  I think the API came out 
>> nicer than what I had the first time around.  Specially the single variadic 
>> select() method that allows you to specify EOAttributes, Strings, ERXKeys, 
>> or any Iterable containing these. Same for groupBy().  And the a similar 
>> technique with the orderBy() which can take EOSortOrderings or any Iterable 
>> (ERXSortOrderings, NSArray, List, Collection).
>>  
>> The documentation is more extensive now.  I have included here a copy of the 
>> ERXQuery class from the javadoc tab in my Eclipse.  
>>  
>> I have tested with ORACLE which is the easiest for me to test.  It would be 
>> great to hear others using this with other databases (h2, derby, mssql, 
>> mysql, frontbase, etc.)
>>  
>>  
>> ERXQuery.java
>> Overview
>> This class has a fluent API that mimics a select statement:
>> 
>>   NSArray> records =
>>   ERXQuery.create()
>>   .select (keys)
>>   .from (entity)
>>   .where (qualifier)
>>   .groupBy (groupings)
>>   .having (havingQualifier)
>>   .orderBy (sortings)
>>   .fetch();
>>   
>> It allows you to use EOF/Wonder higher-level constructs (qualifiers, 
>> attributes, orderings, key paths, ERXKeys, etc.) to create a query that 
>> looks like this:
>> 
>>   SELECT ...
>>   FROM ...
>>   WHERE ...
>>   GROUP BY ...
>>   HAVING ...
>>   ORDER BY ...
>>   
>>  
>> Specifying the Attributes to Fetch
>> The select() method is very flexible and powerful. It accepts a variable 
>> number of objects of different types that specify the attributes to fetch. 
>> These objects can be EOAttributes, ERXKeys, Strings. You may also specify 
>> NSArray or List objects containing any combination of these (EOAttributes, 
>> ERXKeys, Strings).
>> 
>> The ERXKeys and String objects correspond to keys and key paths to the 
>> attributes to fetch, i.e. "customer.name". The keys and key paths can also 
>> be relationships to objects, i.e. "customer" which translate into a fetch of 
>> foreign keys used to build object faults and return them in the results.
>> 
>> You may call the select() method multiple times to keep adding to the list 
>> of attributes t

Re: ERXQuery Preview

2017-03-19 Thread Ricardo Parada
That sounds like what is going on. I'll give that a shot tomorrow. Thanks 
Chuck. 

Sent from my iPhone

> On Mar 19, 2017, at 2:59 AM, Chuck Hill  wrote:
> 
> Hi Ricardo,
>  
> You need to create a branch (push from your local) in your GitHub fork of 
> Wonder for each set of changes in GitHub (aka a Feature Branch), then make a 
> pull request from that branch to Wonder.  Otherwise all of your changes get 
> inter-mixed.
>  
> Chuck
>  
>  
> From: Ricardo Parada 
> Date: Saturday, March 18, 2017 at 11:22 PM
> To: "webobjects-dev@lists.apple.com" 
> Cc: Markus Ruggiero , Paul Hoadley 
> , "koa...@icloud.com" , 
> "g...@knuckleheads.net" , Chuck Hill 
> , "aa...@chatnbike.com" 
> Subject: Re: ERXQuery Preview
>  
> Hi all,
>  
> As promised, I have committed ERXQuery to my Wonder clone on GitHub, i.e. 
> rparada/wonder.  I just need help creating the pull request.  :-)
>  
> It turns out that I created first a pull request for ERXExtensions.java 
> unrelated to ERXQuery.  Now when I tried to create the pull request for 
> ERXQuery it just seems to show the previous pull request.  So I’m not sure 
> what is going on.  I don’t have much experience with GitHub.
>  
> Anyways, the ERXQuery is an additive change to Wonder and consists of only 
> three files: ERXQuery.java, ERXQueryAttributes and ERXQueryEOAttribute.  It’s 
> the last two commits in rparada/wonder.
>  
> I took the time to polish the API a bit more.  I think the API came out nicer 
> than what I had the first time around.  Specially the single variadic 
> select() method that allows you to specify EOAttributes, Strings, ERXKeys, or 
> any Iterable containing these. Same for groupBy().  And the a similar 
> technique with the orderBy() which can take EOSortOrderings or any Iterable 
> (ERXSortOrderings, NSArray, List, Collection).
>  
> The documentation is more extensive now.  I have included here a copy of the 
> ERXQuery class from the javadoc tab in my Eclipse.  
>  
> I have tested with ORACLE which is the easiest for me to test.  It would be 
> great to hear others using this with other databases (h2, derby, mssql, 
> mysql, frontbase, etc.)
>  
>  
> ERXQuery.java
> Overview
> This class has a fluent API that mimics a select statement:
> 
>   NSArray> records =
>   ERXQuery.create()
>   .select (keys)
>   .from (entity)
>   .where (qualifier)
>   .groupBy (groupings)
>   .having (havingQualifier)
>   .orderBy (sortings)
>   .fetch();
>   
> It allows you to use EOF/Wonder higher-level constructs (qualifiers, 
> attributes, orderings, key paths, ERXKeys, etc.) to create a query that looks 
> like this:
> 
>   SELECT ...
>   FROM ...
>   WHERE ...
>   GROUP BY ...
>   HAVING ...
>   ORDER BY ...
>   
>  
> Specifying the Attributes to Fetch
> The select() method is very flexible and powerful. It accepts a variable 
> number of objects of different types that specify the attributes to fetch. 
> These objects can be EOAttributes, ERXKeys, Strings. You may also specify 
> NSArray or List objects containing any combination of these (EOAttributes, 
> ERXKeys, Strings).
> 
> The ERXKeys and String objects correspond to keys and key paths to the 
> attributes to fetch, i.e. "customer.name". The keys and key paths can also be 
> relationships to objects, i.e. "customer" which translate into a fetch of 
> foreign keys used to build object faults and return them in the results.
> 
> You may call the select() method multiple times to keep adding to the list of 
> attributes to fetch.
> 
> Using Ad Hoc Attributes
> It is very common to aggregate attributes in these queries. For this purpose, 
> you may want to create what ERXQuery refers to as ad hoc attributes. These 
> attributes have a definition but are not physically attached to the entity. 
> You can use the ERXQueryAttributes class to easily create multiple ad hoc 
> attributes. The definition of the attribute can reference relationships and 
> attributes as shown below. If you just want to create a single ad hoc 
> attribute you may use the ERXQueryEOAttribute class.
> 
>   // Using a single query against the order entity to count the number of
>   // orders and line items that match an order qualifier.
>   
>   ERXQueryAttributes attributes = ERXQueryAttributes.create(orderEntity)
>   .add("itemCount", "COUNT(DISTINCT lineItems.lineItemID)", "intNumber")
>   .add("orderCount", "COUNT(DISTINCT orderID)", "intNumber");
>   
>   ERXQuery query =
>   ERXQuery.create()
>   

Re: ERXWOConditional - where does it get installed?

2017-03-14 Thread Ricardo Parada
Hmm... Thanks for pointing that out. Do you know know how to do that without 
storing state? Does wonder do something like that anywhere?



> On Mar 14, 2017, at 10:46 AM, Samuel Pelletier  wrote:
> 
> Ricardo,
> 
> This patch seem dangerous to first. I do not thing it is safe to have state 
> in WODynamicElement. I think they can be reused by the framework.
> 
> The correct way is to make sure the condition does not change during RR loop 
> cycle, same apply to WORepetition list for example.
> 
> Regards,
> 
> Samuel
> 
>> Le 14 mars 2017 à 09:53, Ricardo Parada  a écrit :
>> 
>> Thanks Samuel.  I see that now.
>> 
>> Have others experienced a problem where a form is submitted and then during 
>> takeValuesFtomTequest a condition that was false when the page was rendered 
>> becomes true all of a sudden causing some input elements (textfields, pop-up 
>> list, etc.) to participate in takeValuesFromRequest even though those 
>> elements were not on the page when the form was submitted? This causes those 
>> elements to be set to null.   I've ran into such bugs in the past many times.
>> 
>> I have been able to prevent that from happening by using the following code: 
>> 
>> 
>> public class MPVWOConditional extends ERXWOConditional {
>> 
>>protected boolean conditionValue = false;
>> 
>>public MPVWOConditional(String name, NSDictionary dict, WOElement 
>> element) {
>>   super(name, dict, element);
>>}
>> 
>>@Override
>>public void appendToResponse(WOResponse woresponse, WOContext wocontext) {
>>   // Cache the condition every time the page is being rendered
>>   conditionValue = 
>> _condition.booleanValueInComponent(wocontext.component());
>>   super.appendToResponse(woresponse, wocontext);
>>}
>> 
>>/**
>> * Returns the value for the condition binding cached during 
>> appendToResponse.
>> * This makes the takeValuesFromRequest consistent with the 
>> appendToResponse
>> * preceding it by making sure that input elements that were not present 
>> on
>> * the page at the time the form was submitted do not participate in
>> * takeValuesFromRequest inadvertently.
>> */
>> @Override
>> protected boolean conditionInComponent(WOComponent wocomponent) {
>>return conditionValue;
>> }
>> }
>> 
>> 
>> 
>> 
>>> On Mar 14, 2017, at 9:39 AM, Samuel Pelletier  wrote:
>>> 
>>> Hi,
>>> 
>>> If you use inline bindings with ONGL, the class WOHelperFunctionTagRegistry 
>>> registers classes mapped to tag 
>>> 
>>> WOHelperFunctionTagRegistry.registerTagShortcut("ERXElse", 
>>> "else");
>>> 
>>> WOHelperFunctionTagRegistry.registerTagShortcut("ERXWOConditional", "if");
>>> 
>>> WOHelperFunctionTagRegistry.registerTagShortcut("ERXWOConditional", 
>>> "conditional");
>>> 
>>> Samuel
>>> 
>>> 
>>>> Le 13 mars 2017 à 19:46, Ricardo Parada  a écrit :
>>>> 
>>>> Hi all,
>>>> 
>>>> Does anybody know where does ERXWOConditional install to replace 
>>>> WOConditional?
>>>> 
>>>> I created an MPVWOConditional which extends ERXWOConditional and fixes a 
>>>> bug and want to install it as the one to use for WOConditional. 
>>>> 
>>>> I checked in ERXPatches but it does not seem to be getting installed 
>>>> there.  Does anybody know?
>>>> 
>>>> Thanks
>>>> ___
>>>> 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:
>>>> https://lists.apple.com/mailman/options/webobjects-dev/samuel%40samkar.com
>>>> 
>>>> This email sent to sam...@samkar.com
>> 
> 
 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: ERXWOConditional - where does it get installed?

2017-03-14 Thread Ricardo Parada

I patched both in a test application from within the Application’s 
finishInitialization() method.  After this, then MPVWOConditional is used 
regardless of whether I use WOConditional in the .wod or  in the .html.

   @Override
   public void finishInitialization() {
  super.finishInitialization();

  // Patch conditional components with our own
  ERXPatcher.setClassForName(MPVWOConditional.class, "WOConditional");
  ERXPatcher.setClassForName(MPVWOConditional.class, "ERXWOConditional");
   }



> On Mar 14, 2017, at 10:04 AM, Ricardo Parada  wrote:
> 
> Hi Theodore,
> 
> If your .wod is using WOConditional then it uses WOConditional.  You can test 
> it quickly by setting a breakpoint in ERXWOConditional’s appendToResponse 
> method.  You’ll see that you won’t hit the breakpoint.
> 
> Now, if you change it back to  then you’ll hit the breakpoint.
> 
> To summarize:
>  uses ERXWOConditional.
> WOConditional uses WOConditional.
> 
> There used to be a property in Wonder to patch WOConditional with 
> ERXWOConditional.  I do not see it in the master branch anymore.
> 
> Anyways, in your framework principal’s finishInitialization() method you 
> should be able to invoke ERXPatcher.setClassForName(ERXWOConditional.class, 
> “WOConditional”) to have it patched.  Then you’ll hit the breakpoint whether 
> your .wod says WOConditional or ERXWOConditional.
> 
> I’m gonna try that and use my MPVWOConditional for both.
> 
> 
>> On Mar 14, 2017, at 9:52 AM, Theodore Petrosky > <mailto:tedp...@yahoo.com>> wrote:
>> 
>> so please confirm the correct way to use this in a WOD. I understand that 
>> inline  uses ERXWOConditional
>> 
>> I had a  and converted to WOD. I got:
>> 
>> True : WOConditional {
>>   condition = "true";
>> }
>> 
>> So, ERXWOConditional patches WOConditional, so ERXWOConditional is used. Yes?
>> 
>> Just for my edification..
>> 
>> Ted
>> 
>> 
>>> On Mar 14, 2017, at 9:39 AM, Samuel Pelletier >> <mailto:sam...@samkar.com>> wrote:
>>> 
>>> Hi,
>>> 
>>> If you use inline bindings with ONGL, the class WOHelperFunctionTagRegistry 
>>> registers classes mapped to tag 
>>> 
>>> WOHelperFunctionTagRegistry.registerTagShortcut("ERXElse", 
>>> "else");
>>> 
>>> WOHelperFunctionTagRegistry.registerTagShortcut("ERXWOConditional", "if");
>>> 
>>> WOHelperFunctionTagRegistry.registerTagShortcut("ERXWOConditional", 
>>> "conditional");
>>> 
>>> Samuel
>>> 
>>> 
>>>> Le 13 mars 2017 à 19:46, Ricardo Parada >>> <mailto:rpar...@mac.com>> a écrit :
>>>> 
>>>> Hi all,
>>>> 
>>>> Does anybody know where does ERXWOConditional install to replace 
>>>> WOConditional?
>>>> 
>>>> I created an MPVWOConditional which extends ERXWOConditional and fixes a 
>>>> bug and want to install it as the one to use for WOConditional. 
>>>> 
>>>> I checked in ERXPatches but it does not seem to be getting installed 
>>>> there.  Does anybody know?
>>>> 
>>>> Thanks
>> 
>> ___
>> Do not post admin requests to the list. They will be ignored.
>> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com 
>> <mailto:Webobjects-dev@lists.apple.com>)
>> Help/Unsubscribe/Update your Subscription:
>> https://lists.apple.com/mailman/options/webobjects-dev/rparada%40mac.com 
>> <https://lists.apple.com/mailman/options/webobjects-dev/rparada%40mac.com>
>> 
>> This email sent to rpar...@mac.com <mailto:rpar...@mac.com>
> ___
> 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:
> https://lists.apple.com/mailman/options/webobjects-dev/rparada%40mac.com
> 
> This email sent to rpar...@mac.com

 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: ERXWOConditional - where does it get installed?

2017-03-14 Thread Ricardo Parada
Hi Theodore,

If your .wod is using WOConditional then it uses WOConditional.  You can test 
it quickly by setting a breakpoint in ERXWOConditional’s appendToResponse 
method.  You’ll see that you won’t hit the breakpoint.

Now, if you change it back to  then you’ll hit the breakpoint.

To summarize:
 uses ERXWOConditional.
WOConditional uses WOConditional.

There used to be a property in Wonder to patch WOConditional with 
ERXWOConditional.  I do not see it in the master branch anymore.

Anyways, in your framework principal’s finishInitialization() method you should 
be able to invoke ERXPatcher.setClassForName(ERXWOConditional.class, 
“WOConditional”) to have it patched.  Then you’ll hit the breakpoint whether 
your .wod says WOConditional or ERXWOConditional.

I’m gonna try that and use my MPVWOConditional for both.


> On Mar 14, 2017, at 9:52 AM, Theodore Petrosky  wrote:
> 
> so please confirm the correct way to use this in a WOD. I understand that 
> inline  uses ERXWOConditional
> 
> I had a  and converted to WOD. I got:
> 
> True : WOConditional {
>   condition = "true";
> }
> 
> So, ERXWOConditional patches WOConditional, so ERXWOConditional is used. Yes?
> 
> Just for my edification..
> 
> Ted
> 
> 
>> On Mar 14, 2017, at 9:39 AM, Samuel Pelletier > <mailto:sam...@samkar.com>> wrote:
>> 
>> Hi,
>> 
>> If you use inline bindings with ONGL, the class WOHelperFunctionTagRegistry 
>> registers classes mapped to tag 
>> 
>>  WOHelperFunctionTagRegistry.registerTagShortcut("ERXElse", 
>> "else");
>>  
>> WOHelperFunctionTagRegistry.registerTagShortcut("ERXWOConditional", "if");
>>  
>> WOHelperFunctionTagRegistry.registerTagShortcut("ERXWOConditional", 
>> "conditional");
>> 
>> Samuel
>> 
>> 
>>> Le 13 mars 2017 à 19:46, Ricardo Parada >> <mailto:rpar...@mac.com>> a écrit :
>>> 
>>> Hi all,
>>> 
>>> Does anybody know where does ERXWOConditional install to replace 
>>> WOConditional?
>>> 
>>> I created an MPVWOConditional which extends ERXWOConditional and fixes a 
>>> bug and want to install it as the one to use for WOConditional. 
>>> 
>>> I checked in ERXPatches but it does not seem to be getting installed there. 
>>>  Does anybody know?
>>> 
>>> Thanks
> 
> ___
> 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:
> https://lists.apple.com/mailman/options/webobjects-dev/rparada%40mac.com 
> <https://lists.apple.com/mailman/options/webobjects-dev/rparada%40mac.com>
> 
> This email sent to rpar...@mac.com <mailto:rpar...@mac.com>
 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: ERXWOConditional - where does it get installed?

2017-03-14 Thread Ricardo Parada
Thanks Samuel.  I see that now.

Have others experienced a problem where a form is submitted and then during 
takeValuesFtomTequest a condition that was false when the page was rendered 
becomes true all of a sudden causing some input elements (textfields, pop-up 
list, etc.) to participate in takeValuesFromRequest even though those elements 
were not on the page when the form was submitted? This causes those elements to 
be set to null.   I've ran into such bugs in the past many times.

I have been able to prevent that from happening by using the following code: 


public class MPVWOConditional extends ERXWOConditional {

   protected boolean conditionValue = false;

   public MPVWOConditional(String name, NSDictionary dict, WOElement element) {
  super(name, dict, element);
   }

   @Override
   public void appendToResponse(WOResponse woresponse, WOContext wocontext) {
  // Cache the condition every time the page is being rendered
  conditionValue = 
_condition.booleanValueInComponent(wocontext.component());
  super.appendToResponse(woresponse, wocontext);
   }

   /**
* Returns the value for the condition binding cached during 
appendToResponse.
* This makes the takeValuesFromRequest consistent with the appendToResponse
* preceding it by making sure that input elements that were not present on
* the page at the time the form was submitted do not participate in
* takeValuesFromRequest inadvertently.
*/
@Override
protected boolean conditionInComponent(WOComponent wocomponent) {
   return conditionValue;
}
}




> On Mar 14, 2017, at 9:39 AM, Samuel Pelletier  wrote:
> 
> Hi,
> 
> If you use inline bindings with ONGL, the class WOHelperFunctionTagRegistry 
> registers classes mapped to tag 
> 
>   WOHelperFunctionTagRegistry.registerTagShortcut("ERXElse", 
> "else");
>   
> WOHelperFunctionTagRegistry.registerTagShortcut("ERXWOConditional", "if");
>   
> WOHelperFunctionTagRegistry.registerTagShortcut("ERXWOConditional", 
> "conditional");
> 
> Samuel
> 
> 
>> Le 13 mars 2017 à 19:46, Ricardo Parada > <mailto:rpar...@mac.com>> a écrit :
>> 
>> Hi all,
>> 
>> Does anybody know where does ERXWOConditional install to replace 
>> WOConditional?
>> 
>> I created an MPVWOConditional which extends ERXWOConditional and fixes a bug 
>> and want to install it as the one to use for WOConditional. 
>> 
>> I checked in ERXPatches but it does not seem to be getting installed there.  
>> Does anybody know?
>> 
>> Thanks
>> ___
>> Do not post admin requests to the list. They will be ignored.
>> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com 
>> <mailto:Webobjects-dev@lists.apple.com>)
>> Help/Unsubscribe/Update your Subscription:
>> https://lists.apple.com/mailman/options/webobjects-dev/samuel%40samkar.com 
>> <https://lists.apple.com/mailman/options/webobjects-dev/samuel%40samkar.com>
>> 
>> This email sent to sam...@samkar.com <mailto:sam...@samkar.com>
 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: ERXWOConditional - where does it get installed?

2017-03-14 Thread Ricardo Parada
Hi René, 

You are correct. WOConditional is not patched. I was confused because 
... uses ERXWOConditional. 

Thanks



> On Mar 14, 2017, at 3:12 AM, René Bock  wrote:
> 
> Hi, 
> 
> correct me if I'm wrong, but ERXWOConditional seems no to be a replacement to 
> WOConditional.   Maybe you ask Anjo or Mike, why it is so...
> 
> 
> On the other side, you may may patch ERXWOConditional (or WOConditional) in 
> your own Application.installPatches method.
> 
>   
>> Am 14.03.2017 um 00:46 schrieb Ricardo Parada :
>> 
>> Hi all,
>> 
>> Does anybody know where does ERXWOConditional install to replace 
>> WOConditional?
>> 
>> I created an MPVWOConditional which extends ERXWOConditional and fixes a bug 
>> and want to install it as the one to use for WOConditional. 
>> 
>> I checked in ERXPatches but it does not seem to be getting installed there.  
>> Does anybody know?
>> 
> 
> 
> Mit freundlichen Grüßen 
> 
> René Bock
> 
> --
> Telefon: +49 69 650096 18
> 
> salient GmbH, Lindleystraße 12, 60314 Frankfurt
> Telefon Zentrale: 069 / 65 00 96 - 0  |  www.salient-doremus.de
> 
 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


ERXWOConditional - where does it get installed?

2017-03-13 Thread Ricardo Parada
Hi all,

Does anybody know where does ERXWOConditional install to replace WOConditional?

I created an MPVWOConditional which extends ERXWOConditional and fixes a bug 
and want to install it as the one to use for WOConditional. 

I checked in ERXPatches but it does not seem to be getting installed there.  
Does anybody know?

Thanks
 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


ERXQuery Preview

2017-03-11 Thread Ricardo Parada
Hi all,

Over the years, I’ve worked on an class for doing ad hoc queries.  This class 
has gotten better and better.  At first, the API of this class and some 
implementation details were not  ready for public consumption in my opinion.  

However, recently I took the time to polish the code as much as possible and if 
I can get my employer's approval I would like to contribute this code to 
project Wonder which has given us so much in return during the years.  

Here is a preview of its functionality.  Please let me know if you guys think 
this would be a useful contribution.
ERXQuery.java
This class has a fluent API that mimics a select statement:
NSArray> records =
   ERXQuery.create()
  .select (keys)
  .from (entity)
  .where (qualifier)
  .groupBy (groupings)
  .having (havingQualifier)
  .orderBy (sortings)
  .fetch();

Overview
ERXQuery allows you to use EOF constructs (EOQualifiers, EOAttributes, 
EOSortOrdering, EOAttribute names, relationships, etc.) to create queries of 
the form:
SELECT ...
FROM ...
WHERE ...
GROUP BY ...
HAVING ...
ORDER BY ...

Using Ad Hoc Attributes
You may use the ERXAdHocAttributes class to easily create ad hoc attributes to 
use with your query. For example, the code below creates two ad hoc 
EOAttributes. An ad hoc attribute is an EOAttribute that is not physically 
attached to an entity and that has a definition. They are useful for 
aggregating other attributes. The definition of the attribute can reference 
relationships and attributes as shown below.
// Using a single query against the order entity, count the number of
// orders and line items that match the qualifier.
ERXAdHocAttributes attributes = ERXAdHocAttributes.create(orderEntity)
   .add("itemCount", "COUNT(DISTINCT lineItems.lineItemID)", "intNumber")
   .add("orderCount", "COUNT(DISTINCT orderID)", "intNumber");

NSDictionary row =
   ERXQuery.create()
  .select (attributes)
  .from (orderEntity)
  .where (qualifier)
  .fetch()
  .lastObject();

int orderCount = ((Number) row.objectForKey("orderCount")).intValue();
int itemCount = ((Number) row.objectForKey("itemCount")).intValue();

Fetching into a Custom Record Class
You can also fetch using a custom class of your choice, i.e. Foo, as shown 
below:
// Using java >= 8 is easy with a lambda expression
NSArray objs = query.fetch(editingContext, (ec, row) -> new Foo(ec, row));
   

// Using java < 8 you must provide a RecordConstructor 
ERXQuery.RecordConstructor recordConstructor =
   new ERXQuery.RecordConstructor {
   @Override
   public Foo constructRecord(EOEditingContext ec, NSMutableDictionary row) 
{
  return new Foo(ec, row);
   }
   };

NSArray objs = query.fetch(editingContext, recordConstructor);

Author: Ricardo J. Parada ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Alive ?

2017-02-06 Thread Ricardo Parada
Alive here.  :-)


> On Feb 6, 2017, at 8:11 AM, Jérémy DE ROYER  
> wrote:
> 
> Is there anyone alive ?
> 
> Jérémy
> 
> ___
> 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:
> https://lists.apple.com/mailman/options/webobjects-dev/rparada%40mac.com
> 
> This email sent to rpar...@mac.com


 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: WOWODC17?? a little OT

2017-01-12 Thread Ricardo Parada
If there was one I would go.  

:-)


> On Jan 12, 2017, at 1:53 PM, Theodore Petrosky  wrote:
> 
> So I take it that there is very little chance of WOWODC17. From the amount of 
> traffic on the mailing list I feel like things are what they are!
> 
> What are your feelings!
> ___
> 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:
> https://lists.apple.com/mailman/options/webobjects-dev/rparada%40mac.com
> 
> This email sent to rpar...@mac.com

 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Does NSUndoManager work?

2016-10-08 Thread Ricardo Parada
Hi All,

I have not used the undo manager since the Objective-C days I think.  I tried 
to use it recently but I get an exception. Has anybody used it successfully?  
For example:

myEO.editingContext().undoManager().beginUndoGrouping();
myEO.setFoo(foo);
myEO.editingContext().undoManager().undo();

This code generates this exception:

java.lang.IllegalStateException: undo: undo manager is in invalid state, undo 
was called with too many nested undo groups


I thought there was something wrong with the undo manager in that editing 
context.  So I tried creating a new NSUndoManager() and calling 
setUndoManager(myUndoManager) on the editing context.  Same result.

I searched on google for that exception and several things came up but nothing 
that could tell me why it happens.

Thanks,
Ricardo Parada

 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: IllegalStateException: "...EOEditingContext has already been disposed"

2016-10-01 Thread Ricardo Parada
Hi Paul,

I don’t know if this is what is going on in your case but I once had a problem 
where an EO was inserted into an editing context, then the editing context was 
reverted, i.e. ec.revert().  Then the app has a variable holding on to a 
reference to the EO.  However, that EO’s editing context became null, i.e. 
eo.editingContext() == null after the revert and it was causing a problem.  



> On Sep 30, 2016, at 9:49 PM, Paul Hoadley  wrote:
> 
> On 29 Sep 2016, at 11:25 PM, Chuck Hill  > wrote:
> 
>> Backtracking?
> 
> I can’t seem to reproduce it in development using backtracking, but _who 
> knows_ what the users are doing in real life.
 
 Amen brother! Is The object in question ever deleted?
>>> 
>>> Potentially, but can’t be deleted by the user that’s seeing this error. So 
>>> it could have been deleted by _someone else_ quite definitely, though in 
>>> another EC.
>> 
>> Bingo!  If the EC on the Page is getting unlocked and locked again then this 
>> is probably what it is
> 
> I can’t seem to reproduce it, though I’m happy enough to tentatively blame 
> backtracking and concurrent modification for now.
> 
> 
> -- 
> Paul Hoadley
> http://logicsquad.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:
> https://lists.apple.com/mailman/options/webobjects-dev/rparada%40mac.com
> 
> This email sent to rpar...@mac.com

 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: Cannot obtain globalId for an object which...

2016-09-21 Thread Ricardo Parada
Hi Chuck,

Once you said it was transactional I suspected something was getting EOF in 
this state and I discovered an exception that once I took care of it seems to 
have taken care of this one as well.  

I did not go into enough detail to fully understand the dynamics of what was 
going on though.  We have a transaction extender attached to the main editing 
context which prevents EOF from committing the transaction.  For example, we do 
this to generate a SELECT FOR UPDATE NOWAIT to lock a record and hold on to 
that lock until we do saveChanges() on that editing context which commits the 
transaction.  While we are holding this lock we local instance EOs into a peer 
editing context.  We do a lot of processing with our EOs in this peer editing 
context but changes here are not supposed to be saved to the database.  
However, some piece of code was trying to saveChanges() and generated an EOF 
error about unable to increment snapshot count.  I simply corrected this code 
so it does not call saveChanges() in this editing context and the other problem 
magically went away.

Thanks for the help.


> On Sep 20, 2016, at 8:35 PM, Chuck Hill  wrote:
> 
> Does this only happen sometimes?  “the databaseContext's active 
> editingContext” is referring to the active EC, which is transactional (e.g. 
> set at the start of an EOF operation and cleared at the end).  If the code is 
> calling into EOF without locking, it might result in this. 
>  
> From: Ricardo Parada 
> Date: Tuesday, September 20, 2016 at 3:19 PM
> To: Chuck Hill 
> Cc: "webobjects-dev@lists.apple.com" 
> Subject: Re: Cannot obtain globalId for an object which...
>  
> Hi Chuck,
>  
> I followed the steps of the code and I noticed that the object containing the 
> to-many relationship in question is being local instanced in a peer editing 
> context. The to-many is still an array fault which has not been triggered. 
>  
> Then when the object in the original context has its to-many triggered, i.e.  
> by calling:
>  
> analysis.groupings().count();
>  
> Where analysis is the EO and groupings() is the to-many then the exception is 
> generated. 
>  
> It appears to have that if I trigger the to-many early on then the exception 
> is avoided. 
>  
> Anyways, I will experiment a little bit more with the problem and report 
> back. I don't recall seeing something like this before and I local instance 
> objects from one editing context to another all the time. 
>  
> Thanks
>  
>  
> 
> On Sep 20, 2016, at 5:21 PM, Chuck Hill  <mailto:ch...@gevityinc.com>> wrote:
> 
> A full stack track would help.  It sounds like your code is making a 
> relationship between objects in different editing contexts.  Did someone 
> forget to add a “localInstance”?
>  
>  
>  
> From:  <mailto:webobjects-dev-bounces+chill=gevityinc@lists.apple.com>> on 
> behalf of Ricardo Parada mailto:rpar...@mac.com>>
> Date: Tuesday, September 20, 2016 at 2:18 PM
> To: "webobjects-dev@lists.apple.com <mailto:webobjects-dev@lists.apple.com>" 
> mailto:webobjects-dev@lists.apple.com>>
> Subject: Cannot obtain globalId for an object which...
>  
>  
> Hi all,
>  
> All of a sudden one of our apps started getting this. Does anybody know why 
> this would happen? It did not seem to have a problem before until now. 
>  
> Cannot obtain globalId for an object which is registered in an other than the 
> databaseContext's active editingContext, 
> object: , 
> databaseContext: com.webobjects.eoaccess.EODatabaseContext@3935ae60, 
> object's editingContext: er.extensions.eof.ERXEC@4247ac26,
> databaseContext's active editingContext: er.extensions.eof.ERXEC@c0fc23d’
>  
>  

 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: Cannot obtain globalId for an object which...

2016-09-20 Thread Ricardo Parada
Hi Chuck,

I followed the steps of the code and I noticed that the object containing the 
to-many relationship in question is being local instanced in a peer editing 
context. The to-many is still an array fault which has not been triggered. 

Then when the object in the original context has its to-many triggered, i.e.  
by calling:

analysis.groupings().count();

Where analysis is the EO and groupings() is the to-many then the exception is 
generated. 

It appears to have that if I trigger the to-many early on then the exception is 
avoided. 

Anyways, I will experiment a little bit more with the problem and report back. 
I don't recall seeing something like this before and I local instance objects 
from one editing context to another all the time. 

Thanks



> On Sep 20, 2016, at 5:21 PM, Chuck Hill  wrote:
> 
> A full stack track would help.  It sounds like your code is making a 
> relationship between objects in different editing contexts.  Did someone 
> forget to add a “localInstance”?
>  
>  
>  
> From:  on behalf 
> of Ricardo Parada 
> Date: Tuesday, September 20, 2016 at 2:18 PM
> To: "webobjects-dev@lists.apple.com" 
> Subject: Cannot obtain globalId for an object which...
>  
>  
> Hi all,
>  
> All of a sudden one of our apps started getting this. Does anybody know why 
> this would happen? It did not seem to have a problem before until now. 
>  
> Cannot obtain globalId for an object which is registered in an other than the 
> databaseContext's active editingContext, 
> object: , 
> databaseContext: com.webobjects.eoaccess.EODatabaseContext@3935ae60, 
> object's editingContext: er.extensions.eof.ERXEC@4247ac26, 
> databaseContext's active editingContext: er.extensions.eof.ERXEC@c0fc23d’
>  
>  
 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Cannot obtain globalId for an object which...

2016-09-20 Thread Ricardo Parada

Hi all,

All of a sudden one of our apps started getting this. Does anybody know why 
this would happen? It did not seem to have a problem before until now. 

Cannot obtain globalId for an object which is registered in an other than the 
databaseContext's active editingContext, 
object: , 
databaseContext: com.webobjects.eoaccess.EODatabaseContext@3935ae60, 
object's editingContext: er.extensions.eof.ERXEC@4247ac26, 
databaseContext's active editingContext: er.extensions.eof.ERXEC@c0fc23d’


 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: Slack WO channel

2016-09-18 Thread Ricardo Parada
I still have not figured out how to go into Slack's WO channel. When I open the 
app it asks what team domain. I then click on don't know my domain and it sends 
me a list of channels to which I have been invited. I don't see any invitation 
from anything related to WO. Does it mean I have not been invited?

Thanks
rpar...@mac.com

> On Sep 16, 2016, at 1:37 PM, Michael Kondratov  
> wrote:
> 
> May I join as well?
> 
> Sent from my iPhone
> 
> On Sep 16, 2016, at 6:26 AM, Henrique Gomes  wrote:
> 
>>> 
 On 08/09/2016, at 18:31, Raymond NANEON  wrote:
 
 Re,
 
 Please add me too :
 
 rnan...@gmail.com
 
 Thanks
 
>> 
>> 
>> Me too, pretty please.
>> 
>> Henrique Gomes
>> 
>> ___
>> 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:
>> https://lists.apple.com/mailman/options/webobjects-dev/michael%40aspireauctions.com
>> 
>> This email sent to mich...@aspireauctions.com
> ___
> 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:
> https://lists.apple.com/mailman/options/webobjects-dev/rparada%40mac.com
> 
> This email sent to rpar...@mac.com
 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

WOWODC 2016 Videos

2016-09-09 Thread Ricardo Parada
Hi,

How can I access the videos of the presentations?

Thanks
Ricardo
 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: Code review for refreshToOneRelationshipWithKey

2016-09-06 Thread Ricardo Parada


I just tried the ERJGroupsSynchronizer and it worked. I was worried that there 
might be a delay in the synchronization such that the thread updating the user 
interface might not pick up the change on time and would display the new info. 
I'm curious how it does it and whether it is possible for the change not to get 
to the user interface on time. 

Thanks Paul and Ted. 

> On Sep 4, 2016, at 7:39 PM, Paul Hoadley  wrote:
> 
> Hi Ricardo,
> 
>> On 5 Sep 2016, at 6:23 AM, Ricardo Parada  wrote:
>> 
> 
>> At that time I did not have a need for synchronization between EOF stacks.  
>> I was also overwhelmed by the xml configuration file but now that I hear it 
>> again it sounds like there is no need to mess with it. I like that he said 
>> that he had used that for years and was never able to deadlock it during 
>> extensive testing and that the caches were accurate. That is good. 
>> 
>> I did try to use the ERXObjectStoreCoordinatorPool in the past. However for 
>> our background threads that are spawned to do work I wanted to make sure 
>> that they had a separate pool so that  they did not interfere with the 
>> foreground threads processing requests from the user. I also wanted 
>> connections to the database closed when an object store coordinator was 
>> returned to the pool by all the thread(s) using it. That created a better 
>> experience and conserved resources. 
>> 
>> The synchronization though, it does look like it will solve my problem. I 
>> definitely want to play with that. I assume that you are using the second 
>> synchronizer based on JBoss stuff, right? Mike mentioned that he would not 
>> use the first one for production. 
> 
> We’ve been using ERJGroupsSynchronizer.framework in a couple of contexts for 
> at least 12 months, and haven’t seen any issues.
> 
> https://wiki.wocommunity.org/display/documentation/ERJGroupsSynchronizer+Framework
> 
> 
> -- 
> Paul Hoadley
> http://logicsquad.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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: Code review for refreshToOneRelationshipWithKey

2016-09-04 Thread Ricardo Parada
Thank you Ted for that link. I was actually present at that presentation. 

At that time I did not have a need for synchronization between EOF stacks.  I 
was also overwhelmed by the xml configuration file but now that I hear it again 
it sounds like there is no need to mess with it. I like that he said that he 
had used that for years and was never able to deadlock it during extensive 
testing and that the caches were accurate. That is good. 

I did try to use the ERXObjectStoreCoordinatorPool in the past. However for our 
background threads that are spawned to do work I wanted to make sure that they 
had a separate pool so that  they did not interfere with the foreground threads 
processing requests from the user. I also wanted connections to the database 
closed when an object store coordinator was returned to the pool by all the 
thread(s) using it. That created a better experience and conserved resources. 

The synchronization though, it does look like it will solve my problem. I 
definitely want to play with that. I assume that you are using the second 
synchronizer based on JBoss stuff, right? Mike mentioned that he would not use 
the first one for production. 

Thank you. 

> On Sep 3, 2016, at 11:44 PM, Theodore Petrosky  wrote:
> 
> Mike Schrag gave a talk on this.
> 
> http://www.wocommunity.org/podcasts/wowodc/west09/WOWODC09W-WonderInDepth.mov
> 
> take a listen to the section at around 19 minutes in. I reread your original 
> post, and I think this IS what you are looking for.
> 
> again jmo!
> 
> 
>> On Sep 3, 2016, at 5:11 PM, Ricardo Parada  wrote:
>> 
>> Thanks Aaron that is a great suggestion. I will give that a try as it does 
>> not require messing with snapshots and getting down to lower layers of EOF. 
>> I think I would feel better with an implementation like that. 
>> 
>> As for ERXJGroupsSynchronizer, I am not familiar with that and can't really 
>> tell how to use it. It also sounds like it might replace edits in progress. 
>> Thanks Ted. I had heard of this class before but did not know it was being 
>> used successfully. It is good to know. 
>> 
>>> On Sep 3, 2016, at 4:45 PM, Aaron Rosenzweig  
>>> wrote:
>>> 
>>> Hi Ricardo,
>>> 
>>> That’s some clever WO-ninja magic you got going on there. I’ve never 
>>> replaced the original snapshot of an EO before.
>>> 
>>> If it works, great - I won’t knock it but I’d be scared without flexing it 
>>> (using it a bunch). 
>>> 
>>> Another idea… 
>>> 
>>> 1) hold onto the “changesFromCommittedSnapshot” so you can refer to it.
>>> 
>>> 2) in your fetchSpec make “setRefereshesRefetchedObjects()” to true - so 
>>> when you go round trip you’ll update the EO.
>>> 
>>> 3) reapply your changes from the committed snapshot.
>>> 
>>> Cheers,
>>> AARON ROSENZWEIG / Chat 'n Bike
>>> e:  aa...@chatnbike.com  t:  (301) 956-2319 
>>> 
>>> 
>>>> On Sep 3, 2016, at 9:34 AM, Ricardo Parada  wrote:
>>>> 
>>>> Hi all,
>>>> 
>>>> I have a need to refresh the to-one relationship of an object, so that if 
>>>> someone in another app or perhaps in a different EOF stack within the same 
>>>> app has updated the to-one to point to a different object then I want my 
>>>> EO’s to one to point to the correct EO.  I do not want to invalidate the 
>>>> source EO or refetch it because it may have edits in progress.
>>>> 
>>>> I searched in Wonder but I was not able to find anything that does this.  
>>>> I came up with the code below last night and it seems to work well so far. 
>>>>  
>>>> 
>>>> Since this is an advanced EOF topic I thought I should share it to see if 
>>>> anybody wants to code review it, play with it and provide comments on 
>>>> correctness / recommendations / feedback.  
>>>> 
>>>> This code uses a primaryKeyQualifier() method in my EO which is 
>>>> practically the same as the identityQualifier() concept discussed by Aaron 
>>>> Rosenzweig in an email thread in May of this year.
>>>> 
>>>> Thanks in advance for any help.
>>>> 
>>>> 
>>>> @SuppressWarnings("rawtypes")
>>>> public void refreshToOneRelationshipWithKey(String toOneName) {
>>>> EOEditingContext ec = editingContext();
>>>> EOEntity entity = entity();
>>>> EORelationship toOne = entity.rel

Re: Code review for refreshToOneRelationshipWithKey

2016-09-03 Thread Ricardo Parada
Thanks Aaron, your suggestion is working well.  It is analogous to a "git 
rebase” ;-)  I feel better with this code.

I did find that the technique did not work for to-many relationships, but added 
a bit of code towards the end of the method to refresh the to-many 
relationships using Wonder:

/**
 * Core method to refresh properties selectively with data from the 
database. The
 * properties can be attributes, to-one or to-many relationships.
 */
public void refreshProperties(NSArray keys) {
NSDictionary changes = changesFromCommittedSnapshot();

// Discard changes to the properties that we're about to refresh if any
NSMutableDictionary changesToKeepAfterRefresh = 
changes.mutableClone();
changesToKeepAfterRefresh.removeObjectsForKeys(keys);

// Now fetch the receiver refreshing it with changes from database
EOEntity entity = entity();
EOFetchSpecification fs = new EOFetchSpecification(entity.name(), 
primaryKeyQualifier(), null);
fs.setRefreshesRefetchedObjects(true);
editingContext().objectsWithFetchSpecification(fs);

// Now re-apply the changes we want to keep
if (changesToKeepAfterRefresh.count() > 0) {
takeValuesFromDictionary(changesToKeepAfterRefresh);
}

// The above will not refresh to-many relationships so do something a 
bit
// more drastic to refresh the to-many relationships.
for (String key : keys) {
EORelationship relationship = entity.relationshipNamed(key);
if (relationship.isToMany()) {
ERXEOControlUtilities.clearSnapshotForRelationshipNamed(this, 
key);
}
}
}

And some convenient methods to go with it too:

/**
 * Convenience method to refresh properties selectively with data from the 
database.
 * The properties can be attributes, to-one or to-many relationships.
 */
public void refreshProperties(String... keys) {
NSArray keysArray = new NSArray(keys);
refreshProperties(keysArray);
}

/**
 * Convenience method to refresh properties selectively with data from the 
database.
 * The properties can be attributes, to-one or to-many relationships.
 */
public void refreshProperties(ERXKey... erxKeys) {
NSMutableArray keys = new 
NSMutableArray(erxKeys.length);
for (ERXKey erxKey : erxKeys) {
keys.add(erxKey.key());
}
refreshProperties(keys);
}



> On Sep 3, 2016, at 4:45 PM, Aaron Rosenzweig  
> wrote:
> 
> Hi Ricardo,
> 
> That’s some clever WO-ninja magic you got going on there. I’ve never replaced 
> the original snapshot of an EO before.
> 
> If it works, great - I won’t knock it but I’d be scared without flexing it 
> (using it a bunch). 
> 
> Another idea… 
> 
> 1) hold onto the “changesFromCommittedSnapshot” so you can refer to it.
> 
> 2) in your fetchSpec make “setRefereshesRefetchedObjects()” to true - so when 
> you go round trip you’ll update the EO.
> 
> 3) reapply your changes from the committed snapshot.
> 
> Cheers,
> AARON ROSENZWEIG / Chat 'n Bike <http://www.chatnbike.com/>
> e:  aa...@chatnbike.com <mailto:aa...@chatnbike.com>  t:  (301) 956-2319  
> 
>   
> 
>> On Sep 3, 2016, at 9:34 AM, Ricardo Parada > <mailto:rpar...@mac.com>> wrote:
>> 
>> Hi all,
>> 
>> I have a need to refresh the to-one relationship of an object, so that if 
>> someone in another app or perhaps in a different EOF stack within the same 
>> app has updated the to-one to point to a different object then I want my 
>> EO’s to one to point to the correct EO.  I do not want to invalidate the 
>> source EO or refetch it because it may have edits in progress.
>> 
>> I searched in Wonder but I was not able to find anything that does this.  I 
>> came up with the code below last night and it seems to work well so far.  
>> 
>> Since this is an advanced EOF topic I thought I should share it to see if 
>> anybody wants to code review it, play with it and provide comments on 
>> correctness / recommendations / feedback.  
>> 
>> This code uses a primaryKeyQualifier() method in my EO which is practically 
>> the same as the identityQualifier() concept discussed by Aaron Rosenzweig in 
>> an email thread in May of this year.
>> 
>> Thanks in advance for any help.
>> 
>> 
>> @SuppressWarnings("rawtypes")
>> public void refreshToOneRelationshipWithKey(String toOneName) {
>> EOEditingContext ec = editingContext();
>> EOEntity entity = entity();
>> EORelationship toOne = entity.relationshipNamed(toOneName);
>> String foreignKeyNa

Re: Code review for refreshToOneRelationshipWithKey

2016-09-03 Thread Ricardo Parada
Thanks Aaron that is a great suggestion. I will give that a try as it does not 
require messing with snapshots and getting down to lower layers of EOF. I think 
I would feel better with an implementation like that. 

As for ERXJGroupsSynchronizer, I am not familiar with that and can't really 
tell how to use it. It also sounds like it might replace edits in progress. 
Thanks Ted. I had heard of this class before but did not know it was being used 
successfully. It is good to know. 

> On Sep 3, 2016, at 4:45 PM, Aaron Rosenzweig  
> wrote:
> 
> Hi Ricardo,
> 
> That’s some clever WO-ninja magic you got going on there. I’ve never replaced 
> the original snapshot of an EO before.
> 
> If it works, great - I won’t knock it but I’d be scared without flexing it 
> (using it a bunch). 
> 
> Another idea… 
> 
> 1) hold onto the “changesFromCommittedSnapshot” so you can refer to it.
> 
> 2) in your fetchSpec make “setRefereshesRefetchedObjects()” to true - so when 
> you go round trip you’ll update the EO.
> 
> 3) reapply your changes from the committed snapshot.
> 
> Cheers,
> AARON ROSENZWEIG / Chat 'n Bike
> e:  aa...@chatnbike.com  t:  (301) 956-2319   
>   
> 
>> On Sep 3, 2016, at 9:34 AM, Ricardo Parada  wrote:
>> 
>> Hi all,
>> 
>> I have a need to refresh the to-one relationship of an object, so that if 
>> someone in another app or perhaps in a different EOF stack within the same 
>> app has updated the to-one to point to a different object then I want my 
>> EO’s to one to point to the correct EO.  I do not want to invalidate the 
>> source EO or refetch it because it may have edits in progress.
>> 
>> I searched in Wonder but I was not able to find anything that does this.  I 
>> came up with the code below last night and it seems to work well so far.  
>> 
>> Since this is an advanced EOF topic I thought I should share it to see if 
>> anybody wants to code review it, play with it and provide comments on 
>> correctness / recommendations / feedback.  
>> 
>> This code uses a primaryKeyQualifier() method in my EO which is practically 
>> the same as the identityQualifier() concept discussed by Aaron Rosenzweig in 
>> an email thread in May of this year.
>> 
>> Thanks in advance for any help.
>> 
>> 
>> @SuppressWarnings("rawtypes")
>> public void refreshToOneRelationshipWithKey(String toOneName) {
>> EOEditingContext ec = editingContext();
>> EOEntity entity = entity();
>> EORelationship toOne = entity.relationshipNamed(toOneName);
>> String foreignKeyName = toOne.sourceAttributes().lastObject().name();
>> EOFetchSpecification fs = new EOFetchSpecification(entity.name(), 
>> primaryKeyQualifier(), null);
>> fs.setRawRowKeyPaths(new NSArray(foreignKeyName));
>> @SuppressWarnings("unchecked")
>> NSDictionary dict = (NSDictionary) 
>> ec.objectsWithFetchSpecification(fs).lastObject();
>> Object newForeignKeyValue = dict.allValues().lastObject();
>> EOGlobalID gid = globalID();
>> EOModel model = entity.model();
>> EODatabaseContext dbc = 
>> EODatabaseContext.registeredDatabaseContextForModel(model, ec);
>> EODatabase database = dbc.database();
>> EOObjectStoreCoordinator osc = (EOObjectStoreCoordinator) 
>> ec.rootObjectStore();
>> osc.lock();
>> try {
>> NSDictionary snapshot = database.snapshotForGlobalID(gid);
>> Object currentForeignKeyValue = 
>> snapshot.objectForKey(foreignKeyName);
>> // We don't need to check for null as currentForeignKeyValue and 
>> newForeignKeyValue
>> // use NSKeyValueCoding.NullValue to represent null.
>> if (currentForeignKeyValue.equals(newForeignKeyValue) == false) {
>> NSMutableDictionary newSnapshot = snapshot.mutableClone();
>> newSnapshot.takeValueForKey(newForeignKeyValue, 
>> foreignKeyName);
>> 
>> database.recordSnapshotForGlobalID(newSnapshot.immutableClone(), gid);
>> Object toOneValue = NSKeyValueCoding.NullValue;
>> if (newForeignKeyValue != NSKeyValueCoding.NullValue) {
>> EOKeyGlobalID toOneGID = 
>> ERXEOGlobalIDUtilities.createGlobalID(toOne.destinationEntity().name(), new 
>> Object[] {newForeignKeyValue});
>> toOneValue = ec.faultForGlobalID(toOneGID, ec);
>> }
>> // U

Code review for refreshToOneRelationshipWithKey

2016-09-03 Thread Ricardo Parada
Hi all,

I have a need to refresh the to-one relationship of an object, so that if 
someone in another app or perhaps in a different EOF stack within the same app 
has updated the to-one to point to a different object then I want my EO’s to 
one to point to the correct EO.  I do not want to invalidate the source EO or 
refetch it because it may have edits in progress.

I searched in Wonder but I was not able to find anything that does this.  I 
came up with the code below last night and it seems to work well so far.  

Since this is an advanced EOF topic I thought I should share it to see if 
anybody wants to code review it, play with it and provide comments on 
correctness / recommendations / feedback.  

This code uses a primaryKeyQualifier() method in my EO which is practically the 
same as the identityQualifier() concept discussed by Aaron Rosenzweig in an 
email thread in May of this year.

Thanks in advance for any help.


@SuppressWarnings("rawtypes")
public void refreshToOneRelationshipWithKey(String toOneName) {
EOEditingContext ec = editingContext();
EOEntity entity = entity();
EORelationship toOne = entity.relationshipNamed(toOneName);
String foreignKeyName = toOne.sourceAttributes().lastObject().name();
EOFetchSpecification fs = new EOFetchSpecification(entity.name(), 
primaryKeyQualifier(), null);
fs.setRawRowKeyPaths(new NSArray(foreignKeyName));
@SuppressWarnings("unchecked")
NSDictionary dict = (NSDictionary) 
ec.objectsWithFetchSpecification(fs).lastObject();
Object newForeignKeyValue = dict.allValues().lastObject();
EOGlobalID gid = globalID();
EOModel model = entity.model();
EODatabaseContext dbc = 
EODatabaseContext.registeredDatabaseContextForModel(model, ec);
EODatabase database = dbc.database();
EOObjectStoreCoordinator osc = (EOObjectStoreCoordinator) 
ec.rootObjectStore();
osc.lock();
try {
NSDictionary snapshot = database.snapshotForGlobalID(gid);
Object currentForeignKeyValue = 
snapshot.objectForKey(foreignKeyName);
// We don't need to check for null as currentForeignKeyValue and 
newForeignKeyValue
// use NSKeyValueCoding.NullValue to represent null.
if (currentForeignKeyValue.equals(newForeignKeyValue) == false) {
NSMutableDictionary newSnapshot = snapshot.mutableClone();
newSnapshot.takeValueForKey(newForeignKeyValue, foreignKeyName);

database.recordSnapshotForGlobalID(newSnapshot.immutableClone(), gid);
Object toOneValue = NSKeyValueCoding.NullValue;
if (newForeignKeyValue != NSKeyValueCoding.NullValue) {
EOKeyGlobalID toOneGID = 
ERXEOGlobalIDUtilities.createGlobalID(toOne.destinationEntity().name(), new 
Object[] {newForeignKeyValue});
toOneValue = ec.faultForGlobalID(toOneGID, ec);
}
// Update __originalSnapshot() and EO so that 
changesFromCommittedSnapshot()
// does not think that the object has changed.
NSDictionary originalSnapshot = __originalSnapshot();
NSMutableDictionary newOriginalSnapshot = 
originalSnapshot.mutableClone();
newOriginalSnapshot.setObjectForKey(toOneValue, toOneName);
__setOriginalSnapshot(newOriginalSnapshot.immutableClone());
if (toOneValue == NSKeyValueCoding.NullValue) {
takeStoredValueForKey(null, toOneName);
} else {
takeStoredValueForKey(toOneValue, toOneName);
}
}
} finally {
osc.unlock();
}
}

public EOQualifier primaryKeyQualifier() {
NSDictionary pkDict = primaryKeyDictionary(false /* 
inTransaction */);
EOEntity entity = entity();
return entity.qualifierForPrimaryKey(pkDict);
} ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: Is this a deadlock?

2016-09-02 Thread Ricardo Parada
Thank you. 

Is there a way to know what thread is holding a lock?

If a thread did some database activity and did not release a lock would it show 
anywhere?  I noticed this at the end of the stack trace dump: 

EC info:
Currently 0 active ECs : {})No open editing contexts (of 0)OSC info:
0 active ObjectStoreCoordinators : {})No open ObjectStoreCoordinator (of 0)

Would it show here?


___

Sent from my iPhone

> On Sep 2, 2016, at 11:22 AM, Jérémy DE ROYER  
> wrote:
> 
> Hello,
> 
> For me, the 3 lines below indicates that thread is waiting for another one.
> 
> Thread[WorkerThread2,5,main]:
> at sun.misc.Unsafe.park(Native Method)
> at java.util.concurrent.locks.LockSupport.park(LockSupport.java:186)
> 
> We had some issues this summer (that’s why I asked a lot about database 
> improvment)
> 
> Thery were due to a high load of the database (useless fetches) that lead to 
> deadlocks.
> 
> We improve the tiggers and the eomodel and now, such dumps are away.
> 
> Now, when I report such a dump, I look for the thread wtih the database acces 
> and try to understand why it freezes the others.
> 
> Hope it helps,
> 
> Jérémy
> 
>> Le 2 sept. 2016 à 17:06, Ricardo Parada  a écrit :
>> 
>> Hi all,
>> 
>> In a recent release one of our apps started to get stuck.  This is the stack 
>> trace of all threads in the app.  I ordered the threads to show the ones 
>> that I think are in a deadlock: WorkerThread2, Timer-0 and 
>> BackgroundTask-63.  How can I tell if the apps are in a deadlock by looking 
>> at the stack trace?  Thanks in advance for any help.
>> 
>> 
>> 
>> Sep 01 16:58:03 PatientResponsibilityPricer[21008] FATAL 
>> er.extensions.statistics.ERXStatisticsStore  - Request is taking too long, 
>> possible deadlock: 300530 ms 
>> 
>> Request Thread Name: ERXStopWatchTimer
>> 
>> WorkerThread2:
>> Thread[WorkerThread2,5,main]:
>> at sun.misc.Unsafe.park(Native Method)
>> at java.util.concurrent.locks.LockSupport.park(LockSupport.java:186)
>> at 
>> java.util.concurrent.locks.AbstractQueuedSynchronizer.parkAndCheckInterrupt(AbstractQueuedSynchronizer.java:834)
>> at 
>> java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireQueued(AbstractQueuedSynchronizer.java:867)
>> at 
>> java.util.concurrent.locks.AbstractQueuedSynchronizer.acquire(AbstractQueuedSynchronizer.java:1197)
>> at 
>> java.util.concurrent.locks.ReentrantLock$NonfairSync.lock(ReentrantLock.java:214)
>> at java.util.concurrent.locks.ReentrantLock.lock(ReentrantLock.java:290)
>> at 
>> com.webobjects.eocontrol.EOObjectStoreCoordinator.lock(EOObjectStoreCoordinator.java:420)
>> at 
>> er.extensions.eof.ERXEOGlobalIDUtilities.fetchObjectsWithGlobalIDs(ERXEOGlobalIDUtilities.java:244)
>> at 
>> er.extensions.eof.ERXEOGlobalIDUtilities.fetchObjectsWithGlobalIDs(ERXEOGlobalIDUtilities.java:229)
>> at 
>> com.mpv.eoaccesscontrol.MPVGenericRecordUtil.objectsForGlobalIDs(MPVGenericRecordUtil.java:118)
>> at com.mpv.security.AppUser.activeUserGroups(AppUser.java:393)
>> at com.mpv.webcomponents.MPVWOSession.activeUserGroup(MPVWOSession.java:742)
>> at 
>> com.mpv.webcomponents.MPVWOComponent.defaultUserGroup(MPVWOComponent.java:603)
>> at 
>> com.mpv.prpcomponents.PRPContentComponent.estimateType(PRPContentComponent.java:428)
>> at 
>> com.mpv.prpcomponents.PRPContentComponent.shouldUseNewSchema(PRPContentComponent.java:506)
>> at 
>> com.mpv.prpcomponents.PRPEstimateDetail.showNewUI(PRPEstimateDetail.java:2451)
>> at 
>> com.mpv.prpcomponents.PRPEstimateDetail.patient(PRPEstimateDetail.java:528)
>> at 
>> com.mpv.prpcomponents.PRPEstimateDetail.effectiveSubscriber(PRPEstimateDetail.java:300)
>> at 
>> com.mpv.prpcomponents.PRPEstimateDetail.subscriberAddressInvalid(PRPEstimateDetail.java:327)
>> at sun.reflect.GeneratedMethodAccessor220.invoke(Unknown Source)
>> at 
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>> at java.lang.reflect.Method.invoke(Method.java:606)
>> at 
>> com.webobjects.foundation.NSKeyValueCoding$ValueAccessor$1.methodValue(NSKeyValueCoding.java:636)
>> at 
>> com.webobjects.foundation.NSKeyValueCoding$_MethodBinding.valueInObject(NSKeyValueCoding.java:1134)
>> at 
>> com.webobjects.foundation.NSKeyValueCoding$DefaultImplementation.valueForKey(NSKeyValueCoding.java:1324)
>> at com.webobjects.appserver.WOComponent.valueForKey(WOComponent.java:1736)
>> at 
>> com.webobjects.foundation.NSKeyValueCoding$Utility.valueForKey(NSKeyValueCoding.java:447)
>> a

Is this a deadlock?

2016-09-02 Thread Ricardo Parada
Hi all,

In a recent release one of our apps started to get stuck.  This is the stack 
trace of all threads in the app.  I ordered the threads to show the ones that I 
think are in a deadlock: WorkerThread2, Timer-0 and BackgroundTask-63.  How can 
I tell if the apps are in a deadlock by looking at the stack trace?  Thanks in 
advance for any help.



Sep 01 16:58:03 PatientResponsibilityPricer[21008] FATAL 
er.extensions.statistics.ERXStatisticsStore  - Request is taking too long, 
possible deadlock: 300530 ms 

Request Thread Name: ERXStopWatchTimer

WorkerThread2:
Thread[WorkerThread2,5,main]:
at sun.misc.Unsafe.park(Native Method)
at java.util.concurrent.locks.LockSupport.park(LockSupport.java:186)
at 
java.util.concurrent.locks.AbstractQueuedSynchronizer.parkAndCheckInterrupt(AbstractQueuedSynchronizer.java:834)
at 
java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireQueued(AbstractQueuedSynchronizer.java:867)
at 
java.util.concurrent.locks.AbstractQueuedSynchronizer.acquire(AbstractQueuedSynchronizer.java:1197)
at 
java.util.concurrent.locks.ReentrantLock$NonfairSync.lock(ReentrantLock.java:214)
at java.util.concurrent.locks.ReentrantLock.lock(ReentrantLock.java:290)
at 
com.webobjects.eocontrol.EOObjectStoreCoordinator.lock(EOObjectStoreCoordinator.java:420)
at 
er.extensions.eof.ERXEOGlobalIDUtilities.fetchObjectsWithGlobalIDs(ERXEOGlobalIDUtilities.java:244)
at 
er.extensions.eof.ERXEOGlobalIDUtilities.fetchObjectsWithGlobalIDs(ERXEOGlobalIDUtilities.java:229)
at 
com.mpv.eoaccesscontrol.MPVGenericRecordUtil.objectsForGlobalIDs(MPVGenericRecordUtil.java:118)
at com.mpv.security.AppUser.activeUserGroups(AppUser.java:393)
at com.mpv.webcomponents.MPVWOSession.activeUserGroup(MPVWOSession.java:742)
at 
com.mpv.webcomponents.MPVWOComponent.defaultUserGroup(MPVWOComponent.java:603)
at 
com.mpv.prpcomponents.PRPContentComponent.estimateType(PRPContentComponent.java:428)
at 
com.mpv.prpcomponents.PRPContentComponent.shouldUseNewSchema(PRPContentComponent.java:506)
at 
com.mpv.prpcomponents.PRPEstimateDetail.showNewUI(PRPEstimateDetail.java:2451)
at com.mpv.prpcomponents.PRPEstimateDetail.patient(PRPEstimateDetail.java:528)
at 
com.mpv.prpcomponents.PRPEstimateDetail.effectiveSubscriber(PRPEstimateDetail.java:300)
at 
com.mpv.prpcomponents.PRPEstimateDetail.subscriberAddressInvalid(PRPEstimateDetail.java:327)
at sun.reflect.GeneratedMethodAccessor220.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at 
com.webobjects.foundation.NSKeyValueCoding$ValueAccessor$1.methodValue(NSKeyValueCoding.java:636)
at 
com.webobjects.foundation.NSKeyValueCoding$_MethodBinding.valueInObject(NSKeyValueCoding.java:1134)
at 
com.webobjects.foundation.NSKeyValueCoding$DefaultImplementation.valueForKey(NSKeyValueCoding.java:1324)
at com.webobjects.appserver.WOComponent.valueForKey(WOComponent.java:1736)
at 
com.webobjects.foundation.NSKeyValueCoding$Utility.valueForKey(NSKeyValueCoding.java:447)
at 
com.webobjects.foundation.NSKeyValueCodingAdditions$DefaultImplementation.valueForKeyPath(NSKeyValueCodingAdditions.java:212)
at com.webobjects.appserver.WOComponent.valueForKeyPath(WOComponent.java:1804)
at com.mpv.webcomponents.MPVWOComponent.valueForKeyPath(MPVWOComponent.java:120)
at 
com.webobjects.appserver._private.WOKeyValueAssociation.valueInComponent(WOKeyValueAssociation.java:50)
at 
com.webobjects.appserver.WOAssociation.booleanValueInComponent(WOAssociation.java:276)
at 
er.extensions.components.conditionals.ERXWOConditional.conditionInComponent(ERXWOConditional.java:47)
at 
er.extensions.components.conditionals.ERXWOConditional.meetsConditionInComponent(ERXWOConditional.java:52)
at 
er.extensions.components.conditionals.ERXWOConditional.invokeAction(ERXWOConditional.java:103)
at 
com.webobjects.appserver._private.WODynamicGroup.invokeChildrenAction(WODynamicGroup.java:105)
at 
com.webobjects.appserver._private.WODynamicGroup.invokeAction(WODynamicGroup.java:115)
at er.extensions.components.conditionals.ERXElse.invokeAction(ERXElse.java:43)
at 
com.webobjects.appserver._private.WODynamicGroup.invokeChildrenAction(WODynamicGroup.java:105)
at 
com.webobjects.appserver._private.WODynamicGroup.invokeAction(WODynamicGroup.java:115)
at er.ajax.AjaxDynamicElement.invokeAction(AjaxDynamicElement.java:98)
at er.ajax.AjaxUpdateContainer.invokeAction(AjaxUpdateContainer.java:80)
at 
com.webobjects.appserver._private.WODynamicGroup.invokeChildrenAction(WODynamicGroup.java:105)
at 
com.webobjects.appserver._private.WODynamicGroup.invokeAction(WODynamicGroup.java:115)
at er.extensions.components.conditionals.ERXElse.invokeAction(ERXElse.java:43)
at 
com.webobjects.appserver._private.WODynamicGroup.invokeChildrenAction(WODynamicGroup.java:105)
at 
com.webobjects.appserver._private.WODynamicGroup.invokeAction(WODynamicGroup.java:115)
at er.extensions.components.conditionals.ERXElse.invokeAction(ERXElse.java:43)
a

Re: Summary of the State of the Community

2016-07-25 Thread Ricardo Parada
That is very accurate. 

:-)

> On Jul 13, 2016, at 1:35 PM, Chuck Hill  wrote:
> 
> Here is my brief take on what defines the community.
>  
> Many of us got started with WO before anyone came along and told us that we 
> should not want a coherent, consistent, end-to-end stack that mostly “just 
> worked”.   So we naively started using it and found that it was a joy to work 
> like this and very productive.   When the industry mantra became that we 
> needed to be able to choose our own “industry standard” disjoint, disparate 
> pieces and glue them together using glue, sticky tape, and Spring, we ignored 
> them.   Those who joined in after that were either visionaries or insane.  I 
> am still not sure where to draw that line! 
>  
> Which brings us to now.  Most of us have decades of experience in software 
> development and much of that using a toolset that gave us a complete 
> scaffolding on which to hang our application specific logic. Dave Avendasora 
> had a good analogy.  WO says “You want a house?   OK, here is a house that 
> will suit 90% of people, fully built, and here are instructions on how to 
> renovate what does not suit you.  Oh, and we are going to surround that house 
> with other houses, schools, stores, and hospitals as you are probably going 
> to want those too”.  The industry standard tools say, “You want a house?  You 
> don’t want a house.  What?  Are you stupid?  You want total control!  You 
> want no vendor lock-in! Look, here is a bunch of lumber and construction 
> tools, a cement, and look a bulldozer!  A bulldozer!  Go build whatever you 
> need to exactly suit you”.
>  
> We know how good things can be and we are not willing to settle for less.  
> That is what defines us.  That is why we are still here.  While some of us, 
> like Andrus, have gone away and re-created part of the goodness and added 
> some new goodness, we are still all influenced by what we witnessed and 
> worked with.
>  
>  
> Chuck
>  
> From:  on behalf 
> of Pascal Robert 
> Date: Monday, July 11, 2016 at 6:14 PM
> To: "webobjects-dev@lists.apple.com" 
> Subject: Summary of the State of the Community
>  
> Dear members of the WO Community,
>  
> At WOWODC 2016, we had many discussions about the future of the community. We 
> also saw many tools to get forward. But before moving forward on the 
> technical side, many attendees made a point: we should find out what unites 
> us. Is this only because of WebObjects, or because we use WebObjects and 
> Wonder for rapid development? Or because most of you are small teams and are 
> doing full-stack development?
>  
> So, before we decide to replace, or not, the tool stack, we want to know what 
> defines the community and we want for feedback about this.
>  
> As for the current operations, the WOCommunity Association still stay up at 
> least until January 24th 2017. We have enough money to pay for the hosting 
> and the store for the remaining of the year. We can also save some money by 
> moving some of the podcasts to mirrors and by running Jenkins elsewhere, or 
> maybe everything. If you want to host some of the podcasts (the older ones) 
> or host Jenkins, please notify me.
>  
> You can listen to the talk here:
>  
> http://wocommunity.org/podcasts/wowodc/2016/State_of_the_Community.mp4
> http://wocommunity.org/podcasts/wowodc/2016/State_of_the_Community_Followup.mp4
>  
> Also, Samuel Pelletier created a Slack channel to discuss the state of 
> things, send an email to him or me if you wish to join the channel.
>  
> Thanks.
> ___
> 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:
> https://lists.apple.com/mailman/options/webobjects-dev/chill%40gevityinc.com
>  
> This email sent to ch...@gevityinc.com
> ___
> 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:
> https://lists.apple.com/mailman/options/webobjects-dev/rparada%40mac.com
> 
> This email sent to rpar...@mac.com
 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: Going Server-side with Swift Open Source

2016-06-18 Thread Ricardo Parada
It looks very interesting. Has anybody played with it? I get the impression 
that it's brand new. It could help mitigate Swift envy. :-)

Thanks for sharing Chuck. 

> On Jun 16, 2016, at 3:48 PM, Chuck Hill  wrote:
> 
> Not to mention the enormous selection of Java libraries.  If you really don’t 
> like Java, try Kotlin (https://kotlinlang.org) which does run on the JVM and 
> is very similar to Swift. 
>  
> Chuck
>  
>  
> From:  on behalf 
> of Ricardo Parada 
> Date: Thursday, June 16, 2016 at 12:12 PM
> To: Yuri Kondratov 
> Cc: WebObjects-Dev 
> Subject: Re: Going Server-side with Swift Open Source
>  
> Hi -
>  
> I’ve been following Swift’s evolution in the swift-evolution mailing list.  
> As it exists today on the server is still lacking some key features needed to 
> implement key-value-coding.
>  
> There is a MIrror class that allows you to see the property names of a class 
> (or even a struct) and get the value of each property.  But it only works for 
> properties.  It does not work for methods in your objects.  In addition, it 
> is read-only, i.e. you can get the values but you cannot set properties.
>  
> Hopefully by Swift 4 or 5 those features will arrive.  But they are not there 
> in Swift 3.
>  
> On Apple platforms they are able to use CoreData because they are leveraging 
> Objective-C run-time.  However, the Objective-C run-time is not available on 
> the server.
>  
> Ricardo Parada
>  
>  
>  
> On Jun 15, 2016, at 3:50 PM, Yuri Kondratov  wrote:
>  
> I'm just hoping maybe apple will hint at a server side framework written in 
> swift they will be releasing to the public :)
> 
> On Jun 15, 2016, at 1:06 PM, Flavio Donadio  wrote:
> 
> Yuri,
>  
>  
> I can’t say much right now, as the video is not available. And, even after I 
> watch the video, I may still be unable to add anything to this conversation, 
> as my knowledge lack a lot. :D
>  
> From what I understand, one could write server-side applications in any 
> language. For web apps, it’s necessary to integrate said language with an 
> HTTP server — through CGI, Apache module or whatever. Apache is pretty much 
> standard. I tend to think “mod_swift.so” would be the best solution now...
>  
> Still, for something like WebObjects to be “ported” over to Swift, there’s a 
> lot to be done. The Enterprise Objects Framework is what makes it so nice and 
> easy to write WO apps and it is, by far, the larger part of the code base. 
> And then there’s wotaskd, the database connectors…
>  
> I am sure I am missing something, but I don’t see where a programming 
> language would help us. Even if it is incredibly better than Java, which is a 
> whole different conversation, with very different opinions, I am sure. ;)
>  
> Still, hope springs eternal.
>  
>  
> Cheers,
> Flavio
>  
> 
> On 15/06/2016, at 03:04, Yuri Kondratov  wrote:
>  
> For those that have not noticed this:
>  
> https://developer.apple.com/videos/play/wwdc2016/415/
>  
> Going Server-side with Swift Open Source
>  
> While the Swift language makes it easy to write software that is incredibly 
> fast and safe by design, Swift being open source means you can use it on an 
> even broader range of platforms, from mobile devices to the desktop and in 
> the cloud. Come for an overview of available projects at Swift.org and 
> examples of the community in action.
>  
> WWDC 2016 - Session 415
>  
> 
>  
>  
> It was also mentioned in the currently available "What's New in Swift" at 9:55
>  
> https://developer.apple.com/videos/play/wwdc2016/402/
> ___
> 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:
> https://lists.apple.com/mailman/options/webobjects-dev/flavio%40donadio.com.br
> 
> This email sent to fla...@donadio.com.br
>  
> ___
> 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:
> https://lists.apple.com/mailman/options/webobjects-dev/rparada%40mac.com
> 
> This email sent to rpar...@mac.com
>  
 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: Going Server-side with Swift Open Source

2016-06-16 Thread Ricardo Parada
Hi -

I’ve been following Swift’s evolution in the swift-evolution mailing list.  As 
it exists today on the server is still lacking some key features needed to 
implement key-value-coding.

There is a MIrror class that allows you to see the property names of a class 
(or even a struct) and get the value of each property.  But it only works for 
properties.  It does not work for methods in your objects.  In addition, it is 
read-only, i.e. you can get the values but you cannot set properties.

Hopefully by Swift 4 or 5 those features will arrive.  But they are not there 
in Swift 3.

On Apple platforms they are able to use CoreData because they are leveraging 
Objective-C run-time.  However, the Objective-C run-time is not available on 
the server.

Ricardo Parada



> On Jun 15, 2016, at 3:50 PM, Yuri Kondratov  wrote:
> 
> I'm just hoping maybe apple will hint at a server side framework written in 
> swift they will be releasing to the public :)
> 
> On Jun 15, 2016, at 1:06 PM, Flavio Donadio  <mailto:fla...@donadio.com.br>> wrote:
> 
>> Yuri,
>> 
>> 
>> I can’t say much right now, as the video is not available. And, even after I 
>> watch the video, I may still be unable to add anything to this conversation, 
>> as my knowledge lack a lot. :D
>> 
>> From what I understand, one could write server-side applications in any 
>> language. For web apps, it’s necessary to integrate said language with an 
>> HTTP server — through CGI, Apache module or whatever. Apache is pretty much 
>> standard. I tend to think “mod_swift.so” would be the best solution now...
>> 
>> Still, for something like WebObjects to be “ported” over to Swift, there’s a 
>> lot to be done. The Enterprise Objects Framework is what makes it so nice 
>> and easy to write WO apps and it is, by far, the larger part of the code 
>> base. And then there’s wotaskd, the database connectors…
>> 
>> I am sure I am missing something, but I don’t see where a programming 
>> language would help us. Even if it is incredibly better than Java, which is 
>> a whole different conversation, with very different opinions, I am sure. ;)
>> 
>> Still, hope springs eternal.
>> 
>> 
>> Cheers,
>> Flavio
>> 
>> 
>>> On 15/06/2016, at 03:04, Yuri Kondratov >> <mailto:yuri.kondra...@icloud.com>> wrote:
>>> 
>>> For those that have not noticed this:
>>> 
>>> https://developer.apple.com/videos/play/wwdc2016/415/ 
>>> <https://developer.apple.com/videos/play/wwdc2016/415/>
>>> 
>>> Going Server-side with Swift Open Source
>>> 
>>> While the Swift language makes it easy to write software that is incredibly 
>>> fast and safe by design, Swift being open source means you can use it on an 
>>> even broader range of platforms, from mobile devices to the desktop and in 
>>> the cloud. Come for an overview of available projects at Swift.org 
>>> <http://swift.org/> and examples of the community in action.
>>> 
>>> WWDC 2016 - Session 415
>>> 
>>> 
>>> 
>>> 
>>> It was also mentioned in the currently available "What's New in Swift" at 
>>> 9:55
>>> 
>>> https://developer.apple.com/videos/play/wwdc2016/402/ 
>>> <https://developer.apple.com/videos/play/wwdc2016/402/>___
>>> Do not post admin requests to the list. They will be ignored.
>>> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com 
>>> <mailto:Webobjects-dev@lists.apple.com>)
>>> Help/Unsubscribe/Update your Subscription:
>>> https://lists.apple.com/mailman/options/webobjects-dev/flavio%40donadio.com.br
>>>  
>>> <https://lists.apple.com/mailman/options/webobjects-dev/flavio%40donadio.com.br>
>>> 
>>> This email sent to fla...@donadio.com.br <mailto:fla...@donadio.com.br>
> ___
> 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:
> https://lists.apple.com/mailman/options/webobjects-dev/rparada%40mac.com
> 
> This email sent to rpar...@mac.com

 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: Closure of WOCommunity Association

2016-05-16 Thread Ricardo Parada
Oops, I meant one Silver sponsorship. 

By the way, we are one of those who are still on an old version of Wonder but 
we will be moving to the latest version.  After that I am hoping to keep it up 
to date and not let it fall behind. 



> On May 16, 2016, at 5:33 PM, Ricardo Parada  wrote:
> 
> I signed up my employer for one Bronze sponsorship. Sometimes we take things 
> for granted. We benefit a lot for Wonder. 
> 
> I really appreciate everything you do Pascal. 
> 
> I really love WebObjects, Wonder, the wocommunity web site and this community 
> of very experienced and talented developers. 
> 
> I will not be attending this year because things did not align right for me 
> this time. I was really looking forward to going. I hope I have better luck 
> next year. A coworker will be attending though. And I look forward to seeing 
> the videos of the conferences. 
> 
> 
> 
>> On May 11, 2016, at 6:14 PM, Hugi Thordarson  wrote:
>> 
>> (throws money at screen)
>> 
>> http://store.wocommunity.org/products/membership
>> 
>> We all know what an amazing job Pascal has done.
>> 
>> 
>>> On 11. maí 2016, at 22:07, Chuck Hill  wrote:
>>> 
>>> At 32 people that is $200 each to cover the shortfall.  I am good for at 
>>> least that!  We are not going to let you get caught short on this.
>>> 
>>> Maybe we can encourage some additional people to attend too.
>>> 
>>> Chuck
>>> 
>>> 
>>> From:  on 
>>> behalf of Ken Anderson 
>>> Date: Wednesday, May 11, 2016 at 2:08 PM
>>> To: Pascal Robert 
>>> Cc: WebObjects-Dev 
>>> Subject: Re: Closure of WOCommunity Association
>>> 
>>> Pascal, 
>>> 
>>> Why would you think we would let that happen to you?  We will figure it out 
>>> and make sure you’re not out of pocket.  What are the minimums you have to 
>>> meet?
>>> 
>>> Ken
>>> 
>>> On May 11, 2016, at 4:49 PM, Pascal Robert  wrote:
>>> 
>>> I fond it weird to have to do that because we only have 32 guys at WOWODC, 
>>> so we have a +6000$ deficit that I will have to pay from my pockets since I 
>>> can't meet the minimum set by the hotel.
>>> De : webobjects-dev-bounces+probert=macti...@lists.apple.com 
>>>  de la part de 
>>> Musall Maik 
>>> Envoyé : 11 mai 2016 16:37:22
>>> À : WebObjects-Dev
>>> Objet : Re: Closure of WOCommunity Association
>>> 
>>> Hi guys,
>>> 
>>> I find this weird to be announced exclusively on Facebook of all places. I 
>>> also find it inappropriate to be notified of something like this on short 
>>> notice without a chance for the community to discuss the details before 
>>> it's too late. 
>>> 
>>> Anyway, we can host the stuff at our company's hosting place. One VPS more 
>>> ore less doesn't make a difference. If the hosting costs are the main 
>>> factor, we can eliminate that.
>>> 
>>> Maik
>>> 
>>> Am 11.05.2016 um 21:06 schrieb jazzsalsa :
>>> 
>>> Hi WebObjects fans,
>>> 
>>> I just read this message on Facebook from Pascal:
>>> 
>>> Pascal Robert
>>> 
>>> 21 hrs · Montreal, QC, Canada
>>> With the official death of WebObjects, it is time to announce the closure 
>>> of the WOCommunity Association. We don't have any cash left to pay the 
>>> expenses of WOWODC 2016 and the hosting.
>>> WOWODC 2016 won't be cancelled. Unless someone wants to host the wiki and 
>>> Jenkins, they will be shutdown at the end of the month. Recordings of 
>>> WOWODC 2016 will only be available to attendees.
>>> 
>>> Very bad indeed. Therefore I created an overview of WebObjects fans I found 
>>> on the wiki:
>>> 
>>> https://onedrive.live.com/redir?resid=ADCCC076DD8AF29D!106&authkey=!ACckRFppMHmbsog&ithint=file%2cxlsx
>>> 
>>> Let's find out how to organize the migration. I just sent an email to 
>>> RedHat (openshift) to see if they support it. 
>>> 1. Could you be so kind to add your email address in case your are 
>>> interested to receive updates about the migration? 
>>> 2. Fill in the column ("continent") as well to figure out how we are 
>>> distributed on the planet(for skype calls and meetups). 
>>> 3. Mention if you support (need) the migration of the services maven, 
>>> jenkins, wiki, others I forgot
>>> 
>>> Pascal, could 

Re: Closure of WOCommunity Association

2016-05-16 Thread Ricardo Parada
I signed up my employer for one Bronze sponsorship. Sometimes we take things 
for granted. We benefit a lot for Wonder. 

I really appreciate everything you do Pascal. 

I really love WebObjects, Wonder, the wocommunity web site and this community 
of very experienced and talented developers. 

I will not be attending this year because things did not align right for me 
this time. I was really looking forward to going. I hope I have better luck 
next year. A coworker will be attending though. And I look forward to seeing 
the videos of the conferences. 



> On May 11, 2016, at 6:14 PM, Hugi Thordarson  wrote:
> 
> (throws money at screen)
> 
> http://store.wocommunity.org/products/membership
> 
> We all know what an amazing job Pascal has done.
> 
> 
>> On 11. maí 2016, at 22:07, Chuck Hill  wrote:
>> 
>> At 32 people that is $200 each to cover the shortfall.  I am good for at 
>> least that!  We are not going to let you get caught short on this.
>> 
>> Maybe we can encourage some additional people to attend too.
>> 
>> Chuck
>> 
>> 
>> From:  on behalf 
>> of Ken Anderson 
>> Date: Wednesday, May 11, 2016 at 2:08 PM
>> To: Pascal Robert 
>> Cc: WebObjects-Dev 
>> Subject: Re: Closure of WOCommunity Association
>> 
>> Pascal, 
>> 
>> Why would you think we would let that happen to you?  We will figure it out 
>> and make sure you’re not out of pocket.  What are the minimums you have to 
>> meet?
>> 
>> Ken
>> 
>> On May 11, 2016, at 4:49 PM, Pascal Robert  wrote:
>> 
>> I fond it weird to have to do that because we only have 32 guys at WOWODC, 
>> so we have a +6000$ deficit that I will have to pay from my pockets since I 
>> can't meet the minimum set by the hotel.
>> De : webobjects-dev-bounces+probert=macti...@lists.apple.com 
>>  de la part de 
>> Musall Maik 
>> Envoyé : 11 mai 2016 16:37:22
>> À : WebObjects-Dev
>> Objet : Re: Closure of WOCommunity Association
>> 
>> Hi guys,
>> 
>> I find this weird to be announced exclusively on Facebook of all places. I 
>> also find it inappropriate to be notified of something like this on short 
>> notice without a chance for the community to discuss the details before it's 
>> too late. 
>> 
>> Anyway, we can host the stuff at our company's hosting place. One VPS more 
>> ore less doesn't make a difference. If the hosting costs are the main 
>> factor, we can eliminate that.
>> 
>> Maik
>> 
>> Am 11.05.2016 um 21:06 schrieb jazzsalsa :
>> 
>> Hi WebObjects fans,
>> 
>> I just read this message on Facebook from Pascal:
>> 
>> Pascal Robert
>> 
>> 21 hrs · Montreal, QC, Canada
>> With the official death of WebObjects, it is time to announce the closure of 
>> the WOCommunity Association. We don't have any cash left to pay the expenses 
>> of WOWODC 2016 and the hosting.
>> WOWODC 2016 won't be cancelled. Unless someone wants to host the wiki and 
>> Jenkins, they will be shutdown at the end of the month. Recordings of WOWODC 
>> 2016 will only be available to attendees.
>> 
>> Very bad indeed. Therefore I created an overview of WebObjects fans I found 
>> on the wiki:
>> 
>> https://onedrive.live.com/redir?resid=ADCCC076DD8AF29D!106&authkey=!ACckRFppMHmbsog&ithint=file%2cxlsx
>> 
>> Let's find out how to organize the migration. I just sent an email to RedHat 
>> (openshift) to see if they support it. 
>> 1. Could you be so kind to add your email address in case your are 
>> interested to receive updates about the migration? 
>> 2. Fill in the column ("continent") as well to figure out how we are 
>> distributed on the planet(for skype calls and meetups). 
>> 3. Mention if you support (need) the migration of the services maven, 
>> jenkins, wiki, others I forgot
>> 
>> Pascal, could you be so kind to fill in sheet "Infrastructure" about the 
>> size of the services we are talking about. This will help to migrate this 
>> easily.
>> 
>> Many thanks, Bart
>> ___
>> 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:
>> https://lists.apple.com/mailman/options/webobjects-dev/maik%40selbstdenker.ag
>> 
>> This email sent to m...@selbstdenker.ag
>> 
>> ___
>> 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:
>> https://lists.apple.com/mailman/options/webobjects-dev/kenlists%40anderhome.com
>> 
>> This email sent to kenli...@anderhome.com
>> 
>> ___
>> 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:
>> https://lists.apple.com/mailman/options/webobjects-dev/hugi%40karlmenn.is
>> 
>> This email sent to h...@karlmenn.is
> 
> 
> _

Re: WebObjects officially declared dead by Apple

2016-05-04 Thread Ricardo Parada
It's their best kept secret. Their super secret weapon.  :-)

> On May 4, 2016, at 2:40 PM, Joel M. Benisch  wrote:
> 
> Which would seem to indicate that work is continuing on WO for Apple's 
> internal use 
> 
> Am I stating the obvious???
> 
> Joel
> --
> Joel M. Benisch CPCU, President 
> 973-992-6300 x303
> PaperFree Corporation   
> 973-992- FAX
> 909 Regal Boulevard 
> j...@paperfree.net
> Livingston, NJ 07039-8249   WE CREATE PRODUCTS WE WOULD WANT TO USE!
> 
>> On May 4, 2016, at 12:33 PM, Pascal Robert wrote:
>> 
>> Looks like most WO devs in North America are working directly or indirectly 
>> for Apple. That would explain why we have more Europeans coming to WOWODC 
>> than people near.
>> 
>> De : webobjects-dev-bounces+probert=macti...@lists.apple.com 
>>  de la part de 
>> Ricardo Parada 
>> Envoyé : 4 mai 2016 13:53:31
>> À : Chuck Hill
>> Cc : WebObjects-Dev
>> Objet : Re: WebObjects officially declared dead by Apple
>>  
>> 
>> I see people disappear from this list every time they are hired by Apple. I 
>> just noticed Kieran has not been active in the list and his linked in 
>> profile says he is now at Apple. 
>> 
>> :-)
>> 
>> On May 4, 2016, at 1:46 PM, Chuck Hill  wrote:
>> 
>>> Gee…. I wonder if he will still associate with us now!
>>> 
>>> From: Ramsey Gurley 
>>> Date: Wednesday, May 4, 2016 at 10:24 AM
>>> To: David LeBer 
>>> Cc: Chuck Hill , WebObjects-Dev 
>>> 
>>> Subject: Re: WebObjects officially declared dead by Apple
>>> 
>>> Hugi, you’re famous now :D
>>> 
>>> http://www.businessinsider.com/apple-officially-discontinues-webobjects-2016-5
>>> 
>>> 
>>>> On May 3, 2016, at 4:20 PM, David LeBer  
>>>> wrote:
>>>> 
>>>> Yeah, I was surprised by that too.
>>>> 
>>>> Apple rarely gives definitive statements on anything, let alone a long 
>>>> dead and forgotten product ;)
>>>> 
>>>> -- 
>>>> D
>>>> 
>>>>> On May 3, 2016 at 7:11:05 PM, Chuck Hill (ch...@gevityinc.com) wrote:
>>>>> 
>>>>> I am surprised that Hugi got a clear statement from Apple. That must have 
>>>>> taken some persistence! “Frank, this damn Hugi guy keeps bugging us every 
>>>>> year, get rid of him!”
>>>>> 
>>>>> :-)
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> On 2016-05-03, 4:04 PM, 
>>>>> "webobjects-dev-bounces+chill=gevityinc@lists.apple.com on behalf of 
>>>>> Pascal Robert" 
>>>>> >>>> prob...@macti.ca> wrote:
>>>>> 
>>>>> >
>>>>> >> Le 3 mai 2016 à 12:47, Flavio Donadio  a écrit :
>>>>> >> 
>>>>> >> Hugi,
>>>>> >> 
>>>>> >> 
>>>>> >> That’s bad news, but it’s exactly what we expected, in a certain way. 
>>>>> >> The silence and lack of updates for such a long time were telling us 
>>>>> >> the truth, although we wouldn’t accept it — there had to be a final 
>>>>> >> word, straight from the horse’s mouth! I guess we have it now.
>>>>> >> 
>>>>> >> So, they say WO is dead. We say “long live, WO!"
>>>>> >> 
>>>>> >> We should move on to the next step: nagging Apple to release WO/EOF as 
>>>>> >> open source software! ;-)
>>>>> >
>>>>> >This topic comes around every year. Multiple people asked this to Apple 
>>>>> >over the last 7 years. It won’t happen. Final.
>>>>> >
>>>>> >> 
>>>>> >> Cheers,
>>>>> >> Flavio
>>>>> >> 
>>>>> >> 
>>>>> >>> On 03/05/2016, at 12:19, Hugi Thordarson  wrote:
>>>>> >>> 
>>>>> >>> Hi all.
>>>>> >>> 
>>>>> >>> We probably all know that WO's been practically dead to Apple for a 
>>>>> >

Re: WebObjects officially declared dead by Apple

2016-05-04 Thread Ricardo Parada

I see people disappear from this list every time they are hired by Apple. I 
just noticed Kieran has not been active in the list and his linked in profile 
says he is now at Apple. 

:-)

> On May 4, 2016, at 1:46 PM, Chuck Hill  wrote:
> 
> Gee…. I wonder if he will still associate with us now!
> 
> From: Ramsey Gurley 
> Date: Wednesday, May 4, 2016 at 10:24 AM
> To: David LeBer 
> Cc: Chuck Hill , WebObjects-Dev 
> 
> Subject: Re: WebObjects officially declared dead by Apple
> 
> Hugi, you’re famous now :D
> 
> http://www.businessinsider.com/apple-officially-discontinues-webobjects-2016-5
> 
> 
>> On May 3, 2016, at 4:20 PM, David LeBer  wrote:
>> 
>> Yeah, I was surprised by that too.
>> 
>> Apple rarely gives definitive statements on anything, let alone a long dead 
>> and forgotten product ;)
>> 
>> -- 
>> D
>> 
>>> On May 3, 2016 at 7:11:05 PM, Chuck Hill (ch...@gevityinc.com) wrote:
>>> 
>>> I am surprised that Hugi got a clear statement from Apple. That must have 
>>> taken some persistence! “Frank, this damn Hugi guy keeps bugging us every 
>>> year, get rid of him!”
>>> 
>>> :-)
>>> 
>>> 
>>> 
>>> 
>>> 
>>> On 2016-05-03, 4:04 PM, 
>>> "webobjects-dev-bounces+chill=gevityinc@lists.apple.com on behalf of 
>>> Pascal Robert" >> on behalf of prob...@macti.ca> wrote:
>>> 
>>> >
>>> >> Le 3 mai 2016 à 12:47, Flavio Donadio  a écrit :
>>> >> 
>>> >> Hugi,
>>> >> 
>>> >> 
>>> >> That’s bad news, but it’s exactly what we expected, in a certain way. 
>>> >> The silence and lack of updates for such a long time were telling us the 
>>> >> truth, although we wouldn’t accept it — there had to be a final word, 
>>> >> straight from the horse’s mouth! I guess we have it now.
>>> >> 
>>> >> So, they say WO is dead. We say “long live, WO!"
>>> >> 
>>> >> We should move on to the next step: nagging Apple to release WO/EOF as 
>>> >> open source software! ;-)
>>> >
>>> >This topic comes around every year. Multiple people asked this to Apple 
>>> >over the last 7 years. It won’t happen. Final.
>>> >
>>> >> 
>>> >> Cheers,
>>> >> Flavio
>>> >> 
>>> >> 
>>> >>> On 03/05/2016, at 12:19, Hugi Thordarson  wrote:
>>> >>> 
>>> >>> Hi all.
>>> >>> 
>>> >>> We probably all know that WO's been practically dead to Apple for a 
>>> >>> long time, but unfortunately Apple has refused to state so officially 
>>> >>> (at least I don't recall there being an official statement).
>>> >>> 
>>> >>> Anyhow… In the past years I've regularly sent letters to Tim Cook, 
>>> >>> asking about the state of WO (being the naggy guy I am) and recently, I 
>>> >>> was contacted by Apple executive relations regarding my questions. The 
>>> >>> guy I spoke to called a couple of times, at first, he had absolutely no 
>>> >>> idea what WO was but the second time he called, he had obtained 
>>> >>> information and had a clear statement: "WebObjects is a discontinued 
>>> >>> product and will never be upgraded".
>>> >>> 
>>> >>> I know this information is extremely redundant, but I still wanted to 
>>> >>> tell you since it was something of a relief. Felt a little like the 
>>> >>> police calling you to let you know that they'd found the remains of 
>>> >>> your friend that's been missing for 15 years and finally declared him 
>>> >>> dead.
>>> >>> 
>>> >>> But of course, this changes nothing; WO is still better than ever. We 
>>> >>> just need to continue to distance Wonder from WO and move forward.
>>> >>> 
>>> >>> Cheers,
>>> >>> - hugi
>>> >>> ___
>>> >>> 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:
>>> >>> https://lists.apple.com/mailman/options/webobjects-dev/flavio%40donadio.com.br
>>> >>> 
>>> >>> This email sent to fla...@donadio.com.br
>>> >> 
>>> >> 
>>> >> ___
>>> >> 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:
>>> >> https://lists.apple.com/mailman/options/webobjects-dev/probert%40macti.ca
>>> >> 
>>> >> This email sent to prob...@macti.ca
>>> >
>>> >
>>> > ___
>>> >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:
>>> >https://lists.apple.com/mailman/options/webobjects-dev/chill%40gevityinc.com
>>> >
>>> >This email sent to ch...@gevityinc.com
>>> 
>>> ___
>>> 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:
>>> https://lists.apple.com/mailman/options/webobjects-dev/dleber_wodev%40codeferous.com
>>> 
>>> This email sent to dleber_wo...@codeferous.co

Re: WebObjects officially declared dead by Apple

2016-05-04 Thread Ricardo Parada
Hi Hugi,

I should probably bite the bullet too and get some hands on experience and find 
out what it takes to transition.

I think I would start by changing our base EO class to extend the Cayenne data 
object instead of ERXGenericRecord.  All of a sudden my EOs would be missing a 
lot of the methods from ERXGenericRecord which I could try to reimplement using 
the Cayenne API.  

I have some questions, what would happen to KVC stuff?  In the mean time I 
could use NSKeyValueCoding or Q’s open source implementation I guess.  
NSArrays, NSMutableArrays, and dictionaries would have to be replaced with java 
equivalents I’m guessing.

Can we generate cayenne object models from eomodels?

I have other maybe more advanced questions regarding the feature set of Cayenne 
that we may require in order to transition:

1. Is it possible to have one object model connect to database A, and another 
object model connect to database B?  For example, we run a query against a 
reporting database, then we output some results into a production database.

2. I have an ad hoc query framework that relies on EOSQLExpression to generate 
SQL from fetch specifications and qualifiers.  You specify the attributes to 
fetch and you provide additional attributes to build  a GROUP BY clause, and a 
qualifier for a HAVING clause.  You can also define aggregate attributes (i.e. 
SUM(), AVG(), MAX(), MIN(), roll your own here), on the fly by cloning the 
original entity into a new one that has the aggregate attributes added, which 
are nothing more than flattened attributes added to the new entity.  This 
enables the ad hoc query framework and we use it extensively for reports.

3. Our tables in the database are very large and are partitioned by client id.  
Each client may have large volumes of data (millions) in tables in the 
database.  A client logs in and usually all queries against a main table have a 
clientID = x.  We have our own concrete subclass of EOSQLExpression which 
optimizes the SQL generated by adding automatically clientID = x when joining 
into other child tables that have the clientID attribute.  It is a very elegant 
solution and it amazes me that something like EOF that was created such a long 
time ago enables all these things for us.  We can always get down to the level 
we need and customize its behavior.

4. Can the Cayenne equivalent of EOEntity, EOAttribute and EORelationship have 
user info in them?

5. Do we have the equivalent of ERExistsQualifier that works in memory and 
database?

Thanks



> On May 4, 2016, at 9:42 AM, Hugi Thordarson  wrote:
> 
>> Hugi - you beat me to the Cayenne comment.
>> 
>> In terms of transition, it might not be a bad idea to write a compatibility 
>> layer on top of Cayenne to ease transition.  The concepts and granularity 
>> are similar enough…
> 
> It’s a great idea and I considered doing something like this during my 
> conversion phase, but eventually I found out that it was easier to just bite 
> the bullet and do a complete transition to the Cayenne API. With Eclipse 
> telling you about compilation errors, it’s not really that much of a hassle, 
> even for quite large projects.
> 
> - hugi
> 
> 
>> 
>> Ken
>> 
>>> On May 4, 2016, at 9:24 AM, Ricardo Parada  wrote:
>>> 
>>> 
>>> On May 4, 2016, at 8:52 AM, Hugi Thordarson  wrote:
>>> 
>>>>> If you think about it, one of the reasons they are bringing Swift to 
>>>>> Linux is because they want a cool language on the server as well as on 
>>>>> the client and leverage the code and libraries on both. 
>>>>> 
>>>>> At some point these developers need an ORM framework. Either Apple or 
>>>>> someone else will do it in pure Swift without requiring the Objective-C 
>>>>> run-time. Possibly a future Core Data. Then they'll need a templating 
>>>>> request handling framework like WebObjects for Swift. And a REST 
>>>>> framework. Let's bug Federighi with emails about bringing this back. :-)
>>>> 
>>>> Federighi probably cares a lot about WO/EOF since he spent years 
>>>> reimplementing it at Ariba ( http://aribaweb.org/ ). But I doubt he has 
>>>> the time or support to do anything about WO within Apple. It’s a market 
>>>> Apple simply isn’t in.
>>>> 
>>> 
>>> I remembered Ariba and the time he spent there too and it's part of why I 
>>> was wondering if he had any love left for WebObjects.  :-)
>>> 
>>> Also I can't imagine working on the server side without something like 
>>> EOF/WebObjects. 
>>> 
>>>>> Anyways, putting all this day dreaming aside I think we need a clean room 
>>>>&g

Re: WebObjects officially declared dead by Apple

2016-05-04 Thread Ricardo Parada

On May 4, 2016, at 8:52 AM, Hugi Thordarson  wrote:

>> If you think about it, one of the reasons they are bringing Swift to Linux 
>> is because they want a cool language on the server as well as on the client 
>> and leverage the code and libraries on both. 
>> 
>> At some point these developers need an ORM framework. Either Apple or 
>> someone else will do it in pure Swift without requiring the Objective-C 
>> run-time. Possibly a future Core Data. Then they'll need a templating 
>> request handling framework like WebObjects for Swift. And a REST framework. 
>> Let's bug Federighi with emails about bringing this back. :-)
> 
> Federighi probably cares a lot about WO/EOF since he spent years 
> reimplementing it at Ariba ( http://aribaweb.org/ ). But I doubt he has the 
> time or support to do anything about WO within Apple. It’s a market Apple 
> simply isn’t in.
> 

I remembered Ariba and the time he spent there too and it's part of why I was 
wondering if he had any love left for WebObjects.  :-)

Also I can't imagine working on the server side without something like 
EOF/WebObjects. 

>> Anyways, putting all this day dreaming aside I think we need a clean room 
>> implementation of EOF as it had been described before.  I have worked at al 
>> levels in EOF and I feel this would be possible until I realize that I am 
>> married with four kids and a full time job that leaves me with no spare time 
>> left to work on things like this.   :-)
>> 
>> Was the idea of a clean room implementation of EOF abandoned?
> 
> We already have a clean room reimplementation of EOF—it’s called Cayenne and 
> I’m now using it in all of our projects. We just need to figure out what to 
> do with the presentation layer (WO).
> 

I think that is great for new projects. I was thinking of something API 
compatible with EOF for those of us who have built large systems with WO/EOF to 
make the transition less traumatic. :-)

> - hugi
> 
> 
>> 
>> 
>>> On May 4, 2016, at 4:48 AM, Hugi Thordarson  wrote:
>>> 
>>> Probably no one as surprised as myself. I probably sent dozens of e-mails 
>>> to sjobs on the subject trough the years without receiving a reply. But to 
>>> Tim’s credit, it only took four emails before I was contacted. He’s a lot 
>>> less stubborn, obviously.
>>> 
>>> And we Viking are a misunderstood, peaceful people. Apart from sending 
>>> angry emails to corporate executives, these days we  mostly conduct our 
>>> coastal raids through Panamian law firms using money stored in offshore 
>>> companies. It’s so much easier than eating psychoactive mushrooms and 
>>> running around raping and pillaging.
>>> 
>>> - hugi
>>> 
>>> 
>>> 
 On 3. maí 2016, at 23:22, Chuck Hill  wrote:
 
 The Viking Tradition lives on!
 
 
 From: David LeBer 
 Date: Tuesday, May 3, 2016 at 4:20 PM
 To: Chuck Hill 
 Cc: WebObjects-Dev 
 Subject: Re: WebObjects officially declared dead by Apple
 
 Yeah, I was surprised by that too.
 
 Apple rarely gives definitive statements on anything, let alone a long 
 dead and forgotten product ;)
 
 -- 
 D
 
> On May 3, 2016 at 7:11:05 PM, Chuck Hill (ch...@gevityinc.com) wrote:
> 
> I am surprised that Hugi got a clear statement from Apple. That must have 
> taken some persistence! “Frank, this damn Hugi guy keeps bugging us every 
> year, get rid of him!”
> 
> :-)
> 
> 
> 
> 
> 
>> On 2016-05-03, 4:04 PM, 
>> "webobjects-dev-bounces+chill=gevityinc@lists.apple.com on behalf of 
>> Pascal Robert" 
>> > prob...@macti.ca> wrote:
>> 
>> 
>>> Le 3 mai 2016 à 12:47, Flavio Donadio  a écrit :
>>> 
>>> Hugi,
>>> 
>>> 
>>> That’s bad news, but it’s exactly what we expected, in a certain way. 
>>> The silence and lack of updates for such a long time were telling us 
>>> the truth, although we wouldn’t accept it — there had to be a final 
>>> word, straight from the horse’s mouth! I guess we have it now.
>>> 
>>> So, they say WO is dead. We say “long live, WO!"
>>> 
>>> We should move on to the next step: nagging Apple to release WO/EOF as 
>>> open source software! ;-)
>> 
>> This topic comes around every year. Multiple people asked this to Apple 
>> over the last 7 years. It won’t happen. Final.
>> 
>>> 
>>> Cheers,
>>> Flavio
>>> 
>>> 
 On 03/05/2016, at 12:19, Hugi Thordarson  wrote:
 
 Hi all.
 
 We probably all know that WO's been practically dead to Apple for a 
 long time, but unfortunately Apple has refused to state so officially 
 (at least I don't recall there being an official statement).
 
 Anyhow… In the past years I've regularly sent letters to Tim Cook, 
 asking about the state of WO (being the naggy guy I am) and recently, 
 I was contacted by Apple executive rela

Re: WebObjects officially declared dead by Apple

2016-05-04 Thread Ricardo Parada
If you think about it, one of the reasons they are bringing Swift to Linux is 
because they want a cool language on the server as well as on the client and 
leverage the code and libraries on both. 

At some point these developers need an ORM framework. Either Apple or someone 
else will do it in pure Swift without requiring the Objective-C run-time. 
Possibly a future Core Data. Then they'll need a templating request handling 
framework like WebObjects for Swift. And a REST framework. Let's bug Federighi 
with emails about bringing this back. :-)

Anyways, putting all this day dreaming aside I think we need a clean room 
implementation of EOF as it had been described before.  I have worked at al 
levels in EOF and I feel this would be possible until I realize that I am 
married with four kids and a full time job that leaves me with no spare time 
left to work on things like this.   :-)

Was the idea of a clean room implementation of EOF abandoned?


> On May 4, 2016, at 4:48 AM, Hugi Thordarson  wrote:
> 
> Probably no one as surprised as myself. I probably sent dozens of e-mails to 
> sjobs on the subject trough the years without receiving a reply. But to Tim’s 
> credit, it only took four emails before I was contacted. He’s a lot less 
> stubborn, obviously.
> 
> And we Viking are a misunderstood, peaceful people. Apart from sending angry 
> emails to corporate executives, these days we  mostly conduct our coastal 
> raids through Panamian law firms using money stored in offshore companies. 
> It’s so much easier than eating psychoactive mushrooms and running around 
> raping and pillaging.
> 
> - hugi
> 
> 
> 
>> On 3. maí 2016, at 23:22, Chuck Hill  wrote:
>> 
>> The Viking Tradition lives on!
>> 
>> 
>> From: David LeBer 
>> Date: Tuesday, May 3, 2016 at 4:20 PM
>> To: Chuck Hill 
>> Cc: WebObjects-Dev 
>> Subject: Re: WebObjects officially declared dead by Apple
>> 
>> Yeah, I was surprised by that too.
>> 
>> Apple rarely gives definitive statements on anything, let alone a long dead 
>> and forgotten product ;)
>> 
>> -- 
>> D
>> 
>>> On May 3, 2016 at 7:11:05 PM, Chuck Hill (ch...@gevityinc.com) wrote:
>>> 
>>> I am surprised that Hugi got a clear statement from Apple. That must have 
>>> taken some persistence! “Frank, this damn Hugi guy keeps bugging us every 
>>> year, get rid of him!”
>>> 
>>> :-)
>>> 
>>> 
>>> 
>>> 
>>> 
 On 2016-05-03, 4:04 PM, 
 "webobjects-dev-bounces+chill=gevityinc@lists.apple.com on behalf of 
 Pascal Robert" >>> on behalf of prob...@macti.ca> wrote:
 
 
> Le 3 mai 2016 à 12:47, Flavio Donadio  a écrit :
> 
> Hugi,
> 
> 
> That’s bad news, but it’s exactly what we expected, in a certain way. The 
> silence and lack of updates for such a long time were telling us the 
> truth, although we wouldn’t accept it — there had to be a final word, 
> straight from the horse’s mouth! I guess we have it now.
> 
> So, they say WO is dead. We say “long live, WO!"
> 
> We should move on to the next step: nagging Apple to release WO/EOF as 
> open source software! ;-)
 
 This topic comes around every year. Multiple people asked this to Apple 
 over the last 7 years. It won’t happen. Final.
 
> 
> Cheers,
> Flavio
> 
> 
>> On 03/05/2016, at 12:19, Hugi Thordarson  wrote:
>> 
>> Hi all.
>> 
>> We probably all know that WO's been practically dead to Apple for a long 
>> time, but unfortunately Apple has refused to state so officially (at 
>> least I don't recall there being an official statement).
>> 
>> Anyhow… In the past years I've regularly sent letters to Tim Cook, 
>> asking about the state of WO (being the naggy guy I am) and recently, I 
>> was contacted by Apple executive relations regarding my questions. The 
>> guy I spoke to called a couple of times, at first, he had absolutely no 
>> idea what WO was but the second time he called, he had obtained 
>> information and had a clear statement: "WebObjects is a discontinued 
>> product and will never be upgraded".
>> 
>> I know this information is extremely redundant, but I still wanted to 
>> tell you since it was something of a relief. Felt a little like the 
>> police calling you to let you know that they'd found the remains of your 
>> friend that's been missing for 15 years and finally declared him dead.
>> 
>> But of course, this changes nothing; WO is still better than ever. We 
>> just need to continue to distance Wonder from WO and move forward.
>> 
>> Cheers,
>> - hugi
>> ___
>> 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:
>> https://lists.apple.com/mailman/options/webobjects-dev/flavio%40donadio.com.br
>> 
>>

Re: WebObjects officially declared dead by Apple

2016-05-03 Thread Ricardo Parada


I Wonder if Craig Federighi has any love for WebObjects in his heart. I mean he 
was very involved with EOF and WebObjects.  Perhaps a Swifty WebObjects for 
Linux in the distant future using Swift 4's property behaviors to implement 
object/array faults. 

:-)

> On May 3, 2016, at 1:13 PM, Hugi Thordarson  wrote:
> 
> I think it’s good news—at least much better than the 
> kind-of-certain-but-not-really uncertainty we’ve had for the past decade or 
> so.
> 
> And I don’t think we should be holding our breath waiting for Apple to open 
> source WO. As awesome as that would be, though :).
> 
> - hugi
> 
> 
> 
>> On 3. maí 2016, at 16:47, Flavio Donadio  wrote:
>> 
>> Hugi,
>> 
>> 
>> That’s bad news, but it’s exactly what we expected, in a certain way. The 
>> silence and lack of updates for such a long time were telling us the truth, 
>> although we wouldn’t accept it — there had to be a final word, straight from 
>> the horse’s mouth! I guess we have it now.
>> 
>> So, they say WO is dead. We say “long live, WO!"
>> 
>> We should move on to the next step: nagging Apple to release WO/EOF as open 
>> source software! ;-)
>> 
>> 
>> Cheers,
>> Flavio
>> 
>> 
>>> On 03/05/2016, at 12:19, Hugi Thordarson  wrote:
>>> 
>>> Hi all.
>>> 
>>> We probably all know that WO's been practically dead to Apple for a long 
>>> time, but unfortunately Apple has refused to state so officially (at least 
>>> I don't recall there being an official statement).
>>> 
>>> Anyhow… In the past years I've regularly sent letters to Tim Cook, asking 
>>> about the state of WO (being the naggy guy I am) and recently, I was 
>>> contacted by Apple executive relations regarding my questions. The guy I 
>>> spoke to called a couple of times, at first, he had absolutely no idea what 
>>> WO was but the second time he called, he had obtained information and had a 
>>> clear statement: "WebObjects is a discontinued product and will never be 
>>> upgraded".
>>> 
>>> I know this information is extremely redundant, but I still wanted to tell 
>>> you since it was something of a relief. Felt a little like the police 
>>> calling you to let you know that they'd found the remains of your friend 
>>> that's been missing for 15 years and finally declared him dead.
>>> 
>>> But of course, this changes nothing; WO is still better than ever. We just 
>>> need to continue to distance Wonder from WO and move forward.
>>> 
>>> Cheers,
>>> - hugi
>>> ___
>>> 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:
>>> https://lists.apple.com/mailman/options/webobjects-dev/flavio%40donadio.com.br
>>> 
>>> This email sent to fla...@donadio.com.br
> 
> 
> ___
> 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:
> https://lists.apple.com/mailman/options/webobjects-dev/rparada%40mac.com
> 
> This email sent to rpar...@mac.com

 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: WOInstaller on Linux

2016-05-02 Thread Ricardo Parada
Hi Samuel,

I remember having trouble installing on CentOS following the wiki and ended up 
fixing / hacking it locally to get it to work. 

Thanks


> On May 1, 2016, at 7:17 PM, Samuel Pelletier  wrote:
> 
> Hi,
> 
> The current WOInstaller crash at the end of the process before completing of 
> the /opt/Local directory already exists.
> 
> I discovered this by following the wiki instructions using the CentOS package 
> method and wanted to add the WebObjects frameworks after.
> 
> I also adjusted the url for the CentOS yum repository, the previous one was 
> returning a redirect and did not work with the provided curl command.
> 
> Samuel
> 
> ___
> 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:
> https://lists.apple.com/mailman/options/webobjects-dev/rparada%40mac.com
> 
> This email sent to rpar...@mac.com

 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: ERXEOControlUtilities.objectCountForToManyRelationship for new objects fails?

2016-04-13 Thread Ricardo Parada
I would make sure the EO has ERXGenericRecord somewhere in its class hierarchy 
that the EO is inserted in the editing context before you do anything with it. 



> On Apr 13, 2016, at 1:18 PM, Chuck Hill  wrote:
> 
> I suspect your code.  If it is newly inserted and saved (and even unsaved I 
> think) they should be an empty array, not null.
> 
> 
> 
> 
> 
> 
>> On 2016-04-13, 10:12 AM, 
>> "webobjects-dev-bounces+chill=gevityinc@lists.apple.com on behalf of OC" 
>> > o...@ocs.cz> wrote:
>> 
>> Hi there,
>> 
>> with ERXEOControlUtilities.objectCountForToManyRelationship I have bumped 
>> into a weird problem — with newly created EOs it fails, yelling that “... is 
>> not a toMany relationship! Expected an NSArray, but got null” (exact copy 
>> below).
>> 
>> Now, perhaps I do something wrong, but it seems to me it is perfectly normal 
>> in EOF that all to-manys of a newly created EO are null? At the very least, 
>> whenever I checked, they were.
>> 
>> So far, the only fix I have found is to refault the newly created object 
>> immediately, which helps (fetch replaces those nulls by empty arrays), but 
>> it is pretty ugly:
>> 
>> ===
>>   DBDataBlock bc=... create new EO and insert it into an EC ...
>>   ... set it up ...
>>   if (!ec.saveChanges()) return ERROR...
>>   bc.editingContext.refaultObject(bc) // < this helps. Without this 
>> line, to-manys are nulls now
>> ===
>> 
>> Is there any better solution?
>> 
>> And what am I overlooking? To me, the check for null in 
>> objectCountForToManyRelationship looks like a bug.
>> 
>> Thanks a lot,
>> OC
>> 
>> ===
>> 18:53:43.124 WARN  : 
>> Exception occurred while handling request:
>> java.lang.IllegalArgumentException: The attribute named 'actions' in the 
>> entity named 'DBDataBlock' is not a toMany relationship! Expected an 
>> NSArray, but got null.   //log:NSLog [WorkerThread0]
>> [2016-4-13 18:53:43 CEST]  
>> java.lang.IllegalArgumentException: The attribute named 'actions' in the 
>> entity named 'DBDataBlock' is not a toMany relationship! Expected an 
>> NSArray, but got null.
>>at 
>> er.extensions.eof.ERXEOControlUtilities.objectCountForToManyRelationship(ERXEOControlUtilities.java:802)
>> ...
>> ===
>> ___
>> 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:
>> https://lists.apple.com/mailman/options/webobjects-dev/chill%40gevityinc.com
>> 
>> This email sent to ch...@gevityinc.com
> 
> ___
> 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:
> https://lists.apple.com/mailman/options/webobjects-dev/rparada%40mac.com
> 
> This email sent to rpar...@mac.com

 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: “undelete”?

2016-03-23 Thread Ricardo Parada


There’s also a property for that.  I believe you can use:

er.extensions.ERXEC.editingContextClassName=your.package.YourEC

to have the default factory use that class when creating EC instances via 
ERXEC.newEditingContext().



> On Mar 21, 2016, at 4:43 PM, Chuck Hill  wrote:
> 
> See Factory in ERXEC.  That will cover all cases where you use ERXEC to 
> create the editing context.
> 
> 
> 
> 
> On 2016-03-21, 1:38 PM, "OC"  wrote:
> 
>> Chuck,
>> 
>> thanks!
>> 
>> It looks like the cleanest possible solution indeed. Alas the drawback is 
>> that the change won't be located nicely to one place -- I would have to find 
>> all the places in code anyone makes an EC, and change its class.
>> 
>> To be frank, I am not even sure which WebObjects/WOnder services might 
>> create an EC...
>> 
>> (a) session creates defaultEC, that will have to be fixed somehow,
>> (b) my own (ERXEC|EOEditingContext).newEditingContext calls throughout the 
>> whole project,
>> (c) anything else to be wary of?
>> 
>> Or is there perhaps a Java/WOnder trick I am not aware of, which would allow 
>> me to create an ERXEC subclass, and globally set it up so that “wherever and 
>> how-ever an EC gets created, it will always be my class”?
>> 
>> Thanks a lot,
>> OC
>> 
>> On 21. 3. 2016, at 21:23, Chuck Hill  wrote:
>> 
>>> As a first idea, you could make an EC subclass that was able to identify 
>>> these ready only instances and not call super in deleteObject().
>>> 
>>> Chuck
>>> 
>>> 
>>> 
>>> 
>>> 
>>> On 2016-03-21, 1:17 PM, 
>>> "webobjects-dev-bounces+chill=gevityinc@lists.apple.com on behalf of 
>>> OC" >> of o...@ocs.cz> wrote:
>>> 
 Hello there,
 
 is there a trick to “undelete” an object in editing context?
 
 Before saveChanges, I go through ec.deletedObjects(), and in some very 
 special cases, I might find that an object should NOT be deleted. Just 
 like it has never been added to deletedObjects at all.
 
 I've tried to insertObject it immediately; that works all right for the 
 object itself, but still removes its owned :1 relationships, which is also 
 quite wrong.
 
 Is there a way to do it right?
 
 Note: if there was a way to mark specific objects as read-only (never to 
 be deleted, never to be updated), it would be even better; but I've tried 
 to override isReadOnly, and it does not seem to be even called from 
 saveChanges. I can't make R/O the whole entity: it applies to only some of 
 its objects. I can't throw from validateForDelete either: I don't want 
 saveChanges to fail. I need it to work all right with all the other 
 objects, just not deleting a couple of special ones (nor their owning 
 relationships).
 
 Thanks,
 OC
 
 
 
 ___
 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:
 https://lists.apple.com/mailman/options/webobjects-dev/chill%40gevityinc.com
 
 This email sent to ch...@gevityinc.com
>> 
> 
> ___
> 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:
> https://lists.apple.com/mailman/options/webobjects-dev/rparada%40mac.com
> 
> This email sent to rpar...@mac.com

 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: UUID data type

2016-03-23 Thread Ricardo Parada

> On Mar 22, 2016, at 10:03 AM, Samuel Pelletier  wrote:
> 
> Finally, is a presentation on using uuid for primary key in next WOWODC would 
> be a good topic ?

I would be interested in such a topic.

:-)

 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: What's new?

2016-01-13 Thread Ricardo Parada
At my employer we are still on HTML and Wonder's Ajax.  No plans to make any 
changes there.   :-) 

I heard Microsoft's Internet Explorer is suppose to die today though. 

Welcome back!

> On Jan 13, 2016, at 1:30 AM, T Worman  wrote:
> 
> Welcome back!
> 
> The biggest issue with Golipse was adjusting the p2 installer for more recent 
> versions of Eclipse. Or something like that. I think it was more that than 
> the file locations - if I recall. I had a hard time finding documentation on 
> it.
> 
> Crap, now I need to learn JavaScript and REST?
> 
> Tim
> UCLA GSE&IS
> 
>> On Jan 12, 2016, at 7:25 PM, Chuck Hill  wrote:
>> 
>> Hi Lachlan,
>> 
>> Nice to see you around, welcome back.  Yes, I am still here though snail 
>> harvesting sounds tempting and soothing.
>> 
>> The community is getting smaller and more fragmented.  Several people have 
>> joined Apple now and they tend not to be around much.
>> 
>> The last time I tried Golips it also did not work.  IIRC, it was a version 
>> problems and the downloads it was trying to get no longer existed.  The 
>> instructions on the wiki should be up to date for a DYI install.
>> 
>> Some people have migrated to Cayenne from EOF, and either use a REST API to 
>> drive a JavaScript client, or probably use Tapestry.  Andrus did some 
>> presentations on this, I am not sure if they are on the wiki or part of the 
>> backlog we need to deal with.
>> 
>> The WO version is still 5.4.3 with the latest Wonder on it.  We are up to 
>> Java 7 and looking at 8.  Some people use Maven, most I think have stuck 
>> with Ant.  Just say NO to Vertical Inheritance!  :-P
>> 
>> No really exciting developments that I recall, mostly a move away from HTML 
>> interfaces to JavaScript ones driven by a REST back-end.
>> 
>> Chuck
>> 
>> 
>> 
>> 
>>> On 2016-01-12, 6:37 PM, 
>>> "webobjects-dev-bounces+chill=gevityinc@lists.apple.com on behalf of 
>>> Lachlan Deck" >> on behalf of lachlan.d...@gmail.com> wrote:
>>> 
>>> Hi all,
>>> 
>>> it’s been a few years or so since I’ve kept up with the lay of the WOland. 
>>> Having signed back up recently to the list I noticed that Chuck hasn’t, as 
>>> yet, gone off to sheep herding or snail harvesting :)
>>> 
>>> Out of curiosity I downloaded Golipse as per 
>>> (https://wiki.wocommunity.org/display/WEB/Project+Wonder+Installation).
>>> It doesn’t seem to do anything when I run it. I’m on OS X 10.11.2. Is that 
>>> expected?
>>> 
>>> I recall a few years back people were thinking of migrating to WO/Cayenne 
>>> from WO/EOF.
>>> I didn’t see anything about that on the wiki.
>>> 
>>> So what’s the recommended flavour of WO these days? Any exciting 
>>> developments over the last few years?
>>> 
>>> And what of Ant / maven / etc? 
>>> Vertical inheritance? ;-)
>>> 
>>> cheers,
>>> Lachlan
>>> 
>>> 
>>> ___
>>> 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:
>>> https://lists.apple.com/mailman/options/webobjects-dev/chill%40gevityinc.com
>>> 
>>> This email sent to ch...@gevityinc.com
>> 
>> ___
>> 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:
>> https://lists.apple.com/mailman/options/webobjects-dev/lists%40thetimmy.com
>> 
>> This email sent to li...@thetimmy.com
> 
> 
> ___
> 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:
> https://lists.apple.com/mailman/options/webobjects-dev/rparada%40mac.com
> 
> This email sent to rpar...@mac.com

 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: when is derived column resolved

2016-01-12 Thread Ricardo Parada
I rarely ever use them. 

When they have been used it was for constructing queries that use the derived 
column when building reports.It avoids having to bring in the objects into 
memory and compute the value to see if they meet the qualifier. However if the 
qualifier can be expressed using the non derived attributes I take that route 
instead. 

Ricardo Parada

> On Jan 12, 2016, at 7:09 PM, Theodore Petrosky  wrote:
> 
> 
>> On Jan 12, 2016, at 4:41 PM, Paul Hoadley  wrote:
>> 
>> Hi Ted,
>> 
>>> On 13 Jan 2016, at 6:49 am, Theodore Petrosky  wrote:
>>> 
>>> I have an Entity with a derived column. Entity Person, real attributes 
>>> firstName, lastName, derived column fullName firstName || ' ' || lastName.
>>> 
>>> the derived column only shows up when I first run the app. when I add new 
>>> people, the derived column is blank. even login out and back in does 
>>> nothing. But when I stop the app and relaunch it, the derived column 
>>> resolves and I see what I expect.
>> 
>> Derived attributes are computed by the database, and so only updated when 
>> the EO is fetched into memory. To update the derived attribute, you would 
>> need to cause the EO to be re-fetched from the database.
>> 
>>> 1. should I go back to creating a method on Entity Person fullName that 
>>> returns a string concatenating first and last names?
>> 
>> Probably, yes.
> 
> OK, that’s a plan, when do you feel it’s appropriate to use a derived column?
> 
>> 
>> 
>> -- 
>> Paul Hoadley
>> http://logicsquad.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:
> https://lists.apple.com/mailman/options/webobjects-dev/rparada%40mac.com
> 
> This email sent to rpar...@mac.com

 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: wotaskd reliability

2015-12-12 Thread Ricardo Parada
Hi Pascal

Containers sound like a great topic for a WOWODC presentation. I would love to 
learn about how to use them for example to have a WO environment with java, 
MySQL, wotaskd / JavaMonitor. Is that the kind of stuff they would be used for? 
And how do I create a container and use it with a server. 



> On Dec 4, 2015, at 3:29 AM, Pascal Robert  wrote:
> 
> 
>> Le 2015-12-03 à 22:09, Samuel Pelletier  a écrit :
>> 
>> Hi,
>> 
>> I never use a system provided apache, php or other sensitive software for a 
>> server, I recommend to build from source, this allows to control when the 
>> update are applied and locate your config files where you want them.
>> 
>> I even have multiple apache on the same server, some with php other without 
>> for example. This is also useful to support legacy thing that no longer work 
>> with newer versions of XYZ...
>> 
>> My situation may be a bit odd because I tend to host many small sites and 
>> apps on a single server instead of having to manage multiple servers for a 
>> single site... Virtualization is cool but it also create a huge overhead by 
>> running multiple instances of complete OS. I prefer managing multiple 
>> environments on a single server, it is a less common and less easy to setup 
>> but works well.
> 
> Containers is the way to go. I use LXC and OpenVZ to create multiple 
> containers for Apache, MySQL, etc. for our dev/tests/staging environment. 
> Less overhead than creating multiple virtual machines, while having control, 
> like running Apache 2.4 on a container while running 2.2 in another.
> 
>> Samuel
>> 
>>> Le 2015-12-03 à 14:31, Klaus Berkling  a écrit :
>>> 
>>> 
 On Dec 3, 2015, at 8:44 AM, Ramsey Gurley  wrote:
 
 
> On Nov 29, 2015, at 1:09 PM, Michael Kondratov 
>  wrote:
> 
> What makes Linux better than OS X?
 
 Where do I start? :) In no particular order:
 
 Number of knowledgeable administrators. 
 Server software packages (openstack, docker, etc)
 Targeted at power users (doesn’t F up /usr/local, has bash completions, 
 etc)
 Uptime.
 Virtualization.
 
 And let’s just face it... OS X has been a hostile platform to Java since 
 Steve Jobs made his “heavyweight ball and chain” comment.
 ___
>>> 
>>> And you never know when Apple decides you don’t need some particular 
>>> feature and simply deletes it.
>>> Or, an update rewrites your apache/httpd.conf file.
>>> 
>>> 
>>> 
>>> 
>>> ___
>>> 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:
>>> https://lists.apple.com/mailman/options/webobjects-dev/samuel%40samkar.com
>>> 
>>> This email sent to sam...@samkar.com
>> 
>> 
>> ___
>> 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:
>> https://lists.apple.com/mailman/options/webobjects-dev/probert%40macti.ca
>> 
>> This email sent to prob...@macti.ca
> 
> 
> ___
> 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:
> https://lists.apple.com/mailman/options/webobjects-dev/rparada%40mac.com
> 
> This email sent to rpar...@mac.com

 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: Vector graphics in Flying Saucer / ERPDFWrapper

2015-12-08 Thread Ricardo Parada
I created pull request #710 for this.


> On Dec 2, 2015, at 8:58 AM, Ricardo Parada  wrote:
> 
> Thank you Timo, that is very helpful. 
> 
> Sent from my iPhone
> 
> On Dec 2, 2015, at 3:30 AM, Timo Hoepfner  <mailto:th-...@onlinehome.de>> wrote:
> 
>> Hi Ricardo,
>> 
>> the 0.9.8 version needs Java 6, for Java 5 you can use 0.9.7. That version 
>> also contains the fix that enables using PDFs. I had to revert to that 
>> version on an old XServe that only supports Java 5.
>> 
>> Here’s a handy script that checks the Java class version of files in a jar:
>> https://github.com/beardedN5rd/java-helper/blob/master/scripts/checkJavaVersion.sh
>>  
>> <https://github.com/beardedN5rd/java-helper/blob/master/scripts/checkJavaVersion.sh>
>> 
>> mbp:Downloads th$ checkJavaVersion.sh flying-saucer-core-9.0.8.jar 
>> flying-saucer-core-9.0.8.jar
>> Found 0 Java 1.1 files
>> Found 0 Java 1.2 files
>> Found 0 Java 1.3 files
>> Found 0 Java 1.4 files
>> Found 0 Java 5 files
>> Found 581 Java 6 files
>> Found 0 Java 7 files
>> Found 0 Java 8 files
>> 
>> mbp:Downloads th$ checkJavaVersion.sh flying-saucer-core-9.0.7.jar 
>> flying-saucer-core-9.0.7.jar
>> Found 0 Java 1.1 files
>> Found 0 Java 1.2 files
>> Found 0 Java 1.3 files
>> Found 573 Java 1.4 files
>> Found 0 Java 5 files
>> Found 0 Java 6 files
>> Found 0 Java 7 files
>> Found 0 Java 8 files
>> 
>> Timo
>> 
>>> Am 01.12.2015 um 19:41 schrieb Ricardo Parada >> <mailto:rpar...@mac.com>>:
>>> 
>>> Thank you Johann, that should get me going.  The MANIFEST in the jar files 
>>> says that they were built with java 1.7.0_79.  I am going to try to find 
>>> out if they are compatible with java 5, but based on the manifest it would 
>>> be safer to keep this only in master as it may require > java 5.
>>> 
>>> Thanks
>>> 
>>> 
>>>> On Nov 30, 2015, at 4:30 PM, Johann Werner >>> <mailto:j...@oyosys.de>> wrote:
>>>> 
>>>> Hi Ricardo,
>>>> 
>>>> you should create a branch off from the official master branch and make 
>>>> your changes on that one. How to do that depends on the way you interact 
>>>> with git (e.g. git command line, Tower, SourceTree, …).
>>>> 
>>>> Then you can create your pull request against the master branch. If the 
>>>> flying saucer jars are compatible with Java 5 it will be possible to 
>>>> cherry pick your changes into wonder_6 afterwards otherwise it will be 
>>>> Wonder 7 only. Do not use the wonder_7 branch as it points to an old state 
>>>> of master. I think that branch should go away soon to not confuse users. 
>>>> Master is the current Wonder 7.
>>>> 
>>>> For more info you can check the corresponding wiki page: 
>>>> https://github.com/wocommunity/wonder/wiki/Creating-and-submitting-an-acceptable-patch
>>>>  
>>>> <https://github.com/wocommunity/wonder/wiki/Creating-and-submitting-an-acceptable-patch>
>>>> 
>>>> jw
>>>> 
>>>> 
>>>>> Am 30.11.2015 um 19:40 schrieb Ricardo Parada >>>> <mailto:rpar...@mac.com>>:
>>>>> 
>>>>> Hi all,
>>>>> 
>>>>> I was trying to create a pull request to remove core-rederer-20101006.jar 
>>>>> from ERPDFGeneration and add flying-saucer-core-9.0.8.jar and 
>>>>> flying-saucer-pdf-9.0.8.jar.
>>>>> 
>>>>> However the fork I have of wonder on my github account is really old and 
>>>>> I’m confused how to go about doing this.  I’m not even sure what branch 
>>>>> to put it on.  My fork of wonder only has master, integration, and 
>>>>> Wonder_5_0_0_Legacy.  I was expecting to see master, wonder_5, wonder_6 
>>>>> and wonder_7.
>>>>> 
>>>>> Is there any documentation on how to go about submitting a pull request 
>>>>> for wonder?
>>>>> 
>>>>> Thanks
>>>>> Ricardo
>>>>> 
>>>>> 
>>>>> 
>>>>>> On Nov 18, 2015, at 4:28 PM, Ricardo Parada >>>>> <mailto:rpar...@mac.com>> wrote:
>>>>>> 
>>>>>> Thank you Timo and Samuel for your responses.
>>>>>> 
>>>>>> The easiest for me was to just update the flying saucer library to 9

Re: Vector graphics in Flying Saucer / ERPDFWrapper

2015-12-02 Thread Ricardo Parada
Thank you Timo, that is very helpful. 

Sent from my iPhone

> On Dec 2, 2015, at 3:30 AM, Timo Hoepfner  wrote:
> 
> Hi Ricardo,
> 
> the 0.9.8 version needs Java 6, for Java 5 you can use 0.9.7. That version 
> also contains the fix that enables using PDFs. I had to revert to that 
> version on an old XServe that only supports Java 5.
> 
> Here’s a handy script that checks the Java class version of files in a jar:
> https://github.com/beardedN5rd/java-helper/blob/master/scripts/checkJavaVersion.sh
> 
> mbp:Downloads th$ checkJavaVersion.sh flying-saucer-core-9.0.8.jar 
> flying-saucer-core-9.0.8.jar
> Found 0 Java 1.1 files
> Found 0 Java 1.2 files
> Found 0 Java 1.3 files
> Found 0 Java 1.4 files
> Found 0 Java 5 files
> Found 581 Java 6 files
> Found 0 Java 7 files
> Found 0 Java 8 files
> 
> mbp:Downloads th$ checkJavaVersion.sh flying-saucer-core-9.0.7.jar 
> flying-saucer-core-9.0.7.jar
> Found 0 Java 1.1 files
> Found 0 Java 1.2 files
> Found 0 Java 1.3 files
> Found 573 Java 1.4 files
> Found 0 Java 5 files
> Found 0 Java 6 files
> Found 0 Java 7 files
> Found 0 Java 8 files
> 
> Timo
> 
>> Am 01.12.2015 um 19:41 schrieb Ricardo Parada :
>> 
>> Thank you Johann, that should get me going.  The MANIFEST in the jar files 
>> says that they were built with java 1.7.0_79.  I am going to try to find out 
>> if they are compatible with java 5, but based on the manifest it would be 
>> safer to keep this only in master as it may require > java 5.
>> 
>> Thanks
>> 
>> 
>>> On Nov 30, 2015, at 4:30 PM, Johann Werner  wrote:
>>> 
>>> Hi Ricardo,
>>> 
>>> you should create a branch off from the official master branch and make 
>>> your changes on that one. How to do that depends on the way you interact 
>>> with git (e.g. git command line, Tower, SourceTree, …).
>>> 
>>> Then you can create your pull request against the master branch. If the 
>>> flying saucer jars are compatible with Java 5 it will be possible to cherry 
>>> pick your changes into wonder_6 afterwards otherwise it will be Wonder 7 
>>> only. Do not use the wonder_7 branch as it points to an old state of 
>>> master. I think that branch should go away soon to not confuse users. 
>>> Master is the current Wonder 7.
>>> 
>>> For more info you can check the corresponding wiki page: 
>>> https://github.com/wocommunity/wonder/wiki/Creating-and-submitting-an-acceptable-patch
>>> 
>>> jw
>>> 
>>> 
>>>> Am 30.11.2015 um 19:40 schrieb Ricardo Parada :
>>>> 
>>>> Hi all,
>>>> 
>>>> I was trying to create a pull request to remove core-rederer-20101006.jar 
>>>> from ERPDFGeneration and add flying-saucer-core-9.0.8.jar and 
>>>> flying-saucer-pdf-9.0.8.jar.
>>>> 
>>>> However the fork I have of wonder on my github account is really old and 
>>>> I’m confused how to go about doing this.  I’m not even sure what branch to 
>>>> put it on.  My fork of wonder only has master, integration, and 
>>>> Wonder_5_0_0_Legacy.  I was expecting to see master, wonder_5, wonder_6 
>>>> and wonder_7.
>>>> 
>>>> Is there any documentation on how to go about submitting a pull request 
>>>> for wonder?
>>>> 
>>>> Thanks
>>>> Ricardo
>>>> 
>>>> 
>>>> 
>>>>> On Nov 18, 2015, at 4:28 PM, Ricardo Parada  wrote:
>>>>> 
>>>>> Thank you Timo and Samuel for your responses.
>>>>> 
>>>>> The easiest for me was to just update the flying saucer library to 9.0.8 
>>>>> as Timo suggested. I can now use the .pdf logo with vector graphics. The 
>>>>> logo now looks beautiful on the Retina display.
>>>>> 
>>>>> 
>>>>> 
>>>>>> On Nov 17, 2015, at 3:33 PM, Timo Hoepfner  wrote:
>>>>>> 
>>>>>> Hi Ricardo,
>>>>>> 
>>>>>> not at my work machine currently, but I came across a similar problem 
>>>>>> recently. In my case I tried to use a PDF as background image and got 
>>>>>> the same error. Updating flying saucer to a more recent version solved 
>>>>>> the issue for me. The jars I’m currently using are 
>>>>>> flying-saucer-core-9.0.8.jar and flying-saucer-pdf-9.0.8.jar. I think 
>>>>>> they replace the core-renderer-20101006.jar in ERPDFGeneration. The 
&

Re: Vector graphics in Flying Saucer / ERPDFWrapper

2015-12-01 Thread Ricardo Parada
Thank you Johann, that should get me going.  The MANIFEST in the jar files says 
that they were built with java 1.7.0_79.  I am going to try to find out if they 
are compatible with java 5, but based on the manifest it would be safer to keep 
this only in master as it may require > java 5.

Thanks


> On Nov 30, 2015, at 4:30 PM, Johann Werner  wrote:
> 
> Hi Ricardo,
> 
> you should create a branch off from the official master branch and make your 
> changes on that one. How to do that depends on the way you interact with git 
> (e.g. git command line, Tower, SourceTree, …).
> 
> Then you can create your pull request against the master branch. If the 
> flying saucer jars are compatible with Java 5 it will be possible to cherry 
> pick your changes into wonder_6 afterwards otherwise it will be Wonder 7 
> only. Do not use the wonder_7 branch as it points to an old state of master. 
> I think that branch should go away soon to not confuse users. Master is the 
> current Wonder 7.
> 
> For more info you can check the corresponding wiki page: 
> https://github.com/wocommunity/wonder/wiki/Creating-and-submitting-an-acceptable-patch
> 
> jw
> 
> 
>> Am 30.11.2015 um 19:40 schrieb Ricardo Parada :
>> 
>> Hi all,
>> 
>> I was trying to create a pull request to remove core-rederer-20101006.jar 
>> from ERPDFGeneration and add flying-saucer-core-9.0.8.jar and 
>> flying-saucer-pdf-9.0.8.jar.
>> 
>> However the fork I have of wonder on my github account is really old and I’m 
>> confused how to go about doing this.  I’m not even sure what branch to put 
>> it on.  My fork of wonder only has master, integration, and 
>> Wonder_5_0_0_Legacy.  I was expecting to see master, wonder_5, wonder_6 and 
>> wonder_7.
>> 
>> Is there any documentation on how to go about submitting a pull request for 
>> wonder?
>> 
>> Thanks
>> Ricardo
>> 
>> 
>> 
>>> On Nov 18, 2015, at 4:28 PM, Ricardo Parada  wrote:
>>> 
>>> Thank you Timo and Samuel for your responses.
>>> 
>>> The easiest for me was to just update the flying saucer library to 9.0.8 as 
>>> Timo suggested. I can now use the .pdf logo with vector graphics. The logo 
>>> now looks beautiful on the Retina display.
>>> 
>>> 
>>> 
>>> On Nov 17, 2015, at 3:33 PM, Timo Hoepfner  wrote:
>>> 
>>>> Hi Ricardo,
>>>> 
>>>> not at my work machine currently, but I came across a similar problem 
>>>> recently. In my case I tried to use a PDF as background image and got the 
>>>> same error. Updating flying saucer to a more recent version solved the 
>>>> issue for me. The jars I’m currently using are 
>>>> flying-saucer-core-9.0.8.jar and flying-saucer-pdf-9.0.8.jar. I think they 
>>>> replace the core-renderer-20101006.jar in ERPDFGeneration. The commit 
>>>> you’re after is probably this one:
>>>> 
>>>> https://github.com/flyingsaucerproject/flyingsaucer/commit/26bf700857252ac04ecadd98dc0f8a2209e3c7f8
>>>> 
>>>> HTH,
>>>> 
>>>> Timo
>>>> 
>>>> 
>>>>> Am 17.11.2015 um 18:01 schrieb Ricardo Parada :
>>>>> 
>>>>> Hi all,
>>>>> 
>>>>> We use ERPDFWrapper to generate PDF from a WOComponent.  It comes out 
>>>>> beautiful.
>>>>> 
>>>>> One of our components includes a logo using the  html tag and the 
>>>>> logo is usually a .gif or .jpg.  However, I would like to use vector 
>>>>> graphics.  We took a .eps file and converted it to .pdf in Photoshop.  
>>>>> The resulting image scales beautifully to any size.  When I try to use 
>>>>> the .pdf I get java.lang.ClassCastException: 
>>>>> org.xhtmlrenderer.pdf.PDFAsImage cannot be cast to 
>>>>> org.xhtmlrenderer.pdf.ITextFSImage.
>>>>> 
>>>>> Has anybody been able to use vector graphics in ERPDFWrapper?
>>>>> 
>>>>> Thanks
>>>>> 
>>>>> The stack trace is below:
>>>>> 
>>>>> java.lang.ClassCastException: org.xhtmlrenderer.pdf.PDFAsImage cannot be 
>>>>> cast to org.xhtmlrenderer.pdf.ITextFSImage
>>>>>at 
>>>>> org.xhtmlrenderer.pdf.ITextUserAgent.getImageResource(ITextUserAgent.java:97)
>>>>>at 
>>>>> org.xhtmlrenderer.pdf.ITextReplacedElementFactory.createReplacedElement(ITextReplacedElementF

Re: Vector graphics in Flying Saucer / ERPDFWrapper

2015-11-30 Thread Ricardo Parada
Hi Paul,

These are the links to the pages with the jar files.  Just click the Download 
jar button on each of those pages and you will get the corresponding jar files.

http://mvnrepository.com/artifact/org.xhtmlrenderer/flying-saucer-core/9.0.8 
<http://mvnrepository.com/artifact/org.xhtmlrenderer/flying-saucer-core/9.0.8>
http://mvnrepository.com/artifact/org.xhtmlrenderer/flying-saucer-pdf/9.0.8 
<http://mvnrepository.com/artifact/org.xhtmlrenderer/flying-saucer-pdf/9.0.8>

Ricardo


> On Nov 30, 2015, at 2:08 PM, Ricardo Parada  <mailto:rpar...@mac.com>> wrote:
> 
> I also ran "jar tf" on the jar files to compare with Wonder. In general the 
> flying saucer 9.0.8 jars add more classes but there are a subset of classes 
> still in the wonder jar (core-renderer-20101006.jar) that I was not able to 
> find in the flying saucer jar files and I'm not sure if they are needed. 
> 
> Ricardo
> 
> 
> On Nov 30, 2015, at 1:54 PM, Paul Yu mailto:p...@mac.com>> 
> wrote:
> 
>> Richards
>> 
>> Where did you find the new jars?  Did you build them yourself?
>> 
>> Paul
>> 
>> Sent from my iPad
>> 
>> On Nov 30, 2015, at 1:40 PM, Ricardo Parada > <mailto:rpar...@mac.com>> wrote:
>> 
>>> Hi all,
>>> 
>>> I was trying to create a pull request to remove core-rederer-20101006.jar 
>>> from ERPDFGeneration and add flying-saucer-core-9.0.8.jar and 
>>> flying-saucer-pdf-9.0.8.jar.
>>> 
>>> However the fork I have of wonder on my github account is really old and 
>>> I’m confused how to go about doing this.  I’m not even sure what branch to 
>>> put it on.  My fork of wonder only has master, integration, and 
>>> Wonder_5_0_0_Legacy.  I was expecting to see master, wonder_5, wonder_6 and 
>>> wonder_7.
>>> 
>>> Is there any documentation on how to go about submitting a pull request for 
>>> wonder? 
>>> 
>>> Thanks
>>> Ricardo
>>> 
>>> 
>>> 
>>>> On Nov 18, 2015, at 4:28 PM, Ricardo Parada >>> <mailto:rpar...@mac.com>> wrote:
>>>> 
>>>> Thank you Timo and Samuel for your responses. 
>>>> 
>>>> The easiest for me was to just update the flying saucer library to 9.0.8 
>>>> as Timo suggested. I can now use the .pdf logo with vector graphics. The 
>>>> logo now looks beautiful on the Retina display. 
>>>> 
>>>> 
>>>> 
>>>> On Nov 17, 2015, at 3:33 PM, Timo Hoepfner >>> <mailto:th-...@onlinehome.de>> wrote:
>>>> 
>>>>> Hi Ricardo,
>>>>> 
>>>>> not at my work machine currently, but I came across a similar problem 
>>>>> recently. In my case I tried to use a PDF as background image and got the 
>>>>> same error. Updating flying saucer to a more recent version solved the 
>>>>> issue for me. The jars I’m currently using are 
>>>>> flying-saucer-core-9.0.8.jar and flying-saucer-pdf-9.0.8.jar. I think 
>>>>> they replace the core-renderer-20101006.jar in ERPDFGeneration. The 
>>>>> commit you’re after is probably this one:
>>>>> 
>>>>> https://github.com/flyingsaucerproject/flyingsaucer/commit/26bf700857252ac04ecadd98dc0f8a2209e3c7f8
>>>>>  
>>>>> <https://github.com/flyingsaucerproject/flyingsaucer/commit/26bf700857252ac04ecadd98dc0f8a2209e3c7f8>
>>>>> 
>>>>> HTH,
>>>>> 
>>>>> Timo
>>>>> 
>>>>> 
>>>>>> Am 17.11.2015 um 18:01 schrieb Ricardo Parada >>>>> <mailto:rpar...@mac.com>>:
>>>>>> 
>>>>>> Hi all,
>>>>>> 
>>>>>> We use ERPDFWrapper to generate PDF from a WOComponent.  It comes out 
>>>>>> beautiful.  
>>>>>> 
>>>>>> One of our components includes a logo using the  html tag and the 
>>>>>> logo is usually a .gif or .jpg.  However, I would like to use vector 
>>>>>> graphics.  We took a .eps file and converted it to .pdf in Photoshop.  
>>>>>> The resulting image scales beautifully to any size.  When I try to use 
>>>>>> the .pdf I get java.lang.ClassCastException: 
>>>>>> org.xhtmlrenderer.pdf.PDFAsImage cannot be cast to 
>>>>>> org.xhtmlrenderer.pdf.ITextFSImage.  
>>>>>> 
>>>>>> Has anybo

Re: Vector graphics in Flying Saucer / ERPDFWrapper

2015-11-30 Thread Ricardo Parada
Hi all,

I was trying to create a pull request to remove core-rederer-20101006.jar from 
ERPDFGeneration and add flying-saucer-core-9.0.8.jar and 
flying-saucer-pdf-9.0.8.jar.

However the fork I have of wonder on my github account is really old and I’m 
confused how to go about doing this.  I’m not even sure what branch to put it 
on.  My fork of wonder only has master, integration, and Wonder_5_0_0_Legacy.  
I was expecting to see master, wonder_5, wonder_6 and wonder_7.

Is there any documentation on how to go about submitting a pull request for 
wonder? 

Thanks
Ricardo



> On Nov 18, 2015, at 4:28 PM, Ricardo Parada  wrote:
> 
> Thank you Timo and Samuel for your responses. 
> 
> The easiest for me was to just update the flying saucer library to 9.0.8 as 
> Timo suggested. I can now use the .pdf logo with vector graphics. The logo 
> now looks beautiful on the Retina display. 
> 
> 
> 
> On Nov 17, 2015, at 3:33 PM, Timo Hoepfner  <mailto:th-...@onlinehome.de>> wrote:
> 
>> Hi Ricardo,
>> 
>> not at my work machine currently, but I came across a similar problem 
>> recently. In my case I tried to use a PDF as background image and got the 
>> same error. Updating flying saucer to a more recent version solved the issue 
>> for me. The jars I’m currently using are flying-saucer-core-9.0.8.jar and 
>> flying-saucer-pdf-9.0.8.jar. I think they replace the 
>> core-renderer-20101006.jar in ERPDFGeneration. The commit you’re after is 
>> probably this one:
>> 
>> https://github.com/flyingsaucerproject/flyingsaucer/commit/26bf700857252ac04ecadd98dc0f8a2209e3c7f8
>>  
>> <https://github.com/flyingsaucerproject/flyingsaucer/commit/26bf700857252ac04ecadd98dc0f8a2209e3c7f8>
>> 
>> HTH,
>> 
>> Timo
>> 
>> 
>>> Am 17.11.2015 um 18:01 schrieb Ricardo Parada >> <mailto:rpar...@mac.com>>:
>>> 
>>> Hi all,
>>> 
>>> We use ERPDFWrapper to generate PDF from a WOComponent.  It comes out 
>>> beautiful.  
>>> 
>>> One of our components includes a logo using the  html tag and the logo 
>>> is usually a .gif or .jpg.  However, I would like to use vector graphics.  
>>> We took a .eps file and converted it to .pdf in Photoshop.  The resulting 
>>> image scales beautifully to any size.  When I try to use the .pdf I get 
>>> java.lang.ClassCastException: org.xhtmlrenderer.pdf.PDFAsImage cannot be 
>>> cast to org.xhtmlrenderer.pdf.ITextFSImage.  
>>> 
>>> Has anybody been able to use vector graphics in ERPDFWrapper?
>>> 
>>> Thanks
>>> 
>>> The stack trace is below:
>>> 
>>> java.lang.ClassCastException: org.xhtmlrenderer.pdf.PDFAsImage cannot be 
>>> cast to org.xhtmlrenderer.pdf.ITextFSImage
>>> at 
>>> org.xhtmlrenderer.pdf.ITextUserAgent.getImageResource(ITextUserAgent.java:97)
>>> at 
>>> org.xhtmlrenderer.pdf.ITextReplacedElementFactory.createReplacedElement(ITextReplacedElementFactory.java:57)
>>> at 
>>> er.pdf.builder.ERPDFReplacedElementFactory.createReplacedElement(ERPDFReplacedElementFactory.java:50)
>>> at 
>>> org.xhtmlrenderer.render.BlockBox.calcMinMaxWidth(BlockBox.java:1439)
>>> at 
>>> org.xhtmlrenderer.render.BlockBox.calcMinMaxWidthInlineChildren(BlockBox.java:1584)
>>> at 
>>> org.xhtmlrenderer.render.BlockBox.calcMinMaxWidth(BlockBox.java:1481)
>>> at 
>>> org.xhtmlrenderer.newtable.TableBox$AutoTableLayout.recalcColumn(TableBox.java:1240)
>>> at 
>>> org.xhtmlrenderer.newtable.TableBox$AutoTableLayout.fullRecalc(TableBox.java:1214)
>>> at 
>>> org.xhtmlrenderer.newtable.TableBox$AutoTableLayout.calcMinMaxWidth(TableBox.java:1509)
>>> at 
>>> org.xhtmlrenderer.newtable.TableBox.calcMinMaxWidth(TableBox.java:158)
>>> at 
>>> org.xhtmlrenderer.newtable.TableBox.layout(TableBox.java:221)
>>> at 
>>> org.xhtmlrenderer.layout.BlockBoxing.layoutBlockChild0(BlockBoxing.java:321)
>>> at 
>>> org.xhtmlrenderer.layout.BlockBoxing.layoutBlockChild(BlockBoxing.java:299)
>>> at 
>>> org.xhtmlrenderer.layout.BlockBoxing.layoutContent(BlockBoxing.java:90)
>>> at 
>>> org.xhtmlrenderer.render.BlockBox.layoutChildren(BlockBox.java:926)
>>> at 
>>> org.xhtmlrenderer.render.BlockBox.layout(BlockBox.java:806)
&

Re: Vector graphics in Flying Saucer / ERPDFWrapper

2015-11-18 Thread Ricardo Parada
Thank you Timo and Samuel for your responses. 

The easiest for me was to just update the flying saucer library to 9.0.8 as 
Timo suggested. I can now use the .pdf logo with vector graphics. The logo now 
looks beautiful on the Retina display. 



> On Nov 17, 2015, at 3:33 PM, Timo Hoepfner  wrote:
> 
> Hi Ricardo,
> 
> not at my work machine currently, but I came across a similar problem 
> recently. In my case I tried to use a PDF as background image and got the 
> same error. Updating flying saucer to a more recent version solved the issue 
> for me. The jars I’m currently using are flying-saucer-core-9.0.8.jar and 
> flying-saucer-pdf-9.0.8.jar. I think they replace the 
> core-renderer-20101006.jar in ERPDFGeneration. The commit you’re after is 
> probably this one:
> 
> https://github.com/flyingsaucerproject/flyingsaucer/commit/26bf700857252ac04ecadd98dc0f8a2209e3c7f8
> 
> HTH,
> 
> Timo
> 
> 
>> Am 17.11.2015 um 18:01 schrieb Ricardo Parada :
>> 
>> Hi all,
>> 
>> We use ERPDFWrapper to generate PDF from a WOComponent.  It comes out 
>> beautiful.  
>> 
>> One of our components includes a logo using the  html tag and the logo 
>> is usually a .gif or .jpg.  However, I would like to use vector graphics.  
>> We took a .eps file and converted it to .pdf in Photoshop.  The resulting 
>> image scales beautifully to any size.  When I try to use the .pdf I get 
>> java.lang.ClassCastException: org.xhtmlrenderer.pdf.PDFAsImage cannot be 
>> cast to org.xhtmlrenderer.pdf.ITextFSImage.  
>> 
>> Has anybody been able to use vector graphics in ERPDFWrapper?
>> 
>> Thanks
>> 
>> The stack trace is below:
>> 
>> java.lang.ClassCastException: org.xhtmlrenderer.pdf.PDFAsImage cannot be 
>> cast to org.xhtmlrenderer.pdf.ITextFSImage
>> at 
>> org.xhtmlrenderer.pdf.ITextUserAgent.getImageResource(ITextUserAgent.java:97)
>> at 
>> org.xhtmlrenderer.pdf.ITextReplacedElementFactory.createReplacedElement(ITextReplacedElementFactory.java:57)
>> at 
>> er.pdf.builder.ERPDFReplacedElementFactory.createReplacedElement(ERPDFReplacedElementFactory.java:50)
>> at 
>> org.xhtmlrenderer.render.BlockBox.calcMinMaxWidth(BlockBox.java:1439)
>> at 
>> org.xhtmlrenderer.render.BlockBox.calcMinMaxWidthInlineChildren(BlockBox.java:1584)
>> at 
>> org.xhtmlrenderer.render.BlockBox.calcMinMaxWidth(BlockBox.java:1481)
>> at 
>> org.xhtmlrenderer.newtable.TableBox$AutoTableLayout.recalcColumn(TableBox.java:1240)
>> at 
>> org.xhtmlrenderer.newtable.TableBox$AutoTableLayout.fullRecalc(TableBox.java:1214)
>> at 
>> org.xhtmlrenderer.newtable.TableBox$AutoTableLayout.calcMinMaxWidth(TableBox.java:1509)
>> at 
>> org.xhtmlrenderer.newtable.TableBox.calcMinMaxWidth(TableBox.java:158)
>> at 
>> org.xhtmlrenderer.newtable.TableBox.layout(TableBox.java:221)
>> at 
>> org.xhtmlrenderer.layout.BlockBoxing.layoutBlockChild0(BlockBoxing.java:321)
>> at 
>> org.xhtmlrenderer.layout.BlockBoxing.layoutBlockChild(BlockBoxing.java:299)
>> at 
>> org.xhtmlrenderer.layout.BlockBoxing.layoutContent(BlockBoxing.java:90)
>> at 
>> org.xhtmlrenderer.render.BlockBox.layoutChildren(BlockBox.java:926)
>> at 
>> org.xhtmlrenderer.render.BlockBox.layout(BlockBox.java:806)
>> at 
>> org.xhtmlrenderer.render.BlockBox.layout(BlockBox.java:735)
>> at 
>> org.xhtmlrenderer.layout.BlockBoxing.layoutBlockChild0(BlockBoxing.java:321)
>> at 
>> org.xhtmlrenderer.layout.BlockBoxing.layoutBlockChild(BlockBoxing.java:299)
>> at 
>> org.xhtmlrenderer.layout.BlockBoxing.layoutContent(BlockBoxing.java:90)
>> at 
>> org.xhtmlrenderer.render.BlockBox.layoutChildren(BlockBox.java:926)
>> at 
>> org.xhtmlrenderer.render.BlockBox.layout(BlockBox.java:806)
>> at 
>> org.xhtmlrenderer.render.BlockBox.layout(BlockBox.java:735)
>> at 
>> org.xhtmlrenderer.pdf.ITextRenderer.layout(ITextRenderer.java:216)
>> at 
>> er.pdf.builder.FlyingSaucerImpl.setSource(FlyingSaucerImpl.java:99)
>> at er.pdf.ERPDFUtilities.htmlAsPdf(ERPDFUtilities.java:123)
>> at er.pdf.ERPDFWrapper.responseAsPdf(ERPDFWrapper.java:75)
>> at er.pdf.ERPDFWrapper

Vector graphics in Flying Saucer / ERPDFWrapper

2015-11-17 Thread Ricardo Parada
Hi all,

We use ERPDFWrapper to generate PDF from a WOComponent.  It comes out 
beautiful.  

One of our components includes a logo using the  html tag and the logo is 
usually a .gif or .jpg.  However, I would like to use vector graphics.  We took 
a .eps file and converted it to .pdf in Photoshop.  The resulting image scales 
beautifully to any size.  When I try to use the .pdf I get 
java.lang.ClassCastException: org.xhtmlrenderer.pdf.PDFAsImage cannot be cast 
to org.xhtmlrenderer.pdf.ITextFSImage.  

Has anybody been able to use vector graphics in ERPDFWrapper?

Thanks

The stack trace is below:

java.lang.ClassCastException: org.xhtmlrenderer.pdf.PDFAsImage cannot be cast 
to org.xhtmlrenderer.pdf.ITextFSImage
at 
org.xhtmlrenderer.pdf.ITextUserAgent.getImageResource(ITextUserAgent.java:97)
at 
org.xhtmlrenderer.pdf.ITextReplacedElementFactory.createReplacedElement(ITextReplacedElementFactory.java:57)
at 
er.pdf.builder.ERPDFReplacedElementFactory.createReplacedElement(ERPDFReplacedElementFactory.java:50)
at 
org.xhtmlrenderer.render.BlockBox.calcMinMaxWidth(BlockBox.java:1439)
at 
org.xhtmlrenderer.render.BlockBox.calcMinMaxWidthInlineChildren(BlockBox.java:1584)
at 
org.xhtmlrenderer.render.BlockBox.calcMinMaxWidth(BlockBox.java:1481)
at 
org.xhtmlrenderer.newtable.TableBox$AutoTableLayout.recalcColumn(TableBox.java:1240)
at 
org.xhtmlrenderer.newtable.TableBox$AutoTableLayout.fullRecalc(TableBox.java:1214)
at 
org.xhtmlrenderer.newtable.TableBox$AutoTableLayout.calcMinMaxWidth(TableBox.java:1509)
at 
org.xhtmlrenderer.newtable.TableBox.calcMinMaxWidth(TableBox.java:158)
at org.xhtmlrenderer.newtable.TableBox.layout(TableBox.java:221)
at 
org.xhtmlrenderer.layout.BlockBoxing.layoutBlockChild0(BlockBoxing.java:321)
at 
org.xhtmlrenderer.layout.BlockBoxing.layoutBlockChild(BlockBoxing.java:299)
at 
org.xhtmlrenderer.layout.BlockBoxing.layoutContent(BlockBoxing.java:90)
at 
org.xhtmlrenderer.render.BlockBox.layoutChildren(BlockBox.java:926)
at org.xhtmlrenderer.render.BlockBox.layout(BlockBox.java:806)
at org.xhtmlrenderer.render.BlockBox.layout(BlockBox.java:735)
at 
org.xhtmlrenderer.layout.BlockBoxing.layoutBlockChild0(BlockBoxing.java:321)
at 
org.xhtmlrenderer.layout.BlockBoxing.layoutBlockChild(BlockBoxing.java:299)
at 
org.xhtmlrenderer.layout.BlockBoxing.layoutContent(BlockBoxing.java:90)
at 
org.xhtmlrenderer.render.BlockBox.layoutChildren(BlockBox.java:926)
at org.xhtmlrenderer.render.BlockBox.layout(BlockBox.java:806)
at org.xhtmlrenderer.render.BlockBox.layout(BlockBox.java:735)
at 
org.xhtmlrenderer.pdf.ITextRenderer.layout(ITextRenderer.java:216)
at 
er.pdf.builder.FlyingSaucerImpl.setSource(FlyingSaucerImpl.java:99)
at er.pdf.ERPDFUtilities.htmlAsPdf(ERPDFUtilities.java:123)
at er.pdf.ERPDFWrapper.responseAsPdf(ERPDFWrapper.java:75)
at er.pdf.ERPDFWrapper.appendToResponse(ERPDFWrapper.java:60)
at 
com.webobjects.appserver.WOComponent.appendToResponse(WOComponent.java:1122)
at 
er.extensions.components.ERXComponent.appendToResponse(ERXComponent.java:117)
at 
er.extensions.components.ERXNonSynchronizingComponent.appendToResponse(ERXNonSynchronizingComponent.java:73)
at 
com.mpv.webcomponents.MPVWOComponent.appendToResponse(MPVWOComponent.java:67)
at 
com.webobjects.appserver.WOSession.appendToResponse(WOSession.java:1385)
at 
er.extensions.appserver.ERXSession.appendToResponse(ERXSession.java:552)
...

 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: Driver and Implementation of NoSQL

2015-10-28 Thread Ricardo Parada
I have to look it up and see what I can share. I have it in a git branch in a 
local repository. I will be getting back to this in the future as we will 
probably move forward with this. We have some tables that are huge and we want 
to start using Mongo DB to store that information. The tables outgrew the 
limits of an integer for the primary key years ago. 

The object graph that I deal with is similar to a document. The parent owns the 
children. It only has one reference to a user object which it does not own. 

I also had special requirements. I needed to still be able to read existing 
data from our relational oracle database. So the model is really mapped to 
oracle and can fetch from it. Then I wrote code to save to mongo for new data 
generated. And I can also fetch from mongo. 

Anyways in the (near I hope) future I'll be getting back to this project. 



> On Oct 27, 2015, at 12:14 PM, Paul Yu  wrote:
> 
> We should be able to formalize this with a framework then, right?
> 
> Can you provide some mapping of how you did this?
> 
> Paul
>> On Oct 27, 2015, at 12:12 PM, Ricardo Parada  wrote:
>> 
>> Hi Gino,
>> 
>> Let me know if you hear of any. 
>> 
>> I can tell you about an attempt / workaround I did. I inserted my enterprise 
>> objects (EOs) into an editing context. Then I used some of the classes in 
>> the ERRest framework to serialize my object graph of enterprise objects into 
>> JSON. Then I used the Mongo DB java driver to save the JSON to the Mongo 
>> database. 
>> 
>> Then to retrieve the objects I reverse the process. Use the Mongo DB Java 
>> driver to retrieve the JSON and the ERRest classes to rehydrate the objects 
>> into an editing context. 
>> 
>> Ricardo
>> 
>>> On Oct 26, 2015, at 5:36 PM, Gino Pacitti  wrote:
>>> 
>>> Hi list
>>> Are there any blogs or papers on integrating WO/EOF with NoSQL and whether 
>>> there are any special Drivers required.
>>> If NoSQL is not relational how does WO/EOF deal with Models with 
>>> relationships?
>>> 
>>> 
>>> 
>>> ___
>>> 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:
>>> https://lists.apple.com/mailman/options/webobjects-dev/rparada%40mac.com
>>> 
>>> This email sent to rpar...@mac.com
>> 
>> ___
>> 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:
>> https://lists.apple.com/mailman/options/webobjects-dev/pyu%40mac.com
>> 
>> This email sent to p...@mac.com
> 

 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: Transactions

2015-10-28 Thread Ricardo Parada
The way I have done this is by writing an object that sets up itself as the 
delegate of the adaptor context and the editing context. 

The object implements adaptorContextShouldCommit(adaptorContext) and returns a 
flag shouldCommit which is initially false. 

This keeps the transaction open while you call your stored procedures or 
execute bulk updates or whatever. Then the object implements 
editingContextWillSaveChanges(editingContext) and simply sets the shouldCommit 
flag to true.  In other her words, calling saveChanges on the editing context 
will call that delegate which will set the flag and then when the 
adaptorContextShouldCommit(adaptorContext) delegate method gets called again, 
this time it will return true because the flag has been set and the transaction 
will commit. 

The flow is like the this:

1. Create delegate object and set it up as the delegate of your editing context 
and adaptor context.  EOUtilities has databaseContextForModelNamed() that may 
come in handy. 

2. Create and update your EOs. Don't save changes yet. 

3. Call your stored procedures or execute special sql or bulk update, etc. the 
transaction will not commit and will remain open. 

4. Update and create more EOs if you want. 

5. Call saveChanges() in your editing context. This time the transaction will 
commit. 

That is what I have done and it works. 



> On Oct 28, 2015, at 9:12 AM, Birthe Berland  wrote:
> 
> I need to be able to do several things in the same transaction. 
> 
> Specifically I have inserted some new objects in the editing context and I 
> need to save them and make at number og stored procedure calls in the same 
> transaction. I have tried to insert  beginTransaction and commitTransaction 
> around it all, but Webobjects sends a commit between each.
> 
> Is there any way I can do this?
> 
> ed venlig hilsen
> 
> Birthe Berland
> Complimenta
> Tel.: 8830 7600
> 
> 
> 
> 
> ___
> 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:
> https://lists.apple.com/mailman/options/webobjects-dev/rparada%40mac.com
> 
> This email sent to rpar...@mac.com
 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: model insights (inheritance)

2015-10-28 Thread Ricardo Parada
Look at page 70 in 
https://developer.apple.com/legacy/library/documentation/WebObjects/UsingEOModeler/UsingEOModeler.pdf

It talks about different ways of modeling inheritance. 



> On Oct 28, 2015, at 8:51 AM, Theodore Petrosky  wrote:
> 
> I am starting a simple CMS for a friend. He needs to track donations. You 
> know a phone bank and people taking money.
> 
> Anyway, I have two kinds of Person. Employees that take money and Donors that 
> give. Both are Person.
> 
> I created a model for a Person then Subclasses for Employee and Donor. I am 
> using a qualifier isEmployee=1 and isDonor=1. Obviously then I have 
> attributes isEmployee and isDonor in Person.  A Person could be both an 
> Employee and a Donor. 
> 
> Would you do this, or would you model separate Entities for Employee and 
> Donar?
> 
> 
> 
> 
> 
> ___
> 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:
> https://lists.apple.com/mailman/options/webobjects-dev/rparada%40mac.com
> 
> This email sent to rpar...@mac.com

 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: Default Model Group - Error or Warning?

2015-10-27 Thread Ricardo Parada
Se a breakpoint in Wonder where that warning is logged to see if it gets you 
anywhere to solving that mystery.  :-)



> On Oct 27, 2015, at 1:17 PM, Calven Eggert  wrote:
> 
> strange.  can't find any entity with that name.
> 
> I did:
> EOEntity theModel = 
> EOModelGroup.defaultGroup().entityNamed("NSMutableDictionary");
> 
> and the answer was nil.
> 
> hmmm...
> 
> Calven
> 
> 
>> On Oct 27, 2015, at 11:54 AM, Chuck Hill  wrote:
>> 
>> It looks like you have that as the Entity name for one of your entities in 
>> the model?  It is a modelling issue in any case.
>> 
>> Chuck
>> 
>> 
>> From:  on behalf 
>> of Calven Eggert 
>> Date: Tuesday, October 27, 2015 at 8:39 AM
>> To: WebObjects-Dev 
>> Subject: Default Model Group - Error or Warning?
>> 
>> I've just recently noticed that I get this error upon starting my WO app. 
>> Everything seems to be working ok, just wondering if I need to address it:
>> 
>> Oct 27 11:21:44 CRR[49599] ERROR er.extensions.eof.ERXEntityClassDescription 
>>  - Entity NSMutableDictionary not found in the default model group!
> 
> ___
> 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:
> https://lists.apple.com/mailman/options/webobjects-dev/rparada%40mac.com
> 
> This email sent to rpar...@mac.com
 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: Driver and Implementation of NoSQL

2015-10-27 Thread Ricardo Parada
Hi Gino,

Let me know if you hear of any. 

I can tell you about an attempt / workaround I did. I inserted my enterprise 
objects (EOs) into an editing context. Then I used some of the classes in the 
ERRest framework to serialize my object graph of enterprise objects into JSON. 
Then I used the Mongo DB java driver to save the JSON to the Mongo database. 

Then to retrieve the objects I reverse the process. Use the Mongo DB Java 
driver to retrieve the JSON and the ERRest classes to rehydrate the objects 
into an editing context. 

Ricardo

> On Oct 26, 2015, at 5:36 PM, Gino Pacitti  wrote:
> 
> Hi list
> Are there any blogs or papers on integrating WO/EOF with NoSQL and whether 
> there are any special Drivers required.
> If NoSQL is not relational how does WO/EOF deal with Models with 
> relationships?
> 
> 
> 
> ___
> 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:
> https://lists.apple.com/mailman/options/webobjects-dev/rparada%40mac.com
> 
> This email sent to rpar...@mac.com

 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Apps launch fine from the command line but not from JavaMonitor - CentOS 6.5

2015-10-25 Thread Ricardo Parada

Is anybody familiary deploying on CentOS 6.5.  I just want to get the basic 
stuff working.  I have a simple WOnder app (TestApp.woa) with all frameworks 
embedded.  I have the apache, the WebObjects http adaptor, JavaMonitor and 
wotaskd running.

In a nutshell, the app runs just fine from the command line but it won’t start 
from JavaMonitor. The TestApp keeps dying.  It does not even get to log 
anything under /opt/Local/Library/WebObjects/Logs.  It is as if JavaMonitor did 
not even try to run it.

On the other hand, if I run the application from the command line I can direct 
connect to it.  I’ve spent many hours and I cannot figure it out.  

If I go to a static file configuration by changing my 
/etc/httpd/conf.d/webobjects.conf file as follows:

LoadModule WebObjects_modulemodules/mod_WebObjects.so
WebObjectsDocumentRoot /var/www/html
WebObjectsAlias /apps/WebObjects

# Commented out this because I cannot get apps launched from 
# JavaMonitor.  
#WebObjectsConfig http://localhost:1085 10

# File configuration works fine
WebObjectsConfig file:///opt/Local/Library/WebObjects/Configuration/Apps.xml 10

WebObjectsLog /tmp/WebObjects.log Debug

My /opt/Local/Library/WebObjects/Configuration/Apps.xml file is as follows:








I then restart apache and run my TestApp from the command line:

# cd /opt/Local/Library/WebObjects/Applications/TestApp.woa/
# ./TestApp -WOPort 2001

After this I can connect through the web server, i.e. 
http://host/apps/WebObjects/TestApp or using direct connect, i.e. 
http://host:2001.

Please let me know if you have any suggestions on what to try to help debug the 
problem.



 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: Help Installing Deployment environment on CentOS 6.5

2015-10-24 Thread Ricardo Parada
I proceeded to install wotaskd, womonitor and woadaptor my creating the repo by 
hand and replacing the $releasever with the number 6.
They seem to install.  However, when I touched /tmp/logWebObjects and restarted 
apace I noticed that the following was logged:

[root@li1170-129 ~]# tail -f /tmp/WebObjects.log
Debug:  new translate: /
Debug:  translate - DECLINED: /
Debug:  new translate: /index.html
Debug:  translate - DECLINED: /index.html
Debug: WebObjects_handler declined! /index.html

Does anybody know what that means?

Thanks in advance



> On Oct 24, 2015, at 10:06 PM, Ricardo Parada  wrote:
> 
> Hi all,
> 
> I’m following the instructions on the wiki to setup the deployment 
> environment on CentOS, etc.  i.e. 
> https://wiki.wocommunity.org/pages/viewpage.action?pageId=8585219&src=search 
> <https://wiki.wocommunity.org/pages/viewpage.action?pageId=8585219&src=search>
> 
> However, this step:
> 
> sudo curl -o /etc/yum.repos.d/wocommunity.repo https://raw.github.com 
> <http://github.com/>/wocommunity/wonder/master/Utilities/Linux/wocommunity.repo
> 
> Does not seem to work for me.  I don’t know why it’s not able to read the 
> repo from the url.  If I just do curl I get nothing.  However, using Safari I 
> was able to get the contents of that url which looks like this:
> 
> [wocommunity]
> name=WOCommunity
> baseurl=http://packages.wocommunity.org/CentOS/ 
> <http://packages.wocommunity.org/CentOS/>$releasever/
> enabled=1
> gpgcheck=0
> #gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6-LocalRepo 
> 
> protect=0
> 
> Should I create the /etc/yum.repos.d/wocommunity.repo by hand and replae 
> $releasever with the number 6 then?
> 
> Thank you
> 
> ___
> 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:
> https://lists.apple.com/mailman/options/webobjects-dev/rparada%40mac.com
> 
> This email sent to rpar...@mac.com

 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Help Installing Deployment environment on CentOS 6.5

2015-10-24 Thread Ricardo Parada
Hi all,

I’m following the instructions on the wiki to setup the deployment environment 
on CentOS, etc.  i.e. 
https://wiki.wocommunity.org/pages/viewpage.action?pageId=8585219&src=search

However, this step:

sudo curl -o /etc/yum.repos.d/wocommunity.repo 
https://raw.github.com/wocommunity/wonder/master/Utilities/Linux/wocommunity.repo

Does not seem to work for me.  I don’t know why it’s not able to read the repo 
from the url.  If I just do curl I get nothing.  However, using Safari I was 
able to get the contents of that url which looks like this:

[wocommunity]
name=WOCommunity
baseurl=http://packages.wocommunity.org/CentOS/$releasever/
enabled=1
gpgcheck=0
#gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6-LocalRepo
protect=0

Should I create the /etc/yum.repos.d/wocommunity.repo by hand and replae 
$releasever with the number 6 then?

Thank you

 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: WOLips and ant editor for build.xml

2015-10-21 Thread Ricardo Parada
I figured out what was wrong. I simply went to the Window menu and reset the 
perspective.  After resetting the perspective the outline view that I was 
missing magically appeared. 

The ant editor can be associated with the build.xml file by going to the 
Preferences under file associations. 

I hope this helps someone on the list. 

> On Oct 20, 2015, at 10:02 AM, Ricardo Parada  wrote:
> 
> Hi all,
> 
> In one of the 2009 WOWODC videos I saw Pascal editing a build.xml in Eclipse 
> where he can see the values of properties as he hovers the mouse over the 
> property name. He was also able to see the names of the targets in the 
> build.xml file in an outline view on the right hand side and he was able to 
> right click on a target and run ant on it. 
> 
> How do I get the same?  I was able to tell Eclipse to use the ant Editor when 
> opening the build.xml. That gets me half the functionality where I can see 
> the values for the properties. I am still missing the outline view with the 
> targets and be able to right click on them. 
> 
> Does anybody know?
> 
> Thank you. 
> ___
> 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:
> https://lists.apple.com/mailman/options/webobjects-dev/rparada%40mac.com
> 
> This email sent to rpar...@mac.com

 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

WOLips and ant editor for build.xml

2015-10-20 Thread Ricardo Parada
Hi all,

In one of the 2009 WOWODC videos I saw Pascal editing a build.xml in Eclipse 
where he can see the values of properties as he hovers the mouse over the 
property name. He was also able to see the names of the targets in the 
build.xml file in an outline view on the right hand side and he was able to 
right click on a target and run ant on it. 

How do I get the same?  I was able to tell Eclipse to use the ant Editor when 
opening the build.xml. That gets me half the functionality where I can see the 
values for the properties. I am still missing the outline view with the targets 
and be able to right click on them. 

Does anybody know?

Thank you. 
 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: Yosemite deployment problem with MySQL (Stavros Panidis)

2015-10-17 Thread Ricardo Parada
I remember MySQL having restrictions that deny access to a user depending on 
what host it is connecting from.   Do the following: 

MySQL> USE mysql;
MySQL> SELECT user, host FROM user;



Sent from my iPhone
> On Oct 17, 2015, at 2:01 AM, Stavros Panidis  
> wrote:
> 
> Dear,
> 
> thank you for your quick reply!
> 
> It is the same application (not even re compiled) running at least 2 years 
> with no problem on OS X 10.9 Server.
> 
> I think that rather has to do with MySQL installation on Yosemite Server. 
> ---
>> 
>> Message: 2
>> Date: Fri, 16 Oct 2015 19:39:46 +0200
>> From: Markus Ruggiero 
>> To: Stavros Panidis 
>> Cc: "webobjects-dev@lists.apple.com" 
>> Subject: Re: Yosemite deployment problem with MySQL
>> Message-ID: 
>> Content-Type: text/plain; charset="utf-8"
>> 
>> Did you check your connection dictionary?
> 
> YES
>> Did you include the jdbc driver into the class path?
> 
> YES
>> Is the URL correct (jdbc:mysql://localhost/myDBName)
> 
> YES
>> 
>> Enable adaptor debugging. EOF will then output the used connection info - is 
>> it using what you think it should?
> 
> ? Sorry, I don’t know how
>> 
>> Where does the connection info come from: the EOModel or from some 
>> properties or any other mechanism?
> 
> From EOModel if I understand well. Corresponding line in Main component is
> 
> NSArray accountsArray = EOUtilities.objectsForEntityNamed(ec, "Accounts”);
> 
>> 
>> Just some random thoughts
>> ---markus---
>> 
>>> On 16.10.2015, at 18:50, Stavros Panidis  wrote:
>>> 
>>> Dear list,
>>> 
>>> 
>>> I get the following error when try to connect to my application.
>>> 
>>> Error:  java.lang.IllegalStateException: _obtainOpenChannel -- 
>>> com.webobjects.eoaccess.EODatabaseContext 
>>> com.webobjects.eoaccess.EODatabaseContext@3dd81ec9: failed to open database 
>>> channel. Check your connection dictionary, and ensure your database is 
>>> correctly configured. 
>>> Reason: _obtainOpenChannel -- com.webobjects.eoaccess.EODatabaseContext 
>>> com.webobjects.eoaccess.EODatabaseContext@3dd81ec9: failed to open database 
>>> channel. Check your connection dictionary, and ensure your database is 
>>> correctly configured.
>>> 
>>> 
>>> Deployment machine is Mac Mini running Yosemite Server.
>>> 
>>> MySQL version is 5.6.25
>>> MySQL connector Java version is 5.1.31
>>> 
>>> MySQL is running and stopping locally by System settings.
>>> 
>>> MySQL is working locally with a third application (Navicat)
>>> 
>>> MySQL is working remotely via Terminal login.
>>> 
>>> Any idea what can be wrong?
>>> 
>>> Many thanks in advance
>>> 
>>> Stavros
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> ___
>>> 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:
>>> https://lists.apple.com/mailman/options/webobjects-dev/mailinglists%40kataputt.com
>>> 
>>> This email sent to mailingli...@kataputt.com
>> 
>> -- next part --
>> An HTML attachment was scrubbed...
>> URL: 
>> 
>> 
>> --
>> 
>> Message: 3
>> Date: Fri, 16 Oct 2015 17:45:55 +
>> From: Chuck Hill 
>> To: Markus Ruggiero , Stavros Panidis
>>  
>> Cc: "webobjects-dev@lists.apple.com" 
>> Subject: Re: Yosemite deployment problem with MySQL
>> Message-ID: 
>> Content-Type: text/plain; charset="iso-8859-1"
>> 
>> Wonder's ERXJDBCConnectionAnalyzer should help here.  I though it was 
>> automatically activated in the case of a connection failure, but maybe I am 
>> imagining that.
> 
> Sorry, I don’t know how to use it! I think there is something in ‘Practical 
> WebObjects’ isn’t it?
> 
> ___
> 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:
> https://lists.apple.com/mailman/options/webobjects-dev/rparada%40mac.com
> 
> This email sent to rpar...@mac.com
 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

  1   2   >