From jerrywwalker at gmail.com Thu Feb 1 04:59:59 2007 From: jerrywwalker at gmail.com (Jerry W. Walker) Date: Thu Feb 1 05:00:09 2007 Subject: MacOSClassPath.txt In-Reply-To: <6FAE9AA9-BA57-4E8C-B910-A9812B369EA5@foraker.com> References: <6FAE9AA9-BA57-4E8C-B910-A9812B369EA5@foraker.com> Message-ID: <6D76660F-CA8E-4139-813C-B1948352A65C@gmail.com> Hi, Stirling, I'm presuming that you're using Xcode; if not, please ignore this message. It's been a while since I've done this, but IIRC, * Select "Application Server" in your Active Target popdown menu at the top left of your Xcode window (and don't forget to change this back to your setting when you're done). * Choose the Project->Edit Active Target 'Application Server' menu item which will open a target editing window. * From the "Summary" column on the left of this window, select Build Phases->Link Binary With Libraries which should display a list of your frameworks in the edit pane of this window. Note that the frameworks listed there correspond in name and order to the entries from 7th line on down of the listing that you included in your email. * Rearrange these frameworks in the editing pane into any order that you desire by dragging and dropping them within the editing pane. * Set your Active Target popdown menu back to the name of your project * Clean and rebuild your app and your classpath settings should be rearranged accordingly. As I said, it's been a while since I've done this, so if the above doesn't work, ask again. Regards, Jerry On Feb 1, 2007, at 2:41 AM, Stirling Olson wrote: > Does anyone know how to influence the order in this file? I am > getting: > > # JVM == java > # JVMOptions == > # JDB == jdb > # JDBOptions == > # ApplicationClass == Application > APPROOT/Resources/Java/spiadmin.jar > WOROOT/Library/Frameworks/JavaFoundation.framework/Resources/Java/ > javafoundation.jar > WOROOT/Library/Frameworks/JavaEOControl.framework/Resources/Java/ > javaeocontrol.jar > WOROOT/Library/Frameworks/JavaEOAccess.framework/Resources/Java/ > javaeoaccess.jar > WOROOT/Library/Frameworks/JavaWebObjects.framework/Resources/Java/ > javawebobjects.jar > WOROOT/Library/Frameworks/JavaWOExtensions.framework/Resources/Java/ > JavaWOExtensions.jar > WOROOT/Library/Frameworks/JavaXML.framework/Resources/Java/javaxml.jar > WOROOT/Library/Frameworks/JavaJDBCAdaptor.framework/Resources/Java/ > javajdbcadaptor.jar > LOCALROOT/Library/Frameworks/ERExtensions.framework/Resources/Java/ > ERExtensions.jar > LOCALROOT/Library/Frameworks/ERExtensions.framework/Resources/Java/ > src.jar > LOCALROOT/Library/Frameworks/ERJavaMail.framework/Resources/Java/ > ERJavaMail.jar > LOCALROOT/Library/Frameworks/ERJavaMail.framework/Resources/Java/ > activation-1.0.2.jar > LOCALROOT/Library/Frameworks/ERJavaMail.framework/Resources/Java/ > jakarta-oro-2.0.6.jar > LOCALROOT/Library/Frameworks/ERJavaMail.framework/Resources/Java/ > mailapi.jar > LOCALROOT/Library/Frameworks/ERJavaMail.framework/Resources/Java/ > smtp.jar > LOCALROOT/Library/Frameworks/ERJavaMail.framework/Resources/Java/ > src.jar > LOCALROOT/Library/Frameworks/frkCommon.framework/Resources/Java/ > frkcommon.jar > LOCALROOT/Library/Frameworks/PostgresqlPlugIn.framework/Resources/ > Java/PostgresqlPlugIn.jar > LOCALROOT/Library/Frameworks/PostgresqlPlugIn.framework/Resources/ > Java/src.jar > LOCALROOT/Library/Frameworks/SPIBase.framework/Resources/Java/ > spibase.jar > LOCALROOT/Library/Frameworks/ERJars.framework/Resources/Java/ > icu4j_2_8.jar > LOCALROOT/Library/Frameworks/ERJars.framework/Resources/Java/ > icu4jdocs_2_8.jar > LOCALROOT/Library/Frameworks/ERJars.framework/Resources/Java/junit.jar > LOCALROOT/Library/Frameworks/ERJars.framework/Resources/Java/ > log4j-1.2.8.jar > HOMEROOT/Library/Java > LOCALROOT/Library/Java > WOROOT/Library/Java > /Network/Library/Java > WOROOT/Library/Frameworks/JavaVM.framework/Classes/classes.jar > WOROOT/Library/Frameworks/JavaVM.framework/Classes/ui.jar > > > but want: > > # JVM == java > # JVMOptions == > # JDB == jdb > # JDBOptions == > # ApplicationClass == Application > APPROOT/Resources/Java/spiadmin.jar > LOCALROOT/Library/Frameworks/ERExtensions.framework/Resources/Java/ > ERExtensions.jar > LOCALROOT/Library/Frameworks/ERExtensions.framework/Resources/Java/ > src.jar > LOCALROOT/Library/Frameworks/ERJavaMail.framework/Resources/Java/ > ERJavaMail.jar > LOCALROOT/Library/Frameworks/ERJavaMail.framework/Resources/Java/ > activation-1.0.2.jar > LOCALROOT/Library/Frameworks/ERJavaMail.framework/Resources/Java/ > jakarta-oro-2.0.6.jar > LOCALROOT/Library/Frameworks/ERJavaMail.framework/Resources/Java/ > mailapi.jar > LOCALROOT/Library/Frameworks/ERJavaMail.framework/Resources/Java/ > smtp.jar > LOCALROOT/Library/Frameworks/ERJavaMail.framework/Resources/Java/ > src.jar > LOCALROOT/Library/Frameworks/frkCommon.framework/Resources/Java/ > frkcommon.jar > LOCALROOT/Library/Frameworks/PostgresqlPlugIn.framework/Resources/ > Java/PostgresqlPlugIn.jar > LOCALROOT/Library/Frameworks/PostgresqlPlugIn.framework/Resources/ > Java/src.jar > LOCALROOT/Library/Frameworks/SPIBase.framework/Resources/Java/ > spibase.jar > LOCALROOT/Library/Frameworks/ERJars.framework/Resources/Java/ > icu4j_2_8.jar > LOCALROOT/Library/Frameworks/ERJars.framework/Resources/Java/ > icu4jdocs_2_8.jar > LOCALROOT/Library/Frameworks/ERJars.framework/Resources/Java/junit.jar > LOCALROOT/Library/Frameworks/ERJars.framework/Resources/Java/ > log4j-1.2.8.jar > WOROOT/Library/Frameworks/JavaFoundation.framework/Resources/Java/ > javafoundation.jar > WOROOT/Library/Frameworks/JavaEOControl.framework/Resources/Java/ > javaeocontrol.jar > WOROOT/Library/Frameworks/JavaEOAccess.framework/Resources/Java/ > javaeoaccess.jar > WOROOT/Library/Frameworks/JavaWebObjects.framework/Resources/Java/ > javawebobjects.jar > WOROOT/Library/Frameworks/JavaWOExtensions.framework/Resources/Java/ > JavaWOExtensions.jar > WOROOT/Library/Frameworks/JavaXML.framework/Resources/Java/javaxml.jar > WOROOT/Library/Frameworks/JavaJDBCAdaptor.framework/Resources/Java/ > javajdbcadaptor.jar > HOMEROOT/Library/Java > LOCALROOT/Library/Java > WOROOT/Library/Java > /Network/Library/Java > WOROOT/Library/Frameworks/JavaVM.framework/Classes/classes.jar > WOROOT/Library/Frameworks/JavaVM.framework/Classes/ui.jar > > How can I make the LOCALROOT items appear above the WOROOT items > without manually editing this file each time? I know this file is > automatically generated but I can't seem to figure out how it > decides the orders. > > Thanks! > > -Stirling > > _______________________________________________ > WebObjects-dev mailing list > WebObjects-dev@omnigroup.com > http://www.omnigroup.com/mailman/listinfo/webobjects-dev -- __ Jerry W. Walker, WebObjects Developer/Instructor for High Performance Industrial Strength Internet Enabled Systems jerrywwalker@gmail.com 203 278-4085 office From tech-talk at foraker.com Thu Feb 1 08:49:02 2007 From: tech-talk at foraker.com (Stirling Olson) Date: Thu Feb 1 08:49:21 2007 Subject: SOLVED - Re: MacOSClassPath.txt In-Reply-To: <6D76660F-CA8E-4139-813C-B1948352A65C@gmail.com> References: <6FAE9AA9-BA57-4E8C-B910-A9812B369EA5@foraker.com> <6D76660F-CA8E-4139-813C-B1948352A65C@gmail.com> Message-ID: <3F132A1C-3E04-490E-94EC-EFA97B148642@foraker.com> Jerry, Yes, I should have mentioned that I am using XCode. This was exactly what I needed. Thanks! -Stirling On Feb 1, 2007, at 5:59 AM, Jerry W. Walker wrote: > Hi, Stirling, > > I'm presuming that you're using Xcode; if not, please ignore this > message. It's been a while since I've done this, but IIRC, > > * Select "Application Server" in your Active Target popdown menu > at the top left of your Xcode window (and don't forget to change > this back to your setting when you're done). > > * Choose the Project->Edit Active Target 'Application Server' > menu item which will open a target editing window. > > * From the "Summary" column on the left of this window, select > Build Phases->Link Binary With Libraries which should display a > list of your frameworks in the edit pane of this window. > > Note that the frameworks listed there correspond in name and order > to the entries from 7th line on down of the listing that you > included in your email. > > * Rearrange these frameworks in the editing pane into any order > that you desire by dragging and dropping them within the editing pane. > > * Set your Active Target popdown menu back to the name of your > project > > * Clean and rebuild your app and your classpath settings should > be rearranged accordingly. > > As I said, it's been a while since I've done this, so if the above > doesn't work, ask again. > > Regards, > Jerry > > On Feb 1, 2007, at 2:41 AM, Stirling Olson wrote: > >> Does anyone know how to influence the order in this file? I am >> getting: >> >> # JVM == java >> # JVMOptions == >> # JDB == jdb >> # JDBOptions == >> # ApplicationClass == Application >> APPROOT/Resources/Java/spiadmin.jar >> WOROOT/Library/Frameworks/JavaFoundation.framework/Resources/Java/ >> javafoundation.jar >> WOROOT/Library/Frameworks/JavaEOControl.framework/Resources/Java/ >> javaeocontrol.jar >> WOROOT/Library/Frameworks/JavaEOAccess.framework/Resources/Java/ >> javaeoaccess.jar >> WOROOT/Library/Frameworks/JavaWebObjects.framework/Resources/Java/ >> javawebobjects.jar >> WOROOT/Library/Frameworks/JavaWOExtensions.framework/Resources/ >> Java/JavaWOExtensions.jar >> WOROOT/Library/Frameworks/JavaXML.framework/Resources/Java/ >> javaxml.jar >> WOROOT/Library/Frameworks/JavaJDBCAdaptor.framework/Resources/Java/ >> javajdbcadaptor.jar >> LOCALROOT/Library/Frameworks/ERExtensions.framework/Resources/Java/ >> ERExtensions.jar >> LOCALROOT/Library/Frameworks/ERExtensions.framework/Resources/Java/ >> src.jar >> LOCALROOT/Library/Frameworks/ERJavaMail.framework/Resources/Java/ >> ERJavaMail.jar >> LOCALROOT/Library/Frameworks/ERJavaMail.framework/Resources/Java/ >> activation-1.0.2.jar >> LOCALROOT/Library/Frameworks/ERJavaMail.framework/Resources/Java/ >> jakarta-oro-2.0.6.jar >> LOCALROOT/Library/Frameworks/ERJavaMail.framework/Resources/Java/ >> mailapi.jar >> LOCALROOT/Library/Frameworks/ERJavaMail.framework/Resources/Java/ >> smtp.jar >> LOCALROOT/Library/Frameworks/ERJavaMail.framework/Resources/Java/ >> src.jar >> LOCALROOT/Library/Frameworks/frkCommon.framework/Resources/Java/ >> frkcommon.jar >> LOCALROOT/Library/Frameworks/PostgresqlPlugIn.framework/Resources/ >> Java/PostgresqlPlugIn.jar >> LOCALROOT/Library/Frameworks/PostgresqlPlugIn.framework/Resources/ >> Java/src.jar >> LOCALROOT/Library/Frameworks/SPIBase.framework/Resources/Java/ >> spibase.jar >> LOCALROOT/Library/Frameworks/ERJars.framework/Resources/Java/ >> icu4j_2_8.jar >> LOCALROOT/Library/Frameworks/ERJars.framework/Resources/Java/ >> icu4jdocs_2_8.jar >> LOCALROOT/Library/Frameworks/ERJars.framework/Resources/Java/ >> junit.jar >> LOCALROOT/Library/Frameworks/ERJars.framework/Resources/Java/ >> log4j-1.2.8.jar >> HOMEROOT/Library/Java >> LOCALROOT/Library/Java >> WOROOT/Library/Java >> /Network/Library/Java >> WOROOT/Library/Frameworks/JavaVM.framework/Classes/classes.jar >> WOROOT/Library/Frameworks/JavaVM.framework/Classes/ui.jar >> >> >> but want: >> >> # JVM == java >> # JVMOptions == >> # JDB == jdb >> # JDBOptions == >> # ApplicationClass == Application >> APPROOT/Resources/Java/spiadmin.jar >> LOCALROOT/Library/Frameworks/ERExtensions.framework/Resources/Java/ >> ERExtensions.jar >> LOCALROOT/Library/Frameworks/ERExtensions.framework/Resources/Java/ >> src.jar >> LOCALROOT/Library/Frameworks/ERJavaMail.framework/Resources/Java/ >> ERJavaMail.jar >> LOCALROOT/Library/Frameworks/ERJavaMail.framework/Resources/Java/ >> activation-1.0.2.jar >> LOCALROOT/Library/Frameworks/ERJavaMail.framework/Resources/Java/ >> jakarta-oro-2.0.6.jar >> LOCALROOT/Library/Frameworks/ERJavaMail.framework/Resources/Java/ >> mailapi.jar >> LOCALROOT/Library/Frameworks/ERJavaMail.framework/Resources/Java/ >> smtp.jar >> LOCALROOT/Library/Frameworks/ERJavaMail.framework/Resources/Java/ >> src.jar >> LOCALROOT/Library/Frameworks/frkCommon.framework/Resources/Java/ >> frkcommon.jar >> LOCALROOT/Library/Frameworks/PostgresqlPlugIn.framework/Resources/ >> Java/PostgresqlPlugIn.jar >> LOCALROOT/Library/Frameworks/PostgresqlPlugIn.framework/Resources/ >> Java/src.jar >> LOCALROOT/Library/Frameworks/SPIBase.framework/Resources/Java/ >> spibase.jar >> LOCALROOT/Library/Frameworks/ERJars.framework/Resources/Java/ >> icu4j_2_8.jar >> LOCALROOT/Library/Frameworks/ERJars.framework/Resources/Java/ >> icu4jdocs_2_8.jar >> LOCALROOT/Library/Frameworks/ERJars.framework/Resources/Java/ >> junit.jar >> LOCALROOT/Library/Frameworks/ERJars.framework/Resources/Java/ >> log4j-1.2.8.jar >> WOROOT/Library/Frameworks/JavaFoundation.framework/Resources/Java/ >> javafoundation.jar >> WOROOT/Library/Frameworks/JavaEOControl.framework/Resources/Java/ >> javaeocontrol.jar >> WOROOT/Library/Frameworks/JavaEOAccess.framework/Resources/Java/ >> javaeoaccess.jar >> WOROOT/Library/Frameworks/JavaWebObjects.framework/Resources/Java/ >> javawebobjects.jar >> WOROOT/Library/Frameworks/JavaWOExtensions.framework/Resources/ >> Java/JavaWOExtensions.jar >> WOROOT/Library/Frameworks/JavaXML.framework/Resources/Java/ >> javaxml.jar >> WOROOT/Library/Frameworks/JavaJDBCAdaptor.framework/Resources/Java/ >> javajdbcadaptor.jar >> HOMEROOT/Library/Java >> LOCALROOT/Library/Java >> WOROOT/Library/Java >> /Network/Library/Java >> WOROOT/Library/Frameworks/JavaVM.framework/Classes/classes.jar >> WOROOT/Library/Frameworks/JavaVM.framework/Classes/ui.jar >> >> How can I make the LOCALROOT items appear above the WOROOT items >> without manually editing this file each time? I know this file is >> automatically generated but I can't seem to figure out how it >> decides the orders. >> >> Thanks! >> >> -Stirling >> >> _______________________________________________ >> WebObjects-dev mailing list >> WebObjects-dev@omnigroup.com >> http://www.omnigroup.com/mailman/listinfo/webobjects-dev > > > -- > __ Jerry W. Walker, > WebObjects Developer/Instructor for High Performance Industrial > Strength Internet Enabled Systems > > jerrywwalker@gmail.com > 203 278-4085 office > > > From fred.wells at cappsdigital.com Fri Feb 2 08:49:06 2007 From: fred.wells at cappsdigital.com (fred.wells@cappsdigital.com) Date: Fri Feb 2 09:14:08 2007 Subject: NullPointer on EOAdapter.fetchedValueForValue Message-ID: Does anyone have suggestions as to how to track down this problem: [2007-02-02 10:23:28 CST] java.lang.NullPointerException at com.webobjects.eoaccess.EOAdaptor.fetchedValueForValue(EOAdaptor.java:819) at com.webobjects.jdbcadaptor.JDBCAdaptor.fetchedValueForValue(JDBCAdaptor.java:577) at com.webobjects.eoaccess.EODatabaseContext.processSnapshotForDatabaseOperation(EODatabaseContext.java: It's happening on a saveChanges(); I can't seem to find what is tripping it up I found a reference to this here: http://www.wodeveloper.com/omniLists/webobjects-dev/2002/November/msg00445.html which suggested printing out the editingContexts to make sure that everything is in the same editingContext. I did that and verified that it is all in the same editingContext. I have tried looking at the SQL through "-EOAdaptorDebugEnabled" and that also has shown nothing out of the ordinary. I have hit a brick wall with this. Frederick Wells Capps Consulting 35 W Wacker Chicago, Il 60601 312.220.3056 -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman/archive/webobjects-dev/attachments/20070202/5c06234c/attachment.html From ginokris at mac.com Fri Feb 2 09:49:55 2007 From: ginokris at mac.com (Gino Pacitti) Date: Fri Feb 2 09:50:25 2007 Subject: Project Wonder Validity Framework Message-ID: <878CEA38-2BC5-467F-8F89-9BE2B25842F2@mac.com> Hi all Can anyone help with setting up a rule for a field using the Validity Modeler. I can understand where I need to add a dictionary parameter to the rule and it will check for that against the input. But what about where I need to check against a empty input field - I am not sure what parameters need to be set up in the rule. Any help appreciated. Gino From bigdog at wirehose.com Fri Feb 2 09:54:14 2007 From: bigdog at wirehose.com (Gary Teter) Date: Fri Feb 2 09:59:26 2007 Subject: NullPointer on EOAdapter.fetchedValueForValue In-Reply-To: References: Message-ID: <325DCA68-3B20-4669-A27B-934D2A66E8C7@wirehose.com> Couple wild guesses: Something's wrong with your eomodel, one of the attributes isn't properly set up. You're using change notification or some other method of inserting snapshots into the database context, and the snapshot includes attribute keys that aren't in the eomodel, or vice-versa. (This can happen when you have multiple instances with change notification and one has an out-of-date eomodel.) On Feb 2, 2007, at 8:49 AM, fred.wells@cappsdigital.com wrote: > > Does anyone have suggestions as to how to track down this problem: > > [2007-02-02 10:23:28 CST] > java.lang.NullPointerException > at com.webobjects.eoaccess.EOAdaptor.fetchedValueForValue > (EOAdaptor.java:819) > at > com.webobjects.jdbcadaptor.JDBCAdaptor.fetchedValueForValue > (JDBCAdaptor.java:577) > at > com.webobjects.eoaccess.EODatabaseContext.processSnapshotForDatabaseOp > eration(EODatabaseContext.java: > > It's happening on a saveChanges(); > > I can't seem to find what is tripping it up I found a reference to > this here: > http://www.wodeveloper.com/omniLists/webobjects-dev/2002/November/ > msg00445.html > > which suggested printing out the editingContexts to make sure that > everything is in the same editingContext. I did that and verified > that it is all in the same editingContext. I have tried looking at > the SQL through "-EOAdaptorDebugEnabled" and that also has shown > nothing out of the ordinary. I have hit a brick wall with this. > > Frederick Wells > Capps Consulting > 35 W Wacker > Chicago, Il 60601 > 312.220.3056 > _______________________________________________ > WebObjects-dev mailing list > WebObjects-dev@omnigroup.com > http://www.omnigroup.com/mailman/listinfo/webobjects-dev -- WireHose: Smart metadata and personalization for WebObjects. http://wirehose.com/ From fred.wells at cappsdigital.com Fri Feb 2 15:18:32 2007 From: fred.wells at cappsdigital.com (fred.wells@cappsdigital.com) Date: Fri Feb 2 15:18:40 2007 Subject: NullPointer on EOAdapter.fetchedValueForValue In-Reply-To: <325DCA68-3B20-4669-A27B-934D2A66E8C7@wirehose.com> Message-ID: You werw right it was my eomodel. One of our many-to-many join tables wasn't set up properly. Thanks. Frederick Wells Capps Consulting 35 W Wacker Chicago, Il 60601 312.220.3056 Gary Teter 02/02/07 11:54 AM To fred.wells@cappsdigital.com cc webobjects-dev@omnigroup.com Subject Re: NullPointer on EOAdapter.fetchedValueForValue Couple wild guesses: Something's wrong with your eomodel, one of the attributes isn't properly set up. You're using change notification or some other method of inserting snapshots into the database context, and the snapshot includes attribute keys that aren't in the eomodel, or vice-versa. (This can happen when you have multiple instances with change notification and one has an out-of-date eomodel.) On Feb 2, 2007, at 8:49 AM, fred.wells@cappsdigital.com wrote: > > Does anyone have suggestions as to how to track down this problem: > > [2007-02-02 10:23:28 CST] > java.lang.NullPointerException > at com.webobjects.eoaccess.EOAdaptor.fetchedValueForValue > (EOAdaptor.java:819) > at > com.webobjects.jdbcadaptor.JDBCAdaptor.fetchedValueForValue > (JDBCAdaptor.java:577) > at > com.webobjects.eoaccess.EODatabaseContext.processSnapshotForDatabaseOp > eration(EODatabaseContext.java: > > It's happening on a saveChanges(); > > I can't seem to find what is tripping it up I found a reference to > this here: > http://www.wodeveloper.com/omniLists/webobjects-dev/2002/November/ > msg00445.html > > which suggested printing out the editingContexts to make sure that > everything is in the same editingContext. I did that and verified > that it is all in the same editingContext. I have tried looking at > the SQL through "-EOAdaptorDebugEnabled" and that also has shown > nothing out of the ordinary. I have hit a brick wall with this. > > Frederick Wells > Capps Consulting > 35 W Wacker > Chicago, Il 60601 > 312.220.3056 > _______________________________________________ > WebObjects-dev mailing list > WebObjects-dev@omnigroup.com > http://www.omnigroup.com/mailman/listinfo/webobjects-dev -- WireHose: Smart metadata and personalization for WebObjects. http://wirehose.com/ -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman/archive/webobjects-dev/attachments/20070202/dcd418ca/attachment.html From msacket at gammastream.com Fri Feb 2 16:48:46 2007 From: msacket at gammastream.com (Michael Sacket) Date: Fri Feb 2 17:49:02 2007 Subject: Project Wonder Validity Framework In-Reply-To: <878CEA38-2BC5-467F-8F89-9BE2B25842F2@mac.com> References: <878CEA38-2BC5-467F-8F89-9BE2B25842F2@mac.com> Message-ID: <20E68D65-D230-4628-AD8B-9AB33CE15173@gammastream.com> Hi Gino, You don't need to provide any parameters to the dictionary to check for NULL values, instead, do the following: 1) Make the first rule of your attribute the null check. 2) Name is something like 'Check for NULL' 3) Set the rule type/class name to com.gammastream.validity.GSVStringMethods 4) Set the Method Name to: 'isStringEmpty' 5) Check the Negate box 6) Check the Fail If NULL box 7) Check Stop if Fails box That should do it. Michael On Feb 2, 2007, at 11:49 AM, Gino Pacitti wrote: > Hi all > > Can anyone help with setting up a rule for a field using the > Validity Modeler. > > I can understand where I need to add a dictionary parameter to the > rule and it will check for that against the input. > > But what about where I need to check against a empty input field - > I am not sure what parameters need to be set up in the rule. > > > Any help appreciated. > > Gino > _______________________________________________ > WebObjects-dev mailing list > WebObjects-dev@omnigroup.com > http://www.omnigroup.com/mailman/listinfo/webobjects-dev From bgarnett at blueyonder.co.uk Sat Feb 3 06:18:31 2007 From: bgarnett at blueyonder.co.uk (WILLIAM GARNETT) Date: Sat Feb 3 06:18:31 2007 Subject: WOComponent .api files Message-ID: <45C499B7.000009.05312@BILL> Hello everyone; A recent disaster required me to re-generate my project. I started a new project and added in all the WOCompents - but this process did not generate the corresponding .api files. It all seems to work fine, but sporadically I have some mysterious crashes in deployment mode. My question is: Could these crashes be due to the fact that the .api files are not there? Are they essential? If so, do I have to generate the .api's manually? Or is there a tool that will build them automatically? Thanking you in advance for your replies, Cheers, Bill. From mschrag at mdimension.com Sat Feb 3 06:53:51 2007 From: mschrag at mdimension.com (Mike Schrag) Date: Sat Feb 3 06:54:21 2007 Subject: WOComponent .api files In-Reply-To: <45C499B7.000009.05312@BILL> References: <45C499B7.000009.05312@BILL> Message-ID: <4E07CACD-7BC6-4B38-9F4E-1647311FCD5C@mdimension.com> .api files are used only by development environments to provide things like code completion, etc. They are not used at all in deployment, so that's not your problem. It's also not really possible to autogenerate .api files because the point of them is to define things that an IDE is not able to figure out on its own. For instance, if you have a dynamic element, it's impossible for an IDE to know what the bindings are for it. ms On Feb 3, 2007, at 9:18 AM, WILLIAM GARNETT wrote: > Hello everyone; > > > > A recent disaster required me to re-generate my project. > > I started a new project and added in all the WOCompents - but this > process > did not generate the corresponding .api files. > > It all seems to work fine, but sporadically I have some mysterious > crashes > in deployment mode. > > > > My question is: Could these crashes be due to the fact that > the .api files > are not there? Are they essential? > > > > If so, do I have to generate the .api's manually? Or is there a > tool that > will build them automatically? > > > > Thanking you in advance for your replies, > > > > Cheers, > > Bill. > > > _______________________________________________ > WebObjects-dev mailing list > WebObjects-dev@omnigroup.com > http://www.omnigroup.com/mailman/listinfo/webobjects-dev From anders_peterson at optimatika.se Sat Feb 3 07:49:08 2007 From: anders_peterson at optimatika.se (Anders Peterson) Date: Sat Feb 3 07:53:51 2007 Subject: If it aint broken , don't fix it! Message-ID: Hi, I passed by the office today and caused a problem... There is a test server running Windows XP Professional with Java 5 and WO 5.2.4 installed. The deployed WO application is built on Mac using WOLips and WebObjects 5.3 and built/deployed with embedded frameworks. Until today everything worked just fine. When I logged in to the test server today I was informed about available updates to both Windows XP (including a new version of IE) and Java (update 10). For some reason I accepted to install these, and now the WebObjects application that was already installed and running wont function. It seems the application throws an java.io.UnsupportedEncodingException: NSMacOSRomanStringEncoding whenever it should display anything in a browser. It seems to function ok as long as it doesn't have to show a gui. I'm guessing the problem is the Java update, but before I start un/reinstalling I'd like to know if anyone have experienced a similar problem? /Anders INFO - Problem: com.webobjects.foundation.NSForwardException [java.io.UnsupportedEncodingException] NSMacOSRomanStringEncoding INFO - INFO - com.webobjects.foundation.NSForwardException for java.io.UnsupportedEncodingException: NSMacOSRomanStringEncoding at sun.io.Converters.getConverterClass(Unknown Source) at sun.io.Converters.newConverter(Unknown Source) at sun.io.ByteToCharConverter.getConverter(Unknown Source) at java.lang.StringCoding.decode(Unknown Source) at java.lang.String.(Unknown Source) at java.lang.String.(Unknown Source) at com.webobjects.appserver._private.WOComponentDefinition.readWoDeclaration(WOComponentDefinition.java:340) at com.webobjects.appserver._private.WOComponentDefinition.template(WOComponentDefinition.java:279) at com.webobjects.appserver.WOComponent.templateWithName(WOComponent.java:597) at com.webobjects.appserver.WOComponent.template(WOComponent.java:507) at com.webobjects.appserver.WOComponent.appendToResponse(WOComponent.java:982) at com.webobjects.appserver.WOSession.appendToResponse(WOSession.java:1200) at er.extensions.ERXSession.appendToResponse(ERXSession.java:528) at com.webobjects.appserver.WOApplication.appendToResponse(WOApplication.java:1418) at er.extensions.ERXApplication.appendToResponse(ERXApplication.java:968) at com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWithPreparedPage(WOComponentRequestHandler.java:230) at com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWithPreparedSession(WOComponentRequestHandler.java:287) at com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWithPreparedApplication(WOComponentRequestHandler.java:322) at com.webobjects.appserver._private.WOComponentRequestHandler._handleRequest(WOComponentRequestHandler.java:358) at com.webobjects.appserver._private.WOComponentRequestHandler.handleRequest(WOComponentRequestHandler.java:435) at com.webobjects.appserver.WOApplication.dispatchRequest(WOApplication.java:1306) at er.extensions.ERXApplication.dispatchRequest(ERXApplication.java:1001) at com.webobjects.appserver._private.WOWorkerThread.runOnce(WOWorkerThread.java:173) at com.webobjects.appserver._private.WOWorkerThread.run(WOWorkerThread.java:254) at java.lang.Thread.run(Unknown Source) From anders_peterson at optimatika.se Sat Feb 3 07:58:08 2007 From: anders_peterson at optimatika.se (Anders Peterson) Date: Sat Feb 3 08:00:10 2007 Subject: If it aint broken , don't fix it! In-Reply-To: References: Message-ID: <45C4B110.4090108@optimatika.se> Accessing Monitor doesn't work either. I get this: Application: JavaMonitor Error: java.lang.IllegalStateException exception Reason: java.lang.IllegalStateException: An Exception occurred while generating the Exception page 'WOExceptionPage'. This is most likely due to an error in 'WOExceptionPage' itself or WebObjects encountered an uncaught exception while creating a Session object. Below are the logs of the original Exception which occured in Application, then the later Exception in WOExceptionPage. Original Exception: java.io.UnsupportedEncodingException: NSMacOSRomanStringEncoding WOExceptionPage Exception: com.webobjects.foundation.NSForwardException [java.io.UnsupportedEncodingException] NSMacOSRomanStringEncoding Anders Peterson wrote: > Hi, > > I passed by the office today and caused a problem... > > There is a test server running Windows XP Professional with Java 5 and > WO 5.2.4 installed. The deployed WO application is built on Mac using > WOLips and WebObjects 5.3 and built/deployed with embedded frameworks. > Until today everything worked just fine. > > When I logged in to the test server today I was informed about available > updates to both Windows XP (including a new version of IE) and Java > (update 10). For some reason I accepted to install these, and now the > WebObjects application that was already installed and running wont > function. It seems the application throws an > java.io.UnsupportedEncodingException: NSMacOSRomanStringEncoding > whenever it should display anything in a browser. It seems to function > ok as long as it doesn't have to show a gui. > > I'm guessing the problem is the Java update, but before I start > un/reinstalling I'd like to know if anyone have experienced a similar > problem? > > /Anders > > INFO - Problem: com.webobjects.foundation.NSForwardException > [java.io.UnsupportedEncodingException] NSMacOSRomanStringEncoding > > INFO - > > INFO - com.webobjects.foundation.NSForwardException for > java.io.UnsupportedEncodingException: NSMacOSRomanStringEncoding > > at sun.io.Converters.getConverterClass(Unknown Source) > > at sun.io.Converters.newConverter(Unknown Source) > > at sun.io.ByteToCharConverter.getConverter(Unknown Source) > > at java.lang.StringCoding.decode(Unknown Source) > > at java.lang.String.(Unknown Source) > > at java.lang.String.(Unknown Source) > > at > com.webobjects.appserver._private.WOComponentDefinition.readWoDeclaration(WOComponentDefinition.java:340) > > > at > com.webobjects.appserver._private.WOComponentDefinition.template(WOComponentDefinition.java:279) > > > at > com.webobjects.appserver.WOComponent.templateWithName(WOComponent.java:597) > > at com.webobjects.appserver.WOComponent.template(WOComponent.java:507) > > at > com.webobjects.appserver.WOComponent.appendToResponse(WOComponent.java:982) > > at > com.webobjects.appserver.WOSession.appendToResponse(WOSession.java:1200) > > at er.extensions.ERXSession.appendToResponse(ERXSession.java:528) > > at > com.webobjects.appserver.WOApplication.appendToResponse(WOApplication.java:1418) > > > at > er.extensions.ERXApplication.appendToResponse(ERXApplication.java:968) > > at > com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWithPreparedPage(WOComponentRequestHandler.java:230) > > > at > com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWithPreparedSession(WOComponentRequestHandler.java:287) > > > at > com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWithPreparedApplication(WOComponentRequestHandler.java:322) > > > at > com.webobjects.appserver._private.WOComponentRequestHandler._handleRequest(WOComponentRequestHandler.java:358) > > > at > com.webobjects.appserver._private.WOComponentRequestHandler.handleRequest(WOComponentRequestHandler.java:435) > > > at > com.webobjects.appserver.WOApplication.dispatchRequest(WOApplication.java:1306) > > > at > er.extensions.ERXApplication.dispatchRequest(ERXApplication.java:1001) > > at > com.webobjects.appserver._private.WOWorkerThread.runOnce(WOWorkerThread.java:173) > > > at > com.webobjects.appserver._private.WOWorkerThread.run(WOWorkerThread.java:254) > > > at java.lang.Thread.run(Unknown Source) From anders_peterson at optimatika.se Sat Feb 3 08:27:54 2007 From: anders_peterson at optimatika.se (Anders Peterson) Date: Sat Feb 3 08:27:59 2007 Subject: If it aint broken , don't fix it! In-Reply-To: <45C4B110.4090108@optimatika.se> References: <45C4B110.4090108@optimatika.se> Message-ID: <45C4B80A.20809@optimatika.se> Reverted back from Java 5 update 10 to update 8 that I had before and everything works just fine again. /Anders Anders Peterson wrote: > Accessing Monitor doesn't work either. I get this: > > > Application: JavaMonitor > > Error: java.lang.IllegalStateException exception > > Reason: java.lang.IllegalStateException: An Exception occurred while > generating the Exception page 'WOExceptionPage'. This is most likely due > to an error in 'WOExceptionPage' itself or WebObjects encountered an > uncaught exception while creating a Session object. > > Below are the logs of the original Exception which occured in > Application, then the later Exception in WOExceptionPage. > > Original Exception: java.io.UnsupportedEncodingException: > NSMacOSRomanStringEncoding > > WOExceptionPage Exception: com.webobjects.foundation.NSForwardException > [java.io.UnsupportedEncodingException] NSMacOSRomanStringEncoding > > > Anders Peterson wrote: >> Hi, >> >> I passed by the office today and caused a problem... >> >> There is a test server running Windows XP Professional with Java 5 and >> WO 5.2.4 installed. The deployed WO application is built on Mac using >> WOLips and WebObjects 5.3 and built/deployed with embedded frameworks. >> Until today everything worked just fine. >> >> When I logged in to the test server today I was informed about >> available updates to both Windows XP (including a new version of IE) >> and Java (update 10). For some reason I accepted to install these, and >> now the WebObjects application that was already installed and running >> wont function. It seems the application throws an >> java.io.UnsupportedEncodingException: NSMacOSRomanStringEncoding >> whenever it should display anything in a browser. It seems to function >> ok as long as it doesn't have to show a gui. >> >> I'm guessing the problem is the Java update, but before I start >> un/reinstalling I'd like to know if anyone have experienced a similar >> problem? >> >> /Anders >> >> INFO - Problem: com.webobjects.foundation.NSForwardException >> [java.io.UnsupportedEncodingException] NSMacOSRomanStringEncoding >> >> INFO - >> >> INFO - com.webobjects.foundation.NSForwardException for >> java.io.UnsupportedEncodingException: NSMacOSRomanStringEncoding >> >> at sun.io.Converters.getConverterClass(Unknown Source) >> >> at sun.io.Converters.newConverter(Unknown Source) >> >> at sun.io.ByteToCharConverter.getConverter(Unknown Source) >> >> at java.lang.StringCoding.decode(Unknown Source) >> >> at java.lang.String.(Unknown Source) >> >> at java.lang.String.(Unknown Source) >> >> at >> com.webobjects.appserver._private.WOComponentDefinition.readWoDeclaration(WOComponentDefinition.java:340) >> >> >> at >> com.webobjects.appserver._private.WOComponentDefinition.template(WOComponentDefinition.java:279) >> >> >> at >> com.webobjects.appserver.WOComponent.templateWithName(WOComponent.java:597) >> >> >> at >> com.webobjects.appserver.WOComponent.template(WOComponent.java:507) >> >> at >> com.webobjects.appserver.WOComponent.appendToResponse(WOComponent.java:982) >> >> >> at >> com.webobjects.appserver.WOSession.appendToResponse(WOSession.java:1200) >> >> at er.extensions.ERXSession.appendToResponse(ERXSession.java:528) >> >> at >> com.webobjects.appserver.WOApplication.appendToResponse(WOApplication.java:1418) >> >> >> at >> er.extensions.ERXApplication.appendToResponse(ERXApplication.java:968) >> >> at >> com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWithPreparedPage(WOComponentRequestHandler.java:230) >> >> >> at >> com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWithPreparedSession(WOComponentRequestHandler.java:287) >> >> >> at >> com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWithPreparedApplication(WOComponentRequestHandler.java:322) >> >> >> at >> com.webobjects.appserver._private.WOComponentRequestHandler._handleRequest(WOComponentRequestHandler.java:358) >> >> >> at >> com.webobjects.appserver._private.WOComponentRequestHandler.handleRequest(WOComponentRequestHandler.java:435) >> >> >> at >> com.webobjects.appserver.WOApplication.dispatchRequest(WOApplication.java:1306) >> >> >> at >> er.extensions.ERXApplication.dispatchRequest(ERXApplication.java:1001) >> >> at >> com.webobjects.appserver._private.WOWorkerThread.runOnce(WOWorkerThread.java:173) >> >> >> at >> com.webobjects.appserver._private.WOWorkerThread.run(WOWorkerThread.java:254) >> >> >> at java.lang.Thread.run(Unknown Source) From anders_peterson at optimatika.se Sat Feb 3 08:27:54 2007 From: anders_peterson at optimatika.se (Anders Peterson) Date: Sat Feb 3 08:28:24 2007 Subject: If it aint broken , don't fix it! In-Reply-To: <45C4B110.4090108@optimatika.se> References: <45C4B110.4090108@optimatika.se> Message-ID: <45C4B80A.20809@optimatika.se> Reverted back from Java 5 update 10 to update 8 that I had before and everything works just fine again. /Anders Anders Peterson wrote: > Accessing Monitor doesn't work either. I get this: > > > Application: JavaMonitor > > Error: java.lang.IllegalStateException exception > > Reason: java.lang.IllegalStateException: An Exception occurred while > generating the Exception page 'WOExceptionPage'. This is most likely due > to an error in 'WOExceptionPage' itself or WebObjects encountered an > uncaught exception while creating a Session object. > > Below are the logs of the original Exception which occured in > Application, then the later Exception in WOExceptionPage. > > Original Exception: java.io.UnsupportedEncodingException: > NSMacOSRomanStringEncoding > > WOExceptionPage Exception: com.webobjects.foundation.NSForwardException > [java.io.UnsupportedEncodingException] NSMacOSRomanStringEncoding > > > Anders Peterson wrote: >> Hi, >> >> I passed by the office today and caused a problem... >> >> There is a test server running Windows XP Professional with Java 5 and >> WO 5.2.4 installed. The deployed WO application is built on Mac using >> WOLips and WebObjects 5.3 and built/deployed with embedded frameworks. >> Until today everything worked just fine. >> >> When I logged in to the test server today I was informed about >> available updates to both Windows XP (including a new version of IE) >> and Java (update 10). For some reason I accepted to install these, and >> now the WebObjects application that was already installed and running >> wont function. It seems the application throws an >> java.io.UnsupportedEncodingException: NSMacOSRomanStringEncoding >> whenever it should display anything in a browser. It seems to function >> ok as long as it doesn't have to show a gui. >> >> I'm guessing the problem is the Java update, but before I start >> un/reinstalling I'd like to know if anyone have experienced a similar >> problem? >> >> /Anders >> >> INFO - Problem: com.webobjects.foundation.NSForwardException >> [java.io.UnsupportedEncodingException] NSMacOSRomanStringEncoding >> >> INFO - >> >> INFO - com.webobjects.foundation.NSForwardException for >> java.io.UnsupportedEncodingException: NSMacOSRomanStringEncoding >> >> at sun.io.Converters.getConverterClass(Unknown Source) >> >> at sun.io.Converters.newConverter(Unknown Source) >> >> at sun.io.ByteToCharConverter.getConverter(Unknown Source) >> >> at java.lang.StringCoding.decode(Unknown Source) >> >> at java.lang.String.(Unknown Source) >> >> at java.lang.String.(Unknown Source) >> >> at >> com.webobjects.appserver._private.WOComponentDefinition.readWoDeclaration(WOComponentDefinition.java:340) >> >> >> at >> com.webobjects.appserver._private.WOComponentDefinition.template(WOComponentDefinition.java:279) >> >> >> at >> com.webobjects.appserver.WOComponent.templateWithName(WOComponent.java:597) >> >> >> at >> com.webobjects.appserver.WOComponent.template(WOComponent.java:507) >> >> at >> com.webobjects.appserver.WOComponent.appendToResponse(WOComponent.java:982) >> >> >> at >> com.webobjects.appserver.WOSession.appendToResponse(WOSession.java:1200) >> >> at er.extensions.ERXSession.appendToResponse(ERXSession.java:528) >> >> at >> com.webobjects.appserver.WOApplication.appendToResponse(WOApplication.java:1418) >> >> >> at >> er.extensions.ERXApplication.appendToResponse(ERXApplication.java:968) >> >> at >> com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWithPreparedPage(WOComponentRequestHandler.java:230) >> >> >> at >> com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWithPreparedSession(WOComponentRequestHandler.java:287) >> >> >> at >> com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWithPreparedApplication(WOComponentRequestHandler.java:322) >> >> >> at >> com.webobjects.appserver._private.WOComponentRequestHandler._handleRequest(WOComponentRequestHandler.java:358) >> >> >> at >> com.webobjects.appserver._private.WOComponentRequestHandler.handleRequest(WOComponentRequestHandler.java:435) >> >> >> at >> com.webobjects.appserver.WOApplication.dispatchRequest(WOApplication.java:1306) >> >> >> at >> er.extensions.ERXApplication.dispatchRequest(ERXApplication.java:1001) >> >> at >> com.webobjects.appserver._private.WOWorkerThread.runOnce(WOWorkerThread.java:173) >> >> >> at >> com.webobjects.appserver._private.WOWorkerThread.run(WOWorkerThread.java:254) >> >> >> at java.lang.Thread.run(Unknown Source) From anders_peterson at optimatika.se Sat Feb 3 07:58:08 2007 From: anders_peterson at optimatika.se (Anders Peterson) Date: Sat Feb 3 08:29:43 2007 Subject: If it aint broken , don't fix it! In-Reply-To: References: Message-ID: <45C4B110.4090108@optimatika.se> Accessing Monitor doesn't work either. I get this: Application: JavaMonitor Error: java.lang.IllegalStateException exception Reason: java.lang.IllegalStateException: An Exception occurred while generating the Exception page 'WOExceptionPage'. This is most likely due to an error in 'WOExceptionPage' itself or WebObjects encountered an uncaught exception while creating a Session object. Below are the logs of the original Exception which occured in Application, then the later Exception in WOExceptionPage. Original Exception: java.io.UnsupportedEncodingException: NSMacOSRomanStringEncoding WOExceptionPage Exception: com.webobjects.foundation.NSForwardException [java.io.UnsupportedEncodingException] NSMacOSRomanStringEncoding Anders Peterson wrote: > Hi, > > I passed by the office today and caused a problem... > > There is a test server running Windows XP Professional with Java 5 and > WO 5.2.4 installed. The deployed WO application is built on Mac using > WOLips and WebObjects 5.3 and built/deployed with embedded frameworks. > Until today everything worked just fine. > > When I logged in to the test server today I was informed about available > updates to both Windows XP (including a new version of IE) and Java > (update 10). For some reason I accepted to install these, and now the > WebObjects application that was already installed and running wont > function. It seems the application throws an > java.io.UnsupportedEncodingException: NSMacOSRomanStringEncoding > whenever it should display anything in a browser. It seems to function > ok as long as it doesn't have to show a gui. > > I'm guessing the problem is the Java update, but before I start > un/reinstalling I'd like to know if anyone have experienced a similar > problem? > > /Anders > > INFO - Problem: com.webobjects.foundation.NSForwardException > [java.io.UnsupportedEncodingException] NSMacOSRomanStringEncoding > > INFO - > > INFO - com.webobjects.foundation.NSForwardException for > java.io.UnsupportedEncodingException: NSMacOSRomanStringEncoding > > at sun.io.Converters.getConverterClass(Unknown Source) > > at sun.io.Converters.newConverter(Unknown Source) > > at sun.io.ByteToCharConverter.getConverter(Unknown Source) > > at java.lang.StringCoding.decode(Unknown Source) > > at java.lang.String.(Unknown Source) > > at java.lang.String.(Unknown Source) > > at > com.webobjects.appserver._private.WOComponentDefinition.readWoDeclaration(WOComponentDefinition.java:340) > > > at > com.webobjects.appserver._private.WOComponentDefinition.template(WOComponentDefinition.java:279) > > > at > com.webobjects.appserver.WOComponent.templateWithName(WOComponent.java:597) > > at com.webobjects.appserver.WOComponent.template(WOComponent.java:507) > > at > com.webobjects.appserver.WOComponent.appendToResponse(WOComponent.java:982) > > at > com.webobjects.appserver.WOSession.appendToResponse(WOSession.java:1200) > > at er.extensions.ERXSession.appendToResponse(ERXSession.java:528) > > at > com.webobjects.appserver.WOApplication.appendToResponse(WOApplication.java:1418) > > > at > er.extensions.ERXApplication.appendToResponse(ERXApplication.java:968) > > at > com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWithPreparedPage(WOComponentRequestHandler.java:230) > > > at > com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWithPreparedSession(WOComponentRequestHandler.java:287) > > > at > com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWithPreparedApplication(WOComponentRequestHandler.java:322) > > > at > com.webobjects.appserver._private.WOComponentRequestHandler._handleRequest(WOComponentRequestHandler.java:358) > > > at > com.webobjects.appserver._private.WOComponentRequestHandler.handleRequest(WOComponentRequestHandler.java:435) > > > at > com.webobjects.appserver.WOApplication.dispatchRequest(WOApplication.java:1306) > > > at > er.extensions.ERXApplication.dispatchRequest(ERXApplication.java:1001) > > at > com.webobjects.appserver._private.WOWorkerThread.runOnce(WOWorkerThread.java:173) > > > at > com.webobjects.appserver._private.WOWorkerThread.run(WOWorkerThread.java:254) > > > at java.lang.Thread.run(Unknown Source) From jerrywwalker at gmail.com Sat Feb 3 08:59:27 2007 From: jerrywwalker at gmail.com (Jerry W. Walker) Date: Sat Feb 3 08:59:34 2007 Subject: WOComponent .api files In-Reply-To: <4E07CACD-7BC6-4B38-9F4E-1647311FCD5C@mdimension.com> References: <45C499B7.000009.05312@BILL> <4E07CACD-7BC6-4B38-9F4E-1647311FCD5C@mdimension.com> Message-ID: <2B258CF2-4A73-46F0-AAEF-9F4E6A1A95B4@gmail.com> Hi, William (and Mike), Actually, Mike is incorrect. There is a tool that can generate your .api files automatically. It's called WOBuilder. :-) To confirm this, simply open your project in Xcode, double click on the WOComponent to open WOBuilder and associate it with your project, and save the component again from within WOBuilder. You may have to make a change for WOBuilder to generate the .api file, but I think it will do so by simply re-saving. On the other hand, if you're using Xcode/WOBuilder, the fact that WOBuilder regenerated the .api file doesn't clue Xcode into this fact, so to see the new .api file in Xcode's Groups & Files listing, you will have to explicitly re-add it. It isn't often I get to correct Mike, and I relish the opportunities. However, overall, Mike is correct (as usual): * the .api file is not used (to my knowledge) during execution * it is impossible for WOBuilder to know what your API for any component really is, so it only autogenerates a minimal .api file as it does when you first create a WOComponent On the other hand, the API for most WOComponents is trivial if you're only using them for complete pages. It's when you start using subcomponents that they become very useful in helping WOBuilder (or any IDE that hopes to replace it) determine that a subcomponent is being used correctly (i.e. all of its required bindings are bound, its mutually exclusive bindings are not all bound, bindings with common domains have values selected from their domains, optional bindings are represented in the GetInfo panel, etc.). Having said all that, it seems that the real problem lies in your copying the components over. The .api files should still exist in your old project, they're just not normally contained within the WOComponent's directory. Like the .java class file for the component, they are external to it. So just copy the old .api files over from your old project and your WOComponents should retain all of their (development environment) advantages. Regards, Jerry On Feb 3, 2007, at 9:53 AM, Mike Schrag wrote: > .api files are used only by development environments to provide > things like code completion, etc. They are not used at all in > deployment, so that's not your problem. It's also not really > possible to autogenerate .api files because the point of them is to > define things that an IDE is not able to figure out on its own. > For instance, if you have a dynamic element, it's impossible for an > IDE to know what the bindings are for it. > > ms > > On Feb 3, 2007, at 9:18 AM, WILLIAM GARNETT wrote: > >> Hello everyone; >> >> >> >> A recent disaster required me to re-generate my project. >> >> I started a new project and added in all the WOCompents - but this >> process >> did not generate the corresponding .api files. >> >> It all seems to work fine, but sporadically I have some mysterious >> crashes >> in deployment mode. >> >> >> >> My question is: Could these crashes be due to the fact that >> the .api files >> are not there? Are they essential? >> >> >> >> If so, do I have to generate the .api's manually? Or is there a >> tool that >> will build them automatically? >> >> >> >> Thanking you in advance for your replies, >> >> >> >> Cheers, >> >> Bill. >> >> >> _______________________________________________ >> WebObjects-dev mailing list >> WebObjects-dev@omnigroup.com >> http://www.omnigroup.com/mailman/listinfo/webobjects-dev > > > _______________________________________________ > WebObjects-dev mailing list > WebObjects-dev@omnigroup.com > http://www.omnigroup.com/mailman/listinfo/webobjects-dev -- __ Jerry W. Walker, WebObjects Developer/Instructor for High Performance Industrial Strength Internet Enabled Systems jerrywwalker@gee-em-aye-eye-ell.com 203 278-4085 office From mschrag at mdimension.com Sat Feb 3 09:14:34 2007 From: mschrag at mdimension.com (Mike Schrag) Date: Sat Feb 3 09:15:03 2007 Subject: WOComponent .api files In-Reply-To: <2B258CF2-4A73-46F0-AAEF-9F4E6A1A95B4@gmail.com> References: <45C499B7.000009.05312@BILL> <4E07CACD-7BC6-4B38-9F4E-1647311FCD5C@mdimension.com> <2B258CF2-4A73-46F0-AAEF-9F4E6A1A95B4@gmail.com> Message-ID: <86B82F80-D540-4EDD-98DE-C14E8BBEAE62@mdimension.com> OK Jerry Walker -- the gauntlet is thrown :) What I should have said is "it's impossible to autogenerate api files that are particularly useful". Any WebObjects IDE worth its salt doesn't need API files for something that could be autogenerated. SOME WebObjects IDE's, for instance, can live introspect your components, and thus only need API files for things that couldn't be autogenerated. At least that's what I've heard ... :) ms On Feb 3, 2007, at 11:59 AM, Jerry W. Walker wrote: > Hi, William (and Mike), > > Actually, Mike is incorrect. There is a tool that can generate > your .api files automatically. It's called WOBuilder. :-) > > To confirm this, simply open your project in Xcode, double click on > the WOComponent to open WOBuilder and associate it with your > project, and save the component again from within WOBuilder. You > may have to make a change for WOBuilder to generate the .api file, > but I think it will do so by simply re-saving. On the other hand, > if you're using Xcode/WOBuilder, the fact that WOBuilder > regenerated the .api file doesn't clue Xcode into this fact, so to > see the new .api file in Xcode's Groups & Files listing, you will > have to explicitly re-add it. > > It isn't often I get to correct Mike, and I relish the > opportunities. However, overall, Mike is correct (as usual): > > * the .api file is not used (to my knowledge) during execution > > * it is impossible for WOBuilder to know what your API for any > component really is, so it only autogenerates a minimal .api file > as it does when you first create a WOComponent > > On the other hand, the API for most WOComponents is trivial if > you're only using them for complete pages. It's when you start > using subcomponents that they become very useful in helping > WOBuilder (or any IDE that hopes to replace it) determine that a > subcomponent is being used correctly (i.e. all of its required > bindings are bound, its mutually exclusive bindings are not all > bound, bindings with common domains have values selected from their > domains, optional bindings are represented in the GetInfo panel, > etc.). > > Having said all that, it seems that the real problem lies in your > copying the components over. The .api files should still exist in > your old project, they're just not normally contained within the > WOComponent's directory. Like the .java class file for the > component, they are external to it. So just copy the old .api files > over from your old project and your WOComponents should retain all > of their (development environment) advantages. > > Regards, > Jerry > > On Feb 3, 2007, at 9:53 AM, Mike Schrag wrote: > >> .api files are used only by development environments to provide >> things like code completion, etc. They are not used at all in >> deployment, so that's not your problem. It's also not really >> possible to autogenerate .api files because the point of them is >> to define things that an IDE is not able to figure out on its >> own. For instance, if you have a dynamic element, it's impossible >> for an IDE to know what the bindings are for it. >> >> ms >> >> On Feb 3, 2007, at 9:18 AM, WILLIAM GARNETT wrote: >> >>> Hello everyone; >>> >>> >>> >>> A recent disaster required me to re-generate my project. >>> >>> I started a new project and added in all the WOCompents - but >>> this process >>> did not generate the corresponding .api files. >>> >>> It all seems to work fine, but sporadically I have some >>> mysterious crashes >>> in deployment mode. >>> >>> >>> >>> My question is: Could these crashes be due to the fact that >>> the .api files >>> are not there? Are they essential? >>> >>> >>> >>> If so, do I have to generate the .api's manually? Or is there a >>> tool that >>> will build them automatically? >>> >>> >>> >>> Thanking you in advance for your replies, >>> >>> >>> >>> Cheers, >>> >>> Bill. >>> >>> >>> _______________________________________________ >>> WebObjects-dev mailing list >>> WebObjects-dev@omnigroup.com >>> http://www.omnigroup.com/mailman/listinfo/webobjects-dev >> >> >> _______________________________________________ >> WebObjects-dev mailing list >> WebObjects-dev@omnigroup.com >> http://www.omnigroup.com/mailman/listinfo/webobjects-dev > > > -- > __ Jerry W. Walker, > WebObjects Developer/Instructor for High Performance Industrial > Strength Internet Enabled Systems > > jerrywwalker@gee-em-aye-eye-ell.com > 203 278-4085 office > > > From ploiku at earthlink.net Sat Feb 3 10:38:59 2007 From: ploiku at earthlink.net (Hsu) Date: Sat Feb 3 10:38:18 2007 Subject: If it aint broken , don't fix it! In-Reply-To: References: Message-ID: <3E00B75C-C3CD-49DB-8455-39FD02E4E341@earthlink.net> Did you install the full JDK, or just the JRE? MacRoman support only exists in the JDK (or the JRE + "International" package of some sort). Karl On Feb 3, 2007, at 7:49 AM, Anders Peterson wrote: > Hi, > > I passed by the office today and caused a problem... > > There is a test server running Windows XP Professional with Java 5 > and WO 5.2.4 installed. The deployed WO application is built on Mac > using WOLips and WebObjects 5.3 and built/deployed with embedded > frameworks. Until today everything worked just fine. > > When I logged in to the test server today I was informed about > available updates to both Windows XP (including a new version of > IE) and Java (update 10). For some reason I accepted to install > these, and now the WebObjects application that was already > installed and running wont function. It seems the application > throws an java.io.UnsupportedEncodingException: > NSMacOSRomanStringEncoding > whenever it should display anything in a browser. It seems to > function ok as long as it doesn't have to show a gui. > > I'm guessing the problem is the Java update, but before I start un/ > reinstalling I'd like to know if anyone have experienced a similar > problem? > > /Anders > > INFO - Problem: com.webobjects.foundation.NSForwardException > [java.io.UnsupportedEncodingException] NSMacOSRomanStringEncoding > > INFO - > > INFO - com.webobjects.foundation.NSForwardException for > java.io.UnsupportedEncodingException: NSMacOSRomanStringEncoding > > at sun.io.Converters.getConverterClass(Unknown Source) > > at sun.io.Converters.newConverter(Unknown Source) > > at sun.io.ByteToCharConverter.getConverter(Unknown Source) > > at java.lang.StringCoding.decode(Unknown Source) > > at java.lang.String.(Unknown Source) > > at java.lang.String.(Unknown Source) > > at > com.webobjects.appserver._private.WOComponentDefinition.readWoDeclarat > ion(WOComponentDefinition.java:340) > > at com.webobjects.appserver._private.WOComponentDefinition.template > (WOComponentDefinition.java:279) > > at com.webobjects.appserver.WOComponent.templateWithName > (WOComponent.java:597) > > at com.webobjects.appserver.WOComponent.template(WOComponent.java: > 507) > > at com.webobjects.appserver.WOComponent.appendToResponse > (WOComponent.java:982) > > at com.webobjects.appserver.WOSession.appendToResponse > (WOSession.java:1200) > > at er.extensions.ERXSession.appendToResponse(ERXSession.java:528) > > at com.webobjects.appserver.WOApplication.appendToResponse > (WOApplication.java:1418) > > at er.extensions.ERXApplication.appendToResponse > (ERXApplication.java:968) > > at > com.webobjects.appserver._private.WOComponentRequestHandler._dispatchW > ithPreparedPage(WOComponentRequestHandler.java:230) > > at > com.webobjects.appserver._private.WOComponentRequestHandler._dispatchW > ithPreparedSession(WOComponentRequestHandler.java:287) > > at > com.webobjects.appserver._private.WOComponentRequestHandler._dispatchW > ithPreparedApplication(WOComponentRequestHandler.java:322) > > at > com.webobjects.appserver._private.WOComponentRequestHandler._handleReq > uest(WOComponentRequestHandler.java:358) > > at > com.webobjects.appserver._private.WOComponentRequestHandler.handleRequ > est(WOComponentRequestHandler.java:435) > > at com.webobjects.appserver.WOApplication.dispatchRequest > (WOApplication.java:1306) > > at er.extensions.ERXApplication.dispatchRequest > (ERXApplication.java:1001) > > at com.webobjects.appserver._private.WOWorkerThread.runOnce > (WOWorkerThread.java:173) > > at com.webobjects.appserver._private.WOWorkerThread.run > (WOWorkerThread.java:254) > > at java.lang.Thread.run(Unknown Source) > > _______________________________________________ > WebObjects-dev mailing list > WebObjects-dev@omnigroup.com > http://www.omnigroup.com/mailman/listinfo/webobjects-dev -- /"\ \ / X / \ ASCII RIBBON CAMPAIGN AGAINST HTML MAIL Homepage: http://homepage.mac.com/khsu/index.html From jerrywwalker at gmail.com Sat Feb 3 10:49:13 2007 From: jerrywwalker at gmail.com (Jerry W. Walker) Date: Sat Feb 3 10:49:22 2007 Subject: WOComponent .api files In-Reply-To: <86B82F80-D540-4EDD-98DE-C14E8BBEAE62@mdimension.com> References: <45C499B7.000009.05312@BILL> <4E07CACD-7BC6-4B38-9F4E-1647311FCD5C@mdimension.com> <2B258CF2-4A73-46F0-AAEF-9F4E6A1A95B4@gmail.com> <86B82F80-D540-4EDD-98DE-C14E8BBEAE62@mdimension.com> Message-ID: <7AA9B9A0-86D8-40C9-B648-279403AB632E@gmail.com> Mike (and William), First to William, Now that we've dissolved the suspicion regarding your crashes resulting from missing .api files, we still have only helped you a bit with solving your original problem. If you post a stack trace or a bit more information about what you mean by "crash", perhaps we could offer a bit more useful help. ...and to Mike! On Feb 3, 2007, at 12:14 PM, Mike Schrag wrote: > OK Jerry Walker -- the gauntlet is thrown :) I wondered what that smacking sound was. > What I should have said is "it's impossible to autogenerate api > files that are particularly useful". Once again, I have to register a mild disagreement (since the gauntlet has been thrown). I've often auto-generated a useful subcomponent .api in WOBuilder by asking it to simply add all the iVars in as bindings (a one click process). Though this seldom creates the required API, once in a while it does, which constitutes my existence proof and negates your "it's impossible to autogenerate..." statement. However, whether it does the complete job or not, it often generates a VERY USEFUL . api file as a starting point. :-) > Any WebObjects IDE worth its salt doesn't need API files for > something that could be autogenerated. While I'll grant that with today's much faster processors the need has diminished considerably, when processors ran in the 10's of MHz range (like the original NeXT systems), auto-generated API files were very useful. Who knows, they might even be useful someday on the new iPhones (believing that its processor probably runs in the 10s of MHz range). I know, one questions how much development anyone would want to do on an iPhone, but hey... I can dream, right? Light fades to dimly lit conference room with projector displaying a browser window to the members of the meeting. Jerry: Now if you'll just point your browser to http:// www.jerrysmobilesite.com/cgi-bin/WebObjects/salesfigures.wo, you'll... Mike: Wow, Jerry, I thought your servers were still suffering from that DDoS attack. Jerry: They are, this is coming from this little Objective C based WO app on my iPhone here through WiFi. Now click on the 2009 figures to see that WO is clearly overtaking RoR for AJAX apps on ... or whatever. > SOME WebObjects IDE's, for instance, can live introspect your > components, and thus only need API files for things that couldn't > be autogenerated. At least that's what I've heard ... :) And with that, you probably feel like you've Eclipsed my arguments? Heh, WO unto you, foul knave! Fond regards, Jerry > ms > > On Feb 3, 2007, at 11:59 AM, Jerry W. Walker wrote: > >> Hi, William (and Mike), >> >> Actually, Mike is incorrect. There is a tool that can generate >> your .api files automatically. It's called WOBuilder. :-) >> >> To confirm this, simply open your project in Xcode, double click >> on the WOComponent to open WOBuilder and associate it with your >> project, and save the component again from within WOBuilder. You >> may have to make a change for WOBuilder to generate the .api file, >> but I think it will do so by simply re-saving. On the other hand, >> if you're using Xcode/WOBuilder, the fact that WOBuilder >> regenerated the .api file doesn't clue Xcode into this fact, so to >> see the new .api file in Xcode's Groups & Files listing, you will >> have to explicitly re-add it. >> >> It isn't often I get to correct Mike, and I relish the >> opportunities. However, overall, Mike is correct (as usual): >> >> * the .api file is not used (to my knowledge) during execution >> >> * it is impossible for WOBuilder to know what your API for any >> component really is, so it only autogenerates a minimal .api file >> as it does when you first create a WOComponent >> >> On the other hand, the API for most WOComponents is trivial if >> you're only using them for complete pages. It's when you start >> using subcomponents that they become very useful in helping >> WOBuilder (or any IDE that hopes to replace it) determine that a >> subcomponent is being used correctly (i.e. all of its required >> bindings are bound, its mutually exclusive bindings are not all >> bound, bindings with common domains have values selected from >> their domains, optional bindings are represented in the GetInfo >> panel, etc.). >> >> Having said all that, it seems that the real problem lies in your >> copying the components over. The .api files should still exist in >> your old project, they're just not normally contained within the >> WOComponent's directory. Like the .java class file for the >> component, they are external to it. So just copy the old .api >> files over from your old project and your WOComponents should >> retain all of their (development environment) advantages. >> >> Regards, >> Jerry >> >> On Feb 3, 2007, at 9:53 AM, Mike Schrag wrote: >> >>> .api files are used only by development environments to provide >>> things like code completion, etc. They are not used at all in >>> deployment, so that's not your problem. It's also not really >>> possible to autogenerate .api files because the point of them is >>> to define things that an IDE is not able to figure out on its >>> own. For instance, if you have a dynamic element, it's >>> impossible for an IDE to know what the bindings are for it. >>> >>> ms >>> >>> On Feb 3, 2007, at 9:18 AM, WILLIAM GARNETT wrote: >>> >>>> Hello everyone; >>>> >>>> >>>> >>>> A recent disaster required me to re-generate my project. >>>> >>>> I started a new project and added in all the WOCompents - but >>>> this process >>>> did not generate the corresponding .api files. >>>> >>>> It all seems to work fine, but sporadically I have some >>>> mysterious crashes >>>> in deployment mode. >>>> >>>> >>>> >>>> My question is: Could these crashes be due to the fact that >>>> the .api files >>>> are not there? Are they essential? >>>> >>>> >>>> >>>> If so, do I have to generate the .api's manually? Or is there a >>>> tool that >>>> will build them automatically? >>>> >>>> >>>> >>>> Thanking you in advance for your replies, >>>> >>>> >>>> >>>> Cheers, >>>> >>>> Bill. >>>> >>>> >>>> _______________________________________________ >>>> WebObjects-dev mailing list >>>> WebObjects-dev@omnigroup.com >>>> http://www.omnigroup.com/mailman/listinfo/webobjects-dev >>> >>> >>> _______________________________________________ >>> WebObjects-dev mailing list >>> WebObjects-dev@omnigroup.com >>> http://www.omnigroup.com/mailman/listinfo/webobjects-dev >> >> >> -- >> __ Jerry W. Walker, >> WebObjects Developer/Instructor for High Performance Industrial >> Strength Internet Enabled Systems >> >> jerrywwalker@gee-em-aye-eye-ell.com >> 203 278-4085 office >> >> >> > > > _______________________________________________ > WebObjects-dev mailing list > WebObjects-dev@omnigroup.com > http://www.omnigroup.com/mailman/listinfo/webobjects-dev -- __ Jerry W. Walker, WebObjects Developer/Instructor for High Performance Industrial Strength Internet Enabled Systems jerrywwalker@gee-em-aye-eye-ell.com 203 278-4085 office From ray at ganymede.org Sat Feb 3 10:58:23 2007 From: ray at ganymede.org (Ray Kiddy) Date: Sat Feb 3 10:58:32 2007 Subject: EOModeler and Intel Macs In-Reply-To: References: Message-ID: <65F8C404-5D43-4AED-818B-520F512393C3@ganymede.org> On Feb 2, 2007, at 6:44 PM, Mohapatra Ashish wrote: > Hi All, > > I was just wondering if there are any known issues for EOModeler > not working > on intel macs. > > I am getting an exception: > "Illegal state exception. Unable to open database channel". > > Any pointers would be of great help. > > Thanks, > Ashish Is anyone still maintaining a FAQ? EOModeler works fine on Intel Macs that have the Java 1.4 VM installed. That VM does not have to be the default. It just has to exist. Really, there are two questions to answer here. Is your JDBC driver set up to access your database correctly? And is the ObjC side of the JDBC access working correctly? The answer to the second question is, for you, obviously no. But since you did not give some info, such as the database you are using, the driver and driver version, the connection dictionary for the model, I feel it safe to assume you might not be checking the database and the Java-only side of the access to the data. To check the Java-only stuff, use an EOF command-line app, as in http://worldofwebobjects.blogspot.com/2006/04/command-line-tool-for- fetching-with.html. Change the model and entity name to match what you are trying to use. If you can access the database with that, and EOModeler cannot access the data, then you need to look at where your driver is installed. It is usually safe to put it somewhere like /System/Library/Java/ Extensions, so that you will know it will get loaded, even by EOModeler. Once you are able to connect, you could move it to other places. I do not remember all the places it is ok for, and the places it might not be. Also, which version is your default VM? Have you un-installed any of the JVMs supplied with the system? If you open Terminal and cat the /Developer/Applications/WebObjects/ EOModeler.app/Contents/Info-macos.plist file, you should see this among the other stuff in it. Java JVMVersion 1.4* Does yours say "1.4*"? If things still do not work for you, more info is needed. - ray From mschrag at mdimension.com Sat Feb 3 11:15:11 2007 From: mschrag at mdimension.com (Mike Schrag) Date: Sat Feb 3 11:15:45 2007 Subject: WOComponent .api files In-Reply-To: <7AA9B9A0-86D8-40C9-B648-279403AB632E@gmail.com> References: <45C499B7.000009.05312@BILL> <4E07CACD-7BC6-4B38-9F4E-1647311FCD5C@mdimension.com> <2B258CF2-4A73-46F0-AAEF-9F4E6A1A95B4@gmail.com> <86B82F80-D540-4EDD-98DE-C14E8BBEAE62@mdimension.com> <7AA9B9A0-86D8-40C9-B648-279403AB632E@gmail.com> Message-ID: <13E001E0-AD65-4B52-B972-CA363846FD33@mdimension.com> > once in a while it does, which constitutes my existence proof and > negates your "it's impossible to autogenerate..." statement. > However, whether it does the complete job or not, it often > generates a VERY USEFUL . api file as a starting point. :-) touch? ... All that's left is for me to slink back to WOLips and add support for autogenerating API files :) > Jerry: They are, this is coming from this little Objective C based > WO app on my iPhone here through WiFi. Now click on the 2009 > figures to see that WO is clearly overtaking RoR for AJAX apps on ... :) ms From jerrywwalker at gmail.com Sat Feb 3 12:55:53 2007 From: jerrywwalker at gmail.com (Jerry W. Walker) Date: Sat Feb 3 12:56:01 2007 Subject: WOComponent .api files In-Reply-To: <13E001E0-AD65-4B52-B972-CA363846FD33@mdimension.com> References: <45C499B7.000009.05312@BILL> <4E07CACD-7BC6-4B38-9F4E-1647311FCD5C@mdimension.com> <2B258CF2-4A73-46F0-AAEF-9F4E6A1A95B4@gmail.com> <86B82F80-D540-4EDD-98DE-C14E8BBEAE62@mdimension.com> <7AA9B9A0-86D8-40C9-B648-279403AB632E@gmail.com> <13E001E0-AD65-4B52-B972-CA363846FD33@mdimension.com> Message-ID: <6A6686D6-B7DB-4C40-9FB0-98A295DC81ED@gmail.com> On Feb 3, 2007, at 2:15 PM, Mike Schrag wrote: >> once in a while it does, which constitutes my existence proof and >> negates your "it's impossible to autogenerate..." statement. >> However, whether it does the complete job or not, it often >> generates a VERY USEFUL . api file as a starting point. :-) > touch? ... All that's left is for me to slink back to WOLips and > add support for autogenerating API files :) > >> Jerry: They are, this is coming from this little Objective C based >> WO app on my iPhone here through WiFi. Now click on the 2009 >> figures to see that WO is clearly overtaking RoR for AJAX apps on ... > :) Aw, C'mon, Mike! If you have an afternoon free, could you just go ahead and build a decent replacement to WOBuilder for the rest of us??? I would do it, but I don't have that many afternoons free these days. :-) We haven't had too many of these exchanges, but I think that's the first time I ever came out on top. I'll be offline for the next several hours drinking myself silly in celebration. Don't trust anything I write tomorrow with the killer hangover that I'll be cultivating tonight. Which reminds me, is anyone on the list going to join me in my annual Super-Bowl Celebration drive? That's where I go out on the Interstates for a fun drive at about 6:45 PM exploiting the little known fact that you can just about camp out on them during the Super Bowl. Get out early, or you could be in for an unpleasant surprise if one team is doing really poorly and their fans give up and ruin your drive. Regards, Jerry > ms > _______________________________________________ > WebObjects-dev mailing list > WebObjects-dev@omnigroup.com > http://www.omnigroup.com/mailman/listinfo/webobjects-dev -- __ Jerry W. Walker, WebObjects Developer/Instructor for High Performance Industrial Strength Internet Enabled Systems jerrywwalker@gmail.com 203 278-4085 office From mschrag at mdimension.com Sat Feb 3 13:37:35 2007 From: mschrag at mdimension.com (Mike Schrag) Date: Sat Feb 3 13:38:04 2007 Subject: WOComponent .api files In-Reply-To: <6A6686D6-B7DB-4C40-9FB0-98A295DC81ED@gmail.com> References: <45C499B7.000009.05312@BILL> <4E07CACD-7BC6-4B38-9F4E-1647311FCD5C@mdimension.com> <2B258CF2-4A73-46F0-AAEF-9F4E6A1A95B4@gmail.com> <86B82F80-D540-4EDD-98DE-C14E8BBEAE62@mdimension.com> <7AA9B9A0-86D8-40C9-B648-279403AB632E@gmail.com> <13E001E0-AD65-4B52-B972-CA363846FD33@mdimension.com> <6A6686D6-B7DB-4C40-9FB0-98A295DC81ED@gmail.com> Message-ID: <05A97166-D893-4540-9282-DBFB5A5D4A4F@mdimension.com> > Aw, C'mon, Mike! If you have an afternoon free, could you just go > ahead and build a decent replacement to WOBuilder for the rest of > us??? :) OK -- In my last ditch effort to save, I just committed the "Generate API File" action to WOLips ... ms From bgarnett at blueyonder.co.uk Sun Feb 4 04:52:40 2007 From: bgarnett at blueyonder.co.uk (WILLIAM GARNETT) Date: Sun Feb 4 04:50:46 2007 Subject: Re WOComponent .api files Message-ID: <45C5D718.000012.05312@BILL> Hi; And many thanks to Mike & Jerry. So you all agree it's not the .api files. Another file that's missing is the .eomodeld~ file (Notice the ~) - which I don't think does anything. ??? All I know is that it sporadically comes up with ClassCastException. This is definitely not due to a fault with the code: for example in one case the procedure being called does nothing but removeObject( obj ) from the editingContext and then saveChanges(). No class casting involved there at all. I am afraid I do not know how to get a Stack Trace in development mode. Could you please tell me how to do that? Thanks again, Cheers, Bill. From jerrywwalker at gmail.com Sun Feb 4 05:48:24 2007 From: jerrywwalker at gmail.com (Jerry W. Walker) Date: Sun Feb 4 05:48:34 2007 Subject: Re WOComponent .api files In-Reply-To: <45C5D718.000012.05312@BILL> References: <45C5D718.000012.05312@BILL> Message-ID: <50C7C0E6-6750-44B5-984B-154D28E9ED1A@gmail.com> Hi, William, On Feb 4, 2007, at 7:52 AM, WILLIAM GARNETT wrote: > Hi; > > And many thanks to Mike & Jerry. That part was enjoyable, you're welcome. > So you all agree it's not the .api files. It's not the .api files, but the fact that they're missing might be causing you to miss a binding or bind the wrong thing during development. > Another file that's missing is the .eomodeld~ file (Notice the ~) - > which I > don't think does anything. ??? The .eomodel~ file is a backup file used by EOModeler to back up the current EOModel before applying your latest changes. If you make another change using EOModeler, it should reappear. It's also not used at run time. > All I know is that it sporadically comes up with ClassCastException. > > This is definitely not due to a fault with the code: for example in > one case > the procedure being called does nothing but removeObject( obj ) > from the > editingContext and then saveChanges(). No class casting involved > there at > all. There are all sorts of ways to cause a ClassCastException, but it sounds like you might have an error in your EOModel. Look very closely at the Value Class (Java) column. Does the type exposed there for each of your attributes match the type you're expecting? Also check the Value Type column and know the codes so that you can check whether EOF is doing the correct conversion from the DB value to your Java value. If either of these columns is not being displayed, be sure that you have EOModeler in Table Mode (Choose the Tools->Table Mode menu item) and note that the window shows two panes, the top is the attribute table and the bottom is the relationship table. At the bottom left of each of these two tables is a popdown menu labeled "Add Column...". Click it and add the columns you need to the Attributes table. You can remove columns later by selecting the column name in the header and pressing the delete key. To understand the Value Type column codes go to: http://developer.apple.com/documentation/WebObjects/UsingEOModeler/ 4WorkingWithAttributes/chapter_4_section_3.html#//apple_ref/doc/uid/ TP30001018-CH204-DontLinkElementID_207 > I am afraid I do not know how to get a Stack Trace in development > mode. > Could you please tell me how to do that? The stack trace should be automatic after a ClassCastException. You should be able to find it in your run log. If you're using Xcode, choose the Debug->Run Log menu item to display the run log and scroll to the bottom to see your exception and your stack trace. I would also suggest running in development mode with EOAdaptorDebugEnabled YES to see the SQL that EOF is generating. You might find some clues there. If you're running under Eclipse and using Mike's Entity Modeler, I'm afraid you'll have to wait for advice from Mike (or any others here who are developing in that environment). I'm still an old Xcode/ EOModeler/WOBuilder developer. Whoa.... What's that big meteor in the sky? A guy could become extinct if that hits the Earth!!! :-) Regards, Jerry > Thanks again, > > > > Cheers, > > Bill. > > > _______________________________________________ > WebObjects-dev mailing list > WebObjects-dev@omnigroup.com > http://www.omnigroup.com/mailman/listinfo/webobjects-dev -- __ Jerry W. Walker, WebObjects Developer/Instructor for High Performance Industrial Strength Internet Enabled Systems jerrywwalker@gee-em-aye-eye-ell.com 203 278-4085 office From mschrag at mdimension.com Sun Feb 4 06:51:45 2007 From: mschrag at mdimension.com (Mike Schrag) Date: Sun Feb 4 06:52:13 2007 Subject: Re WOComponent .api files In-Reply-To: <50C7C0E6-6750-44B5-984B-154D28E9ED1A@gmail.com> References: <45C5D718.000012.05312@BILL> <50C7C0E6-6750-44B5-984B-154D28E9ED1A@gmail.com> Message-ID: <564A7D69-DE37-468E-8B2A-75FCE2437A23@mdimension.com> > If you're running under Eclipse and using Mike's Entity Modeler, > I'm afraid you'll have to wait for advice from Mike (or any others > here who are developing in that environment). Same basic deal as Xcode ... They'll show up in your Console view. By default it will automatically become visible when something writes to it. You might want to consider launching you app in Java 1.5, actually. 1.5 (after many years) actually tells you the original type in the exception message for a ClassCastException. But even w/o 1.5, just knowing the line number goes a long way. ms From anders_peterson at optimatika.se Sun Feb 4 07:37:57 2007 From: anders_peterson at optimatika.se (Anders Peterson) Date: Sun Feb 4 07:38:01 2007 Subject: If it aint broken , don't fix it! In-Reply-To: <3E00B75C-C3CD-49DB-8455-39FD02E4E341@earthlink.net> References: <3E00B75C-C3CD-49DB-8455-39FD02E4E341@earthlink.net> Message-ID: <45C5FDD5.3020306@optimatika.se> Hi Karl, Aha, that's probably it then. Currently there is a J2SE Development Kit 5.0 update 8, and a matching public JRE, installed. This is what was there before I did anything. I'm sure the offer to upgrade only applied to the public JRE. Is the public JRE different depending on if you install an SDK or not? The application is running on the system's default VM which is the one that is part of the public JRE. /Anders Hsu wrote: > Did you install the full JDK, or just the JRE? MacRoman support only > exists in the JDK (or the JRE + "International" package of some sort). > > Karl > > On Feb 3, 2007, at 7:49 AM, Anders Peterson wrote: > >> Hi, >> >> I passed by the office today and caused a problem... >> >> There is a test server running Windows XP Professional with Java 5 >> and WO 5.2.4 installed. The deployed WO application is built on Mac >> using WOLips and WebObjects 5.3 and built/deployed with embedded >> frameworks. Until today everything worked just fine. >> >> When I logged in to the test server today I was informed about >> available updates to both Windows XP (including a new version of IE) >> and Java (update 10). For some reason I accepted to install these, >> and now the WebObjects application that was already installed and >> running wont function. It seems the application throws an >> java.io.UnsupportedEncodingException: NSMacOSRomanStringEncoding >> whenever it should display anything in a browser. It seems to >> function ok as long as it doesn't have to show a gui. >> >> I'm guessing the problem is the Java update, but before I start >> un/reinstalling I'd like to know if anyone have experienced a similar >> problem? >> >> /Anders >> >> INFO - Problem: com.webobjects.foundation.NSForwardException >> [java.io.UnsupportedEncodingException] NSMacOSRomanStringEncoding >> >> INFO - >> >> INFO - com.webobjects.foundation.NSForwardException for >> java.io.UnsupportedEncodingException: NSMacOSRomanStringEncoding >> >> at sun.io.Converters.getConverterClass(Unknown Source) >> >> at sun.io.Converters.newConverter(Unknown Source) >> >> at sun.io.ByteToCharConverter.getConverter(Unknown Source) >> >> at java.lang.StringCoding.decode(Unknown Source) >> >> at java.lang.String.(Unknown Source) >> >> at java.lang.String.(Unknown Source) >> >> at >> com.webobjects.appserver._private.WOComponentDefinition.readWoDeclaration(WOComponentDefinition.java:340) >> >> >> at >> com.webobjects.appserver._private.WOComponentDefinition.template(WOComponentDefinition.java:279) >> >> >> at >> com.webobjects.appserver.WOComponent.templateWithName(WOComponent.java:597) >> >> >> at >> com.webobjects.appserver.WOComponent.template(WOComponent.java:507) >> >> at >> com.webobjects.appserver.WOComponent.appendToResponse(WOComponent.java:982) >> >> >> at >> com.webobjects.appserver.WOSession.appendToResponse(WOSession.java:1200) >> >> at er.extensions.ERXSession.appendToResponse(ERXSession.java:528) >> >> at >> com.webobjects.appserver.WOApplication.appendToResponse(WOApplication.java:1418) >> >> >> at >> er.extensions.ERXApplication.appendToResponse(ERXApplication.java:968) >> >> at >> com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWithPreparedPage(WOComponentRequestHandler.java:230) >> >> >> at >> com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWithPreparedSession(WOComponentRequestHandler.java:287) >> >> >> at >> com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWithPreparedApplication(WOComponentRequestHandler.java:322) >> >> >> at >> com.webobjects.appserver._private.WOComponentRequestHandler._handleRequest(WOComponentRequestHandler.java:358) >> >> >> at >> com.webobjects.appserver._private.WOComponentRequestHandler.handleRequest(WOComponentRequestHandler.java:435) >> >> >> at >> com.webobjects.appserver.WOApplication.dispatchRequest(WOApplication.java:1306) >> >> >> at >> er.extensions.ERXApplication.dispatchRequest(ERXApplication.java:1001) >> >> at >> com.webobjects.appserver._private.WOWorkerThread.runOnce(WOWorkerThread.java:173) >> >> >> at >> com.webobjects.appserver._private.WOWorkerThread.run(WOWorkerThread.java:254) >> >> >> at java.lang.Thread.run(Unknown Source) >> >> _______________________________________________ >> WebObjects-dev mailing list >> WebObjects-dev@omnigroup.com >> http://www.omnigroup.com/mailman/listinfo/webobjects-dev > > -- > > /"\ > \ / > X > / \ ASCII RIBBON CAMPAIGN AGAINST HTML MAIL > > Homepage: > http://homepage.mac.com/khsu/index.html > From ploiku at earthlink.net Sun Feb 4 19:42:16 2007 From: ploiku at earthlink.net (Hsu) Date: Sun Feb 4 19:40:37 2007 Subject: If it aint broken , don't fix it! In-Reply-To: <45C5FDD5.3020306@optimatika.se> References: <3E00B75C-C3CD-49DB-8455-39FD02E4E341@earthlink.net> <45C5FDD5.3020306@optimatika.se> Message-ID: <68BB9464-462F-4014-9899-175011DDA10F@earthlink.net> Annoying, I belive that it is different. The JDK installs the devkit + JRE + "international support" of some kind. The JRE by itself isn't sufficient (last I checked, which was a year or so ago) for WO. Karl On Feb 4, 2007, at 7:37 AM, Anders Peterson wrote: > Hi Karl, > > Aha, that's probably it then. Currently there is a J2SE Development > Kit 5.0 update 8, and a matching public JRE, installed. This is > what was there before I did anything. I'm sure the offer to upgrade > only applied to the public JRE. > > Is the public JRE different depending on if you install an SDK or > not? The application is running on the system's default VM which is > the one that is part of the public JRE. > > /Anders > > Hsu wrote: >> Did you install the full JDK, or just the JRE? MacRoman support >> only exists in the JDK (or the JRE + "International" package of >> some sort). >> >> Karl >> >> On Feb 3, 2007, at 7:49 AM, Anders Peterson wrote: >> >>> Hi, >>> >>> I passed by the office today and caused a problem... >>> >>> There is a test server running Windows XP Professional with Java >>> 5 and WO 5.2.4 installed. The deployed WO application is built on >>> Mac using WOLips and WebObjects 5.3 and built/deployed with >>> embedded frameworks. Until today everything worked just fine. >>> >>> When I logged in to the test server today I was informed about >>> available updates to both Windows XP (including a new version of >>> IE) and Java (update 10). For some reason I accepted to install >>> these, and now the WebObjects application that was already >>> installed and running wont function. It seems the application >>> throws an java.io.UnsupportedEncodingException: >>> NSMacOSRomanStringEncoding >>> whenever it should display anything in a browser. It seems to >>> function ok as long as it doesn't have to show a gui. >>> >>> I'm guessing the problem is the Java update, but before I start >>> un/reinstalling I'd like to know if anyone have experienced a >>> similar problem? >>> >>> /Anders >>> >>> INFO - Problem: com.webobjects.foundation.NSForwardException >>> [java.io.UnsupportedEncodingException] NSMacOSRomanStringEncoding >>> >>> INFO - >>> >>> INFO - com.webobjects.foundation.NSForwardException for >>> java.io.UnsupportedEncodingException: NSMacOSRomanStringEncoding >>> >>> at sun.io.Converters.getConverterClass(Unknown Source) >>> >>> at sun.io.Converters.newConverter(Unknown Source) >>> >>> at sun.io.ByteToCharConverter.getConverter(Unknown Source) >>> >>> at java.lang.StringCoding.decode(Unknown Source) >>> >>> at java.lang.String.(Unknown Source) >>> >>> at java.lang.String.(Unknown Source) >>> >>> at >>> com.webobjects.appserver._private.WOComponentDefinition.readWoDeclar >>> ation(WOComponentDefinition.java:340) >>> >>> at >>> com.webobjects.appserver._private.WOComponentDefinition.template >>> (WOComponentDefinition.java:279) >>> >>> at com.webobjects.appserver.WOComponent.templateWithName >>> (WOComponent.java:597) >>> >>> at com.webobjects.appserver.WOComponent.template >>> (WOComponent.java:507) >>> >>> at com.webobjects.appserver.WOComponent.appendToResponse >>> (WOComponent.java:982) >>> >>> at com.webobjects.appserver.WOSession.appendToResponse >>> (WOSession.java:1200) >>> >>> at er.extensions.ERXSession.appendToResponse(ERXSession.java: >>> 528) >>> >>> at com.webobjects.appserver.WOApplication.appendToResponse >>> (WOApplication.java:1418) >>> >>> at er.extensions.ERXApplication.appendToResponse >>> (ERXApplication.java:968) >>> >>> at >>> com.webobjects.appserver._private.WOComponentRequestHandler._dispatc >>> hWithPreparedPage(WOComponentRequestHandler.java:230) >>> >>> at >>> com.webobjects.appserver._private.WOComponentRequestHandler._dispatc >>> hWithPreparedSession(WOComponentRequestHandler.java:287) >>> >>> at >>> com.webobjects.appserver._private.WOComponentRequestHandler._dispatc >>> hWithPreparedApplication(WOComponentRequestHandler.java:322) >>> >>> at >>> com.webobjects.appserver._private.WOComponentRequestHandler._handleR >>> equest(WOComponentRequestHandler.java:358) >>> >>> at >>> com.webobjects.appserver._private.WOComponentRequestHandler.handleRe >>> quest(WOComponentRequestHandler.java:435) >>> >>> at com.webobjects.appserver.WOApplication.dispatchRequest >>> (WOApplication.java:1306) >>> >>> at er.extensions.ERXApplication.dispatchRequest >>> (ERXApplication.java:1001) >>> >>> at com.webobjects.appserver._private.WOWorkerThread.runOnce >>> (WOWorkerThread.java:173) >>> >>> at com.webobjects.appserver._private.WOWorkerThread.run >>> (WOWorkerThread.java:254) >>> >>> at java.lang.Thread.run(Unknown Source) >>> >>> _______________________________________________ >>> WebObjects-dev mailing list >>> WebObjects-dev@omnigroup.com >>> http://www.omnigroup.com/mailman/listinfo/webobjects-dev >> >> -- >> >> /"\ >> \ / >> X >> / \ ASCII RIBBON CAMPAIGN AGAINST HTML MAIL >> >> Homepage: >> http://homepage.mac.com/khsu/index.html >> > > _______________________________________________ > WebObjects-dev mailing list > WebObjects-dev@omnigroup.com > http://www.omnigroup.com/mailman/listinfo/webobjects-dev -- His philosophy was a mixture of three famous schools -- the Cynics, the Stoics and the Epicureans - and summed up all three of them in his famous phrase, "You can't trust any bugger further than you can throw him, and there's nothing you can do about it, so let's have a drink." Homepage: http://homepage.mac.com/khsu/index.html From anders_peterson at optimatika.se Wed Feb 7 07:14:53 2007 From: anders_peterson at optimatika.se (Anders Peterson) Date: Wed Feb 7 07:15:08 2007 Subject: If it aint broken , don't fix it! In-Reply-To: <68BB9464-462F-4014-9899-175011DDA10F@earthlink.net> References: <3E00B75C-C3CD-49DB-8455-39FD02E4E341@earthlink.net> <45C5FDD5.3020306@optimatika.se> <68BB9464-462F-4014-9899-175011DDA10F@earthlink.net> Message-ID: <45C9ECED.5070709@optimatika.se> I've been thinking: Exactly what went wrong, and should it really? If I develop a Java application on my Mac and by "mistake" include some MacOSRoman encoded resource file; will that application not run on any other platform (other than Mac)? Why did the whole application crash, why not just some screwed up characters in the GUI? /Anders Hsu wrote: > Annoying, I belive that it is different. The JDK installs the devkit + > JRE + "international support" of some kind. The JRE by itself isn't > sufficient (last I checked, which was a year or so ago) for WO. > > Karl > > On Feb 4, 2007, at 7:37 AM, Anders Peterson wrote: > >> Hi Karl, >> >> Aha, that's probably it then. Currently there is a J2SE Development >> Kit 5.0 update 8, and a matching public JRE, installed. This is what >> was there before I did anything. I'm sure the offer to upgrade only >> applied to the public JRE. >> >> Is the public JRE different depending on if you install an SDK or >> not? The application is running on the system's default VM which is >> the one that is part of the public JRE. >> >> /Anders >> >> Hsu wrote: >>> Did you install the full JDK, or just the JRE? MacRoman support only >>> exists in the JDK (or the JRE + "International" package of some sort). >>> >>> Karl >>> >>> On Feb 3, 2007, at 7:49 AM, Anders Peterson wrote: >>> >>>> Hi, >>>> >>>> I passed by the office today and caused a problem... >>>> >>>> There is a test server running Windows XP Professional with Java 5 >>>> and WO 5.2.4 installed. The deployed WO application is built on Mac >>>> using WOLips and WebObjects 5.3 and built/deployed with embedded >>>> frameworks. Until today everything worked just fine. >>>> >>>> When I logged in to the test server today I was informed about >>>> available updates to both Windows XP (including a new version of >>>> IE) and Java (update 10). For some reason I accepted to install >>>> these, and now the WebObjects application that was already >>>> installed and running wont function. It seems the application >>>> throws an java.io.UnsupportedEncodingException: >>>> NSMacOSRomanStringEncoding >>>> whenever it should display anything in a browser. It seems to >>>> function ok as long as it doesn't have to show a gui. >>>> >>>> I'm guessing the problem is the Java update, but before I start >>>> un/reinstalling I'd like to know if anyone have experienced a >>>> similar problem? >>>> >>>> /Anders >>>> >>>> INFO - Problem: com.webobjects.foundation.NSForwardException >>>> [java.io.UnsupportedEncodingException] NSMacOSRomanStringEncoding >>>> >>>> INFO - >>>> >>>> INFO - com.webobjects.foundation.NSForwardException for >>>> java.io.UnsupportedEncodingException: NSMacOSRomanStringEncoding >>>> >>>> at sun.io.Converters.getConverterClass(Unknown Source) >>>> >>>> at sun.io.Converters.newConverter(Unknown Source) >>>> >>>> at sun.io.ByteToCharConverter.getConverter(Unknown Source) >>>> >>>> at java.lang.StringCoding.decode(Unknown Source) >>>> >>>> at java.lang.String.(Unknown Source) >>>> >>>> at java.lang.String.(Unknown Source) >>>> >>>> at >>>> com.webobjects.appserver._private.WOComponentDefinition.readWoDeclaration(WOComponentDefinition.java:340) >>>> >>>> >>>> at >>>> com.webobjects.appserver._private.WOComponentDefinition.template(WOComponentDefinition.java:279) >>>> >>>> >>>> at >>>> com.webobjects.appserver.WOComponent.templateWithName(WOComponent.java:597) >>>> >>>> >>>> at >>>> com.webobjects.appserver.WOComponent.template(WOComponent.java:507) >>>> >>>> at >>>> com.webobjects.appserver.WOComponent.appendToResponse(WOComponent.java:982) >>>> >>>> >>>> at >>>> com.webobjects.appserver.WOSession.appendToResponse(WOSession.java:1200) >>>> >>>> >>>> at er.extensions.ERXSession.appendToResponse(ERXSession.java:528) >>>> >>>> at >>>> com.webobjects.appserver.WOApplication.appendToResponse(WOApplication.java:1418) >>>> >>>> >>>> at >>>> er.extensions.ERXApplication.appendToResponse(ERXApplication.java:968) >>>> >>>> at >>>> com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWithPreparedPage(WOComponentRequestHandler.java:230) >>>> >>>> >>>> at >>>> com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWithPreparedSession(WOComponentRequestHandler.java:287) >>>> >>>> >>>> at >>>> com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWithPreparedApplication(WOComponentRequestHandler.java:322) >>>> >>>> >>>> at >>>> com.webobjects.appserver._private.WOComponentRequestHandler._handleRequest(WOComponentRequestHandler.java:358) >>>> >>>> >>>> at >>>> com.webobjects.appserver._private.WOComponentRequestHandler.handleRequest(WOComponentRequestHandler.java:435) >>>> >>>> >>>> at >>>> com.webobjects.appserver.WOApplication.dispatchRequest(WOApplication.java:1306) >>>> >>>> >>>> at >>>> er.extensions.ERXApplication.dispatchRequest(ERXApplication.java:1001) >>>> >>>> at >>>> com.webobjects.appserver._private.WOWorkerThread.runOnce(WOWorkerThread.java:173) >>>> >>>> >>>> at >>>> com.webobjects.appserver._private.WOWorkerThread.run(WOWorkerThread.java:254) >>>> >>>> >>>> at java.lang.Thread.run(Unknown Source) >>>> >>>> _______________________________________________ >>>> WebObjects-dev mailing list >>>> WebObjects-dev@omnigroup.com >>>> http://www.omnigroup.com/mailman/listinfo/webobjects-dev >>> >>> -- >>> /"\ >>> \ / >>> X >>> / \ ASCII RIBBON CAMPAIGN AGAINST HTML MAIL >>> >>> Homepage: >>> http://homepage.mac.com/khsu/index.html >>> >> >> _______________________________________________ >> WebObjects-dev mailing list >> WebObjects-dev@omnigroup.com >> http://www.omnigroup.com/mailman/listinfo/webobjects-dev > > -- > > His philosophy was a mixture of three famous schools -- the Cynics, > the Stoics and the Epicureans - and summed up all three of them in his > famous phrase, "You can't trust any bugger further than you can throw > him, and there's nothing you can do about it, so let's have a drink." > > Homepage: > http://homepage.mac.com/khsu/index.html > From rmendis at mac.com Wed Feb 7 11:59:39 2007 From: rmendis at mac.com (svgobjects2) Date: Wed Feb 7 12:00:16 2007 Subject: svgobjects 2.0 Message-ID: <2D1EB88C-DEF5-4991-9559-F9DBBB51AA79@mac.com> SVG is getting its second wind with native support on the next version of Safari on OS X. (Yes, that might include a forthcoming version on the iPhone too!) Though SVG is thought of as an image format, it is often forgotten that it can be used to generate entire web application UIs. In particular as a Web 2.0 technology (for OS X) SVG is a compelling alternative to Flash and Microsoft's XAML. So though it's been long overdue, i'm pleased to announce svgobjects 2.0, now a framework for building Web 2.0 applications with WebObjects. http://www.svgobjects2.com (I'm starting off with a tech blog but you can read what's new in the framework: http://www.svgobjects2.com/Articles/B1B4DDC3-EFE3-4C97- A6DD-3A06C7A94795.html) Thanks, Ravi From Susanne.Schneider at interActive-Systems.de Thu Feb 8 10:07:15 2007 From: Susanne.Schneider at interActive-Systems.de (Susanne Schneider) Date: Thu Feb 8 10:37:35 2007 Subject: Problem with redirection to anchors in Win-deployment Message-ID: <45CB66D3.2060502@interActive-Systems.de> Hi, I just wanted to share some experience we just had with java-handling of anchors and one of our customers, who against our advice insists on deploying on windows. The situation: At one point in our application we want to redisplay a page after the user has clicked on one of several active images. The page should jump back to the clicked image. The problems emerges from the following code where I don't know who the primary author was (assumed the "anchor" variable is set during the click on the image): public void appendToResponse(WOResponse res, WOContext ctx) { if (anchor != null) { res.setHeader(ctxt.componentActionURL() + "#" + anchor, "location"); res.setHeader("text/html", "content-type"); res.setHeader("0","content-length"); res.setStatus(302); anchor = null; } else { super.appendToResponse(res, ctx); } } It seems, that the webserver does not handle this kind of redirect correct, the url and header information shows the componentActionURL doubled which leads to a session-restoration error instead of the wanted page-reload. I know nothing about webserver configuration, but there is a better solution for this: just put this javascript at the bottom of the page: and in wod: StringAnchor: WOString { value=anchor; } and forget the redirect! Susanne -- Susanne Schneider Coordinator secuSuite Development iAS interActive Systems GmbH Dieffenbachstra?e 33 c, D-10967 Berlin fon +49(0)30 69 004 - 205 fax +49(0)30 69 004 - 210 mail susanne.schneider@interActive-Systems.de web http://www.interActive-Systems.de From bob at apple.com Fri Feb 9 14:53:11 2007 From: bob at apple.com (Bob Frank) Date: Fri Feb 9 14:53:29 2007 Subject: MEETING: Chicago CocoaHeads / CAWUG Tuesday Feb. 13 6:00 pm Message-ID: <17C6B555-55DA-478A-A642-81558FAAC86F@apple.com> Hi all, The Chicago CocoaHeads / Chicago Cocoa and WebObjects User Group (CAWUG) is holding our next meeting this coming Tuesday, Feb 13th, at 6:00 PM at the Apple Store on Michigan Ave. Agenda: - Introductions & Announcements - Jon on BaseTen - Q & A - adjournment to O'Toole's When: Tuesday, Feb. 13th, 6:00 PM Where: Apple Store Michigan Avenue 679 North Michigan Ave. (at the corner of Huron & Michigan Ave.) Chicago, IL 60611 http://maps.yahoo.com/maps_result? ed=gYbE5Op_0Tokf_p7h61dwjbWtjC2r1YehzWw&csz=60611 - Jon on BaseTen BaseTen is Marko Karppinen's new dual-licensed (GPL2/commercial-per- developer) open-source Cocoa database persistence framework. It has similarities to EOF and Core Data, but is definitely not a clone of either. Jonathan 'Wolf' Rentzsch will detail BaseTen's architecture, including its unique leverage of PostgreSQL's finer features (SAVEPOINT, NOTIFY). - O'Tooles We will continue the discussion at our local watering hold Timothy O'Toole's at 622 Fairbanks (2 blocks east of the store). We also wish to thank the folks who run the theater space at the Apple store for letting us have our meetings there, and Jonathan 'Wolf' Rentzsch for hosting the new and revived CAWUG web site and taking over hosting our listserve. Thanks all. Also, if you are working on a project and would like to talk about it briefly / promote it, I think it would be fun for people to hear about other people's projects. Please email me off line and you can talk at a future meeting or would like a book to review. Future meetings dates: 3/13/07 & 4/10/07 CAWUG Resources Web Site: http://www.cawug.org/ RSS feed: http://www.cawug.org/rss.xml Mail list: http://redshed.net/mailman/listinfo/cawug-announce iCal: http://ical.mac.com/chicagobob/ Chicago-CocoaHeads-CAWUG (view on the web) iCal: webcal://ical.mac.com/chicagobob/Chicago-CocoaHeads-CAWUG.ics (subscribe to in iCal) Cocoa Heads web site: http://cocoaheads.org/us/ChicagoIllinois/index.html Hope to see you at the meeting. -Bob --- Bob Frank (312) 961 - 0509 [cell] bob@apple.com -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman/archive/webobjects-dev/attachments/20070209/2e4633e2/attachment.html From bob at apple.com Tue Feb 13 15:17:44 2007 From: bob at apple.com (Bob Frank) Date: Tue Feb 13 15:17:55 2007 Subject: CANCELED -- MEETING: Chicago CocoaHeads / CAWUG Tuesday Feb. 13 6:00 pm In-Reply-To: <17C6B555-55DA-478A-A642-81558FAAC86F@apple.com> References: <17C6B555-55DA-478A-A642-81558FAAC86F@apple.com> Message-ID: Hi All, Sorry for the late notice, but due to weather neither Jon nor I can make it downtown, the traffic is unbelievable. I've been in the car for over an hour and half (and Jon even longer) and we're not even half way. If you make it to the Apple store, then feel free to head straight to O'Toole's and we'll see you next month. -Bob On Feb 9, 2007, at 4:53 PM, Bob Frank wrote: > Hi all, > > The Chicago CocoaHeads / Chicago Cocoa and WebObjects User Group > (CAWUG) is holding our next meeting this coming Tuesday, Feb 13th, > at 6:00 PM at the Apple Store on Michigan Ave. > > > Agenda: > - Introductions & Announcements > - Jon on BaseTen > - Q & A > - adjournment to O'Toole's > > When: > Tuesday, Feb. 13th, 6:00 PM > > Where: > Apple Store Michigan Avenue > 679 North Michigan Ave. (at the corner of Huron & Michigan Ave.) > Chicago, IL 60611 > http://maps.yahoo.com/maps_result? > ed=gYbE5Op_0Tokf_p7h61dwjbWtjC2r1YehzWw&csz=60611 > > > > - Jon on BaseTen > > BaseTen is Marko Karppinen's new dual-licensed (GPL2/commercial-per- > developer) open-source Cocoa database persistence framework. It has > similarities to EOF and Core Data, but is definitely not a clone of > either. Jonathan 'Wolf' Rentzsch will detail BaseTen's > architecture, including its unique leverage of PostgreSQL's finer > features (SAVEPOINT, NOTIFY). > > > - O'Tooles > We will continue the discussion at our local watering hold Timothy > O'Toole's at 622 Fairbanks (2 blocks east of the store). > > > We also wish to thank the folks who run the theater space at the > Apple store for letting us have our meetings there, and Jonathan > 'Wolf' Rentzsch for hosting the new and revived CAWUG web site and > taking over hosting our listserve. Thanks all. > > Also, if you are working on a project and would like to talk about > it briefly / promote it, I think it would be fun for people to > hear about other people's projects. Please email me off line and > you can talk at a future meeting or would like a book to review. > > Future meetings dates: 3/13/07 & 4/10/07 > > > > CAWUG Resources > > Web Site: http://www.cawug.org/ > RSS feed: http://www.cawug.org/rss.xml > Mail list: http://redshed.net/mailman/listinfo/cawug-announce > iCal: http://ical.mac.com/chicagobob/ Chicago-CocoaHeads-CAWUG > (view on the web) > iCal: webcal://ical.mac.com/chicagobob/Chicago-CocoaHeads- > CAWUG.ics (subscribe to in iCal) > > Cocoa Heads web site: > http://cocoaheads.org/us/ChicagoIllinois/index.html > > Hope to see you at the meeting. > > -Bob > > > --- > Bob Frank > (312) 961 - 0509 [cell] > bob@apple.com > > > > _______________________________________________ > > Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) > > Do not post admin requests or moderator comments to the list. > Contact the moderators at cocoa-dev-admins(at)lists.apple.com > > Help/Unsubscribe/Update your Subscription: > http://lists.apple.com/mailman/options/cocoa-dev/bob%40apple.com > > This email sent to bob@apple.com --- Bob Frank (312) 961 - 0509 [cell] bob@apple.com -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman/archive/webobjects-dev/attachments/20070213/1325388a/attachment.html From jdunnett at math.uwaterloo.ca Wed Feb 14 08:34:40 2007 From: jdunnett at math.uwaterloo.ca (Jeff Dunnett) Date: Wed Feb 14 08:50:34 2007 Subject: Validation Being Called Twice Message-ID: <21361129-F069-44C2-94C4-1643BD934FAC@math.uwaterloo.ca> Hello Everyone, I have a validation method: public String validateHPostal(String value) throws NSValidation.ValidationException { logger.debug("Value - " + value); String str = value; logger.debug("String - " + str); /*Pattern.matches("[A-Z][0-9][A-Z][0-9][A-Z][0-9]", value.subSequence(0, value.length())) */ if (str == null || str.length() == 0 ){ logger.debug("Value is null so we are throwing exception"); logger.debug(value); throw new NSValidation.ValidationException("PostalCode cannot be left blank."); }else if( Pattern.matches("[A-Z][0-9][A-Z][0-9][A-Z][0-9]", str.subSequence(0, str.length()))){ logger.debug("The string matches a Canadian postal code"); return str = str.substring(0,3) + " " + str.substring(3,6); }else if(Pattern.matches("[A-Z][0-9][A-Z] [0-9][A-Z][0-9]", str.subSequence(0, str.length())) || Pattern.matches("[0-9]{5}(-[0-9] {4})?", str.subSequence(0, str.length()))){ logger.debug("The string is a Postal Code or Zip Code"); return str; }else{ logger.debug("We are throwing an exception because the registrant did not provide a valid Canadian postal code"); throw new NSValidation.ValidationException("You must provide a valid Canadian postal code or American zip code"); } } I have a saveChanges call in a block such as this: try{ //Resetting the error message before attempting to set the registration. s.setErrorMessage(""); ec.saveChanges(); logger.debug("No exception generated"); }catch(Exception e){ logger.debug("We have caught an exception"); logger.debug(e); s.setErrorMessage(e.getMessage()); ec.revert(); return null; } The when I try to call the validation method validateHPostal with value = 4345 (data that is supposed to throw an exception) it is almost as if the validation is being called twice. My log shows: 2007-02-14 11:23:10,890 [WorkerThread3] DEBUG Registrant - Value - 4345 2007-02-14 11:23:10,891 [WorkerThread3] DEBUG Registrant - String - 4345 2007-02-14 11:23:10,891 [WorkerThread3] DEBUG Registrant - We are throwing an exception because the registrant did not provide a valid Canadian postal code [2007-02-14 11:23:10 EST] Validation failed on an object [java.lang.String] with keypath = registrant.hPostal and exception: You must provide a valid Canadian postal code or American zip code [2007-02-14 11:23:10 EST] Validation failed on an object [null] with keypath = aGuest.firstName and exception: the first name field cannot be left blank. [2007-02-14 11:23:10 EST] Validation failed on an object [null] with keypath = aGuest.lastName and exception: the last name field cannot be left blank. 2007-02-14 11:23:10,961 [WorkerThread3] DEBUG Registrant - Value - null 2007-02-14 11:23:10,962 [WorkerThread3] DEBUG Registrant - String - null 2007-02-14 11:23:10,962 [WorkerThread3] DEBUG Registrant - Value is null so we are throwing exception 2007-02-14 11:23:10,962 [WorkerThread3] DEBUG Registrant - 2007-02-14 11:23:10,980 [WorkerThread3] DEBUG RegistrationPage - We have caught an exception 2007-02-14 11:23:10,981 [WorkerThread3] DEBUG RegistrationPage - com.webobjects.foundation.NSValidation$ValidationException: PostalCode cannot be left blank. It seems as if the objects is ran through validation twice the first tim throws these exception: [2007-02-14 11:23:10 EST] Validation failed on an object [java.lang.String] with keypath = registrant.hPostal and exception: You must provide a valid Canadian postal code or American zip code [2007-02-14 11:23:10 EST] Validation failed on an object [null] with keypath = aGuest.firstName and exception: the first name field cannot be left blank. [2007-02-14 11:23:10 EST] Validation failed on an object [null] with keypath = aGuest.lastName and exception: the last name field cannot be left blank. Then since the validateHPostal is now passed is throws this exception: 2007-02-14 11:23:10,981 [WorkerThread3] DEBUG RegistrationPage - com.webobjects.foundation.NSValidation$ValidationException: PostalCode cannot be left blank. It should only be throwing this exception: [2007-02-14 11:23:10 EST] Validation failed on an object [java.lang.String] with keypath = registrant.hPostal and exception: You must provide a valid Canadian postal code or American zip code Does anyone have any idea as to what might be causing the unusual behaviour? Regards, Jeff -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman/archive/webobjects-dev/attachments/20070214/1f993328/attachment.html From dave at turbocat.de Wed Feb 14 12:46:41 2007 From: dave at turbocat.de (David Wetzel) Date: Wed Feb 14 13:11:54 2007 Subject: Validation Being Called Twice Message-ID: <20070214204641.9C9601EAE2FF@alice.turbocat.de> Jeff Dunnett wrote: > I have a validation method: (...) > It seems as if the objects is ran through validation twice the first > tim throws these exception: > > [2007-02-14 11:23:10 EST] Validation failed on an > object [java.lang.String] with keypath = registrant.hPostal and > exception: You must provide a valid Canadian postal code or American > zip code > [2007-02-14 11:23:10 EST] Validation failed on an > object [null] with keypath = aGuest.firstName and exception: the > first name field cannot be left blank. > [2007-02-14 11:23:10 EST] Validation failed on an > object [null] with keypath = aGuest.lastName and exception: the last > name field cannot be left blank. > > Then since the validateHPostal is now passed is throws this exception: > > 2007-02-14 11:23:10,981 [WorkerThread3] DEBUG RegistrationPage - > com.webobjects.foundation.NSValidation$ValidationException: > PostalCode cannot be left blank. > > It should only be throwing this exception: > > [2007-02-14 11:23:10 EST] Validation failed on an > object [java.lang.String] with keypath = registrant.hPostal and > exception: You must provide a valid Canadian postal code or American > zip code > > Does anyone have any idea as to what might be causing the unusual > behaviour? It looks like you have told EOF that your firstName and lastName cannot be NULL. After your form is posted, WO will call validateTakeValueForKey (maybe a bit different spelling) which will do the validation for every key in your EO. Once you save your EditingContext those validating is done again. Set a breakpoint in your validation code and print the back trace. HTH Dave -- _ _ _(_)(_)_ David Wetzel, Turbocat's Development, (_) __ (_) Buchhorster Strasse 23, D-16567 Muehlenbeck/Berlin, FRG, _/ \_ Fax +49 33056 82835 Phone +49 33056 82834 (______) http://www.turbocat.de/ From Ashutoshsharma_Sharma at Satyam.com Wed Feb 14 22:40:14 2007 From: Ashutoshsharma_Sharma at Satyam.com (Ashutoshsharma_Sharma) Date: Wed Feb 14 22:40:52 2007 Subject: Problem using debugger of webobjects5.2 in windows Message-ID: <37C20C87AA99EF4F9CEB4C4CCDFE225FEA995D@bsdmsg004.corp.satyam.ad> Hi all, I am trying to debug the application but debugger doesn't seem to be working in windows version of webobjects. I am able to make the breakpoint but to debug the application line by line buttons to go to the next step is not getting enabled. Anyone having any idea about this let me know how to use debugger? If u can provide the steps that will be great help for me. Do I need to download any patch for this since I found that some patches are available in apple site but they have mentioned that if you are using earlier version of WebObject (i.e. version earlier to webobject5.2 and webobject4.x) you need to download. Thanks & Regards Ashutosh DISCLAIMER: This email (including any attachments) is intended for the sole use of the intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or distribution or forwarding of any or all of the contents in this message is STRICTLY PROHIBITED. If you are not the intended recipient, please contact the sender by email and delete all copies; your cooperation in this regard is appreciated. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman/archive/webobjects-dev/attachments/20070215/b904ce36/attachment.html From hprange at gmail.com Thu Feb 15 05:17:15 2007 From: hprange at gmail.com (Henrique Prange) Date: Thu Feb 15 05:17:25 2007 Subject: Problem using debugger of webobjects5.2 in windows In-Reply-To: <37C20C87AA99EF4F9CEB4C4CCDFE225FEA995D@bsdmsg004.corp.satyam.ad> References: <37C20C87AA99EF4F9CEB4C4CCDFE225FEA995D@bsdmsg004.corp.satyam.ad> Message-ID: <45D45D5B.5080600@gmail.com> Hi, Are you using Eclipse? If not, you should. If you are using Eclipse, are you in the debug perspective? Can you provide more info? Probably your debug problem is not related with WebObjects, but with the chosen IDE instead. Cheers, Henrique Ashutoshsharma_Sharma wrote: > Hi all, > > > > I am trying to debug the application but debugger doesn?t seem to be > working in windows version of webobjects. > > I am able to make the breakpoint but to debug the application line by > line buttons to go to the next step is not getting enabled. > > Anyone having any idea about this let me know how to use debugger? If u > can provide the steps that will be great help for me. > > Do I need to download any patch for this since I found that some patches > are available in apple site but they have mentioned that if you are > using earlier version of WebObject (i.e. version earlier to webobject5.2 > and webobject4.x) you need to download. > > > > Thanks & Regards > > Ashutosh > > > > DISCLAIMER: > This email (including any attachments) is intended for the sole use of > the intended recipient/s and may contain material that is CONFIDENTIAL > AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or > copying or distribution or forwarding of any or all of the contents in > this message is STRICTLY PROHIBITED. If you are not the intended > recipient, please contact the sender by email and delete all copies; > your cooperation in this regard is appreciated.. > > > ------------------------------------------------------------------------ > > _______________________________________________ > WebObjects-dev mailing list > WebObjects-dev@omnigroup.com > http://www.omnigroup.com/mailman/listinfo/webobjects-dev -- \o/ Henrique Prange, Moleque de Id?ias Educa??o e Tecnologia Ltda | Phone: 55-21-2710-0178 E-mail: hprange@moleque.com.br / \ http://www.moleque.com.br From fisherja at gmail.com Thu Feb 15 05:59:01 2007 From: fisherja at gmail.com (Jake Fisher) Date: Thu Feb 15 05:59:04 2007 Subject: Problem using debugger of webobjects5.2 in windows In-Reply-To: <37C20C87AA99EF4F9CEB4C4CCDFE225FEA9BF4@bsdmsg004.corp.satyam.ad> References: <37C20C87AA99EF4F9CEB4C4CCDFE225FEA9BF4@bsdmsg004.corp.satyam.ad> Message-ID: Ashutosh, Your best bet here is to start with the main wiki page for WOLIPs ( http://wiki.objectstyle.org/confluence/display/WOL/Tutorials ) . If your lucky alll you need to do is follow the instructions for installing the WOLips plugin for eclipse and everything should just work (WOLips will help link in all of the webobjects tools and enviroment into eclipse for you). If there are problems after that email back. By the way what version of eclipse are you using, you will need 3.2 . ~jake On 2/15/07, Ashutoshsharma_Sharma wrote: > Jake, > > I am using webobjects5.2 (it comes with project builder as IDE). > I am having eclipse IDE but I don't know how to install and integrate > webobjects with eclipse IDE. > > Can you provide some information on this. > > Thanks > Ashutosh > > -----Original Message----- > From: Jake Fisher [mailto:fisherja@gmail.com] > Sent: Thursday, February 15, 2007 7:19 AM > To: Ashutoshsharma_Sharma > Subject: Re: Problem using debugger of webobjects5.2 in windows > > Ashutosh, > > As far as I am aware the windows version of webobjects debugger is > in general broken, for sure in Webobjects 5.1 on windows xp from > expeirence. A windows install combined with Eclipse and WOLips works > pretty well though :-). > > ~jake > > On 2/15/07, Ashutoshsharma_Sharma > wrote: > > > > > > > > Hi all, > > > > > > > > I am trying to debug the application but debugger doesn't seem to be > working > > in windows version of webobjects. > > > > I am able to make the breakpoint but to debug the application line by > line > > buttons to go to the next step is not getting enabled. > > > > Anyone having any idea about this let me know how to use debugger? If > u can > > provide the steps that will be great help for me. > > > > Do I need to download any patch for this since I found that some > patches are > > available in apple site but they have mentioned that if you are using > > earlier version of WebObject (i.e. version earlier to webobject5.2 and > > webobject4.x) you need to download. > > > > > > > > Thanks & Regards > > > > Ashutosh > > > > > > > > > > > > DISCLAIMER: > > This email (including any attachments) is intended for the sole use of > the > > intended recipient/s and may contain material that is CONFIDENTIAL AND > > PRIVATE COMPANY INFORMATION. Any review or reliance by others or > copying or > > distribution or forwarding of any or all of the contents in this > message is > > STRICTLY PROHIBITED. If you are not the intended recipient, please > contact > > the sender by email and delete all copies; your cooperation in this > regard > > is appreciated.. > > _______________________________________________ > > WebObjects-dev mailing list > > WebObjects-dev@omnigroup.com > > http://www.omnigroup.com/mailman/listinfo/webobjects-dev > > > > > > > > DISCLAIMER: > This email (including any attachments) is intended for the sole use of the intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or distribution or forwarding of any or all of the contents in this message is STRICTLY PROHIBITED. If you are not the intended recipient, please contact the sender by email and delete all copies; your cooperation in this regard is appreciated. > From jdunnett at math.uwaterloo.ca Thu Feb 15 08:46:19 2007 From: jdunnett at math.uwaterloo.ca (Jeff Dunnett) Date: Thu Feb 15 08:46:47 2007 Subject: Validation Being Called Twice In-Reply-To: <20070214204641.9C9601EAE2FF@alice.turbocat.de> References: <20070214204641.9C9601EAE2FF@alice.turbocat.de> Message-ID: <35003ABC-A209-45EB-8BD1-1885DF4CB53E@math.uwaterloo.ca> First of all thanks for answering my question. > > It looks like you have told EOF that your firstName and lastName > cannot be NULL. > After your form is posted, WO will call validateTakeValueForKey > (maybe a bit different spelling) which > will do the validation for every key in your EO. > > Once you save your EditingContext those validating is done again. > > Set a breakpoint in your validation code and print the back trace. > > HTH > > Dave Ok added some stack dumps to my code: First before I call the save changes that calls the validation code: try{ logger.debug("Stack dump 1 - "); Thread.dumpStack(); ec.saveChanges(); }catch(Exception e){ logger.debug(e); s.setErrorMessage(e.getMessage()); ec.revert(); return null; } Then I added some code to produce stack dump in the validation code: public String validateHPostal(String value) throws NSValidation.ValidationException { logger.debug("Stack dump 2 - "); Thread.dumpStack(); logger.debug("Value - " + value); String str = value; logger.debug("String - " + str); if (str == null || str.length() == 0 ){ logger.debug("Value is null so we are throwing exception"); logger.debug(value); throw new NSValidation.ValidationException("PostalCode cannot be left blank."); }else if( Pattern.matches("[A-Z][0-9][A-Z][0-9][A-Z][0-9]", str.subSequence(0, str.length()))){ logger.debug("The string matches a Canadian postal code"); return str = str.substring(0,3) + " " + str.substring(3,6); }else if(Pattern.matches("[A-Z][0-9][A-Z] [0-9][A-Z][0-9]", str.subSequence(0, str.length())) || Pattern.matches("[0-9]{5}(-[0-9] {4})?", str.subSequence(0, str.length()))){ logger.debug("The string is a Postal Code or Zip Code"); return str; }else{ logger.debug("Stack dump 3 - "); Thread.dumpStack(); logger.debug("We are throwing an exception because the registrant did not provide a valid Canadian postal code"); throw new NSValidation.ValidationException("You must provide a valid Canadian postal code or American zip code"); } } Here is the log output: 2007-02-15 11:20:33,310 [WorkerThread4] DEBUG Registrant - Stack dump 2 - java.lang.Exception: Stack trace at java.lang.Thread.dumpStack(Thread.java:1176) at Registrant.validateHPostal(Registrant.java:131) 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._NSReflectionUtilities._invokeMethodOnObject (_NSReflectionUtilities.java:383) at com.webobjects.foundation.NSValidation $_MethodBinding.validateValueOnObject(NSValidation.java:615) at com.webobjects.foundation.NSValidation $DefaultImplementation._validateValueForKey(NSValidation.java:705) at com.webobjects.eocontrol.EOCustomObject.validateValueForKey (EOCustomObject.java:1341) at com.webobjects.foundation.NSValidation $Utility.validateValueForKey(NSValidation.java:526) at com.webobjects.foundation.NSValidation $DefaultImplementation.validateTakeValueForKeyPath(NSValidation.java: 729) at com.webobjects.eocontrol.EOCustomObject.validateTakeValueForKeyPath (EOCustomObject.java:1363) at com.webobjects.foundation.NSValidation $Utility.validateTakeValueForKeyPath(NSValidation.java:551) at com.webobjects.foundation.NSValidation $DefaultImplementation.validateTakeValueForKeyPath(NSValidation.java: 741) at com.webobjects.appserver.WOComponent.validateTakeValueForKeyPath (WOComponent.java:1273) at com.webobjects.appserver._private.WOKeyValueAssociation.setValue (WOKeyValueAssociation.java:71) at com.webobjects.appserver._private.WOTextField.takeValuesFromRequest (WOTextField.java:81) at com.webobjects.appserver._private.WODynamicGroup.takeChildrenValuesFromR equest(WODynamicGroup.java:81) at com.webobjects.appserver._private.WODynamicGroup.takeValuesFromRequest (WODynamicGroup.java:89) at com.webobjects.appserver._private.WOForm.takeValuesFromRequest (WOForm.java:70) at com.webobjects.appserver._private.WODynamicGroup.takeChildrenValuesFromR equest(WODynamicGroup.java:81) at com.webobjects.appserver._private.WODynamicGroup.takeValuesFromRequest (WODynamicGroup.java:89) at com.webobjects.appserver._private.WOComponentContent.takeValuesFromReque st(WOComponentContent.java:20) at com.webobjects.appserver._private.WODynamicGroup.takeChildrenValuesFromR equest(WODynamicGroup.java:81) at com.webobjects.appserver._private.WODynamicGroup.takeValuesFromRequest (WODynamicGroup.java:89) at com.webobjects.appserver.WOComponent.takeValuesFromRequest (WOComponent.java:914) at com.webobjects.appserver._private.WOComponentRef