Send Webobjects-dev mailing list submissions to
email@hidden
To subscribe or unsubscribe via the World Wide Web, visit
http://lists.apple.com/mailman/listinfo/webobjects-dev
or, via email, send a message with subject or body 'help' to
email@hidden
You can reach the person managing the list at
email@hidden
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Webobjects-dev digest..."
Today's Topics:
1. unable to find EOClassDescription (.::welemski::.)
2. Re: Object gets empty value, womp (Dev WO)
3. Horizontal Mapping using EOModeler (Satoru Moriwaki)
4. Re: Object gets empty value, womp (email@hidden)
5. Re: Need help! cloning an object SOLVED (Amedeo Mantica)
6. Re: Object gets empty value, womp (Dev WO)
----------------------------------------------------------------------
Message: 1
Date: Fri, 12 Aug 2005 16:22:48 +0800
From: ".::welemski::." <email@hidden>
Subject: unable to find EOClassDescription
To: email@hidden
Message-ID: <email@hidden>
Content-Type: text/plain; charset=UTF-8
Hi,
Thanks to EOGenerator, now I can generate a Java class file from my
EOModel file.
I have a java class file of "E_Books" generated from eogenerator.
When I compiled my project xcode does not display anyerrors.
But when I run my WebApp, it displayed an error:
"Unabled to find an EOClassDescription for objects of class E_Books"
This error willl generates only if I coded something like this..
//Assuming that class E_Books is already declared along with its
instance variable thisBook
thisBook=new E_Books(); //<-- this one makes the app go crazy...
I have no idea why...
--
-- -- -- -- -- -- -- -- -- -- --
welemski
-- -- -- -- -- -- --
------------------------------
Message: 2
Date: Fri, 12 Aug 2005 10:38:56 +0200
From: Dev WO <email@hidden>
Subject: Re: Object gets empty value, womp
To: Dev WO <email@hidden>
Cc: "WO-Dev \(Omni\)" <email@hidden>,
email@hidden, email@hidden,
WebObjects
Development <email@hidden>,
webobjects-dev-bounces+pierre.bernard=email@hidden
Message-ID: <email@hidden>
Content-Type: text/plain; charset="us-ascii"
I removed the method, but it still empty my object:(
I have no idea where to look at, it is working perfectly on the
development machine, so I really don't know where to start to debug
this...
Any help is welcome
Xavier
Hi Pierre,
I did overwrite dispatchRequest() using the following method (from
Chuck's seminar):
---
public WOResponse dispatchRequest(WORequest request)
{
NSLog.debug.appendln("\n====================== Start of
Request - Response Loop ======================");
NSLog.debug.appendln("Starting to dispatch URL: " +
request.uri());
NSLog.debug.appendln("request headers = " + request.headers
());
NSTimestamp startTime = new NSTimestamp();
// Uncomment this to see the result of an exception
escaping dispatchRequest
// if (1 == 1) throw new RuntimeException("exception from
dispatchRequest()");
WOResponse response = super.dispatchRequest(request);
NSTimestamp endTime = new NSTimestamp();
NSLog.debug.appendln ("response headers = " +
response.headers());
NSLog.debug.appendln("Finished dispatching URL: " +
request.uri());
// Note odd output formatting. This makes it easy to grep
out these lines
// and load them into Excel as CSV for analysis
NSLog.debug.appendln(",Elapsed Time," + new Double
((endTime.getTime() - startTime.getTime())/1000.0).toString());
return response;
}
---
Could this be the reason of my problem?
I'll try without this method just in case
Hi!
"womp" is the request handler key used by the WOTaskD contacing
your application. This request most likely has nothing to do with
your problem as it should not reach your component.
If it indeed does get handled by your component, then something is
horribly wrong. Did you override dispatchRequest(), register your
own request handler, ... ?
Pierre
webobjects-dev-bounces+pierre.bernard=email@hidden wrote
on 08/12/2005 02:30:03 AM:
Hi list,
I didn't wanted to post without more details...
I've got the exact same application/framework on the exact same OS
(10.4.2) and WO version (latest),
but things doesn't work the same on the development machine and the
deployment machine.
After checking all the logs I could, I have found that there's an
extra request-response loop on the deployment machine!?
and this loop just emptied my objects (put null value in every
field
except the ec global id)
here's the extra request-response loop:
--------
[2005-08-12 02:18:16 CEST] <WorkerThread4>
====================== Start of Request - Response Loop
======================
[2005-08-12 02:18:16 CEST] <WorkerThread4> Starting to dispatch
URL: /
cgi-bin/WebObjects/HarasdHurlventBO.woa/womp/instanceRequest
[2005-08-12 02:18:16 CEST] <WorkerThread4> request headers =
{content-
length = ("116"); }
[2005-08-12 02:18:16 CEST] <WorkerThread4> response headers =
{content-length = ("2707"); x-webobjects-loadaverage = ("1"); set-
cookie = (); }
[2005-08-12 02:18:16 CEST] <WorkerThread4> Finished dispatching
URL: /
cgi-bin/WebObjects/HarasdHurlventBO.woa/womp/instanceRequest
[2005-08-12 02:18:16 CEST] <WorkerThread4> ,Elapsed Time,0.265
--------
Could someone tell me what's this womp/instanceRequest and how come
it fills my object with null?
or a starting point to get rid of that:)
Thanks
Xavier
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden
This email sent to email@hidden
********************************************************************
*
*
This email and any files transmitted with it are intended solely for
the use of the individual or entity to whom they are addressed.
If you have received this email in error please notify the sender
of this message. (email@hidden)
This email message has been checked for the presence of computer
viruses; however this protection does not ensure this message is
virus free.
Banque centrale du Luxembourg; Tel ++352-4774-1; http://www.bcl.lu
********************************************************************
*
*
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-deploy mailing list (Webobjects-
email@hidden)
Help/Unsubscribe/Update your Subscription:
40anazys.com
This email sent to email@hidden
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.apple.com/pipermail/webobjects-dev/attachments/
20050812/a57bebad/attachment.html
------------------------------
Message: 3
Date: Fri, 12 Aug 2005 18:14:51 +0900
From: Satoru Moriwaki <email@hidden>
Subject: Horizontal Mapping using EOModeler
To: email@hidden
Message-ID: <email@hidden>
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
Hi,
I have a question regarding horizontal mapping using the EOModeler.
The Java class generated by the EOModeler for the parent entity is
not an abstract class even though the entity is marked as abstract.
Shouldn't it be an abstract class?? What else do I need to do?? (e.g.
the parent entity should not have the table name etc...)
Thank you,
Satoru
------------------------------
Message: 4
Date: Fri, 12 Aug 2005 11:16:26 +0200
From: email@hidden
Subject: Re: Object gets empty value, womp
To: Dev WO <email@hidden>
Cc: "WO-Dev \(Omni\)" <email@hidden>, WebObjects
Development <email@hidden>,
email@hidden,
webobjects-dev-bounces+pierre.bernard=email@hidden
Message-ID:
<email@hidden>
Content-Type: text/plain; charset="us-ascii"
I see nothing bad with that code.
webobjects-dev-bounces+pierre.bernard=email@hidden wrote on
08/12/2005 10:14:08 AM:
Hi Pierre,
I did overwrite dispatchRequest() using the following method (from
Chuck's seminar):
---
public WOResponse dispatchRequest(WORequest request)
{
NSLog.debug.appendln("\n====================== Start of
Request - Response Loop ======================");
NSLog.debug.appendln("Starting to dispatch URL: " +
request.uri());
NSLog.debug.appendln("request headers = " + request.headers
());
NSTimestamp startTime = new NSTimestamp();
// Uncomment this to see the result of an exception escaping
dispatchRequest
// if (1 == 1) throw new RuntimeException("exception from
dispatchRequest()");
WOResponse response = super.dispatchRequest(request);
NSTimestamp endTime = new NSTimestamp();
NSLog.debug.appendln ("response headers = " +
response.headers());
NSLog.debug.appendln("Finished dispatching URL: " +
request.uri());
// Note odd output formatting. This makes it easy to grep
out these lines
// and load them into Excel as CSV for analysis
NSLog.debug.appendln(",Elapsed Time," + new Double((endTime.
getTime() - startTime.getTime())/1000.0).toString());
return response;
}
---
Could this be the reason of my problem?
I'll try without this method just in case
Hi!
"womp" is the request handler key used by the WOTaskD contacing your
application. This request most likely has nothing to do with your
problem as it should not reach your component.
If it indeed does get handled by your component, then something is
horribly wrong. Did you override dispatchRequest(), register your
own request handler, ... ?
Pierre
webobjects-dev-bounces+pierre.bernard=email@hidden wrote
on 08/12/2005 02:30:03 AM:
Hi list,
I didn't wanted to post without more details...
I've got the exact same application/framework on the exact same OS
(10.4.2) and WO version (latest),
but things doesn't work the same on the development machine and the
deployment machine.
After checking all the logs I could, I have found that there's an
extra request-response loop on the deployment machine!?
and this loop just emptied my objects (put null value in every field
except the ec global id)
here's the extra request-response loop:
--------
[2005-08-12 02:18:16 CEST] <WorkerThread4>
====================== Start of Request - Response Loop
======================
[2005-08-12 02:18:16 CEST] <WorkerThread4> Starting to dispatch
URL: /
cgi-bin/WebObjects/HarasdHurlventBO.woa/womp/instanceRequest
[2005-08-12 02:18:16 CEST] <WorkerThread4> request headers =
{content-
length = ("116"); }
[2005-08-12 02:18:16 CEST] <WorkerThread4> response headers =
{content-length = ("2707"); x-webobjects-loadaverage = ("1"); set-
cookie = (); }
[2005-08-12 02:18:16 CEST] <WorkerThread4> Finished dispatching
URL: /
cgi-bin/WebObjects/HarasdHurlventBO.woa/womp/instanceRequest
[2005-08-12 02:18:16 CEST] <WorkerThread4> ,Elapsed Time,0.265
--------
Could someone tell me what's this womp/instanceRequest and how come
it fills my object with null?
or a starting point to get rid of that:)
Thanks
Xavier
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden
This email sent to email@hidden
*********************************************************************
*
This email and any files transmitted with it are intended solely for
the use of the individual or entity to whom they are addressed.
If you have received this email in error please notify the sender
of this message. (email@hidden)
This email message has been checked for the presence of computer
viruses; however this protection does not ensure this message is
virus free.
Banque centrale du Luxembourg; Tel ++352-4774-1; http://www.bcl.lu
*********************************************************************
*
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
@bcl.lu
This email sent to email@hidden
**********************************************************************
This email and any files transmitted with it are intended solely for
the use of the individual or entity to whom they are addressed.
If you have received this email in error please notify the sender
of this message. (email@hidden)
This email message has been checked for the presence of computer
viruses; however this protection does not ensure this message is
virus free.
Banque centrale du Luxembourg; Tel ++352-4774-1; http://www.bcl.lu
**********************************************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.apple.com/pipermail/webobjects-dev/attachments/
20050812/d87b735e/attachment.html
------------------------------
Message: 5
Date: Fri, 12 Aug 2005 11:39:17 +0200
From: Amedeo Mantica <email@hidden>
Subject: Re: Need help! cloning an object SOLVED
To: email@hidden
Message-ID: <email@hidden>
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
SOLVED, Thanks LD and Michael for the help!!!!!!
Best Regards.
Amedeo!!
On 11/ago/05, at 10:39, Michael Holtermann wrote:
Am Donnerstag, 11. August 2005 10:34 schrieb Amedeo Mantica:
i got a biuld error.
What Exception do you get exactly?
both array and variableas are the same type (a my own class)
The array contains Object-instances, independent from what you've
added to the
array. If you read from the array, you have to cast the returned
Object to
your concrete class:
Customer customer = (Customer)array.objectAtIndex(0);
^^^^^^^^^^
Greetings, Michael.
P.S.: Please, answer to the list. Thanks.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40macintossicati.com
This email sent to email@hidden
------------------------------
Message: 6
Date: Fri, 12 Aug 2005 12:15:43 +0200
From: Dev WO <email@hidden>
Subject: Re: Object gets empty value, womp
To: email@hidden
Cc: "WO-Dev \(Omni\)" <email@hidden>, WebObjects
Development <email@hidden>,
email@hidden,
webobjects-dev-bounces+pierre.bernard=email@hidden
Message-ID: <email@hidden>
Content-Type: text/plain; charset="us-ascii"
Here' s a copy of the class, it doens't look enough complicated to
get that behavior, I also added the Session class just in case
someone is seeing something wrong:
---------
import com.webobjects.foundation.*;
import com.webobjects.appserver.*;
import com.webobjects.eocontrol.*;
import com.webobjects.eoaccess.*;
public class ManagingLinks extends WOComponent {
public EOEditingContext ec;
public Session session;
// Object to use in the form
protected Links link;
// Object to manage the list item
protected Links aLink;
private EOFetchSpecification fetchSpecLinks;
protected NSMutableArray linksList;
// To display the correct part of the component when managing
edit
protected boolean editMode;
public ManagingLinks(WOContext context) {
super(context);
session = (Session)session();
ec = session.defaultEditingContext();
}
public Links link() {
// Create a new object if one is requested and not yet set
if (link == null) {
link = (Links) EOUtilities.createAndInsertInstance
(session.defaultEditingContext(), "Links");
}
return link;
}
// Add or update
public WOComponent addOrUpdateLinks()
{
editMode = false;
ec.saveChanges();
return context().page();
}
//Courtesy of Chuck, to clean unwanted objects
public void setLinksToBeEdited(Links theLink) {
ec.revert();
link = theLink;
}
// To edit a item in the list
public WOComponent editLinks()
{
setLinksToBeEdited(aLink);
editMode = true;
return context().page();
}
// To cancel the editing of the object. The append to respond
will provide with a new object for adding.
public WOComponent cancelEditLinks()
{
editMode = false;
return context().page();
}
// To make sure list displayed below the form is always up to
date
public void appendToResponse (WOResponse response, WOContext
context) {
fetchSpecLinks = EOFetchSpecification.fetchSpecificationNamed
("linksSortedByNameAndRefresh", "Links");
linksList = new NSMutableArray
(ec.objectsWithFetchSpecification(fetchSpecLinks));
// To make sure a new object will be created when we get an
empty form
if ((!editMode) && (!confirmDelete)) {
if (session.isInManagingLinks) setLinksToBeEdited(null);
}
super.appendToResponse(response, context);
}
}
---------
and the session class:
---------
import com.webobjects.foundation.*;
import com.webobjects.appserver.*;
import com.webobjects.eocontrol.*;
public class Session extends WOSession {
private EOEditingContext ec;
// Managing Links
public boolean isInManagingLinks;
// To manage a list of language for the entire session
private EOFetchSpecification fetchSpecLinksLang;
protected NSMutableArray linksLangList;
public LinksLang aLinksLang;
public Session() {
super();
/* ** Put your per-session initialization code here ** */
ec = defaultEditingContext();
isInManagingLinks = false;
fetchSpecLinksLang =
EOFetchSpecification.fetchSpecificationNamed
("linksLangSortedByNameAndRefresh", "LinksLang");
linksLangList = new NSMutableArray
(ec.objectsWithFetchSpecification(fetchSpecLinksLang));
}
public void takeValuesFromRequest(WORequest aRequest, WOContext
aContext){
aRequest.setDefaultFormValueEncoding
(_NSUtilities.UTF8StringEncoding);
super.takeValuesFromRequest(aRequest, aContext);
}
}
---------
If anyone is seeing what I am doing wrong.
Xavier
I see nothing bad with that code.
webobjects-dev-bounces+pierre.bernard=email@hidden wrote
on 08/12/2005 10:14:08 AM:
Hi Pierre,
I did overwrite dispatchRequest() using the following method (from
Chuck's seminar):
---
public WOResponse dispatchRequest(WORequest request)
{
NSLog.debug.appendln("\n====================== Start of
Request - Response Loop ======================");
NSLog.debug.appendln("Starting to dispatch URL: " +
request.uri());
NSLog.debug.appendln("request headers = " +
request.headers());
NSTimestamp startTime = new NSTimestamp();
// Uncomment this to see the result of an exception escaping
dispatchRequest
// if (1 == 1) throw new RuntimeException("exception from
dispatchRequest()");
WOResponse response = super.dispatchRequest(request);
NSTimestamp endTime = new NSTimestamp();
NSLog.debug.appendln ("response headers = " +
response.headers());
NSLog.debug.appendln("Finished dispatching URL: " +
request.uri());
// Note odd output formatting. This makes it easy to grep
out these lines
// and load them into Excel as CSV for analysis
NSLog.debug.appendln(",Elapsed Time," + new Double((endTime.
getTime() - startTime.getTime())/1000.0).toString());
return response;
}
---
Could this be the reason of my problem?
I'll try without this method just in case
Hi!
"womp" is the request handler key used by the WOTaskD contacing your
application. This request most likely has nothing to do with your
problem as it should not reach your component.
If it indeed does get handled by your component, then something is
horribly wrong. Did you override dispatchRequest(), register your
own request handler, ... ?
Pierre
webobjects-dev-bounces+pierre.bernard=email@hidden wrote
on 08/12/2005 02:30:03 AM:
Hi list,
I didn't wanted to post without more details...
I've got the exact same application/framework on the exact same OS
(10.4.2) and WO version (latest),
but things doesn't work the same on the development machine and
the
deployment machine.
After checking all the logs I could, I have found that there's an
extra request-response loop on the deployment machine!?
and this loop just emptied my objects (put null value in every
field
except the ec global id)
here's the extra request-response loop:
--------
[2005-08-12 02:18:16 CEST] <WorkerThread4>
====================== Start of Request - Response Loop
======================
[2005-08-12 02:18:16 CEST] <WorkerThread4> Starting to dispatch
URL: /
cgi-bin/WebObjects/HarasdHurlventBO.woa/womp/instanceRequest
[2005-08-12 02:18:16 CEST] <WorkerThread4> request headers =
{content-
length = ("116"); }
[2005-08-12 02:18:16 CEST] <WorkerThread4> response headers =
{content-length = ("2707"); x-webobjects-loadaverage = ("1"); set-
cookie = (); }
[2005-08-12 02:18:16 CEST] <WorkerThread4> Finished dispatching
URL: /
cgi-bin/WebObjects/HarasdHurlventBO.woa/womp/instanceRequest
[2005-08-12 02:18:16 CEST] <WorkerThread4> ,Elapsed Time,0.265
--------
Could someone tell me what's this womp/instanceRequest and how
come
it fills my object with null?
or a starting point to get rid of that:)
Thanks
Xavier
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden
This email sent to email@hidden
*********************************************************************
*
This email and any files transmitted with it are intended solely for
the use of the individual or entity to whom they are addressed.
If you have received this email in error please notify the sender
of this message. (email@hidden)
This email message has been checked for the presence of computer
viruses; however this protection does not ensure this message is
virus free.
Banque centrale du Luxembourg; Tel ++352-4774-1; http://www.bcl.lu
*********************************************************************
*
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden
This email sent to email@hidden
*********************************************************************
*
This email and any files transmitted with it are intended solely for
the use of the individual or entity to whom they are addressed.
If you have received this email in error please notify the sender
of this message. (email@hidden)
This email message has been checked for the presence of computer
viruses; however this protection does not ensure this message is
virus free.
Banque centrale du Luxembourg; Tel ++352-4774-1; http://www.bcl.lu
*********************************************************************
*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.apple.com/pipermail/webobjects-dev/attachments/
20050812/d2844a11/attachment.html
------------------------------
_______________________________________________
Webobjects-dev mailing list
email@hidden
http://lists.apple.com/mailman/listinfo/webobjects-dev
End of Webobjects-dev Digest, Vol 2, Issue 482
**********************************************
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden