WOWODC 2010 videos
Beware: for an unknown reason, the WOWODC 2010 videos doesn't play in iTunes or QT Player 7, but they do open in the "new" QT Player or in VLC. So if you attended WOWODC 2010 or became a Community Member, please open the recordings in QT Player or VLC until I found why it's doing that. ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
EOF pitfall
FYI: I have an 1:n relation using A ->> AB -> B. For faster display I flatten one attribute from B in AB. I forgot to set it to read only (No! I don't follow the instruction from Chuck second book ;-) ). After calling deleteABRelationship(anAB) the B record was gone also :-P , even if the rule is set to nullify. So, be careful. Stefan ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: what am i doing wrong with this qualifier
On 26/01/2011, at 11:09 PM, Johann Werner wrote: > Just a thought: There was a discussion back on december 2010 about the JDBC > driver for PostgreSQL converting timestamps between timezones behind your > back. Could it be that your 00:00:00 timestamp gets shifted changing the date > eventually and then reset to 00:00:00? Have a look at > http://wiki.objectstyle.org/confluence/display/WO/Project+WONDER-Frameworks-PostgresqlPlugin At first glance, that does seem like what is happening. Ted, you could try setting "-Duser.timezone=UTC" as a launch argument which will at least prevent the JDBC driver from adjusting the timestamp, and remove one potential source of error from the equation. (Obviously a way better idea is using proper 1-day resolution types, which is where you seem to be heading!) -- Paul. http://logicsquad.net/ ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
NPE in "responding to client"
Hello; The last few days I have been getting a number of these; socket=Socket[addr=/x.x.x.x,port=x,localport=x]> Exception occurred while responding to client: java.lang.NullPointerException This error message is not too specific about what is causing the problem -- no stack trace etc... has anybody else encountered a slew of these errors and has any idea about the cause? cheers -- Andrew Lindesay www.silvereye.co.nz ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: what am i doing wrong with this qualifier
On Jan 26, 2011, at 2:47 PM, Ramsey Gurley wrote: Hi John, I just tried it on a clean db and that appears to be the case. Whether I use newDateColumn or newTimestampColumn I'm getting CREATE TABLE StockReservation (created timestamp NOT NULL, expiration timestamp... Do you happen to know where it's failing to generate the right type? Is it a postgresql specific problem, or is the same with migrations on other dbs? Nevermind, I think I see where it gets the value. externalTypeForJDBCType on the SQLHelper class. Oddly, now the migrations are doing timestamp without timezone... which is what I expected. Somehow the ones I generated on a different database a few days ago created "with timezone". (>.<) Gotta love timestamps. Ramsey On Jan 26, 2011, at 2:09 PM, John Huss wrote: I don't think there is any way currently to use migrations to create a column with external type "date". You have to write SQL or modify the PostgresqlPlugIn. John On Wed, Jan 26, 2011 at 1:04 PM, Theodore Petrosky wrote: Ramsey, I tried the newDateColumn and I got a : timestamp without time zone however I was expecting a date column. Am I missing something? Ted --- On Wed, 1/26/11, Ramsey Gurley wrote: > From: Ramsey Gurley > Subject: Re: what am i doing wrong with this qualifier > To: "Theodore Petrosky" > Cc: "WebObjects Development" > Date: Wednesday, January 26, 2011, 9:39 AM > No, you're doing it right. I haven't > had a chance to update the > migration templates yet. I need to add a migration > method for time > and make sure that works too. For now, just change > that to a > newDateColumn method yourself. I believe it should work > fine. > > Ramsey > > On Jan 26, 2011, at 9:31 AM, Theodore Petrosky wrote: > > > sorry, I didn't copy the list. > > > > Great, I will experiment but I did try to add a > JodaLocalDate > > > > I used the prototype and got > > > > Prototype: jodaLocalDate > > External Type: date > > Class: org.joda.time.LocalDate > > Value Class: org.joda.time.LocalDate > > Value Type: D > > > > Factory and Conversion method jodaLoalDate > > > > but when I asked for the Migrations I got: > > > > securitySettingsTable.newBlobColumn("c_a_date", > false); > > > > a new blob column? I expected a date column. Do I need > to do > > something more? > >> > >> Ted > >> > >> > >> --- On Wed, 1/26/11, Ramsey Gurley > >> wrote: > >> > >>> From: Ramsey Gurley > >>> Subject: Re: what am i doing wrong with this > >> qualifier > >>> To: "Theodore Petrosky" > >>> Cc: "WebObjects Development" > >>> Date: Wednesday, January 26, 2011, 8:43 AM > >>> > >>> On Jan 26, 2011, at 6:47 AM, Theodore Petrosky > wrote: > >>> > > Postgresql supports dates without > timestamp, I > >> wish I > >>> knew how to do this in webobject java. (But > still call > >> them > >>> dates so I can do date math.) > >>> > >>> If you are using a very recent version of 54 > Wonder > >>> (committed in the last week), there are new > date > >> prototypes > >>> using Joda time classes instead of > NSTimestamps. Joda > >> allows > >>> for datetimes, dates, and times without a > timezone. > >>> Joda simplifies date math quite a bit too. > >>> > >>> Ramsey > >> > >> > >> > >> > > > > > > > > ___ > > Do not 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/ramsey%40xeotech.com > > > > This email sent to ram...@xeotech.com > > > > ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/johnthuss%40gmail.com This email sent to johnth...@gmail.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/ramsey%40xeotech.com This email sent to ram...@xeotech.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/ramsey%40xeotech.com This email sent to ram...@xeotech.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Java Thread Queues/ Pools with WebObjects
we use executor pools all over the place. the only thing you have to remember with WO is to use GID's to ship EO's into your threads, otherwise you will get bitten... simon On 26 January 2011 19:24, Dan Beatty wrote: > Greetings gang, > Does anyone have any tutorials on using thread queues with WO? I seem to > remember Ravi’s talk on Scala, but that seemed to have a couple different > ways to go. > > Thank you, > > Daniel Beatty, ABD > Computer Scientist, Detonation Sciences Branch > Code 474300D > 2400 E. Pilot Plant Rd. M/S 1109 > China Lake, CA 93555 > daniel.bea...@navy.mil > (760)939-7097 > > > ___ > Do not post admin requests to the list. They will be ignored. > Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) > Help/Unsubscribe/Update your Subscription: > > http://lists.apple.com/mailman/options/webobjects-dev/simon%40potwells.co.uk > > This email sent to si...@potwells.co.uk > ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: what am i doing wrong with this qualifier
Hi John, I just tried it on a clean db and that appears to be the case. Whether I use newDateColumn or newTimestampColumn I'm getting CREATE TABLE StockReservation (created timestamp NOT NULL, expiration timestamp... Do you happen to know where it's failing to generate the right type? Is it a postgresql specific problem, or is the same with migrations on other dbs? Oddly, now the migrations are doing timestamp without timezone... which is what I expected. Somehow the ones I generated on a different database a few days ago created "with timezone". (>.<) Gotta love timestamps. Ramsey On Jan 26, 2011, at 2:09 PM, John Huss wrote: I don't think there is any way currently to use migrations to create a column with external type "date". You have to write SQL or modify the PostgresqlPlugIn. John On Wed, Jan 26, 2011 at 1:04 PM, Theodore Petrosky wrote: Ramsey, I tried the newDateColumn and I got a : timestamp without time zone however I was expecting a date column. Am I missing something? Ted --- On Wed, 1/26/11, Ramsey Gurley wrote: > From: Ramsey Gurley > Subject: Re: what am i doing wrong with this qualifier > To: "Theodore Petrosky" > Cc: "WebObjects Development" > Date: Wednesday, January 26, 2011, 9:39 AM > No, you're doing it right. I haven't > had a chance to update the > migration templates yet. I need to add a migration > method for time > and make sure that works too. For now, just change > that to a > newDateColumn method yourself. I believe it should work > fine. > > Ramsey > > On Jan 26, 2011, at 9:31 AM, Theodore Petrosky wrote: > > > sorry, I didn't copy the list. > > > > Great, I will experiment but I did try to add a > JodaLocalDate > > > > I used the prototype and got > > > > Prototype: jodaLocalDate > > External Type: date > > Class: org.joda.time.LocalDate > > Value Class: org.joda.time.LocalDate > > Value Type: D > > > > Factory and Conversion method jodaLoalDate > > > > but when I asked for the Migrations I got: > > > > securitySettingsTable.newBlobColumn("c_a_date", > false); > > > > a new blob column? I expected a date column. Do I need > to do > > something more? > >> > >> Ted > >> > >> > >> --- On Wed, 1/26/11, Ramsey Gurley > >> wrote: > >> > >>> From: Ramsey Gurley > >>> Subject: Re: what am i doing wrong with this > >> qualifier > >>> To: "Theodore Petrosky" > >>> Cc: "WebObjects Development" > >>> Date: Wednesday, January 26, 2011, 8:43 AM > >>> > >>> On Jan 26, 2011, at 6:47 AM, Theodore Petrosky > wrote: > >>> > > Postgresql supports dates without > timestamp, I > >> wish I > >>> knew how to do this in webobject java. (But > still call > >> them > >>> dates so I can do date math.) > >>> > >>> If you are using a very recent version of 54 > Wonder > >>> (committed in the last week), there are new > date > >> prototypes > >>> using Joda time classes instead of > NSTimestamps. Joda > >> allows > >>> for datetimes, dates, and times without a > timezone. > >>> Joda simplifies date math quite a bit too. > >>> > >>> Ramsey > >> > >> > >> > >> > > > > > > > > ___ > > Do not 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/ramsey%40xeotech.com > > > > This email sent to ram...@xeotech.com > > > > ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/johnthuss%40gmail.com This email sent to johnth...@gmail.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/ramsey%40xeotech.com This email sent to ram...@xeotech.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: what am i doing wrong with this qualifier
I don't think there is any way currently to use migrations to create a column with external type "date". You have to write SQL or modify the PostgresqlPlugIn. John On Wed, Jan 26, 2011 at 1:04 PM, Theodore Petrosky wrote: > Ramsey, > > I tried the newDateColumn and I got a : > > timestamp without time zone > > however I was expecting a date column. Am I missing something? > > Ted > > --- On Wed, 1/26/11, Ramsey Gurley wrote: > > > From: Ramsey Gurley > > Subject: Re: what am i doing wrong with this qualifier > > To: "Theodore Petrosky" > > Cc: "WebObjects Development" > > Date: Wednesday, January 26, 2011, 9:39 AM > > No, you're doing it right. I haven't > > had a chance to update the > > migration templates yet. I need to add a migration > > method for time > > and make sure that works too. For now, just change > > that to a > > newDateColumn method yourself. I believe it should work > > fine. > > > > Ramsey > > > > On Jan 26, 2011, at 9:31 AM, Theodore Petrosky wrote: > > > > > sorry, I didn't copy the list. > > > > > > Great, I will experiment but I did try to add a > > JodaLocalDate > > > > > > I used the prototype and got > > > > > > Prototype: jodaLocalDate > > > External Type: date > > > Class: org.joda.time.LocalDate > > > Value Class: org.joda.time.LocalDate > > > Value Type: D > > > > > > Factory and Conversion method jodaLoalDate > > > > > > but when I asked for the Migrations I got: > > > > > > securitySettingsTable.newBlobColumn("c_a_date", > > false); > > > > > > a new blob column? I expected a date column. Do I need > > to do > > > something more? > > >> > > >> Ted > > >> > > >> > > >> --- On Wed, 1/26/11, Ramsey Gurley > > >> wrote: > > >> > > >>> From: Ramsey Gurley > > >>> Subject: Re: what am i doing wrong with this > > >> qualifier > > >>> To: "Theodore Petrosky" > > >>> Cc: "WebObjects Development" > > >>> Date: Wednesday, January 26, 2011, 8:43 AM > > >>> > > >>> On Jan 26, 2011, at 6:47 AM, Theodore Petrosky > > wrote: > > >>> > > > > Postgresql supports dates without > > timestamp, I > > >> wish I > > >>> knew how to do this in webobject java. (But > > still call > > >> them > > >>> dates so I can do date math.) > > >>> > > >>> If you are using a very recent version of 54 > > Wonder > > >>> (committed in the last week), there are new > > date > > >> prototypes > > >>> using Joda time classes instead of > > NSTimestamps. Joda > > >> allows > > >>> for datetimes, dates, and times without a > > timezone. > > >>> Joda simplifies date math quite a bit too. > > >>> > > >>> Ramsey > > >> > > >> > > >> > > >> > > > > > > > > > > > > ___ > > > Do not 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/ramsey%40xeotech.com > > > > > > This email sent to ram...@xeotech.com > > > > > > > > > > > ___ > Do not post admin requests to the list. They will be ignored. > Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) > Help/Unsubscribe/Update your Subscription: > http://lists.apple.com/mailman/options/webobjects-dev/johnthuss%40gmail.com > > This email sent to johnth...@gmail.com > ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: what am i doing wrong with this qualifier
I'm actually having timestamp headaches (again) today myself. It seems the timestamps generated by migrations for Postgres with the original dateTime prototype are timestamp with timezone. The ones created when generating with entity modeler are timestamp without timezone. Timestamp with timezone was causing locking problems for me even when I had -Duser.timezone=UTC as a launch argument... If you can, generate the entities with entity modeler. That's how I tested these prototypes and I know they should work with postgres that way. Ramsey On Jan 26, 2011, at 2:04 PM, Theodore Petrosky wrote: Ramsey, I tried the newDateColumn and I got a : timestamp without time zone however I was expecting a date column. Am I missing something? Ted --- On Wed, 1/26/11, Ramsey Gurley wrote: From: Ramsey Gurley Subject: Re: what am i doing wrong with this qualifier To: "Theodore Petrosky" Cc: "WebObjects Development" Date: Wednesday, January 26, 2011, 9:39 AM No, you're doing it right. I haven't had a chance to update the migration templates yet. I need to add a migration method for time and make sure that works too. For now, just change that to a newDateColumn method yourself. I believe it should work fine. Ramsey On Jan 26, 2011, at 9:31 AM, Theodore Petrosky wrote: sorry, I didn't copy the list. Great, I will experiment but I did try to add a JodaLocalDate I used the prototype and got Prototype: jodaLocalDate External Type: date Class: org.joda.time.LocalDate Value Class: org.joda.time.LocalDate Value Type: D Factory and Conversion method jodaLoalDate but when I asked for the Migrations I got: securitySettingsTable.newBlobColumn("c_a_date", false); a new blob column? I expected a date column. Do I need to do something more? Ted --- On Wed, 1/26/11, Ramsey Gurley wrote: From: Ramsey Gurley Subject: Re: what am i doing wrong with this qualifier To: "Theodore Petrosky" Cc: "WebObjects Development" Date: Wednesday, January 26, 2011, 8:43 AM On Jan 26, 2011, at 6:47 AM, Theodore Petrosky wrote: Postgresql supports dates without timestamp, I wish I knew how to do this in webobject java. (But still call them dates so I can do date math.) If you are using a very recent version of 54 Wonder (committed in the last week), there are new date prototypes using Joda time classes instead of NSTimestamps. Joda allows for datetimes, dates, and times without a timezone. Joda simplifies date math quite a bit too. Ramsey ___ Do not 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/ramsey%40xeotech.com This email sent to ram...@xeotech.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Java Thread Queues/ Pools with WebObjects
Greetings gang, Does anyone have any tutorials on using thread queues with WO? I seem to remember Ravi¹s talk on Scala, but that seemed to have a couple different ways to go. Thank you, Daniel Beatty, ABD Computer Scientist, Detonation Sciences Branch Code 474300D 2400 E. Pilot Plant Rd. M/S 1109 China Lake, CA 93555 daniel.bea...@navy.mil (760)939-7097 ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Replacing XServes
Greetings Calven, I have found that there three basic issues. Does the data and service need to be directly underneath your control and or private? If so, then a two Mac Pros (one for backup) with some special disk arrangements and several Mac Minis will provide a good manageble arrangement. Similarly, a couple Mac Pros running Parallels Server Bare Metal or Parallels Server for Mac have good management and security capabilities. They may not have the form factor of the Xservs, but they do have the power. I have found that management of Linux on PowerEdge tends to have higher cost factor in terms of administration. If this cost is not an obsticle then there may not be a problem there. Also, I have found an advantage in using the Mac solution in terms of geographic seperation. This has allowed me to maintain a geographically disperse group of services and benefit from fault tolerance where one location or another can be compromised due to some extreme circumstances that occur frequently for my customers. If the risk of using say cloud solutions is acceptable, then Amazon¹s EC2, Slicehost, GoDaddy, etc would probably be a good choice. It may be a punt, but it sure beats reinventing the wheel if you don¹t have to. Of course, when you retire the Xservs you can always donate them to a needy student who could put their processors and storage capabilities to good use. I do not know what kind tax write off a university can help you make for such thing, but my academic research would certainly appreciate the facilities. Unfortunately, my other research would never let me talk about it. Later, Daniel Beatty, ABD Computer Scientist, Detonation Sciences Branch Code 474300D 2400 E. Pilot Plant Rd. M/S 1109 China Lake, CA 93555 daniel.bea...@navy.mil (760)939-7097 On 1/26/11 10:09 AM, "Calven Eggert" wrote: > Hi, All > > Our company is thinking about upgrading our 5 year old Xserves. > > What are you guys using and/or recommend? > > > Calven > > > > > > ___ > Do not post admin requests to the list. They will be ignored. > Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) > Help/Unsubscribe/Update your Subscription: > http://lists.apple.com/mailman/options/webobjects-dev/daniel.beatty%40navy.mil > > This email sent to daniel.bea...@navy.mil ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: what am i doing wrong with this qualifier
Ramsey, I tried the newDateColumn and I got a : timestamp without time zone however I was expecting a date column. Am I missing something? Ted --- On Wed, 1/26/11, Ramsey Gurley wrote: > From: Ramsey Gurley > Subject: Re: what am i doing wrong with this qualifier > To: "Theodore Petrosky" > Cc: "WebObjects Development" > Date: Wednesday, January 26, 2011, 9:39 AM > No, you're doing it right. I haven't > had a chance to update the > migration templates yet. I need to add a migration > method for time > and make sure that works too. For now, just change > that to a > newDateColumn method yourself. I believe it should work > fine. > > Ramsey > > On Jan 26, 2011, at 9:31 AM, Theodore Petrosky wrote: > > > sorry, I didn't copy the list. > > > > Great, I will experiment but I did try to add a > JodaLocalDate > > > > I used the prototype and got > > > > Prototype: jodaLocalDate > > External Type: date > > Class: org.joda.time.LocalDate > > Value Class: org.joda.time.LocalDate > > Value Type: D > > > > Factory and Conversion method jodaLoalDate > > > > but when I asked for the Migrations I got: > > > > securitySettingsTable.newBlobColumn("c_a_date", > false); > > > > a new blob column? I expected a date column. Do I need > to do > > something more? > >> > >> Ted > >> > >> > >> --- On Wed, 1/26/11, Ramsey Gurley > >> wrote: > >> > >>> From: Ramsey Gurley > >>> Subject: Re: what am i doing wrong with this > >> qualifier > >>> To: "Theodore Petrosky" > >>> Cc: "WebObjects Development" > >>> Date: Wednesday, January 26, 2011, 8:43 AM > >>> > >>> On Jan 26, 2011, at 6:47 AM, Theodore Petrosky > wrote: > >>> > > Postgresql supports dates without > timestamp, I > >> wish I > >>> knew how to do this in webobject java. (But > still call > >> them > >>> dates so I can do date math.) > >>> > >>> If you are using a very recent version of 54 > Wonder > >>> (committed in the last week), there are new > date > >> prototypes > >>> using Joda time classes instead of > NSTimestamps. Joda > >> allows > >>> for datetimes, dates, and times without a > timezone. > >>> Joda simplifies date math quite a bit too. > >>> > >>> Ramsey > >> > >> > >> > >> > > > > > > > > ___ > > Do not 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/ramsey%40xeotech.com > > > > This email sent to ram...@xeotech.com > > > > ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Replacing XServes
there's a TON of support for the amazon services that works fantastically well for WO and likely is cheaper too. there are some deployment server installation scripts floating around and with a little work, you can have a well tuned, reliable and replicable setup - it's pretty hard to beat if you have the opportunity to change over now, this way stands out with major benefits. basically you can call up a new instance, configure it, setup monitor add apache rules, configure accounts and all you'll need and so you can terminate instances and bring up new ones reliably and you'll know the software is correctly configured. 'like a charm' On Jan 26, 2011, at 1:16 PM, Pascal Robert wrote: > Any private virtual hosting (Amazon EC2, Slicehost, etc.) or if you need > "private" servers, go with Linux on Dell PowerEdge machines and use Xen for > virtual machines. VMWare ESX is quite good too, but can be pricey. > >> Hi, All >> >> Our company is thinking about upgrading our 5 year old Xserves. >> >> What are you guys using and/or recommend? >> >> >> Calven >> >> >> >> ___ >> Do not post admin requests to the list. They will be ignored. >> Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) >> Help/Unsubscribe/Update your Subscription: >> http://lists.apple.com/mailman/options/webobjects-dev/probert%40macti.ca >> >> This email sent to prob...@macti.ca > > ___ > Do not post admin requests to the list. They will be ignored. > Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) > Help/Unsubscribe/Update your Subscription: > http://lists.apple.com/mailman/options/webobjects-dev/jtayler%40oeinc.com > > This email sent to jtay...@oeinc.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Replacing XServes
Any private virtual hosting (Amazon EC2, Slicehost, etc.) or if you need "private" servers, go with Linux on Dell PowerEdge machines and use Xen for virtual machines. VMWare ESX is quite good too, but can be pricey. > Hi, All > > Our company is thinking about upgrading our 5 year old Xserves. > > What are you guys using and/or recommend? > > > Calven > > > > ___ > Do not post admin requests to the list. They will be ignored. > Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) > Help/Unsubscribe/Update your Subscription: > http://lists.apple.com/mailman/options/webobjects-dev/probert%40macti.ca > > This email sent to prob...@macti.ca ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Replacing XServes
Hi, All Our company is thinking about upgrading our 5 year old Xserves. What are you guys using and/or recommend? Calven ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: D2W Timestamp attribute component
Greetings Mark, It works for me. Thank you so much. Thank you, Dan Beatty, ABD Ph.D. Student Texas Tech University dan.bea...@mac.com http://web.me.com/danielbeatty/My_Home_Page/Welcome.html (806)438-6620 On Jan 19, 2011, at 1:31 PM, Mark Wardle wrote: > This is probably hopelessly broken but it seems to work for me: > > Add the rule "shouldEditTime" for the property. > > > RSD2WDatePicker.html > name="ShouldEditTime"> name="Minutes"/> > > > RSD2WDatePicker.wod > ChooseDate: AjaxDatePicker { > value = objectPropertyValue; > format = format; > } > > ShouldEditTime: WOConditional { > condition = shouldEditTime; > } > > Hours: WOPopUpButton { > list = hoursList; > selection = hours; > } > Minutes: WOPopUpButton { > list = minutesList; > selection = minutes; > } > > > RSD2WDatePicker.java > > package com.eldrix.rsd2w; > > import java.util.Calendar; > import java.util.Date; > import java.util.GregorianCalendar; > > import com.webobjects.appserver.WOContext; > import com.webobjects.appserver.WORequest; > import com.webobjects.foundation.NSArray; > import com.webobjects.foundation.NSMutableArray; > import com.webobjects.foundation.NSTimestamp; > import com.webobjects.foundation.NSValidation; > > import er.directtoweb.components.ERDCustomEditComponent; > import er.extensions.formatters.ERXTimestampFormatter; > > /** > * D2W component to edit a date. > * Uses Chuck Hill's AjaxDatePicker > * > * @binding formatter : a text string (format) for the date format > * @binding shouldEditTime : whether to edit the time as well? > * > * FIXME: This doesn't use localisation... > * > * @author mark > * @see er.ajax.AjaxDatePicker > */ > public class RSD2WDatePicker extends ERDCustomEditComponent { > protected String _format; > protected GregorianCalendar _calendar; > protected static final NSArray _hoursList = new > NSMutableArray() {{ > for(int i=0; i < 24; i++) { > add(String.format("%02d", i)); > } > }}; > protected static final NSArray _minutesList = new > NSMutableArray() {{ > for (int i=0; i < 60; i++) { > add(String.format("%02d", i)); > } > }}; > > public interface Keys extends ERDCustomEditComponent.Keys { > public static final String formatter = "formatter"; > public static final String shouldEditTime = "shouldEditTime"; > } > > public RSD2WDatePicker(WOContext context) { > super(context); > } > > public NSArray hoursList() { > return _hoursList; > } > public NSArray minutesList() { > return _minutesList; > } > > /** >* Initialises calendar from the current property value. >* @return >*/ > public GregorianCalendar calendar() { > if (_calendar == null) { > _calendar = new GregorianCalendar(); > _calendar.setLenient(true); > if (date() != null) { > _calendar.setTime(date()); > } > } > return _calendar; > } > > public String hours() { > return String.format("%02d", > calendar().get(Calendar.HOUR_OF_DAY)); > } > public String minutes() { > return String.format("%02d", calendar().get(Calendar.MINUTE)); > } > > public void setHours(String hours) { > calendar().set(Calendar.HOUR_OF_DAY, Integer.parseInt(hours)); > } > public void setMinutes(String minutes) { > calendar().set(Calendar.MINUTE, Integer.parseInt(minutes)); > } > > /** >* We try to keep our calendar object up to date with property changes. >*/ > @Override public void setObjectPropertyValue(Object value) { > if (value == null || value instanceof Date) { > if (value != null) { > calendar().setTime((Date)value); > } > super.setObjectPropertyValue(value); > } > else throw new IllegalArgumentException("RSD2WDatePicker must be > used with an NSTimestamp"); > } > > public NSTimestamp date() { > Object o = objectPropertyValue(); > if (o == null || o instanceof NSTimestamp) { > return (NSTimestamp) o; > } > throw new IllegalArgumentException("RSD2WDatePicker must be used > with an NSTimestamp"); > } > > @Override public boolean synchronizesVariablesWithBindings() { > return false; > } > > public String format() { > if(_format == null
Re: java.lang.NoClassDefFoundError
On Jan 26, 2011, at 3:29 AM, David Avendasora wrote: > Chuck get's the prize on this one (shocking, I know), with a Q being a close > runner-up. > > I was being stupid in how I was initializing a static String variable. > > Apparently, I must re-read Chuck's second book, again. I wonder what the > pairing is for debugging moronic code that you only have yourself to blame > for... Espresso. > > On Jan 25, 2011, at 1:26 AM, Chuck Hill wrote: > >>> >>> the app fails stating that it can't initialize the model files. (see stack >>> trace below) >> >> Is there a static initializer or static init block in that class that is >> throwing? >> > -- Chuck Hill Senior Consultant / VP Development Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/products/practical_webobjects smime.p7s Description: S/MIME cryptographic signature ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: what am i doing wrong with this qualifier
I wish I had this a few months ago. Now I need to decide if I want to re-factor. But the Joda stuff looks great. Thanks, Ted --- On Wed, 1/26/11, Ramsey Gurley wrote: > From: Ramsey Gurley > Subject: Re: what am i doing wrong with this qualifier > To: "Theodore Petrosky" > Cc: "WebObjects Development" > Date: Wednesday, January 26, 2011, 9:39 AM > No, you're doing it right. I haven't > had a chance to update the > migration templates yet. I need to add a migration > method for time > and make sure that works too. For now, just change > that to a > newDateColumn method yourself. I believe it should work > fine. > > Ramsey > > On Jan 26, 2011, at 9:31 AM, Theodore Petrosky wrote: > > > sorry, I didn't copy the list. > > > > Great, I will experiment but I did try to add a > JodaLocalDate > > > > I used the prototype and got > > > > Prototype: jodaLocalDate > > External Type: date > > Class: org.joda.time.LocalDate > > Value Class: org.joda.time.LocalDate > > Value Type: D > > > > Factory and Conversion method jodaLoalDate > > > > but when I asked for the Migrations I got: > > > > securitySettingsTable.newBlobColumn("c_a_date", > false); > > > > a new blob column? I expected a date column. Do I need > to do > > something more? > >> > >> Ted > >> > >> > >> --- On Wed, 1/26/11, Ramsey Gurley > >> wrote: > >> > >>> From: Ramsey Gurley > >>> Subject: Re: what am i doing wrong with this > >> qualifier > >>> To: "Theodore Petrosky" > >>> Cc: "WebObjects Development" > >>> Date: Wednesday, January 26, 2011, 8:43 AM > >>> > >>> On Jan 26, 2011, at 6:47 AM, Theodore Petrosky > wrote: > >>> > > Postgresql supports dates without > timestamp, I > >> wish I > >>> knew how to do this in webobject java. (But > still call > >> them > >>> dates so I can do date math.) > >>> > >>> If you are using a very recent version of 54 > Wonder > >>> (committed in the last week), there are new > date > >> prototypes > >>> using Joda time classes instead of > NSTimestamps. Joda > >> allows > >>> for datetimes, dates, and times without a > timezone. > >>> Joda simplifies date math quite a bit too. > >>> > >>> Ramsey > >> > >> > >> > >> > > > > > > > > ___ > > Do not 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/ramsey%40xeotech.com > > > > This email sent to ram...@xeotech.com > > > > ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: what am i doing wrong with this qualifier
No, you're doing it right. I haven't had a chance to update the migration templates yet. I need to add a migration method for time and make sure that works too. For now, just change that to a newDateColumn method yourself. I believe it should work fine. Ramsey On Jan 26, 2011, at 9:31 AM, Theodore Petrosky wrote: sorry, I didn't copy the list. Great, I will experiment but I did try to add a JodaLocalDate I used the prototype and got Prototype: jodaLocalDate External Type: date Class: org.joda.time.LocalDate Value Class: org.joda.time.LocalDate Value Type: D Factory and Conversion method jodaLoalDate but when I asked for the Migrations I got: securitySettingsTable.newBlobColumn("c_a_date", false); a new blob column? I expected a date column. Do I need to do something more? Ted --- On Wed, 1/26/11, Ramsey Gurley wrote: From: Ramsey Gurley Subject: Re: what am i doing wrong with this qualifier To: "Theodore Petrosky" Cc: "WebObjects Development" Date: Wednesday, January 26, 2011, 8:43 AM On Jan 26, 2011, at 6:47 AM, Theodore Petrosky wrote: Postgresql supports dates without timestamp, I wish I knew how to do this in webobject java. (But still call them dates so I can do date math.) If you are using a very recent version of 54 Wonder (committed in the last week), there are new date prototypes using Joda time classes instead of NSTimestamps. Joda allows for datetimes, dates, and times without a timezone. Joda simplifies date math quite a bit too. Ramsey ___ Do not 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/ramsey%40xeotech.com This email sent to ram...@xeotech.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: what am i doing wrong with this qualifier
sorry, I didn't copy the list. Great, I will experiment but I did try to add a JodaLocalDate I used the prototype and got Prototype: jodaLocalDate External Type: date Class: org.joda.time.LocalDate Value Class: org.joda.time.LocalDate Value Type: D Factory and Conversion method jodaLoalDate but when I asked for the Migrations I got: securitySettingsTable.newBlobColumn("c_a_date", false); a new blob column? I expected a date column. Do I need to do something more? > > Ted > > > --- On Wed, 1/26/11, Ramsey Gurley > wrote: > > > From: Ramsey Gurley > > Subject: Re: what am i doing wrong with this > qualifier > > To: "Theodore Petrosky" > > Cc: "WebObjects Development" > > Date: Wednesday, January 26, 2011, 8:43 AM > > > > On Jan 26, 2011, at 6:47 AM, Theodore Petrosky wrote: > > > > > > > > Postgresql supports dates without timestamp, I > wish I > > knew how to do this in webobject java. (But still call > them > > dates so I can do date math.) > > > > If you are using a very recent version of 54 Wonder > > (committed in the last week), there are new date > prototypes > > using Joda time classes instead of NSTimestamps. Joda > allows > > for datetimes, dates, and times without a timezone. > > Joda simplifies date math quite a bit too. > > > > Ramsey > > > > ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: what am i doing wrong with this qualifier
On Jan 26, 2011, at 6:47 AM, Theodore Petrosky wrote: > > Postgresql supports dates without timestamp, I wish I knew how to do this in > webobject java. (But still call them dates so I can do date math.) If you are using a very recent version of 54 Wonder (committed in the last week), there are new date prototypes using Joda time classes instead of NSTimestamps. Joda allows for datetimes, dates, and times without a timezone. Joda simplifies date math quite a bit too. Ramsey smime.p7s Description: S/MIME cryptographic signature ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: what am i doing wrong with this qualifier
Just a thought: There was a discussion back on december 2010 about the JDBC driver for PostgreSQL converting timestamps between timezones behind your back. Could it be that your 00:00:00 timestamp gets shifted changing the date eventually and then reset to 00:00:00? Have a look at http://wiki.objectstyle.org/confluence/display/WO/Project+WONDER-Frameworks-PostgresqlPlugin jw Am 26.01.2011 um 13:20 schrieb Patrick Middleton: > So which version of PostgreSQL have you got? > > http://www.postgresql.org/docs/8.0/static/datatype-datetime.html > > That says: "Note: Prior to PostgreSQL 7.3, writing just timestamp was > equivalent to timestamp with time zone. This was changed for SQL compliance." > > And later it gives examples of valid time zone input. The form 'XYZ' appears > to be supported, but not 'Abc/XYZ'. > > On 26 Jan 2011, at 11:47, Theodore Petrosky wrote: > >> So I stopped guessing (or maybe bad guessing). Here is what I saw: >> >> 1. from my nslog: >> >> qualifier=(invoiceBookedDate = >>> (com.webobjects.foundation.NSTimestamp)'2010-12-06 00:00:00 >>> Etc/GMT'), >> >> I know this date is good. I was querying the postgresql db from psql with a >> select using that datestamp and I got rows of data. So i looked at the >> postgresql logs and I notice that the actual date passing into the query is: >> >> '2010-12-05 00:00:00 Etc/GMT' >> >> WT_??? >> >> So i didn't change anything but selected the next day in my app (in this >> case '2010-07-01..' and voila it worked as expected (I got good data and no >> error). And the date passed in the postgresql logs said the 6th. >> >> so why was I doing this: >> theDate = theDate.timestampByAddingGregorianUnits(0, 0, 0, -5, 0, 0); >> >> I did that because I kept seeing: >> >> '2010-12-06 05:00:00 Etc/GMT' in my logs and I knew I was only interested >> in the date (without timestamp) but I never figured out how to only pass >> around dates without timestamps and everything was working. I was >> subtracting the 5 hours and I didn't need to. (and it was biting me in the >> backend.) >> >> Postgresql supports dates without timestamp, I wish I knew how to do this in >> webobject java. (But still call them dates so I can do date math.) >> >> So the error has nothing to do with my WOD. I am picking up the >> JasperReports example from the WOWODC 2010 videos. I guess the example has >> problems with a query returning no rows. >> >> Now if I can only figure out how to pass an array from a previous query to >> JasperReports I would be happier. >> >> I have to go back to re-reading this plethora of documentation. >> >> Thanks for your timely help. >> >> Ted > > --- > Regards Patrick > OneStep Solutions (Research) LLP > www.onestep.co.uk > > > > > > This email, including any attachments, is confidential and intended solely > for the person or organisation to whom it is addressed. If you are not the > intended recipient you must not disseminate, distribute or copy any part of > this email nor take any action in reliance on it. > > If you have received this in error please notify the sender immediately by > email or phone +44 (0)1702 426400 and delete this email and any attachments > from your system. > > Email transmission cannot be guaranteed to be secure or error-free as > information could be intercepted, corrupted, lost, destroyed, arrive late or > incomplete, or contain viruses. The sender therefore does not accept > liability for any errors or omissions in the contents of this message which > arise as a result of email transmission. If verification is required please > request a hard-copy version. > > OneStep Solutions LLP is registered in England and Wales under registration > number OC337173 and has its registered office at 457 Southchurch Road, > Southend-on-Sea, Essex SS1 2PH. > ___ > Do not 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/jw%40oyosys.de > > This email sent to j...@oyosys.de > ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: what am i doing wrong with this qualifier
So which version of PostgreSQL have you got? http://www.postgresql.org/docs/8.0/static/datatype-datetime.html That says: "Note: Prior to PostgreSQL 7.3, writing just timestamp was equivalent to timestamp with time zone. This was changed for SQL compliance." And later it gives examples of valid time zone input. The form 'XYZ' appears to be supported, but not 'Abc/XYZ'. On 26 Jan 2011, at 11:47, Theodore Petrosky wrote: So I stopped guessing (or maybe bad guessing). Here is what I saw: 1. from my nslog: qualifier=(invoiceBookedDate = (com.webobjects.foundation.NSTimestamp)'2010-12-06 00:00:00 Etc/GMT'), I know this date is good. I was querying the postgresql db from psql with a select using that datestamp and I got rows of data. So i looked at the postgresql logs and I notice that the actual date passing into the query is: '2010-12-05 00:00:00 Etc/GMT' WT_??? So i didn't change anything but selected the next day in my app (in this case '2010-07-01..' and voila it worked as expected (I got good data and no error). And the date passed in the postgresql logs said the 6th. so why was I doing this: theDate = theDate.timestampByAddingGregorianUnits(0, 0, 0, -5, 0, 0); I did that because I kept seeing: '2010-12-06 05:00:00 Etc/GMT' in my logs and I knew I was only interested in the date (without timestamp) but I never figured out how to only pass around dates without timestamps and everything was working. I was subtracting the 5 hours and I didn't need to. (and it was biting me in the backend.) Postgresql supports dates without timestamp, I wish I knew how to do this in webobject java. (But still call them dates so I can do date math.) So the error has nothing to do with my WOD. I am picking up the JasperReports example from the WOWODC 2010 videos. I guess the example has problems with a query returning no rows. Now if I can only figure out how to pass an array from a previous query to JasperReports I would be happier. I have to go back to re-reading this plethora of documentation. Thanks for your timely help. Ted --- Regards Patrick OneStep Solutions (Research) LLP www.onestep.co.uk This email, including any attachments, is confidential and intended solely for the person or organisation to whom it is addressed. If you are not the intended recipient you must not disseminate, distribute or copy any part of this email nor take any action in reliance on it. If you have received this in error please notify the sender immediately by email or phone +44 (0)1702 426400 and delete this email and any attachments from your system. Email transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of email transmission. If verification is required please request a hard-copy version. OneStep Solutions LLP is registered in England and Wales under registration number OC337173 and has its registered office at 457 Southchurch Road, Southend-on-Sea, Essex SS1 2PH. ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: what am i doing wrong with this qualifier
So I stopped guessing (or maybe bad guessing). Here is what I saw: 1. from my nslog: qualifier=(invoiceBookedDate = > (com.webobjects.foundation.NSTimestamp)'2010-12-06 00:00:00 > Etc/GMT'), I know this date is good. I was querying the postgresql db from psql with a select using that datestamp and I got rows of data. So i looked at the postgresql logs and I notice that the actual date passing into the query is: '2010-12-05 00:00:00 Etc/GMT' WT_??? So i didn't change anything but selected the next day in my app (in this case '2010-07-01..' and voila it worked as expected (I got good data and no error). And the date passed in the postgresql logs said the 6th. so why was I doing this: theDate = theDate.timestampByAddingGregorianUnits(0, 0, 0, -5, 0, 0); I did that because I kept seeing: '2010-12-06 05:00:00 Etc/GMT' in my logs and I knew I was only interested in the date (without timestamp) but I never figured out how to only pass around dates without timestamps and everything was working. I was subtracting the 5 hours and I didn't need to. (and it was biting me in the backend.) Postgresql supports dates without timestamp, I wish I knew how to do this in webobject java. (But still call them dates so I can do date math.) So the error has nothing to do with my WOD. I am picking up the JasperReports example from the WOWODC 2010 videos. I guess the example has problems with a query returning no rows. Now if I can only figure out how to pass an array from a previous query to JasperReports I would be happier. I have to go back to re-reading this plethora of documentation. Thanks for your timely help. Ted --- On Tue, 1/25/11, Chuck Hill wrote: > From: Chuck Hill > Subject: Re: what am i doing wrong with this qualifier > To: "Theodore Petrosky" > Cc: webobjects-dev@lists.apple.com > Date: Tuesday, January 25, 2011, 6:35 PM > Stop guessing. Think. > :-) > > > Jan 25 18:15:09 TheWorkTracker[63447] INFO > er.extensions.components._private.ERXWOString - > Exception while formatting > > NumberFormatException: Infinite or NaN > > Read that. Again. Again. > > ... ERXWOString ... > > This error is coming from a WOString binding in your wod > file. > > > Chuck > > > On Jan 25, 2011, at 3:18 PM, Theodore Petrosky wrote: > > > I just quit the app and relaunched: > > Here is the full method: > > > > public static Callable > createSingleDateReportTask(NSTimestamp theDate) { > > // SortOrderings > > // Sort by studio name alphabetical > sort > > //ERXSortOrderings sortOrderings = > User.LAST_NAME.ascs(); > > > > ERXSortOrderings sortOrderings = > Invoice.INVOICE_BOOKED_DATE.ascs(); > > > > theDate = > theDate.timestampByAddingGregorianUnits(0, 0, 0, -5, 0, 0); > > > > > //Invoice.INVOICE_BOOKED_DATE.is(theDate) > > EOQualifier qualifier = > ERXQ.is("invoiceBookedDate", theDate); > > //EOQualifier qualifier = > null; > > > > > > ERXFetchSpecification fs = new > ERXFetchSpecification(Invoice.ENTITY_NAME, > qualifier, sortOrderings); > > > > NSLog.out.appendln("fs = " + fs); > > > > String reportDescription = "A > report on Invoices booked on: " + theDate; > > > > > NSLog.out.appendln("reportDescription = " + > reportDescription); > > HashMap > parameters = new HashMap(); > > parameters.put("reportDescription", > reportDescription); > > //parameters.put("userName", > "WOWODC Demo"); > > > > // Builder pattern for constructor > since. > > ERJRFetchSpecificationReportTask > reportTask = new ERJRFetchSpecificationReportTask(fs, > "BillingToday.jasper", parameters); > > > > NSLog.out.appendln("reportTask " + > reportTask); > > > > return reportTask; > > } > > > > here is the error: > > if qualifier is null then there is no error and I get > my report. > > > > Jan 25 18:15:00 TheWorkTracker[63447] DEBUG > NSLog - Waiting for requests... > > Jan 25 18:15:09 TheWorkTracker[63447] INFO > NSLog - printReport singleDateCondition called > > Jan 25 18:15:09 TheWorkTracker[63447] INFO > NSLog - fs = er.extensions.eof.ERXFetchSpecification(entityName=Invoice, > > qualifier=(invoiceBookedDate = > (com.webobjects.foundation.NSTimestamp)'2010-12-06 00:00:00 > Etc/GMT'), > > isDeep=true, usesDistinct=false, > > sortOrdering=( er.extensions.eof.ERXSortOrdering(invoiceBookedDate > compareAscending)>), > > hints=null, > > _prefetchingRelationshipKeyPaths = null)> > > Jan 25 18:15:09 TheWorkTracker[63447] INFO > NSLog - reportDescription = A report on Invoices > booked on: 2010-12-06 00:00:00 Etc/GMT > > Jan 25 18:15:09 TheWorkTracker[63447] INFO > NSLog - reportTask > er.jasperreports.ERJRFetchSpecificationReportTask@54aa39d6 > > Jan 25 18:15:09 TheWorkTracker[63447] INFO > er.jrexample.controllers.AbstractPageController - > Controller named > 'er.jrexample.controllers.FileTaskDownloadController' just > instantiated
Re: java.lang.NoClassDefFoundError
Chuck get's the prize on this one (shocking, I know), with a Q being a close runner-up. I was being stupid in how I was initializing a static String variable. Apparently, I must re-read Chuck's second book, again. I wonder what the pairing is for debugging moronic code that you only have yourself to blame for... MadDog 20/20 (http://www.bumwine.com/md2020.html)? Dave On Jan 25, 2011, at 1:26 AM, Chuck Hill wrote: >> >> the app fails stating that it can't initialize the model files. (see stack >> trace below) > > Is there a static initializer or static init block in that class that is > throwing? > ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com