Re: Amazon Linux 2023 and Graviton

2024-09-19 Thread John Pollard via Webobjects-dev
I do appear to have built mod_WebObjects.so

Some things I did on a new Amazon Linux 2023 Graviton instance
sudo yum groupinstall "Development Tools”
sudo yum install httpd-devel

Downloaded the wonder tarball as per the instructions linked below and 
extracted it
cd into Utilities/Adaptors
Edit make.config
Set:
ADAPTOR_OS = LINUX
RC_ARCHS=armv8-a
ADAPTORS = CGI Apache2.4  (this in the OTHER LINUX section)

make

A lot of output and warnings, but it created:
Adaptors/Apache2.4/mod_WebObjects.so
and
Adaptors/CGI/WebObjects

I will not be able to test it for a while, but promising.

Any feedback welcome.

Thanks
John

> On 18 Sep 2024, at 10:23, John Pollard via Webobjects-dev 
>  wrote:
> 
> Paul mentions that the WO Adaptor is easy to build from source; has anyone 
> done it on Amazon Graviton hardware?
> Would the best instructions be here?: 
> https://wiki.wocommunity.org/xwiki/bin/view/documentation/Home/Deployment/Compiling%20the%20HTTP%20adaptor%20on%20Linux/
> Though I note that hasn’t been updated since 2013.
> If anyone knows of prolems running WO app servers on Graviton, please say now 
> and stick to Amazon T3 instances or similar.
> Thanks
> John
> 
>> On 21 Jun 2024, at 23:58, Paul Hoadley via Webobjects-dev 
>>  wrote:
>> 
>> Hi John,
>> 
>> On 21 Jun 2024, at 17:33, John Pollard  wrote:
>> 
>>> Also Paul, what instance type are you using; Amazon offer their own 
>>> Graviton instance types more cheaply and with higher performance, but I am 
>>> on t3.xlarge currently. Should I be looking at graviton versions? Is there 
>>> a WO adaptor built for them that can be grabbed? Any other considerations 
>>> in deploying to Graviton?
>> 
>> We use really only the T3 family—haven't looked into using Graviton. 
>> Building the WO adaptor from source is very straightforward, though.
>> 
>> 
>> -- 
>> 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/john%40pollardweb.com
> 
> This email sent to j...@pollardweb.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: Amazon Linux 2023 and Graviton

2024-09-18 Thread John Pollard via Webobjects-dev
Paul mentions that the WO Adaptor is easy to build from source; has anyone done 
it on Amazon Graviton hardware?
Would the best instructions be here?: 
https://wiki.wocommunity.org/xwiki/bin/view/documentation/Home/Deployment/Compiling%20the%20HTTP%20adaptor%20on%20Linux/
Though I note that hasn’t been updated since 2013.
If anyone knows of prolems running WO app servers on Graviton, please say now 
and stick to Amazon T3 instances or similar.
Thanks
John

> On 21 Jun 2024, at 23:58, Paul Hoadley via Webobjects-dev 
>  wrote:
> 
> Hi John,
> 
> On 21 Jun 2024, at 17:33, John Pollard  wrote:
> 
>> Also Paul, what instance type are you using; Amazon offer their own Graviton 
>> instance types more cheaply and with higher performance, but I am on 
>> t3.xlarge currently. Should I be looking at graviton versions? Is there a WO 
>> adaptor built for them that can be grabbed? Any other considerations in 
>> deploying to Graviton?
> 
> We use really only the T3 family—haven't looked into using Graviton. Building 
> the WO adaptor from source is very straightforward, though.
> 
> 
> -- 
> 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/archive%40mail-archive.com

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


Re: Amazon Linux 2023

2024-06-21 Thread John Pollard via Webobjects-dev
Also Paul, what instance type are you using; Amazon offer their own Graviton 
instance types more cheaply and with higher performance, but I am on t3.xlarge 
currently. Should I be looking at graviton versions? Is there a WO adaptor 
built for them that can be grabbed? Any other considerations in deploying to 
Graviton?

Thanks
John

> On 19 Jun 2024, at 10:05, John Pollard via Webobjects-dev 
>  wrote:
> 
> Thanks again Paul
> I use Java Web Start, so I don’t think corretto will work for me.
> I do use cron yes.
> John
> 
>> On 19 Jun 2024, at 00:34, Paul Hoadley via Webobjects-dev 
>>  wrote:
>> 
>> Hi John,
>> 
>> On 18 Jun 2024, at 19:15, John Pollard  wrote:
>> 
>>> Thanks Paul, that’s really helpful.
>>> 
>>> java -version
>>> openjdk version "1.8.0_402"
>>> OpenJDK Runtime Environment (build 1.8.0_402-b06)
>>> OpenJDK 64-Bit Server VM (build 25.402-b06, mixed mode)
>>> 
>>> Will I need to change to corretto?
>> 
>> Short answer is: I don't know. Corretto is certainly the easiest way to get 
>> a JRE/JDK for Amazon Linux, and it should be a drop-in replacement for 
>> anything else you're using.
>> 
>>> Sounds like I will need to look into cronie, thanks for the heads up.
>> 
>> Only if you need cron. We use it to periodically post some measurements to 
>> CloudWatch in some circumstances. If not, don't worry about it.
>> 
>>> Is the WO apache adaptor going to work as is?
>> 
>> Yep.
>> 
>>> And wotaskd and javamonitor should be fine I guess as just java apps.
>> 
>> And yep.
>> 
>> 
>> -- 
>> 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/john%40pollardweb.com
>> 
>> This email sent to j...@pollardweb.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/john%40pollardweb.com
> 
> This email sent to j...@pollardweb.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: Amazon Linux 2023

2024-06-19 Thread John Pollard via Webobjects-dev
Thanks again Paul
I use Java Web Start, so I don’t think corretto will work for me.
I do use cron yes.
John

> On 19 Jun 2024, at 00:34, Paul Hoadley via Webobjects-dev 
>  wrote:
> 
> Hi John,
> 
> On 18 Jun 2024, at 19:15, John Pollard  wrote:
> 
>> Thanks Paul, that’s really helpful.
>> 
>> java -version
>> openjdk version "1.8.0_402"
>> OpenJDK Runtime Environment (build 1.8.0_402-b06)
>> OpenJDK 64-Bit Server VM (build 25.402-b06, mixed mode)
>> 
>> Will I need to change to corretto?
> 
> Short answer is: I don't know. Corretto is certainly the easiest way to get a 
> JRE/JDK for Amazon Linux, and it should be a drop-in replacement for anything 
> else you're using.
> 
>> Sounds like I will need to look into cronie, thanks for the heads up.
> 
> Only if you need cron. We use it to periodically post some measurements to 
> CloudWatch in some circumstances. If not, don't worry about it.
> 
>> Is the WO apache adaptor going to work as is?
> 
> Yep.
> 
>> And wotaskd and javamonitor should be fine I guess as just java apps.
> 
> And yep.
> 
> 
> -- 
> 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/john%40pollardweb.com
> 
> This email sent to j...@pollardweb.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: Amazon Linux 2023

2024-06-18 Thread John Pollard via Webobjects-dev
Thanks Paul, that’s really helpful.

java -version
openjdk version "1.8.0_402"
OpenJDK Runtime Environment (build 1.8.0_402-b06)
OpenJDK 64-Bit Server VM (build 25.402-b06, mixed mode)

Will I need to change to corretto?

Sounds like I will need to look into cronie, thanks for the heads up.

Is the WO apache adaptor going to work as is?
And wotaskd and javamonitor should be fine I guess as just java apps.

John

> On 18 Jun 2024, at 00:25, Paul Hoadley via Webobjects-dev 
>  wrote:
> 
> Hi John,
> 
> On 17 Jun 2024, at 20:09, John Pollard via Webobjects-dev 
>  wrote:
> 
>> I am deployed to Amazon Linux 2 and need to move to Amazon Linux 2023 by 
>> March 2025.
>> 
>> Was anyone else in this boat / has already done this migration?
>> 
>> If so, is there anything I should be aware of before I start, or smooth 
>> sailing?
> 
> On the whole, smooth sailing. Looking at the changes to our appserver setup 
> script here, I can see:
> 
> * Change in how to install JREs: the "amazon-linux-extras" step has gone, 
> looks like Corretto JREs are available immediately using yum.
> 
> * Looks like postfix is no longer started automatically: our script used to 
> kill this, and no longer does.
> 
> * Looks like cron is no longer provided, and we're installing cronie.
> 
> Obviously whether or not any of these are relevant to you will depend on how 
> you set up your appservers.
> 
> 
> -- 
> 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/john%40pollardweb.com
> 
> This email sent to j...@pollardweb.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


Amazon Linux 2023

2024-06-17 Thread John Pollard via Webobjects-dev
Hello,

I am deployed to Amazon Linux 2 and need to move to Amazon Linux 2023 by March 
2025.

Was anyone else in this boat / has already done this migration?

If so, is there anything I should be aware of before I start, or smooth sailing?

I have a very manual deployment, but have extensive notes from moving between 
AL1 and AL2 so hoping that should help.

Many thanks,
John


John Pollard
077 4221 0024


 ___
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: Monterey mod_WebObjects.so code signing

2022-02-10 Thread John Pollard via Webobjects-dev
I solved this, so if anyone else needs a pointer:

You can create a self-signed Code Signing Certificate Authority following the 
very good instructions here:
https://www.simplified.guide/macos/keychain-ca-code-signing-create 
<https://www.simplified.guide/macos/keychain-ca-code-signing-create>

You can then create a self-signing Code Signing Certificate as per:
https://www.simplified.guide/macos/keychain-cert-code-signing-create 
<https://www.simplified.guide/macos/keychain-cert-code-signing-create>

You can then sign the library like this:
sudo codesign -s "JPMPLCert" --keychain ~/Library/Keychains/login.keychain-db 
/Library/WebObjects/Adaptors/Apache2.4/mod_WebObjects.so
where “JPMPLCert” is whatever name you called your certificate

I got the error:
unable to build chain to self-signed root for signer …
which I couldn’t resolve, but found a workaround; just sign directly with the 
Certificate Authority cert created above:
sudo codesign -s "JPMPLCA" --keychain ~/Library/Keychains/login.keychain-db 
/Library/WebObjects/Adaptors/Apache2.4/mod_WebObjects.so
where “JPMPLCA” is whatever you called your Certificate Authority

Then add it to the LoadModule line in your apache config:
LoadModule WebObjects_module 
/Library/WebObjects/Adaptors/Apache2.4/mod_WebObjects.so “JPMPLCA"
where the bit in quotes at the end is whatever you ended up signing your 
library with earlier

Now when do my apache configtest I see:
Allowing module loading process to continue for module at 
/Library/WebObjects/Adaptors/Apache2.4/mod_WebObjects.so because module 
signature matches authority "JPMPLCA" specified in LoadModule directive

and the world is right again

John

> On 8 Feb 2022, at 17:35, John Pollard via Webobjects-dev 
>  wrote:
> 
> Hello,
> 
> After switching to Monterey
> 
> apache configtest
> 
> gives:
> 
> [Tue Feb 08 17:25:53.363409 2022] [so:error] [pid 2017] AH06665: No code 
> signing authority for module at 
> /Library/WebObjects/Adaptors/Apache2.4/mod_WebObjects.so specified in 
> LoadModule directive.
> 
> If anyone has jumped through this hoop, could you point me in the right 
> direction?
> 
> I only need this for running to test things out in development, it is not a 
> deployment environment.
> 
> Many thanks,
> John
> ___
> 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/john%40pollardweb.com
> 
> This email sent to j...@pollardweb.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


Monterey mod_WebObjects.so code signing

2022-02-08 Thread John Pollard via Webobjects-dev
Hello,

After switching to Monterey

apache configtest

gives:

[Tue Feb 08 17:25:53.363409 2022] [so:error] [pid 2017] AH06665: No code 
signing authority for module at 
/Library/WebObjects/Adaptors/Apache2.4/mod_WebObjects.so specified in 
LoadModule directive.

If anyone has jumped through this hoop, could you point me in the right 
direction?

I only need this for running to test things out in development, it is not a 
deployment environment.

Many thanks,
John
 ___
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: apache 2.4 mpm prefork or event?

2022-01-11 Thread John Pollard via Webobjects-dev
Thanks very much, good to know, will stick with prefork.

> On 11 Jan 2022, at 14:45, Michael Kondratov  
> wrote:
> 
> You need to use prefork Apache. Processes instead  threads. The WO adapter 
> will not work in a multithreaded setup.
> 
> Disable http2.
> 
> Michael 
> 
> Sent from my iPhone
> 
>> On Jan 11, 2022, at 4:21 AM, John Pollard via Webobjects-dev 
>>  wrote:
>> 
>> Hello list,
>> 
>> I recently moved to Amazon Linux 2 and apache 2.4
>> 
>> In /etc/httpd/conf.modules.d/00-mpm.conf
>> 
>> If I opt for prefork, I see this in the error log:
>> 
>> The mpm module (prefork.c) is not supported by mod_http2. The mpm determines 
>> how things are processed in your server. HTTP/2 has more demands in this 
>> regard and the currently selected mpm will just not do. This is an advisory 
>> warning. Your server will continue to work, but the HTTP/2 protocol will be 
>> inactive.
>> 
>> If I instead opt for the event module
>> 
>> I intermittently get segmentation faults logged, such as:
>> [Tue Jan 11 07:35:36.570934 2022] [core:notice] [pid 2485:tid 
>> 139715274359360] AH00052: child pid 3132 exit signal Segmentation fault (11)
>> 
>> Should I be able to use mpm event and how important is having support for 
>> http/2? I believe I have the correct mod_WebObjects.so for apache 2.4, works 
>> fine with prefork
>> 
>> Many thanks,
>> John
>> 
>> 
>> ___
>> 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/archive%40mail-archive.com

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


apache 2.4 mpm prefork or event?

2022-01-11 Thread John Pollard via Webobjects-dev
Hello list,

I recently moved to Amazon Linux 2 and apache 2.4

In /etc/httpd/conf.modules.d/00-mpm.conf

If I opt for prefork, I see this in the error log:

The mpm module (prefork.c) is not supported by mod_http2. The mpm determines 
how things are processed in your server. HTTP/2 has more demands in this regard 
and the currently selected mpm will just not do. This is an advisory warning. 
Your server will continue to work, but the HTTP/2 protocol will be inactive.

If I instead opt for the event module

I intermittently get segmentation faults logged, such as:
[Tue Jan 11 07:35:36.570934 2022] [core:notice] [pid 2485:tid 139715274359360] 
AH00052: child pid 3132 exit signal Segmentation fault (11)

Should I be able to use mpm event and how important is having support for 
http/2? I believe I have the correct mod_WebObjects.so for apache 2.4, works 
fine with prefork

Many thanks,
John


 ___
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


Mac OS Monterey

2021-12-16 Thread John Pollard via Webobjects-dev
I see my Mac is offering me Monterey. Have others installed this on a Mac they 
use for WO development? I use Eclipse (2018-12), EO Modeller, WOLips, Wonder.

Many thanks,
John
 ___
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 mysql TIMESTAMPS not allowed NULL

2020-11-12 Thread John Pollard via Webobjects-dev
Thank you Tim and Ray,

Just moved to Mac OS 10.15.7 in development which has given me the headaches
I have installed the latest mysql 8.0.22
Java 8 (I use Java Web Start which keeps me on 8 for now)
As my production system is on mysql 5, I found I had to use 
mysql-connector-java-5.1.44 which currently keeps both environments happy with 
regards establishing the connection. So this may be the issue.
I will plan to upgrade mysql in production and get everything in line, I just 
don’t want to do too much all in one hit.
So for now I will go down one of the coding routes, perhaps just set it in 
validateXXX() for each entity.
Thanks for the more generic coding options Tim which I will also look at.

John


> On 12 Nov 2020, at 02:09, Ray Kiddy  wrote:
> 
> I was seeing the same at one point. I believe that upgrading the jdbc driver 
> I was using fixed it. What version of the jdbc driver jar are you using? I am 
> using mysql-connector-java-8.0.19.jar.
> 
> % java --version
> java 14 2020-03-17
> Java(TM) SE Runtime Environment (build 14+36-1461)
> Java HotSpot(TM) 64-Bit Server VM (build 14+36-1461, mixed mode, sharing)
> 
> My system version is: macOS 10.15.4 (19E287)
> 
> What are you trying to work with?
> 
> cheers - ray
> 
> 
> On 11/11/20 3:13 PM, Tim W via Webobjects-dev wrote:
>> John:
>> 
>> Off the top of my head these may be a couple options:
>> 
>> 1. In your EO super class, override willInsert or awakeFromInsertion. The 
>> former assumes you’re extending ERXGenericRecord. Not so elegant but you 
>> could clobber every instance of a certain attribute type - with some 
>> overhead.
>> 2. Possibly override MySQLExpression.formatValueForAttribute ? Force what 
>> you want when a certain attribute type is null. Maybe poll for the version 
>> of mysql there?
>> 
>> Tim
>> UCLA GSE&IS
>> 
>>> On Nov 11, 2020, at 2:20 PM, John Pollard via Webobjects-dev 
>>>  wrote:
>>> 
>>> Hi again list,
>>> 
>>> My move to Catalina forced me to mysql 8. The previous version allowed NULL 
>>> to be passed to TIMESTAMP fields causing mysql to set them automatically, 
>>> but the NULL passed in the INSERT statements causes an error.
>>> 
>>> From reading around I believe they should be passed as a blank “” rather 
>>> than NULL in order for mysql to default them. I should update my Wonder 
>>> snapshot as perhaps it is fixed in Wonder now, but I am wary of making too 
>>> many changes all at once. The lesson I suppose is to keep all aspects 
>>> reasonably up to date in good time!
>>> 
>>> Is there a quick way to set all fields that are of type 
>>> dateTimeStampPrototype in the EOModel to be blank rather than NULL? Or I 
>>> could just set them to now in code, but is there one place I can do it 
>>> rather than in every entity class?
>>> 
>>> Thanks
>>> John
>>> 

 ___
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


Default mysql TIMESTAMPS not allowed NULL

2020-11-11 Thread John Pollard via Webobjects-dev
Hi again list,

My move to Catalina forced me to mysql 8. The previous version allowed NULL to 
be passed to TIMESTAMP fields causing mysql to set them automatically, but the 
NULL passed in the INSERT statements causes an error.

From reading around I believe they should be passed as a blank “” rather than 
NULL in order for mysql to default them. I should update my Wonder snapshot as 
perhaps it is fixed in Wonder now, but I am wary of making too many changes all 
at once. The lesson I suppose is to keep all aspects reasonably up to date in 
good time!

Is there a quick way to set all fields that are of type dateTimeStampPrototype 
in the EOModel to be blank rather than NULL? Or I could just set them to now in 
code, but is there one place I can do it rather than in every entity class?

Thanks
John
 ___
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: move to mysql 8 on Catalina jdbc Incorrect DATE value: '??’

2020-11-09 Thread John Pollard via Webobjects-dev
Very kind of you. All I did was swap mysql-connector-java-8.0.19.jar in place 
of the more recent mysql-connector-java-8.0.22.jar and it resolved my problem. 
Using the latest 8.0.22 version, I get the "Incorrect DATE value: '??’at” error.

Should I update my Wonder code anyway? My last grab of it was in 2015! I have 
been scared to touch it.

Obviously it is a concern that the latest mysql jdbc connector has this problem 
and I would be interested to know whether anyone else had tried 8.0.22 with 
success. For now I can work with the 8.0.19 version.

Thanks
John

> On 9 Nov 2020, at 13:31, CEO BASE USA  
> wrote:
> 
> Hi John
> I used this jar and then this config
> 
> MYEOMODEL.URL = 
> jdbc:mysql://127.0.0.1/MYDATABASE?capitalizeTypeNames=true&useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&useSSL=false&sendFractionalSeconds=false
>  
> 
> 
> MYEOMODEL.URL.DBUser = xxx
> MYEOMODEL.URL.DBPassword = xxx
> MYEOMODEL.URL.DBPlugin = MySQL
> MYEOMODEL.URL.DBDriver = com.mysql.cj.jdbc.Driver
> #dbEOPrototypesEntityGLOBAL=EOJDBCMySQLPrototypes
> 
> 
>> On 9 Nov 2020, at 11:58, John Pollard via Webobjects-dev 
>> mailto:webobjects-dev@lists.apple.com>> 
>> wrote:
>> 
>> Hello WO list,
>> 
>> I upgraded my Mac to Catalina and found mysql 5 no longer ran, so installed 
>> mysql 8
>> 
>> I switched to the latest mysql-connector-java-8.0.22.jar
>> 
>> I note the following error when I run an application:
>> 
>> Loading class `com.mysql.jdbc.Driver'. This is deprecated. The new driver 
>> class is `com.mysql.cj.jdbc.Driver'. The driver is automatically registered 
>> via the SPI and manual loading of the driver class is generally unnecessary.
>> 
>> My connection dictionary:
>> URL: 
>> jdbc:mysql://localhost/BetRankDB?user=root&capitalizeTypeNames=true&useUnicode=true&characterEncoding=UTF-8&sendFractionalSeconds=false
>>  
>> 
>> Driver: com.mysql.jdbc.Driver
>> Plugin: MySQL
>> 
>> I tried removing the Driver, but got the same error message. So I changed 
>> Driver to com.mysql.cj.jdbc.Driver and that error went away.
>> 
>> However, I get the following exception:
>> 
>> er.transaction.adaptor.Exceptions  - Database Exception occured: Incorrect 
>> DATE value: '??’at 
>> com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:129)
>> 
>> at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:97)
>> at 
>> com.mysql.cj.jdbc.exceptions.SQLExceptionsMapping.translateException(SQLExceptionsMapping.java:122)
>> at 
>> com.mysql.cj.jdbc.ClientPreparedStatement.executeInternal(ClientPreparedStatement.java:953)
>> at 
>> com.mysql.cj.jdbc.ClientPreparedStatement.execute(ClientPreparedStatement.java:370)
>> at 
>> com.webobjects.jdbcadaptor.JDBCChannel._bindInputVariablesWithBindingsAndExecute(JDBCChannel.java:265)
>> at 
>> com.webobjects.jdbcadaptor.JDBCChannel._evaluateExpression(JDBCChannel.java:337)
>> at 
>> com.webobjects.jdbcadaptor.JDBCChannel.evaluateExpression(JDBCChannel.java:296)
>> at 
>> com.webobjects.jdbcadaptor.JDBCChannel.selectAttributes(JDBCChannel.java:220)
>> at 
>> com.webobjects.eoaccess.EODatabaseChannel._selectWithFetchSpecificationEditingContext(EODatabaseChannel.java:897)
>> at 
>> com.webobjects.eoaccess.EODatabaseChannel.selectObjectsWithFetchSpecification(EODatabaseChannel.java:234)
>> at 
>> com.webobjects.eoaccess.EODatabaseContext._objectsWithFetchSpecificationEditingContext(EODatabaseContext.java:3055)
>> at 
>> com.webobjects.eoaccess.EODatabaseContext.objectsWithFetchSpecification(EODatabaseContext.java:3195)
>> at 
>> com.webobjects.eocontrol.EOObjectStoreCoordinator.objectsWithFetchSpecification(EOObjectStoreCoordinator.java:488)
>> at 
>> com.webobjects.eocontrol.EOEditingContext.objectsWithFetchSpecification(EOEditingContext.java:4069)
>> at er.extensions.eof.ERXEC.objectsWithFetchSpecification(ERXEC.java:1308)
>> at 
>> com.webobjects.eocontrol.EOEditingContext.objectsWithFetchSpecification(EOEditingContext.java:)
>> 
>> I confess I haven’t updated Wonder code for a very long time, could that be 
>> the issue?
>> 
>> Many thanks for any pointers.
>> 
>> John
>> ___
>> 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/ginokris%40mac.com 
>> <https://lists.apple.com/mailman/options/webobjects-dev/ginokris%40mac.com>
>> 
>> This email sent to ginok...@mac.com <mailto:ginok...@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


move to mysql 8 on Catalina jdbc Incorrect DATE value: '??’

2020-11-09 Thread John Pollard via Webobjects-dev
Hello WO list,

I upgraded my Mac to Catalina and found mysql 5 no longer ran, so installed 
mysql 8

I switched to the latest mysql-connector-java-8.0.22.jar

I note the following error when I run an application:

Loading class `com.mysql.jdbc.Driver'. This is deprecated. The new driver class 
is `com.mysql.cj.jdbc.Driver'. The driver is automatically registered via the 
SPI and manual loading of the driver class is generally unnecessary.

My connection dictionary:
URL: 
jdbc:mysql://localhost/BetRankDB?user=root&capitalizeTypeNames=true&useUnicode=true&characterEncoding=UTF-8&sendFractionalSeconds=false
Driver: com.mysql.jdbc.Driver
Plugin: MySQL

I tried removing the Driver, but got the same error message. So I changed 
Driver to com.mysql.cj.jdbc.Driver and that error went away.

However, I get the following exception:

er.transaction.adaptor.Exceptions  - Database Exception occured: Incorrect DATE 
value: '??’at 
com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:129)

at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:97)
at 
com.mysql.cj.jdbc.exceptions.SQLExceptionsMapping.translateException(SQLExceptionsMapping.java:122)
at 
com.mysql.cj.jdbc.ClientPreparedStatement.executeInternal(ClientPreparedStatement.java:953)
at 
com.mysql.cj.jdbc.ClientPreparedStatement.execute(ClientPreparedStatement.java:370)
at 
com.webobjects.jdbcadaptor.JDBCChannel._bindInputVariablesWithBindingsAndExecute(JDBCChannel.java:265)
at 
com.webobjects.jdbcadaptor.JDBCChannel._evaluateExpression(JDBCChannel.java:337)
at 
com.webobjects.jdbcadaptor.JDBCChannel.evaluateExpression(JDBCChannel.java:296)
at com.webobjects.jdbcadaptor.JDBCChannel.selectAttributes(JDBCChannel.java:220)
at 
com.webobjects.eoaccess.EODatabaseChannel._selectWithFetchSpecificationEditingContext(EODatabaseChannel.java:897)
at 
com.webobjects.eoaccess.EODatabaseChannel.selectObjectsWithFetchSpecification(EODatabaseChannel.java:234)
at 
com.webobjects.eoaccess.EODatabaseContext._objectsWithFetchSpecificationEditingContext(EODatabaseContext.java:3055)
at 
com.webobjects.eoaccess.EODatabaseContext.objectsWithFetchSpecification(EODatabaseContext.java:3195)
at 
com.webobjects.eocontrol.EOObjectStoreCoordinator.objectsWithFetchSpecification(EOObjectStoreCoordinator.java:488)
at 
com.webobjects.eocontrol.EOEditingContext.objectsWithFetchSpecification(EOEditingContext.java:4069)
at er.extensions.eof.ERXEC.objectsWithFetchSpecification(ERXEC.java:1308)
at 
com.webobjects.eocontrol.EOEditingContext.objectsWithFetchSpecification(EOEditingContext.java:)

I confess I haven’t updated Wonder code for a very long time, could that be the 
issue?

Many thanks for any pointers.

John
 ___
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: MacOS WebObjects Apache 2.4 Adaptor

2020-05-29 Thread John Pollard via Webobjects-dev
Is there a simple way to determine what version of mod_webobjects.so is 
installed?
I notice my live server has a 2011 dated file! This is on Amazon Linux
My dev box is a Mac and has a 2014 dated mod_webobjects.so
I am not inclined to tinker too much, but thought I would ask!

Hmm, interestingly on my live server I see:
httpd -version
Server version: Apache/2.2.34 (Unix)
Server built:   Nov  1 2017 18:47:16

On my dev box I see:
Server version: Apache/2.4.34 (Unix)
Server built:   Feb 22 2019 20:20:11

Would I be advised to try to get the live server to 2.4?
Again I am reluctant to tinker too much while things are humming along nicely.

Thanks
John

> On 29 May 2020, at 05:39, Dev WO via Webobjects-dev 
>  wrote:
> 
> Hello Mark,
> 
> I think this one is 64b, I’m using it on e Mac mini.
> 
> 
> 
> Xavier
> 
> 
>> On 28 May 2020, at 18:40, Louis M Fisher III via Webobjects-dev 
>> mailto:webobjects-dev@lists.apple.com>> 
>> wrote:
>> 
>> Hi,
>> 
>> Does anyone have a precompiled MacOS Apache 2.4 Adaptor (x86_64 i386) they 
>> would be willing to share?
>> 
>> I would like to look at upgrading some of my legacy WebObjects systems to 
>> something running Apache 2.4 but so far I've been unable to compile the 
>> adaptor.
>> 
>> 
>> 
>> Mark Fisher
>> Chief Technology Officer
>> LoTi Inc.
>> 
>> 
>> 
>> 
>> ___
>> 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/webobjects%40anazys.com
>>  
>> 
>> 
>> This email sent to webobje...@anazys.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/john%40pollardweb.com 
> 
> 
> This email sent to j...@pollardweb.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: Advice on whether to upgrade Eclipse / WOLips from Eclipse Mars 4.5

2019-02-11 Thread John Pollard
Thanks for the warning, no not using that.
My JDK is now 1.8.0.201 and wolips47 installed ok.

> On 11 Feb 2019, at 13:15, Theodore Petrosky  wrote:
> 
> BTW, are you using  DCEVM ?
> 
> it is only available to java .181 though
> 
>  
>> On Feb 11, 2019, at 8:10 AM, John Pollard > <mailto:j...@pollardweb.com>> wrote:
>> 
>> I have now realised the command line is the JDK and the plugin the JRE, have 
>> now installed the JRE to the latest, sorry for the noise on the list.
>> John
>> 
>>> On 11 Feb 2019, at 12:59, John Pollard >> <mailto:j...@pollardweb.com>> wrote:
>>> 
>>> When I download Java from Oracle and install it, the one at the plugin path 
>>> below is the one that is updated, not the version I pick up from the 
>>> command line.
>>> 
>>>> On 11 Feb 2019, at 12:51, Jesse Tayler >>> <mailto:jtay...@oeinc.com>> wrote:
>>>> 
>>>> One of those is for Safari?
>>>> 
>>>> Odd there are two incompatible so I guess you should iron that out, just 
>>>> seems an odd configuration trouble…hmm…
>>>> 
>>>> 
>>>> 
>>>>> On Feb 11, 2019, at 7:46 AM, John Pollard >>>> <mailto:j...@pollardweb.com>> wrote:
>>>>> 
>>>>> Aha, it seems I have some Java version issues.
>>>>> Sys Prefs, Java says I have v201 located at /Library/Internet 
>>>>> Plug-ins/JavaAppletPlugin/plugin/Contents/Home/bin/Java
>>>>> 
>>>>> In the shell
>>>>> which java
>>>>> /usr/bin/java
>>>>> is a link to 
>>>>> /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/java
>>>>> which is the older version and also the one Eclipse is picking up
>>>>> 
>>>>> I will look at resolving the two versions.
>>>>> 
>>>>> Thanks
>>>>> John
>>>>> 
>>>>>> On 11 Feb 2019, at 12:17, Dennis Bliefernicht 
>>>>>> >>>>> <mailto:dennis.blieferni...@xyrality.com>> wrote:
>>>>>> 
>>>>>> Heya,
>>>>>> 
>>>>>>> On 11. Feb 2019, at 12:34, John Pollard >>>>>> <mailto:j...@pollardweb.com>> wrote:
>>>>>>> 
>>>>>>> I installed 2018-12 but on attempting to add WOLips47 I received the 
>>>>>>> following error:
>>>>>>> 
>>>>>>> Unable to read repository at 
>>>>>>> https://jenkins.wocommunity.org/job/WOLips47/lastSuccessfulBuild/artifact/temp/dist/content.xml
>>>>>>>  
>>>>>>> <https://jenkins.wocommunity.org/job/WOLips47/lastSuccessfulBuild/artifact/temp/dist/content.xml>.
>>>>>>> sun.security.validator.ValidatorException: PKIX path building failed: 
>>>>>>> sun.security.provider.certpath.SunCertPathBuilderException: unable to 
>>>>>>> find valid certification path to requested target
>>>>>>> 
>>>>>>> Menu Eclipse -> About Eclipse -> Installation Details -> Configuration
>>>>>>> java.runtime.version=1.8.0_60-b27
>>>>>>> which I believe is up to date on my Mac
>>>>>>> 
>>>>>>> Any pointers to working round this?
>>>>>> 
>>>>>> Probably this is the Java version (1.8.0_60 seems to be from autumn 
>>>>>> 2015); The JDK only included the required root certificates to accept 
>>>>>> Let's Encrypt certificates (which jenkins.wocommunity.org 
>>>>>> <http://jenkins.wocommunity.org/> uses) in 1.8.0_101 (mid 2016) so you 
>>>>>> either need to update the JDK/JRE (probably just the latest Java 8 
>>>>>> version) you use for running eclipse or you need to add the required 
>>>>>> root certificates manually to the trust store of the installed JRE.
>>>>>> 
>>>>>> Greetings
>>>>>> Dennis
>>>>>> 
>>>>>> --
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> -
>>>>>> Dennis Bliefernicht • Head of Backend Development
>>>>>> T +49 40 357 3001 62
>>>

Re: Advice on whether to upgrade Eclipse / WOLips from Eclipse Mars 4.5

2019-02-11 Thread John Pollard
I have now realised the command line is the JDK and the plugin the JRE, have 
now installed the JRE to the latest, sorry for the noise on the list.
John

> On 11 Feb 2019, at 12:59, John Pollard  wrote:
> 
> When I download Java from Oracle and install it, the one at the plugin path 
> below is the one that is updated, not the version I pick up from the command 
> line.
> 
>> On 11 Feb 2019, at 12:51, Jesse Tayler > <mailto:jtay...@oeinc.com>> wrote:
>> 
>> One of those is for Safari?
>> 
>> Odd there are two incompatible so I guess you should iron that out, just 
>> seems an odd configuration trouble…hmm…
>> 
>> 
>> 
>>> On Feb 11, 2019, at 7:46 AM, John Pollard >> <mailto:j...@pollardweb.com>> wrote:
>>> 
>>> Aha, it seems I have some Java version issues.
>>> Sys Prefs, Java says I have v201 located at /Library/Internet 
>>> Plug-ins/JavaAppletPlugin/plugin/Contents/Home/bin/Java
>>> 
>>> In the shell
>>> which java
>>> /usr/bin/java
>>> is a link to 
>>> /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/java
>>> which is the older version and also the one Eclipse is picking up
>>> 
>>> I will look at resolving the two versions.
>>> 
>>> Thanks
>>> John
>>> 
>>>> On 11 Feb 2019, at 12:17, Dennis Bliefernicht 
>>>> >>> <mailto:dennis.blieferni...@xyrality.com>> wrote:
>>>> 
>>>> Heya,
>>>> 
>>>>> On 11. Feb 2019, at 12:34, John Pollard >>>> <mailto:j...@pollardweb.com>> wrote:
>>>>> 
>>>>> I installed 2018-12 but on attempting to add WOLips47 I received the 
>>>>> following error:
>>>>> 
>>>>> Unable to read repository at 
>>>>> https://jenkins.wocommunity.org/job/WOLips47/lastSuccessfulBuild/artifact/temp/dist/content.xml
>>>>>  
>>>>> <https://jenkins.wocommunity.org/job/WOLips47/lastSuccessfulBuild/artifact/temp/dist/content.xml>.
>>>>> sun.security.validator.ValidatorException: PKIX path building failed: 
>>>>> sun.security.provider.certpath.SunCertPathBuilderException: unable to 
>>>>> find valid certification path to requested target
>>>>> 
>>>>> Menu Eclipse -> About Eclipse -> Installation Details -> Configuration
>>>>> java.runtime.version=1.8.0_60-b27
>>>>> which I believe is up to date on my Mac
>>>>> 
>>>>> Any pointers to working round this?
>>>> 
>>>> Probably this is the Java version (1.8.0_60 seems to be from autumn 2015); 
>>>> The JDK only included the required root certificates to accept Let's 
>>>> Encrypt certificates (which jenkins.wocommunity.org 
>>>> <http://jenkins.wocommunity.org/> uses) in 1.8.0_101 (mid 2016) so you 
>>>> either need to update the JDK/JRE (probably just the latest Java 8 
>>>> version) you use for running eclipse or you need to add the required root 
>>>> certificates manually to the trust store of the installed JRE.
>>>> 
>>>> Greetings
>>>> Dennis
>>>> 
>>>> --
>>>> 
>>>> 
>>>> 
>>>> 
>>>> 
>>>> 
>>>> -
>>>> Dennis Bliefernicht • Head of Backend Development
>>>> T +49 40 357 3001 62
>>>> dennis.blieferni...@xyrality.com <mailto:dennis.blieferni...@xyrality.com>
>>>> 
>>>> XYRALITY GmbH • Friedensallee 290 • 22763 Hamburg
>>>> www.xyrality.com <http://www.xyrality.com/>
>>>> Registergericht: Hamburg HRB 115332
>>>> Geschäftsführer: Sven Ossenbrüggen
>>>> -
>>>> 
>>> 
>>> ___
>>> 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/jtayler%40oeinc.com 
>>> <https://lists.apple.com/mailman/options/webobjects-dev/jtayler%40oeinc.com>
>>> 
>>> This email sent to jtay...@oeinc.com <mailto:jtay...@oeinc.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/john%40pollardweb.com
> 
> This email sent to j...@pollardweb.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: Advice on whether to upgrade Eclipse / WOLips from Eclipse Mars 4.5

2019-02-11 Thread John Pollard
When I download Java from Oracle and install it, the one at the plugin path 
below is the one that is updated, not the version I pick up from the command 
line.

> On 11 Feb 2019, at 12:51, Jesse Tayler  wrote:
> 
> One of those is for Safari?
> 
> Odd there are two incompatible so I guess you should iron that out, just 
> seems an odd configuration trouble…hmm…
> 
> 
> 
>> On Feb 11, 2019, at 7:46 AM, John Pollard > <mailto:j...@pollardweb.com>> wrote:
>> 
>> Aha, it seems I have some Java version issues.
>> Sys Prefs, Java says I have v201 located at /Library/Internet 
>> Plug-ins/JavaAppletPlugin/plugin/Contents/Home/bin/Java
>> 
>> In the shell
>> which java
>> /usr/bin/java
>> is a link to 
>> /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/java
>> which is the older version and also the one Eclipse is picking up
>> 
>> I will look at resolving the two versions.
>> 
>> Thanks
>> John
>> 
>>> On 11 Feb 2019, at 12:17, Dennis Bliefernicht 
>>> >> <mailto:dennis.blieferni...@xyrality.com>> wrote:
>>> 
>>> Heya,
>>> 
>>>> On 11. Feb 2019, at 12:34, John Pollard >>> <mailto:j...@pollardweb.com>> wrote:
>>>> 
>>>> I installed 2018-12 but on attempting to add WOLips47 I received the 
>>>> following error:
>>>> 
>>>> Unable to read repository at 
>>>> https://jenkins.wocommunity.org/job/WOLips47/lastSuccessfulBuild/artifact/temp/dist/content.xml
>>>>  
>>>> <https://jenkins.wocommunity.org/job/WOLips47/lastSuccessfulBuild/artifact/temp/dist/content.xml>.
>>>> sun.security.validator.ValidatorException: PKIX path building failed: 
>>>> sun.security.provider.certpath.SunCertPathBuilderException: unable to find 
>>>> valid certification path to requested target
>>>> 
>>>> Menu Eclipse -> About Eclipse -> Installation Details -> Configuration
>>>> java.runtime.version=1.8.0_60-b27
>>>> which I believe is up to date on my Mac
>>>> 
>>>> Any pointers to working round this?
>>> 
>>> Probably this is the Java version (1.8.0_60 seems to be from autumn 2015); 
>>> The JDK only included the required root certificates to accept Let's 
>>> Encrypt certificates (which jenkins.wocommunity.org 
>>> <http://jenkins.wocommunity.org/> uses) in 1.8.0_101 (mid 2016) so you 
>>> either need to update the JDK/JRE (probably just the latest Java 8 version) 
>>> you use for running eclipse or you need to add the required root 
>>> certificates manually to the trust store of the installed JRE.
>>> 
>>> Greetings
>>> Dennis
>>> 
>>> --
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> -
>>> Dennis Bliefernicht • Head of Backend Development
>>> T +49 40 357 3001 62
>>> dennis.blieferni...@xyrality.com <mailto:dennis.blieferni...@xyrality.com>
>>> 
>>> XYRALITY GmbH • Friedensallee 290 • 22763 Hamburg
>>> www.xyrality.com <http://www.xyrality.com/>
>>> Registergericht: Hamburg HRB 115332
>>> Geschäftsführer: Sven Ossenbrüggen
>>> -
>>> 
>> 
>> ___
>> 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/jtayler%40oeinc.com 
>> <https://lists.apple.com/mailman/options/webobjects-dev/jtayler%40oeinc.com>
>> 
>> This email sent to jtay...@oeinc.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: Advice on whether to upgrade Eclipse / WOLips from Eclipse Mars 4.5

2019-02-11 Thread John Pollard
Aha, it seems I have some Java version issues.
Sys Prefs, Java says I have v201 located at /Library/Internet 
Plug-ins/JavaAppletPlugin/plugin/Contents/Home/bin/Java

In the shell
which java
/usr/bin/java
is a link to 
/System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/java
which is the older version and also the one Eclipse is picking up

I will look at resolving the two versions.

Thanks
John

> On 11 Feb 2019, at 12:17, Dennis Bliefernicht 
>  wrote:
> 
> Heya,
> 
>> On 11. Feb 2019, at 12:34, John Pollard > <mailto:j...@pollardweb.com>> wrote:
>> 
>> I installed 2018-12 but on attempting to add WOLips47 I received the 
>> following error:
>> 
>> Unable to read repository at 
>> https://jenkins.wocommunity.org/job/WOLips47/lastSuccessfulBuild/artifact/temp/dist/content.xml
>>  
>> <https://jenkins.wocommunity.org/job/WOLips47/lastSuccessfulBuild/artifact/temp/dist/content.xml>.
>> sun.security.validator.ValidatorException: PKIX path building failed: 
>> sun.security.provider.certpath.SunCertPathBuilderException: unable to find 
>> valid certification path to requested target
>> 
>> Menu Eclipse -> About Eclipse -> Installation Details -> Configuration
>> java.runtime.version=1.8.0_60-b27
>> which I believe is up to date on my Mac
>> 
>> Any pointers to working round this?
> 
> Probably this is the Java version (1.8.0_60 seems to be from autumn 2015); 
> The JDK only included the required root certificates to accept Let's Encrypt 
> certificates (which jenkins.wocommunity.org <http://jenkins.wocommunity.org/> 
> uses) in 1.8.0_101 (mid 2016) so you either need to update the JDK/JRE 
> (probably just the latest Java 8 version) you use for running eclipse or you 
> need to add the required root certificates manually to the trust store of the 
> installed JRE.
> 
> Greetings
> Dennis
> 
> --
> 
> 
> 
> 
> 
> 
> -
> Dennis Bliefernicht • Head of Backend Development
> T +49 40 357 3001 62
> dennis.blieferni...@xyrality.com <mailto:dennis.blieferni...@xyrality.com>
> 
> XYRALITY GmbH • Friedensallee 290 • 22763 Hamburg
> www.xyrality.com <http://www.xyrality.com/>
> Registergericht: Hamburg HRB 115332
> Geschäftsführer: Sven Ossenbrüggen
> -
> 

 ___
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: Advice on whether to upgrade Eclipse / WOLips from Eclipse Mars 4.5

2019-02-11 Thread John Pollard
I installed 2018-12 but on attempting to add WOLips47 I received the following 
error:

Unable to read repository at 
https://jenkins.wocommunity.org/job/WOLips47/lastSuccessfulBuild/artifact/temp/dist/content.xml.
sun.security.validator.ValidatorException: PKIX path building failed: 
sun.security.provider.certpath.SunCertPathBuilderException: unable to find 
valid certification path to requested target

Menu Eclipse -> About Eclipse -> Installation Details -> Configuration
java.runtime.version=1.8.0_60-b27
which I believe is up to date on my Mac

Any pointers to working round this?

Thanks
John

> On 9 Feb 2019, at 10:32, Paul Hoadley  wrote:
> 
> Hi Samuel,
> 
> On 9 Feb 2019, at 5:11 am, Samuel Pelletier  > wrote:
> 
>> I just installed 2018-12 and it seems faster than 4.7. I have only one 
>> problem to date, the "Add Key" function in the component editor no longer 
>> works for me. I see the dialog, specify the type and click "Add" as usual. 
>> The source editor come to front but the key is not added.
>> 
>> Adding an action still work though.
>> 
>> Are you experiencing the same problem ?
> 
> Yes. I can reproduce that. What a shame, that's a handy feature.
> 
> 
> -- 
> 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/john%40pollardweb.com
> 
> This email sent to j...@pollardweb.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: Advice on whether to upgrade Eclipse / WOLips from Eclipse Mars 4.5

2019-02-07 Thread John Pollard
Thanks to all for this torrent of great replies and it sounds like I will try 
the very latest then, the 2018-12
I do use EOModeler so assume that will work fine too.
Gordon, I do have my own notes from my Sep 2015, but if your notes are handy 
I’d appreciate those too being a lot more recent.
John

> On 5 Feb 2019, at 15:42, Gordon Belray  wrote:
> 
> HI John,
> 
> I’m on Eclipse 4.7 with WO and it’s working fine. 
> 
> I can share my notes on the setup if you need them.
> 
> Regards,
> Gordon
> 
> Gordon Belray
> Information Architect
> University of Toronto Libraries
> gordon.bel...@utoronto.ca <mailto:gordon.bel...@utoronto.ca>
> 647-700-7402
> 
>> On Feb 5, 2019, at 10:17 AM, Aaron Rosenzweig > <mailto:aa...@chatnbike.com>> wrote:
>> 
>> Hi John, I’m on Eclipse 4.6 and it is ok. I have not tried 4.7 with WO. 
>> 
>> Newer Eclipse can sometimes bring better debugging and general Java goodness 
>> but other than that… 
>> 
>> If you are reasonably happy, I wouldn’t switch. 
>> 
>> I guess for giggles and grins you could try out 4.7 and see how it goes. 
>> AARON ROSENZWEIG / Chat 'n Bike 
>> <https://ving.apple.com/proxy?t2=dE0W8n0x5N&o=http%3A%2F%2Fwww.chatnbike.com>
>> e:  aa...@chatnbike.com <mailto:aa...@chatnbike.com>  t:  (301) 956-2319 
>>  
>> 
>>> On Feb 5, 2019, at 5:08 AM, John Pollard >> <mailto:j...@pollardweb.com>> wrote:
>>> 
>>> Hi list,
>>> 
>>> My last update of Eclipse/WOLips was in 2015 and I am on Eclipse Mars 4.5.2 
>>> + wolips / subclipse and all works fine.
>>> 
>>> Should I move up (to Eclipse/WOLips 4.7?) or not much reason to do so?
>>> 
>>> Many thanks for your advice,
>>> 
>>> John
>>> ___
>>> 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/aaron%40chatnbike.com
>>>  
>>> <https://lists.apple.com/mailman/options/webobjects-dev/aaron%40chatnbike.com>
>>> 
>>> This email sent to aa...@chatnbike.com <mailto:aa...@chatnbike.com>
>> 
>> ___
>> 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/gordon.belray%40utoronto.ca
>>  
>> <https://lists.apple.com/mailman/options/webobjects-dev/gordon.belray%40utoronto.ca>
>> 
>> This email sent to gordon.bel...@utoronto.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/archive%40mail-archive.com

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


Advice on whether to upgrade Eclipse / WOLips from Eclipse Mars 4.5

2019-02-05 Thread John Pollard
Hi list,

My last update of Eclipse/WOLips was in 2015 and I am on Eclipse Mars 4.5.2 + 
wolips / subclipse and all works fine.

Should I move up (to Eclipse/WOLips 4.7?) or not much reason to do so?

Many thanks for your advice,

John
 ___
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: JavaMonitor to start a blocking application?

2018-10-09 Thread John Pollard
Thanks all for replies.
Giles Palmer also recommended ScheduledExecutorService directly so I have good 
options to look at.
I realise I don’t need to use JavaMonitor, but it keeps things managed in one 
place.
Thanks
John

> On 9 Oct 2018, at 15:26, Klaus Berkling  wrote:
> 
> Yes. Wonder has Quartz.  Works nicely handling monthly billing and user 
> reminder emails.  
> 
> Sent from my phone. 
> 
>> On Oct 9, 2018, at 06:35, Paul Yu  wrote:
>> 
>> John
>> 
>> Have you looked are Quartz?  I don’t remember if Wonder has that framework 
>> or not.  
>> 
>> Paul
>> 
>>> On Oct 9, 2018, at 6:41 AM, John Pollard  wrote:
>>> 
>>> Hello WOers,
>>> I use JavaMonitor for a number of web apps just fine.
>>> I have another app that is a WO app but it isn’t an event driven web app; 
>>> when it runs is just gets on with a never ending task.
>>> Is there an easy way to use JavaMonitor to just start this when the machine 
>>> first boots up, but not try to check it is still alive (no heartbeats)?
>>> This would be a bit easier than using cron for me.
>>> I suppose ideally I would like the app to be responsive to JavaMonitor so 
>>> it can be shown to be alive / be killed & restarted, whilst also doing its 
>>> never ending task. Is it possible to do this with a background thread in my 
>>> ERXApplication class or will that now work nicely with EOF etc.
>>> Thanks
>>> John
>>> ___
>>> 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/webobjects%40berkling.us
>> 
>> This email sent to webobje...@berkling.us

 ___
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


JavaMonitor to start a blocking application?

2018-10-09 Thread John Pollard
Hello WOers,
I use JavaMonitor for a number of web apps just fine.
I have another app that is a WO app but it isn’t an event driven web app; when 
it runs is just gets on with a never ending task.
Is there an easy way to use JavaMonitor to just start this when the machine 
first boots up, but not try to check it is still alive (no heartbeats)?
This would be a bit easier than using cron for me.
I suppose ideally I would like the app to be responsive to JavaMonitor so it 
can be shown to be alive / be killed & restarted, whilst also doing its never 
ending task. Is it possible to do this with a background thread in my 
ERXApplication class or will that now work nicely with EOF etc.
Thanks
John
 ___
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


Eclipse WOLips System Frameworks setting not picked up

2015-09-21 Thread John Pollard
Hi List,

If I set build.properties in my project, the WO frameworks are found ok when I 
do a WOLips Install

but if I instead set it in Eclipse, Preferences, WOLips, System Frameworks

the frameworks are not found when I do WOLips Install

A command line ANT build works ok where I pass -Dwo.system.frameworks=…...

I recently moved to Eclipse Mars and wolips44

Why might the WOLips System Frameworks preference not be picked up?

Thanks
John
 ___
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

ERDistribution

2015-09-15 Thread John Pollard
Can anyone say what ERDistribution adds and whether it should be used as a drop 
in replacement for EODistribution for Java Client apps? Is there any 
documentation around it, the wodev list seems to draw a blank on this topic. I 
currently use EODistribution.

I spotted it only because after updating my copy of Wonder, the only error I 
see relates to ERDistribution, JavaClient WO saying: Either one of 
'applicationClassName' or 'interfaceControllerClassName' should be bound. If 
anyone can explain why that error is present, that would also be of interest.

Many thanks,
John



 ___
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 git update

2015-09-15 Thread John Pollard
Just to add… I have no local changes to preserve, I just want to take a 
snapshot.
I think this might do it?

git fetch —all
git reset —hard origin/master

> On 15 Sep 2015, at 11:43, John Pollard  wrote:
> 
> Hi List,
> 
> I would like to grab the latest WonderSource, last grabbed Feb 2013.
> I can see how to clone the WonderSource tree and pull the bits I need into 
> Eclipse.
> 
> Should I repeat and clone the whole tree or can I update my fairly old 
> WonderSource tree it in situ?
> 
> I have a note that this used to do it:
> 
> cd WonderSource
> git fetch upstream
> git merge upstream/integration
> 
> though I suspect that is no longer correct.
> 
> Thanks
> John
> ___
> 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/john%40pollardweb.com
> 
> This email sent to j...@pollardweb.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

Wonder git update

2015-09-15 Thread John Pollard
Hi List,

I would like to grab the latest WonderSource, last grabbed Feb 2013.
I can see how to clone the WonderSource tree and pull the bits I need into 
Eclipse.

Should I repeat and clone the whole tree or can I update my fairly old 
WonderSource tree it in situ?

I have a note that this used to do it:

cd WonderSource
git fetch upstream
git merge upstream/integration

though I suspect that is no longer correct.

Thanks
John
 ___
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: Eclipse recommended version for latest wolips and wonder

2015-09-14 Thread John Pollard
Answering my own question, this page sheds more light: 
https://wiki.wocommunity.org/display/WOL/Install+WOLips+with+Eclipse+Update+Manager
 and I see Eclipse 4.4 is the latest supported by wolips (though I actually 
have gone with Eclipse 4.5).

> On 14 Sep 2015, at 11:29, John Pollard  wrote:
> 
> I am updating from Eclipse 3.7 Indigo in order to move from Java 6 to Java 8. 
> The Wonder install guidelines are a bit out of date, assuming I am looking in 
> the right place: 
> https://wiki.wocommunity.org/display/WEB/Project+Wonder+Installation
> 
> Should I get “Eclipse IDE for Java Developers” version 4.5 for Mac OS X?
> 
> Many thanks
> John
> 
> 
> ___
> 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/john%40pollardweb.com
> 
> This email sent to j...@pollardweb.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

Eclipse recommended version for latest wolips and wonder

2015-09-14 Thread John Pollard
I am updating from Eclipse 3.7 Indigo in order to move from Java 6 to Java 8. 
The Wonder install guidelines are a bit out of date, assuming I am looking in 
the right place: 
https://wiki.wocommunity.org/display/WEB/Project+Wonder+Installation

Should I get “Eclipse IDE for Java Developers” version 4.5 for Mac OS X?

Many thanks
John


 ___
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: Values in URL for WOCheckBox?

2015-03-17 Thread John Pollard
Thanks Chuck,

What I have is:

nextOptionalExtraCheckBox: WOCheckBox {
checked = isNextOptionalExtraSelected;
name = getNextOptionalExtraCheckBoxName;
}

If I add value = true; I get an error:

- exactly one of “checked” or “value” must be bound.

I am struggling to juggle a combination of settings that starts with unchecked 
boxes and puts any checked ones to a value of 1/true.
As I say though it doesn’t actually matter as unchecked ones don’t get passed 
in the DA call, so I just detect presence.

John

> On 13 Mar 2015, at 17:18, Chuck Hill  wrote:
> 
> Hi John,
> 
> It has been a while, but I think you want to bind
> value = true;
> 
> value
> Value of this input element. If not specified, WebObjects provides a default 
> value.
> 
> 
> Chuck
> 
> 
> On 2015-03-13, 3:27 AM, "John Pollard" wrote:
> 
> Hi List,
> 
> I have a direct action method called from a form submission, where the form 
> includes WOCheckBox. I note that if the check boxes start unselected, then 
> any that are selected prior to the form submission appear in the direct 
> action url like this:
> 
> si_218515=0.0.23.5.1.20.0.6.5.1.5.7.1.1.1
> 
> Where si_218515 is the name I assigned to the WOCheckBox
> 
> I would have expected a value of true/false or 1/0. What am I actually 
> getting with 0.0.23.5.1.20.0.6.5.1.5.7.1.1.1 and can I change it to be 
> something shorter, as all I care about is whether a check box is selected.
> 
> In fact I can work on the presence or absence of any value as unchecked boxes 
> are omitted, but it would be nice to shorten the url and ideally have a true 
> or false.
> 
> Thanks
> John
> 
> 
> ___
> 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/chill%40gevityinc.com 
> <https://lists.apple.com/mailman/options/webobjects-dev/chill%40gevityinc.com>
> 
> This email sent to ch...@gevityinc.com <mailto: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/archive%40mail-archive.com

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

Values in URL for WOCheckBox?

2015-03-13 Thread John Pollard
Hi List,

I have a direct action method called from a form submission, where the form 
includes WOCheckBox. I note that if the check boxes start unselected, then any 
that are selected prior to the form submission appear in the direct action url 
like this:

si_218515=0.0.23.5.1.20.0.6.5.1.5.7.1.1.1

Where si_218515 is the name I assigned to the WOCheckBox

I would have expected a value of true/false or 1/0. What am I actually getting 
with 0.0.23.5.1.20.0.6.5.1.5.7.1.1.1 and can I change it to be something 
shorter, as all I care about is whether a check box is selected.

In fact I can work on the presence or absence of any value as unchecked boxes 
are omitted, but it would be nice to shorten the url and ideally have a true or 
false.

Thanks
John


 ___
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: Canonical links and instance number in urls

2014-11-28 Thread John Pollard
Just as a follow up, we have ended up putting the canonical url on every page, 
which apparently isn’t a terrible thing to do: 
http://moz.com/blog/rel-confused-answers-to-your-rel-canonical-questions 
<http://moz.com/blog/rel-confused-answers-to-your-rel-canonical-questions>

If there is a way to know what exact original url was in the users browser 
within the app, before the (presumably) wo adaptor adds in or changes and 
instance number before /wa/ then I would love to know. I expect we must be 
doing something wrong somewhere for google to be getting hold of a url with an 
instance number in the url in the first place.

John

> On 27 Nov 2014, at 14:17, John Pollard  wrote:
> 
> Hi René, actually the app does use cookies, though the majority of requests 
> are direct actions. There is actually no session for the example problem I 
> have.
> John
> 
>> On 27 Nov 2014, at 12:18, René Bock > <mailto:b...@salient.de>> wrote:
>> 
>> Hi John,
>> 
>> one alternative would be to store the instanceId and sessionId) in coockie;
>> 
>> in our Application I override createSessionForRequest
>> 
>> 
>>  @Override
>>  public WOSession createSessionForRequest(WORequest worequest) {
>>  WOSession session = super.createSessionForRequest(worequest);
>> 
>>  if (!isDevelopmentMode()) {
>>  session.setStoresIDsInCookies(true);
>>  session.setStoresIDsInURLs(false);
>>  }
>> 
>>  return session;
>> 
>>  }
>> 
>> 
>> 
>> 
>> Am 27.11.2014 um 11:46 schrieb John Pollard > <mailto:j...@pollardweb.com>>:
>> 
>>> Hi List,
>>> 
>>> We have a possible issue on our web sites with google thinking we have 
>>> duplicate content because the following reach the same page:
>>> 
>>> /5/wa/
>>> /wa/...
>>> 
>>> I am not quite sure where google gets the links containing instance 
>>> numbers, but we would be ok with it if we could include a canonical link 
>>> instruction in the page head, to give the correct url.
>>> 
>>> I don't want to include the canonical link in the head if the url is 
>>> correct already, in the second case above. Perhaps this is allowed but it 
>>> doesn't seem very nice, I would prefer only to give such a link when I know 
>>> the url seen in the browser isn't the canonical one.
>>> 
>>> But I am struggling to know within the application what actually was the 
>>> original url seen in the user's browser.
>>> 
>>> When I log out request.uri() I *always* see the instance number in the url, 
>>> e.g. .../1/wa/... (for either of the above examples) which is ok, but it 
>>> means I can't tell whether the real original url seen in the browser is the 
>>> canonical form or not (the one without the instance number).
>>> 
>>> Help!
>>> 
>>> John
>>> 
>>> 
>>> ___
>>> 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/bock%40salient.de 
>>> <https://lists.apple.com/mailman/options/webobjects-dev/bock%40salient.de>
>>> 
>>> This email sent to b...@salient.de <mailto:b...@salient.de>
>> 
>> Mit freundlichem Gruß,
>> 
>> René Bock
>> Software Engineering
>> 
>> --
>> salient doremus
>> 
>> salient GmbH
>> Kontorhaus -  Lindleystraße 12
>> 60314 Frankfurt Main
>> 
>> Fon +49 (0)69 - 650096 -0, Durchwahl: - 18, Fax: -70
>> 
>> http://www.salient.de <http://www.salient.de/>
>> http://www.doremus.com <http://www.doremus.com/>
>> http://www.openforms.de
>> http://www.mockabilly.com 
>> 
>> Geschäftsführer: Peter Biler, Alexander Gerling, Lars Ohlerich
>> Amtsgericht Frankfurt Main, HRB 48693
>> 
>> // salient doremus gewinnt mit fsb.de den Red Dot Design Award 2013
>> 
> 
> ___
> 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/john%40pollardweb.com
> 
> This email sent to j...@pollardweb.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: Canonical links and instance number in urls

2014-11-27 Thread John Pollard
Hi René, actually the app does use cookies, though the majority of requests are 
direct actions. There is actually no session for the example problem I have.
John

> On 27 Nov 2014, at 12:18, René Bock  wrote:
> 
> Hi John,
> 
> one alternative would be to store the instanceId and sessionId) in coockie;
> 
> in our Application I override createSessionForRequest
> 
> 
>   @Override
>   public WOSession createSessionForRequest(WORequest worequest) {
>   WOSession session = super.createSessionForRequest(worequest);
> 
>   if (!isDevelopmentMode()) {
>   session.setStoresIDsInCookies(true);
>   session.setStoresIDsInURLs(false);
>   }
> 
>   return session;
> 
>   }
> 
> 
> 
> 
> Am 27.11.2014 um 11:46 schrieb John Pollard  <mailto:j...@pollardweb.com>>:
> 
>> Hi List,
>> 
>> We have a possible issue on our web sites with google thinking we have 
>> duplicate content because the following reach the same page:
>> 
>> /5/wa/
>> /wa/...
>> 
>> I am not quite sure where google gets the links containing instance numbers, 
>> but we would be ok with it if we could include a canonical link instruction 
>> in the page head, to give the correct url.
>> 
>> I don't want to include the canonical link in the head if the url is correct 
>> already, in the second case above. Perhaps this is allowed but it doesn't 
>> seem very nice, I would prefer only to give such a link when I know the url 
>> seen in the browser isn't the canonical one.
>> 
>> But I am struggling to know within the application what actually was the 
>> original url seen in the user's browser.
>> 
>> When I log out request.uri() I *always* see the instance number in the url, 
>> e.g. .../1/wa/... (for either of the above examples) which is ok, but it 
>> means I can't tell whether the real original url seen in the browser is the 
>> canonical form or not (the one without the instance number).
>> 
>> Help!
>> 
>> John
>> 
>> 
>> ___
>> 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/bock%40salient.de 
>> <https://lists.apple.com/mailman/options/webobjects-dev/bock%40salient.de>
>> 
>> This email sent to b...@salient.de
> 
> 
> Mit freundlichem Gruß,
> 
> René Bock
> Software Engineering
> 
> --
> salient doremus
> 
> salient GmbH
> Kontorhaus -  Lindleystraße 12
> 60314 Frankfurt Main
> 
> Fon +49 (0)69 - 650096 -0, Durchwahl: - 18, Fax: -70
> 
> http://www.salient.de <http://www.salient.de/>
> http://www.doremus.com
> http://www.openforms.de
> http://www.mockabilly.com 
> 
> Geschäftsführer: Peter Biler, Alexander Gerling, Lars Ohlerich
> Amtsgericht Frankfurt Main, HRB 48693
> 
> // salient doremus gewinnt mit fsb.de den Red Dot Design Award 2013
> 

 ___
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

Canonical links and instance number in urls

2014-11-27 Thread John Pollard
Hi List,

We have a possible issue on our web sites with google thinking we have 
duplicate content because the following reach the same page:

/5/wa/
/wa/...

I am not quite sure where google gets the links containing instance numbers, 
but we would be ok with it if we could include a canonical link instruction in 
the page head, to give the correct url.

I don't want to include the canonical link in the head if the url is correct 
already, in the second case above. Perhaps this is allowed but it doesn't seem 
very nice, I would prefer only to give such a link when I know the url seen in 
the browser isn't the canonical one.

But I am struggling to know within the application what actually was the 
original url seen in the user's browser.

When I log out request.uri() I *always* see the instance number in the url, 
e.g. .../1/wa/... (for either of the above examples) which is ok, but it means 
I can't tell whether the real original url seen in the browser is the canonical 
form or not (the one without the instance number).

Help!

John

 
 ___
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: Java Certificates applying to WebObjects

2014-11-20 Thread John Pollard
Bart,

Very sorry for the slow reply, here are some notes I made when I did this with 
an Inrax Client java application. I found that it worked ok using IE on windows 
(for me I had a copy of Win XP on VMware fusion on my Mac which I used). I 
think I have mangled all the private bits!

Renewing with Tucows. 3yr,  $195 Use IE on Win XP (as described below)
By email they told me:

The process for renewing your code signing certificate with Comodo is the same 
as when you first purchased with us. Simply sign into your Author Resource 
Center account at https://author.tucows.com/ then look to the the left where 
you'll find a link that says Code Signing Certificates. There, you can choose 
the length of your certificate and proceed to purchase. The expiration date 
will coincide with the date of your new purchase; the remaining days do not 
roll over. Take into consideration that it can take a few business days for 
Comodo to complete the validation process once you have provided your 
information.

Process: 
http://revolution.screenstepslive.com/s/revolution/m/10695/l/92953-purchasing-a-code-signing-certificate-for-windows-from-tucows

Questions on the cert. page:
(Optional) Enter the Contact Email Address to appear in your Certificate: 
supp...@inrax.com
I kept the default values for the rest:
CSP: Microsoft Enhanced Cryptography Provider 1.0
Key Size: 2048
Key Storage: In the CSP?
Exportable: yes
User protected: no

On Next, the IE browser pops up a message that say it is requesting a 
certificate for me, Agree
I then entered my first and last name and agreed to the licence agreement
Then: "Your details have been received and are awaiting validation...

Now wait until Comodo approve the certificate request before the certificate 
can be retrieved and signed

I had to email a bank statement to d...@comodo.com and you can also email that 
address to check on progress. They then email me a link like 
https://secure.comodo.net/products/CollectCodeSigningCert?collectionCode=T3OcK3XXX
 [DO ON IE AGAIN] which pops up a window about installing a certificate, agree 
to that.

Again, do the next step from IE on Win XP to save a lot of trouble and then 
once installed in IE browser, export from there and use the resulting file 
which is a .pfx (type of keystore), see
https://support.comodo.com/index.php?_m=knowledgebase&_a=viewarticle&kbarticleid=225
Based on this web page:
In IE, Tools, Internet Options, Content, Certificates
Select the certificate in the list and Export...
Next, Yes Export the Private Key
PFX type and tick only "Include all certificates in the certificate path if 
possible"
Add a password to protect the key

View the keystone file content:

keytool -list -storetype pkcs12 -keystore file.pfx

Keystore type: PKCS12
Keystore provider: SunJSSE

Your keystore contains 1 entry

824ae68d8b5-20e8-4320-9751-fabea7c3665f, Dec 3, 2013, 
PrivateKeyEntry, 
Certificate fingerprint (MD5): C6:BC:4A:71:6C:AA:FE:C5:3E:9D:0E:D8:X

The comodoKS.pfx file is then put on dev box under mpl/security and on 
deployment boxes under /Users/admin/wo and the signJar script in that directory 
must be updated to have the mangled string that is seen within the keystore 
listing, viewed as described above.

Alter signJar to refer to the correct new cert. keystore file and then 
signAllJarsComodo

My signJar script is passed the name of each jar file that needs signing (all 
of them including 3rd party ones) contains:

echo YOUR_PASSWORD | jarsigner -storetype pkcs12 -keystore 
./comodoKS_20161202.pfx $1 
824a7beccad581_5c84d8b5-20e8-4320-9751-fabea7c3665f

where you change YOUR_PASSWORD and $1 is the jar file passed to the script as a 
single argument and the last bit is your private key

I hope that helps
John

> On 7 Nov 2014, at 21:25, jazzsalsa  wrote:
> 
> Hi list, John,
> 
> I would be interested to know how to use Java certificates in Webobjects 
> applications.Can you send the procedure to the list?
> 
> Thanks, Bart
> 
> 
>> On 7 Nov 2014, at 14:30, webobjects-dev-requ...@lists.apple.com wrote:
>> 
>> Send Webobjects-dev mailing list submissions to
>>  webobjects-dev@lists.apple.com
>> 
>> To subscribe or unsubscribe via the World Wide Web, visit
>>  https://lists.apple.com/mailman/listinfo/webobjects-dev
>> or, via email, send a message with subject or body 'help' to
>>  webobjects-dev-requ...@lists.apple.com
>> 
>> You can reach the person managing the list at
>>  webobjects-dev-ow...@lists.apple.com
>> 
>> When replying, please edit your Subject line so it is more specific
>> than "Re: Contents of Webobjects-dev digest..."
>> 
>> 
>> Today's Topics:
>> 
>>  1. Re: displaying an uploaded swf (Paul Hoadley)
>>  2. Re: displaying an uploaded swf (Theodore Pe

Re: Java Certificates applying to WebObjects

2014-11-07 Thread John Pollard
Daniel,

If this is a Java Code Signing certificate, we use Tucows 
https://author.tucows.com/ to buy a Comodo certificate which cost $195 for a 3 
year renewal last time round. If you need more info, let me know and feel free 
to email off list on this one.

John

> On 5 Nov 2014, at 16:41, Beatty, Daniel D CIV NAVAIR, 474300D 
>  wrote:
> 
> Greetings gang,
> Has any of you had any experience with a client that need a certificate for 
> WebObjects to tell the JRE that it is safe to run?It seems that I have 
> some requirements coming down saying that side from the certificate for the 
> web site (HTTPS) itself, there also needs to be a certificate for the JRE, 
> similar to Apple's developer certificate with its sandbox technology.  
> 
> If so, does anyone have a procedure that we can follow.
> 
> V/R,
> Daniel Beatty, Ph.D., 
> IEEE Certified Software Development Professional (CSDP)
> Computer Scientist
> Code 474300D
> 1 Administration Circle. M/S 1109
> China Lake, CA 93555
> daniel.bea...@navy.mil
> (760)939-7097 
> 
> ___
> 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/john%40pollardweb.com
> 
> This email sent to j...@pollardweb.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: Precompiled WOAdaptor for apache 2.4

2014-11-06 Thread John Pollard
ause Patrick said FastCGI wouldn't build. But when I did the "gnumake 
> Apache2.4", I got this (unexpected):
> 
> /usr/sbin/apxs -c -S CC=gcc -Wc,"-I/usr/include/apache2  -I../Adaptor  
> -DSINGLE_THREADED_ADAPTOR -DMACOS -DFORKING_WEBSERVER -DAPACHE  -Wall  -arch 
> x86_64  -arch i386" -Wl,"  -arch x86_64  -arch i386 -lm -module" 
> mod_WebObjects.c ../Adaptor/MoreURLCUtilities.c ../Adaptor/Platform.c 
> ../Adaptor/WOURLCUtilities.c ../Adaptor/WOURLCUtilities_3.c 
> ../Adaptor/appcfg.c ../Adaptor/cfgparse.c ../Adaptor/config.c 
> ../Adaptor/hostlookup.c ../Adaptor/list.c ../Adaptor/listing.c 
> ../Adaptor/loadaverage.c ../Adaptor/loadbalancing.c ../Adaptor/log.c 
> ../Adaptor/nbsocket.c ../Adaptor/random.c ../Adaptor/request.c 
> ../Adaptor/response.c ../Adaptor/roundrobin.c ../Adaptor/shmem.c 
> ../Adaptor/strdict.c ../Adaptor/strtbl.c ../Adaptor/transaction.c 
> ../Adaptor/transport.c ../Adaptor/wastring.c ../Adaptor/womalloc.c 
> ../Adaptor/xmlcparser.c ../Adaptor/xmlctokenizer.c ../Adaptor/xmlparse.c
> /usr/share/apr-1/build-1/libtool --silent --mode=compile gcc-DDARWIN 
> -DSIGPROCMASK_SETS_THREAD_MASK -DDARWIN_10  -I/usr/include/apache2  
> -I/usr/include/apr-1   -I/usr/include/apr-1  -O2 -I/usr/include/apache2  
> -I../Adaptor  -DSINGLE_THREADED_ADAPTOR -DMACOS -DFORKING_WEBSERVER -DAPACHE  
> -Wall  -arch x86_64  -arch i386  -c -o mod_WebObjects.lo mod_WebObjects.c && 
> touch mod_WebObjects.slo
> mod_WebObjects.c:63:10: fatal error: 'httpd.h' file not found
> #include 
>  ^
> 1 error generated.
> apxs:Error: Command failed with rc=65536
> .
> gnumake: *** [mod_WebObjects.so] Error 1
> 
> --
> 
> Does anyone know how to resolve this?
> 
> Thanks,
> Ben
> 
> On Tue, Oct 28, 2014 at 10:51 AM, Gino Pacitti  <mailto:ginok...@mac.com>> wrote:
> +1
> > On 28 Oct 2014, at 17:50, John Pollard  > <mailto:j...@pollardweb.com>> wrote:
> >
> > Patrick's instructions on how to build worked for me, compressed for 
> > dummies (like me) as this:
> >
> > Install XCode (6.1)
> >
> > cd /Applications/Xcode.app/Contents/Developer/Toolchains
> > sudo ln -s XcodeDefault.xctoolchain OSX10.10.xctoolchain
> >
> > vi /tmp/Adaptors/Apache2.4/Makefile
> > and remove the arg -macosx_version_min 10.5
> >
> > cd /tmp
> > svn co https://github.com/wocommunity/wonder.git/Utilities/Adaptors 
> > <https://github.com/wocommunity/wonder.git/Utilities/Adaptors>
> > cd /tmp/Adaptors
> > gnumake (some bits fail, but carry on)
> > gnumake Apache2.4
> >
> > This creates:
> > mod_WebObjects.so
> > in /tmp/Adaptors/Apache2.4
> >
> > I haven't tried using it yet, out of time today. If anyone has advice on 
> > changes needed to httpd.conf for using Apache2.4 with WO, that would be of 
> > interest. I will report back once I have tried it.
> >
> > John
> >
> >> On 28 Oct 2014, at 15:35, Gino Pacitti  >> <mailto:ginok...@mac.com>> wrote:
> >>
> >> so you have a compiled WOAdaptor?
> >>
> >> I originally had difficulty with that and so just went the simpler route 
> >> and down versioned Apache to 2.2
> >>
> >>
> >>> On 28 Oct 2014, at 15:31, Patrick Middleton  >>> <mailto:patr...@onestep.co.uk>> wrote:
> >>>
> >>> I am puzzled by this entire thread.
> >>>
> >>> The other day, at home, at my Mac running Yosemite with the newest 
> >>> shiniest Xcode tools installed,
> >>> I did something like this...
> >>>
> >>> cd /tmp/
> >>> svn co https://github.com/wocommunity/wonder.git/trunk/Utilities/Adaptors 
> >>> <https://github.com/wocommunity/wonder.git/trunk/Utilities/Adaptors>
> >>> cd /tmp/Adaptors
> >>> gnumake
> >>> gnumake Apache2.4
> >>>
> >>> and that built me the module; copying stuff by hand was not onerous.
> >>>
> >>> There were some gotchas.  On OSX, the project is set up to build the WO 
> >>> adaptor internals (this works), the CGI adaptor (this works), the FastCGI 
> >>> adaptor (does not work, missing headers) and the Apache2.2 adaptor (never 
> >>> got there because of FastCGI; didn't care).  The project will build the 
> >>> Apache 2.4 adaptor, provided the WO adaptor internals have been built.
> >>>
> >>> /usr/sbin/apxs will not work as-is: it tries to use a compiler toolchain 
> >>> that doesn't exist, referring to IIRC 

Re: Precompiled WOAdaptor for apache 2.4

2014-10-28 Thread John Pollard
Patrick's instructions on how to build worked for me, compressed for dummies 
(like me) as this:

Install XCode (6.1)

cd /Applications/Xcode.app/Contents/Developer/Toolchains
sudo ln -s XcodeDefault.xctoolchain OSX10.10.xctoolchain

vi /tmp/Adaptors/Apache2.4/Makefile
and remove the arg -macosx_version_min 10.5

cd /tmp
svn co https://github.com/wocommunity/wonder.git/Utilities/Adaptors
cd /tmp/Adaptors
gnumake (some bits fail, but carry on)
gnumake Apache2.4

This creates:
mod_WebObjects.so
in /tmp/Adaptors/Apache2.4

I haven't tried using it yet, out of time today. If anyone has advice on 
changes needed to httpd.conf for using Apache2.4 with WO, that would be of 
interest. I will report back once I have tried it.

John

> On 28 Oct 2014, at 15:35, Gino Pacitti  wrote:
> 
> so you have a compiled WOAdaptor?
> 
> I originally had difficulty with that and so just went the simpler route and 
> down versioned Apache to 2.2
> 
> 
>> On 28 Oct 2014, at 15:31, Patrick Middleton  wrote:
>> 
>> I am puzzled by this entire thread.
>> 
>> The other day, at home, at my Mac running Yosemite with the newest shiniest 
>> Xcode tools installed,
>> I did something like this...
>> 
>> cd /tmp/
>> svn co https://github.com/wocommunity/wonder.git/trunk/Utilities/Adaptors
>> cd /tmp/Adaptors
>> gnumake
>> gnumake Apache2.4
>> 
>> and that built me the module; copying stuff by hand was not onerous.
>> 
>> There were some gotchas.  On OSX, the project is set up to build the WO 
>> adaptor internals (this works), the CGI adaptor (this works), the FastCGI 
>> adaptor (does not work, missing headers) and the Apache2.2 adaptor (never 
>> got there because of FastCGI; didn't care).  The project will build the 
>> Apache 2.4 adaptor, provided the WO adaptor internals have been built.
>> 
>> /usr/sbin/apxs will not work as-is: it tries to use a compiler toolchain 
>> that doesn't exist, referring to IIRC 
>> /Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.10.xctoolchain/usr/bin/cc
>>  .  apxs is your friend; it's there to let you build Apache modules with the 
>> same compiler and flags (especially optimisation flags) as was used to build 
>> Apache.
>> 
>> So we do something like (from memory)
>> 
>> cd 
>> /Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.10.xctoolchain/
>> sudo ln -s XcodeDefault.xctoolchain OSX10.10.xctoolchain
>> 
>> and if I have that right, we can now use Xcode tools via the same filenames 
>> as were used by whoever at Apple built Apache 2.4 for Yosemite.  Have a read 
>> of the /usr/sbin/apxs script.  Even if (like me) you don't code in perl, you 
>> should find yourself looking at /usr/share/httpd/build/config_vars.mk next, 
>> which will have the reference to 
>> /Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.10.xctoolchain/usr/bin/cc
>>  , and you will also see no optimisation flags listed in CFLAGS -- 
>> personally, here I would remove -O2 from CFLAGS in all the Makefiles that 
>> build any code loaded by Apache.
>> 
>> In an ideal world, those of us interested in Apache only would rework this 
>> project to avoid invoking the compiler or linker directly, we'd have apxs do 
>> it for us, noting we can still get at some settings as 'apxs -q CFLAGS', 
>> 'apxs -q CC' etc.
>> 
>> 
>> You will also likely need to remove any '-macosx_version_min 10.5' 
>> compiler/linker arguments because the recent OSX C compilers don't appear to 
>> support that any more.
>> 
>> 
>> -- Patrick
>> 
>> ___
>> 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/ginokris%40mac.com
>> 
>> This email sent to ginok...@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/john%40pollardweb.com
> 
> This email sent to j...@pollardweb.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: Precompiled WOAdaptor for apache 2.4

2014-10-28 Thread John Pollard
That page says you first need homebrew but uses ruby to install it!

> On 28 Oct 2014, at 10:45, Gino Pacitti  wrote:
> 
> Yes there is still Apache 2.4 but as long as it is not running then all OK.. 
> it just exists as a binary on your filesystem…
> Ruby is OK to install too… 
> 
> https://gorails.com/setup/osx/10.10-yosemite
> 
> Im not sure about the road map for WO on Yosemite and going forward… I am 
> sure there will be some intrepid warrior that will brave a 2.4 WO Adaptor … 
> if they need it…
> 
> 
> 
>> On 28 Oct 2014, at 10:37, John Pollard  wrote:
>> 
>> But also ruby, is that also painless and lightweight enough to justify 
>> installing in order to pick up homebrew?
>> 
>> Are you saying that apache2.2 ends up existing in parallel with apache 2.4 
>> after doing this?
>> 
>> I have read through more list postings and I see that mod_proxy can be used 
>> to sidestep mod_webobjects and wotaskd; is this the likely future path / 
>> already being done for deployments as well as development environments?
>> 
>> Is there likely to be a wiki page to help explain the transition? Is 
>> mod_webobjects likely to be made compatible with apache 2.4?
>> 
>> Many thanks,
>> John
>> 
>>> On 28 Oct 2014, at 10:09, Gino Pacitti  wrote:
>>> 
>>> Well.. home-brew is quite painless.. its just trying to locate where the 
>>>  the directory for apache2 ends up on your system.. LOL… its does not 
>>> place it in /etc/apache2 it ends up in /usr/local/etc/apache2. Subtle 
>>> better to know now rather than having to try and find it… Then make sure 
>>> its the apache that is running as I think it does not set itself as default 
>>> apache on the system… 
>>> 
>>> 
>>>> On 28 Oct 2014, at 10:02, John Pollard  wrote:
>>>> 
>>>> Looking at that sequence for reverting to apache 2.2, which I am also 
>>>> thinking of doing, I see that I first need to install homebrew. The 
>>>> instructions to install homebrew use a ruby command, so presumably I also 
>>>> need to install ruby to get homebrew? I got nervous at this point.
>>>> 
>>>> How about TimeMachine to bring back the 2.2 install dirs from 
>>>> pre-yosemite, based on paths here? 
>>>> http://wiki.apache.org/httpd/DistrosDefaultLayout#Apache_httpd_2.2_default_layout_.28apache.org_source_package.29
>>>> Would that work?
>>>> 
>>>> Alternatively I might be able to limp along using Direct Connect for a 
>>>> while if the WO apache module is likely to be updated by someone clever 
>>>> soon enough?
>>>> 
>>>> Thanks
>>>> John
>>>> 
>>>>> On 20 Oct 2014, at 22:11, Gino Pacitti  wrote:
>>>>> 
>>>>> +1
>>>>> 
>>>>> Sent from my iPad
>>>>> 
>>>>> On 20 Oct 2014, at 22:10, Lon Varscsak  wrote:
>>>>> 
>>>>>> I just downgraded and installed 2.2.26 using homebrew (and these 
>>>>>> instructions https://gist.github.com/falker/857c40ac854999d88135).  
>>>>>> Figured it was the path of least resistance. :P
>>>>>> 
>>>>>> -Lon
>>>>>> 
>>>>>> On Mon, Oct 20, 2014 at 9:28 AM, Michael Kondratov 
>>>>>>  wrote:
>>>>>> I would also love to get a copy of a binary. Tried compiling - no 
>>>>>> success.
>>>>>> 
>>>>>> Michael Kondratov
>>>>>> Aspire Auctions, Inc.
>>>>>> 216-231-5515
>>>>>> 
>>>>>>> On Oct 20, 2014, at 6:13 AM, Gino Pacitti  wrote:
>>>>>>> 
>>>>>>> Hi all…
>>>>>>> 
>>>>>>> Just updated to Yosemite and duh… Apache is updated and I cannot get WO 
>>>>>>> to work…
>>>>>>> I have the adaptor make file from wonder but not totally sure how to 
>>>>>>> set it up to compile. There is no make.postamble or make.config and I 
>>>>>>> am not sure what to use to configure if there were.
>>>>>>> 
>>>>>>> Is there a precompiled adaptor for Apache 2.4 to use on Yosemite?
>>>>>>> 
>>>>>>> Gino
>>>>>>> ___
>>>>>>> Do not post admin requests to the list. They will be ignored.
>>>>

Re: Precompiled WOAdaptor for apache 2.4

2014-10-28 Thread John Pollard
But also ruby, is that also painless and lightweight enough to justify 
installing in order to pick up homebrew?

Are you saying that apache2.2 ends up existing in parallel with apache 2.4 
after doing this?

I have read through more list postings and I see that mod_proxy can be used to 
sidestep mod_webobjects and wotaskd; is this the likely future path / already 
being done for deployments as well as development environments?

Is there likely to be a wiki page to help explain the transition? Is 
mod_webobjects likely to be made compatible with apache 2.4?

Many thanks,
John

> On 28 Oct 2014, at 10:09, Gino Pacitti  wrote:
> 
> Well.. home-brew is quite painless.. its just trying to locate where the  
> the directory for apache2 ends up on your system.. LOL… its does not place it 
> in /etc/apache2 it ends up in /usr/local/etc/apache2. Subtle better to know 
> now rather than having to try and find it… Then make sure its the apache that 
> is running as I think it does not set itself as default apache on the system… 
> 
> 
>> On 28 Oct 2014, at 10:02, John Pollard  wrote:
>> 
>> Looking at that sequence for reverting to apache 2.2, which I am also 
>> thinking of doing, I see that I first need to install homebrew. The 
>> instructions to install homebrew use a ruby command, so presumably I also 
>> need to install ruby to get homebrew? I got nervous at this point.
>> 
>> How about TimeMachine to bring back the 2.2 install dirs from pre-yosemite, 
>> based on paths here? 
>> http://wiki.apache.org/httpd/DistrosDefaultLayout#Apache_httpd_2.2_default_layout_.28apache.org_source_package.29
>> Would that work?
>> 
>> Alternatively I might be able to limp along using Direct Connect for a while 
>> if the WO apache module is likely to be updated by someone clever soon 
>> enough?
>> 
>> Thanks
>> John
>> 
>>> On 20 Oct 2014, at 22:11, Gino Pacitti  wrote:
>>> 
>>> +1
>>> 
>>> Sent from my iPad
>>> 
>>> On 20 Oct 2014, at 22:10, Lon Varscsak  wrote:
>>> 
>>>> I just downgraded and installed 2.2.26 using homebrew (and these 
>>>> instructions https://gist.github.com/falker/857c40ac854999d88135).  
>>>> Figured it was the path of least resistance. :P
>>>> 
>>>> -Lon
>>>> 
>>>> On Mon, Oct 20, 2014 at 9:28 AM, Michael Kondratov 
>>>>  wrote:
>>>> I would also love to get a copy of a binary. Tried compiling - no success.
>>>> 
>>>> Michael Kondratov
>>>> Aspire Auctions, Inc.
>>>> 216-231-5515
>>>> 
>>>>> On Oct 20, 2014, at 6:13 AM, Gino Pacitti  wrote:
>>>>> 
>>>>> Hi all…
>>>>> 
>>>>> Just updated to Yosemite and duh… Apache is updated and I cannot get WO 
>>>>> to work…
>>>>> I have the adaptor make file from wonder but not totally sure how to set 
>>>>> it up to compile. There is no make.postamble or make.config and I am not 
>>>>> sure what to use to configure if there were.
>>>>> 
>>>>> Is there a precompiled adaptor for Apache 2.4 to use on Yosemite?
>>>>> 
>>>>> Gino
>>>>> ___
>>>>> 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/lon.varscsak%40gmail.com
>>>> 
>>>> This email sent to lon.varsc...@gmail.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/john%40pollardweb.com
>>> 
>>> This email sent to j...@pollardweb.com
>> 
>> _

Re: Precompiled WOAdaptor for apache 2.4

2014-10-28 Thread John Pollard
Looking at that sequence for reverting to apache 2.2, which I am also thinking 
of doing, I see that I first need to install homebrew. The instructions to 
install homebrew use a ruby command, so presumably I also need to install ruby 
to get homebrew? I got nervous at this point.

How about TimeMachine to bring back the 2.2 install dirs from pre-yosemite, 
based on paths here? 
http://wiki.apache.org/httpd/DistrosDefaultLayout#Apache_httpd_2.2_default_layout_.28apache.org_source_package.29
Would that work?

Alternatively I might be able to limp along using Direct Connect for a while if 
the WO apache module is likely to be updated by someone clever soon enough?

Thanks
John

> On 20 Oct 2014, at 22:11, Gino Pacitti  wrote:
> 
> +1
> 
> Sent from my iPad
> 
> On 20 Oct 2014, at 22:10, Lon Varscsak  > wrote:
> 
>> I just downgraded and installed 2.2.26 using homebrew (and these 
>> instructions https://gist.github.com/falker/857c40ac854999d88135 
>> ).  Figured it was the 
>> path of least resistance. :P
>> 
>> -Lon
>> 
>> On Mon, Oct 20, 2014 at 9:28 AM, Michael Kondratov 
>> mailto:mich...@aspireauctions.com>> wrote:
>> I would also love to get a copy of a binary. Tried compiling - no success.
>> 
>> Michael Kondratov
>> Aspire Auctions, Inc.
>> 216-231-5515 
>>> On Oct 20, 2014, at 6:13 AM, Gino Pacitti >> > wrote:
>>> 
>>> Hi all…
>>> 
>>> Just updated to Yosemite and duh… Apache is updated and I cannot get WO to 
>>> work…
>>> I have the adaptor make file from wonder but not totally sure how to set it 
>>> up to compile. There is no make.postamble or make.config and I am not sure 
>>> what to use to configure if there were.
>>> 
>>> Is there a precompiled adaptor for Apache 2.4 to use on Yosemite?
>>> 
>>> Gino
>>> ___
>>> 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/lon.varscsak%40gmail.com
>>  
>> 
>> 
>> This email sent to lon.varsc...@gmail.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/john%40pollardweb.com
> 
> This email sent to j...@pollardweb.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: EOCustomObject valueForKey avoiding infinite recursion

2014-10-10 Thread John Pollard
If after clearing the undo stack I open a dummy undo group i.e.
undoManager().removeAllActions();
undoManager().beginUndoGrouping();
Then things do seem to run ok, so there is a dummy undoGrouping for the java 
client server side request handling code to close off, but seems a bit 
outlandish to do this, asking for more future problems?
John

On 10 Oct 2014, at 10:40, John Pollard  wrote:

> I instead used the property er.extensions.ERXEC.editingContextClassName to 
> specify the ForgetfulEC which I had  change to be subclassed from ERXEC
> 
> However, with the call to undoManager().removeAllActions() seems to tread on 
> some toes; a later endUndoGrouping() called by some other code is now falling 
> over with this exception...
> 
> - : Exception occurred 
> while handling request:
> java.lang.IllegalStateException: endUndoGrouping: undo manager is in invalid 
> state, endUndoGrouping called with no matching begin
> Oct 10 09:33:25 InraxServer[] DEBUG NSLog  - Handle Application Exception
> Reporting exception at: 09:33
> From: Application.handleException()
> 
> Original Request IP: 192.168.0.124 URI: 
> /cgi-bin/WebObjects/InraxServer.woa/-/wo/0g6rgMRRb2p4aTaQYIIW7g/0.1.0.1.0 
> Session: 0g6rgMRRb2p4aTaQYIIW7g
> 
> Component: com.webobjects.eodistribution.WOJavaClientApplet
> 
> Exception message: endUndoGrouping: undo manager is in invalid state, 
> endUndoGrouping called with no matching begin
> 
> Stack Trace...
> 
> java.lang.IllegalStateException: endUndoGrouping: undo manager is in invalid 
> state, endUndoGrouping called with no matching begin
>   at 
> com.webobjects.foundation.NSUndoManager.endUndoGrouping(NSUndoManager.java:565)
>   at 
> com.webobjects.eodistribution.EODistributionContext.responseToClientMessage(EODistributionContext.java:626)
>   at 
> com.webobjects.eodistribution.WOJavaClientApplet.handleClientRequest(WOJavaClientApplet.java:978)
>   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>   at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>   at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> ...
> 
> 
> 
> On 10 Oct 2014, at 09:50, John Pollard  wrote:
> 
>> Thanks, I will give this a try.
>> I am using Java Client, not sure about the "applets" bit.
>> Currently the client session ec is created using 
>> ERXEC.newEditingContext(objStore)
>> So should I...
>> Create a sublcass of ERXEC.DefaultFactory and override 
>> _createEditingContext() in it, to return a ForgetfulEC
>> Install my factory using ERXEC.setFactory()
>> Anything else?
>> Thanks
>> John
>> 
>> On 9 Oct 2014, at 17:27, Chuck Hill  wrote:
>> 
>>> First question, are you using JavaClient applets?  
>>> 
>>> Below is a Java class that might both explain and solve what you are seeing.
>>> 
>>> 
>>> Chuck
>>> 
>>> 
>>> package net.global_village.eofextensions;
>>> 
>>> import com.webobjects.eocontrol.*;
>>> 
>>> /**
>>>  * EOEditingContext that clears undo stack after a successful save.  This 
>>> is used as a work around for a bug in EOF. There is a rather serious bug 
>>> when validateForDelete() fails to allow a deletion.  This will occur if you 
>>> are using the Deny delete rule, the relationship is mandatory, or you have 
>>> a custom validateForDelete() method.  The error occurs in this scenario:
>>>  * 1. The editing context has multiple generations, meaning that 
>>> saveChanges() has been called one or more times after one or more EOs has 
>>> been created / inserted / updated.
>>>  * 2. An EO is deleted from the editing context by deleteObject().
>>>  * 3. saveChanges() fails due to an NSValidation.ValidationException raised 
>>> in validateForDelete.
>>>  *
>>>  * This result of this appears to be that undo() is called on the editing 
>>> context's undo manager too many times.  Instead of rolling back to the 
>>> state when saveChanges() was called it rolls back past several of previous 
>>> saveChanges()!  The result of this is that the editing context shows a 
>>> historical state that does not match the object store or the database.
>>>  *
>>>  * @author Copyright (c) 2001-2005  Global Village Consulting, Inc.  All 
>>> rights reserved.
>>>  * This software is published under the terms of the Educational Community 
>>> License (ECL) version 1.0,
>>>  * a copy of which has been included with this distribut

Re: EOCustomObject valueForKey avoiding infinite recursion

2014-10-10 Thread John Pollard
I instead used the property er.extensions.ERXEC.editingContextClassName to 
specify the ForgetfulEC which I had  change to be subclassed from ERXEC

However, with the call to undoManager().removeAllActions() seems to tread on 
some toes; a later endUndoGrouping() called by some other code is now falling 
over with this exception...

- : Exception occurred 
while handling request:
java.lang.IllegalStateException: endUndoGrouping: undo manager is in invalid 
state, endUndoGrouping called with no matching begin
Oct 10 09:33:25 InraxServer[] DEBUG NSLog  - Handle Application Exception
Reporting exception at: 09:33
From: Application.handleException()

Original Request IP: 192.168.0.124 URI: 
/cgi-bin/WebObjects/InraxServer.woa/-/wo/0g6rgMRRb2p4aTaQYIIW7g/0.1.0.1.0 
Session: 0g6rgMRRb2p4aTaQYIIW7g

Component: com.webobjects.eodistribution.WOJavaClientApplet

Exception message: endUndoGrouping: undo manager is in invalid state, 
endUndoGrouping called with no matching begin

Stack Trace...

java.lang.IllegalStateException: endUndoGrouping: undo manager is in invalid 
state, endUndoGrouping called with no matching begin
at 
com.webobjects.foundation.NSUndoManager.endUndoGrouping(NSUndoManager.java:565)
at 
com.webobjects.eodistribution.EODistributionContext.responseToClientMessage(EODistributionContext.java:626)
at 
com.webobjects.eodistribution.WOJavaClientApplet.handleClientRequest(WOJavaClientApplet.java:978)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
...



On 10 Oct 2014, at 09:50, John Pollard  wrote:

> Thanks, I will give this a try.
> I am using Java Client, not sure about the "applets" bit.
> Currently the client session ec is created using 
> ERXEC.newEditingContext(objStore)
> So should I...
> Create a sublcass of ERXEC.DefaultFactory and override 
> _createEditingContext() in it, to return a ForgetfulEC
> Install my factory using ERXEC.setFactory()
> Anything else?
> Thanks
> John
> 
> On 9 Oct 2014, at 17:27, Chuck Hill  wrote:
> 
>> First question, are you using JavaClient applets?  
>> 
>> Below is a Java class that might both explain and solve what you are seeing.
>> 
>> 
>> Chuck
>> 
>> 
>> package net.global_village.eofextensions;
>> 
>> import com.webobjects.eocontrol.*;
>> 
>> /**
>>  * EOEditingContext that clears undo stack after a successful save.  This is 
>> used as a work around for a bug in EOF. There is a rather serious bug when 
>> validateForDelete() fails to allow a deletion.  This will occur if you are 
>> using the Deny delete rule, the relationship is mandatory, or you have a 
>> custom validateForDelete() method.  The error occurs in this scenario:
>>  * 1. The editing context has multiple generations, meaning that 
>> saveChanges() has been called one or more times after one or more EOs has 
>> been created / inserted / updated.
>>  * 2. An EO is deleted from the editing context by deleteObject().
>>  * 3. saveChanges() fails due to an NSValidation.ValidationException raised 
>> in validateForDelete.
>>  *
>>  * This result of this appears to be that undo() is called on the editing 
>> context's undo manager too many times.  Instead of rolling back to the state 
>> when saveChanges() was called it rolls back past several of previous 
>> saveChanges()!  The result of this is that the editing context shows a 
>> historical state that does not match the object store or the database.
>>  *
>>  * @author Copyright (c) 2001-2005  Global Village Consulting, Inc.  All 
>> rights reserved.
>>  * This software is published under the terms of the Educational Community 
>> License (ECL) version 1.0,
>>  * a copy of which has been included with this distribution in the 
>> LICENSE.TXT file.
>>  * @version $Revision: 7$
>>  */
>> public class ForgetfulEC extends EOEditingContext
>> {
>> 
>> 
>> /**
>>  * Designated constructor.  Creates a new ForgetfulEC object with 
>> anObjectStore as its parent
>>  * object store.
>>  *
>>  * @param anObjectStore parent object store
>>  */
>> public ForgetfulEC(EOObjectStore anObjectStore)
>> {
>> super(anObjectStore);
>> }
>> 
>> 
>> 
>> /**
>>  * Creates a new ForgetfulEC object with the default parent object store 
>> as its parent object
>>  * store.
>>  */
>> public ForgetfulEC()
>> {
>> sup

Re: EOCustomObject valueForKey avoiding infinite recursion

2014-10-10 Thread John Pollard
Thanks, I will give this a try.
I am using Java Client, not sure about the "applets" bit.
Currently the client session ec is created using 
ERXEC.newEditingContext(objStore)
So should I...
Create a sublcass of ERXEC.DefaultFactory and override _createEditingContext() 
in it, to return a ForgetfulEC
Install my factory using ERXEC.setFactory()
Anything else?
Thanks
John

On 9 Oct 2014, at 17:27, Chuck Hill  wrote:

> First question, are you using JavaClient applets?  
> 
> Below is a Java class that might both explain and solve what you are seeing.
> 
> 
> Chuck
> 
> 
> package net.global_village.eofextensions;
> 
> import com.webobjects.eocontrol.*;
> 
> /**
>  * EOEditingContext that clears undo stack after a successful save.  This is 
> used as a work around for a bug in EOF. There is a rather serious bug when 
> validateForDelete() fails to allow a deletion.  This will occur if you are 
> using the Deny delete rule, the relationship is mandatory, or you have a 
> custom validateForDelete() method.  The error occurs in this scenario:
>  * 1. The editing context has multiple generations, meaning that 
> saveChanges() has been called one or more times after one or more EOs has 
> been created / inserted / updated.
>  * 2. An EO is deleted from the editing context by deleteObject().
>  * 3. saveChanges() fails due to an NSValidation.ValidationException raised 
> in validateForDelete.
>  *
>  * This result of this appears to be that undo() is called on the editing 
> context's undo manager too many times.  Instead of rolling back to the state 
> when saveChanges() was called it rolls back past several of previous 
> saveChanges()!  The result of this is that the editing context shows a 
> historical state that does not match the object store or the database.
>  *
>  * @author Copyright (c) 2001-2005  Global Village Consulting, Inc.  All 
> rights reserved.
>  * This software is published under the terms of the Educational Community 
> License (ECL) version 1.0,
>  * a copy of which has been included with this distribution in the 
> LICENSE.TXT file.
>  * @version $Revision: 7$
>  */
> public class ForgetfulEC extends EOEditingContext
> {
> 
> 
> /**
>  * Designated constructor.  Creates a new ForgetfulEC object with 
> anObjectStore as its parent
>  * object store.
>  *
>  * @param anObjectStore parent object store
>  */
> public ForgetfulEC(EOObjectStore anObjectStore)
> {
> super(anObjectStore);
> }
> 
> 
> 
> /**
>  * Creates a new ForgetfulEC object with the default parent object store 
> as its parent object
>  * store.
>  */
> public ForgetfulEC()
> {
> super();
> }
> 
> 
> 
> /**
> * Overridden to clear undo stack after a successful save.
> */
> public void saveChanges()
> {
> super.saveChanges();
> if (undoManager() != null)
> {
> undoManager().removeAllActions();
> }
> }
> 
> }
> 
> 
> On 2014-10-09, 7:22 AM, "John Pollard" wrote:
> 
> My trap set up in takeStoredValueForKey() for my intermittent has triggered 
> reporting my bug where an attribute is being set to null. However, the stack 
> trace below doesn't come from anywhere obvious in my code. It is server side 
> processing a client request and for some reason there is an "undo" being 
> triggered from WOJavaClientApplet.handleClientRequest() 
> 
> My trap fires off when the attribute is being changed from a non-null value 
> to a null value, which should never happen, but it is.
> 
> Furthermore, in my trap I make sure I don't call 
> super.takeStoredValueForKey() if I can see the attribute is about to be set 
> to null...but somehow the value is still being set to null on the database.
> 
> Any thoughts welcome!
> 
> John
> 
> at mp.gen.Utils.getStackTraceAsString(Utils.java:2819)
> at mp.eo.Transaction.takeStoredValueForKey(Transaction.java:1920)
> at 
> com.webobjects.eocontrol.EOCustomObject.updateFromSnapshot(EOCustomObject.java:581)
> at 
> er.extensions.eof.ERXGenericRecord.updateFromSnapshot(ERXGenericRecord.java:1267)
> at 
> com.webobjects.eocontrol.EOEditingContext._undoUpdate(EOEditingContext.java:1629)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:622)
> at com.webobjects.foundation.NSSelector.invoke(NSSelector.java:358)
> at 
> com.webobjec

Re: EOCustomObject valueForKey avoiding infinite recursion

2014-10-09 Thread John Pollard
icGroup.java:105)
at 
com.webobjects.appserver._private.WOGenericContainer.invokeAction(WOGenericContainer.java:29)
at 
com.webobjects.appserver._private.WODynamicGroup.invokeChildrenAction(WODynamicGroup.java:105)
at 
com.webobjects.appserver._private.WODynamicGroup.invokeAction(WODynamicGroup.java:115)
at 
com.webobjects.appserver._private.WOConditional.invokeAction(WOConditional.java:86)
at 
com.webobjects.appserver._private.WODynamicGroup.invokeChildrenAction(WODynamicGroup.java:105)
at 
com.webobjects.appserver._private.WODynamicGroup.invokeAction(WODynamicGroup.java:115)
at 
com.webobjects.appserver.WOComponent.invokeAction(WOComponent.java:1079)
at 
com.webobjects.appserver._private.WOComponentReference.invokeAction(WOComponentReference.java:127)
at 
com.webobjects.appserver._private.WODynamicGroup.invokeChildrenAction(WODynamicGroup.java:105)
at 
com.webobjects.appserver._private.WODynamicGroup.invokeAction(WODynamicGroup.java:115)
at 
com.webobjects.appserver.WOComponent.invokeAction(WOComponent.java:1079)
at com.webobjects.appserver.WOSession.invokeAction(WOSession.java:1357)
at 
com.webobjects.appserver.WOApplication.invokeAction(WOApplication.java:1745)
at 
er.extensions.appserver.ajax.ERXAjaxApplication.invokeAction(ERXAjaxApplication.java:119)
at 
er.extensions.appserver.ERXApplication.invokeAction(ERXApplication.java:1988)
at 
er.extensions.appserver.ERXComponentRequestHandler._dispatchWithPreparedPage(ERXComponentRequestHandler.java:157)
at 
er.extensions.appserver.ERXComponentRequestHandler._dispatchWithPreparedSession(ERXComponentRequestHandler.java:235)
at 
er.extensions.appserver.ERXComponentRequestHandler._dispatchWithPreparedApplication(ERXComponentRequestHandler.java:268)
at 
er.extensions.appserver.ERXComponentRequestHandler._handleRequest(ERXComponentRequestHandler.java:302)
at 
er.extensions.appserver.ERXComponentRequestHandler.handleRequest(ERXComponentRequestHandler.java:378)
at 
com.webobjects.appserver.WOApplication.dispatchRequest(WOApplication.java:1687)
at 
er.extensions.appserver.ERXApplication.dispatchRequestImmediately(ERXApplication.java:2109)
at 
er.extensions.appserver.ERXApplication.dispatchRequest(ERXApplication.java:2074)
at mpServer.Application.dispatchRequest(Application.java:168)
at 
com.webobjects.appserver._private.WOWorkerThread.runOnce(WOWorkerThread.java:144)
    at 
com.webobjects.appserver._private.WOWorkerThread.run(WOWorkerThread.java:226)
at java.lang.Thread.run(Thread.java:701)

On 9 Oct 2014, at 15:22, John Pollard  wrote:

> My trap set up in takeStoredValueForKey() for my intermittent has triggered 
> reporting my bug where an attribute is being set to null. However, the stack 
> trace below doesn't come from anywhere obvious in my code. It is server side 
> processing a client request and for some reason there is an "undo" being 
> triggered from WOJavaClientApplet.handleClientRequest()
> 
> My trap fires off when the attribute is being changed from a non-null value 
> to a null value, which should never happen, but it is.
> 
> Furthermore, in my trap I make sure I don't call 
> super.takeStoredValueForKey() if I can see the attribute is about to be set 
> to null...but somehow the value is still being set to null on the database.
> 
> Any thoughts welcome!
> 
> John
> 
> at mp.gen.Utils.getStackTraceAsString(Utils.java:2819)
>   at mp.eo.Transaction.takeStoredValueForKey(Transaction.java:1920)
>   at 
> com.webobjects.eocontrol.EOCustomObject.updateFromSnapshot(EOCustomObject.java:581)
>   at 
> er.extensions.eof.ERXGenericRecord.updateFromSnapshot(ERXGenericRecord.java:1267)
>   at 
> com.webobjects.eocontrol.EOEditingContext._undoUpdate(EOEditingContext.java:1629)
>   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>   at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>   at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>   at java.lang.reflect.Method.invoke(Method.java:622)
>   at com.webobjects.foundation.NSSelector.invoke(NSSelector.java:358)
>   at 
> com.webobjects.foundation.NSSelector._safeInvokeSelector(NSSelector.java:110)
>   at 
> com.webobjects.foundation.NSUndoManager$_NSUndoLightInvocation.invoke(NSUndoManager.java:1002)
>   at 
> com.webobjects.foundation.NSUndoManager$_NSUndoStack.popAndInvoke(NSUndoManager.java:1280)
>   at 
> com.webobjects.foundation.NSUndoManager.undoNestedGroup(NSUndoManager.java:733)
>   at com.webobjects.foundation.NSUndoManager.undo(NSUndoManager.java:693)
>   at 
> com.webobjects.eodistribution.EODistribution

Re: EOCustomObject valueForKey avoiding infinite recursion

2014-10-09 Thread John Pollard
ication.invokeAction(ERXApplication.java:1988)
at 
er.extensions.appserver.ERXComponentRequestHandler._dispatchWithPreparedPage(ERXComponentRequestHandler.java:157)
at 
er.extensions.appserver.ERXComponentRequestHandler._dispatchWithPreparedSession(ERXComponentRequestHandler.java:235)
at 
er.extensions.appserver.ERXComponentRequestHandler._dispatchWithPreparedApplication(ERXComponentRequestHandler.java:268)
at 
er.extensions.appserver.ERXComponentRequestHandler._handleRequest(ERXComponentRequestHandler.java:302)
at 
er.extensions.appserver.ERXComponentRequestHandler.handleRequest(ERXComponentRequestHandler.java:378)
at 
com.webobjects.appserver.WOApplication.dispatchRequest(WOApplication.java:1687)
at 
er.extensions.appserver.ERXApplication.dispatchRequestImmediately(ERXApplication.java:2109)
at 
er.extensions.appserver.ERXApplication.dispatchRequest(ERXApplication.java:2074)
at mpServer.Application.dispatchRequest(Application.java:168)
at 
com.webobjects.appserver._private.WOWorkerThread.runOnce(WOWorkerThread.java:144)
at 
com.webobjects.appserver._private.WOWorkerThread.run(WOWorkerThread.java:226)
at java.lang.Thread.run(Thread.java:701)
On 12 Sep 2014, at 09:18, John Pollard  wrote:

> Hmm, hairy palms, not sure I want that, but thanks for this anyway. The 
> related attribute is a to-one relationship, does that mean it is a FK 
> attribute? It is the to-one relationship that becomes null against my will 
> and I need to find out where/why.
> 
> I have now cobbled some code up in takeStoredValueForKey() which avoids the 
> recursion when checking the existing value using storedValueForKey() and 
> ignores the (temp) null value caused by clearProperties() when the EO is 
> invalidated. Hence I believe I now have the code to scream if my property is 
> set to null from a pre-existing value and I should get an email + stack trace 
> to report the exciting news. These intermittents are about once every two 
> months so will have to wait.
> 
> On 11 Sep 2014, at 23:04, Chuck Hill  wrote:
> 
>> You are going to grow hair on your palms doing this but…
>> 
>> willRead();
>> Object value = __dictionary().valueForKey(“your attribute”);
>> 
>> Should, I think, do what you want.  Of course, it is package protected so 
>> you will need to use reflection to get access.  And the result may be null 
>> if the object is still a fault.  
>> 
>> Is this an FK or PK by chance?
>> 
>> 
>> Chuck
>> 
>> 
>> 
>> 
>> 
>> On 2014-09-11, 12:22 PM, "John Pollard" wrote:
>> 
>> Apologies, I meant takeStoredValueForKey(). Within there, how can I safely 
>> see what the value currently is when when this method is called, before I 
>> invoke super. takeStoredValueForKey() to take on the new value?
>> John
>> 
>> On 11 Sep 2014, at 18:10, John Huss  wrote:
>> 
>>> The order of calls is:
>>> 
>>> takeValueForKey -> setXXX -> takeStoredValueForKey
>>> 
>>> All of these maybe skipped except for takeStoredValueForKey, so that is the 
>>> only one you should override to see what is getting saved.
>>> 
>>> 
>>> On Thu, Sep 11, 2014 at 8:55 AM, John Pollard  wrote:
>>> Hi List,
>>> 
>>> In some debugging within takeValueForKey() I want to find out if the key 
>>> already has a value set. If I call valueForKey() or storedValueForKey() and 
>>> the value isn't already set I get infinite recursion as it triggers a fault 
>>> and tries to load with takeValueForKey() and so on.
>>> 
>>> I am trying to debug where a value is being set to null, but apparently not 
>>> going via validateXXX() or setXXX() methods, so I want to trap the case 
>>> where the takeValueForKey() is passed null when the key value was 
>>> previously non-null and log a stack trace.
>>> 
>>> Thanks
>>> John
>>>  ___
>>> 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/johnthuss%40gmail.com
>>> 
>>> This email sent to johnth...@gmail.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: EOCustomObject valueForKey avoiding infinite recursion

2014-09-12 Thread John Pollard
Hmm, hairy palms, not sure I want that, but thanks for this anyway. The related 
attribute is a to-one relationship, does that mean it is a FK attribute? It is 
the to-one relationship that becomes null against my will and I need to find 
out where/why.

I have now cobbled some code up in takeStoredValueForKey() which avoids the 
recursion when checking the existing value using storedValueForKey() and 
ignores the (temp) null value caused by clearProperties() when the EO is 
invalidated. Hence I believe I now have the code to scream if my property is 
set to null from a pre-existing value and I should get an email + stack trace 
to report the exciting news. These intermittents are about once every two 
months so will have to wait.

On 11 Sep 2014, at 23:04, Chuck Hill  wrote:

> You are going to grow hair on your palms doing this but…
> 
> willRead();
> Object value = __dictionary().valueForKey(“your attribute”);
> 
> Should, I think, do what you want.  Of course, it is package protected so you 
> will need to use reflection to get access.  And the result may be null if the 
> object is still a fault.  
> 
> Is this an FK or PK by chance?
> 
> 
> Chuck
> 
> 
> 
> 
> 
> On 2014-09-11, 12:22 PM, "John Pollard" wrote:
> 
> Apologies, I meant takeStoredValueForKey(). Within there, how can I safely 
> see what the value currently is when when this method is called, before I 
> invoke super. takeStoredValueForKey() to take on the new value?
> John
> 
> On 11 Sep 2014, at 18:10, John Huss  wrote:
> 
>> The order of calls is:
>> 
>> takeValueForKey -> setXXX -> takeStoredValueForKey
>> 
>> All of these maybe skipped except for takeStoredValueForKey, so that is the 
>> only one you should override to see what is getting saved.
>> 
>> 
>> On Thu, Sep 11, 2014 at 8:55 AM, John Pollard  wrote:
>> Hi List,
>> 
>> In some debugging within takeValueForKey() I want to find out if the key 
>> already has a value set. If I call valueForKey() or storedValueForKey() and 
>> the value isn't already set I get infinite recursion as it triggers a fault 
>> and tries to load with takeValueForKey() and so on.
>> 
>> I am trying to debug where a value is being set to null, but apparently not 
>> going via validateXXX() or setXXX() methods, so I want to trap the case 
>> where the takeValueForKey() is passed null when the key value was previously 
>> non-null and log a stack trace.
>> 
>> Thanks
>> John
>>  ___
>> 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/johnthuss%40gmail.com
>> 
>> This email sent to johnth...@gmail.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: EOCustomObject valueForKey avoiding infinite recursion

2014-09-12 Thread John Pollard
So committedSnapshot records the last committed state so that as yet unsaved 
changes can be compared? My value shouldn't change at all in an update ever so 
this might be a good place to check for null -> B happening.
What I have noticed in takeStoredValueForKey is that clearProperties() is 
invoked if the EO is invalidated, which does lead to a B -> null -> B 
transition where in fact the value doesn't change, so I have to ignore the case 
where the property goes to null temporarily if an EO is invalidated. Though I 
haven't checked that willUpdate() is impacted by clearProperties() in the same 
way.

On 11 Sep 2014, at 22:54, Chuck Hill  wrote:

> That might not give you what you want.  committedSnapshot is set when the 
> object is first mutated.  If you if the value is changed like:
> 
> null -> B -> null
> 
> Then this won’t log what is desired.
> 
> Chuck
> 
> 
> On 2014-09-11, 12:28 PM, "Theodore Petrosky" wrote:
> 
> I have used the 
> 
> @Override
> public void willUpdate() {
> 
> )method
> 
> then I get the original value and compare it
> 
> if (committedSnapshotValueForKey(PROJECT_DESCRIPTION_KEY) != 
> NSKeyValueCoding.NullValue) {
> setOldPD((String)committedSnapshotValueForKey(PROJECT_DESCRIPTION_KEY));
> 
> }
> 
> and in your case check for == NSKeyValueCoding.NullValue
> 
> does that do what you want?
> 
> Ted
> 
> 
> On Sep 11, 2014, at 3:20 PM, John Pollard  wrote:
> 
>> Ray,
>> 
>> Thanks for the thought. I do want to log the stack trace but as I can't 
>> predict when this issue might happen and it is rare. I want to narrow down 
>> to the close circumstances first, or else I will be logging thousands of 
>> these stack traces in normal operation when there isn't a problem. What I 
>> need to do is detect when a given attribute is changed from non-null to null 
>> (which should never happen), so I need to check what it was before it is 
>> being set i.e. just check it was non-null before being set to null.
>> 
>> John
>> 
>> On 11 Sep 2014, at 18:05, Ray Kiddy  wrote:
>> 
>>> On Thu, 11 Sep 2014 14:55:16 +0100
>>> John Pollard  wrote:
>>> 
>>>> Hi List,
>>>> 
>>>> In some debugging within takeValueForKey() I want to find out if the
>>>> key already has a value set. If I call valueForKey() or
>>>> storedValueForKey() and the value isn't already set I get infinite
>>>> recursion as it triggers a fault and tries to load with
>>>> takeValueForKey() and so on.
>>>> 
>>>> I am trying to debug where a value is being set to null, but
>>>> apparently not going via validateXXX() or setXXX() methods, so I want
>>>> to trap the case where the takeValueForKey() is passed null when the
>>>> key value was previously non-null and log a stack trace.
>>>> 
>>>> Thanks
>>>> John
>>> 
>>> One way to prevent the recursion you are talking about is to actually
>>> look at the stack trace inside the method. Call the static method in
>>> Wonder, ERXUtilities.stackTrace(), and look at what is in it. If you
>>> find the method you are in, you have already been called.
>>> 
>>> Without Wonder, you can instantiate a Throwable and get the stack trace
>>> from that.
>>> 
>>> Doing this is a smell. You do not want to leave this in your code. 
>>> 
>>> But since you are putting this in to find something, having this check
>>> there temporarily can be useful.
>>> 
>>> - ray
>>> 
>>> 
>>> 
>>> ___
>>> 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/john%40pollardweb.com
>>> 
>>> This email sent to j...@pollardweb.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: EOCustomObject valueForKey avoiding infinite recursion

2014-09-11 Thread John Pollard
Apologies, I meant takeStoredValueForKey(). Within there, how can I safely see 
what the value currently is when when this method is called, before I invoke 
super. takeStoredValueForKey() to take on the new value?
John

On 11 Sep 2014, at 18:10, John Huss  wrote:

> The order of calls is:
> 
> takeValueForKey -> setXXX -> takeStoredValueForKey
> 
> All of these maybe skipped except for takeStoredValueForKey, so that is the 
> only one you should override to see what is getting saved.
> 
> 
> On Thu, Sep 11, 2014 at 8:55 AM, John Pollard  wrote:
> Hi List,
> 
> In some debugging within takeValueForKey() I want to find out if the key 
> already has a value set. If I call valueForKey() or storedValueForKey() and 
> the value isn't already set I get infinite recursion as it triggers a fault 
> and tries to load with takeValueForKey() and so on.
> 
> I am trying to debug where a value is being set to null, but apparently not 
> going via validateXXX() or setXXX() methods, so I want to trap the case where 
> the takeValueForKey() is passed null when the key value was previously 
> non-null and log a stack trace.
> 
> Thanks
> John
>  ___
> 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/johnthuss%40gmail.com
> 
> This email sent to johnth...@gmail.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: EOCustomObject valueForKey avoiding infinite recursion

2014-09-11 Thread John Pollard
Ray,

Thanks for the thought. I do want to log the stack trace but as I can't predict 
when this issue might happen and it is rare. I want to narrow down to the close 
circumstances first, or else I will be logging thousands of these stack traces 
in normal operation when there isn't a problem. What I need to do is detect 
when a given attribute is changed from non-null to null (which should never 
happen), so I need to check what it was before it is being set i.e. just check 
it was non-null before being set to null.

John

On 11 Sep 2014, at 18:05, Ray Kiddy  wrote:

> On Thu, 11 Sep 2014 14:55:16 +0100
> John Pollard  wrote:
> 
>> Hi List,
>> 
>> In some debugging within takeValueForKey() I want to find out if the
>> key already has a value set. If I call valueForKey() or
>> storedValueForKey() and the value isn't already set I get infinite
>> recursion as it triggers a fault and tries to load with
>> takeValueForKey() and so on.
>> 
>> I am trying to debug where a value is being set to null, but
>> apparently not going via validateXXX() or setXXX() methods, so I want
>> to trap the case where the takeValueForKey() is passed null when the
>> key value was previously non-null and log a stack trace.
>> 
>> Thanks
>> John
> 
> One way to prevent the recursion you are talking about is to actually
> look at the stack trace inside the method. Call the static method in
> Wonder, ERXUtilities.stackTrace(), and look at what is in it. If you
> find the method you are in, you have already been called.
> 
> Without Wonder, you can instantiate a Throwable and get the stack trace
> from that.
> 
> Doing this is a smell. You do not want to leave this in your code. 
> 
> But since you are putting this in to find something, having this check
> there temporarily can be useful.
> 
> - ray
> 
> 
> 
> ___
> 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/john%40pollardweb.com
> 
> This email sent to j...@pollardweb.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

EOCustomObject valueForKey avoiding infinite recursion

2014-09-11 Thread John Pollard
Hi List,

In some debugging within takeValueForKey() I want to find out if the key 
already has a value set. If I call valueForKey() or storedValueForKey() and the 
value isn't already set I get infinite recursion as it triggers a fault and 
tries to load with takeValueForKey() and so on.

I am trying to debug where a value is being set to null, but apparently not 
going via validateXXX() or setXXX() methods, so I want to trap the case where 
the takeValueForKey() is passed null when the key value was previously non-null 
and log a stack trace.

Thanks
John
 ___
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: Retaining order of values in a url

2014-05-27 Thread John Pollard
My workaround code does actually only rely on the order in the URL itself, as 
it was solving that exact problem of formValueKeys() not being in order. The 
explanation of why needed is a bit involved. Thanks for the replies.
John

On 27 May 2014, at 05:00, Aaron Rosenzweig wrote:

> Hi Cristoph,
> 
> Order may be important to him if he has web server rewrite rules in place. 
> AARON ROSENZWEIG / Chat 'n Bike
> e:  aa...@chatnbike.com  t:  (301) 956-2319   
>   
> 
> On May 22, 2014, at 5:39 PM, CHRISTOPH WICK | i4innovation GmbH, Bonn 
>  wrote:
> 
>> Hi John,
>> 
>> If you read the documentation of WORequest's formValueKeys method, it says:
>> 
>> "The returned array is not sorted in any particular order, and is not 
>> necessarily sorted in the same order on successive invocations of this 
>> method."
>> 
>> (http://wocommunity.org/documents/javadoc/WebObjects/5.4.2/com/webobjects/appserver/WORequest.html#formValueKeys())
>> 
>> So I assume your workaround will not work always (even if it does 
>> sometimes), since you assume, that request.formValueKeys() gives you the 
>> right order.
>> 
>> If you really care about the order of the key-value-pairs in the URI, I 
>> think you have to parse the query string manually. 
>> 
>> Take a look  at NSArray's wonderful method 
>> "componentsSeparatedByString(String string, String separator)" and apply it 
>> to your WORequest's method "queryString()" with separator "&". then a second 
>> time on each key-value-pair with separator "=" and then you should have the 
>> key at "objectAtIndex(1)" in the same order as within the queryString.
>> 
>> C.U.CW
>> 
>> P.S.: What's the reason you want to know the exact order? I haven't needed 
>> such a thing in many years of web development.
>> 
>> -- 
>> What are the three enemies of a programmer? Sunlight, oxygen, and the 
>> appalling roar of the birds.
>> 
>> 
>> On 21.05.2014, at 18:56, John Pollard  wrote:
>> 
>>> My workaround to put them back in order, using a TreeMap to sort on the 
>>> index position within the URI.
>>> 
>>>   NSArray formKeys = request().formValueKeys();
>>>   String uriStr = request().uri();
>>>   TreeMap orderedKeysMap = new TreeMap>> String>();
>>>   for(String nextKey : formKeys)
>>>   {
>>> orderedKeysMap.put(uriStr.indexOf(nextKey), nextKey);
>>>   }   
>>> 
>>> On 21 May 2014, at 17:26, John Pollard  wrote:
>>> 
>>>> Hi List,
>>>> 
>>>> I note that WORequest.formValues() jumbles up the order of the values from 
>>>> a url. Is there a simple way to get them in order, or do I need to parse 
>>>> them out myself? I understand that normally the order shouldn't be 
>>>> important, but I have what I feel is a reasonable purpose for needing to 
>>>> know the order.
>>>> 
>>>> Thanks
>>>> John
>>> 
>>> 
>>> ___
>>> 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/cw%40i4innovation.de
>>> 
>>> This email sent to c...@i4innovation.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: Retaining order of values in a url

2014-05-27 Thread John Pollard
Hi guys, on holiday so brief reply! My workaround code does actually only rely 
on the order in the URL itself, as it was solving that exact problem of 
formValueKeys() not being in order. The explanation of why needed is a bit 
involved. Thanks for the replies.
John

On 27 May 2014, at 05:00, Aaron Rosenzweig wrote:

> Hi Cristoph,
> 
> Order may be important to him if he has web server rewrite rules in place. 
> AARON ROSENZWEIG / Chat 'n Bike
> e:  aa...@chatnbike.com  t:  (301) 956-2319   
>   
> 
> On May 22, 2014, at 5:39 PM, CHRISTOPH WICK | i4innovation GmbH, Bonn 
>  wrote:
> 
>> Hi John,
>> 
>> If you read the documentation of WORequest's formValueKeys method, it says:
>> 
>> "The returned array is not sorted in any particular order, and is not 
>> necessarily sorted in the same order on successive invocations of this 
>> method."
>> 
>> (http://wocommunity.org/documents/javadoc/WebObjects/5.4.2/com/webobjects/appserver/WORequest.html#formValueKeys())
>> 
>> So I assume your workaround will not work always (even if it does 
>> sometimes), since you assume, that request.formValueKeys() gives you the 
>> right order.
>> 
>> If you really care about the order of the key-value-pairs in the URI, I 
>> think you have to parse the query string manually. 
>> 
>> Take a look  at NSArray's wonderful method 
>> "componentsSeparatedByString(String string, String separator)" and apply it 
>> to your WORequest's method "queryString()" with separator "&". then a second 
>> time on each key-value-pair with separator "=" and then you should have the 
>> key at "objectAtIndex(1)" in the same order as within the queryString.
>> 
>> C.U.CW
>> 
>> P.S.: What's the reason you want to know the exact order? I haven't needed 
>> such a thing in many years of web development.
>> 
>> -- 
>> What are the three enemies of a programmer? Sunlight, oxygen, and the 
>> appalling roar of the birds.
>> 
>> 
>> On 21.05.2014, at 18:56, John Pollard  wrote:
>> 
>>> My workaround to put them back in order, using a TreeMap to sort on the 
>>> index position within the URI.
>>> 
>>>   NSArray formKeys = request().formValueKeys();
>>>   String uriStr = request().uri();
>>>   TreeMap orderedKeysMap = new TreeMap>> String>();
>>>   for(String nextKey : formKeys)
>>>   {
>>> orderedKeysMap.put(uriStr.indexOf(nextKey), nextKey);
>>>   }   
>>> 
>>> On 21 May 2014, at 17:26, John Pollard  wrote:
>>> 
>>>> Hi List,
>>>> 
>>>> I note that WORequest.formValues() jumbles up the order of the values from 
>>>> a url. Is there a simple way to get them in order, or do I need to parse 
>>>> them out myself? I understand that normally the order shouldn't be 
>>>> important, but I have what I feel is a reasonable purpose for needing to 
>>>> know the order.
>>>> 
>>>> Thanks
>>>> John
>>> 
>>> 
>>> ___
>>> 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/cw%40i4innovation.de
>>> 
>>> This email sent to c...@i4innovation.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: Retaining order of values in a url

2014-05-21 Thread John Pollard
My workaround to put them back in order, using a TreeMap to sort on the index 
position within the URI.

NSArray formKeys = request().formValueKeys();
String uriStr = request().uri();
TreeMap orderedKeysMap = new TreeMap();
for(String nextKey : formKeys)
{
orderedKeysMap.put(uriStr.indexOf(nextKey), nextKey);
}   

On 21 May 2014, at 17:26, John Pollard  wrote:

> Hi List,
> 
> I note that WORequest.formValues() jumbles up the order of the values from a 
> url. Is there a simple way to get them in order, or do I need to parse them 
> out myself? I understand that normally the order shouldn't be important, but 
> I have what I feel is a reasonable purpose for needing to know the order.
> 
> Thanks
> John


 ___
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

Retaining order of values in a url

2014-05-21 Thread John Pollard
Hi List,

I note that WORequest.formValues() jumbles up the order of the values from a 
url. Is there a simple way to get them in order, or do I need to parse them out 
myself? I understand that normally the order shouldn't be important, but I have 
what I feel is a reasonable purpose for needing to know the order.

Thanks
John
 ___
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: ERXEC RR loop locking

2014-04-30 Thread John Pollard
er.extensions.ERXEC.safeLocking=true

On 29 Apr 2014, at 19:15, Chuck Hill  wrote:

> Does your app have the properties set that enable auto-locking?
> 
> On 2014-04-29, 4:38 AM, "John Pollard" wrote:
> 
> We have an application that uses ERXECs yet exhibits deadlock which appears 
> resolved with introduction of manual lock / unlock in at the start and end of 
> performAction.. within a subclass of ERXDefaultRouteController.
> 
> Is RR loop locking of ERXECs automatic for every EC, or just for default ECs?
> 
> My impression was that when using ERXECs, it is wise and unnecessary to do 
> any lock/unlock manually at all.
> 
> Thanks
> John
> ___
> 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%40global-village.net
> 
> This email sent to ch...@global-village.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

ERXEC RR loop locking

2014-04-29 Thread John Pollard
We have an application that uses ERXECs yet exhibits deadlock which appears 
resolved with introduction of manual lock / unlock in at the start and end of 
performAction.. within a subclass of ERXDefaultRouteController.

Is RR loop locking of ERXECs automatic for every EC, or just for default ECs?

My impression was that when using ERXECs, it is wise and unnecessary to do any 
lock/unlock manually at all.

Thanks
John
 ___
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: How to create a non-web EOF application

2014-04-29 Thread John Pollard
Thanks JR and David. I will use the lazy approach of overriding run() in 
Application.
I will also pass -WOLifebeatEnabled false as I don't want this application to 
talk to wotaskd
If anyone can tell me if this flag would achieve that, I would be interested 
and without it would the app in fact be pinging wotaskd and would wotaskd take 
any notice if it wasn't "in charge" of this application?
Thanks
John

On 25 Apr 2014, at 22:58, Ruggentaler, JR  wrote:

> Awhile back I had a plain Java app that included EOF. In eclipse it's just a 
> Java project with the following jars and a WO framework in the class path:
> 
> JavaJDBCAdaptor.framework
> javaeoaccess.jar
> javaeocontrol.jar
> javafoundation.jar
> JavaJDBCAdaptor.jar
> javaxml.jar
> 
> Here is the EOF initialization code:
> 
> public class EOFSetup
> {
> private static EOFSetup setupHandler;
> 
> protected NSArray modelNames;
> protected Properties props;
> 
> public static void initSharedHandler(Properties props, NSArray modelNames)
> {
> setupHandler = new EOFSetup(props, modelNames);
> }
> 
> public static EOFSetup getSetupHandler()
> {
> return setupHandler;
> }
> 
> public EOFSetup(Properties props, NSArray modelNames)
> {
> this.modelNames = modelNames;
> this.props = props;
> 
> createDbContextStacks();
> }
> 
> /**
> * Overrides connection dictionary of this database context's adaptor
> * to the one specified in defaults if applicable.
> */
> protected void createDbContextStacks()
> {
> EOEditingContext ec = EOSharedEditingContext.defaultSharedEditingContext();
> 
> EOObjectStoreCoordinator storeCoord =
> EOObjectStoreCoordinator.defaultCoordinator();
> EOModelGroup mg = 
> EOModelGroup.defaultGroup();
> 
> // see if we have custom connection dictionary
> //NSDictionary altConnectInfo = props.eofAltConnection();
> NSMutableDictionary altConnectInfo = new NSMutableDictionary();
> 
> String[] connectionPorops = new String[] 
> {
> 
> "URL", "password", "username"
> };
> 
> for (int i = 0; i < connectionPorops.length; i++)
> {
> 
> // Allow command line override of connection properties
> if (null != System.getProperty(connectionPorops[i]))
> {
> 
> altConnectInfo.setObjectForKey(System.getProperty(connectionPorops[i]),
> 
> connectionPorops[i]);
> 
> Log.logI("Connection property '" + connectionPorops[i] +
> 
> "' changed to '" + System.getProperty(connectionPorops[i]) + "'");
> }
> }
> 
> if (altConnectInfo != null)
> {
> Log.logI("Using alt. connection info.");
> }
> 
> for (int i = 0, iMax = modelNames.count(); i < iMax; i++)
> {
> try {
> mg.addModelWithPathURL(new File(modelNames.objectAtIndex(i) + 
> ".eomodeld").toURI().toURL());
> }
> catch (MalformedURLException x) {
> Log.logX(x);
> System.exit(-1);
> }
> 
> EOModel aModel = mg.modelNamed((String)modelNames.objectAtIndex(i));
> 
> if (null == aModel) {
> Log.logE("Model '" + modelNames.objectAtIndex(i) + "' not found!");
> System.exit(-1);
> }
> 
> Log.logI("Initializing model: " + modelNames.objectAtIndex(i));
> 
> // merge model connection dictionary with alt dictionary
> // this way, only certain keys can be overriden in alt.
> NSMutableDictionary dict = null;
> 
> if (null != altConnectInfo && null != aModel)
> {
> dict = new NSMutableDictionary(aModel.connectionDictionary());
> dict.addEntriesFromDictionary(altConnectInfo);
> }
> 
> // create EOF stack with new connection dict...
> EODatabaseContext dbContext =
> EODatabaseContext.forceConnectionWithModel(
>  aModel,
>  dict,
>  new EOEditingContext(storeCoord));
> 
> 
> storeCoord.addCooperatingObjectStore(dbContext);
> 
> // this line is important !!!
> // this will force shared editing contexts to be fetched...
> EODatabaseContext.registeredDatabaseContextForModel(aModel, ec);
> }
> }
> }
> 
> JR
> On 4/25/14 10:03 AM, "David Avendasora"  wrote:
> 
>> Sounds like what would have been a “Command Line App” in the old Project 
>> Builder days…
>> 
>> I’d start with a Wonder app and strip out all the frameworks that you don’t 
>> want - maybe even start with the JavaClient project template and just delete 
>> all the client-side stuff, or the ERRest application and yank out the ERRest 
>> framework.

How to create a non-web EOF application

2014-04-25 Thread John Pollard
Hi List,

What is the sensible way to create a new application in Eclipse that uses EOF 
and a model, plus draws on Wonder bits and bobs, but isn't a web app i.e. has 
no web front end? I think Eclipse once had an EOF Application type, or I may 
have mis-remembered that.

I can create a new Wonder app in eclipse and just not have any request / 
responses and launch my code from Application(), but that feels a bit wrong. I 
don't want it to talk to wotaskd or be started from JavaMonitor.

Thanks in advance.

John
 ___
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: ERXObjectStoreCoordinator dispose not releasing database connection?

2014-03-25 Thread John Pollard
Thanks Aaron,

In mysql I use:
show status like "Threads_connected";

to see the two connections added when I create an OSC in the session, key 
elements being:

objectStoreCoordinator = new ERXObjectStoreCoordinator(true); // true = close 
db connections on closing
this.ec = ERXEC.newEditingContext(objectStoreCoordinator);
setDefaultEditingContext(this.ec);

Then to tidy up in terminate I use:

objectStoreCoordinator.dispose();

which invokes ERXEOAccessUtilities.closeDatabaseConnections() on itself

Whether or not I dispose of the ec as well, or call 
ERXEOAccessUtilities.closeDatabaseConnections() on the osc myself, I still get 
only one of the database connections dropped.

John

On 16 Mar 2014, at 09:35, Aaron Rosenzweig  wrote:

> I’m sorry John,
> 
> I’m traveling in a faraway land and have had spotty Internet until now.
> 
> Short answer - I don’t know, if you did it right both (2) DB connections 
> should be gone now. 
> 
> Long answer below:
> 
> Doing “dispose” of the ObjectStoreCoordinator (not the EC) should release the 
> primary DB connection that your WOApp was using.
> 
> To dispose of the 2nd “hidden” connection that was only used to get the JDBC 
> info and then not used… you must use the Wonder utilities call. 
> 
> My guess is that if you are using the Wonder utilities and see one of your 
> two connections dropping then your problem is that you are disposing the EC 
> by accident instead of the EC’s ObjectStoreCoordinator. It has to be the 
> “Coordinator” that you are disposing because that is what holds the 
> connection to the DB, not the EC. 
> 
> Double check :-)
> 
> Cheers,
> AARON ROSENZWEIG / Chat 'n Bike
> e:  aa...@chatnbike.com  t:  (301) 956-2319   
>   
> 
> On Mar 14, 2014, at 10:16 PM, John Pollard  wrote:
> 
>> I see that constructing ERXObjectStoreCoordinator(true) is another way to 
>> work around the issue of closing the db connection.
>> However, I still get two connections created and only one closed when 
>> disposed.
>> John
>> 
>> On 13 Mar 2014, at 14:33, John Pollard  wrote:
>> 
>>> Thanks Aaron, half way there, that closed one of the two connections, but 
>>> neither of mine were closing so still one left open after the following 
>>> code?
>>> John
>>> 
>>> On 13 Mar 2014, at 13:04, Aaron Rosenzweig  wrote:
>>> 
>>>> Hi John,
>>>> 
>>>> Yes, that’s a known Apple bug. It creates an extra one to read “Database 
>>>> info” and then never releases it. There is a Wonder method to close 
>>>> database connections like that.
>>>> 
>>>> ec.dispose();
>>>> ERXEOAccessUtilities.closeDatabaseConnections(objectStore);
>>>> objectStore.dispose();
>>>> 
>>>> Cheers,
>>>> AARON ROSENZWEIG / Chat 'n Bike
>>>> e:  aa...@chatnbike.com  t:  (301) 956-2319
>>>>
>>>> 
>>>> On Mar 13, 2014, at 8:40 AM, John Pollard  wrote:
>>>> 
>>>>> Hi List,
>>>>> 
>>>>> I have noticed that the database connections (seen using "show 
>>>>> processlist" within mysql) are not being released.
>>>>> I create my own ERXObjectStoreCoordinator and this results in two new 
>>>>> mysql connections appearing.
>>>>> When later I call dispose() on that ERXObjectStoreCoordinator, the 
>>>>> database connections are not being freed up.
>>>>> The dispose() call is in a Session.terminate() method, called after 
>>>>> super.terminate().
>>>>> 
>>>>> Thanks for any thoughts on this.
>>>>> 
>>>>> John
>>>>> ___
>>>>> 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/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: ERXObjectStoreCoordinator dispose not releasing database connection?

2014-03-14 Thread John Pollard
I see that constructing ERXObjectStoreCoordinator(true) is another way to work 
around the issue of closing the db connection.
However, I still get two connections created and only one closed when disposed.
John

On 13 Mar 2014, at 14:33, John Pollard  wrote:

> Thanks Aaron, half way there, that closed one of the two connections, but 
> neither of mine were closing so still one left open after the following code?
> John
> 
> On 13 Mar 2014, at 13:04, Aaron Rosenzweig  wrote:
> 
>> Hi John,
>> 
>> Yes, that’s a known Apple bug. It creates an extra one to read “Database 
>> info” and then never releases it. There is a Wonder method to close database 
>> connections like that.
>> 
>> ec.dispose();
>> ERXEOAccessUtilities.closeDatabaseConnections(objectStore);
>> objectStore.dispose();
>> 
>> Cheers,
>> AARON ROSENZWEIG / Chat 'n Bike
>> e:  aa...@chatnbike.com  t:  (301) 956-2319  
>>  
>> 
>> On Mar 13, 2014, at 8:40 AM, John Pollard  wrote:
>> 
>>> Hi List,
>>> 
>>> I have noticed that the database connections (seen using "show processlist" 
>>> within mysql) are not being released.
>>> I create my own ERXObjectStoreCoordinator and this results in two new mysql 
>>> connections appearing.
>>> When later I call dispose() on that ERXObjectStoreCoordinator, the database 
>>> connections are not being freed up.
>>> The dispose() call is in a Session.terminate() method, called after 
>>> super.terminate().
>>> 
>>> Thanks for any thoughts on this.
>>> 
>>> John
>>> ___
>>> 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: ERXObjectStoreCoordinator dispose not releasing database connection?

2014-03-13 Thread John Pollard
Hi Alexander,

Thanks for the tip. I have just tried this additional flag and on exiting my JC 
app, the server side threw this:

Component: com.webobjects.eodistribution.WOJavaClientApplet
Exception message: endUndoGrouping: undo manager is in invalid state, 
endUndoGrouping called with no matching begin
Stack Trace...
java.lang.IllegalStateException: endUndoGrouping: undo manager is in invalid 
state, endUndoGrouping called with no matching begin

John

On 13 Mar 2014, at 13:48, Alexander Spohr  wrote:

>> On Mar 13, 2014, at 8:40 AM, John Pollard  wrote:
>> 
>>> Hi List,
>>> 
>>> I have noticed that the database connections (seen using "show processlist" 
>>> within mysql) are not being released.
>>> I create my own ERXObjectStoreCoordinator and this results in two new mysql 
>>> connections appearing.
>>> When later I call dispose() on that ERXObjectStoreCoordinator, the database 
>>> connections are not being freed up.
>>> The dispose() call is in a Session.terminate() method, called after 
>>> super.terminate().
> 
> 
> Am 13.03.2014 um 14:04 schrieb Aaron Rosenzweig :
> 
>> Hi John,
>> 
>> Yes, that’s a known Apple bug. It creates an extra one to read “Database 
>> info” and then never releases it. There is a Wonder method to close database 
>> connections like that.
>> 
>> ec.dispose();
>> ERXEOAccessUtilities.closeDatabaseConnections(objectStore);
>> objectStore.dispose();
> 
> 
> Please be aware that this bug might kill your database after a while!
> 
> At least using PostgreSQL, the database will keep all changes since the start 
> of the app, as long as the „Database Info“ transaction is not committed - 
> which it never will be.
> 
> To avoid this we append „?useBundledJdbcInfo=true“ to all database urls.
> 
>   atze
> 


 ___
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: ERXObjectStoreCoordinator dispose not releasing database connection?

2014-03-13 Thread John Pollard
Thanks Aaron, half way there, that closed one of the two connections, but 
neither of mine were closing so still one left open after the following code?
John

On 13 Mar 2014, at 13:04, Aaron Rosenzweig  wrote:

> Hi John,
> 
> Yes, that’s a known Apple bug. It creates an extra one to read “Database 
> info” and then never releases it. There is a Wonder method to close database 
> connections like that.
> 
> ec.dispose();
> ERXEOAccessUtilities.closeDatabaseConnections(objectStore);
> objectStore.dispose();
> 
> Cheers,
> AARON ROSENZWEIG / Chat 'n Bike
> e:  aa...@chatnbike.com  t:  (301) 956-2319   
>   
> 
> On Mar 13, 2014, at 8:40 AM, John Pollard  wrote:
> 
>> Hi List,
>> 
>> I have noticed that the database connections (seen using "show processlist" 
>> within mysql) are not being released.
>> I create my own ERXObjectStoreCoordinator and this results in two new mysql 
>> connections appearing.
>> When later I call dispose() on that ERXObjectStoreCoordinator, the database 
>> connections are not being freed up.
>> The dispose() call is in a Session.terminate() method, called after 
>> super.terminate().
>> 
>> Thanks for any thoughts on this.
>> 
>> John
>> ___
>> 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

ERXObjectStoreCoordinator dispose not releasing database connection?

2014-03-13 Thread John Pollard
Hi List,

I have noticed that the database connections (seen using "show processlist" 
within mysql) are not being released.
I create my own ERXObjectStoreCoordinator and this results in two new mysql 
connections appearing.
When later I call dispose() on that ERXObjectStoreCoordinator, the database 
connections are not being freed up.
The dispose() call is in a Session.terminate() method, called after 
super.terminate().

Thanks for any thoughts on this.

John
 ___
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: Using type="image" on WOSubmitButton

2014-03-11 Thread John Pollard
Hi Alexander,
Super, that works, src remains as I set it with WOImageButton, many thanks.
Out of interest, why does WOSubmitButton spot my src="..." setting and convert 
it to a WO type resource path?
Thanks
John

On 11 Mar 2014, at 12:23, Alexander Spohr  wrote:

> Would WOImageButton do what you need?
> 
> 
> Am 11.03.2014 um 13:17 schrieb John Pollard :
> 
>> Hi List,
>> 
>> I am displaying a button with my own image from a webserver image resource 
>> file by setting type="image" and src="path/to/file.jpg" on WOSubmitButton.
>> 
>> If I set the src attribute, it then gets mangled at some stage to turn it 
>> into a WO type of path, which fails with ...wodata=ERROR_NOT_FOUND...
>> 
>> I can fix this by using:
>> 
>> otherTagString = "src=\"path.\""
>> 
>> but is there a nicer way to specify the src path of my own choosing, without 
>> WOSubmitButton trying to turn it into a WO style of resource path?
>> 
>> Thanks
>> John
>> ___
>> 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/atze%40freeport.de
>> 
>> This email sent to a...@freeport.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

Using type="image" on WOSubmitButton

2014-03-11 Thread John Pollard
Hi List,

I am displaying a button with my own image from a webserver image resource file 
by setting type="image" and src="path/to/file.jpg" on WOSubmitButton.

If I set the src attribute, it then gets mangled at some stage to turn it into 
a WO type of path, which fails with ...wodata=ERROR_NOT_FOUND...

I can fix this by using:

otherTagString = "src=\"path.\""

but is there a nicer way to specify the src path of my own choosing, without 
WOSubmitButton trying to turn it into a WO style of resource path?

Thanks
John
 ___
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: validateXXX not called on a relationship set to null

2014-03-10 Thread John Pollard
Chuck,

On 4 Mar 2014, at 17:42, Chuck Hill  wrote:

> Hi John,
> 
> On 2014-03-04, 4:14 AM, "John Pollard" wrote:
> 
> Chuck,
> 
> Ok, will put a trap in the setXXX method and see if that catches it if it 
> happens again.
> 
> I am not quite clear on what you mean about checking relationships (plural) 
> to this entity in the model.
> My base object is Transaction
> My to-one related object is Organisation
> 
> Is there a to-many from Organization to Transaction?

A couple. One has a Deny delete rule. The other is a many-many and has a 
Nullify delete rule, but the target object type, Transaction, is never deleted 
so these shouldn't come into play.

> 
> 
> This relationship does have a Delete Rule of Nullify. I understood this to 
> mean that if the related Organisation is deleted, we will be left pointing to 
> null. That could explain it, though I am certain that the related object was 
> never deleted.
> 
> Could something else have cascade deleted it?

I grepped out all my cascade rules in the model plist files and couldn't see 
any that I could suspect of this crime.
If I work out what was triggering it, I will report back on this thread, but 
for now, I am ok with my workaround, many thanks.

John

> 
> 
> 
> I have in any case set it to Deny instead, which I take to mean disallow the 
> deletion of the related object while I am pointing at it.
> 
> Yes.
> 
> 
> 
> With Nullify delete rules, would the setXXX get called, but the validateXXX 
> not called?
> 
> I am not certain.  If EOF is removing and nulling relationships during 
> saveChanges(), it may not call the validateXXX methods.  Honestly, I forget.
> 
> 
> Chuck
> 
> 
> 
> Thanks
> John
> 
> On 27 Feb 2014, at 16:56, Chuck Hill  wrote:
> 
>> Try the set… method then.  Also check the relationships to this entity in 
>> the model.  Is one set to Nullify?  It could be EOF doing this as part of a 
>> save.
>> 
>> Chuck
>> 
>> On 2/27/2014, 5:43 AM, "John Pollard" wrote:
>> 
>> Hi List,
>> 
>> I am trying to pin down where a to-one relationship is getting set to null 
>> inappropriately.
>> 
>> I added validateMyRelationship() to trap and throw and this is triggered ok 
>> when the base object is created / updated.
>> 
>> However, it wasn't called when the relationship was set to null and hence 
>> the update proceeded, bypassing my trap.
>> 
>> Does the above scenario ring any bells; why isn't validateMyRelationship() 
>> called when I can see the update request to the database follows.
>> 
>> I can't set the relationship to mandatory as in some circumstances null is 
>> valid, though it should never change to null after it has been set.
>> 
>> Thanks
>> John
>> 
>> 
>> 
>> ___
>> 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%40global-village.net
>> 
>> This email sent to ch...@global-village.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: validateXXX not called on a relationship set to null

2014-03-04 Thread John Pollard
Chuck,

Ok, will put a trap in the setXXX method and see if that catches it if it 
happens again.

I am not quite clear on what you mean about checking relationships (plural) to 
this entity in the model.
My base object is Transaction
My to-one related object is Organisation
This relationship does have a Delete Rule of Nullify. I understood this to mean 
that if the related Organisation is deleted, we will be left pointing to null. 
That could explain it, though I am certain that the related object was never 
deleted.
I have in any case set it to Deny instead, which I take to mean disallow the 
deletion of the related object while I am pointing at it.

With Nullify delete rules, would the setXXX get called, but the validateXXX not 
called?

Thanks
John

On 27 Feb 2014, at 16:56, Chuck Hill  wrote:

> Try the set… method then.  Also check the relationships to this entity in the 
> model.  Is one set to Nullify?  It could be EOF doing this as part of a save.
> 
> Chuck
> 
> On 2/27/2014, 5:43 AM, "John Pollard" wrote:
> 
> Hi List,
> 
> I am trying to pin down where a to-one relationship is getting set to null 
> inappropriately.
> 
> I added validateMyRelationship() to trap and throw and this is triggered ok 
> when the base object is created / updated.
> 
> However, it wasn't called when the relationship was set to null and hence the 
> update proceeded, bypassing my trap.
> 
> Does the above scenario ring any bells; why isn't validateMyRelationship() 
> called when I can see the update request to the database follows.
> 
> I can't set the relationship to mandatory as in some circumstances null is 
> valid, though it should never change to null after it has been set.
> 
> Thanks
> John
> 
> 
> 
> ___
> 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%40global-village.net
> 
> This email sent to ch...@global-village.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: validateXXX not called on a relationship set to null

2014-03-04 Thread John Pollard
Please see below...

On 27 Feb 2014, at 17:01, Ramsey Gurley  wrote:

> 
> On Feb 27, 2014, at 6:43 AM, John Pollard  wrote:
> 
>> Hi List,
>> 
>> I am trying to pin down where a to-one relationship is getting set to null 
>> inappropriately.
> 
> 
> Override takeStoredValueForKey on the EO and look for the null value for that 
> key. That will pinpoint the moment it is being set to null.

Ok thanks. For a new object where the relationship is null (not set), the 
validateXXX does get called to check the null (good) and no call is made to 
setXXX or takeStoredValueForKey (makes sense).

> 
> 
>> I added validateMyRelationship() to trap and throw and this is triggered ok 
>> when the base object is created / updated.
>> 
>> However, it wasn't called when the relationship was set to null and hence 
>> the update proceeded, bypassing my trap.
> 
> 
> It did or did not get called when updating? These two sentences seem 
> contradictory.

The first sentence applies to when the relationship is set to something, when 
it does get called.
The second sentence applies to the problem scenario I have, where the 
relationship is being nullified having previously been set to something, but 
with no call to validateXXX prior to the sql hitting the database setting the 
relationship to null.
Perhaps Chuck has sniffed it out with the Nullify relationship rule, will reply 
to his post separately.

> 
> validateXXX will be called when you call ec.saveChanges() which calls 
> validateForSave() which calls your validateXXX methods if they exist. Is it 
> possible you override validateForSave or validateForUpdate and forget to call 
> super? That would probably disable your validateXXX methods.

I do have validateForSave() which is calling super. But in my problem scenario, 
the relationship is changing to null without any validateXXX.

I don't yet know whether setXXX is called in my problem scenario (as I don't 
know how to replicate the problem scenario). I will add logging so 

> 
> The other way validateXXX is called is when validateTakeValueForKey is 
> called. That is called automatically by component bindings. So if you bind a 
> WOComponent directly to your EO’s attribute/relationship, it gets called 
> there.

Ok, thanks

John

> 
> If you just call setMyRelationship(), it is not called unless you’ve added 
> validateTakeValueForKey to your eogen or something.
> 
> 
>> Does the above scenario ring any bells; why isn't validateMyRelationship() 
>> called when I can see the update request to the database follows.
>> 
>> I can't set the relationship to mandatory as in some circumstances null is 
>> valid, though it should never change to null after it has been set.
>> 
>> Thanks
>> John
> 
> 
> You have to be careful if this is not enforced in the database. You may 
> validate it perfectly, but if the database allows it, you can end up in cases 
> where your data is hosed by the Objective-C/PHP/Rails team down the hall. 
> Then your validation methods start barfing out errors and everyone blames 
> YOUR apps. “But it works fine on blahblah app! Why is your java crap 
> crashing? What are you? Incompetent?”
> 
> 
> 


 ___
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

validateXXX not called on a relationship set to null

2014-02-27 Thread John Pollard
Hi List,

I am trying to pin down where a to-one relationship is getting set to null 
inappropriately.

I added validateMyRelationship() to trap and throw and this is triggered ok 
when the base object is created / updated.

However, it wasn't called when the relationship was set to null and hence the 
update proceeded, bypassing my trap.

Does the above scenario ring any bells; why isn't validateMyRelationship() 
called when I can see the update request to the database follows.

I can't set the relationship to mandatory as in some circumstances null is 
valid, though it should never change to null after it has been set.

Thanks
John



 ___
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: ERXOptGroupPopupButton

2014-02-18 Thread John Pollard
Reading my email back, just to be clear I didn't mean Better as in 
ERXOptGroupPopupButton wasn't good enough! I just meant better than 
WOPopUpButton and not specifically using optgroups.

On 18 Feb 2014, at 17:42, John Pollard  wrote:

> I guess ERXOptGroupPopupButton ought to be ETXBetterPopUpButton and allow 
> group to be optional instead of required, then the other goodies can apply to 
> a select without optgroups. I took a copy and did that.
> Many thanks
> John
> 
> On 18 Feb 2014, at 16:22, Chuck Hill  wrote:
> 
>> No, not that I am aware of.
>> 
>> On 2/18/2014, 4:31 AM, "John Pollard" wrote:
>> 
>> Chuck (or anyone),
>> I see you added an itemDisabled binding to ERXOptGroupPopupButton.
>> Is there a way currently to disable items on non optgroup select popups? I 
>> couldn't see an ERXPopupButton for example, though I do see a PopupButton 
>> class in ERXPatcher.
>> Thanks
>> John
>> 
>> On 11 Feb 2014, at 19:28, Chuck Hill  wrote:
>> 
>>> Hi John,
>>> 
>>> I am the guilty party.  It is in that package so that it has package access 
>>> (I think, or it was to be consistent with the other controls).  While it 
>>> was put together as a quick hack, I have had had it in production for 3+ 
>>> years now.  “Quick hack” means that it works but is probably not pretty.
>>> 
>>> Chuck
>>> 
>>> 
>>> On 2/11/2014, 6:22 AM, "John Pollard" wrote:
>>> 
>>> Hi List,
>>> 
>>> I need to implement a  with  to give more structured 
>>> popup selections like 
>>> http://www.w3schools.com/TAGS/tryit.asp?filename=tryhtml_optgroup
>>> 
>>> I see Wonder has ERXOptGroupPopupButton but that it is in package 
>>> com.webobjects.appserver._private;
>>> which doesn't sound very welcoming. I note the comments say it is put 
>>> together as a "quick hack".
>>> 
>>> Thanks for any insight in using it, seems a pity to reinvent the wheel.
>>> 
>>> John
>>> ___
>>> 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%40global-village.net
>>> 
>>> This email sent to ch...@global-village.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/john%40pollardweb.com
> 
> This email sent to j...@pollardweb.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: ERXOptGroupPopupButton

2014-02-18 Thread John Pollard
I guess ERXOptGroupPopupButton ought to be ETXBetterPopUpButton and allow group 
to be optional instead of required, then the other goodies can apply to a 
select without optgroups. I took a copy and did that.
Many thanks
John

On 18 Feb 2014, at 16:22, Chuck Hill  wrote:

> No, not that I am aware of.
> 
> On 2/18/2014, 4:31 AM, "John Pollard" wrote:
> 
> Chuck (or anyone),
> I see you added an itemDisabled binding to ERXOptGroupPopupButton.
> Is there a way currently to disable items on non optgroup select popups? I 
> couldn't see an ERXPopupButton for example, though I do see a PopupButton 
> class in ERXPatcher.
> Thanks
> John
> 
> On 11 Feb 2014, at 19:28, Chuck Hill  wrote:
> 
>> Hi John,
>> 
>> I am the guilty party.  It is in that package so that it has package access 
>> (I think, or it was to be consistent with the other controls).  While it was 
>> put together as a quick hack, I have had had it in production for 3+ years 
>> now.  “Quick hack” means that it works but is probably not pretty.
>> 
>> Chuck
>> 
>> 
>> On 2/11/2014, 6:22 AM, "John Pollard" wrote:
>> 
>> Hi List,
>> 
>> I need to implement a  with  to give more structured popup 
>> selections like 
>> http://www.w3schools.com/TAGS/tryit.asp?filename=tryhtml_optgroup
>> 
>> I see Wonder has ERXOptGroupPopupButton but that it is in package 
>> com.webobjects.appserver._private;
>> which doesn't sound very welcoming. I note the comments say it is put 
>> together as a "quick hack".
>> 
>> Thanks for any insight in using it, seems a pity to reinvent the wheel.
>> 
>> John
>> ___
>> 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%40global-village.net
>> 
>> This email sent to ch...@global-village.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: ERXOptGroupPopupButton

2014-02-18 Thread John Pollard
Chuck (or anyone),
I see you added an itemDisabled binding to ERXOptGroupPopupButton.
Is there a way currently to disable items on non optgroup select popups? I 
couldn't see an ERXPopupButton for example, though I do see a PopupButton class 
in ERXPatcher.
Thanks
John

On 11 Feb 2014, at 19:28, Chuck Hill  wrote:

> Hi John,
> 
> I am the guilty party.  It is in that package so that it has package access 
> (I think, or it was to be consistent with the other controls).  While it was 
> put together as a quick hack, I have had had it in production for 3+ years 
> now.  “Quick hack” means that it works but is probably not pretty.
> 
> Chuck
> 
> 
> On 2/11/2014, 6:22 AM, "John Pollard" wrote:
> 
> Hi List,
> 
> I need to implement a  with  to give more structured popup 
> selections like 
> http://www.w3schools.com/TAGS/tryit.asp?filename=tryhtml_optgroup
> 
> I see Wonder has ERXOptGroupPopupButton but that it is in package 
> com.webobjects.appserver._private;
> which doesn't sound very welcoming. I note the comments say it is put 
> together as a "quick hack".
> 
> Thanks for any insight in using it, seems a pity to reinvent the wheel.
> 
> John
> ___
> 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%40global-village.net
> 
> This email sent to ch...@global-village.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: ERXOptGroupPopupButton

2014-02-11 Thread John Pollard
I am grateful to have use of it, many thanks.
John

On 11 Feb 2014, at 19:28, Chuck Hill  wrote:

> Hi John,
> 
> I am the guilty party.  It is in that package so that it has package access 
> (I think, or it was to be consistent with the other controls).  While it was 
> put together as a quick hack, I have had had it in production for 3+ years 
> now.  “Quick hack” means that it works but is probably not pretty.
> 
> Chuck
> 
> 
> On 2/11/2014, 6:22 AM, "John Pollard" wrote:
> 
> Hi List,
> 
> I need to implement a  with  to give more structured popup 
> selections like 
> http://www.w3schools.com/TAGS/tryit.asp?filename=tryhtml_optgroup
> 
> I see Wonder has ERXOptGroupPopupButton but that it is in package 
> com.webobjects.appserver._private;
> which doesn't sound very welcoming. I note the comments say it is put 
> together as a "quick hack".
> 
> Thanks for any insight in using it, seems a pity to reinvent the wheel.
> 
> John
> ___
> 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%40global-village.net
> 
> This email sent to ch...@global-village.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: ERXOptGroupPopupButton

2014-02-11 Thread John Pollard
Sorry, I should have just tried and now I have...it works, I guess the package 
being private doesn't stop me using the component.

On 11 Feb 2014, at 14:22, John Pollard  wrote:

> Hi List,
> 
> I need to implement a  with  to give more structured popup 
> selections like 
> http://www.w3schools.com/TAGS/tryit.asp?filename=tryhtml_optgroup
> 
> I see Wonder has ERXOptGroupPopupButton but that it is in package 
> com.webobjects.appserver._private;
> which doesn't sound very welcoming. I note the comments say it is put 
> together as a "quick hack".
> 
> Thanks for any insight in using it, seems a pity to reinvent the wheel.
> 
> John
> ___
> 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/john%40pollardweb.com
> 
> This email sent to j...@pollardweb.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

ERXOptGroupPopupButton

2014-02-11 Thread John Pollard
Hi List,

I need to implement a  with  to give more structured popup 
selections like 
http://www.w3schools.com/TAGS/tryit.asp?filename=tryhtml_optgroup

I see Wonder has ERXOptGroupPopupButton but that it is in package 
com.webobjects.appserver._private;
which doesn't sound very welcoming. I note the comments say it is put together 
as a "quick hack".

Thanks for any insight in using it, seems a pity to reinvent the wheel.

John
 ___
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

in server exception strings

2014-02-04 Thread John Pollard
Hi List,

For deny delete rules, exception messages contain embedded html formatting, for 
example:

Cannot delete this Organisation. You should first delete items in its 
Blah Blahs Related Objects

As I present these in a Java Client window, rather than a browser, they look 
odd. Is there a quick work-around to not have the html formatting in error 
messages.

Many thanks,
John
 ___
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 and Java Client

2013-10-14 Thread John Pollard
John/David, many thanks for your responses. On reflection with what you have 
said, I will probably leave well alone on the client side for now and keep to 
vanilla WO. There have always been JC bugs, though workarounds always possible 
and I find it very flexible and effective, using a Swing interface 
(JFormDesigner is great). I am sure new technologies are finally overtaking 
WO/JC but I still feel there is life in the old dog yet!

On 11 Oct 2013, at 23:00, John Huss  wrote:

> Yes, Wonder will work on the client.  But like David said it is somewhat of a 
> mine-field because the some code in Wonder is not client-safe, but you won't 
> know until it blows up.
> 
> Sounds like you already have a JavaClient app.  If so, go for it.  If you're 
> writing something new or are open to more change you would probably be better 
> off using Cayenne along with it's ROP support which is an alternative to EOF 
> for Java client apps.  It has bugs too, but probably not as many as 
> JavaClient and at least you can fix them.
> 
> John
> 
> 
> On Fri, Oct 11, 2013 at 3:37 AM, John Pollard  wrote:
> Has anyone used any Wonder frameworks in a Java Client application?
> I have a long-standing JC app which uses Wonder on the server side, but not 
> on the client side; what if anything from Wonder might be useful on the 
> client?
> 
> These are the WO jars the client uses at present:
> 
> 
> 
> 
> 
> 
> 
> 
> Many thanks,
> John
>  ___
> 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/johnthuss%40gmail.com
> 
> This email sent to johnth...@gmail.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

Wonder and Java Client

2013-10-11 Thread John Pollard
Has anyone used any Wonder frameworks in a Java Client application?
I have a long-standing JC app which uses Wonder on the server side, but not on 
the client side; what if anything from Wonder might be useful on the client?

These are the WO jars the client uses at present:








Many thanks,
John
 ___
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

Intermittent hostname null in URL

2013-08-05 Thread John Pollard
Every now and then when running a Wonder-based WO app in development with 
auto-open browser, the app URL comes up as http://null... instead of my local 
machine name http://mymac.local/...
If I manually change the null to mymac.local all is well
I thought I had seen an article on this topic but can't find it now. Anyone 
else had this? It can work, stop working and start working again without any 
intervention from me.

Thanks, John
 ___
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: JEE Juno Eclipse (with axis2)+ WOLips

2013-06-18 Thread John Pollard
I have now found the 3.7 (Indigo) JEE version of Eclipse: 
http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/indigo/SR2/eclipse-jee-indigo-SR2-macosx-cocoa-x86_64.tar.gz
So will go with that and stick with the stable wolips 3.7
Thanks, John

On 18 Jun 2013, at 10:09, John Pollard  wrote:

> I am having a look at Axis2 for SOAP web services which I need to use to 
> connect to a third party web service. I found that I need the JEE version of 
> Eclipse (Juno) rather than the Classic 3.7 version for the axis2 plugins to 
> work. Will I be able to use wolips / project wonder in the JEE Juno Eclipse 
> and if so, which wolips update site should I use for the best chance of 
> success?
> Many thanks, John


 ___
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

JEE Juno Eclipse (with axis2)+ WOLips

2013-06-18 Thread John Pollard
I am having a look at Axis2 for SOAP web services which I need to use to 
connect to a third party web service. I found that I need the JEE version of 
Eclipse (Juno) rather than the Classic 3.7 version for the axis2 plugins to 
work. Will I be able to use wolips / project wonder in the JEE Juno Eclipse and 
if so, which wolips update site should I use for the best chance of success?
Many thanks, John
 ___
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: html5 input in a form "required"

2013-04-18 Thread John Pollard
Perfect, thanks

On 18 Apr 2013, at 18:55, Kieran Kelleher  wrote:

> Try this:
> 
> HTML:
> ---
>   
> 
> WOD:
> ---
> TextField : WOTextField {
>   value = aValue;
>   otherTagString = "required";
> }
> 
> 
> otherTagString binding is just a string value that is appended to the opening 
> tag attributes as is.
> 
> 
> 
> On Apr 18, 2013, at 1:42 PM, John Pollard  wrote:
> 
>> I am certainly in debt to the community, but I suspect I would hinder more 
>> than help.
>> I can see er.extensions.components._private.ERXWOTextField which I 
>> understand automatically replaces the webobjects WOTextField class... is 
>> this what would need updating? I can't say I would be confident to do so. 
>> All components I have worked with have an html file and wod etc. 
>> 
>> I have also noticed that Wonder also has ERXWOInput derived from WOInput. 
>> Then ERXWOTelField and friends hang off WOInput. I might have expected these 
>> to derive from ERXWOTextField...but that may just illustrate my lack of 
>> understanding.
>> 
>> On 18 Apr 2013, at 16:46, Pascal Robert  wrote:
>> 
>>> And contribute the subclass to the community.
>>> 
>>>> You would need to extend it in Wonder, ERXWOTextField.  Add an isRequired 
>>>> binding and then append the required in appendToResponse.  Should be 
>>>> trivial.
>>>> 
>>>> Chuck
>>>> 
>>>> 
>>>> On 2013-04-18, at 8:31 AM, John Pollard wrote:
>>>> 
>>>>> I should have said, when I do this:
>>>>> 
>>>>> 
>>>>>  >>>> data-theme="e" required/>
>>>>> 
>>>>> the generated HTML comes out as required="e", apparently picking up the 
>>>>> last parameter that did have a value.
>>>>> 
>>>>> On 18 Apr 2013, at 16:23, John Pollard  wrote:
>>>>> 
>>>>>> Can WOTextField or something similar handle the "required" in:
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> i.e. telling the browser that a field is required, it has not value 
>>>>>> assigned to it
>>>>>> 
>>>>>> I couldn't see a Wonder way for this.
>>>>>> Many thanks
>>>>>> John
>>>>>> ___
>>>>>> 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/john%40pollardweb.com
>>>>>> 
>>>>>> This email sent to j...@pollardweb.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/chill%40global-village.net
>>>>> 
>>>>> This email sent to ch...@global-village.net
>>>> 
>>>> -- 
>>>> Chuck Hill 
>>>> Executive Managing Partner, VP Development and Technical Services
>>>> 
>>>> Practical WebObjects - for developers who want to increase their overall 
>>>> knowledge of WebObjects or who are trying to solve specific problems.
>>>> http://www.global-village.net/gvc/practical_webobjects
>>>> 
>>>> Global Village Consulting ranks 13th in 2012 in BIV's Top 100 Fastest 
>>>> Growing Companies in B.C! 
>>>> Global Village Consulting ranks 76th in 24th annual PROFIT 200 ranking of 
>>>> Canada’s Fastest-Growing Companies by PROFIT Magazine!
>>>> 
>>>> 
>>>> 
>>>> 
>>>> 
>>>> 
>>>> 
>>>> 
>>>> 
>>>> 
>>>> 
>>>> 
>>>> ___
>>>> 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/kelleherk%40gmail.com
>> 
>> This email sent to kelleh...@gmail.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: html5 input in a form "required"

2013-04-18 Thread John Pollard
I am certainly in debt to the community, but I suspect I would hinder more than 
help.
I can see er.extensions.components._private.ERXWOTextField which I understand 
automatically replaces the webobjects WOTextField class... is this what would 
need updating? I can't say I would be confident to do so. All components I have 
worked with have an html file and wod etc. 

I have also noticed that Wonder also has ERXWOInput derived from WOInput. Then 
ERXWOTelField and friends hang off WOInput. I might have expected these to 
derive from ERXWOTextField...but that may just illustrate my lack of 
understanding.

On 18 Apr 2013, at 16:46, Pascal Robert  wrote:

> And contribute the subclass to the community.
> 
>> You would need to extend it in Wonder, ERXWOTextField.  Add an isRequired 
>> binding and then append the required in appendToResponse.  Should be trivial.
>> 
>> Chuck
>> 
>> 
>> On 2013-04-18, at 8:31 AM, John Pollard wrote:
>> 
>>> I should have said, when I do this:
>>> 
>>> 
>>>>> data-theme="e" required/>
>>> 
>>> the generated HTML comes out as required="e", apparently picking up the 
>>> last parameter that did have a value.
>>> 
>>> On 18 Apr 2013, at 16:23, John Pollard  wrote:
>>> 
>>>> Can WOTextField or something similar handle the "required" in:
>>>> 
>>>> 
>>>> 
>>>> i.e. telling the browser that a field is required, it has not value 
>>>> assigned to it
>>>> 
>>>> I couldn't see a Wonder way for this.
>>>> Many thanks
>>>> John
>>>> ___
>>>> 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/john%40pollardweb.com
>>>> 
>>>> This email sent to j...@pollardweb.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/chill%40global-village.net
>>> 
>>> This email sent to ch...@global-village.net
>> 
>> -- 
>> Chuck Hill 
>> Executive Managing Partner, VP Development and Technical Services
>> 
>> Practical WebObjects - for developers who want to increase their overall 
>> knowledge of WebObjects or who are trying to solve specific problems.
>> http://www.global-village.net/gvc/practical_webobjects
>> 
>> Global Village Consulting ranks 13th in 2012 in BIV's Top 100 Fastest 
>> Growing Companies in B.C! 
>> Global Village Consulting ranks 76th in 24th annual PROFIT 200 ranking of 
>> Canada’s Fastest-Growing Companies by PROFIT Magazine!
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> ___
>> 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/archive%40mail-archive.com

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

Re: html5 input in a form "required"

2013-04-18 Thread John Pollard
"required" didn't work for me, it came out as "required"="e" in my example

On 18 Apr 2013, at 17:42, Ramsey Gurley  wrote:

> A: Inline binding suck :)
> B: required="required"
> 
> Done.
> 
> On Apr 18, 2013, at 8:31 AM, John Pollard wrote:
> 
>> I should have said, when I do this:
>> 
>> 
>> > data-theme="e" required/>
>> 
>> the generated HTML comes out as required="e", apparently picking up the last 
>> parameter that did have a value.
>> 
>> On 18 Apr 2013, at 16:23, John Pollard  wrote:
>> 
>>> Can WOTextField or something similar handle the "required" in:
>>> 
>>> 
>>> 
>>> i.e. telling the browser that a field is required, it has not value 
>>> assigned to it
>>> 
>>> I couldn't see a Wonder way for this.
>>> Many thanks
>>> John
>>> ___
>>> 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/john%40pollardweb.com
>>> 
>>> This email sent to j...@pollardweb.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/rgurley%40smarthealth.com
>> 
>> This email sent to rgur...@smarthealth.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: html5 input in a form "required"

2013-04-18 Thread John Pollard
I should have said, when I do this:


  

the generated HTML comes out as required="e", apparently picking up the last 
parameter that did have a value.

On 18 Apr 2013, at 16:23, John Pollard  wrote:

> Can WOTextField or something similar handle the "required" in:
> 
> 
> 
> i.e. telling the browser that a field is required, it has not value assigned 
> to it
> 
> I couldn't see a Wonder way for this.
> Many thanks
> John
> ___
> 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/john%40pollardweb.com
> 
> This email sent to j...@pollardweb.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


html5 input in a form "required"

2013-04-18 Thread John Pollard
Can WOTextField or something similar handle the "required" in:



i.e. telling the browser that a field is required, it has not value assigned to 
it

I couldn't see a Wonder way for this.
Many thanks
John
 ___
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


componentActionURL ok to use for link href?

2013-04-18 Thread John Pollard
Is it ok to use the WOContext.componentActionURL() to get an href for 
navigating back to?
More explicitly, I am using a Dialog page in jQuery Mobile as an error 
reporting mechanism and I want the "Continue" button in the error dialog to 
know where to return to. So I pass in an href which is then used on the return 
link button in the dialog. It appears to work ok, but am I abusing the system?
Thanks
John
 ___
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: Conditional around opening part of another component only?

2013-03-19 Thread John Pollard
Ok, you are right, push towards code when the html gets convoluted, thanks.

On 19 Mar 2013, at 11:59, Johann Werner  wrote:

> Hi John,
> 
> a good phrase someone wrote on this list long ago was: if something is 
> complicated to do in WO you are doing it wrong
> 
> So to your problem: your hyperlinks are differing in one or more attributes 
> so why not moving those attributes to your code and returning the appropriate 
> value there instead of making complicated HTML spaghetti ;-)
> 
> 
> ... bunch of html that applies to both the above conditions
> 
> 
> 
> in code:
> 
> public String myConditionalHref() {
>   return condition ? value1 : value2;
> }
> 
> 
> Am 19.03.2013 um 12:35 schrieb John Pollard :
> 
>> Is there any way to conditionally determine the opening html for a component 
>> only, not the whole thing?:
>> 
>> 
>>  
>> 
>> 
>> 
>> 
>> ... bunch of html that applies to both the above conditions
>> 
>> 
>> Trying it, I can't, I am told that the   at the top 
>> is missing its closing tag, so presumably it has to be complete within the 
>> if clause.
>> 
>> My only solution seems to be to take the "  ... bunch of html that applies 
>> to both the above conditions" and put it into a different component, but 
>> that is a pain because that html invokes many methods from this component.
>> 
>> It feels like it would be nice to turn chunks of html into local 
>> html-only-components, that are part of the same WOComponent, but can be 
>> referenced more than once.
>> 
>> Thanks
>> John
> 
> 


 ___
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


Conditional around opening part of another component only?

2013-03-19 Thread John Pollard
Is there any way to conditionally determine the opening html for a component 
only, not the whole thing?:


   


  

  ... bunch of html that applies to both the above conditions


Trying it, I can't, I am told that the   at the top is 
missing its closing tag, so presumably it has to be complete within the if 
clause.

My only solution seems to be to take the "  ... bunch of html that applies to 
both the above conditions" and put it into a different component, but that is a 
pain because that html invokes many methods from this component.

It feels like it would be nice to turn chunks of html into local 
html-only-components, that are part of the same WOComponent, but can be 
referenced more than once.

Thanks
John
 ___
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: Private coding comments in WO .html files

2013-03-15 Thread John Pollard
Thanks Ken, that covers it.
Do you also monitor wonder-disc? Have been puzzling over a ERQMListViewElement 
query on that list today - not sure if people tend to visit both lists. Sorry 
to contaminate this thread which is now complete.
John

On 15 Mar 2013, at 20:29, ISHIMOTO Ken  wrote:

> 
> 
> ...
> 
> 
> 
> 
> 
> On 2013/03/15, at 19:38, John Pollard  wrote:
> 
>> Yup, I think that must be it, so no commenting out code blocks in HTML then 
>> and I can comment away freely
>> 
>> On 15 Mar 2013, at 18:14, Ramsey Gurley  wrote:
>> 
>>> I may be wrong, but I think that one stays because it has wo tags in it. 
>>> Try 
>>> 
>>> 
>>> 
>>> On Mar 15, 2013, at 10:54 AM, John Pollard wrote:
>>> 
>>>> Now I see that there is a WOIncludeCommentsInResponse which I have as false
>>>> Some comments are stripped out, others not.
>>>> For example a code block:
>>>> 
>>>> 
>>>> 
>>>> has been fully expanded in the return page, still enclosed in the comments
>>>> 
>>>> Is this kind of block-commenting out of code not supported?
>>>> 
>>>> On 15 Mar 2013, at 17:39, Ramsey Gurley  wrote:
>>>> 
>>>>> Unless I'm badly mistaken  will actually be stripped before it is 
>>>>> sent down. At least, that was the case back when I wrote the IE 
>>>>> conditional comment component. I think there's a setting on the app to 
>>>>> turn this on/off but I'm too lazy to look right now :)
>>>>> 
>>>>> Ramsey
>>>>> 
>>>>> On Mar 15, 2013, at 10:36 AM, John Pollard wrote:
>>>>> 
>>>>>> Hi List,
>>>>>> 
>>>>>> What is the best way to add comments to a WO html file that are kept 
>>>>>> private; i.e. please strip out server side when dynamically building the 
>>>>>> page.
>>>>>> If I use  then my notes get faithfully replicated to the 
>>>>>> world of course which I don't want.
>>>>>> I have this ridiculous situation of not wanting to comment my html 
>>>>>> because it will pollute the final page content.
>>>>>> 
>>>>>> John
>>>>>> ___
>>>>>> 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/rgurley%40smarthealth.com
>>>>>> 
>>>>>> This email sent to rgur...@smarthealth.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/rgurley%40smarthealth.com
>>>> 
>>>> This email sent to rgur...@smarthealth.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/ken%40ksroom.com
>> 
>> This email sent to k...@ksroom.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: Private coding comments in WO .html files

2013-03-15 Thread John Pollard
Yup, I think that must be it, so no commenting out code blocks in HTML then and 
I can comment away freely

On 15 Mar 2013, at 18:14, Ramsey Gurley  wrote:

> I may be wrong, but I think that one stays because it has wo tags in it. Try 
> 
> 
> 
> On Mar 15, 2013, at 10:54 AM, John Pollard wrote:
> 
>> Now I see that there is a WOIncludeCommentsInResponse which I have as false
>> Some comments are stripped out, others not.
>> For example a code block:
>> 
>> 
>> 
>> has been fully expanded in the return page, still enclosed in the comments
>> 
>> Is this kind of block-commenting out of code not supported?
>> 
>> On 15 Mar 2013, at 17:39, Ramsey Gurley  wrote:
>> 
>>> Unless I'm badly mistaken  will actually be stripped before it is 
>>> sent down. At least, that was the case back when I wrote the IE conditional 
>>> comment component. I think there's a setting on the app to turn this on/off 
>>> but I'm too lazy to look right now :)
>>> 
>>> Ramsey
>>> 
>>> On Mar 15, 2013, at 10:36 AM, John Pollard wrote:
>>> 
>>>> Hi List,
>>>> 
>>>> What is the best way to add comments to a WO html file that are kept 
>>>> private; i.e. please strip out server side when dynamically building the 
>>>> page.
>>>> If I use  then my notes get faithfully replicated to the world 
>>>> of course which I don't want.
>>>> I have this ridiculous situation of not wanting to comment my html because 
>>>> it will pollute the final page content.
>>>> 
>>>> John
>>>> ___
>>>> 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/rgurley%40smarthealth.com
>>>> 
>>>> This email sent to rgur...@smarthealth.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/rgurley%40smarthealth.com
>> 
>> This email sent to rgur...@smarthealth.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: Private coding comments in WO .html files

2013-03-15 Thread John Pollard
Now I see that there is a WOIncludeCommentsInResponse which I have as false
Some comments are stripped out, others not.
For example a code block:

  

has been fully expanded in the return page, still enclosed in the comments

Is this kind of block-commenting out of code not supported?

On 15 Mar 2013, at 17:39, Ramsey Gurley  wrote:

> Unless I'm badly mistaken  will actually be stripped before it is 
> sent down. At least, that was the case back when I wrote the IE conditional 
> comment component. I think there's a setting on the app to turn this on/off 
> but I'm too lazy to look right now :)
> 
> Ramsey
> 
> On Mar 15, 2013, at 10:36 AM, John Pollard wrote:
> 
>> Hi List,
>> 
>> What is the best way to add comments to a WO html file that are kept 
>> private; i.e. please strip out server side when dynamically building the 
>> page.
>> If I use  then my notes get faithfully replicated to the world 
>> of course which I don't want.
>> I have this ridiculous situation of not wanting to comment my html because 
>> it will pollute the final page content.
>> 
>> John
>> ___
>> 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/rgurley%40smarthealth.com
>> 
>> This email sent to rgur...@smarthealth.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


Private coding comments in WO .html files

2013-03-15 Thread John Pollard
Hi List,

What is the best way to add comments to a WO html file that are kept private; 
i.e. please strip out server side when dynamically building the page.
If I use  then my notes get faithfully replicated to the world of 
course which I don't want.
I have this ridiculous situation of not wanting to comment my html because it 
will pollute the final page content.

John
 ___
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: Mobile to full site page, not refreshed until browser refresh - solved

2013-02-15 Thread John Pollard
Problem solved, nothing to do with WebObjects.
I needed to add the following to the button:
data-ajax="false";
In order to allow the link to escape out to the full site.

On 15 Feb 2013, at 18:43, John Pollard  wrote:

> Hi list,
> 
> I have a site that will display in mobile / full site mode: 
> www.team-picker.com
> Click the "Mobile site" link next to the 4th tick down to see the mobile 
> version.
> Then click the Full Site button at the bottom left of the mobile page view.
> This is where I have a problem, on returning to the full site view, the 
> layout is corrupt. Viewing the page source, somehow the mobile elements of 
> the mobile page have been retained. However, if you now Refresh your browser, 
> the page is corrected.
> How can I force the Full Site link to display the original page completely? 
> It is currently a component action, but could equally be a direct action 
> (doesn't help).
> 
> Note that if you view on a mobile phone first, the mobile page is presented 
> by default. The same problem is seen there after clicking the Full Site 
> button the full view is messed up and is fixed by a refresh within the mobile 
> browser.
> 
> The state of Application.setPageRefreshOnBacktrackEnabled() does not make a 
> difference.
> 
> What can the browser refresh be doing that my link to the page doesn't cause 
> to happen in the first place?
> 
> Is it something odd with jQueryMobile perhaps which is used on the mobile 
> page via ERQMHtmlTemplate, somehow causing the mobilification to persist for 
> a further page request.
> 
> Thanks
> John
> ___
> 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/john%40pollardweb.com
> 
> This email sent to j...@pollardweb.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


Mobile to full site page, not refreshed until browser refresh

2013-02-15 Thread John Pollard
Hi list,

I have a site that will display in mobile / full site mode: www.team-picker.com
Click the "Mobile site" link next to the 4th tick down to see the mobile 
version.
Then click the Full Site button at the bottom left of the mobile page view.
This is where I have a problem, on returning to the full site view, the layout 
is corrupt. Viewing the page source, somehow the mobile elements of the mobile 
page have been retained. However, if you now Refresh your browser, the page is 
corrected.
How can I force the Full Site link to display the original page completely? It 
is currently a component action, but could equally be a direct action (doesn't 
help).

Note that if you view on a mobile phone first, the mobile page is presented by 
default. The same problem is seen there after clicking the Full Site button the 
full view is messed up and is fixed by a refresh within the mobile browser.

The state of Application.setPageRefreshOnBacktrackEnabled() does not make a 
difference.

What can the browser refresh be doing that my link to the page doesn't cause to 
happen in the first place?

Is it something odd with jQueryMobile perhaps which is used on the mobile page 
via ERQMHtmlTemplate, somehow causing the mobilification to persist for a 
further page request.

Thanks
John
 ___
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: foreach: list must not be a constant

2013-02-15 Thread John Pollard
Many thanks, that fixed it, I had:

component.inlineBindingPrefix=[
component.inlineBindingSuffix=]
component.wellFormedTemplateRequired=true

Though using $ as the binding did actually work, even given the error showing.

Also my previous note about using an NSMutableArray was a red herring, the 
error message popped up again later.

Any pointers to best resources for learning the wognl way would be gladly 
received. I have found the list of wo: shortcuts in Eclipse, Preferences, 
WOLips, Inline Binding Shortcuts

John

On 15 Feb 2013, at 08:14, Þór Sigurðsson  wrote:

> Check if these lines are missing from your project's build.properties file:
> 
> component.inlineBindingPrefix=$
> component.inlineBindingSuffix=
> component.wellFormedTemplateRequired=false
> 
> /Þór
> 
> On 14.2.2013, at 19:24, John Pollard wrote:
> 
>> Hi List,
>> 
>> In wolips html view I get an error on the first line of the following html 
>> code:
>> 
>> 
>>   
>> 
>>   
>> 
>> 
>> The error is on the foreach line: "list must not be a constant", though it 
>> isn't a constant and it works ok when run.
>> 
>> I have updated wolips based on http://wocommunity.org/wolips/3.7/stable/
>> 
>> Thanks for any help.
>> John
>> 
>> 
>> 
>> ___
>> 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/thors%40us.is
>> 
>> This email sent to th...@us.is
> 
> 
> 
> 
> Fyrirvari á tölvupósti / e-mail disclaimer
> http://us.is/fyrirvari


 ___
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: foreach: list must not be a constant

2013-02-14 Thread John Pollard
So changing getPlayerGroups to return an NSMutableArray fixed it, though why 
does foreach require a mutable array?
Is there any documentation that covers all the inline bindings and their 
arguments?
Many thanks
John

On 14 Feb 2013, at 22:24, John Pollard  wrote:

> It only seems to be called once for the page; though I have now put in lazy 
> evaluation thanks.
> I had a moment of hope when I found I could right click on the error and 
> Delete it in the Problems tab, but it came back on a rebuild. If only errors 
> could be eternally vanquished by a right click + Delete!
> 
> On 14 Feb 2013, at 19:51, Ken Anderson  wrote:
> 
>> I would probably cache the result set and return it on subsequent calls 
>> (assuming it stays static throughout the page's lifetime).
>> 
>> On Feb 14, 2013, at 2:43 PM, Chuck Hill  wrote:
>> 
>>> Just an aside, but if you are using auto-binding sync that is going to be 
>>> doing a lot of fetching.
>>> 
>>> Chuck
>>> 
>>> On 2013-02-14, at 11:33 AM, John Pollard wrote:
>>> 
>>>> It is implemented as a method returning an NSArray:
>>>> 
>>>> // Used to list players to tick who is playing
>>>> public NSArray getPlayerGroups()
>>>> {
>>>> Object orderings[]={EOSortOrdering.sortOrderingWithKey("name", 
>>>> EOSortOrdering.CompareAscending)}; 
>>>> NSArray sortOrderings = new NSArray(orderings);
>>>>return PlayerGroup.fetchAllPlayerGroups(ec, sortOrderings);
>>>> }
>>>> 
>>>> This is actually in the super class of the component class (though I tried 
>>>> copying it to the actual component class and that didn't help. Neither did 
>>>> providing a setPlayerGroups method(), though I see no need to provide a 
>>>> set method.
>>>> 
>>>> Thanks
>>>> John
>>>> 
>>>> On 14 Feb 2013, at 19:29, Musall Maik  wrote:
>>>> 
>>>>> Please show the Java implementation of that list.
>>>>> 
>>>>> Am 14.02.2013 um 20:24 schrieb John Pollard :
>>>>> 
>>>>>> Hi List,
>>>>>> 
>>>>>> In wolips html view I get an error on the first line of the following 
>>>>>> html code:
>>>>>> 
>>>>>> 
>>>>>>   
>>>>>> 
>>>>>>   
>>>>>> 
>>>>>> 
>>>>>> The error is on the foreach line: "list must not be a constant", though 
>>>>>> it isn't a constant and it works ok when run.
>>>>>> 
>>>>>> I have updated wolips based on http://wocommunity.org/wolips/3.7/stable/
>>>>>> 
>>>>>> Thanks for any help.
>>>>>> John
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> ___
>>>>>> 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/john%40pollardweb.com
>>>>> 
>>>>> This email sent to j...@pollardweb.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/chill%40global-village.net
>>>> 
>>>> This email sent to ch...@global-village.net
>>> 
>>> -- 
>>> Chuck Hill Senior Consultant / VP Development
>>> 
>>> Practical WebObjects - for developers who want to increase their overall 
>>

  1   2   >