From emperor.amit.singh at gmail.com Thu Apr 5 23:26:07 2007 From: emperor.amit.singh at gmail.com (Amit Singh) Date: Thu Apr 5 23:26:11 2007 Subject: WebObjects and Portlets. Message-ID: Hi All , Has anybody worked on embedding a WebObject component in a jsp or a servlet and deploying it as a portlet on a portal. Is this possible ? Please reply at the earliest if u can find a solution to this . this was a topic of discussion in November 2005 . Somebody was supposed to try this out . Regards, Amit -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman/archive/webobjects-dev/attachments/20070406/342cae4e/attachment.html From bob at apple.com Tue Apr 10 06:54:02 2007 From: bob at apple.com (Bob Frank) Date: Tue Apr 10 07:20:30 2007 Subject: MEETING: Chicago CocoaHeads / CAWUG Tuesday 4/10 - BaseTen Message-ID: <91E3F836-B7E0-40EA-B1C6-823BA47EAE97@apple.com> Hi all, Just a quick reminder. Tonight Jon will be talking about BaseTen. Hope to see you there. The Chicago CocoaHeads / Chicago Cocoa and WebObjects User Group (CAWUG) is holding our next meeting this coming Tuesday, April 10th, at 6:00 PM at the Apple Store on Michigan Ave. Agenda: - Introductions & Announcements - Jon 'Wolf' Rentzsch on BaseTen - Q & A - adjournment to O'Toole's When: Tuesday, March 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: 5/8/07 & no June Meeting WWDC 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 From tony at superfetch.com Wed Apr 11 08:21:07 2007 From: tony at superfetch.com (Tony Hoffman) Date: Wed Apr 11 08:31:09 2007 Subject: Site Load Problem Message-ID: I've tried finding this on the lists but it's a hard one to get the right words to search for. Basically, I have a site that has developed a recent problem that didn't exist earlier. I am using a redirect URL through Network Solutions that points to my site. (www.hometeamhockey.com) When I type in the url the page starts to load then never finishes. Here's where it gets odd. If I stop the page load then hit refresh and now the page instantly loads. I have the same experience in different browsers, after clearing the cache, and if I go around Network Solutions web forwarding to: 207.38.45.227/cgi-bin/WebObjects/HomeTeamHockey.woa/ I feel like this has something to do with sessions or the application setting, but as I said I can't find exactly or approximately this problem. Anybody have any ideas? Tony Hoffman Dog Eat Dog Advertising, Inc. 67 West Chippewa Street, Suite 100 Buffalo, New York 14202-2010 Phone: 716-856-0142 / Fax: 716-856-0176 www.superfetch.com -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman/archive/webobjects-dev/attachments/20070411/f001702a/attachment.html From zdbwo at Dartmouth.EDU Thu Apr 19 11:12:54 2007 From: zdbwo at Dartmouth.EDU (Zak Burke) Date: Thu Apr 19 11:13:15 2007 Subject: NPE deep in EOEntity Message-ID: <4627B126.3050504@dartmouth.edu> Any idea what could cause the following exception? A corrupt model file, maybe? (Although Entity Modeler loads it fine...) Is there a way to get WO to tell me what relationship-path is failing? I don't normally make statements like, "I SWEAR I didn't change ANYTHING, but now teh app is BROKE! WO is teh suck! PLEASE HELP!!!!!" but I'm kinda lost here. My model hasn't changed in ages, but suddenly my app won't run. The last method called in my project, org.thei3p.fetch.I3pFetch.get(I3pFetch.java:126) is a pretty straightforward fetch retrieving all EOs of a certain class. The rows in that table, likewise, haven't changed in a long time. TIA, zak. Apr 19 13:50:54 i3p-cms[2003] (ERXNSLogLog4jBridge.java:41) WARN NSLog - A fatal exception occurred: null [2007-04-19 13:50:54 EDT]
java.lang.NullPointerException at com.webobjects.eoaccess.EOEntity._parseRelationshipPath(EOEntity.java:2867) at com.webobjects.eoaccess.EORelationship.setDefinition(EORelationship.java:1237) at com.webobjects.eoaccess.EORelationship.awakeWithPropertyList(EORelationship.java:875) at com.webobjects.eoaccess.EOEntity.relationships(EOEntity.java:854) at com.webobjects.eoaccess.EOEntity.relationshipNamed(EOEntity.java:708) at com.webobjects.eoaccess.EOEntity.classProperties(EOEntity.java:887) at er.extensions.ERXModelGroup.adjustLocalizedAttributes(ERXModelGroup.java:511) at er.extensions.ERXModelGroup.adjustLocalizedAttributes(ERXModelGroup.java:504) at er.extensions.ERXModelGroup.loadModelsFromLoadedBundles(ERXModelGroup.java:183) at er.extensions.ERXExtensions.defaultModelGroup(ERXExtensions.java:83) 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.NSSelector._safeInvokeMethod(NSSelector.java:120) at com.webobjects.foundation._NSDelegate._perform(_NSDelegate.java:225) at com.webobjects.foundation._NSDelegate.perform(_NSDelegate.java:158) at com.webobjects.eoaccess.EOModelGroup.defaultGroup(EOModelGroup.java:365) at com.webobjects.eoaccess.EOModelGroup.modelGroupForObjectStoreCoordinator(EOModelGroup.java:887) at com.webobjects.eoaccess.EODatabaseContext._cooperatingObjectStoreNeeded(EODatabaseContext.java:1264) 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.NSSelector._safeInvokeMethod(NSSelector.java:120) at com.webobjects.foundation.NSNotificationCenter$_Entry.invokeMethod(NSNotificationCenter.java:601) at com.webobjects.foundation.NSNotificationCenter.postNotification(NSNotificationCenter.java:545) at com.webobjects.foundation.NSNotificationCenter.postNotification(NSNotificationCenter.java:575) at com.webobjects.eocontrol.EOObjectStoreCoordinator.requestStore(EOObjectStoreCoordinator.java:213) at com.webobjects.eocontrol.EOObjectStoreCoordinator.objectStoreForFetchSpecification(EOObjectStoreCoordinator.java:293) at com.webobjects.eocontrol.EOObjectStoreCoordinator.objectsWithFetchSpecification(EOObjectStoreCoordinator.java:530) at com.webobjects.eocontrol.EOEditingContext.objectsWithFetchSpecification(EOEditingContext.java:4114) at com.webobjects.eocontrol.EOEditingContext.objectsWithFetchSpecification(EOEditingContext.java:4500) at org.thei3p.fetch.I3pFetch.get(I3pFetch.java:126) at org.thei3p.fetch.CmsFetch.templates(CmsFetch.java:357) at org.thei3p.CmsApplication.chromeTemplates(CmsApplication.java:282) at org.thei3p.CmsApplication.cacheInit(CmsApplication.java:261) at org.thei3p.CmsApplication.(CmsApplication.java:92) at org.thei3p.cms.Application.(Application.java:86) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:494) at java.lang.Class.newInstance0(Class.java:350) at java.lang.Class.newInstance(Class.java:303) at com.webobjects.appserver.WOApplication.main(WOApplication.java:323) at er.extensions.ERXApplication.main(ERXApplication.java:401) at org.thei3p.cms.Application.main(Application.java:68) 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._bootstrap.WOBootstrap.main(WOBootstrap.java:71) From mschrag at mdimension.com Thu Apr 19 11:23:31 2007 From: mschrag at mdimension.com (Mike Schrag) Date: Thu Apr 19 11:23:57 2007 Subject: NPE deep in EOEntity In-Reply-To: <4627B126.3050504@dartmouth.edu> References: <4627B126.3050504@dartmouth.edu> Message-ID: Check for a bug in a flattened relationship definition ... If you run with Wonder src, you can add a debug println in ERXModelGroup.adjustLocalizedAttributes to print out the entity name that it's failing in to narrow your search. You can also grep definition *.plist in your .eomodeld folder and see if anything looks particularly weird. ms On Apr 19, 2007, at 2:12 PM, Zak Burke wrote: > Any idea what could cause the following exception? A corrupt model > file, maybe? (Although Entity Modeler loads it fine...) Is there a > way to get WO to tell me what relationship-path is failing? > > I don't normally make statements like, "I SWEAR I didn't change > ANYTHING, but now teh app is BROKE! WO is teh suck! PLEASE > HELP!!!!!" but I'm kinda lost here. My model hasn't changed in > ages, but suddenly my app won't run. > > The last method called in my project, org.thei3p.fetch.I3pFetch.get > (I3pFetch.java:126) is a pretty straightforward fetch retrieving > all EOs of a certain class. The rows in that table, likewise, > haven't changed in a long time. > > TIA, > > zak. > > > > Apr 19 13:50:54 i3p-cms[2003] (ERXNSLogLog4jBridge.java:41) WARN > NSLog - A fatal exception occurred: null > [2007-04-19 13:50:54 EDT]
java.lang.NullPointerException > at > com.webobjects.eoaccess.EOEntity._parseRelationshipPath > (EOEntity.java:2867) > at > com.webobjects.eoaccess.EORelationship.setDefinition > (EORelationship.java:1237) > at > com.webobjects.eoaccess.EORelationship.awakeWithPropertyList > (EORelationship.java:875) > at > com.webobjects.eoaccess.EOEntity.relationships(EOEntity.java:854) > at > com.webobjects.eoaccess.EOEntity.relationshipNamed(EOEntity.java:708) > at > com.webobjects.eoaccess.EOEntity.classProperties(EOEntity.java:887) > at > er.extensions.ERXModelGroup.adjustLocalizedAttributes > (ERXModelGroup.java:511) > at > er.extensions.ERXModelGroup.adjustLocalizedAttributes > (ERXModelGroup.java:504) > at > er.extensions.ERXModelGroup.loadModelsFromLoadedBundles > (ERXModelGroup.java:183) > at > er.extensions.ERXExtensions.defaultModelGroup(ERXExtensions.java:83) > 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.NSSelector._safeInvokeMethod > (NSSelector.java:120) > at > com.webobjects.foundation._NSDelegate._perform(_NSDelegate.java:225) > at > com.webobjects.foundation._NSDelegate.perform(_NSDelegate.java:158) > at > com.webobjects.eoaccess.EOModelGroup.defaultGroup(EOModelGroup.java: > 365) > at > com.webobjects.eoaccess.EOModelGroup.modelGroupForObjectStoreCoordinat > or(EOModelGroup.java:887) > at > com.webobjects.eoaccess.EODatabaseContext._cooperatingObjectStoreNeede > d(EODatabaseContext.java:1264) > 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.NSSelector._safeInvokeMethod > (NSSelector.java:120) > at > com.webobjects.foundation.NSNotificationCenter$_Entry.invokeMethod > (NSNotificationCenter.java:601) > at > com.webobjects.foundation.NSNotificationCenter.postNotification > (NSNotificationCenter.java:545) > at > com.webobjects.foundation.NSNotificationCenter.postNotification > (NSNotificationCenter.java:575) > at > com.webobjects.eocontrol.EOObjectStoreCoordinator.requestStore > (EOObjectStoreCoordinator.java:213) > at > com.webobjects.eocontrol.EOObjectStoreCoordinator.objectStoreForFetchS > pecification(EOObjectStoreCoordinator.java:293) > at > com.webobjects.eocontrol.EOObjectStoreCoordinator.objectsWithFetchSpec > ification(EOObjectStoreCoordinator.java:530) > at > com.webobjects.eocontrol.EOEditingContext.objectsWithFetchSpecificatio > n(EOEditingContext.java:4114) > at > com.webobjects.eocontrol.EOEditingContext.objectsWithFetchSpecificatio > n(EOEditingContext.java:4500) > at org.thei3p.fetch.I3pFetch.get(I3pFetch.java:126) > at org.thei3p.fetch.CmsFetch.templates(CmsFetch.java:357) > at > org.thei3p.CmsApplication.chromeTemplates(CmsApplication.java:282) > at org.thei3p.CmsApplication.cacheInit(CmsApplication.java: > 261) > at org.thei3p.CmsApplication.(CmsApplication.java:92) > at org.thei3p.cms.Application.(Application.java:86) > at > sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) > at > sun.reflect.NativeConstructorAccessorImpl.newInstance > (NativeConstructorAccessorImpl.java:39) > at > sun.reflect.DelegatingConstructorAccessorImpl.newInstance > (DelegatingConstructorAccessorImpl.java:27) > at > java.lang.reflect.Constructor.newInstance(Constructor.java:494) > at java.lang.Class.newInstance0(Class.java:350) > at java.lang.Class.newInstance(Class.java:303) > at > com.webobjects.appserver.WOApplication.main(WOApplication.java:323) > at er.extensions.ERXApplication.main(ERXApplication.java:401) > at org.thei3p.cms.Application.main(Application.java:68) > 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._bootstrap.WOBootstrap.main(WOBootstrap.java:71) > > _______________________________________________ > WebObjects-dev mailing list > WebObjects-dev@omnigroup.com > http://www.omnigroup.com/mailman/listinfo/webobjects-dev From zdbwo at Dartmouth.EDU Thu Apr 19 11:53:44 2007 From: zdbwo at Dartmouth.EDU (Zak Burke) Date: Thu Apr 19 11:53:56 2007 Subject: NPE deep in EOEntity In-Reply-To: References: <4627B126.3050504@dartmouth.edu> Message-ID: <4627BAB8.8000704@dartmouth.edu> Mike Schrag wrote on 4/19/07 2:23 PM: > Check for a bug in a flattened relationship definition ... If you run > with Wonder src, you can add a debug println in > ERXModelGroup.adjustLocalizedAttributes to print out the entity name > that it's failing in to narrow your search. You can also grep > definition *.plist in your .eomodeld folder and see if anything looks > particularly weird. Examining my flattened relationships, nothing looked funny, but I zapped 'em anyway just for grins. The app started. (Great!) Then I started restoring the relationships one by one. Each time, the app started. (Great!) And finally I had restored all the relationships, and the app started. (Great! Wait, what the...?) My model is now fully restored from CVS, and everything works correctly, just like it always did. I must have fallen down a rabbit hole. Or more likely, Eclipse wasn't correctly updating its build directory. Thanks for the help, zak. > On Apr 19, 2007, at 2:12 PM, Zak Burke wrote: > >> Any idea what could cause the following exception? A corrupt model >> file, maybe? (Although Entity Modeler loads it fine...) Is there a way >> to get WO to tell me what relationship-path is failing? >> >> I don't normally make statements like, "I SWEAR I didn't change >> ANYTHING, but now teh app is BROKE! WO is teh suck! PLEASE HELP!!!!!" >> but I'm kinda lost here. My model hasn't changed in ages, but suddenly >> my app won't run. >> >> The last method called in my project, >> org.thei3p.fetch.I3pFetch.get(I3pFetch.java:126) is a pretty >> straightforward fetch retrieving all EOs of a certain class. The rows >> in that table, likewise, haven't changed in a long time. >> >> TIA, >> >> zak. >> >> >> >> Apr 19 13:50:54 i3p-cms[2003] (ERXNSLogLog4jBridge.java:41) WARN >> NSLog - A fatal exception occurred: null >> [2007-04-19 13:50:54 EDT]
java.lang.NullPointerException >> at >> com.webobjects.eoaccess.EOEntity._parseRelationshipPath(EOEntity.java:2867) >> >> at >> com.webobjects.eoaccess.EORelationship.setDefinition(EORelationship.java:1237) >> >> at >> com.webobjects.eoaccess.EORelationship.awakeWithPropertyList(EORelationship.java:875) >> >> at >> com.webobjects.eoaccess.EOEntity.relationships(EOEntity.java:854) >> at >> com.webobjects.eoaccess.EOEntity.relationshipNamed(EOEntity.java:708) >> at >> com.webobjects.eoaccess.EOEntity.classProperties(EOEntity.java:887) >> at >> er.extensions.ERXModelGroup.adjustLocalizedAttributes(ERXModelGroup.java:511) >> >> at >> er.extensions.ERXModelGroup.adjustLocalizedAttributes(ERXModelGroup.java:504) >> >> at >> er.extensions.ERXModelGroup.loadModelsFromLoadedBundles(ERXModelGroup.java:183) >> >> at >> er.extensions.ERXExtensions.defaultModelGroup(ERXExtensions.java:83) >> 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.NSSelector._safeInvokeMethod(NSSelector.java:120) >> >> at >> com.webobjects.foundation._NSDelegate._perform(_NSDelegate.java:225) >> at >> com.webobjects.foundation._NSDelegate.perform(_NSDelegate.java:158) >> at >> com.webobjects.eoaccess.EOModelGroup.defaultGroup(EOModelGroup.java:365) >> at >> com.webobjects.eoaccess.EOModelGroup.modelGroupForObjectStoreCoordinator(EOModelGroup.java:887) >> >> at >> com.webobjects.eoaccess.EODatabaseContext._cooperatingObjectStoreNeeded(EODatabaseContext.java:1264) >> >> 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.NSSelector._safeInvokeMethod(NSSelector.java:120) >> >> at >> com.webobjects.foundation.NSNotificationCenter$_Entry.invokeMethod(NSNotificationCenter.java:601) >> >> at >> com.webobjects.foundation.NSNotificationCenter.postNotification(NSNotificationCenter.java:545) >> >> at >> com.webobjects.foundation.NSNotificationCenter.postNotification(NSNotificationCenter.java:575) >> >> at >> com.webobjects.eocontrol.EOObjectStoreCoordinator.requestStore(EOObjectStoreCoordinator.java:213) >> >> at >> com.webobjects.eocontrol.EOObjectStoreCoordinator.objectStoreForFetchSpecification(EOObjectStoreCoordinator.java:293) >> >> at >> com.webobjects.eocontrol.EOObjectStoreCoordinator.objectsWithFetchSpecification(EOObjectStoreCoordinator.java:530) >> >> at >> com.webobjects.eocontrol.EOEditingContext.objectsWithFetchSpecification(EOEditingContext.java:4114) >> >> at >> com.webobjects.eocontrol.EOEditingContext.objectsWithFetchSpecification(EOEditingContext.java:4500) >> >> at org.thei3p.fetch.I3pFetch.get(I3pFetch.java:126) >> at org.thei3p.fetch.CmsFetch.templates(CmsFetch.java:357) >> at >> org.thei3p.CmsApplication.chromeTemplates(CmsApplication.java:282) >> at org.thei3p.CmsApplication.cacheInit(CmsApplication.java:261) >> at org.thei3p.CmsApplication.(CmsApplication.java:92) >> at org.thei3p.cms.Application.(Application.java:86) >> at >> sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) >> at >> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) >> >> at >> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) >> >> at >> java.lang.reflect.Constructor.newInstance(Constructor.java:494) >> at java.lang.Class.newInstance0(Class.java:350) >> at java.lang.Class.newInstance(Class.java:303) >> at >> com.webobjects.appserver.WOApplication.main(WOApplication.java:323) >> at er.extensions.ERXApplication.main(ERXApplication.java:401) >> at org.thei3p.cms.Application.main(Application.java:68) >> 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._bootstrap.WOBootstrap.main(WOBootstrap.java:71) >> >> _______________________________________________ >> 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 From cristina at bright55.com Wed Apr 25 01:14:49 2007 From: cristina at bright55.com (Cristina Algoni) Date: Wed Apr 25 01:08:02 2007 Subject: NSArray inside a WORepetition Message-ID: <20070425081449.f790b4d7@webmail.bright55.com> Hello. In my application I have a WORepetition and inside of it I have to show a picture and some paragraphs from the database. The paragraphs are stored in a NSArray and they are retrieved at the beginning, in my java code, for the first picture. I don`t how to update the NSArray with paragraphs for every step in the WORepetition. Is this possibile? Or what is the alternative? Cristina. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman/archive/webobjects-dev/attachments/20070425/2f6a9361/attachment.html From paul-hertz at northwestern.edu Wed Apr 25 09:00:50 2007 From: paul-hertz at northwestern.edu (Paul Hertz) Date: Wed Apr 25 09:07:36 2007 Subject: NSArray inside a WORepetition In-Reply-To: <20070425081449.f790b4d7@webmail.bright55.com> References: <20070425081449.f790b4d7@webmail.bright55.com> Message-ID: Cristina, Is each paragraph or block of paragraphs a separate record in the database and a separate item in the NSArray? If that's the case, you just need to iterate over the NSArray with the WORepetition and pop the current item into the iteration variable, typecasting the Object from the NSArray as necessary. -- Paul At 10:14 AM +0200 4/25/07, Cristina Algoni wrote: >Hello. > >In my application I have a WORepetition and inside of it I have to show a >picture and some paragraphs from the database. The paragraphs are stored in >a NSArray and they are retrieved at the beginning, in my java code, for the >first picture. I don`t how to update the NSArray with paragraphs for every >step in the WORepetition. Is this possibile? Or what is the alternative? > >Cristina. > >_______________________________________________ >WebObjects-dev mailing list >WebObjects-dev@omnigroup.com >http://www.omnigroup.com/mailman/listinfo/webobjects-dev -- Paul Hertz |(*,+,#,=)(#,=,*,+)(=,#,+,*)(+,*,=,#)| From bgarnett at blueyonder.co.uk Thu Apr 26 06:26:18 2007 From: bgarnett at blueyonder.co.uk (WILLIAM GARNETT) Date: Thu Apr 26 06:27:06 2007 Subject: Blobs Message-ID: <4630A87A.000003.04468@BILL> Hello every one; I am trying to find out how to save / fetch BLOBs. (I use MySQL) I have a table of companies and I want to save each company's logo as a BLOB The intention is to set up a seperate table which holds only the blobs, and set up a one-to-one relationship Company <-> Logos. (Don't want BLOB fetched when fetching each company to avoid overhead - only want to fetch BLOB when required). Can some one tell me how to do this please. Some sample code would be great. Thank you. Cheers, Bill. From kieran_lists at mac.com Thu Apr 26 06:58:44 2007 From: kieran_lists at mac.com (Kieran Kelleher) Date: Thu Apr 26 06:58:53 2007 Subject: Blobs In-Reply-To: <4630A87A.000003.04468@BILL> References: <4630A87A.000003.04468@BILL> Message-ID: Pick a blob size that suits. I use mediumblob for user uploaded images. Look at mysql docs to see the bytesize for each type. In /etc/ my.cnf you need to set a property for the maximum blob size.... by default, it may be too small. See the example my.cnf files supplied in the MySQL installation. The blob simply maps to type NSData. So you can just use setMyImage ( NSData anImage ); or takeValueForKey as with any object. NSData can be constructed form a Stream. For form upload, use WOFileUpload and it has bindings it sets for you such as the final file path and the mime type which you can grab. Store the mime type in the db with the image for use in WOImage or for headers in direct action responses to imageID. See Apple WebObjects examples for WOFileUpload in your Developer folder. Gotchas: 1) Don't forget to set enctype on the form. 2) When editing an image object, override takeValuesFromRequest and only set the image if a new one was actually updated. if you bind directly, then your existing image will be nulled when someone edits an existing EO. Here is example of a table for images: CREATE TABLE `image` ( `content` mediumblob, `mimetype` varchar(255) default NULL, `oid` int(11) NOT NULL default '0', `pixelheight` int(11) default NULL, `pixelwidth` int(11) default NULL, PRIMARY KEY (`oid`) ) ENGINE=InnoDB; That's all I can think of from top of my head (pixel measurements are optional ...... use one library or another to get this info form uploaded image. I like sips (do 'man sips' on the command line) Cheers, Kieran On Apr 26, 2007, at 9:26 AM, WILLIAM GARNETT wrote: > Hello every one; > > > > I am trying to find out how to save / fetch BLOBs. (I use MySQL) > > > > I have a table of companies and I want to save each company's logo > as a BLOB > The intention is to set up a seperate table which holds only the > blobs, and > set up a one-to-one relationship Company <-> Logos. (Don't want > BLOB fetched > when fetching each company to avoid overhead - only want to fetch > BLOB when > required). > > > > Can some one tell me how to do this please. Some sample code would > be great. > > > > Thank you. > > > > Cheers, > > Bill. > > > _______________________________________________ > WebObjects-dev mailing list > WebObjects-dev@omnigroup.com > http://www.omnigroup.com/mailman/listinfo/webobjects-dev From kieran_lists at mac.com Thu Apr 26 07:10:55 2007 From: kieran_lists at mac.com (Kieran Kelleher) Date: Thu Apr 26 07:11:05 2007 Subject: Blobs In-Reply-To: References: <4630A87A.000003.04468@BILL> Message-ID: read 'if a new one was actually uploaded' On Apr 26, 2007, at 9:58 AM, Kieran Kelleher wrote: > if a new one was actually updated From cheonghee at datasonic.com.my Fri Apr 27 02:50:22 2007 From: cheonghee at datasonic.com.my (Cheong Hee (Datasonic)) Date: Fri Apr 27 02:52:47 2007 Subject: NSArray inside a WORepetition References: <20070425081449.f790b4d7@webmail.bright55.com> Message-ID: <003001c788b1$7b76a330$2900000a@CHNGXP> Maybe this could be of help: personDisplayGroup.setObjectArray(reportPersons); In each update, you could set the array any time with the array you are interested. Cheers Cheong Hee ----- Original Message ----- From: Cristina Algoni To: webobjects-dev@omnigroup.com Sent: Wednesday, April 25, 2007 4:14 PM Subject: NSArray inside a WORepetition Hello. In my application I have a WORepetition and inside of it I have to show a picture and some paragraphs from the database. The paragraphs are stored in a NSArray and they are retrieved at the beginning, in my java code, for the first picture. I don`t how to update the NSArray with paragraphs for every step in the WORepetition. Is this possibile? Or what is the alternative? Cristina. ------------------------------------------------------------------------------ _______________________________________________ WebObjects-dev mailing list WebObjects-dev@omnigroup.com http://www.omnigroup.com/mailman/listinfo/webobjects-dev -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman/archive/webobjects-dev/attachments/20070427/92b57e48/attachment.html From m3oliver at uwaterloo.ca Sun Apr 29 19:47:12 2007 From: m3oliver at uwaterloo.ca (Matthew Oliver) Date: Sun Apr 29 20:58:28 2007 Subject: Project Wonder and SMTPs In-Reply-To: <20070429232322.A83881689B4@forums.omnigroup.com> References: <20070429232322.A83881689B4@forums.omnigroup.com> Message-ID: Does anyone know how to send secure mail using Project Wonder. I would like to relay messages to mail server that accepts secure (smtps) connections on port 465. Currently I'm seeing output like this when I attempt to send mail. DEBUG: setDebug: JavaMail version 1.4ea DEBUG: getProvider() returning javax.mail.Provider [TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc] DEBUG SMTP: useEhlo true, useAuth true DEBUG SMTP: trying to connect to host "REMOVED", port 25, isSSL false I am using the following lines in my properties file to configure the app # * SMTP outbound host er.javamail.setupSmtpHostSafely = true er.javamail.smtpHost = REMOVED er.javamail.smtpAuth = true er.javamail.smtpUser = REMOVED er.javamail.smtpPassword = REMOVED any help would be greatly appreciated! -Matt -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman/archive/webobjects-dev/attachments/20070429/2d8b2163/attachment.html From mschrag at mdimension.com Sun Apr 29 22:05:14 2007 From: mschrag at mdimension.com (Mike Schrag) Date: Sun Apr 29 22:05:39 2007 Subject: Project Wonder and SMTPs In-Reply-To: References: <20070429232322.A83881689B4@forums.omnigroup.com> Message-ID: <28852740-D54C-4BC6-887E-EAC802D72DB8@mdimension.com> This should be on the wonder-disc list, but: (assuming you're using a somewhat recent wonder) er.javamail.smtpProtocol=smtps and possibly: mail.smtps.socketFactory.fallback=false ms On Apr 29, 2007, at 10:47 PM, Matthew Oliver wrote: > Does anyone know how to send secure mail using Project Wonder. > I would like to relay messages to mail server that accepts secure > (smtps) connections on port 465. > > Currently I'm seeing output like this when I attempt to send mail. > > DEBUG: setDebug: JavaMail version 1.4ea > DEBUG: getProvider() returning javax.mail.Provider > [TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc] > DEBUG SMTP: useEhlo true, useAuth true > DEBUG SMTP: trying to connect to host "REMOVED", port 25, isSSL false > > > I am using the following lines in my properties file to configure > the app > > # * SMTP outbound host > er.javamail.setupSmtpHostSafely = true > er.javamail.smtpHost = REMOVED > er.javamail.smtpAuth = true > er.javamail.smtpUser = REMOVED > er.javamail.smtpPassword = REMOVED > > > any help would be greatly appreciated! > -Matt > _______________________________________________ > WebObjects-dev mailing list > WebObjects-dev@omnigroup.com > http://www.omnigroup.com/mailman/listinfo/webobjects-dev -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman/archive/webobjects-dev/attachments/20070430/ca0d39f1/attachment.html