Axis Null Pointer

2009-07-09 Thread Lachlan Deck

Hi all,

can anyone provide any clues about why the following stack trace might  
be happening?
I believe it's related to attachments and chunked vs non-chunked  
requests.


If I turn chunking off I get the below stack. If I turn it on then  
WO's not liking the lack of Content-Length.


WO5.4.3

java.lang.NullPointerException
at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
	at  
org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java: 
333)
	at  
org 
.apache 
.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)

at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
	at org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java: 
454)

at org.apache.axis.server.AxisServer.invoke(AxisServer.java:281)
	at  
com 
.webobjects 
.appserver._private.WOWebService.performActionNamed(WOWebService.java: 
437)
	at  
com 
.webobjects 
.appserver 
._private 
.WOActionRequestHandler._handleRequest(WOActionRequestHandler.java:259)
	at  
com 
.webobjects 
.appserver 
._private 
.WOActionRequestHandler.handleRequest(WOActionRequestHandler.java:161)
	at  
com 
.webobjects 
.appserver 
._private 
.WOWebServiceRequestHandler 
.handleRequest(WOWebServiceRequestHandler.java:109)
	at  
ish 
.willowservices 
.appserver 
.ISHWebServiceRequestHandler 
.handleRequest(ISHWebServiceRequestHandler.java:140)
	at  
com 
.webobjects.appserver.WOApplication.dispatchRequest(WOApplication.java: 
1687)
	at  
er 
.extensions 
.appserver 
.ERXApplication.dispatchRequestImmediately(ERXApplication.java:1772)
	at  
er 
.extensions 
.appserver.ERXApplication.dispatchRequest(ERXApplication.java:1737)
	at  
com 
.ish 
.webobjects 
.appserver.ISHApplication.dispatchRequest(ISHApplication.java:1024)
	at  
ish 
.willowservices.appserver.Application.dispatchRequest(Application.java: 
236)
	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:613)
Caused by: java.lang.NullPointerException
	at  
org 
.apache 
.axis.encoding.ser.BeanPropertyTarget.set(BeanPropertyTarget.java:135)
	at  
org 
.apache 
.axis.encoding.DeserializerImpl.valueComplete(DeserializerImpl.java:249)
	at  
org 
.apache 
.axis.encoding.DeserializerImpl.endElement(DeserializerImpl.java:509)
	at  
org 
.apache 
.axis 
.encoding 
.DeserializationContext.endElement(DeserializationContext.java:1087)
	at  
org 
.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java: 
171)
	at  
org 
.apache 
.axis.message.MessageElement.publishToHandler(MessageElement.java:1141)
	at  
org 
.apache 
.axis.encoding.DeserializerImpl.startElement(DeserializerImpl.java:369)
	at  
org 
.apache 
.axis 
.encoding 
.DeserializationContext.startElement(DeserializationContext.java:1048)
	at  
org 
.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java: 
165)
	at  
org 
.apache 
.axis.message.MessageElement.publishToHandler(MessageElement.java:1141)

at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:236)
at org.apache.axis.message.RPCElement.getParams(RPCElement.java:384)
	at  
org 
.apache 
.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:81)
	at  
org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java: 
323)

... 18 more

with regards,
--

Lachlan Deck



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

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


Re: Maintain server state of a page + Javascript page navigation

2009-07-09 Thread shravan kumar
 
 Hi Mike,

Yes Mike, I get one WO page as response and that is split into many sub-pages 
for user data manageability.

I will check out AjaxPing component. I was just wondering why do we use 
prototype.js in our Ajax framework or most of Wonder projects (pardon me, if am 
wrong, but that was my understanding sometime ago). I wish if we have jQuery as 
our javascript framework and I use jQuery in most of my projects!!!

Thank You,
Shravan Kumar. M
--
Thursday, July 9, 2009 1:50 AM 



From: 
Mike Schrag msch...@mdimension.com



To: 
WO Dev Group webobjects-dev@lists.apple.com
if
you're keeping them on a single page for your entire process and
rendering the wizard process in js, then you won't be transitioning
across pages, so you won't be burning your cache. at that point, all
that matters is that your session is kept alive. AjaxBusyIndicator
doesn't ping -- it just shows a spinner when an ajax function is
occurring ... AjaxPing (iirc) is the component you want?  I'm not in
that workspace right now, so I don't have it handy ... 
ms
On Jul 8, 2009, at 3:37 PM, shravan kumar wrote:

Hi Mike,

Thanks
for your response Mike. I hope you are referring to AjaxBusyIndicator
in the Wonder/Ajax Examples for ping in the background.

As you
say, Yes, if you bind to an action that falls out of the backtrack
cache, you'll get that error. This can happen for several reasons., do
we have any good solution to get away from this issue and keep all my
elements/ actions in my component up-to-date?

Thank You,
Shravan Kumar. M

Wednesday, July 8, 2009 7:02 PM
From:
Mike Schrag msch...@mdimension.com
To:
WO Dev Group webobjects-dev@lists.apple.com
Yes, if you bind to an action that falls out of the backtrack cache, you'll get 
that error. This can happen for several reasons.

Not
sure what you mean about using component actions and direct actions
freely. Component actions are powerful but just have intrinsic
limitations. If you have a long running process on the client side that
could reasonably run longer than your session timeout, you either have
to keep the session alive with some sort of ping in the background (I
think Ajax framework has a component for this), or you need to switch
to direct actions.  DA's can fully access the session, but you have the
same issue -- if your client process takes longer than your session
lifetime, you're going to lose that information. In the DA case, that
either means the same sort of ping process, or it means making your app
stateless (i.e. client side tracks and passes in the current state).

ms

On Jul 8, 2009, at 2:01 AM, shravan kumar wrote:

Thanks for your response Mike.

What is Giandiua btw? Google says it is a Chocolate from Italy!!!

The
page am referring is just one of the pages of a wizard, which has
sub-pages. The whole wizard runs through component actions.

I was actually about following situation:

When
we have long response component displayed upon initiating a request,
and we see long response until we have a response. Once after the
response let's say I just hide long response component and show the
main component, now user cannot perform any actions in this main
component and we might receive errors like: You have exceeded 30 pages
limit/ page out of cache... this is because the context bound to the
action element is older. Am I correct (Mike) ?

I understand by
your saying switching to direct actions, we can get away from this
issue if we use direct actions. But am wondering if I can use component
actions and direct actions freely. I hope I can validate whether the
direct action request is initiated by a logged-in valid user, so my
direct actions are not floating freely.

---

If I use component actions, can you advise me how can I have all the elements, 
app in the latest context?

Thank You,
Shravan Kumar. M
--


Monday, July 6, 2009 7:14 PM
From:
Mike Schrag msch...@mdimension.com
To:
WO Dev Group webobjects-dev@lists.apple.com
seems
to me like you're swimming against the tide here ... i think you need
to rethink this architecture.  you're basically sending the users the
entire site, which makes this more of a Sproutcore/Giandiua/etc
workflow, and mixing component actions into this style of app is going
to be very tricky. I would recommend switching to directactions. you
could keep a session alive with a ping if you really need it to be
sessionful, but trying to actually use WOForms in this thing is going
to be an endless headache imo.
On Jul 6, 2009, at 7:54 AM, shravan kumar wrote:

 Hi Group,

 Could you please advise me a solution to achieve below functionality:

 Scenario:
 -


I have a page which gets all the data like text content [3000 lines or
more], 

Re: Maintain server state of a page + Javascript page navigation

2009-07-09 Thread Mike Schrag
Yes, Ajax framework uses prototype. You can use jquery in your own  
code, but you have to use the jquery prototype compatibility library.  
As far as why we use prototype -- it was the most popular library when  
we started Ajax.framework, and was the primary framework used by rails  
as well. The effort and cost to everyone to change that decision now  
would be substantial.


ms

On Jul 9, 2009, at 2:35 AM, shravan kumar wrote:


Hi Mike,

Yes Mike, I get one WO page as response and that is split into many  
sub-pages for user data manageability.


I will check out AjaxPing component. I was just wondering why do we  
use prototype.js in our Ajax framework or most of Wonder projects  
(pardon me, if am wrong, but that was my understanding sometime  
ago). I wish if we have jQuery as our javascript framework and I use  
jQuery in most of my projects!!!


Thank You,
Shravan Kumar. M
--
Thursday, July 9, 2009 1:50 AM
From:
Mike Schrag msch...@mdimension.com
To:
WO Dev Group webobjects-dev@lists.apple.com
if you're keeping them on a single page for your entire process and  
rendering the wizard process in js, then you won't be transitioning  
across pages, so you won't be burning your cache. at that point, all  
that matters is that your session is kept alive. AjaxBusyIndicator  
doesn't ping -- it just shows a spinner when an ajax function is  
occurring ... AjaxPing (iirc) is the component you want?  I'm not in  
that workspace right now, so I don't have it handy ...


ms

On Jul 8, 2009, at 3:37 PM, shravan kumar wrote:



Hi Mike,

Thanks for your response Mike. I hope you are referring to  
AjaxBusyIndicator in the Wonder/Ajax Examples for ping in the  
background.


As you say, Yes, if you bind to an action that falls out of the  
backtrack cache, you'll get that error. This can happen for several  
reasons., do we have any good solution to get away from this issue  
and keep all my elements/ actions in my component up-to-date?


Thank You,
Shravan Kumar. M

Wednesday, July 8, 2009 7:02 PM
From:
Mike Schrag msch...@mdimension.com
To:
WO Dev Group webobjects-dev@lists.apple.com
Yes, if you bind to an action that falls out of the backtrack  
cache, you'll get that error. This can happen for several reasons.


Not sure what you mean about using component actions and direct  
actions freely. Component actions are powerful but just have  
intrinsic limitations. If you have a long running process on the  
client side that could reasonably run longer than your session  
timeout, you either have to keep the session alive with some sort  
of ping in the background (I think Ajax framework has a component  
for this), or you need to switch to direct actions.  DA's can fully  
access the session, but you have the same issue -- if your client  
process takes longer than your session lifetime, you're going to  
lose that information. In the DA case, that either means the same  
sort of ping process, or it means making your app stateless (i.e.  
client side tracks and passes in the current state).


ms

On Jul 8, 2009, at 2:01 AM, shravan kumar wrote:

Thanks for your response Mike.

What is Giandiua btw? Google says it is a Chocolate from Italy!!!

The page am referring is just one of the pages of a wizard, which  
has sub-pages. The whole wizard runs through component actions.


I was actually about following situation:

When we have long response component displayed upon initiating a  
request, and we see long response until we have a response. Once  
after the response let's say I just hide long response component  
and show the main component, now user cannot perform any actions in  
this main component and we might receive errors like: You have  
exceeded 30 pages limit/ page out of cache... this is because the  
context bound to the action element is older. Am I correct (Mike) ?


I understand by your saying switching to direct actions, we can get  
away from this issue if we use direct actions. But am wondering if  
I can use component actions and direct actions freely. I hope I can  
validate whether the direct action request is initiated by a logged- 
in valid user, so my direct actions are not floating freely.


---

If I use component actions, can you advise me how can I have all  
the elements, app in the latest context?


Thank You,
Shravan Kumar. M
--


Monday, July 6, 2009 7:14 PM
From:
Mike Schrag msch...@mdimension.com
To:
WO Dev Group webobjects-dev@lists.apple.com
seems to me like you're swimming against the tide here ... i think  
you need to rethink this architecture.  you're basically sending  
the users the entire site, which makes this more of a Sproutcore/ 
Giandiua/etc workflow, and mixing component actions into this style  
of app is going to be very tricky. I would recommend switching to  
directactions. you could keep a session alive with a ping if you  
really need it 

Re: ARS Technica: WebObjects sliced from 10 .6—but prognosis of death premature

2009-07-09 Thread Gustavo Pizano
Hey Chuck finish the book please :P. :D:D.

Man I wish I was taught WO at University instead of hibernate, (which I
can't remember anything).

G.




On Thu, Jul 9, 2009 at 12:31 AM, David Holt programming...@mac.com wrote:

 Nice job, guys. I'm impressed. Now if only the Appleinsider article would
 link directly to there instead of the original article!

 David



 On 8-Jul-09, at 3:15 PM, Chuck Hill wrote:

  Finally, something worth reading!


 http://arstechnica.com/apple/news/2009/07/webobjects-sliced-
 from-106but-prognosis-of-death-premature.ars


 -- Chuck Hill Senior Consultant / VP Development

 Practical WebObjects - for developers who want to increase their overall
 knowledge of WebObjects or who are trying to solve specific problems.
 http://www.global-village.net/products/practical_webobjects






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

 This email sent to programming...@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:

 http://lists.apple.com/mailman/options/webobjects-dev/webobjectspicora%40gmail.com

 This email sent to webobjectspic...@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:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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

Average number of code lines ina WOComponent, .java

2009-07-09 Thread Gustavo Pizano
Hello, well with this app Im doing, I have just one main component with a
few AjaxupdateContainers, I have realize then that the ,java its quite
big, lots of bindings, I was thinking then in divide it in 3 components, a
main one and 2 childre, so then I can use somehow the parent() and get the
valueForkey of some selection to UpdateThe container someting like that I
dunno if you understand me. But I wish to know normally what you do guys, to
see if its necesary to split this component into 3( which will give me a
headache I know) or leave it as it is.



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

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

Re: Average number of code lines ina WOComponent, .java

2009-07-09 Thread Paul Hoadley

On 09/07/2009, at 6:09 PM, Gustavo Pizano wrote:

Hello, well with this app Im doing, I have just one main component  
with a few AjaxupdateContainers, I have realize then that  
the ,java its quite big, lots of bindings, I was thinking then in  
divide it in 3 components, a main one and 2 childre,


Sounds reasonable.

so then I can use somehow the parent() and get the valueForkey of  
some selection to UpdateThe container someting like that I dunno if  
you understand me.


You _probably_ don't need to do anything like that.  Tell us more  
about the component you're trying to split up.


But I wish to know normally what you do guys, to see if its necesary  
to split this component into 3( which will give me a headache I  
know) or leave it as it is.


It shouldn't give you a headache.  Tell us what you're trying to do.   
I split off sub-components all the time, especially if there's any  
chance they can be re-used.  That's the whole point of the component  
architecture.



--
Paul.

w  http://logicsquad.net/
h  http://paul.hoadley.name/


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

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


Re: Average number of code lines ina WOComponent, .java

2009-07-09 Thread Kieran Kelleher
Hi Gustavo, I was thinking part of your question might allude to this:  
A parent can have an AjaxUpdateContainer named Foo for example and a  
subcomponent can just use the javascript 'FooUpdate()' or simply bind  
'Foo' to the updateContainerID of an AjaxUpdateLink in the  
subcomponent. The fact that the AjaxUpdateContainer and the  
AjaxUpdateLink are in separate or nested WOComponents makes no  
difference since thay are on the same page on the client side.


HTH, (Hope That Helps)

Kieran

On Jul 9, 2009, at 6:01 AM, Paul Hoadley wrote:


On 09/07/2009, at 6:09 PM, Gustavo Pizano wrote:

Hello, well with this app Im doing, I have just one main component  
with a few AjaxupdateContainers, I have realize then that  
the ,java its quite big, lots of bindings, I was thinking then in  
divide it in 3 components, a main one and 2 childre,


Sounds reasonable.

so then I can use somehow the parent() and get the valueForkey of  
some selection to UpdateThe container someting like that I dunno if  
you understand me.


You _probably_ don't need to do anything like that.  Tell us more  
about the component you're trying to split up.


But I wish to know normally what you do guys, to see if its  
necesary to split this component into 3( which will give me a  
headache I know) or leave it as it is.


It shouldn't give you a headache.  Tell us what you're trying to  
do.  I split off sub-components all the time, especially if there's  
any chance they can be re-used.  That's the whole point of the  
component architecture.



--
Paul.

w  http://logicsquad.net/
h  http://paul.hoadley.name/


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

This email sent to kieran_li...@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:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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


Re: WO Deployment [was:A WebObjects article on Appleinsider]

2009-07-09 Thread Mr. Pierre Frisch

Andrew,

There was some test made 3 years ago to use the mod_proxybalancer for  
WO and it works well. There 2 issues to fix: one is trivial the  
session id key is sessionid and not wosid 5.4 and later support  
changing that key. The other issue is dynamic reconfiguration. Adding  
an instance require editing the apache config file and restarting  
apache. We need to add to the mod_proxybalancer a mechanism to  
dynamically load the configuration, this is not a major endeavor and I  
am looking for a volunteer… We should contribute this code back to  
the apache foundation so we don not have to maintain it ourself. I  
would be happy to work with whoever volunteer.


I like the idea of moving to a servlet container bundle. I am not sure  
what would be required for this to work.


Cheers

Pierre
--
Pierre Frisch
pie...@apple.com


On Jul 8, 2009, at 19:26, Andrew Lindesay wrote:


Hi Mike;

Given how close mod_balancer is to the traditional WO  
deployment, it might be a nice approach for mod_balancer to take  
on-board the few additional concepts necessary to support  
something which works like JavaMonitor / wotaskd so that  
deploying a WO system does not need a special Apache module  
compiled for it.  That would make a whole heap of documentation  
and confusion go away.

Yeah, this is actually exactly what I referring to :)


I guess it's the obvious thing to do. :)

Something like we're used to with JavaMonitor controlling the proxy  
balancer module would be very handy.


mod_balancer needs to be able to socket-connect to an external  
system (like wotaskd) to get the list of instances to 'balance  
over'.  I'm sure you know that there is an HTML interface called  
balancer manager in mod_balancer, but of course it has no ability  
to start the running instances on remote hosts and is.. well... not  
that great.  Ping and shutdown are supported as part of the AJP  
protocol (at least AJP13) and I think that refuse new sessions  
should perhaps be handled on the mod_balancer rather than the  
instance.


Another thought which may reduce the deployment documentation/ 
development overhead and ease-of-approach for newbies is that  
WOA's could be built into servlets all the time, but that there is  
a special servlet container built into WO runtime that can  
launch the app in a way which resembles a stand-alone execution of  
the application without the palaver that often goes with servlet  
deployments.  This idea may be quite nice.
So are you suggesting that WO should ALWAYS be running as a  
servlet, just that WO itself has a tiny little servletish container  
in it that it uses for directconnect?


In short; Yes! :)  An important aspect of such a change would be to  
make that tiny little servletish container nice and simple to run,  
but still do the bare minimum to feed a servlet with WOMessage-s  
from HTTP or AJP and fudge the URL-s for mod_balancer (see  
LEWOAJPContext).  BTW; still happy to push my the AJP adaptor  
framework into ProjectWonder instead of my distro if you want.


cheers.

___
Andrew Lindesay
www.lindesay.co.nz

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

This email sent to pie...@apple.com




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

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

Re: WO Deployment [was:A WebObjects article on Appleinsider]

2009-07-09 Thread Mike Schrag
In short; Yes! :)  An important aspect of such a change would be to  
make that tiny little servletish container nice and simple to  
run, but still do the bare minimum to feed a servlet with WOMessage- 
s from HTTP or AJP and fudge the URL-s for mod_balancer (see  
LEWOAJPContext).
do you get into weird issues with servlet.jar dependencies here?  if  
this was in WO core, for instance, presumably JavaWebObjects.jar would  
have to have a servlet.jar dependency ... to run it in dev w/  
directconnect you'd have to have that servlet.jar in your project, but  
to deploy it into a servlet container, you'd want that to be gone or  
the container yells at you.  do you run into this problem or am i just  
making that out to be more difficult than it is?


ms

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

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


PostgresqlPlugIn.framework bug?

2009-07-09 Thread Lars Sonchocky-Helldorf

Hi,

in an application with which I use the PostgresqlPlugIn.framework of  
Wonder (latest version, downloaded today) I get the following exception:


Jul 09 13:57:01 UNUserInterface[2020] (ERXNSLogLog4jBridge.java:43)  
WARN  NSLog  -  
er.extensions.appserver.ERXDirectActionRequestHandler: Exception  
while handling action named customPublicationMicroSite on action  
class null :ERROR: syntax error at or near ONat  
org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse 
(QueryExecutorImpl.java:1608)
at org.postgresql.core.v3.QueryExecutorImpl.processResults 
(QueryExecutorImpl.java:1343)
at org.postgresql.core.v3.QueryExecutorImpl.execute 
(QueryExecutorImpl.java:194)
at org.postgresql.jdbc2.AbstractJdbc2Statement.execute 
(AbstractJdbc2Statement.java:451)
at org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags 
(AbstractJdbc2Statement.java:350)
at org.postgresql.jdbc2.AbstractJdbc2Statement.execute 
(AbstractJdbc2Statement.java:343)
at  
com.webobjects.jdbcadaptor.JDBCChannel._bindInputVariablesWithBindingsAn 
dExecute(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._selectWithFetchSpecificationE 
ditingContext(EODatabaseChannel.java:897)
at  
com.webobjects.eoaccess.EODatabaseChannel.selectObjectsWithFetchSpecific 
ation(EODatabaseChannel.java:234)
at  
com.webobjects.eoaccess.EODatabaseContext._objectsWithFetchSpecification 
EditingContext(EODatabaseContext.java:3055)
at  
com.webobjects.eoaccess.EODatabaseContext.objectsWithFetchSpecification( 
EODatabaseContext.java:3195)
at  
com.webobjects.eocontrol.EOObjectStoreCoordinator.objectsWithFetchSpecif 
ication(EOObjectStoreCoordinator.java:488)
at  
com.webobjects.eocontrol.EOEditingContext.objectsWithFetchSpecification( 
EOEditingContext.java:4069)
at er.extensions.eof.ERXEC.objectsWithFetchSpecification(ERXEC.java: 
1114)
at  
com.webobjects.eocontrol.EOEditingContext.objectsWithFetchSpecification( 
EOEditingContext.java:)


(full stacktrace here:
Jul 09 13:57:01 UNUserInterface[2020] (ERXNSLogLog4jBridge.java:43) WARN  NSLog 
 - er.extensions.appserver.ERXDirectActionRequestHandler: Exception while 
handling action named customPublicationMicroSite on action class null 
:ERROR: syntax error at or near ONat 
org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:1608)
at 
org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1343)
at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:194)
at 
org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:451)
at 
org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:350)
at 
org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:343)
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:1114)
at 
com.webobjects.eocontrol.EOEditingContext.objectsWithFetchSpecification(EOEditingContext.java:)
at 
de.refline.base.bl.RLBABLSearchEntityProcess.commit(RLBABLSearchEntityProcess.java:132)
at 
ch.unio.publication.bl.UNPBBLAbstractSearchPublicationPeriodProcess.commit(UNPBBLAbstractSearchPublicationPeriodProcess.java:181)
at 
ch.unio.publication.bl.UNPBBLSearchUpsellingPublicationPeriodProcess.commit(UNPBBLSearchUpsellingPublicationPeriodProcess.java:42)
at 
ch.unio.userinterface.bl.UNUIBLCustomPublicationListProvider.collectPublicationPeriodsForProc(UNUIBLCustomPublicationListProvider.java:96)
at 
ch.unio.userinterface.bl.UNUIBLCustomPublicationListProvider.publicationList(UNUIBLCustomPublicationListProvider.java:67)
at 
UNUIWOCustomPublicationListPage.publicationList(UNUIWOCustomPublicationListPage.java:184)
at 

Re: WO Deployment [was:A WebObjects article on Appleinsider]

2009-07-09 Thread Jean-Francois Veillette
do you run into this problem or am i just making that out to be  
more difficult than it is?


At that point, I would say industry have solved it.  how do normal  
j2ee developer do when they are in a developement cycle ?


- jfv

note that I know nothing of all this, I find it interesting though.
___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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


Re: WO Deployment [was:A WebObjects article on Appleinsider]

2009-07-09 Thread Mike Schrag
do you run into this problem or am i just making that out to be  
more difficult than it is?


At that point, I would say industry have solved it.  how do normal  
j2ee developer do when they are in a developement cycle ?


- jfv

note that I know nothing of all this, I find it interesting though.
well, there are obvious fixes for it -- but it's not particularly end- 
user friendly ... you can obviously put it in your project build path  
but not put it in a folder that will deploy (i.e. put it somewhere  
other than in Libraries), but that means that everyone that uses wo  
has to remember to do this, which sort of sucks.  i'm guessing maven  
probably just has an answer to this -- build dependency jars that  
aren't deployment dependency jars, so they probably don't have to  
worry about it?


ms


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

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


Nested editing context 101 question?

2009-07-09 Thread Ricardo J. Parada


If I have an EO in a child editing context, can it reference an EO in  
the parent editing context?
Or do I have to copy the EO from the parent editing context to the  
child editing context first?


I should know this one... But I don't use nested editing contexts that  
often, so I forgot.   :-)


Thanks

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

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


Re: Nested editing context 101 question?

2009-07-09 Thread Kieran Kelleher
You should local instance it because a different ec is a different ec  
whether nested or not. I am not a fan of nested ec's and generally do  
not design them into my app architecture.


On Jul 9, 2009, at 11:51 AM, Ricardo J. Parada wrote:



If I have an EO in a child editing context, can it reference an EO  
in the parent editing context?
Or do I have to copy the EO from the parent editing context to the  
child editing context first?


I should know this one... But I don't use nested editing contexts  
that often, so I forgot.   :-)


Thanks

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

This email sent to kieran_li...@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:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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


AjaxObserveField - next Field

2009-07-09 Thread Frank Stock

Hi,

I want to select the next field after an AjaxUpdate. The Ajaxupdate is  
triggered from an AjaxObserveField.
But I see if I use 'onComplete' or 'OnSucces' that this is executed  
every time.
So if I include  
OnSuccess=document.getElementById('myElement1').focus(), after the  
reload(AjaxUpdate), all the AjaxObserveField-elements will execute  
that, so always the last field is selected.

How can I solve that?

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

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

Re: Nested editing context 101 question?

2009-07-09 Thread Ricardo J. Parada

Thanks Kieran...

Basically we have some code that loads objects into the database which  
currently works in a way that violates some of the EOF commandments.   
This is not using Wonder.  But we're converting it to Wonder.


The code works as follows, it creates EOs without inserting them into  
an editing context.  It sets properties (including relationships) and  
then validates the object.  Then it checks to see if the object  
already exists into the database.  If it doesn't I believe it then  
inserts the EO into the editing context and calls saveChanges, thereby  
saving the inserted objects to the database.  If on the other hand the  
object already exists in the database, it then copies the changes to  
the existing object and then calls saveChanges.  Because the new EO  
was never inserted into the database then it does not get saved.  Only  
the changes applied to the existing EOs.  Anyways, that's a brief  
description of how it works (pre-Wonder code).


We are migrating to Wonder and I've seen code like that throw an  
exception, when one starts setting to-one relationships in an EO that  
has not been inserted into the database.  The exception says that the  
EOs have different editing contexts, i.e. one has null as the editing  
context and the other one has a non-null editing context.


Anyways, I'm trying to find out how to rewrite that code so it does  
not violate the EOF commandments and avoid the exception rightfully  
thrown by Wonder.


My first thought was a child editing context, create the new EO in a  
child editing context.  If you decide it does not exist in the  
database then save once to push to the parent, and then save the  
parent editing context to save to the database.  If it does exist then  
apply the changes to the existing EOs in the parent editing context  
and save that and simply throw away or revert the child editing context.


Anyways, something like that.  But it sounds to me like a peer editing  
context would work equally well.  Specially if they will both require  
that when I set relationships I get a local instance of the EO it  
wants to reference.


:-)




On Jul 9, 2009, at 12:09 PM, Kieran Kelleher wrote:

You should local instance it because a different ec is a different  
ec whether nested or not. I am not a fan of nested ec's and  
generally do not design them into my app architecture.


On Jul 9, 2009, at 11:51 AM, Ricardo J. Parada wrote:



If I have an EO in a child editing context, can it reference an EO  
in the parent editing context?
Or do I have to copy the EO from the parent editing context to the  
child editing context first?


I should know this one... But I don't use nested editing contexts  
that often, so I forgot.   :-)


Thanks


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

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

Re: AjaxObserveField - next Field

2009-07-09 Thread Ricardo J. Parada


I thought only the AjaxObserveField that triggered the update would  
execute the onComplete script.


Are all the AjaxObserveFields inside the AjaxUpdateContainer calling  
their onComplete script?




On Jul 9, 2009, at 12:26 PM, Frank Stock wrote:


Hi,

I want to select the next field after an AjaxUpdate. The Ajaxupdate  
is triggered from an AjaxObserveField.
But I see if I use 'onComplete' or 'OnSucces' that this is executed  
every time.
So if I include  
OnSuccess=document.getElementById('myElement1').focus(), after the  
reload(AjaxUpdate), all the AjaxObserveField-elements will execute  
that, so always the last field is selected.

How can I solve that?

Thanks,
Frank Stock
Belgium

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


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


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

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

Re: AjaxObserveField - next Field

2009-07-09 Thread Frank Stock

Yes, that is what happens.

I have several order-lines, If the amount or the price or the discount  
is changing, I want the total to be recalculates.

So I've made 3 AjaxObserveFields for every order line.

Op 9-jul-09, om 18:44 heeft Ricardo J. Parada het volgende geschreven:



I thought only the AjaxObserveField that triggered the update would  
execute the onComplete script.


Are all the AjaxObserveFields inside the AjaxUpdateContainer calling  
their onComplete script?




On Jul 9, 2009, at 12:26 PM, Frank Stock wrote:


Hi,

I want to select the next field after an AjaxUpdate. The Ajaxupdate  
is triggered from an AjaxObserveField.
But I see if I use 'onComplete' or 'OnSucces' that this is executed  
every time.
So if I include  
OnSuccess=document.getElementById('myElement1').focus(), after  
the reload(AjaxUpdate), all the AjaxObserveField-elements will  
execute that, so always the last field is selected.

How can I solve that?

Thanks,
Frank Stock
Belgium

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

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




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

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

Re: AjaxObserveField - next Field

2009-07-09 Thread Ricardo J. Parada
Just curious, are you wrapping the input field with an  
AjaxObserveField, or are you giving each field a unique ID and then  
using that with each AjaxObserveField's observeFieldID?  If so, are  
they inside a repetition and do they all have a distinct ID?


Anyways, too many question huh?  You may want to try the action  
binding in AjaxObserveField.  Then your action should be called when  
the observer fires.  Then the action that gets called could figure out  
what element to focus next and you could dynamically generate a script  
that focuses the input field you determine is next.  If you have a  
repetition for example, and you use the index binding you could use  
that to figure out which row corresponds to the AjaxObserveField that  
triggered the update.


Just ideas, not sure if they will work.


On Jul 9, 2009, at 12:51 PM, Frank Stock wrote:


Yes, that is what happens.

I have several order-lines, If the amount or the price or the  
discount is changing, I want the total to be recalculates.

So I've made 3 AjaxObserveFields for every order line.

Op 9-jul-09, om 18:44 heeft Ricardo J. Parada het volgende geschreven:



I thought only the AjaxObserveField that triggered the update would  
execute the onComplete script.


Are all the AjaxObserveFields inside the AjaxUpdateContainer  
calling their onComplete script?




On Jul 9, 2009, at 12:26 PM, Frank Stock wrote:


Hi,

I want to select the next field after an AjaxUpdate. The  
Ajaxupdate is triggered from an AjaxObserveField.
But I see if I use 'onComplete' or 'OnSucces' that this is  
executed every time.
So if I include  
OnSuccess=document.getElementById('myElement1').focus(), after  
the reload(AjaxUpdate), all the AjaxObserveField-elements will  
execute that, so always the last field is selected.

How can I solve that?

Thanks,
Frank Stock
Belgium

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

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






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

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

Listening for changes on an EO

2009-07-09 Thread Lon Varscsak
Is there a way for a controller object to listen for changes to an EO
(and a specific key)?

Thanks,

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

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


Re: Wonder Loggin question

2009-07-09 Thread Ricardo J. Parada


On Jul 9, 2009, at 1:37 PM, Miguel Angel Torres Avila wrote:

If we select the Debug and Stdout options we revive output logs like  
these:

DEBUG [WorkerThread4] - inserted WebObject with Name 'FileUpload1'.
DEBUG [WorkerThread4] - inserted WebObject with Name 'ImageButton3'.
DEBUG [WorkerThread4] - inserted WebObject with Name 'Conditional1'.
DEBUG [WorkerThread4] - inserted WebObject with Name 'Image1'.
DEBUG [WorkerThread4] - inserted WebObject with Name 'ImageButton1'.
DEBUG [WorkerThread4] - inserted WebObject with Name 'TextField2'.
DEBUG [WorkerThread4] - inserted WebObject with Name  
'GenericContainer1'.
DEBUG [WorkerThread4] - inserted WebObject with Name  
'ComponentContent1'.

DEBUG [WorkerThread4] - inserted WebObject with Name 'Div1'.

One for each WOObject / WOComponent that is inserted in the main  
component that is being accessed. This makes difficult for reading  
our debug logs and it looks that it is affecting the response  
velocity of the application


I am not a log4j expert, does anybody know what can be happening?



Maybe you can turn those off.  For example, on mine they look like this:

Jul 09 13:21:19 AjaxRD[53194] DEBUG  
ognl.helperfunction.WOHelperFunctionParser  - inserted WebObject with  
Name 'HasBannerLogo'.
Jul 09 13:21:19 AjaxRD[53194] DEBUG  
ognl.helperfunction.WOHelperFunctionParser  - inserted WebObject with  
Name 'BannerLogo'.
Jul 09 13:21:19 AjaxRD[53194] DEBUG  
ognl.helperfunction.WOHelperFunctionParser  - inserted WebObject with  
Name 'UserInfo'.
Jul 09 13:21:19 AjaxRD[53194] DEBUG  
ognl.helperfunction.WOHelperFunctionParser  - inserted WebObject with  
Name 'SearchMenu'.
Jul 09 13:21:19 AjaxRD[53194] DEBUG  
ognl.helperfunction.WOHelperFunctionParser  - inserted WebObject with  
Name 'MainMenu'.

...

So if you notice they are being logged at DEBUG level by  
WOHelperFunctionParser.  So I think you just need to set that to info  
level.  Something like this in your properties I think would take care  
of that:


log4j.logger.ognl.helperFunction.WOHelperFunctionParser=INFO



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

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

Re: Wonder Loggin question

2009-07-09 Thread Ricardo J. Parada


On Jul 9, 2009, at 1:46 PM, Ricardo J. Parada wrote:


log4j.logger.ognl.helperFunction.WOHelperFunctionParser=INFO



Oops.. helperFunction should be helperfunction (lowercase f) :

log4j.logger.ognl.helperfunction.WOHelperFunctionParser=INFO

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

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

[MEETING] Toronto Area Cocoa WebObjects Developer Group - July 14

2009-07-09 Thread Karl Moskowski
The next meeting of tacow/Toronto CocoaHeads will be held on Tuesday,   
July 14 at 6:30 PM at Ryerson University.


Up-to-date info and directions are available at
http://groups.google.com/group/tacow and http://tacow.org/.


Karl Moskowski kolpa...@voodooergonomics.com
Voodoo Ergonomics Inc. http://voodooergonomics.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:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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


Re: Fetch Optimization Advice

2009-07-09 Thread Mr. Frank Cobia
Just in case anybody cares or is looking at similar problems. I came  
up with an even better solution. I just programmatically remove the  
unused attributes from the model at application startup.


Thanks,
Frank


On Jul 8, 2009, at 4:37 PM, Mr. Frank Cobia wrote:

Sorry. I meant never use them in the report or the command line  
application. They are used by my web apps.


Frank


On Jul 8, 2009, at 4:34 PM, Mike Schrag wrote:

Is there any advantage to creating a view and pointing my new  
entity to that view as opposed to just pointing the entity  
directly to the table and leaving out the fields I am not  
interested in? It seems like the view would just add overhead, but  
you may know some advantage to using it that I am not aware of.
Oh, if you NEVER use the fields, then by all means, just remove  
them from your entity definition (assuming they're not NOT NULL  
fields).


ms

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

This email sent to frank.co...@f2technology.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:
http://lists.apple.com/mailman/options/webobjects-dev/frank.cobia%40f2technology.com

This email sent to frank.co...@f2technology.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:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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


Re: Wonder Loggin question

2009-07-09 Thread Miguel Angel Torres Avila

Thanks,

That was the solution.

:D

On Jul 9, 2009, at 12:48 PM, Ricardo J. Parada wrote:



On Jul 9, 2009, at 1:46 PM, Ricardo J. Parada wrote:


log4j.logger.ognl.helperFunction.WOHelperFunctionParser=INFO



Oops.. helperFunction should be helperfunction (lowercase f) :

log4j.logger.ognl.helperfunction.WOHelperFunctionParser=INFO






Ing. Miguel Angel Torres Avila




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

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

Re: WO Deployment [was:A WebObjects article on Appleinsider]

2009-07-09 Thread Chuck Hill


On Jul 9, 2009, at 7:11 AM, Mr. Pierre Frisch wrote:


Andrew,

There was some test made 3 years ago to use the mod_proxybalancer  
for WO and it works well. There 2 issues to fix: one is trivial the  
session id key is sessionid and not wosid 5.4 and later support  
changing that key. The other issue is dynamic reconfiguration.  
Adding an instance require editing the apache config file and  
restarting apache. We need to add to the mod_proxybalancer a  
mechanism to dynamically load the configuration, this is not a major  
endeavor and I am looking for a volunteer… We should contribute this  
code back to the apache foundation so we don not have to maintain it  
ourself. I would be happy to work with whoever volunteer.


I like the idea of moving to a servlet container bundle. I am not  
sure what would be required for this to work.


What are the advantages of moving to a servlet container bundle?


Chuck




Cheers

Pierre
--
Pierre Frisch
pie...@apple.com


On Jul 8, 2009, at 19:26, Andrew Lindesay wrote:


Hi Mike;

Given how close mod_balancer is to the traditional WO  
deployment, it might be a nice approach for mod_balancer to  
take on-board the few additional concepts necessary to support  
something which works like JavaMonitor / wotaskd so that  
deploying a WO system does not need a special Apache module  
compiled for it.  That would make a whole heap of documentation  
and confusion go away.

Yeah, this is actually exactly what I referring to :)


I guess it's the obvious thing to do. :)

Something like we're used to with JavaMonitor controlling the  
proxy balancer module would be very handy.


mod_balancer needs to be able to socket-connect to an external  
system (like wotaskd) to get the list of instances to 'balance  
over'.  I'm sure you know that there is an HTML interface called  
balancer manager in mod_balancer, but of course it has no ability  
to start the running instances on remote hosts and is.. well... not  
that great.  Ping and shutdown are supported as part of the AJP  
protocol (at least AJP13) and I think that refuse new sessions  
should perhaps be handled on the mod_balancer rather than the  
instance.


Another thought which may reduce the deployment documentation/ 
development overhead and ease-of-approach for newbies is that  
WOA's could be built into servlets all the time, but that there  
is a special servlet container built into WO runtime that can  
launch the app in a way which resembles a stand-alone execution  
of the application without the palaver that often goes with  
servlet deployments.  This idea may be quite nice.
So are you suggesting that WO should ALWAYS be running as a  
servlet, just that WO itself has a tiny little servletish  
container in it that it uses for directconnect?


In short; Yes! :)  An important aspect of such a change would be to  
make that tiny little servletish container nice and simple to  
run, but still do the bare minimum to feed a servlet with WOMessage- 
s from HTTP or AJP and fudge the URL-s for mod_balancer (see  
LEWOAJPContext).  BTW; still happy to push my the AJP adaptor  
framework into ProjectWonder instead of my distro if you want.


cheers.

___
Andrew Lindesay
www.lindesay.co.nz

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

This email sent to pie...@apple.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:
http://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 knowledge of WebObjects or who are trying to solve specific  
problems.

http://www.global-village.net/products/practical_webobjects






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

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


Re: Listening for changes on an EO

2009-07-09 Thread Chuck Hill


On Jul 9, 2009, at 10:24 AM, Lon Varscsak wrote:


Is there a way for a controller object to listen for changes to an EO
(and a specific key)?

Thanks,

Lon


EOEditingContext has ObjectsChangedInEditingContextNotification, but  
it is on an object by object basis, not a key by key one.


You could implement this in your EO super class.


Chuck

--
Chuck Hill Senior Consultant / VP Development

Practical WebObjects - for developers who want to increase their  
overall knowledge of WebObjects or who are trying to solve specific  
problems.

http://www.global-village.net/products/practical_webobjects






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

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


Re: Listening for changes on an EO

2009-07-09 Thread Simon McLean
also, if you are using wonder, check out
hasKeyChangedFromCommittedSnapshot in ERXGenericRecord. maybe listen
for the notification mentioned by chuck, then use
hasKeyChangedFromCommittedSnapshot to check the particular key you are
looking at.

simon

2009/7/9 Chuck Hill ch...@global-village.net:

 On Jul 9, 2009, at 10:24 AM, Lon Varscsak wrote:

 Is there a way for a controller object to listen for changes to an EO
 (and a specific key)?

 Thanks,

 Lon

 EOEditingContext has ObjectsChangedInEditingContextNotification, but it is
 on an object by object basis, not a key by key one.

 You could implement this in your EO super class.


 Chuck

 --
 Chuck Hill             Senior Consultant / VP Development

 Practical WebObjects - for developers who want to increase their overall
 knowledge of WebObjects or who are trying to solve specific problems.
 http://www.global-village.net/products/practical_webobjects






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

 This email sent to si...@potwells.co.uk

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

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


Re: WO Deployment [was:A WebObjects article on Appleinsider]

2009-07-09 Thread Henrique Prange

Hi Mike,

Mike Schrag wrote:

 i'm guessing maven
probably just has an answer to this -- build dependency jars that aren't 
deployment dependency jars, so they probably don't have to worry about it?




dependency
   groupIdjavax.servlet/groupId
   artifactIdservlet-api/artifactId
   version2.4/version
   scopeprovided/scope
/dependency

When you set the scope of a dependency as provided, the dependency is 
used to compile and is added to the classpath during development, but is 
not added to the final package produced by Maven. :)


Cheers,

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

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


Re: Listening for changes on an EO

2009-07-09 Thread Lon Varscsak
Thanks.  I figured there was nothing built to do exactly what I
needed, but I figured I would ask.

Do you know if there is much overhead if I implemented this in my EO
superclass even if there were no observers?

-Lon

On Thu, Jul 9, 2009 at 11:50 AM, Simon McLeansi...@potwells.co.uk wrote:
 also, if you are using wonder, check out
 hasKeyChangedFromCommittedSnapshot in ERXGenericRecord. maybe listen
 for the notification mentioned by chuck, then use
 hasKeyChangedFromCommittedSnapshot to check the particular key you are
 looking at.

 simon

 2009/7/9 Chuck Hill ch...@global-village.net:

 On Jul 9, 2009, at 10:24 AM, Lon Varscsak wrote:

 Is there a way for a controller object to listen for changes to an EO
 (and a specific key)?

 Thanks,

 Lon

 EOEditingContext has ObjectsChangedInEditingContextNotification, but it is
 on an object by object basis, not a key by key one.

 You could implement this in your EO super class.


 Chuck

 --
 Chuck Hill             Senior Consultant / VP Development

 Practical WebObjects - for developers who want to increase their overall
 knowledge of WebObjects or who are trying to solve specific problems.
 http://www.global-village.net/products/practical_webobjects






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

 This email sent to si...@potwells.co.uk


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

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


Re: Listening for changes on an EO

2009-07-09 Thread Chuck Hill


On Jul 9, 2009, at 12:26 PM, Lon Varscsak wrote:


Thanks.  I figured there was nothing built to do exactly what I
needed, but I figured I would ask.

Do you know if there is much overhead if I implemented this in my EO
superclass even if there were no observers?


EOF makes heavy use of notification.  I would not expect there to be  
much overhead.  You will probably want to qualify the notification  
with the EC (depending on what it is you are trying to do) to limit  
the number of observers.  And then keep the method receiving the  
notification fast.  The notifications are synchronous, so you don't  
want anything slow in this method.



Chuck





-Lon

On Thu, Jul 9, 2009 at 11:50 AM, Simon McLeansi...@potwells.co.uk  
wrote:

also, if you are using wonder, check out
hasKeyChangedFromCommittedSnapshot in ERXGenericRecord. maybe listen
for the notification mentioned by chuck, then use
hasKeyChangedFromCommittedSnapshot to check the particular key you  
are

looking at.

simon

2009/7/9 Chuck Hill ch...@global-village.net:


On Jul 9, 2009, at 10:24 AM, Lon Varscsak wrote:

Is there a way for a controller object to listen for changes to  
an EO

(and a specific key)?

Thanks,

Lon


EOEditingContext has ObjectsChangedInEditingContextNotification,  
but it is

on an object by object basis, not a key by key one.

You could implement this in your EO super class.


Chuck

--
Chuck Hill Senior Consultant / VP Development

Practical WebObjects - for developers who want to increase their  
overall
knowledge of WebObjects or who are trying to solve specific  
problems.

http://www.global-village.net/products/practical_webobjects






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

This email sent to si...@potwells.co.uk







--
Chuck Hill Senior Consultant / VP Development

Practical WebObjects - for developers who want to increase their  
overall knowledge of WebObjects or who are trying to solve specific  
problems.

http://www.global-village.net/products/practical_webobjects






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

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


Re: Listening for changes on an EO

2009-07-09 Thread Lon Varscsak
Thanks for the tips!

-Lon

On Thu, Jul 9, 2009 at 12:34 PM, Chuck Hillch...@global-village.net wrote:

 On Jul 9, 2009, at 12:26 PM, Lon Varscsak wrote:

 Thanks.  I figured there was nothing built to do exactly what I
 needed, but I figured I would ask.

 Do you know if there is much overhead if I implemented this in my EO
 superclass even if there were no observers?

 EOF makes heavy use of notification.  I would not expect there to be much
 overhead.  You will probably want to qualify the notification with the EC
 (depending on what it is you are trying to do) to limit the number of
 observers.  And then keep the method receiving the notification fast.  The
 notifications are synchronous, so you don't want anything slow in this
 method.


 Chuck




 -Lon

 On Thu, Jul 9, 2009 at 11:50 AM, Simon McLeansi...@potwells.co.uk wrote:

 also, if you are using wonder, check out
 hasKeyChangedFromCommittedSnapshot in ERXGenericRecord. maybe listen
 for the notification mentioned by chuck, then use
 hasKeyChangedFromCommittedSnapshot to check the particular key you are
 looking at.

 simon

 2009/7/9 Chuck Hill ch...@global-village.net:

 On Jul 9, 2009, at 10:24 AM, Lon Varscsak wrote:

 Is there a way for a controller object to listen for changes to an EO
 (and a specific key)?

 Thanks,

 Lon

 EOEditingContext has ObjectsChangedInEditingContextNotification, but it
 is
 on an object by object basis, not a key by key one.

 You could implement this in your EO super class.


 Chuck

 --
 Chuck Hill             Senior Consultant / VP Development

 Practical WebObjects - for developers who want to increase their overall
 knowledge of WebObjects or who are trying to solve specific problems.
 http://www.global-village.net/products/practical_webobjects






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

 http://lists.apple.com/mailman/options/webobjects-dev/simon%40potwells.co.uk

 This email sent to si...@potwells.co.uk




 --
 Chuck Hill             Senior Consultant / VP Development

 Practical WebObjects - for developers who want to increase their overall
 knowledge of WebObjects or who are trying to solve specific problems.
 http://www.global-village.net/products/practical_webobjects







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

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


Re: WO Deployment [was:A WebObjects article on Appleinsider]

2009-07-09 Thread Joe Little
On Thu, Jul 9, 2009 at 8:33 AM, Jean-Francois
Veillettejean_francois_veille...@yahoo.ca wrote:
 do you run into this problem or am i just making that out to be more
 difficult than it is?

 At that point, I would say industry have solved it.  how do normal j2ee
 developer do when they are in a developement cycle ?


The rails-like Grails project embeds jetty for development w/ rapid
turnaround. You deploy as a war to then any container.


 - jfv

 note that I know nothing of all this, I find it interesting though.
 ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list      (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 http://lists.apple.com/mailman/options/webobjects-dev/jmlittle%40gmail.com

 This email sent to jmlit...@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:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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


Re: Listening for changes on an EO

2009-07-09 Thread Lon Varscsak
Uh, another question. :)  Since I have a custom EO super-super class,
I decided to try to implement this in takeStoredValueForKey(..).

It works, although I was also trying to post the old value, and
asking for this current value at this point makes EOF not so
happy...but that's not strictly required for my needs.

However, it does post notifications even for fetched objects, what
would be the best way to only post changes after fetching?

Thanks again,

Lon

On Thu, Jul 9, 2009 at 12:43 PM, Lon Varscsakvarsc...@smarthealth.com wrote:
 Thanks for the tips!

 -Lon

 On Thu, Jul 9, 2009 at 12:34 PM, Chuck Hillch...@global-village.net wrote:

 On Jul 9, 2009, at 12:26 PM, Lon Varscsak wrote:

 Thanks.  I figured there was nothing built to do exactly what I
 needed, but I figured I would ask.

 Do you know if there is much overhead if I implemented this in my EO
 superclass even if there were no observers?

 EOF makes heavy use of notification.  I would not expect there to be much
 overhead.  You will probably want to qualify the notification with the EC
 (depending on what it is you are trying to do) to limit the number of
 observers.  And then keep the method receiving the notification fast.  The
 notifications are synchronous, so you don't want anything slow in this
 method.


 Chuck




 -Lon

 On Thu, Jul 9, 2009 at 11:50 AM, Simon McLeansi...@potwells.co.uk wrote:

 also, if you are using wonder, check out
 hasKeyChangedFromCommittedSnapshot in ERXGenericRecord. maybe listen
 for the notification mentioned by chuck, then use
 hasKeyChangedFromCommittedSnapshot to check the particular key you are
 looking at.

 simon

 2009/7/9 Chuck Hill ch...@global-village.net:

 On Jul 9, 2009, at 10:24 AM, Lon Varscsak wrote:

 Is there a way for a controller object to listen for changes to an EO
 (and a specific key)?

 Thanks,

 Lon

 EOEditingContext has ObjectsChangedInEditingContextNotification, but it
 is
 on an object by object basis, not a key by key one.

 You could implement this in your EO super class.


 Chuck

 --
 Chuck Hill             Senior Consultant / VP Development

 Practical WebObjects - for developers who want to increase their overall
 knowledge of WebObjects or who are trying to solve specific problems.
 http://www.global-village.net/products/practical_webobjects






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

 http://lists.apple.com/mailman/options/webobjects-dev/simon%40potwells.co.uk

 This email sent to si...@potwells.co.uk




 --
 Chuck Hill             Senior Consultant / VP Development

 Practical WebObjects - for developers who want to increase their overall
 knowledge of WebObjects or who are trying to solve specific problems.
 http://www.global-village.net/products/practical_webobjects








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

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


Re: Listening for changes on an EO

2009-07-09 Thread Mark Morris
Just a clarification, do you want to know when the value changes, even  
if it's not saved to the database?  Or do you just want to know if a  
change is being saved?  That would make a difference.  ;-)


Regards,
Mark

On Jul 9, 2009, at 3:28 PM, Lon Varscsak wrote:


Uh, another question. :)  Since I have a custom EO super-super class,
I decided to try to implement this in takeStoredValueForKey(..).

It works, although I was also trying to post the old value, and
asking for this current value at this point makes EOF not so
happy...but that's not strictly required for my needs.

However, it does post notifications even for fetched objects, what
would be the best way to only post changes after fetching?

Thanks again,

Lon

On Thu, Jul 9, 2009 at 12:43 PM, Lon  
Varscsakvarsc...@smarthealth.com wrote:

Thanks for the tips!

-Lon

On Thu, Jul 9, 2009 at 12:34 PM, Chuck Hillch...@global- 
village.net wrote:


On Jul 9, 2009, at 12:26 PM, Lon Varscsak wrote:


Thanks.  I figured there was nothing built to do exactly what I
needed, but I figured I would ask.

Do you know if there is much overhead if I implemented this in my  
EO

superclass even if there were no observers?


EOF makes heavy use of notification.  I would not expect there to  
be much
overhead.  You will probably want to qualify the notification with  
the EC
(depending on what it is you are trying to do) to limit the number  
of
observers.  And then keep the method receiving the notification  
fast.  The
notifications are synchronous, so you don't want anything slow in  
this

method.


Chuck





-Lon

On Thu, Jul 9, 2009 at 11:50 AM, Simon  
McLeansi...@potwells.co.uk wrote:


also, if you are using wonder, check out
hasKeyChangedFromCommittedSnapshot in ERXGenericRecord. maybe  
listen

for the notification mentioned by chuck, then use
hasKeyChangedFromCommittedSnapshot to check the particular key  
you are

looking at.

simon

2009/7/9 Chuck Hill ch...@global-village.net:


On Jul 9, 2009, at 10:24 AM, Lon Varscsak wrote:

Is there a way for a controller object to listen for changes  
to an EO

(and a specific key)?

Thanks,

Lon


EOEditingContext has  
ObjectsChangedInEditingContextNotification, but it

is
on an object by object basis, not a key by key one.

You could implement this in your EO super class.


Chuck

--
Chuck Hill Senior Consultant / VP Development

Practical WebObjects - for developers who want to increase  
their overall
knowledge of WebObjects or who are trying to solve specific  
problems.

http://www.global-village.net/products/practical_webobjects






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

http://lists.apple.com/mailman/options/webobjects-dev/simon%40potwells.co.uk

This email sent to si...@potwells.co.uk







--
Chuck Hill Senior Consultant / VP Development

Practical WebObjects - for developers who want to increase their  
overall
knowledge of WebObjects or who are trying to solve specific  
problems.

http://www.global-village.net/products/practical_webobjects










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

This email sent to ma...@onpointsoftware.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:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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


Re: Listening for changes on an EO

2009-07-09 Thread Lon Varscsak
I want to know if it's being changed.  I have a controller object that
will need to recalculate some values when a specific attribute changes
in the EO.

-Lon

On Thu, Jul 9, 2009 at 1:42 PM, Mark Morrisma...@onpointsoftware.com wrote:
 Just a clarification, do you want to know when the value changes, even if
 it's not saved to the database?  Or do you just want to know if a change is
 being saved?  That would make a difference.  ;-)

 Regards,
 Mark

 On Jul 9, 2009, at 3:28 PM, Lon Varscsak wrote:

 Uh, another question. :)  Since I have a custom EO super-super class,
 I decided to try to implement this in takeStoredValueForKey(..).

 It works, although I was also trying to post the old value, and
 asking for this current value at this point makes EOF not so
 happy...but that's not strictly required for my needs.

 However, it does post notifications even for fetched objects, what
 would be the best way to only post changes after fetching?

 Thanks again,

 Lon

 On Thu, Jul 9, 2009 at 12:43 PM, Lon Varscsakvarsc...@smarthealth.com
 wrote:

 Thanks for the tips!

 -Lon

 On Thu, Jul 9, 2009 at 12:34 PM, Chuck Hillch...@global-village.net
 wrote:

 On Jul 9, 2009, at 12:26 PM, Lon Varscsak wrote:

 Thanks.  I figured there was nothing built to do exactly what I
 needed, but I figured I would ask.

 Do you know if there is much overhead if I implemented this in my EO
 superclass even if there were no observers?

 EOF makes heavy use of notification.  I would not expect there to be
 much
 overhead.  You will probably want to qualify the notification with the
 EC
 (depending on what it is you are trying to do) to limit the number of
 observers.  And then keep the method receiving the notification fast.
  The
 notifications are synchronous, so you don't want anything slow in this
 method.


 Chuck




 -Lon

 On Thu, Jul 9, 2009 at 11:50 AM, Simon McLeansi...@potwells.co.uk
 wrote:

 also, if you are using wonder, check out
 hasKeyChangedFromCommittedSnapshot in ERXGenericRecord. maybe listen
 for the notification mentioned by chuck, then use
 hasKeyChangedFromCommittedSnapshot to check the particular key you are
 looking at.

 simon

 2009/7/9 Chuck Hill ch...@global-village.net:

 On Jul 9, 2009, at 10:24 AM, Lon Varscsak wrote:

 Is there a way for a controller object to listen for changes to an
 EO
 (and a specific key)?

 Thanks,

 Lon

 EOEditingContext has ObjectsChangedInEditingContextNotification, but
 it
 is
 on an object by object basis, not a key by key one.

 You could implement this in your EO super class.


 Chuck

 --
 Chuck Hill             Senior Consultant / VP Development

 Practical WebObjects - for developers who want to increase their
 overall
 knowledge of WebObjects or who are trying to solve specific problems.
 http://www.global-village.net/products/practical_webobjects






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


 http://lists.apple.com/mailman/options/webobjects-dev/simon%40potwells.co.uk

 This email sent to si...@potwells.co.uk




 --
 Chuck Hill             Senior Consultant / VP Development

 Practical WebObjects - for developers who want to increase their overall
 knowledge of WebObjects or who are trying to solve specific problems.
 http://www.global-village.net/products/practical_webobjects








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

 http://lists.apple.com/mailman/options/webobjects-dev/markm%40onpointsoftware.com

 This email sent to ma...@onpointsoftware.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:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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


Re: Listening for changes on an EO

2009-07-09 Thread Lon Varscsak
Sorry I didn't finish the first sentence.  I want to know when the
value is being changed regardless of whether it's committed or not.

On Thu, Jul 9, 2009 at 1:45 PM, Lon Varscsakvarsc...@smarthealth.com wrote:
 I want to know if it's being changed.  I have a controller object that
 will need to recalculate some values when a specific attribute changes
 in the EO.

 -Lon

 On Thu, Jul 9, 2009 at 1:42 PM, Mark Morrisma...@onpointsoftware.com wrote:
 Just a clarification, do you want to know when the value changes, even if
 it's not saved to the database?  Or do you just want to know if a change is
 being saved?  That would make a difference.  ;-)

 Regards,
 Mark

 On Jul 9, 2009, at 3:28 PM, Lon Varscsak wrote:

 Uh, another question. :)  Since I have a custom EO super-super class,
 I decided to try to implement this in takeStoredValueForKey(..).

 It works, although I was also trying to post the old value, and
 asking for this current value at this point makes EOF not so
 happy...but that's not strictly required for my needs.

 However, it does post notifications even for fetched objects, what
 would be the best way to only post changes after fetching?

 Thanks again,

 Lon

 On Thu, Jul 9, 2009 at 12:43 PM, Lon Varscsakvarsc...@smarthealth.com
 wrote:

 Thanks for the tips!

 -Lon

 On Thu, Jul 9, 2009 at 12:34 PM, Chuck Hillch...@global-village.net
 wrote:

 On Jul 9, 2009, at 12:26 PM, Lon Varscsak wrote:

 Thanks.  I figured there was nothing built to do exactly what I
 needed, but I figured I would ask.

 Do you know if there is much overhead if I implemented this in my EO
 superclass even if there were no observers?

 EOF makes heavy use of notification.  I would not expect there to be
 much
 overhead.  You will probably want to qualify the notification with the
 EC
 (depending on what it is you are trying to do) to limit the number of
 observers.  And then keep the method receiving the notification fast.
  The
 notifications are synchronous, so you don't want anything slow in this
 method.


 Chuck




 -Lon

 On Thu, Jul 9, 2009 at 11:50 AM, Simon McLeansi...@potwells.co.uk
 wrote:

 also, if you are using wonder, check out
 hasKeyChangedFromCommittedSnapshot in ERXGenericRecord. maybe listen
 for the notification mentioned by chuck, then use
 hasKeyChangedFromCommittedSnapshot to check the particular key you are
 looking at.

 simon

 2009/7/9 Chuck Hill ch...@global-village.net:

 On Jul 9, 2009, at 10:24 AM, Lon Varscsak wrote:

 Is there a way for a controller object to listen for changes to an
 EO
 (and a specific key)?

 Thanks,

 Lon

 EOEditingContext has ObjectsChangedInEditingContextNotification, but
 it
 is
 on an object by object basis, not a key by key one.

 You could implement this in your EO super class.


 Chuck

 --
 Chuck Hill             Senior Consultant / VP Development

 Practical WebObjects - for developers who want to increase their
 overall
 knowledge of WebObjects or who are trying to solve specific problems.
 http://www.global-village.net/products/practical_webobjects






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


 http://lists.apple.com/mailman/options/webobjects-dev/simon%40potwells.co.uk

 This email sent to si...@potwells.co.uk




 --
 Chuck Hill             Senior Consultant / VP Development

 Practical WebObjects - for developers who want to increase their overall
 knowledge of WebObjects or who are trying to solve specific problems.
 http://www.global-village.net/products/practical_webobjects








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

 http://lists.apple.com/mailman/options/webobjects-dev/markm%40onpointsoftware.com

 This email sent to ma...@onpointsoftware.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:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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


Re: Listening for changes on an EO

2009-07-09 Thread Chuck Hill


On Jul 9, 2009, at 1:28 PM, Lon Varscsak wrote:


Uh, another question. :)  Since I have a custom EO super-super class,
I decided to try to implement this in takeStoredValueForKey(..).

It works, although I was also trying to post the old value, and
asking for this current value at this point makes EOF not so
happy...but that's not strictly required for my needs.

However, it does post notifications even for fetched objects, what
would be the best way to only post changes after fetching?


This might be closer to what you want:

http://developer.apple.com/documentation/InternetWeb/Reference/WO542Reference/com/webobjects/eocontrol/EOObserverCenter.html

That would give you the before picture.  You can set a flag there  
too (or in willChange()).  If the flag is set, then in  
takeStoredValueForKey, you can send out the after notification and  
clear the flag.  willChange() will not get called for fetched objects.




Chuck


On Thu, Jul 9, 2009 at 12:43 PM, Lon  
Varscsakvarsc...@smarthealth.com wrote:

Thanks for the tips!

-Lon

On Thu, Jul 9, 2009 at 12:34 PM, Chuck Hillch...@global- 
village.net wrote:


On Jul 9, 2009, at 12:26 PM, Lon Varscsak wrote:


Thanks.  I figured there was nothing built to do exactly what I
needed, but I figured I would ask.

Do you know if there is much overhead if I implemented this in my  
EO

superclass even if there were no observers?


EOF makes heavy use of notification.  I would not expect there to  
be much
overhead.  You will probably want to qualify the notification with  
the EC
(depending on what it is you are trying to do) to limit the number  
of
observers.  And then keep the method receiving the notification  
fast.  The
notifications are synchronous, so you don't want anything slow in  
this

method.


Chuck





-Lon

On Thu, Jul 9, 2009 at 11:50 AM, Simon  
McLeansi...@potwells.co.uk wrote:


also, if you are using wonder, check out
hasKeyChangedFromCommittedSnapshot in ERXGenericRecord. maybe  
listen

for the notification mentioned by chuck, then use
hasKeyChangedFromCommittedSnapshot to check the particular key  
you are

looking at.

simon

2009/7/9 Chuck Hill ch...@global-village.net:


On Jul 9, 2009, at 10:24 AM, Lon Varscsak wrote:

Is there a way for a controller object to listen for changes  
to an EO

(and a specific key)?

Thanks,

Lon


EOEditingContext has  
ObjectsChangedInEditingContextNotification, but it

is
on an object by object basis, not a key by key one.

You could implement this in your EO super class.


Chuck

--
Chuck Hill Senior Consultant / VP Development

Practical WebObjects - for developers who want to increase  
their overall
knowledge of WebObjects or who are trying to solve specific  
problems.

http://www.global-village.net/products/practical_webobjects






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

http://lists.apple.com/mailman/options/webobjects-dev/simon%40potwells.co.uk

This email sent to si...@potwells.co.uk







--
Chuck Hill Senior Consultant / VP Development

Practical WebObjects - for developers who want to increase their  
overall
knowledge of WebObjects or who are trying to solve specific  
problems.

http://www.global-village.net/products/practical_webobjects













--
Chuck Hill Senior Consultant / VP Development

Practical WebObjects - for developers who want to increase their  
overall knowledge of WebObjects or who are trying to solve specific  
problems.

http://www.global-village.net/products/practical_webobjects






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

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


Re: Listening for changes on an EO

2009-07-09 Thread Chuck Hill


On Jul 9, 2009, at 1:45 PM, Lon Varscsak wrote:


I want to know if it's being changed.  I have a controller object that
will need to recalculate some values when a specific attribute changes
in the EO.


Why not just override the set... method to send the notification?




-Lon

On Thu, Jul 9, 2009 at 1:42 PM, Mark  
Morrisma...@onpointsoftware.com wrote:
Just a clarification, do you want to know when the value changes,  
even if
it's not saved to the database?  Or do you just want to know if a  
change is

being saved?  That would make a difference.  ;-)

Regards,
Mark

On Jul 9, 2009, at 3:28 PM, Lon Varscsak wrote:

Uh, another question. :)  Since I have a custom EO super-super  
class,

I decided to try to implement this in takeStoredValueForKey(..).

It works, although I was also trying to post the old value, and
asking for this current value at this point makes EOF not so
happy...but that's not strictly required for my needs.

However, it does post notifications even for fetched objects, what
would be the best way to only post changes after fetching?

Thanks again,

Lon

On Thu, Jul 9, 2009 at 12:43 PM, Lon Varscsakvarsc...@smarthealth.com 


wrote:


Thanks for the tips!

-Lon

On Thu, Jul 9, 2009 at 12:34 PM, Chuck Hillch...@global-village.net 


wrote:


On Jul 9, 2009, at 12:26 PM, Lon Varscsak wrote:


Thanks.  I figured there was nothing built to do exactly what I
needed, but I figured I would ask.

Do you know if there is much overhead if I implemented this in  
my EO

superclass even if there were no observers?


EOF makes heavy use of notification.  I would not expect there  
to be

much
overhead.  You will probably want to qualify the notification  
with the

EC
(depending on what it is you are trying to do) to limit the  
number of
observers.  And then keep the method receiving the notification  
fast.

 The
notifications are synchronous, so you don't want anything slow  
in this

method.


Chuck





-Lon

On Thu, Jul 9, 2009 at 11:50 AM, Simon McLeansi...@potwells.co.uk 


wrote:


also, if you are using wonder, check out
hasKeyChangedFromCommittedSnapshot in ERXGenericRecord. maybe  
listen

for the notification mentioned by chuck, then use
hasKeyChangedFromCommittedSnapshot to check the particular key  
you are

looking at.

simon

2009/7/9 Chuck Hill ch...@global-village.net:


On Jul 9, 2009, at 10:24 AM, Lon Varscsak wrote:

Is there a way for a controller object to listen for changes  
to an

EO
(and a specific key)?

Thanks,

Lon


EOEditingContext has  
ObjectsChangedInEditingContextNotification, but

it
is
on an object by object basis, not a key by key one.

You could implement this in your EO super class.


Chuck

--
Chuck Hill Senior Consultant / VP Development

Practical WebObjects - for developers who want to increase  
their

overall
knowledge of WebObjects or who are trying to solve specific  
problems.

http://www.global-village.net/products/practical_webobjects






___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com 
)

Help/Unsubscribe/Update your Subscription:


http://lists.apple.com/mailman/options/webobjects-dev/simon%40potwells.co.uk

This email sent to si...@potwells.co.uk







--
Chuck Hill Senior Consultant / VP Development

Practical WebObjects - for developers who want to increase their  
overall
knowledge of WebObjects or who are trying to solve specific  
problems.

http://www.global-village.net/products/practical_webobjects










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

http://lists.apple.com/mailman/options/webobjects-dev/markm%40onpointsoftware.com

This email sent to ma...@onpointsoftware.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:
http://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 knowledge of WebObjects or who are trying to solve specific  
problems.

http://www.global-village.net/products/practical_webobjects






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

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


Re: Listening for changes on an EO

2009-07-09 Thread Lon Varscsak
I was trying to make something more generic to be able to use in more
than one case and keep my Velocity template clean of that stuff.

Thanks again for all the help!

-Lon

On Thu, Jul 9, 2009 at 1:52 PM, Chuck Hillch...@global-village.net wrote:

 On Jul 9, 2009, at 1:45 PM, Lon Varscsak wrote:

 I want to know if it's being changed.  I have a controller object that
 will need to recalculate some values when a specific attribute changes
 in the EO.

 Why not just override the set... method to send the notification?



 -Lon

 On Thu, Jul 9, 2009 at 1:42 PM, Mark Morrisma...@onpointsoftware.com
 wrote:

 Just a clarification, do you want to know when the value changes, even if
 it's not saved to the database?  Or do you just want to know if a change
 is
 being saved?  That would make a difference.  ;-)

 Regards,
 Mark

 On Jul 9, 2009, at 3:28 PM, Lon Varscsak wrote:

 Uh, another question. :)  Since I have a custom EO super-super class,
 I decided to try to implement this in takeStoredValueForKey(..).

 It works, although I was also trying to post the old value, and
 asking for this current value at this point makes EOF not so
 happy...but that's not strictly required for my needs.

 However, it does post notifications even for fetched objects, what
 would be the best way to only post changes after fetching?

 Thanks again,

 Lon

 On Thu, Jul 9, 2009 at 12:43 PM, Lon Varscsakvarsc...@smarthealth.com
 wrote:

 Thanks for the tips!

 -Lon

 On Thu, Jul 9, 2009 at 12:34 PM, Chuck Hillch...@global-village.net
 wrote:

 On Jul 9, 2009, at 12:26 PM, Lon Varscsak wrote:

 Thanks.  I figured there was nothing built to do exactly what I
 needed, but I figured I would ask.

 Do you know if there is much overhead if I implemented this in my EO
 superclass even if there were no observers?

 EOF makes heavy use of notification.  I would not expect there to be
 much
 overhead.  You will probably want to qualify the notification with the
 EC
 (depending on what it is you are trying to do) to limit the number of
 observers.  And then keep the method receiving the notification fast.
  The
 notifications are synchronous, so you don't want anything slow in this
 method.


 Chuck




 -Lon

 On Thu, Jul 9, 2009 at 11:50 AM, Simon McLeansi...@potwells.co.uk
 wrote:

 also, if you are using wonder, check out
 hasKeyChangedFromCommittedSnapshot in ERXGenericRecord. maybe listen
 for the notification mentioned by chuck, then use
 hasKeyChangedFromCommittedSnapshot to check the particular key you
 are
 looking at.

 simon

 2009/7/9 Chuck Hill ch...@global-village.net:

 On Jul 9, 2009, at 10:24 AM, Lon Varscsak wrote:

 Is there a way for a controller object to listen for changes to an
 EO
 (and a specific key)?

 Thanks,

 Lon

 EOEditingContext has ObjectsChangedInEditingContextNotification,
 but
 it
 is
 on an object by object basis, not a key by key one.

 You could implement this in your EO super class.


 Chuck

 --
 Chuck Hill             Senior Consultant / VP Development

 Practical WebObjects - for developers who want to increase their
 overall
 knowledge of WebObjects or who are trying to solve specific
 problems.
 http://www.global-village.net/products/practical_webobjects






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



 http://lists.apple.com/mailman/options/webobjects-dev/simon%40potwells.co.uk

 This email sent to si...@potwells.co.uk




 --
 Chuck Hill             Senior Consultant / VP Development

 Practical WebObjects - for developers who want to increase their
 overall
 knowledge of WebObjects or who are trying to solve specific problems.
 http://www.global-village.net/products/practical_webobjects








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


 http://lists.apple.com/mailman/options/webobjects-dev/markm%40onpointsoftware.com

 This email sent to ma...@onpointsoftware.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:

 http://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
 knowledge of WebObjects or who are trying to solve specific problems.
 http://www.global-village.net/products/practical_webobjects







 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  

Re: Listening for changes on an EO

2009-07-09 Thread Chuck Hill
You would put it in the sub-class, in a method that overrode the super- 
class, NOT in the generated class.


e.g.
public void setFoo(Number foo) {
Number oldFoo = foo();
super.setFoo(foo);  // calls the generated version
	// broadcast notification of this, this.editingContext(), oldFoo,  
foo() here

}


Chuck

On Jul 9, 2009, at 1:57 PM, Lon Varscsak wrote:


I was trying to make something more generic to be able to use in more
than one case and keep my Velocity template clean of that stuff.

Thanks again for all the help!

-Lon

On Thu, Jul 9, 2009 at 1:52 PM, Chuck Hillch...@global-village.net  
wrote:


On Jul 9, 2009, at 1:45 PM, Lon Varscsak wrote:

I want to know if it's being changed.  I have a controller object  
that
will need to recalculate some values when a specific attribute  
changes

in the EO.


Why not just override the set... method to send the notification?




-Lon

On Thu, Jul 9, 2009 at 1:42 PM, Mark Morrisma...@onpointsoftware.com 


wrote:


Just a clarification, do you want to know when the value changes,  
even if
it's not saved to the database?  Or do you just want to know if a  
change

is
being saved?  That would make a difference.  ;-)

Regards,
Mark

On Jul 9, 2009, at 3:28 PM, Lon Varscsak wrote:

Uh, another question. :)  Since I have a custom EO super-super  
class,

I decided to try to implement this in takeStoredValueForKey(..).

It works, although I was also trying to post the old value, and
asking for this current value at this point makes EOF not so
happy...but that's not strictly required for my needs.

However, it does post notifications even for fetched objects, what
would be the best way to only post changes after fetching?

Thanks again,

Lon

On Thu, Jul 9, 2009 at 12:43 PM, Lon Varscsakvarsc...@smarthealth.com 


wrote:


Thanks for the tips!

-Lon

On Thu, Jul 9, 2009 at 12:34 PM, Chuck Hillch...@global-village.net 


wrote:


On Jul 9, 2009, at 12:26 PM, Lon Varscsak wrote:


Thanks.  I figured there was nothing built to do exactly what I
needed, but I figured I would ask.

Do you know if there is much overhead if I implemented this  
in my EO

superclass even if there were no observers?


EOF makes heavy use of notification.  I would not expect there  
to be

much
overhead.  You will probably want to qualify the notification  
with the

EC
(depending on what it is you are trying to do) to limit the  
number of
observers.  And then keep the method receiving the  
notification fast.

 The
notifications are synchronous, so you don't want anything slow  
in this

method.


Chuck





-Lon

On Thu, Jul 9, 2009 at 11:50 AM, Simon McLeansi...@potwells.co.uk 


wrote:


also, if you are using wonder, check out
hasKeyChangedFromCommittedSnapshot in ERXGenericRecord.  
maybe listen

for the notification mentioned by chuck, then use
hasKeyChangedFromCommittedSnapshot to check the particular  
key you

are
looking at.

simon

2009/7/9 Chuck Hill ch...@global-village.net:


On Jul 9, 2009, at 10:24 AM, Lon Varscsak wrote:

Is there a way for a controller object to listen for  
changes to an

EO
(and a specific key)?

Thanks,

Lon


EOEditingContext has  
ObjectsChangedInEditingContextNotification,

but
it
is
on an object by object basis, not a key by key one.

You could implement this in your EO super class.


Chuck

--
Chuck Hill Senior Consultant / VP Development

Practical WebObjects - for developers who want to increase  
their

overall
knowledge of WebObjects or who are trying to solve specific
problems.
http://www.global-village.net/products/practical_webobjects






___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com 
)

Help/Unsubscribe/Update your Subscription:



http://lists.apple.com/mailman/options/webobjects-dev/simon%40potwells.co.uk

This email sent to si...@potwells.co.uk







--
Chuck Hill Senior Consultant / VP Development

Practical WebObjects - for developers who want to increase their
overall
knowledge of WebObjects or who are trying to solve specific  
problems.

http://www.global-village.net/products/practical_webobjects










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


http://lists.apple.com/mailman/options/webobjects-dev/markm%40onpointsoftware.com

This email sent to ma...@onpointsoftware.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:

http://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


Re: What could that be?

2009-07-09 Thread Lon Varscsak
Did you take over my app? ;)  I have the same problem in a production
app and it drives me crazy, because I can't see that I'm doing
anything wrong (and it's intermittent).

-Lon

On Thu, Jul 9, 2009 at 4:45 PM, Lars
Sonchocky-Helldorflars.sonchocky-helld...@hamburg.de wrote:
 Hi, I occasionally get the following exception in an WOApp I took over some
 weeks ago. Any idea what could be the cause for this and whatt could be done
 about it? thanks, Lars java.lang.reflect.InvocationTargetException at
 com.webobjects.appserver._private.WOActionRequestHandler._handleRequest(
 WOActionRequestHandler.java:269) at
 com.webobjects.appserver._private.WOActionRequestHandler.handleRequest
 (WOActionRequestHandler.java:158) at
 er.extensions.appserver.ERXDirectActionRequestHandler.handleRequest
 (ERXDirectActionRequestHandler.java:124) at
 com.webobjects.appserver.WOApplication.dispatchRequest
 (WOApplication.java:1687) at
 er.extensions.appserver.ERXApplication.dispatchRequestImmediately
 (ERXApplication.java:1656) at
 er.extensions.appserver.ERXApplication.dispatchRequest
 (ERXApplication.java:1620) 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:637) Caused
 by: java.lang.StackOverflowError at
 com.webobjects.foundation._NSWeakMutableArray.__removeReference
 (_NSWeakMutableArray.java:124) at
 com.webobjects.foundation._NSWeakMutableCollection.processQueue
 (_NSWeakMutableCollection.java:176) at
 com.webobjects.foundation._NSWeakMutableArray.__removeReference
 (_NSWeakMutableArray.java:124) at
 com.webobjects.foundation._NSWeakMutableCollection.processQueue
 (_NSWeakMutableCollection.java:176) at
 com.webobjects.foundation._NSWeakMutableArray.__removeReference
 (_NSWeakMutableArray.java:124) at
 com.webobjects.foundation._NSWeakMutableCollection.processQueue
 (_NSWeakMutableCollection.java:176) at
 com.webobjects.foundation._NSWeakMutableArray.__removeReference
 (_NSWeakMutableArray.java:124) at
 com.webobjects.foundation._NSWeakMutableCollection.processQueue
 (_NSWeakMutableCollection.java:176) at
 com.webobjects.foundation._NSWeakMutableArray.__removeReference
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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


Re: What could that be?

2009-07-09 Thread Lars Sonchocky-Helldorf


Am 10.07.2009 um 01:56 schrieb Lon Varscsak:


Did you take over my app? ;)  I have the same problem in a production
app and it drives me crazy, because I can't see that I'm doing
anything wrong (and it's intermittent).


This is something I can't say about that app. It's rather higgledy- 
piggledy without any straight line so it could be anything. I think  
the only thing our both apps have in common is that they are in  
production …


To me this looks like some garbage collection recursion failure (wild  
guess), but I have no idea what causes it.




-Lon


regards,

Lars



On Thu, Jul 9, 2009 at 4:45 PM, Lars
Sonchocky-Helldorflars.sonchocky-helld...@hamburg.de wrote:
Hi, I occasionally get the following exception in an WOApp I took  
over some
weeks ago. Any idea what could be the cause for this and whatt  
could be done

about it? thanks, Lars java.lang.reflect.InvocationTargetException at
com.webobjects.appserver._private.WOActionRequestHandler._handleReque 
st(

WOActionRequestHandler.java:269) at
com.webobjects.appserver._private.WOActionRequestHandler.handleReques 
t

(WOActionRequestHandler.java:158) at
er.extensions.appserver.ERXDirectActionRequestHandler.handleRequest
(ERXDirectActionRequestHandler.java:124) at
com.webobjects.appserver.WOApplication.dispatchRequest
(WOApplication.java:1687) at
er.extensions.appserver.ERXApplication.dispatchRequestImmediately
(ERXApplication.java:1656) at
er.extensions.appserver.ERXApplication.dispatchRequest
(ERXApplication.java:1620) 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:637)  
Caused

by: java.lang.StackOverflowError at
com.webobjects.foundation._NSWeakMutableArray.__removeReference
(_NSWeakMutableArray.java:124) at
com.webobjects.foundation._NSWeakMutableCollection.processQueue
(_NSWeakMutableCollection.java:176) at
com.webobjects.foundation._NSWeakMutableArray.__removeReference
(_NSWeakMutableArray.java:124) at
com.webobjects.foundation._NSWeakMutableCollection.processQueue
(_NSWeakMutableCollection.java:176) at
com.webobjects.foundation._NSWeakMutableArray.__removeReference
(_NSWeakMutableArray.java:124) at
com.webobjects.foundation._NSWeakMutableCollection.processQueue
(_NSWeakMutableCollection.java:176) at
com.webobjects.foundation._NSWeakMutableArray.__removeReference
(_NSWeakMutableArray.java:124) at
com.webobjects.foundation._NSWeakMutableCollection.processQueue
(_NSWeakMutableCollection.java:176) at
com.webobjects.foundation._NSWeakMutableArray.__removeReference


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

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


Re: What could that be?

2009-07-09 Thread Lon Varscsak
I should add that I'm running WO 5.4.3 with Wonder (but I can't
remember which build).

-Lon

On Thu, Jul 9, 2009 at 5:13 PM, Lars
Sonchocky-Helldorflars.sonchocky-helld...@hamburg.de wrote:

 Am 10.07.2009 um 01:56 schrieb Lon Varscsak:

 Did you take over my app? ;)  I have the same problem in a production
 app and it drives me crazy, because I can't see that I'm doing
 anything wrong (and it's intermittent).

 This is something I can't say about that app. It's rather higgledy-piggledy
 without any straight line so it could be anything. I think the only thing
 our both apps have in common is that they are in production …

 To me this looks like some garbage collection recursion failure (wild
 guess), but I have no idea what causes it.


 -Lon

 regards,

        Lars


 On Thu, Jul 9, 2009 at 4:45 PM, Lars
 Sonchocky-Helldorflars.sonchocky-helld...@hamburg.de wrote:

 Hi, I occasionally get the following exception in an WOApp I took over
 some
 weeks ago. Any idea what could be the cause for this and whatt could be
 done
 about it? thanks, Lars java.lang.reflect.InvocationTargetException at
 com.webobjects.appserver._private.WOActionRequestHandler._handleRequest(
 WOActionRequestHandler.java:269) at
 com.webobjects.appserver._private.WOActionRequestHandler.handleRequest
 (WOActionRequestHandler.java:158) at
 er.extensions.appserver.ERXDirectActionRequestHandler.handleRequest
 (ERXDirectActionRequestHandler.java:124) at
 com.webobjects.appserver.WOApplication.dispatchRequest
 (WOApplication.java:1687) at
 er.extensions.appserver.ERXApplication.dispatchRequestImmediately
 (ERXApplication.java:1656) at
 er.extensions.appserver.ERXApplication.dispatchRequest
 (ERXApplication.java:1620) 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:637) Caused
 by: java.lang.StackOverflowError at
 com.webobjects.foundation._NSWeakMutableArray.__removeReference
 (_NSWeakMutableArray.java:124) at
 com.webobjects.foundation._NSWeakMutableCollection.processQueue
 (_NSWeakMutableCollection.java:176) at
 com.webobjects.foundation._NSWeakMutableArray.__removeReference
 (_NSWeakMutableArray.java:124) at
 com.webobjects.foundation._NSWeakMutableCollection.processQueue
 (_NSWeakMutableCollection.java:176) at
 com.webobjects.foundation._NSWeakMutableArray.__removeReference
 (_NSWeakMutableArray.java:124) at
 com.webobjects.foundation._NSWeakMutableCollection.processQueue
 (_NSWeakMutableCollection.java:176) at
 com.webobjects.foundation._NSWeakMutableArray.__removeReference
 (_NSWeakMutableArray.java:124) at
 com.webobjects.foundation._NSWeakMutableCollection.processQueue
 (_NSWeakMutableCollection.java:176) at
 com.webobjects.foundation._NSWeakMutableArray.__removeReference


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

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


Re: WO Deployment [was:A WebObjects article on Appleinsider]

2009-07-09 Thread Lachlan Deck

On 10/07/2009, at 8:24 AM, Andrew Lindesay wrote:

There 2 issues to fix: one is trivial the session id key is  
sessionid and not wosid 5.4 and later support changing that key.


If you grab LEWOAJPContext from LEWOStuff, you will see that I  
stick the route (to get back to the instance) and session id into  
the URLs using the standard ;jsessionid= technique.  I guess if  
WOContext did this instead when it finds itself being fed from  
mod_balancer then it would be all that were required.


The other issue is dynamic reconfiguration. Adding an instance  
require editing the apache config file and restarting apache. We  
need to add to the mod_proxybalancer a mechanism to dynamically  
load the configuration, this is not a major endeavor and I am  
looking for a volunteer… We should contribute this code back to the  
apache foundation so we don not have to maintain it ourself. I  
would be happy to work with whoever volunteer.


It was actually my intention to look into this a couple of years  
ago, but guessed that I would wait and see if Apple were going to do  
anything with deployment going forward first.  I'd be quite keen to  
take a look, but it may take a little while to fit around chargeable  
work.  I think such a deployment-refresh would be really good for  
the platform.


I like the idea of moving to a servlet container bundle. I am not  
sure what would be required for this to work.


I don't of course have access to the WO source code, but I _guess_  
that in broad terms, I would scrap most of the scaffolding that must  
exist in WO before dispatchRequest(..) gets hit and just hook  
dispatchRequest() directly up to the interfaces on  
javax.servlet.http.HttpServlet such as goGet, doPost etc...  
I'm sure it is much the same stuff that is going on in the JSP/ 
Servlet framework.  There was, somewhere in the 5.4 API, a situation  
where the instance number was being exposed as public and this needs  
to be removed as it will make no sense under servlet or balancer  
deploy -- this is quite an important point.  Next, the HTTP server  
that exists inside WO should be removed and so it only communicates  
through the servlet API.


WOA's would then be built into 'war' or 'servlet directories' to be  
unpacked into a servlet container – Jetty, Tomcat,  
WebSphere...etc...  In order to produce framework jars, I have  
extended the standard ant Jar task with some specific WebObjects  
material to build WebObjects framework jars.  The same sort of  
approach could be taken for building WOA 'wars' -- extend the 'War'  
task.  I'm not sure about Maven (sorry Henrique and Lachlan!).


No worries. I'm already building all my frameworks as jars using  
standard maven 'jar' packaging. The woproject woframework packaging  
does this also (and supplies the Info.plist and wo-jar packaging  
layout with a tiny bit less config).


war packaging is well supported (and quite standard in maven).  
Henrique knows more about wars. I've not really ventured down that  
path (yet). But certainly if WO was easy to work with in servlet mode  
that'd be great ... mvn jetty:run would do the trick :)


I know Jetty is pretty easy to work with, but to make things easier,  
a tiny little servletish container (TLSC) (thanks Mike) could be  
written which would wrap the WebObjects servlet and feed it with  
requests through the standard servlet API's.  I know Jetty is really  
easy to use, but this TLSC would be just there to run the one  
servlet rather than a bunch of servlets so it would retain the  
spirit of one instance = one process and the dead simple  
configuration that WebObjects has now.  It would essentially also  
mean that there is a high level of continuity with what most of us  
are doing now as well.


I have attached a drawing to try to illustrate what I mean.

(Mike)
do you get into weird issues with servlet.jar dependencies here?   
if this was in WO core, for instance, presumably JavaWebObjects.jar  
would have to have a servlet.jar dependency ... to run it in dev w/  
directconnect you'd have to have that servlet.jar in your project,  
but to deploy it into a servlet container, you'd want that to be  
gone or the container yells at you.  do you run into this problem  
or am i just making that out to be more difficult than it is?


I _think_ they get around this by the servlet-container having it's  
own class loader so that the servlet API is not actually in the  
servlet itself.  At build time, yes it would need to be external.  I  
don't have this problem because I no longer build as servlet!


(Chuck)

What are the advantages of moving to a servlet container bundle?


As far as I can see;

* new developers already know what a servlet is and it surprisingly  
doesn't scare them
* managers making decisions already know what a servlet is and it  
surprisingly doesn't scare them
* we loose any discrepancies between regular and servlet development/ 
deployment
* build process is probably simplified 

Re: WO Deployment [was:A WebObjects article on Appleinsider]

2009-07-09 Thread Q


On 10/07/2009, at 8:24 AM, Andrew Lindesay wrote:

WOA's would then be built into 'war' or 'servlet directories' to be  
unpacked into a servlet container – Jetty, Tomcat,  
WebSphere...etc...  In order to produce framework jars, I have  
extended the standard ant Jar task with some specific WebObjects  
material to build WebObjects framework jars.  The same sort of  
approach could be taken for building WOA 'wars' -- extend the 'War'  
task.  I'm not sure about Maven (sorry Henrique and Lachlan!).


I know Jetty is pretty easy to work with, but to make things easier,  
a tiny little servletish container (TLSC) (thanks Mike) could be  
written which would wrap the WebObjects servlet and feed it with  
requests through the standard servlet API's.  I know Jetty is really  
easy to use, but this TLSC would be just there to run the one  
servlet rather than a bunch of servlets so it would retain the  
spirit of one instance = one process and the dead simple  
configuration that WebObjects has now.  It would essentially also  
mean that there is a high level of continuity with what most of us  
are doing now as well.


Embedding jetty is a very interesting idea because it's actually a  
pretty decent web server for serving static content and copes well  
under heavy load. If you were to embed Jetty and then port the  
WOAdaptor to Jetty as a plugin / filter / servlet (or whatever it  
uses), you would have a WOAdaptor/wotaskd app to replace wotaskd,  
(as in the diagram), but it could serve as both a front end / load  
balancer replacement for apache or as a load balancer agent for apache  
or some other web server (responding to WOAdaptor, mod_balancer and  
whatever other protocols). This would make small deployments VERY easy  
because you could replace apache completely, but traditional  
deployments would continue to work as they have always done. You would  
then have the option of using either mod_balancer, a WOAdaptor plugin  
like mod_WebObjects (but not limited to apache), or go direct to the  
WOAdaptor/wotaskd wo app for your front end.


As long as the development process remains pretty much the same ie,  
you run directly from the expanded framework and have rapid  
turnaround of changes I don't think it's really a big issue if the app  
is actually run and deployed as an embedded servlet or as a WAR with  
jar frameworks.


--
Seeya...Q

Quinton Dolan - qdo...@gmail.com
Gold Coast, QLD, Australia (GMT+10)
Ph: +61 419 729 806



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

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


Re: WO Deployment [was:A WebObjects article on Appleinsider]

2009-07-09 Thread Andrew Lindesay

Hi Quinton;

Embedding jetty is a very interesting idea because it's actually a  
pretty decent web server for serving static content and copes well  
under heavy load. If you were to embed Jetty and then port the  
WOAdaptor to Jetty as a plugin / filter / servlet (or whatever it  
uses), you would have a WOAdaptor/wotaskd app to replace wotaskd,  
(as in the diagram), but it could serve as both a front end / load  
balancer replacement for apache or as a load balancer agent for  
apache or some other web server (responding to WOAdaptor,  
mod_balancer and whatever other protocols). This would make small  
deployments VERY easy because you could replace apache completely,  
but traditional deployments would continue to work as they have  
always done. You would then have the option of using either  
mod_balancer, a WOAdaptor plugin like mod_WebObjects (but not  
limited to apache), or go direct to the WOAdaptor/wotaskd wo app  
for your front end.


That's another interesting way to look at –– using Jetty as a front- 
end like this could be flexible and yet potentially also simple as you  
have pointed out.  I guess to achieve what we have now, there is the  
additional need for a Jetty proxy/front-end to discover other  
instances from some sort of pre-configured list of other Jetty-s  
running on other hosts.  Rolling the monitor as basic JSP or something  
simple into the proxy is an interesting idea as well because it could  
potentially further reduce the complexity of deployment.


BTW; I'd be hesitant to suggest Apple use Jetty's internal connector  
API's as there is a risk of coupling WebObjects releases to Jetty  
releases -- a servlet is probably a better interface to be tied to.


cheers.

___
Andrew Lindesay
www.lindesay.co.nz

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

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


Fwd: StackOverflowError in _NSWeakMutableArray?

2009-07-09 Thread Mike Schrag
here's a comment from Ryan about the fix ... was that build actually  
made available?


ms

Begin forwarded message:


From: Ryan Klems rkl...@apple.com
Date: December 6, 2008 3:39:38 PM EST
To: Alan Zebchuk alan.zebc...@fuegodigitalmedia.com
Cc: WebObjects Development Webobjects-dev@lists.apple.com
Subject: Re: StackOverflowError in _NSWeakMutableArray?

Sorry, looks like this hasn't shipped in an update yet... it should  
be in the WO54 nightly builds though... you could pull  
JavaFoundation from that and it'll have the fix.


-Ryan

On Dec 5, 2008, at 4:10 PM, Alan Zebchuk wrote:


I'm on the latest 5.4.3 build and it's still happening.

Thanks,

Alan

On 5-Dec-08, at 7:27 PM, Ryan Klems wrote:

Yes, this was fixed in one of the 5.4 updates.  You should update  
to the latest WO 54 bits.


-Ryan

On Dec 5, 2008, at 8:16 AM, Alan Zebchuk wrote:

Has anyone ever seen this? Any idea what causes it? I haven't  
been able to reproduce it in development, but it's occuring from  
time to time on some production apps.


java.lang.Error java.lang.StackOverflowError occured.
java.lang.StackOverflowError
	at  
com 
.webobjects 
.foundation 
._NSWeakMutableArray.__removeReference(_NSWeakMutableArray.java: 
124)
	at  
com 
.webobjects 
.foundation 
._NSWeakMutableCollection 
.processQueue(_NSWeakMutableCollection.java:176)
	at  
com 
.webobjects 
.foundation 
._NSWeakMutableArray.__removeReference(_NSWeakMutableArray.java: 
124)
	at  
com 
.webobjects 
.foundation 
._NSWeakMutableCollection 
.processQueue(_NSWeakMutableCollection.java:176)
	at  
com 
.webobjects 
.foundation 
._NSWeakMutableArray.__removeReference(_NSWeakMutableArray.java: 
124)
	at  
com 
.webobjects 
.foundation 
._NSWeakMutableCollection 
.processQueue(_NSWeakMutableCollection.java:176)
	at  
com 
.webobjects 
.foundation 
._NSWeakMutableArray.__removeReference(_NSWeakMutableArray.java: 
124)
	at  
com 
.webobjects 
.foundation 
._NSWeakMutableCollection 
.processQueue(_NSWeakMutableCollection.java:176)



Any help would be appreciated.

Thanks,

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

This email sent to rkl...@apple.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:
http://lists.apple.com/mailman/options/webobjects-dev/mschrag%40mdimension.com

This email sent to msch...@mdimension.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:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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

Re: What could that be?

2009-07-09 Thread Mike Schrag

_NSWeakMutableArray has


/* */   public void removeReference(Object object)
/* */   {
/* 119 */ this.array.removeObject(object);
/* */   }
/* */
/* */   protected void __removeReference(Reference object)
/* */   {
/* 124 */ processQueue();
/* 125 */ this.array.removeObject(object);
/* */   }
i can't speak for anyone else here ... but if _I_ were to jad and fix  
this bug, i would probably move that processQueue() call out of  
__removeReference and put it in removeReference() instead ...  
that's just me.


i might also look at the equivalent methods in _NSWeakMutableSet and  
Dictionary.


again ..
i'm just sayin'.

ms

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

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