Re: Strange error

2018-03-17 Thread Chuck Hill
That method gets called for all entities, not just read only ones.  The check 
for being read-only is inside the method.

Some state inside EOF is messed up.  Are you doing anything with database 
operations in your app?  Or it could be concurrency and unlocked EOF access 
that is scrambling the state.  What changed before this started?

You probably need to figure out what is on line 4700, and what might be null 
and work back from there.

Chuck


From: Webobjects-dev 
 on behalf of 
Ricardo Parada 
Date: Saturday, March 17, 2018 at 5:34 PM
To: Michael Kondratov 
Cc: WebObjects-Dev 
Subject: Re: Strange error

Hi Michael,

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


On Mar 17, 2018, at 11:34 AM, Michael Kondratov 
mailto:mich...@aspireauctions.com>> wrote:
Hello!
I am getting a new strange error in our new WO application:

java.lang.NullPointerException
at 
com.webobjects.eoaccess.EODatabaseContext._verifyNoChangesToReadonlyEntity(EODatabaseContext.java:4700)
at 
com.webobjects.eoaccess.EODatabaseContext.performChanges(EODatabaseContext.java:6187)
at 
com.webobjects.eocontrol.EOObjectStoreCoordinator.saveChangesInEditingContext(EOObjectStoreCoordinator.java:376)
at 
com.webobjects.eocontrol.EOEditingContext.saveChanges(EOEditingContext.java:3192)
at er.extensions.eof.ERXEC._saveChanges(ERXEC.java:1178)
at er.extensions.eof.ERXEC.saveChanges(ERXEC.java:1099)




Would any one know what is causing it?

Thank you!


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

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

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


Re: Strange error

2018-03-17 Thread Ricardo Parada
Hi Michael,

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

Ricardo


> On Mar 17, 2018, at 11:34 AM, Michael Kondratov  
> wrote:
> 
> Hello!
>   I am getting a new strange error in our new WO application:
> 
> java.lang.NullPointerException
> at 
> com.webobjects.eoaccess.EODatabaseContext._verifyNoChangesToReadonlyEntity(EODatabaseContext.java:4700)
> at 
> com.webobjects.eoaccess.EODatabaseContext.performChanges(EODatabaseContext.java:6187)
> at 
> com.webobjects.eocontrol.EOObjectStoreCoordinator.saveChangesInEditingContext(EOObjectStoreCoordinator.java:376)
> at 
> com.webobjects.eocontrol.EOEditingContext.saveChanges(EOEditingContext.java:3192)
> at er.extensions.eof.ERXEC._saveChanges(ERXEC.java:1178)
> at er.extensions.eof.ERXEC.saveChanges(ERXEC.java:1099)
> 
> 
> Would any one know what is causing it?
> 
> Thank you!
> 
> 
> Michael
> ___
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/rparada%40mac.com
> 
> This email sent to rpar...@mac.com
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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


Strange error

2018-03-17 Thread Michael Kondratov
Hello!
I am getting a new strange error in our new WO application:

java.lang.NullPointerException
at 
com.webobjects.eoaccess.EODatabaseContext._verifyNoChangesToReadonlyEntity(EODatabaseContext.java:4700)
at 
com.webobjects.eoaccess.EODatabaseContext.performChanges(EODatabaseContext.java:6187)
at 
com.webobjects.eocontrol.EOObjectStoreCoordinator.saveChangesInEditingContext(EOObjectStoreCoordinator.java:376)
at 
com.webobjects.eocontrol.EOEditingContext.saveChanges(EOEditingContext.java:3192)
at er.extensions.eof.ERXEC._saveChanges(ERXEC.java:1178)
at er.extensions.eof.ERXEC.saveChanges(ERXEC.java:1099)


Would any one know what is causing it?

Thank you!


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

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


Re: Strange error

2017-06-21 Thread Chuck Hill
These are not the droids you are looking for.

ERXEC installs the missing delegate.  So using that, you won’t get the message 
below.  But somewhere eo.editingContext() == null is still true.  You never saw 
that message before using EOEditingContext as eo.editingContext() was not null. 
 Perhaps some bad data somewhere?

Chuck


From: Markus Ruggiero 
Date: Wednesday, June 21, 2017 at 7:34 AM
To: "webobjects-dev@lists.apple.com" 
Cc: Chuck Hill 
Subject: Re: Strange error

Hi Chuck,

I just got more info from the customer and was able to reproduce this in my dev 
env. It was easy to fix but I have no idea why it did not work before. We did 
restructure the Resources/Properties and the customer claims that the issue did 
show up afterwards.

This fetch resulted in the error. Changed code to

EOEditingContext ec = new EOEditingContext();
NSArray cats = Category.fetchAllCategories(ec);

Changing to this

EOEditingContext ec = DSMEditiingContext.newEditingContex();
NSArray cats = Category.fetchAllCategories(ec);

...and everything is fine. DSMEditingContext is our extension of ERXEC.

Why would the good old EOEditingContext result in such a crash?

Your assessment that the user might have backtracked and such seems not 
relevant here. I started the application (it's an old moden D2W thingy), 
selected the entity from the popup, and selected Query. This is a plain D2W 
page with one custom property level query component. This component shows a 
list of Categories and lets the user select one from a popup as query criteria. 
It was the accessor for the list binding that crashed. I did not even get as 
far as to use the selectec value for anything.

Anyway, things work now (as far I have tested, let's see, if the customer also 
has it working in production).

Thanks for your answer. I already thought that the mailing list was dead. It 
has become a bit lonesome here.

---markus---

On 21 Jun 2017, at 16:11, Chuck Hill 
mailto:ch...@gevityinc.com>> wrote:

Hi Markus,

The root cause was that the user did something (most likely, though a rare code 
bug is also a possibility) so that they were working with an EO that was not 
registered in an EC.  The messages below come from the code reporting this.

Mostly I have seen this happen by the user back-tracking in the browser.  Eg. 
Start a New operation, Cancel it (ec.revert()), then back track and enter data 
in the new EO and Save.  Or delete and then backtrack.  Other logic errors can 
result in this too.

Chuck

From: Webobjects-dev 
mailto:webobjects-dev-bounces+chill=gevityinc@lists.apple.com>>
 on behalf of Markus Ruggiero 
mailto:mailingli...@kataputt.com>>
Date: Wednesday, June 21, 2017 at 2:52 AM
To: "webobjects-dev@lists.apple.com<mailto:webobjects-dev@lists.apple.com>" 
mailto:webobjects-dev@lists.apple.com>>
Subject: Strange error

A customer just reported a problem in a functionality that has not been touched 
for at least 3 years.



Error:

java.lang.IllegalStateException: Found null delegate. You can disable this 
check by setting er.extensions.ERXRaiseOnMissingEditingContextDelegate=false in 
your WebObjects.properties

Reason:

Found null delegate. You can disable this check by setting 
er.extensions.ERXRaiseOnMissingEditingContextDelegate=false in your 
WebObjects.properties


Setting er.extensions.ERXRaiseOnMissingEditingContextDelegate=false in the 
Properties File results in:

Error:

java.lang.IllegalStateException: Attempt to access an EO that has either not 
been inserted into any EOEditingContext or its EOEditingContext has already 
been disposed

Reason:

Attempt to access an EO that has either not been inserted into any 
EOEditingContext or its EOEditingContext has already been disposed



We are trying to reproduce this and get some more info about what the user has 
done and whether there is something in the log files. In the mean time I dare 
asking here :-)

Anyone got an idea what this could be?

Thanks
---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/archive%40mail-archive.com

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


Re: Strange error

2017-06-21 Thread Markus Ruggiero
Hi Chuck,

I just got more info from the customer and was able to reproduce this in my dev 
env. It was easy to fix but I have no idea why it did not work before. We did 
restructure the Resources/Properties and the customer claims that the issue did 
show up afterwards.

This fetch resulted in the error. Changed code to

EOEditingContext ec = new EOEditingContext();
NSArray cats = Category.fetchAllCategories(ec);

Changing to this

EOEditingContext ec = DSMEditiingContext.newEditingContex();
NSArray cats = Category.fetchAllCategories(ec);

...and everything is fine. DSMEditingContext is our extension of ERXEC.

Why would the good old EOEditingContext result in such a crash? 

Your assessment that the user might have backtracked and such seems not 
relevant here. I started the application (it's an old moden D2W thingy), 
selected the entity from the popup, and selected Query. This is a plain D2W 
page with one custom property level query component. This component shows a 
list of Categories and lets the user select one from a popup as query criteria. 
It was the accessor for the list binding that crashed. I did not even get as 
far as to use the selectec value for anything.

Anyway, things work now (as far I have tested, let's see, if the customer also 
has it working in production).

Thanks for your answer. I already thought that the mailing list was dead. It 
has become a bit lonesome here.

---markus---

> On 21 Jun 2017, at 16:11, Chuck Hill  wrote:
> 
> Hi Markus,
>  
> The root cause was that the user did something (most likely, though a rare 
> code bug is also a possibility) so that they were working with an EO that was 
> not registered in an EC.  The messages below come from the code reporting 
> this.  
>  
> Mostly I have seen this happen by the user back-tracking in the browser.  Eg. 
> Start a New operation, Cancel it (ec.revert()), then back track and enter 
> data in the new EO and Save.  Or delete and then backtrack.  Other logic 
> errors can result in this too.
>  
> Chuck
>  
> From: Webobjects-dev 
>  on behalf of 
> Markus Ruggiero 
> Date: Wednesday, June 21, 2017 at 2:52 AM
> To: "webobjects-dev@lists.apple.com" 
> Subject: Strange error
>  
> A customer just reported a problem in a functionality that has not been 
> touched for at least 3 years.
>  
>  
>  
> Error:
> java.lang.IllegalStateException: Found null delegate. You can disable this 
> check by setting er.extensions.ERXRaiseOnMissingEditingContextDelegate=false 
> in your WebObjects.properties
> Reason:
> Found null delegate. You can disable this check by setting 
> er.extensions.ERXRaiseOnMissingEditingContextDelegate=false in your 
> WebObjects.properties
>  
> Setting er.extensions.ERXRaiseOnMissingEditingContextDelegate=false in the 
> Properties File results in:
>  
> Error:
> java.lang.IllegalStateException: Attempt to access an EO that has either not 
> been inserted into any EOEditingContext or its EOEditingContext has already 
> been disposed
> Reason:
> Attempt to access an EO that has either not been inserted into any 
> EOEditingContext or its EOEditingContext has already been disposed
>  
>  
> We are trying to reproduce this and get some more info about what the user 
> has done and whether there is something in the log files. In the mean time I 
> dare asking here :-)
>  
> Anyone got an idea what this could be?
>  
> Thanks
> ---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/archive%40mail-archive.com

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


Re: Strange error

2017-06-21 Thread Chuck Hill
Hi Markus,

The root cause was that the user did something (most likely, though a rare code 
bug is also a possibility) so that they were working with an EO that was not 
registered in an EC.  The messages below come from the code reporting this.

Mostly I have seen this happen by the user back-tracking in the browser.  Eg. 
Start a New operation, Cancel it (ec.revert()), then back track and enter data 
in the new EO and Save.  Or delete and then backtrack.  Other logic errors can 
result in this too.

Chuck

From: Webobjects-dev 
 on behalf of 
Markus Ruggiero 
Date: Wednesday, June 21, 2017 at 2:52 AM
To: "webobjects-dev@lists.apple.com" 
Subject: Strange error

A customer just reported a problem in a functionality that has not been touched 
for at least 3 years.



Error:

java.lang.IllegalStateException: Found null delegate. You can disable this 
check by setting er.extensions.ERXRaiseOnMissingEditingContextDelegate=false in 
your WebObjects.properties

Reason:

Found null delegate. You can disable this check by setting 
er.extensions.ERXRaiseOnMissingEditingContextDelegate=false in your 
WebObjects.properties


Setting er.extensions.ERXRaiseOnMissingEditingContextDelegate=false in the 
Properties File results in:

Error:

java.lang.IllegalStateException: Attempt to access an EO that has either not 
been inserted into any EOEditingContext or its EOEditingContext has already 
been disposed

Reason:

Attempt to access an EO that has either not been inserted into any 
EOEditingContext or its EOEditingContext has already been disposed



We are trying to reproduce this and get some more info about what the user has 
done and whether there is something in the log files. In the mean time I dare 
asking here :-)

Anyone got an idea what this could be?

Thanks
---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/archive%40mail-archive.com

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


Strange error

2017-06-21 Thread Markus Ruggiero
A customer just reported a problem in a functionality that has not been touched 
for at least 3 years.


>  
> Error:
> java.lang.IllegalStateException: Found null delegate. You can disable this 
> check by setting er.extensions.ERXRaiseOnMissingEditingContextDelegate=false 
> in your WebObjects.properties
> Reason:
> Found null delegate. You can disable this check by setting 
> er.extensions.ERXRaiseOnMissingEditingContextDelegate=false in your 
> WebObjects.properties
>  
> Setting er.extensions.ERXRaiseOnMissingEditingContextDelegate=false in the 
> Properties File results in:
>  
> Error:
> java.lang.IllegalStateException: Attempt to access an EO that has either not 
> been inserted into any EOEditingContext or its EOEditingContext has already 
> been disposed
> Reason:
> Attempt to access an EO that has either not been inserted into any 
> EOEditingContext or its EOEditingContext has already been disposed
>  

We are trying to reproduce this and get some more info about what the user has 
done and whether there is something in the log files. In the mean time I dare 
asking here :-)

Anyone got an idea what this could be?

Thanks
---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/archive%40mail-archive.com

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


Strange error after instance auto-reboot

2017-06-10 Thread Sébastien Rottiers
Hi all,

We facing a strange error on a production server.
It seems that sometimes after the reboot of a scheduled ERRest app instance, 
the instance is in a weird state, as a call like /something/{uuid:String} fail 
because routeObjectForKey(«uuid») return null.
I noticed that each time an instance is in this state, there is this weird 
error in the logs just after the app was launched : ERROR 
er.extensions.eof.ERXEntityClassDescription  - Entity String not found in the 
default model group!

Any idea ?

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

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


Re: Strange error using Wonder (same code works fine in WebObjects 5.3)

2016-01-02 Thread Samuel Pelletier
HI,

For the load ordering problem, if you have some wonder source projects in your 
workspace, the load order is sometime modified when launching with Eclipse. 
This does not cause problem on the server though.

I do not remember the exact cases I experienced but I burned myself in the past 
with this.

Samuel


> Le 2015-12-29 à 15:15, jazzsalsa  a écrit :
> 
> It's solved :)
> 
> I removed the ERAttributeExtension framework, but I have still no idea
> how to move make it load first. Anyway, I am on the move again.
> 
> Thanks!
> 
> Bart
> 
> On Tue, 2015-12-29 at 17:53 +0100, Fabian Peters wrote:
>> You could check the java.class.path contents that get logged on
>> application start. If ERAttributeExtension is listed before
>> JavaEOAccess there as well, then I'm at a loss.
>> 
>>> Am 29.12.2015 um 17:33 schrieb jazzsalsa :
>>> 
>>> Hi Fabian,
>>> 
>>> Thanks for the fast reply! That is already the case. it looks like
>>> this:
>>> 
>>> 
>>> 
>>> Is there anything else strange here?
>>> 
>>> Thanks in advance for your help.
>>> 
>>> Best regards, Bart
>>> 
>>> On Tue, 2015-12-29 at 16:48 +0100, Fabian Peters wrote:
 Hi Bart,
 
 The ERAttributeExtension framework has to be loaded before
 JavaEOAccess. You can change the order in your project properties
 (right-click on the project folder in eclipse):
 
 
 
 cheers, Fabian
 
> Am 29.12.2015 um 16:34 schrieb jazzsalsa :
> 
> Hi list,
> 
> I am stuck using Wonder (again, the learning curve is steep ;).
> Trying to fetch data from a postgresql database. The data looks
> like this:
> 
> creationDate (timestamptz)
> description varchar(255)
> id
> tagID
> title varchar(50)
> url varchar(50)
> 2015-12-29 13:46:19 +0100 This is a new description
> added from EOF
> 1
> 4
> New title
> http://example.com
> 
> 
> 
> 
> Fetching the data does not work as soon as I add the field
> creationDate in the database. The same database and data works
> well with an App written in WebObjects 5.3. It is a simple
> component to display the data using a repetion. Similar code is
> use in the Wonder App and the WebObjects app.
> 
> Using Wonder 6.0:
> 
> Dec 29 16:05:02 book1[39244] ERROR
> er.extensions.appserver.ERXApplication  - Exception caught:
> java.lang.NoSuchMethodError:
> com.webobjects.eoaccess.EOAttribute.newValueForDate(Ljava/lang/
> Object;)Ljava/lang/Object;
>   "CurrentPage" = "your.app.components.Main";
>   "Bundles" = {
>   "ERExtensions" = "6.2-SNAPSHOT";
>   "JavaWebObjects" = "5.4.3";
>   "WOOgnl" = "6.0";
>   "ERJars" = "6.0";
>   "PostgresqlPlugIn" = "7.0";
>   "JavaJDBCAdaptor" = "5.4.3";
>   "JavaXML" = "5.4.2";
>   "JavaEOAccess" = "5.4.3";
>   "JavaEOControl" = "5.4.2";
>   "JavaFoundation" = "5.4.3";
>   "ERAttributeExtension" = "6.0";
>   "book1" = "";
>   "JavaWOExtensions" = "6.0";
>   "ERPrototypes" = "6.0";
>   };
>   "URL" = "/cgi-bin/WebObjects/book1.woa";
> }
> 
> The attributes for the creationDate are:
> 
> {
> attributes = (
> {
> columnName = creationdate; 
> externalType = timestamptz; 
> name = creationDate; 
> prototypeName = dateTime; 
> serverTimeZone = "Europe/Amsterdam"; 
> }, 
> 
> 
> Is there something obviously wrong here?
> How can I debug this problem? (log4j.logger.er=DEBUG is already
> used) 
> 
> Thanks in advance, Bart
> 
> 
> 
> 
> 
> 
> 
> Dec 29 16:05:01 book1[39244] DEBUG NSLog  -  connecting with
> dictionary: {plugin = "Postgresql"; username = "username";
> driver = "org.postgresql.Driver"; password = " for log>"; URL = "jdbc:postgresql://intranet/bookmark"; }
> Dec 29 16:05:01 book1[39244] DEBUG NSLog  - fetching JDBC Info
> with ERXJDBCAdaptor$Context@1408135793
> Dec 29 16:05:01 book1[39244] DEBUG NSLog  -  connecting with
> dictionary: {plugin = "Postgresql"; username = "username";
> driver = "org.postgresql.Driver"; password = " for log>"; URL = "jdbc:postgresql://intranet/bookmark"; }
> Dec 29 16:05:02 book1[39244] DEBUG NSLog  - connection
> disconnected.
> Dec 29 16:05:02 book1[39244] DEBUG NSLog  -  === Begin Internal
> Transaction
> Dec 29 16:05:02 book1[39244] DEBUG
> NSLog  -  evaluateExpression:
>  t0.creationdate, t0.description, t0.id, t0.tagID, t0.title,
> t0.url, t0.url_icon FROM public.bookmark t0" withBindings: >
> Dec 29 16:05:02 book1[39244] DEBUG NSLog  - fetch canceled
> Dec 29 16:05:02 book1[39244] DEBUG NSLog  - 0 row(s) processed
> Dec 29 16:05:02 book1[

Re: Strange error using Wonder (same code works fine in WebObjects 5.3)

2015-12-29 Thread jazzsalsa
It's solved :)

I removed the ERAttributeExtension framework, but I have still no idea
how to move make it load first. Anyway, I am on the move again.

Thanks!

Bart

On Tue, 2015-12-29 at 17:53 +0100, Fabian Peters wrote:
> You could check the java.class.path contents that get logged on
> application start. If ERAttributeExtension is listed before
> JavaEOAccess there as well, then I'm at a loss.
> 
> > Am 29.12.2015 um 17:33 schrieb jazzsalsa :
> > 
> > Hi Fabian,
> > 
> > Thanks for the fast reply! That is already the case. it looks like
> > this:
> > 
> > 
> > 
> > Is there anything else strange here?
> > 
> > Thanks in advance for your help.
> > 
> > Best regards, Bart
> > 
> > On Tue, 2015-12-29 at 16:48 +0100, Fabian Peters wrote:
> > > Hi Bart,
> > > 
> > > The ERAttributeExtension framework has to be loaded before
> > > JavaEOAccess. You can change the order in your project properties
> > > (right-click on the project folder in eclipse):
> > > 
> > > 
> > > 
> > > cheers, Fabian
> > > 
> > > > Am 29.12.2015 um 16:34 schrieb jazzsalsa :
> > > > 
> > > > Hi list,
> > > > 
> > > > I am stuck using Wonder (again, the learning curve is steep ;).
> > > > Trying to fetch data from a postgresql database. The data looks
> > > > like this:
> > > > 
> > > > creationDate (timestamptz)
> > > > description varchar(255)
> > > > id
> > > > tagID
> > > > title varchar(50)
> > > > url varchar(50)
> > > > 2015-12-29 13:46:19 +0100   This is a new description
> > > > added from EOF  
> > > > 1
> > > > 4
> > > > New title
> > > > http://example.com
> > > > 
> > > > 
> > > > 
> > > > 
> > > > Fetching the data does not work as soon as I add the field
> > > > creationDate in the database. The same database and data works
> > > > well with an App written in WebObjects 5.3. It is a simple
> > > > component to display the data using a repetion. Similar code is
> > > > use in the Wonder App and the WebObjects app.
> > > > 
> > > > Using Wonder 6.0:
> > > > 
> > > > Dec 29 16:05:02 book1[39244] ERROR
> > > > er.extensions.appserver.ERXApplication  - Exception caught:
> > > > java.lang.NoSuchMethodError:
> > > > com.webobjects.eoaccess.EOAttribute.newValueForDate(Ljava/lang/
> > > > Object;)Ljava/lang/Object;
> > > > "CurrentPage" = "your.app.components.Main";
> > > > "Bundles" = {
> > > > "ERExtensions" = "6.2-SNAPSHOT";
> > > > "JavaWebObjects" = "5.4.3";
> > > > "WOOgnl" = "6.0";
> > > > "ERJars" = "6.0";
> > > > "PostgresqlPlugIn" = "7.0";
> > > > "JavaJDBCAdaptor" = "5.4.3";
> > > > "JavaXML" = "5.4.2";
> > > > "JavaEOAccess" = "5.4.3";
> > > > "JavaEOControl" = "5.4.2";
> > > > "JavaFoundation" = "5.4.3";
> > > > "ERAttributeExtension" = "6.0";
> > > > "book1" = "";
> > > > "JavaWOExtensions" = "6.0";
> > > > "ERPrototypes" = "6.0";
> > > > };
> > > > "URL" = "/cgi-bin/WebObjects/book1.woa";
> > > > }
> > > > 
> > > > The attributes for the creationDate are:
> > > > 
> > > > {
> > > > attributes = (
> > > > {
> > > > columnName = creationdate; 
> > > > externalType = timestamptz; 
> > > > name = creationDate; 
> > > > prototypeName = dateTime; 
> > > > serverTimeZone = "Europe/Amsterdam"; 
> > > > }, 
> > > > 
> > > > 
> > > > Is there something obviously wrong here?
> > > > How can I debug this problem? (log4j.logger.er=DEBUG is already
> > > > used) 
> > > > 
> > > > Thanks in advance, Bart
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > > Dec 29 16:05:01 book1[39244] DEBUG NSLog  -  connecting with
> > > > dictionary: {plugin = "Postgresql"; username = "username";
> > > > driver = "org.postgresql.Driver"; password = " > > > for log>"; URL = "jdbc:postgresql://intranet/bookmark"; }
> > > > Dec 29 16:05:01 book1[39244] DEBUG NSLog  - fetching JDBC Info
> > > > with ERXJDBCAdaptor$Context@1408135793
> > > > Dec 29 16:05:01 book1[39244] DEBUG NSLog  -  connecting with
> > > > dictionary: {plugin = "Postgresql"; username = "username";
> > > > driver = "org.postgresql.Driver"; password = " > > > for log>"; URL = "jdbc:postgresql://intranet/bookmark"; }
> > > > Dec 29 16:05:02 book1[39244] DEBUG NSLog  - connection
> > > > disconnected.
> > > > Dec 29 16:05:02 book1[39244] DEBUG NSLog  -  === Begin Internal
> > > > Transaction
> > > > Dec 29 16:05:02 book1[39244] DEBUG
> > > > NSLog  -  evaluateExpression:
> > > >  > > > t0.creationdate, t0.description, t0.id, t0.tagID, t0.title,
> > > > t0.url, t0.url_icon FROM public.bookmark t0" withBindings: >
> > > > Dec 29 16:05:02 book1[39244] DEBUG NSLog  - fetch canceled
> > > > Dec 29 16:05:02 book1[39244] DEBUG NSLog  - 0 row(s) processed
> > > > Dec 29 16:05:02 book1[39244] DEBUG NSLog  -  === Commit
> > > > Internal Transac

Re: Strange error using Wonder (same code works fine in WebObjects 5.3)

2015-12-29 Thread Fabian Peters
You could check the java.class.path contents that get logged on application 
start. If ERAttributeExtension is listed before JavaEOAccess there as well, 
then I'm at a loss.

> Am 29.12.2015 um 17:33 schrieb jazzsalsa :
> 
> Hi Fabian,
> 
> Thanks for the fast reply! That is already the case. it looks like this:
> 
> 
> 
> Is there anything else strange here?
> 
> Thanks in advance for your help.
> 
> Best regards, Bart
> 
> On Tue, 2015-12-29 at 16:48 +0100, Fabian Peters wrote:
>> Hi Bart,
>> 
>> The ERAttributeExtension framework has to be loaded before JavaEOAccess. You 
>> can change the order in your project properties (right-click on the project 
>> folder in eclipse):
>> 
>> 
>> 
>> cheers, Fabian
>> 
>>> Am 29.12.2015 um 16:34 schrieb jazzsalsa :
>>> 
>>> Hi list,
>>> 
>>> I am stuck using Wonder (again, the learning curve is steep ;). Trying to 
>>> fetch data from a postgresql database. The data looks like this:
>>> 
>>> creationDate (timestamptz)
>>> description varchar(255)
>>> id
>>> tagID
>>> title varchar(50)
>>> url varchar(50)
>>> 2015-12-29 13:46:19 +0100   This is a new description added from EOF
>>> 1
>>> 4
>>> New title
>>> http://example.com
>>> 
>>> 
>>> 
>>> 
>>> Fetching the data does not work as soon as I add the field creationDate in 
>>> the database. The same database and data works well with an App written in 
>>> WebObjects 5.3. It is a simple component to display the data using a 
>>> repetion. Similar code is use in the Wonder App and the WebObjects app.
>>> 
>>> Using Wonder 6.0:
>>> 
>>> Dec 29 16:05:02 book1[39244] ERROR er.extensions.appserver.ERXApplication  
>>> - Exception caught: java.lang.NoSuchMethodError: 
>>> com.webobjects.eoaccess.EOAttribute.newValueForDate(Ljava/lang/Object;)Ljava/lang/Object;
>>> "CurrentPage" = "your.app.components.Main";
>>> "Bundles" = {
>>> "ERExtensions" = "6.2-SNAPSHOT";
>>> "JavaWebObjects" = "5.4.3";
>>> "WOOgnl" = "6.0";
>>> "ERJars" = "6.0";
>>> "PostgresqlPlugIn" = "7.0";
>>> "JavaJDBCAdaptor" = "5.4.3";
>>> "JavaXML" = "5.4.2";
>>> "JavaEOAccess" = "5.4.3";
>>> "JavaEOControl" = "5.4.2";
>>> "JavaFoundation" = "5.4.3";
>>> "ERAttributeExtension" = "6.0";
>>> "book1" = "";
>>> "JavaWOExtensions" = "6.0";
>>> "ERPrototypes" = "6.0";
>>> };
>>> "URL" = "/cgi-bin/WebObjects/book1.woa";
>>> }
>>> 
>>> The attributes for the creationDate are:
>>> 
>>> {
>>> attributes = (
>>> {
>>> columnName = creationdate; 
>>> externalType = timestamptz; 
>>> name = creationDate; 
>>> prototypeName = dateTime; 
>>> serverTimeZone = "Europe/Amsterdam"; 
>>> }, 
>>> 
>>> 
>>> Is there something obviously wrong here?
>>> How can I debug this problem? (log4j.logger.er=DEBUG is already used) 
>>> 
>>> Thanks in advance, Bart
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> Dec 29 16:05:01 book1[39244] DEBUG NSLog  -  connecting with dictionary: 
>>> {plugin = "Postgresql"; username = "username"; driver = 
>>> "org.postgresql.Driver"; password = ""; URL = 
>>> "jdbc:postgresql://intranet/bookmark"; }
>>> Dec 29 16:05:01 book1[39244] DEBUG NSLog  - fetching JDBC Info with 
>>> ERXJDBCAdaptor$Context@1408135793
>>> Dec 29 16:05:01 book1[39244] DEBUG NSLog  -  connecting with dictionary: 
>>> {plugin = "Postgresql"; username = "username"; driver = 
>>> "org.postgresql.Driver"; password = ""; URL = 
>>> "jdbc:postgresql://intranet/bookmark"; }
>>> Dec 29 16:05:02 book1[39244] DEBUG NSLog  - connection disconnected.
>>> Dec 29 16:05:02 book1[39244] DEBUG NSLog  -  === Begin Internal Transaction
>>> Dec 29 16:05:02 book1[39244] DEBUG NSLog  -  evaluateExpression: 
>>> >> t0.description, t0.id, t0.tagID, t0.title, t0.url, t0.url_icon FROM 
>>> public.bookmark t0" withBindings: >
>>> Dec 29 16:05:02 book1[39244] DEBUG NSLog  - fetch canceled
>>> Dec 29 16:05:02 book1[39244] DEBUG NSLog  - 0 row(s) processed
>>> Dec 29 16:05:02 book1[39244] DEBUG NSLog  -  === Commit Internal Transaction
>>> Dec 29 16:05:02 book1[39244] INFO  er.transaction.adaptor.Exceptions  - 
>>> Database Exception occured: com.webobjects.foundation.NSForwardException 
>>> [java.lang.NoSuchMethodError] 
>>> com.webobjects.eoaccess.EOAttribute.newValueForDate(Ljava/lang/Object;)Ljava/lang/Object;:java.lang.NoSuchMethodError:
>>>  
>>> com.webobjects.eoaccess.EOAttribute.newValueForDate(Ljava/lang/Object;)Ljava/lang/Object;
>>> Dec 29 16:05:02 book1[39244] WARN  NSLog  - 
>>> : Exception 
>>> occurred while handling request:
>>> com.webobjects.foundation.NSForwardException [java.lang.NoSuchMethodError] 
>>> com.webobjects.eoaccess.EOAttribute.newValueForDate(Ljava/lang/Object;)Ljava/lang/Object;:java.lang.NoSuchMethodError:
>>>  
>>> com.webobjects.eoaccess.EOAttribute.newValueForDate(Ljava/lang/Object;)Ljava/lang/Object;
>>> [2015-12-2

Re: Strange error using Wonder (same code works fine in WebObjects 5.3)

2015-12-29 Thread Fabian Peters
Hi Bart,

The ERAttributeExtension framework has to be loaded before JavaEOAccess. You 
can change the order in your project properties (right-click on the project 
folder in eclipse):



cheers, Fabian

> Am 29.12.2015 um 16:34 schrieb jazzsalsa  >:
> 
> Hi list,
> 
> I am stuck using Wonder (again, the learning curve is steep ;). Trying to 
> fetch data from a postgresql database. The data looks like this:
> 
> creationDate (timestamptz)
> description varchar(255)
> id
> tagID
> title varchar(50)
> url varchar(50)
> 2015-12-29 13:46:19 +0100 This is a new description added from EOF
> 1
> 4
> New title
> http://example.com 
> 
> 
> 
> 
> Fetching the data does not work as soon as I add the field creationDate in 
> the database. The same database and data works well with an App written in 
> WebObjects 5.3. It is a simple component to display the data using a 
> repetion. Similar code is use in the Wonder App and the WebObjects app.
> 
> Using Wonder 6.0:
> 
> Dec 29 16:05:02 book1[39244] ERROR er.extensions.appserver.ERXApplication  - 
> Exception caught: java.lang.NoSuchMethodError: 
> com.webobjects.eoaccess.EOAttribute.newValueForDate(Ljava/lang/Object;)Ljava/lang/Object;
>   "CurrentPage" = "your.app.components.Main";
>   "Bundles" = {
>   "ERExtensions" = "6.2-SNAPSHOT";
>   "JavaWebObjects" = "5.4.3";
>   "WOOgnl" = "6.0";
>   "ERJars" = "6.0";
>   "PostgresqlPlugIn" = "7.0";
>   "JavaJDBCAdaptor" = "5.4.3";
>   "JavaXML" = "5.4.2";
>   "JavaEOAccess" = "5.4.3";
>   "JavaEOControl" = "5.4.2";
>   "JavaFoundation" = "5.4.3";
>   "ERAttributeExtension" = "6.0";
>   "book1" = "";
>   "JavaWOExtensions" = "6.0";
>   "ERPrototypes" = "6.0";
>   };
>   "URL" = "/cgi-bin/WebObjects/book1.woa";
> }
> 
> The attributes for the creationDate are:
> 
> {
> attributes = (
> {
> columnName = creationdate; 
> externalType = timestamptz; 
> name = creationDate; 
> prototypeName = dateTime; 
> serverTimeZone = "Europe/Amsterdam"; 
> }, 
> 
> 
> Is there something obviously wrong here?
> How can I debug this problem? (log4j.logger.er=DEBUG is already used) 
> 
> Thanks in advance, Bart
> 
> 
> 
> 
> 
> 
> 
> Dec 29 16:05:01 book1[39244] DEBUG NSLog  -  connecting with dictionary: 
> {plugin = "Postgresql"; username = "username"; driver = 
> "org.postgresql.Driver"; password = ""; URL = 
> "jdbc:postgresql://intranet/bookmark"; }
> Dec 29 16:05:01 book1[39244] DEBUG NSLog  - fetching JDBC Info with 
> ERXJDBCAdaptor$Context@1408135793
> Dec 29 16:05:01 book1[39244] DEBUG NSLog  -  connecting with dictionary: 
> {plugin = "Postgresql"; username = "username"; driver = 
> "org.postgresql.Driver"; password = ""; URL = 
> "jdbc:postgresql://intranet/bookmark"; }
> Dec 29 16:05:02 book1[39244] DEBUG NSLog  - connection disconnected.
> Dec 29 16:05:02 book1[39244] DEBUG NSLog  -  === Begin Internal Transaction
> Dec 29 16:05:02 book1[39244] DEBUG NSLog  -  evaluateExpression: 
>  t0.description, t0.id, t0.tagID, t0.title, t0.url, t0.url_icon FROM 
> public.bookmark t0" withBindings: >
> Dec 29 16:05:02 book1[39244] DEBUG NSLog  - fetch canceled
> Dec 29 16:05:02 book1[39244] DEBUG NSLog  - 0 row(s) processed
> Dec 29 16:05:02 book1[39244] DEBUG NSLog  -  === Commit Internal Transaction
> Dec 29 16:05:02 book1[39244] INFO  er.transaction.adaptor.Exceptions  - 
> Database Exception occured: com.webobjects.foundation.NSForwardException 
> [java.lang.NoSuchMethodError] 
> com.webobjects.eoaccess.EOAttribute.newValueForDate(Ljava/lang/Object;)Ljava/lang/Object;:java.lang.NoSuchMethodError:
>  
> com.webobjects.eoaccess.EOAttribute.newValueForDate(Ljava/lang/Object;)Ljava/lang/Object;
> Dec 29 16:05:02 book1[39244] WARN  NSLog  - 
> : Exception 
> occurred while handling request:
> com.webobjects.foundation.NSForwardException [java.lang.NoSuchMethodError] 
> com.webobjects.eoaccess.EOAttribute.newValueForDate(Ljava/lang/Object;)Ljava/lang/Object;:java.lang.NoSuchMethodError:
>  
> com.webobjects.eoaccess.EOAttribute.newValueForDate(Ljava/lang/Object;)Ljava/lang/Object;
> [2015-12-29 16:5:2 CET]  
> com.webobjects.foundation.NSForwardException [java.lang.NoSuchMethodError] 
> com.webobjects.eoaccess.EOAttribute.newValueForDate(Ljava/lang/Object;)Ljava/lang/Object;:java.lang.NoSuchMethodError:
>  
> com.webobjects.eoaccess.EOAttribute.newValueForDate(Ljava/lang/Object;)Ljava/lang/Object;
>   at 
> com.webobjects.foundation.NSForwardException._runtimeExceptionForThrowable(NSForwardException.java:41)
>   at 
> com.webobjects.eoaccess.EODatabaseChannel._fetchObject(EODatabaseChannel.java:456)
>   at 
> com.webobjects.eoaccess.EODatabaseContext._objectsWithFetchSpecificationEditingContext(EODatabaseContext.ja

Strange error using Wonder (same code works fine in WebObjects 5.3)

2015-12-29 Thread jazzsalsa
Hi list,

I am stuck using Wonder (again, the learning curve is steep ;). Trying
to fetch data from a postgresql database. The data looks like this:

creationDate (timestamptz)  description varchar(255)id  
tagID   title varchar(50)   url varchar(50)
2015-12-29 13:46:19 +0100   This is a new description added from
EOF 1   4   New title   http://example.com




Fetching the data does not work as soon as I add the field creationDate
in the database. The same database and data works well with an App
written in WebObjects 5.3. It is a simple component to display the data
using a repetion. Similar code is use in the Wonder App and the
WebObjects app.

Using Wonder 6.0:

Dec 29 16:05:02 book1[39244] ERROR
er.extensions.appserver.ERXApplication  - Exception caught:
java.lang.NoSuchMethodError:
com.webobjects.eoaccess.EOAttribute.newValueForDate(Ljava/lang/Object;)
Ljava/lang/Object;
"CurrentPage" = "your.app.components.Main";
"Bundles" = {
"ERExtensions" = "6.2-SNAPSHOT";
"JavaWebObjects" = "5.4.3";
"WOOgnl" = "6.0";
"ERJars" = "6.0";
"PostgresqlPlugIn" = "7.0";
"JavaJDBCAdaptor" = "5.4.3";
"JavaXML" = "5.4.2";
"JavaEOAccess" = "5.4.3";
"JavaEOControl" = "5.4.2";
"JavaFoundation" = "5.4.3";
"ERAttributeExtension" = "6.0";
"book1" = "";
"JavaWOExtensions" = "6.0";
"ERPrototypes" = "6.0";
};
"URL" = "/cgi-bin/WebObjects/book1.woa";
}

The attributes for the creationDate are:

{
attributes = (
{
columnName = creationdate; 
externalType = timestamptz; 
name = creationDate; 
prototypeName = dateTime; 
serverTimeZone = "Europe/Amsterdam"; 
}, 


Is there something obviously wrong here?
How can I debug this problem? (log4j.logger.er=DEBUG is already used) 

Thanks in advance, Bart







Dec 29 16:05:01 book1[39244] DEBUG NSLog  -  connecting with
dictionary: {plugin = "Postgresql"; username = "username"; driver =
"org.postgresql.Driver"; password = ""; URL =
"jdbc:postgresql://intranet/bookmark"; }
Dec 29 16:05:01 book1[39244] DEBUG NSLog  - fetching JDBC Info with ERX
JDBCAdaptor$Context@1408135793
Dec 29 16:05:01 book1[39244] DEBUG NSLog  -  connecting with
dictionary: {plugin = "Postgresql"; username = "username"; driver =
"org.postgresql.Driver"; password = ""; URL =
"jdbc:postgresql://intranet/bookmark"; }
Dec 29 16:05:02 book1[39244] DEBUG NSLog  - connection disconnected.
Dec 29 16:05:02 book1[39244] DEBUG NSLog  -  === Begin Internal
Transaction
Dec 29 16:05:02 book1[39244] DEBUG NSLog  -  evaluateExpression:

Dec 29 16:05:02 book1[39244] DEBUG NSLog  - fetch canceled
Dec 29 16:05:02 book1[39244] DEBUG NSLog  - 0 row(s) processed
Dec 29 16:05:02 book1[39244] DEBUG NSLog  -  === Commit Internal
Transaction
Dec 29 16:05:02 book1[39244] INFO  er.transaction.adaptor.Exceptions  -
Database Exception occured:
com.webobjects.foundation.NSForwardException
[java.lang.NoSuchMethodError]
com.webobjects.eoaccess.EOAttribute.newValueForDate(Ljava/lang/Object;)
Ljava/lang/Object;:java.lang.NoSuchMethodError:
com.webobjects.eoaccess.EOAttribute.newValueForDate(Ljava/lang/Object;)
Ljava/lang/Object;
Dec 29 16:05:02 book1[39244] WARN  NSLog  -
:
Exception occurred while handling request:
com.webobjects.foundation.NSForwardException
[java.lang.NoSuchMethodError]
com.webobjects.eoaccess.EOAttribute.newValueForDate(Ljava/lang/Object;)
Ljava/lang/Object;:java.lang.NoSuchMethodError:
com.webobjects.eoaccess.EOAttribute.newValueForDate(Ljava/lang/Object;)
Ljava/lang/Object;
[2015-12-29 16:5:2 CET] 
com.webobjects.foundation.NSForwardException
[java.lang.NoSuchMethodError]
com.webobjects.eoaccess.EOAttribute.newValueForDate(Ljava/lang/Object;)
Ljava/lang/Object;:java.lang.NoSuchMethodError:
com.webobjects.eoaccess.EOAttribute.newValueForDate(Ljava/lang/Object;)
Ljava/lang/Object;
at
com.webobjects.foundation.NSForwardException._runtimeExceptionForThrowa
ble(NSForwardException.java:41)
at
com.webobjects.eoaccess.EODatabaseChannel._fetchObject(EODatabaseChanne
l.java:456)
at
com.webobjects.eoaccess.EODatabaseContext._objectsWithFetchSpecificatio
nEditingContext(EODatabaseContext.java:3071)
at
com.webobjects.eoaccess.EODatabaseContext.objectsWithFetchSpecification
(EODatabaseContext.java:3195)
at
com.webobjects.eocontrol.EOObjectStoreCoordinator.objectsWithFetchSpeci
fication(EOObjectStoreCoordinator.java:488)
at
com.webobjects.eocontrol.EOEditingContext.objectsWithFetchSpecification
(EOEditingContext.java:4069)
at
er.extensions.eof.ERXEC.objectsWithFetchSpecification(ERXEC.java:1308)
at
com.webobjects.eocontrol.EOEditingContext.objectsWithFetchSpecification
(EOEditingContext.java:)
at your.app

Re: Strange Error On Start

2012-05-24 Thread Lachlan Deck
<http://lmgtfy.com/?q=java.util.zip.ZipException%3A+invalid+CEN+header+(bad+signature)>

:)

On 24/05/2012, at 4:43 PM, Ron X wrote:

> hi 
> i have some strange error on app start (i use maven for dependencies):
> 
> Exception in thread "main" com.webobjects.foundation.NSForwardException 
> [java.util.zip.ZipException] invalid CEN header (bad 
> signature):java.util.zip.ZipException: invalid CEN header (bad signature)
> at 
> com.webobjects.foundation.NSForwardException._runtimeExceptionForThrowable(NSForwardException.java:41)
> at 
> er.extensions.appserver.ERXApplication$Loader.stringFromJar(ERXApplication.java:770)
> at 
> er.extensions.appserver.ERXApplication$Loader.(ERXApplication.java:456)
> at er.extensions.appserver.ERXApplication.setup(ERXApplication.java:906)
> at er.extensions.appserver.ERXApplication.main(ERXApplication.java:782)
> at com.ls.Application.main(Application.java:32)
> Caused by: java.util.zip.ZipException: invalid CEN header (bad signature)
> at java.util.zip.ZipFile.open(Native Method)
> at java.util.zip.ZipFile.(ZipFile.java:127)
> at java.util.jar.JarFile.(JarFile.java:135)
> at java.util.jar.JarFile.(JarFile.java:72)
> at 
> er.extensions.appserver.ERXApplication$Loader.stringFromJar(ERXApplication.java:750)
> ... 4 more
> ___
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/lachlan.deck%40gmail.com
> 
> This email sent to lachlan.d...@gmail.com

Lachlan Deck
lachlan.d...@gmail.com




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

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


Strange Error in my App

2007-12-21 Thread Daniele Corti
Hi list,
   I've notice that my new App makes a strange error while starting from
Eclipse:

[2007-12-21 13:04:14 CET]  java.net.ConnectException: Connection
refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
at java.net.Socket.connect(Socket.java:464)
at java.net.Socket.connect(Socket.java:414)
at java.net.Socket.(Socket.java:310)
at java.net.Socket.(Socket.java:125)
at com.webobjects._ideservices._PBXProjectWatcher._sendXMLToPB
(_PBXProjectWatcher.java:238)
at
com.webobjects._ideservices._PBXProjectWatcher.openProjectsAppropriateForFile
(_PBXProjectWatcher.java:41)
at com.webobjects._ideservices._IDEProjectPBX.pbxProjectAtPath
(_IDEProjectPBX.java:175)
at com.webobjects._ideservices._WOProject.ideProjectAtPath
(_WOProject.java:58)
at
com.webobjects.appserver._private.WOProjectBundle._isProjectBundlePath(
WOProjectBundle.java:193)
at com.webobjects.appserver._private.WODeployedBundle.bundleWithNSBundle
(WODeployedBundle.java:714)
at com.webobjects.appserver._private.WODeployedBundle.deployedBundle(
WODeployedBundle.java:98)
at com.webobjects.appserver.WOResourceManager._initAppBundle(
WOResourceManager.java:87)
at com.webobjects.appserver.WOResourceManager.(
WOResourceManager.java:34)
at er.extensions.ERXResourceManager.(ERXResourceManager.java:31)
at er.extensions.ERXApplication.createResourceManager(
ERXApplication.java:464)
at com.webobjects.appserver.WOApplication.(WOApplication.java:608)
at er.extensions.ERXAjaxApplication.(ERXAjaxApplication.java:24)
at er.extensions.ERXApplication.(ERXApplication.java:471)
at supportv2.gestweb.app.Application.(Application.java:13)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(
NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(
DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
at java.lang.Class.newInstance0(Class.java:308)
at java.lang.Class.newInstance(Class.java:261)
at com.webobjects.appserver.WOApplication.main(WOApplication.java:323)
at er.extensions.ERXApplication.main(ERXApplication.java:334)
at supportv2.gestweb.app.Application.main(Application.java:10)

This error occurs before the app read the Properties, exactly before this:

dic 21 13:04:15 GWSupportV2[54401] (ERXNSLogLog4jBridge.java:44) DEBUG
NSLog  - *** The application has found the following opened,
development-mode ProjectBuilderWO projects: (<
com.webobjects.appserver._private.WOProjectBundle:projectName='GWSupportV2';
bundlePath='/Users/daniele/Progetti/Eclipse/GWSupportV2/build/GWSupportV2.woa';
projectPath='/Users/daniele/Progetti/Eclipse/GWSupportV2'>)
dic 21 13:04:15 GWSupportV2[54401] (ERXNSLogLog4jBridge.java:41) WARN
NSLog  - Application project found: Will locate resources in
'/Users/daniele/Progetti/Eclipse/GWSupportV2' rather than
'/Users/daniele/Progetti/Eclipse/GWSupportV2/build/GWSupportV2.woa' .
dic 21 13:04:15 GWSupportV2[54401] (ERXNSLogLog4jBridge.java:41) WARN
NSLog  - Application project found: Will locate resources in
'/Users/daniele/Progetti/Eclipse/GWSupportV2' rather than
'/Users/daniele/Progetti/Eclipse/GWSupportV2/build/GWSupportV2.woa' .
dic 21 13:04:15 GWSupportV2[54401] (ERXNSLogLog4jBridge.java:44) DEBUG
NSLog  - Creating LifebeatThread now with: GWSupportV2 54401
imac-g5-di-samuele-vinati.local/10.0.0.148 1085 3
dic 21 13:04:16 GWSupportV2[54401] (ERXProperties.java:836) INFO
er.extensions.ERXProperties  -
...

The app works normal, even after some minutes this error is throw:

dic 21 13:07:20 GWSupportV2[54401] (ERXNSLogLog4jBridge.java:44) DEBUG
NSLog  -  Timed-out
reading from socket (exception ignored): java.net.SocketTimeoutException:
Read timed out; dropping connection
[2007-12-21 13:07:20 CET]  java.net.SocketTimeoutException:
Read timed out
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:129)
at com.webobjects.appserver._private.WOHttpIO.refillInputBuffer(
WOHttpIO.java:131)
at com.webobjects.appserver._private.WOHttpIO.readLine(WOHttpIO.java
:181)
at com.webobjects.appserver._private.WOHttpIO.readRequestFromSocket(
WOHttpIO.java:242)
at com.webobjects.appserver._private.WOWorkerThread.runOnce(
WOWorkerThread.java:79)
at com.webobjects.appserver._private.WOWorkerThread.run(
WOWorkerThread.java:254)
at java.lang.Thread.run(Thread.java:552)

dic 21 13:07:21 GWSupportV2[54401] (ERXNSLogLog4jBridge.java:44) DEBUG
NSLog  -  Timed-out
reading from sock

Re: Strange Error ???

2007-04-03 Thread Chuck Hill


On Apr 3, 2007, at 9:30 AM, James Cicenia wrote:


The database says it is null.


That probably means that it was set in memory but the EOF state was  
scrambled and the change did not get registered for saving to the DB.



Well I figure it is an unfired fault, but why would the print  
statement after the fact cure it?


It forces firing.



Overridden any EOF methods? Like?


See the EOF Commandment and also check EC locking.


I actually have left that print statement in for now in my  
production as it cures this random problem.


Eeew.

Chuck




On Apr 3, 2007, at 10:59 AM, Chuck Hill wrote:



On Apr 2, 2007, at 3:16 PM, James Cicenia wrote:


Sorry -

It is inconsistent. In other words it takes the resource and it  
is stored while sometimes just a null is gotten.


How are you determining that it is null?

However, it is always there when the print statement is issued  
after?!


It sounds like you are looking at an unfired fault.  Have you  
overridden any EOF methods and not called super or changed how  
they work?


Chuck



On Apr 2, 2007, at 4:51 PM, Chuck Hill wrote:


Hi James,

Ah, another guessing game for us.  :-).  Uh, I'd like to buy a  
vowel?  What means this, "sometimes it doesn't"?


Chuck

On Apr 2, 2007, at 2:47 PM, James Cicenia wrote:


Ok this is messing with my head here.


I have the following line:

newPhase.setResponsiblePerson((ProjectRosterMember)msp.resources 
().objectAtIndex(0));



Sometimes the above works and sometimes it doesn't. HOWEVER if  
I put the println AFTER it it always works?!


System.out.println("PHASE RESPONSIBLE PERSON IS "+ 
(newPhase.responsiblePerson().resource().fullName()));


The array resources() is an immutableClone.

Is there some faulting issue here that post setting the  
responsible person heals itself with the println?


Thanks
James Cicenia
___
Do not 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 [EMAIL PROTECTED]



--

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










--

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










--

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 archive@mail-archive.com


Re: Strange Error ???

2007-04-03 Thread James Cicenia

The database says it is null.

Well I figure it is an unfired fault, but why would the print  
statement after the fact cure it?

Overridden any EOF methods? Like?

I actually have left that print statement in for now in my production  
as it cures this random problem.


James

On Apr 3, 2007, at 10:59 AM, Chuck Hill wrote:



On Apr 2, 2007, at 3:16 PM, James Cicenia wrote:


Sorry -

It is inconsistent. In other words it takes the resource and it is  
stored while sometimes just a null is gotten.


How are you determining that it is null?

However, it is always there when the print statement is issued  
after?!


It sounds like you are looking at an unfired fault.  Have you  
overridden any EOF methods and not called super or changed how they  
work?


Chuck



On Apr 2, 2007, at 4:51 PM, Chuck Hill wrote:


Hi James,

Ah, another guessing game for us.  :-).  Uh, I'd like to buy a  
vowel?  What means this, "sometimes it doesn't"?


Chuck

On Apr 2, 2007, at 2:47 PM, James Cicenia wrote:


Ok this is messing with my head here.


I have the following line:

newPhase.setResponsiblePerson((ProjectRosterMember)msp.resources 
().objectAtIndex(0));



Sometimes the above works and sometimes it doesn't. HOWEVER if I  
put the println AFTER it it always works?!


System.out.println("PHASE RESPONSIBLE PERSON IS "+ 
(newPhase.responsiblePerson().resource().fullName()));


The array resources() is an immutableClone.

Is there some faulting issue here that post setting the  
responsible person heals itself with the println?


Thanks
James Cicenia
___
Do not 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 [EMAIL PROTECTED]



--

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










--

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 archive@mail-archive.com


Re: Strange Error ???

2007-04-03 Thread Chuck Hill


On Apr 2, 2007, at 3:16 PM, James Cicenia wrote:


Sorry -

It is inconsistent. In other words it takes the resource and it is  
stored while sometimes just a null is gotten.


How are you determining that it is null?


However, it is always there when the print statement is issued after?!


It sounds like you are looking at an unfired fault.  Have you  
overridden any EOF methods and not called super or changed how they  
work?


Chuck



On Apr 2, 2007, at 4:51 PM, Chuck Hill wrote:


Hi James,

Ah, another guessing game for us.  :-).  Uh, I'd like to buy a  
vowel?  What means this, "sometimes it doesn't"?


Chuck

On Apr 2, 2007, at 2:47 PM, James Cicenia wrote:


Ok this is messing with my head here.


I have the following line:

newPhase.setResponsiblePerson((ProjectRosterMember)msp.resources 
().objectAtIndex(0));



Sometimes the above works and sometimes it doesn't. HOWEVER if I  
put the println AFTER it it always works?!


System.out.println("PHASE RESPONSIBLE PERSON IS "+ 
(newPhase.responsiblePerson().resource().fullName()));


The array resources() is an immutableClone.

Is there some faulting issue here that post setting the  
responsible person heals itself with the println?


Thanks
James Cicenia
___
Do not 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 [EMAIL PROTECTED]



--

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










--

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 archive@mail-archive.com


Re: strange error

2007-04-03 Thread Mike Schrag
Actually the other way around in this case ... the snapshot cache is  
expecting to contain NSMutableArrays, but you've somehow managed to  
get an NSArray in there.  Are you doing something weird like manually  
replacing the array in a to-many relationship or something?


On Apr 3, 2007, at 6:32 AM, Dev WO wrote:


Hello Daniele,
I'm sure someone will come with more help, but just in case, are  
your sure you're getting a NSArray?
Usually a ClassCastException is thrown if you get something else  
than the class that was defined. You're not passing NSMutableArray  
instead?


Xavier




Hi list,
I've an error witch I don't understand how I should cause it:

WARN  NSLog  -  
:  
Exception occurred while handling request:

java.lang.ClassCastException : com.webobjects.foundation.NSArray
[2007-04-03 10:56:25 CEST]   
java.lang.ClassCastException: com.webobjects.foundation.NSArray
at  
com.webobjects.eoaccess.EODatabaseContext.objectsForSourceGlobalID  
(EODatabaseContext.java:4049)
at  
com.webobjects.eocontrol.EOObjectStoreCoordinator.objectsForSourceGlo 
balID(EOObjectStoreCoordinator.java:682)
at  
com.webobjects.eocontrol.EOEditingContext.objectsForSourceGlobalID  
(EOEditingContext.java:3965)

at er.extensions.ERXEC.objectsForSourceGlobalID(ERXEC.java:1036)
at com.webobjects.eoaccess.EODatabaseContext._fireArrayFault 
(EODatabaseContext.java:4427)
at  
com.webobjects.eoaccess.EOAccessArrayFaultHandler.completeInitializat 
ionOfObject (EOAccessArrayFaultHandler.java:70)
at com.webobjects.eocontrol._EOCheapCopyMutableArray.willRead 
(_EOCheapCopyMutableArray.java:38)
at com.webobjects.eocontrol._EOCheapCopyMutableArray.count 
(_EOCheapCopyMutableArray.java:92)
at com.webobjects.eocontrol._EOCheapCopyArray._setArray 
(_EOCheapCopyArray.java:33)
at  
com.webobjects.eoaccess._EOCheapCopyHandler.completeInitializationOfO 
bject(EOAccessArrayFaultHandler.java:151)
at com.webobjects.eocontrol._EOCheapCopyArray.willRead 
(_EOCheapCopyArray.java:126)
at com.webobjects.eocontrol._EOCheapCopyArray.objectsNoCopy 
(_EOCheapCopyArray.java:95)

at com.webobjects.foundation.NSArray.( NSArray.java:395)
at com.webobjects.foundation.NSMutableArray. 
(NSMutableArray.java:60)
at  
com.webobjects.foundation._NSArrayUtilities.arrayExcludingObjectsFrom 
Array(_NSArrayUtilities.java:197)
at  
com.webobjects.eoaccess.EODatabaseContext.recordChangesInEditingConte 
xt(EODatabaseContext.java:6109)
at  
com.webobjects.eocontrol.EOObjectStoreCoordinator.saveChangesInEditin 
gContext(EOObjectStoreCoordinator.java :412)
at com.webobjects.eocontrol.EOEditingContext.saveChanges 
(EOEditingContext.java:3226)

at er.extensions.ERXEC._saveChanges(ERXEC.java:947)
at er.extensions.ERXEC.saveChanges(ERXEC.java:870)
at  
support.gestweb.component.WXLocalizedComponent._saveChangesAndFixObje 
cts(WXLocalizedComponent.java:119)
at support.gestweb.component.insert.GWSAddDiscount.create 
(GWSAddDiscount.java:167)

at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke 
(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke 
(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke (Method.java:585)
at com.webobjects.foundation.NSKeyValueCoding$ValueAccessor 
$1.methodValue(NSKeyValueCoding.java:684)
at com.webobjects.foundation.NSKeyValueCoding 
$_MethodBinding.valueInObject(NSKeyValueCoding.java :1160)
at com.webobjects.foundation.NSKeyValueCoding 
$DefaultImplementation.valueForKey(NSKeyValueCoding.java:1268)
at com.webobjects.appserver.WOComponent.valueForKey 
(WOComponent.java:1539)
at com.webobjects.foundation.NSKeyValueCoding 
$Utility.valueForKey (NSKeyValueCoding.java:498)
at com.webobjects.foundation.NSKeyValueCodingAdditions 
$DefaultImplementation.valueForKeyPath 
(NSKeyValueCodingAdditions.java:212)
at com.webobjects.appserver.WOComponent.valueForKeyPath  
(WOComponent.java:1600)
at  
com.webobjects.appserver._private.WOKeyValueAssociation.valueInCompon 
ent(WOKeyValueAssociation.java:46)

at er.ajax.AjaxUtils.valueForBinding(AjaxUtils.java:243)
at er.ajax.AjaxDynamicElement.valueForBinding  
(AjaxDynamicElement.java:34)
at er.ajax.AjaxSubmitButton.handleRequest 
(AjaxSubmitButton.java:214)
at er.ajax.AjaxSubmitButton.invokeAction(AjaxSubmitButton.java: 
205)
at  
com.webobjects.appserver._private.WODynamicGroup.invokeChildrenAction 
 (WODynamicGroup.java:101)
at  
com.webobjects.appserver._private.WODynamicGroup.invokeAction 
(WODynamicGroup.java:110)

at er.extensions.ERXWOForm.invokeAction(ERXWOForm.java:127)
at com.webobjects.appserver.WOComponent.invokeAction  
(WOComponent.java:945)
at  
com.webobjects.appserver._private.WOComponentReference.invokeAction 
(WOComponentReference.java:104)
at  
com.webobjects.appserver._private.WOSwitchComponent.invokeAction 
(

Re: strange error

2007-04-03 Thread Dev WO

Hello Daniele,
I'm sure someone will come with more help, but just in case, are your  
sure you're getting a NSArray?
Usually a ClassCastException is thrown if you get something else than  
the class that was defined. You're not passing NSMutableArray instead?


Xavier




Hi list,
I've an error witch I don't understand how I should cause it:

WARN  NSLog  -  
:  
Exception occurred while handling request:

java.lang.ClassCastException : com.webobjects.foundation.NSArray
[2007-04-03 10:56:25 CEST]   
java.lang.ClassCastException: com.webobjects.foundation.NSArray
at  
com.webobjects.eoaccess.EODatabaseContext.objectsForSourceGlobalID  
(EODatabaseContext.java:4049)
at  
com.webobjects.eocontrol.EOObjectStoreCoordinator.objectsForSourceGlob 
alID(EOObjectStoreCoordinator.java:682)
at  
com.webobjects.eocontrol.EOEditingContext.objectsForSourceGlobalID  
(EOEditingContext.java:3965)

at er.extensions.ERXEC.objectsForSourceGlobalID(ERXEC.java:1036)
at com.webobjects.eoaccess.EODatabaseContext._fireArrayFault 
(EODatabaseContext.java:4427)
at  
com.webobjects.eoaccess.EOAccessArrayFaultHandler.completeInitializati 
onOfObject (EOAccessArrayFaultHandler.java:70)
at com.webobjects.eocontrol._EOCheapCopyMutableArray.willRead 
(_EOCheapCopyMutableArray.java:38)
at com.webobjects.eocontrol._EOCheapCopyMutableArray.count 
(_EOCheapCopyMutableArray.java:92)
at com.webobjects.eocontrol._EOCheapCopyArray._setArray 
(_EOCheapCopyArray.java:33)
at  
com.webobjects.eoaccess._EOCheapCopyHandler.completeInitializationOfOb 
ject(EOAccessArrayFaultHandler.java:151)
at com.webobjects.eocontrol._EOCheapCopyArray.willRead 
(_EOCheapCopyArray.java:126)
at com.webobjects.eocontrol._EOCheapCopyArray.objectsNoCopy 
(_EOCheapCopyArray.java:95)

at com.webobjects.foundation.NSArray.( NSArray.java:395)
at com.webobjects.foundation.NSMutableArray. 
(NSMutableArray.java:60)
at  
com.webobjects.foundation._NSArrayUtilities.arrayExcludingObjectsFromA 
rray(_NSArrayUtilities.java:197)
at  
com.webobjects.eoaccess.EODatabaseContext.recordChangesInEditingContex 
t(EODatabaseContext.java:6109)
at  
com.webobjects.eocontrol.EOObjectStoreCoordinator.saveChangesInEditing 
Context(EOObjectStoreCoordinator.java :412)
at com.webobjects.eocontrol.EOEditingContext.saveChanges 
(EOEditingContext.java:3226)

at er.extensions.ERXEC._saveChanges(ERXEC.java:947)
at er.extensions.ERXEC.saveChanges(ERXEC.java:870)
at  
support.gestweb.component.WXLocalizedComponent._saveChangesAndFixObjec 
ts(WXLocalizedComponent.java:119)
at support.gestweb.component.insert.GWSAddDiscount.create 
(GWSAddDiscount.java:167)

at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke 
(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke 
(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke (Method.java:585)
at com.webobjects.foundation.NSKeyValueCoding$ValueAccessor 
$1.methodValue(NSKeyValueCoding.java:684)
at com.webobjects.foundation.NSKeyValueCoding 
$_MethodBinding.valueInObject(NSKeyValueCoding.java :1160)
at com.webobjects.foundation.NSKeyValueCoding 
$DefaultImplementation.valueForKey(NSKeyValueCoding.java:1268)
at com.webobjects.appserver.WOComponent.valueForKey 
(WOComponent.java:1539)
at com.webobjects.foundation.NSKeyValueCoding 
$Utility.valueForKey (NSKeyValueCoding.java:498)
at com.webobjects.foundation.NSKeyValueCodingAdditions 
$DefaultImplementation.valueForKeyPath 
(NSKeyValueCodingAdditions.java:212)
at com.webobjects.appserver.WOComponent.valueForKeyPath  
(WOComponent.java:1600)
at  
com.webobjects.appserver._private.WOKeyValueAssociation.valueInCompone 
nt(WOKeyValueAssociation.java:46)

at er.ajax.AjaxUtils.valueForBinding(AjaxUtils.java:243)
at er.ajax.AjaxDynamicElement.valueForBinding  
(AjaxDynamicElement.java:34)
at er.ajax.AjaxSubmitButton.handleRequest(AjaxSubmitButton.java: 
214)
at er.ajax.AjaxSubmitButton.invokeAction(AjaxSubmitButton.java: 
205)
at  
com.webobjects.appserver._private.WODynamicGroup.invokeChildrenAction  
(WODynamicGroup.java:101)
at com.webobjects.appserver._private.WODynamicGroup.invokeAction 
(WODynamicGroup.java:110)

at er.extensions.ERXWOForm.invokeAction(ERXWOForm.java:127)
at com.webobjects.appserver.WOComponent.invokeAction  
(WOComponent.java:945)
at  
com.webobjects.appserver._private.WOComponentReference.invokeAction 
(WOComponentReference.java:104)
at  
com.webobjects.appserver._private.WOSwitchComponent.invokeAction 
(WOSwitchComponent.java :171)
at com.webobjects.appserver.WOComponent.invokeAction 
(WOComponent.java:945)
at  
com.webobjects.appserver._private.WOComponentReference.invokeAction 
(WOComponentReference.java:104)
at  
com.webobjects.appserver._private.WODynamicGroup.invokeChildrenAction  
(WODynamicGroup.java:

strange error

2007-04-03 Thread Daniele Corti

Hi list,
I've an error witch I don't understand how I should cause it:

WARN  NSLog  - :
Exception occurred while handling request:
java.lang.ClassCastException : com.webobjects.foundation.NSArray
[2007-04-03 10:56:25 CEST]  java.lang.ClassCastException:
com.webobjects.foundation.NSArray
   at com.webobjects.eoaccess.EODatabaseContext.objectsForSourceGlobalID (
EODatabaseContext.java:4049)
   at
com.webobjects.eocontrol.EOObjectStoreCoordinator.objectsForSourceGlobalID(
EOObjectStoreCoordinator.java:682)
   at com.webobjects.eocontrol.EOEditingContext.objectsForSourceGlobalID (
EOEditingContext.java:3965)
   at er.extensions.ERXEC.objectsForSourceGlobalID(ERXEC.java:1036)
   at com.webobjects.eoaccess.EODatabaseContext._fireArrayFault(
EODatabaseContext.java:4427)
   at
com.webobjects.eoaccess.EOAccessArrayFaultHandler.completeInitializationOfObject(
EOAccessArrayFaultHandler.java:70)
   at com.webobjects.eocontrol._EOCheapCopyMutableArray.willRead
(_EOCheapCopyMutableArray.java:38)
   at 
com.webobjects.eocontrol._EOCheapCopyMutableArray.count(_EOCheapCopyMutableArray.java:92)

   at com.webobjects.eocontrol._EOCheapCopyArray._setArray
(_EOCheapCopyArray.java:33)
   at
com.webobjects.eoaccess._EOCheapCopyHandler.completeInitializationOfObject(
EOAccessArrayFaultHandler.java:151)
   at com.webobjects.eocontrol._EOCheapCopyArray.willRead
(_EOCheapCopyArray.java:126)
   at com.webobjects.eocontrol._EOCheapCopyArray.objectsNoCopy
(_EOCheapCopyArray.java:95)
   at com.webobjects.foundation.NSArray.( NSArray.java:395)
   at com.webobjects.foundation.NSMutableArray.(NSMutableArray.java
:60)
   at
com.webobjects.foundation._NSArrayUtilities.arrayExcludingObjectsFromArray
(_NSArrayUtilities.java:197)
   at
com.webobjects.eoaccess.EODatabaseContext.recordChangesInEditingContext(
EODatabaseContext.java:6109)
   at
com.webobjects.eocontrol.EOObjectStoreCoordinator.saveChangesInEditingContext
(EOObjectStoreCoordinator.java :412)
   at com.webobjects.eocontrol.EOEditingContext.saveChanges(
EOEditingContext.java:3226)
   at er.extensions.ERXEC._saveChanges(ERXEC.java:947)
   at er.extensions.ERXEC.saveChanges(ERXEC.java:870)
   at
support.gestweb.component.WXLocalizedComponent._saveChangesAndFixObjects(
WXLocalizedComponent.java:119)
   at support.gestweb.component.insert.GWSAddDiscount.create(
GWSAddDiscount.java:167)
   at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:39)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke (Method.java:585)
   at
com.webobjects.foundation.NSKeyValueCoding$ValueAccessor$1.methodValue(
NSKeyValueCoding.java:684)
   at
com.webobjects.foundation.NSKeyValueCoding$_MethodBinding.valueInObject(
NSKeyValueCoding.java :1160)
   at
com.webobjects.foundation.NSKeyValueCoding$DefaultImplementation.valueForKey
(NSKeyValueCoding.java:1268)
   at com.webobjects.appserver.WOComponent.valueForKey(WOComponent.java
:1539)
   at com.webobjects.foundation.NSKeyValueCoding$Utility.valueForKey (
NSKeyValueCoding.java:498)
   at
com.webobjects.foundation.NSKeyValueCodingAdditions$DefaultImplementation.valueForKeyPath
(NSKeyValueCodingAdditions.java:212)
   at com.webobjects.appserver.WOComponent.valueForKeyPath (
WOComponent.java:1600)
   at
com.webobjects.appserver._private.WOKeyValueAssociation.valueInComponent(
WOKeyValueAssociation.java:46)
   at er.ajax.AjaxUtils.valueForBinding(AjaxUtils.java:243)
   at er.ajax.AjaxDynamicElement.valueForBinding (AjaxDynamicElement.java
:34)
   at er.ajax.AjaxSubmitButton.handleRequest(AjaxSubmitButton.java:214)
   at er.ajax.AjaxSubmitButton.invokeAction(AjaxSubmitButton.java:205)
   at com.webobjects.appserver._private.WODynamicGroup.invokeChildrenAction(
WODynamicGroup.java:101)
   at com.webobjects.appserver._private.WODynamicGroup.invokeAction(
WODynamicGroup.java:110)
   at er.extensions.ERXWOForm.invokeAction(ERXWOForm.java:127)
   at com.webobjects.appserver.WOComponent.invokeAction (WOComponent.java
:945)
   at com.webobjects.appserver._private.WOComponentReference.invokeAction(
WOComponentReference.java:104)
   at com.webobjects.appserver._private.WOSwitchComponent.invokeAction(
WOSwitchComponent.java :171)
   at com.webobjects.appserver.WOComponent.invokeAction(WOComponent.java
:945)
   at com.webobjects.appserver._private.WOComponentReference.invokeAction(
WOComponentReference.java:104)
   at com.webobjects.appserver._private.WODynamicGroup.invokeChildrenAction(
WODynamicGroup.java:101)
   at com.webobjects.appserver._private.WODynamicGroup.invokeAction(
WODynamicGroup.java:110)
   at er.ajax.AjaxDynamicElement.invokeAction(AjaxDynamicElement.java:83)
   at com.webobjects.appserver._private.WODynamicGroup.invokeChildrenAction(
WODynamicGroup.java:101)
   at com.webobjects.appserver._private.WODynamicGroup.invokeAction(
WODynamicGroup.java:110)
   at com.webobjects.appserver.WOComponen

Re: Strange Error ???

2007-04-02 Thread James Cicenia

Sorry -

It is inconsistent. In other words it takes the resource and it is  
stored while sometimes just a null is gotten.

However, it is always there when the print statement is issued after?!

- James


On Apr 2, 2007, at 4:51 PM, Chuck Hill wrote:


Hi James,

Ah, another guessing game for us.  :-).  Uh, I'd like to buy a  
vowel?  What means this, "sometimes it doesn't"?


Chuck

On Apr 2, 2007, at 2:47 PM, James Cicenia wrote:


Ok this is messing with my head here.


I have the following line:

newPhase.setResponsiblePerson((ProjectRosterMember)msp.resources 
().objectAtIndex(0));



Sometimes the above works and sometimes it doesn't. HOWEVER if I  
put the println AFTER it it always works?!


System.out.println("PHASE RESPONSIBLE PERSON IS "+ 
(newPhase.responsiblePerson().resource().fullName()));


The array resources() is an immutableClone.

Is there some faulting issue here that post setting the  
responsible person heals itself with the println?


Thanks
James Cicenia
___
Do not 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 [EMAIL PROTECTED]



--

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 archive@mail-archive.com


Re: Strange Error ???

2007-04-02 Thread Chuck Hill

Hi James,

Ah, another guessing game for us.  :-).  Uh, I'd like to buy a  
vowel?  What means this, "sometimes it doesn't"?


Chuck

On Apr 2, 2007, at 2:47 PM, James Cicenia wrote:


Ok this is messing with my head here.


I have the following line:

newPhase.setResponsiblePerson((ProjectRosterMember)msp.resources 
().objectAtIndex(0));



Sometimes the above works and sometimes it doesn't. HOWEVER if I  
put the println AFTER it it always works?!


System.out.println("PHASE RESPONSIBLE PERSON IS "+ 
(newPhase.responsiblePerson().resource().fullName()));


The array resources() is an immutableClone.

Is there some faulting issue here that post setting the responsible  
person heals itself with the println?


Thanks
James Cicenia
___
Do not 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 [EMAIL PROTECTED]



--

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 archive@mail-archive.com


Strange Error ???

2007-04-02 Thread James Cicenia

Ok this is messing with my head here.


I have the following line:

newPhase.setResponsiblePerson((ProjectRosterMember)msp.resources 
().objectAtIndex(0));



Sometimes the above works and sometimes it doesn't. HOWEVER if I put  
the println AFTER it it always works?!


System.out.println("PHASE RESPONSIBLE PERSON IS "+ 
(newPhase.responsiblePerson().resource().fullName()));


The array resources() is an immutableClone.

Is there some faulting issue here that post setting the responsible  
person heals itself with the println?


Thanks
James Cicenia
___
Do not 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 archive@mail-archive.com