WOL'ed? May you live in interesting times...
WOL'ed? May you live in interesting times...
- Subject: WOL'ed? May you live in interesting times...
- From: Johan Henselmans <email@hidden>
- Date: Thu, 15 Nov 2007 21:25:02 +0100
In Leopard, I tried to update a project I have been working on for
some time, and had adjusted some simple things, a form change here,
and session.method there. I downloaded the last Wonder53, made a
gowo53.sh and gowo54.sh, that symlinked and replaced the 54 frameworks
with 53 and viceversa.
Then I used the included EOGenerator to get my BusinessLogic framework
running. And I ran my app against the framework. Suddenly, things were
not so nice any more.
The construction is simple: i have trainingdata and reservations for
trainingdata. To check if there are places available, I check how many
reservations have been made: nothing special:
public Integer showNoOfReservations() {
reservationsintTemp = 0;
java.util.Enumeration <Reservation> e =
reservations().objectEnumerator();
while (e.hasMoreElements()){
Reservation reservationTemp = (Reservation)e.nextElement();
reservationsintTemp= reservationsintTemp
+reservationTemp.reservationNoOfReservationsTogether().intValue();
}
return new Integer(reservationsintTemp);
}
I got a null exception at a place that had worked very nice just
before. After some testing I found the error: a column in a
postgresql table which which included a '1' or a '0', as an integer,
seemed to give some null values. The interesting thing was that I
could not see any null values just running psql from postgresql
(8.2.5, from macports). So I did an if null test, and the strange
thing was that after that, I found two null values, and apparently
there were 236 records, while in psql there were only 204 records.
So I made a workaround (testing on null in
reservationNoOfReservationsTogether), and proceeded.
The relevant reservationNoOfReservationsTogether method:
public Integer reservationNoOfReservationsTogether() {
if (reservationOneExtra()!=null){
if (reservationOneExtra().intValue()!=0){
System.out.println("extra");
return new Integer(reservationNoOfReservations().intValue()
+1);
} else {
System.out.println("not extra");
return new Integer(reservationNoOfReservations().intValue());
}
} else {
System.out.println("null, not one extra"+this.toString()+" ");
return new Integer(reservationNoOfReservations().intValue());
}
}
The app now started, but now, I got errors saving reservation data:
before that time that had worked perfectly. The error I got was that I
could not save the reservation, because the object was not in an
Editing Context. I can not give you the complete error, because...
I then updated to the latest Wonder53 and WOLips (3.3.4643), to see if
that woud make a difference.
Now I am getting the error, while trying to start up the application,
I get a java heap space error.
0 [main] INFO org.apache.log4j.Logger - Updated the logging
configuration with the current system properties.
48 [main] DEBUG NSLog - WOMaxIOBufferSize=8196
48 [main] DEBUG NSLog - WOWorkerThreadCountMin=16
48 [main] DEBUG NSLog - WOSocketMonitorSleepTime=50
48 [main] DEBUG NSLog - WODirectConnectEnabled=true
48 [main] DEBUG NSLog - WOIncludeCommentsInResponse=false
48 [main] DEBUG NSLog - WOWorkerThreadCount=8
48 [main] DEBUG NSLog - WOAdaptorURL=http://127.0.0.1/cgi-bin/WebObjects
48 [main] DEBUG NSLog - WOIDE=WOLips
48 [main] DEBUG NSLog - WODebuggingEnabled=true
48 [main] DEBUG NSLog - WOListenQueueSize=128
48 [main] DEBUG NSLog - WOMissingResourceSearchEnabled=true
48 [main] DEBUG NSLog - WOApplicationClassName=Application
48 [main] DEBUG NSLog - WOSessionStoreClassName=WOServerSessionStore
48 [main] DEBUG NSLog - WOContextClassName=WOContext
48 [main] DEBUG NSLog - WOCachingEnabled=false
49 [main] DEBUG NSLog - WOAcceptMalformedCookies=false
49 [main] DEBUG NSLog - NSProjectSearchPath=(..,../..)
49 [main] DEBUG NSLog - WOMonitorEnabled=false
49 [main] DEBUG NSLog - WOAllowRapidTurnaround=true
49 [main] DEBUG NSLog - WOGenerateWSDL=true
49 [main] DEBUG NSLog - WOWorkerThreadCountMax=256
49 [main] DEBUG NSLog - WOAllowsConcurrentRequestHandling=false
54 [main] DEBUG NSLog - WOAdaptor=WODefaultAdaptor
54 [main] DEBUG NSLog - WOSessionTimeOut=3600
54 [main] DEBUG NSLog - WOMaxSocketIdleTime=180000
54 [main] DEBUG NSLog - WODefaultUndoStackLimit=10
54 [main] DEBUG NSLog - WOAutoOpenClientApplication=true
54 [main] DEBUG NSLog - WOAutoOpenInBrowser=true
55 [main] DEBUG NSLog - WOApplicationBaseURL=/WebObjects
55 [main] DEBUG NSLog - WOMaxHeaders=200
55 [main] DEBUG NSLog - WOLifebeatEnabled=true
55 [main] DEBUG NSLog - WOAllowsCacheControlHeader=true
55 [main] DEBUG NSLog - WOSMTPHost=smtp
55 [main] DEBUG NSLog - WOFrameworksBaseURL=/WebObjects/Frameworks
55 [main] DEBUG NSLog - WOStatisticsStoreSessionMax=50
55 [main] DEBUG NSLog - WOAdditionalAdaptors=()
55 [main] DEBUG NSLog - WOLifebeatDestinationPort=1085
55 [main] DEBUG NSLog - WOPort=55555
55 [main] DEBUG NSLog - WOLifebeatInterval=30
55 [main] DEBUG NSLog - WOSocketCacheSize=100
55 [main] DEBUG NSLog - WOUserDirectory=/Users/johan/projecten/
panasoniccursus/cursusaanmelding/build/panasoniccursusaanmelding.woa
55 [main] DEBUG NSLog - WODisplayExceptionPages=true
56 [main] DEBUG NSLog - ------------------------
72 [main] DEBUG NSLog - Created adaptor of class WODefaultAdaptor on
port 55555 and address sport11.netsense.nl/193.78.79.82 with
WOWorkerThread minimum of 16 and maximum of 256
87 [main] DEBUG NSLog - NSBundle is unable to find
"ExtensionsForResources.plist" in the main bundle. Ignoring optional
configuration file.
92 [main] WARN NSLog - Cannot use rapid turnaround. Please start
Xcode and open the project for this application.
123 [main] DEBUG NSLog - Creating LifebeatThread now with:
panasoniccursusaanmelding 55555 sport11.netsense.nl/193.78.79.82 1085
30000
9399 [main] WARN NSLog - A fatal exception occurred: Java heap space
So my questions:
-has the java heap space suddenly increased with Eclipse 3.3.x.etc in
combination with WOLips 3.3.4643 and Leopard 6Bxx (don't ask)
-is there something wrong with the current 5.3 PostgresqlPlugin, that
I get different results in psql in number of records as I am getting
simple running a println of all the reservations?
-Why do I suddenly get errors about Editing Contexts that I would not
be in, while I do the very simple:
newReservation=new Reservation();
ec.insertObject(newReservation );
As the chinese curse says: May you live in interesting times...
Regards,
Johan Henselmans
http://www.netsense.nl
Tel: +31-20-6267538
Fax: +31-20-6273852
_______________________________________________
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