Re: er.transaction.adaptor.Exceptions - Database Exception occured: java.lang.IllegalStateException: _obtainOpenChannel -- com.webobjects.eoaccess.EODatabaseContext

2016-01-07 Thread Chuck Hill
Hi Kwasi,

I am not certain of what you are seeing.  All of the EOF stack is created on 
demand, so some of the objects you mention might not exist if the database 
connection can’t be made.  What exactly did you see with your debug logging?

Your original log still looks like a Postgres problem to me.  It is puzzling 
that disabling Wonder startup makes the problem go away.  Did you keep the 
class path the same?

Chuck


From: Kwasi O-Ahoofe mailto:koa...@icloud.com>>
Date: Thursday, January 7, 2016 at 11:46 AM
To: Chuck Hill mailto:ch...@gevityinc.com>>, 
"webobjects-dev@lists.apple.com" 
mailto:webobjects-dev@lists.apple.com>>
Cc: Kwasi O-Ahoofe mailto:koa...@icloud.com>>
Subject: Re: er.transaction.adaptor.Exceptions - Database Exception occured: 
java.lang.IllegalStateException: _obtainOpenChannel -- 
com.webobjects.eoaccess.EODatabaseContext

Folks, an interesting revelation: The referenced problem/exception goes away 
when I made the following changes:

Replaced: public class Application extends ERXApplication WITH:  public 
class Application extends WOApplication
   public class Session extends ERXSession  WITH: public class Session 
extends WOSession
public class DirectAction extends ERXDirectActionWITH: public 
class DirectAction extends WODirectAction

Guess where I’m going with this, < ERXApplication, et. al> is/are NOT 
appropriately marshaling and/or managing the EOObjectStore, 
EOObjectStoreCoordinator, EOCooperatingObjectStore, etc required by the Runtime 
Environment and entire depended Framework!!!
I had to force some ‘low level’ debug [.. used to do that a 100yrs ago] to 
recognize that the adaptor/channel layers seem broken or unmanaged.. I think, I 
need to elevate this to actual ‘code maintainers’ for their thought.
Thanks to all who have responded and offered suggestions..that’s what makes our 
profession exciting to participate in.

Still will entertain more insight into this problem…

Kwasi


On Jan 5, 2016, at 4:44 PM, Chuck Hill 
mailto:ch...@gevityinc.com>> wrote:

That looks like a Postgres configuration problem.  EOF is able to load the 
adaptor, plugin, and driver:

INFO er.transaction.adaptor.ConnectionAnalyzer - Trying to create JDBCAdaptor...
INFO er.transaction.adaptor.ConnectionAnalyzer - Successfully created adaptor 
er.extensions.jdbc.ERXJDBCAdaptor

INFO er.transaction.adaptor.ConnectionAnalyzer - Trying to create plugin...
INFO er.transaction.adaptor.ConnectionAnalyzer - Created plugin 
com.webobjects.jdbcadaptor.PostgresqlPlugIn

INFO er.transaction.adaptor.ConnectionAnalyzer - Trying to load JDBC driver 
org.postgresql.Driver...
INFO er.transaction.adaptor.ConnectionAnalyzer - Successfully loaded JDBC 
driver org.postgresql.Driver
INFO er.transaction.adaptor.ConnectionAnalyzer - JDBC driver and plugin are 
loaded,

That and a valid user and password are all that EOF should need.

So it is going to be something like the user name and password are not setup, 
or connections are not allowed from that host, or the database is not running, 
or maybe a networking problem.  Some of those seem unlikely if your database is 
really on the same localhost machine.

Chuck




From: 
mailto:webobjects-dev-bounces+chill=gevityinc@lists.apple.com>>
 on behalf of Kwasi O-Ahoofe mailto:koa...@icloud.com>>
Date: Tuesday, January 5, 2016 at 1:17 PM
To: "webobjects-dev@lists.apple.com" 
mailto:webobjects-dev@lists.apple.com>>
Subject: er.transaction.adaptor.Exceptions - Database Exception occured: 
java.lang.IllegalStateException: _obtainOpenChannel -- 
com.webobjects.eoaccess.EODatabaseContext


I am 'stomped' and 'dead in the water' for this... I have run out of ideas on 
how to resolve the exception below. PS: I can't seem to generate SQL from 
Entity Modeler either..!! [Sorry for lengthy output..]

Running Mac OS X 10.11.2 & WOLips v44 & v 3.7:



Jan 05 10:31:00 ProjectComplianceWonder[65215] WARN NSLog - An exception 
occurred while trying to open a channel: N/A
Jan 05 10:31:00 ProjectComplianceWonder[65215] INFO 
er.transaction.adaptor.Exceptions - Database Exception occured: 
java.lang.IllegalStateException: _obtainOpenChannel -- 
com.webobjects.eoaccess.EODatabaseContext 
com.webobjects.eoaccess.EODatabaseContext@2421cc4: failed to open database 
channel. Check your connection dictionary, and ensure your database is 
correctly configured.
Jan 05 10:31:01 ProjectComplianceWonder[65215] INFO 
er.extensions.eof.ERXDatabaseContextDelegate - KOA_ContractCompliance_Prod10g: 
{plugin = "Postgresql"; username = "contractmonitor"; driver = 
"org.postgresql.Driver"; password = ""; URL = 
"jdbc:postgresql://localhost:5432/contractmonitor"; }
Jan 05 10:31:01 ProjectComplianceWonder[65215] INFO 
er.transaction.adaptor.ConnectionAnalyzer - Checking JDBC connection with 
information {plugin = "Postgresql"; username = "contractmonitor"; driver = 
"org.postgresql.Driver"; password = ""; U

Re: Ajax jQuery

2016-01-07 Thread Paul Hoadley
Hi Mark,

On 8 Jan 2016, at 8:10 am, Mark Gowdy  wrote:

> In a nutshell, the Ajax.framework is great, but it causes issues when you try 
> to use it in tandem with various jQuery libraries and particularly with the 
> BootStrap themes.
> All I really need is a basic Ajax Container, Link and SubmitButton.

Can you post some specifics about problems you’re running into? We’ve 
successfully combined Ajax.framework, jQuery and Bootstrap in several projects. 
We might be able to help you navigate some edge cases if you can provide 
details of failures.


-- 
Paul Hoadley
http://logicsquad.net/




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

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

Ajax jQuery

2016-01-07 Thread Mark Gowdy
Hi, 

In a nutshell, the Ajax.framework is great, but it causes issues when you try 
to use it in tandem with various jQuery libraries and particularly with the 
BootStrap themes.
All I really need is a basic Ajax Container, Link and SubmitButton.

I tried ERJQMobile, it sorta worked, but I experienced various reliability 
problems with it.
I had a look at ERJQuery, but couldn’t really figure out if it could do what I 
needed, or even what it was supposed to do at all.  Can’t find any examples 
anywhere.

Can someone please point me in the right direction.

It’s has driven me to beer (well, slightly more beer than normal).

Thanks in advance,

Mark Gowdy



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

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

Disable WOTextField Input of AjaxDatePicker

2016-01-07 Thread Calven Eggert
Anyone know of a way to disable the AjaxDatePicker so that input can only be 
done in the calendar that displays? (Basically, disable the WOTextField, but 
allow the onclick to get triggered)

Calven


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

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

Re: ERQMAjaxUpdateContainer : lookup of unknown key: 'value'

2016-01-07 Thread Mark Gowdy
Found the problem, but it does smell a bit like a can of worms.

It explodes when I add this to the newly created HelloWorld.app Properties file:
ognl.parseStandardTags=true

My test Main.html has:

Hello

I use wognl in standard tags a lot.

Thoughts?

Mark


> On 7 Jan 2016, at 19:21, Mark Gowdy  wrote:
> 
> When I tried a new vanilla “Hello World” wonder project, it worked fine:
> 
> (I probably should have tried the first).
> 
> I will start adding in my usual additional, and see when it breaks.
> Will post a solution when I find it.
> 
> Thanks, 
> 
> Mark
> 
> 
>> On 7 Jan 2016, at 19:05, Chuck Hill > > wrote:
>> 
>> That is indeed a very odd bug.
>> 
>> From: Mark Gowdy mailto:m...@gowdy.co.uk>>
>> Date: Thursday, January 7, 2016 at 10:59 AM
>> To: Chuck Hill mailto:ch...@gevityinc.com>>
>> Cc: "webobjects-dev@lists.apple.com " 
>> mailto:webobjects-dev@lists.apple.com>>
>> Subject: Re: ERQMAjaxUpdateContainer : lookup of unknown key: 'value'
>> 
>> 
>>> On 7 Jan 2016, at 18:45, Chuck Hill >> > wrote:
>>> 
>>> Is there a stack trace?  It would be useful to know which object it was 
>>> looking up “value” on.
>> 
>> It is on the component that holds the commented WOString.  So, in the case 
>> of ERQMAjaxUpdateContainer:
>> 
>> > '[> er.jqm.components.core.ERQMAjaxUpdateContainer subcomponents: null > 
>> valueForKey()]: lookup of unknown key: 'value'. The WOComponent 
>> er.jqm.components.core.ERQMAjaxUpdateContainer does not have an instance 
>> variable of the name value or _value, nor a method of the name value, 
>> _value, getValue, or _getValue' object 
>> '> er.jqm.components.core.ERQMAjaxUpdateContainer subcomponents: null >' key 
>> 'value’>
>> 
>> When I put this into Main.html
>> 
>>   
>>   
>> 
>> ——
>> elementID : WOString {
>>   value = javaScriptElementID;
>> }
>> 
>> Very odd indeed.
>> 
>> Mark
>> 
>>> 
>>> 
>>> From: >> > on 
>>> behalf of Mark Gowdy mailto:m...@gowdy.co.uk>>
>>> Date: Thursday, January 7, 2016 at 8:52 AM
>>> To: "webobjects-dev@lists.apple.com 
>>> " >> >
>>> Subject: ERQMAjaxUpdateContainer : lookup of unknown key: 'value'
>>> 
>>> Hi, 
>>> 
>>> Short Story:
>>> The problem (in my app) appears to be that put a WOstring in an html 
>>> comment (with an WOGNL $ binding), it throws [ lookup of unknown key: 
>>> ‘value’. ]  e.g.
>>> >> 
>>>   
>>>   
>>>   
>>> 
>>> ---
>>> 
>>> In the example (jQueryMobileExample), it works great and 
>>>   
>>> renders as:
>>>   
>>>   

Re: ERQMAjaxUpdateContainer : lookup of unknown key: 'value'

2016-01-07 Thread Mark Gowdy
When I tried a new vanilla “Hello World” wonder project, it worked fine:

(I probably should have tried the first).

I will start adding in my usual additional, and see when it breaks.
Will post a solution when I find it.

Thanks, 

Mark


> On 7 Jan 2016, at 19:05, Chuck Hill  wrote:
> 
> That is indeed a very odd bug.
> 
> From: Mark Gowdy mailto:m...@gowdy.co.uk>>
> Date: Thursday, January 7, 2016 at 10:59 AM
> To: Chuck Hill mailto:ch...@gevityinc.com>>
> Cc: "webobjects-dev@lists.apple.com " 
> mailto:webobjects-dev@lists.apple.com>>
> Subject: Re: ERQMAjaxUpdateContainer : lookup of unknown key: 'value'
> 
> 
>> On 7 Jan 2016, at 18:45, Chuck Hill > > wrote:
>> 
>> Is there a stack trace?  It would be useful to know which object it was 
>> looking up “value” on.
> 
> It is on the component that holds the commented WOString.  So, in the case of 
> ERQMAjaxUpdateContainer:
> 
>  '[ er.jqm.components.core.ERQMAjaxUpdateContainer subcomponents: null > 
> valueForKey()]: lookup of unknown key: 'value'. The WOComponent 
> er.jqm.components.core.ERQMAjaxUpdateContainer does not have an instance 
> variable of the name value or _value, nor a method of the name value, _value, 
> getValue, or _getValue' object 
> ' er.jqm.components.core.ERQMAjaxUpdateContainer subcomponents: null >' key 
> 'value’>
> 
> When I put this into Main.html
> 
>   
>   
> 
> ——
> elementID : WOString {
>   value = javaScriptElementID;
> }
> 
> Very odd indeed.
> 
> Mark
> 
>> 
>> 
>> From: > > on 
>> behalf of Mark Gowdy mailto:m...@gowdy.co.uk>>
>> Date: Thursday, January 7, 2016 at 8:52 AM
>> To: "webobjects-dev@lists.apple.com " 
>> mailto:webobjects-dev@lists.apple.com>>
>> Subject: ERQMAjaxUpdateContainer : lookup of unknown key: 'value'
>> 
>> Hi, 
>> 
>> Short Story:
>> The problem (in my app) appears to be that put a WOstring in an html comment 
>> (with an WOGNL $ binding), it throws [ lookup of unknown key: ‘value’. ]  
>> e.g.
>> > 
>>   
>>   
>>   
>> 
>> ---
>> 
>> In the example (jQueryMobileExample), it works great and 
>>   
>> renders as:
>>   
>>   

Re: ERQMAjaxUpdateContainer : lookup of unknown key: 'value'

2016-01-07 Thread Mark Gowdy

> On 7 Jan 2016, at 18:45, Chuck Hill  wrote:
> 
> Is there a stack trace?  It would be useful to know which object it was 
> looking up “value” on.

It is on the component that holds the commented WOString.  So, in the case of 
ERQMAjaxUpdateContainer:

 
valueForKey()]: lookup of unknown key: 'value'. The WOComponent 
er.jqm.components.core.ERQMAjaxUpdateContainer does not have an instance 
variable of the name value or _value, nor a method of the name value, _value, 
getValue, or _getValue' object '' key 
'value’>

When I put this into Main.html

  
  

——
elementID : WOString {
  value = javaScriptElementID;
}

Very odd indeed.

Mark

> 
> 
> From:  > on 
> behalf of Mark Gowdy mailto:m...@gowdy.co.uk>>
> Date: Thursday, January 7, 2016 at 8:52 AM
> To: "webobjects-dev@lists.apple.com " 
> mailto:webobjects-dev@lists.apple.com>>
> Subject: ERQMAjaxUpdateContainer : lookup of unknown key: 'value'
> 
> Hi, 
> 
> Short Story:
> The problem (in my app) appears to be that put a WOstring in an html comment 
> (with an WOGNL $ binding), it throws [ lookup of unknown key: ‘value’. ]  e.g.
>  
>   
>   
>   
> 
> ---
> 
> In the example (jQueryMobileExample), it works great and 
>   
> renders as:
>   
>   

Re: ERQMAjaxUpdateContainer : lookup of unknown key: 'value'

2016-01-07 Thread Chuck Hill
Is there a stack trace?  It would be useful to know which object it was looking 
up “value” on.


From: 
mailto:webobjects-dev-bounces+chill=gevityinc@lists.apple.com>>
 on behalf of Mark Gowdy mailto:m...@gowdy.co.uk>>
Date: Thursday, January 7, 2016 at 8:52 AM
To: "webobjects-dev@lists.apple.com" 
mailto:webobjects-dev@lists.apple.com>>
Subject: ERQMAjaxUpdateContainer : lookup of unknown key: 'value'

Hi,

Short Story:
The problem (in my app) appears to be that put a WOstring in an html comment 
(with an WOGNL $ binding), it throws [ lookup of unknown key: ‘value’. ]  e.g.

  
  

---

In the example (jQueryMobileExample), it works great and
  
renders as:
  
  

Re: WOWODC 2016: call for papers!

2016-01-07 Thread Andrus Adamchik
I'd like to build on the Cayenne/LinkRest topics presented previously in 
Hamburg and Montreal and to get into modern Java architectures and some aspects 
of Domain Driven Design. I am thinking of the following two things:

1. No container: example of modern Java stack with Bootique

Java application containers were introduced back in the era of big expensive 
hardware to assist with centralized management of collocated applications. In 
the days of virtualized cloud infrastructure these problems are solved outside 
of Java, making the containers all but obsolete. Instead we can build 
container-less apps runnable as .jar's. This presentation will demonstrate a 
stack following this approach based on Bootique [1], with Cayenne, LinkRest, 
etc. 

Perhaps we can also have a hackathon porting .woa to Bootique?

2. (still tentative) DB synchronization with LinkMove: a missing piece in your 
domain-driven design.

Domain Driven Design (DDD) is an great architectural approach for writing 
business software. One of its outcomes is that huge monolithic applications are 
broken into smaller cohesive and manageable "bounded contexts". This results in 
multiple smaller databases, with certain intentional data redundancy that needs 
synchronization. This presentation will show examples of such persistent models 
and how they can be kept in sync using an open-source Cayenne-based ETL tool 
called LinkMove [2]

Andrus

[1] https://github.com/nhl/bootique
[2] https://github.com/nhl/link-move


> On Nov 23, 2015, at 10:07 AM, Pascal Robert  wrote:
> 
> Hi guys,
> 
> It's that time of the year! Yes, I need topics for WOWODC 2016. Having them, 
> even if it's not a complet list, before the end of the year would be great.
> 
> I'm going to present two things:
> 
> - Modern WO deployment with Puppet and mod_proxy
> - Integration with other tools (JIRA, IMAP, phone systems).
> 
> Please send your topics to i...@wocommunity.org
> 
> See you in June 2015!
> 
> 
> 
> 
> ___
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/andrus%40objectstyle.org
> 
> This email sent to and...@objectstyle.org


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

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

ERQMAjaxUpdateContainer : lookup of unknown key: 'value'

2016-01-07 Thread Mark Gowdy
Hi, 

Short Story:
The problem (in my app) appears to be that put a WOstring in an html comment 
(with an WOGNL $ binding), it throws [ lookup of unknown key: ‘value’. ]  e.g.

  
  

---

In the example (jQueryMobileExample), it works great and 
  
renders as:
  
  

Re: D2W rule controlled NavigationMenu.plist?

2016-01-07 Thread Markus Ruggiero
Thanks to Theodore and Fabian,

that was exactly what I needed

---markus---


> On 07.01.2016, at 13:03, Theodore Petrosky  wrote:
> 
> I hide/show tabs with boolean values in my user. SO   
> user.security.seesClients is true so I have a condition in my 
> Navigation.plist:
> 
> {
>   name = Client;
>   action = "session.navController.listClientAction";
>   children = ("queryClient", "createClient", "Logout");
>   conditions = ("session.user.security.seesClients");
> }
> 
> if sessClient is true the tab shows if false it is hidden.
> 
> Is this what you are looking for?
> 
> Ted
> 
> 
> 
> 
>> On Jan 7, 2016, at 6:53 AM, Markus Ruggiero  
>> wrote:
>> 
>> Hi,
>> 
>> I wish you all a happy new year, hope you had a good start.
>> 
>> Here is my problem. Is there a way to dynamically control what is shown by 
>> NavigationMenu.plist? 
>> Background: I have 4 main tabs with the rightmost being for admin users 
>> only. Can I show/hide tabs (maybe also 2nd and 3rd level navigation) on 
>> conditions given by the currently logged-in user?
>> 
>> Is something like session.currentUser.isAdmin=1 and tabname = 'TAB_ADMIN' => 
>> showTab = 1 possible?
>> 
>> Thanks a lot
>> ---markus---
>> ___
>> Do not post admin requests to the list. They will be ignored.
>> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
>> Help/Unsubscribe/Update your Subscription:
>> https://lists.apple.com/mailman/options/webobjects-dev/tedpet5%40yahoo.com
>> 
>> This email sent to tedp...@yahoo.com
> 


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

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