Re: WebObjects 5.4.3 and SQL Server 2005
2009/9/23 David Avendasora webobje...@avendasora.com: On Sep 22, 2009, at 11:29 AM, Freddie Tilley wrote: Value class of type NSNumber does not work for me, using a value class of java.lang.Boolean does. What are the results if you use NSNumber? You could also try Number or java.lang.Number I'm suspicious of the Boolean setting... When using a java.lang.Number I get a class cast exception, integer cannot be cast to java.lang.Boolean attachment: screenshot.gif ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Connector/J 5.1, Euro Symbol as '?'
Hi all, I've been having a real problem over the past 12 months with my WebObjects and mySQL installation. It has been getting gradually worse to the point now where the apps crash every 10 or 15 mins. The are crashing out with Java.OutOfHeapSpace errors. We've tried everything to increase the heap space but has made no difference. The fact that it is has gradually gotten worse over time indicates to me that as the database is growing the problem is getting worse. I tried last night to update the Connecter/J adaptor to version 5.1 as we were using an older one and I thought that might help. It hasn't in fact, and what it has done is make all the € symbols appear as '?'. I know this has to do with the encoding and I want it all to be UTF8 but I can't seem to work out how the hell to get them to display properly. They all displayed perfectly before I changed the adaptor. On the other hand, I really need to find a solution to this problem where the apps are crashing and I am very tight for time. I am prepared to pay someone to track down this problem for me. Any takers? Kind regards, David. ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Connector/J 5.1, Euro Symbol as '?'
sounds suspiciously like you are fetching your entire database somewhere. i'd start with checking your model. look for a relationship(s) that could accidently fault in an entire table. classic example would be something like a client entity that has a relationship to transactions, and one of your clients has done a gazillion transactions. trip that fault and you'll likely run out of memory as the app tries to fault a gazillion transaction EO's. simon 2009/9/24 David Griffith da...@infinityspain.com: Hi all, I've been having a real problem over the past 12 months with my WebObjects and mySQL installation. It has been getting gradually worse to the point now where the apps crash every 10 or 15 mins. The are crashing out with Java.OutOfHeapSpace errors. We've tried everything to increase the heap space but has made no difference. The fact that it is has gradually gotten worse over time indicates to me that as the database is growing the problem is getting worse. I tried last night to update the Connecter/J adaptor to version 5.1 as we were using an older one and I thought that might help. It hasn't in fact, and what it has done is make all the € symbols appear as '?'. I know this has to do with the encoding and I want it all to be UTF8 but I can't seem to work out how the hell to get them to display properly. They all displayed perfectly before I changed the adaptor. On the other hand, I really need to find a solution to this problem where the apps are crashing and I am very tight for time. I am prepared to pay someone to track down this problem for me. Any takers? Kind regards, David. ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/simon%40potwells.co.uk This email sent to si...@potwells.co.uk ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Connector/J 5.1, Euro Symbol as '?'
Hi again David, Regarding App Oout of memory: App out of memory commonly is caused in WO apps by reading in too many EOs (display group or possibly a huge faulted relationship) or too many concurrent sessions and needs profiling or at least strategic logging to see what is happening in production. If the problem can be simulated in development environment, it will be easier to resolve. Wonder has some features that allow free memory tracking, memory reserve, temporary refusing sessions in low-memory conditions and forced garbage collection. To give you breathing room to troubleshoot you should have maxed out memory per instance. I think 1536 is the max for 32-bit system, so WOMonitor args should be sth like this: -Xms1024m -Xmx1536m I am very tight on time myself, but if no one offers to get their hands on to track this down in the next 24 hours, I might be able to help tomorrow (Friday) let me know if that is the case. Regards, Kieran On Sep 24, 2009, at 4:36 AM, David Griffith wrote: Hi all, I've been having a real problem over the past 12 months with my WebObjects and mySQL installation. It has been getting gradually worse to the point now where the apps crash every 10 or 15 mins. The are crashing out with Java.OutOfHeapSpace errors. We've tried everything to increase the heap space but has made no difference. The fact that it is has gradually gotten worse over time indicates to me that as the database is growing the problem is getting worse. I tried last night to update the Connecter/J adaptor to version 5.1 as we were using an older one and I thought that might help. It hasn't in fact, and what it has done is make all the € symbols appear as '?'. I know this has to do with the encoding and I want it all to be UTF8 but I can't seem to work out how the hell to get them to display properly. They all displayed perfectly before I changed the adaptor. On the other hand, I really need to find a solution to this problem where the apps are crashing and I am very tight for time. I am prepared to pay someone to track down this problem for me. Any takers? Kind regards, David. ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/kieran_lists%40mac.com This email sent to kieran_li...@mac.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Connector/J 5.1, Euro Symbol as '?'
Get the 15 day trial of JProfiler and use remote profiling to connect to your app -- you can see where the memory is going and who is holding references. On your remote server, just copy up your JProfiler bin folder, then add: export DYLD_LIBRARY_PATH=/path/to/jprofiler/bin/macos:$ {DYLD_LIBRARY_PATH}; and in your java launch line, add: -agentlib:jprofilerti=port=8849 -Xbootclasspath/a:/path/to/jprofiler/ bin/agent.jar to the launch script ... you can then remotely connect to your app instance w/ JProfiler. On Sep 24, 2009, at 4:36 AM, David Griffith wrote: Hi all, I've been having a real problem over the past 12 months with my WebObjects and mySQL installation. It has been getting gradually worse to the point now where the apps crash every 10 or 15 mins. The are crashing out with Java.OutOfHeapSpace errors. We've tried everything to increase the heap space but has made no difference. The fact that it is has gradually gotten worse over time indicates to me that as the database is growing the problem is getting worse. I tried last night to update the Connecter/J adaptor to version 5.1 as we were using an older one and I thought that might help. It hasn't in fact, and what it has done is make all the € symbols appear as '?'. I know this has to do with the encoding and I want it all to be UTF8 but I can't seem to work out how the hell to get them to display properly. They all displayed perfectly before I changed the adaptor. On the other hand, I really need to find a solution to this problem where the apps are crashing and I am very tight for time. I am prepared to pay someone to track down this problem for me. Any takers? Kind regards, David. ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/mschrag%40mdimension.com This email sent to msch...@mdimension.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Connector/J 5.1, Euro Symbol as '?'
Thanks Kieran, I might have to take you up on that. I've been thinking that it must be something to do with too many records been read in but I can't see where that could be happening. I'll try adding the encoding string to the EOModel connection and see if that helps. I've just tried changing back to the old adaptor but doesn't seem to have helped either. Regards, David. On 24 Sep 2009, at 12:46, Kieran Kelleher wrote: Hi again David, Regarding App Oout of memory: App out of memory commonly is caused in WO apps by reading in too many EOs (display group or possibly a huge faulted relationship) or too many concurrent sessions and needs profiling or at least strategic logging to see what is happening in production. If the problem can be simulated in development environment, it will be easier to resolve. Wonder has some features that allow free memory tracking, memory reserve, temporary refusing sessions in low-memory conditions and forced garbage collection. To give you breathing room to troubleshoot you should have maxed out memory per instance. I think 1536 is the max for 32-bit system, so WOMonitor args should be sth like this: -Xms1024m -Xmx1536m I am very tight on time myself, but if no one offers to get their hands on to track this down in the next 24 hours, I might be able to help tomorrow (Friday) let me know if that is the case. Regards, Kieran On Sep 24, 2009, at 4:36 AM, David Griffith wrote: Hi all, I've been having a real problem over the past 12 months with my WebObjects and mySQL installation. It has been getting gradually worse to the point now where the apps crash every 10 or 15 mins. The are crashing out with Java.OutOfHeapSpace errors. We've tried everything to increase the heap space but has made no difference. The fact that it is has gradually gotten worse over time indicates to me that as the database is growing the problem is getting worse. I tried last night to update the Connecter/J adaptor to version 5.1 as we were using an older one and I thought that might help. It hasn't in fact, and what it has done is make all the € symbols appear as '?'. I know this has to do with the encoding and I want it all to be UTF8 but I can't seem to work out how the hell to get them to display properly. They all displayed perfectly before I changed the adaptor. On the other hand, I really need to find a solution to this problem where the apps are crashing and I am very tight for time. I am prepared to pay someone to track down this problem for me. Any takers? Kind regards, David. ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/kieran_lists%40mac.com This email sent to kieran_li...@mac.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
RE: Connector/J 5.1, Euro Symbol as '?'
This suggestion is definitely not as complete as using Jprofiler, but it is simple. Add SQL Debugging/Logging to your launch parameters: -DEOAdaptorDebugEnabled=true. I usually add it on my development machine and then connect to production but if the issue is one of growing over time, you may have to add it to a production instance. Be prepared to wade through large amounts of output looking for a fetch that is retrieving way too many rows. Obviously, if the issue is not SQL related, this won't help at all. Chris -Original Message- From: webobjects-dev-bounces+chris.lonie=pateam@lists.apple.com [mailto:webobjects-dev-bounces+chris.lonie=pateam@lists.apple.com] On Behalf Of Mike Schrag Sent: Thursday, September 24, 2009 7:20 AM To: Development WebObjects Subject: Re: Connector/J 5.1, Euro Symbol as '?' Get the 15 day trial of JProfiler and use remote profiling to connect to your app -- you can see where the memory is going and who is holding references. On your remote server, just copy up your JProfiler bin folder, then add: export DYLD_LIBRARY_PATH=/path/to/jprofiler/bin/macos:$ {DYLD_LIBRARY_PATH}; and in your java launch line, add: -agentlib:jprofilerti=port=8849 -Xbootclasspath/a:/path/to/jprofiler/ bin/agent.jar to the launch script ... you can then remotely connect to your app instance w/ JProfiler. On Sep 24, 2009, at 4:36 AM, David Griffith wrote: Hi all, I've been having a real problem over the past 12 months with my WebObjects and mySQL installation. It has been getting gradually worse to the point now where the apps crash every 10 or 15 mins. The are crashing out with Java.OutOfHeapSpace errors. We've tried everything to increase the heap space but has made no difference. The fact that it is has gradually gotten worse over time indicates to me that as the database is growing the problem is getting worse. I tried last night to update the Connecter/J adaptor to version 5.1 as we were using an older one and I thought that might help. It hasn't in fact, and what it has done is make all the € symbols appear as '?'. I know this has to do with the encoding and I want it all to be UTF8 but I can't seem to work out how the hell to get them to display properly. They all displayed perfectly before I changed the adaptor. On the other hand, I really need to find a solution to this problem where the apps are crashing and I am very tight for time. I am prepared to pay someone to track down this problem for me. Any takers? Kind regards, David. ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/mschrag%40mdimen sion.com This email sent to msch...@mdimension.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/chris.lonie%40pateam.com This email sent to chris.lo...@pateam.com __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __ ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Updated to 3.5 and now lots of html errors
On Sep 23, 2009, at 11:45 PM, Ramsey Lee Gurley wrote: Of course, this works fine, but it gives me a red X. The trick that worked before was... CheckboxWrapper //VALID : WOGenericContainer { That was a bit of overkill because it disabled validation on the whole WOD, but it did work. Now, that's not working... so, any hints on how to make my red Xs go away? i'm amazed that worked before :) i didn't intentionally disable this, but then i never really intentionally ENABLED it. Valid should definitely not have disabled for the entire WOD -- are you sure it did that? what red 'x' are you getting btw? that elementName is a required binding? if it isn't, then we should remove it from the API validation rules for WOGenericContainer. ms Oh yes, I remember quite distinctly that it would nuke the validation for the whole WOD (^_^) But that was ok, because I got everything else right and never touched it again after I put the // VALID on it. And yeah, the red X is regarding the missing elementName binding. I was surprised, but WOGenericContainer works without it. And in this case, it is the only way I can produce valid XHTML with this component. Those bindings are copied from Apple sample code, comment and all, located at /Developer/Examples/JavaWebObjects/Frameworks/WOComponentElements/wo- resources/Resources/WXCheckBoxList.wo/WXCheckBoxList.wod Ramsey BTW, I looked for a WOGenericContainer.api in ERExtensions. Nothing there, so I guess that's Apple binding validation? I can see why 99% of the time, I would want that validation. Perhaps there is some other way to mark this one instance //VALID? Ramsey smime.p7s Description: S/MIME cryptographic signature ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Updated to 3.5 and now lots of html errors
i'm surprised you can't do CheckboxWrapper : WOGenericContainer { // VALID On Sep 24, 2009, at 7:48 AM, Ramsey Lee Gurley wrote: On Sep 23, 2009, at 11:45 PM, Ramsey Lee Gurley wrote: Of course, this works fine, but it gives me a red X. The trick that worked before was... CheckboxWrapper //VALID : WOGenericContainer { That was a bit of overkill because it disabled validation on the whole WOD, but it did work. Now, that's not working... so, any hints on how to make my red Xs go away? i'm amazed that worked before :) i didn't intentionally disable this, but then i never really intentionally ENABLED it. Valid should definitely not have disabled for the entire WOD -- are you sure it did that? what red 'x' are you getting btw? that elementName is a required binding? if it isn't, then we should remove it from the API validation rules for WOGenericContainer. ms Oh yes, I remember quite distinctly that it would nuke the validation for the whole WOD (^_^) But that was ok, because I got everything else right and never touched it again after I put the // VALID on it. And yeah, the red X is regarding the missing elementName binding. I was surprised, but WOGenericContainer works without it. And in this case, it is the only way I can produce valid XHTML with this component. Those bindings are copied from Apple sample code, comment and all, located at /Developer/Examples/JavaWebObjects/Frameworks/WOComponentElements/ wo-resources/Resources/WXCheckBoxList.wo/WXCheckBoxList.wod Ramsey BTW, I looked for a WOGenericContainer.api in ERExtensions. Nothing there, so I guess that's Apple binding validation? I can see why 99% of the time, I would want that validation. Perhaps there is some other way to mark this one instance //VALID? Ramsey ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Updated to 3.5 and now lots of html errors
I've tried in all of the following places (one at a time) with no luck, //VALID CheckboxWrapper //VALID : //VALID WOGenericContainer //VALID { //VALID // ** Because there's no elementName, this is an invisible wrapper element. elementID = wrapperElementID; name = context.elementID; formValues = selections; //VALID } //VALID I've also just discovered that bindings like HTML: WOGenericContainer { elementName = html; xml:lang = languageCode; xmlns = http://www.w3.org/1999/xhtml;; } No longer work in 3.5. They still parse fine in the WOD, but they're throwing exceptions in the app. Fortunately, reverting back to this still works for me HTML: WOGenericContainer { elementName = html; xml:lang = languageCode; xmlns = http://www.w3.org/1999/xhtml;; } On Sep 24, 2009, at 8:01 AM, Mike Schrag wrote: i'm surprised you can't do CheckboxWrapper : WOGenericContainer { // VALID On Sep 24, 2009, at 7:48 AM, Ramsey Lee Gurley wrote: On Sep 23, 2009, at 11:45 PM, Ramsey Lee Gurley wrote: Of course, this works fine, but it gives me a red X. The trick that worked before was... CheckboxWrapper //VALID : WOGenericContainer { That was a bit of overkill because it disabled validation on the whole WOD, but it did work. Now, that's not working... so, any hints on how to make my red Xs go away? i'm amazed that worked before :) i didn't intentionally disable this, but then i never really intentionally ENABLED it. Valid should definitely not have disabled for the entire WOD -- are you sure it did that? what red 'x' are you getting btw? that elementName is a required binding? if it isn't, then we should remove it from the API validation rules for WOGenericContainer. ms Oh yes, I remember quite distinctly that it would nuke the validation for the whole WOD (^_^) But that was ok, because I got everything else right and never touched it again after I put the // VALID on it. And yeah, the red X is regarding the missing elementName binding. I was surprised, but WOGenericContainer works without it. And in this case, it is the only way I can produce valid XHTML with this component. Those bindings are copied from Apple sample code, comment and all, located at /Developer/Examples/JavaWebObjects/Frameworks/WOComponentElements/ wo-resources/Resources/WXCheckBoxList.wo/WXCheckBoxList.wod Ramsey BTW, I looked for a WOGenericContainer.api in ERExtensions. Nothing there, so I guess that's Apple binding validation? I can see why 99% of the time, I would want that validation. Perhaps there is some other way to mark this one instance //VALID? Ramsey ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/rgurley %40mac.com This email sent to rgur...@mac.com smime.p7s Description: S/MIME cryptographic signature ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Updated to 3.5 and now lots of html errors
No longer work in 3.5. They still parse fine in the WOD, but they're throwing exceptions in the app. Fortunately, reverting back to this still works for me HTML: WOGenericContainer { elementName = html; xml:lang = languageCode; xmlns = http://www.w3.org/1999/xhtml;; } not sure how WOLips/Eclipse would impact this at all ... certainly validating, yes, but runtime-wise, we don't have anything to do with it. That syntax is sort of weird, though -- you're competing with binding namespaces using real xml namespaces. It's expecting a loc:name=locKey. file jiras, if you would ms ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
GRR, still the logout method not working.
This is an old post, and there are many related, but I hand't found something that might help me. I created a logout WOComponent, which has only LogOut Successful thats it. in the UserMainPage WOComponent, there is a WOHyperLink with an action binding to a logOut method, which is doing the follwoing: Bonjour IM with Gustavo Pizano piz...@xloc29/24/09 2:36 PM /** * Simple logout action that leaves the user on the page returned by the default * Direct Action. * @return codeWORedirect/code to default Direct Action */ public static final NSDictionary noWOSID = new NSDictionary (Boolean.FALSE, wosid); public WOComponent logOut(){ WORedirect mainPage = (WORedirect) pageWithName(WORedirect); mainPage.setUrl(context().directActionURLForActionNamed(logOut, noWOSID)); session().terminate(); return mainPage; } and in the DirectAction method I have: public WOActionResults logOutAction(){ return pageWithName(LogOutPage.class.getName()); } so when I click the logout link, I go to the LogOut WOComponent, and I see the little Logout successful , I check the JavaMonitor and still there is the session, and if I click the back button I can keep working in the application as if I didn't ever log out. I asked this long time ago, and Catherine Ferris reply to check if my logoutComponent was Statefull or stateless, so I dunno if its statefull, y guess is yes, because Im getting a reference to the old session (which in fact Im terminating). What can I do? what should I modify? I saw the wiki also and it suggest to close the window onLoad, but this only works for new opened windows, so doing this doesn't really work in my case. Any help will be appreciate it. G. ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: GRR, still the logout method not working.
Robert hi. Well this is what Im getting.. after I hit the log in WOSubmitButton in the LogIn WOComponent I get: Bonjour IM with Gustavo Pizano piz...@xloc29/24/09 3:28 PM Sep 24 15:27:49 XWSLocalizer[45879] INFO NSLog - Constructor b6vIByeNVlhkFIyxGatoRw Sep 24 15:27:53 XWSLocalizer[45879] INFO NSLog - Constructor rOwDkKIZ0lpFrz4lpNMSZw and then when I log out I get: Sep 24 15:28:06 XWSLocalizer[45879] INFO NSLog - Terminate rOwDkKIZ0lpFrz4lpNMSZw I don't know from where is it coming the first session ID, is it when it loads the LogInPage? G. On Sep 24, 2009, at 3:09 PM, Robert Tupelo-Schneck wrote: On Thu, Sep 24, 2009 at 8:41 AM, Gustavo Pizano webobjectspic...@gmail.com wrote: I created a logout WOComponent, which has only LogOut Successful thats it. in the UserMainPage WOComponent, there is a WOHyperLink with an action binding to a logOut method, which is doing the follwoing: ... so when I click the logout link, I go to the LogOut WOComponent, and I see the little Logout successful , I check the JavaMonitor and still there is the session, and if I click the back button I can keep working in the application as if I didn't ever log out. Override the Session constructor and terminate() to each log the sessionID(). Then check the logs to track when sessions begin and end. That should shed some light. Robert ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/webobjectspicora%40gmail.com This email sent to webobjectspic...@gmail.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: GRR, still the logout method not working.
add a Thread.dumpStack() in your session constructor and see what exactly is creating the first session you can also either get the current request from the thread and print out the request path or you can add a println in your application's dispatchRequest to print out the request path so you can see exactly what is being hit that is generating a session. This will tell you if it's two different requests that are creating sessions or whether there's something funky you're doing in a single request that is managing to create two. On Sep 24, 2009, at 9:43 AM, Gustavo Pizano wrote: I dunno if my ideas are rolling out in the right direction, maybe you guys who have far more knowledge than me can answer me this: What about the Application's createSessionForRequest(WOReqeuest worequest) method? can I check there if the request is an internal or external and allow the creation of the first session that its never being terminated?? I dunno im divagating here. G. On Sep 24, 2009, at 3:09 PM, Robert Tupelo-Schneck wrote: On Thu, Sep 24, 2009 at 8:41 AM, Gustavo Pizano webobjectspic...@gmail.com wrote: I created a logout WOComponent, which has only LogOut Successful thats it. in the UserMainPage WOComponent, there is a WOHyperLink with an action binding to a logOut method, which is doing the follwoing: ... so when I click the logout link, I go to the LogOut WOComponent, and I see the little Logout successful , I check the JavaMonitor and still there is the session, and if I click the back button I can keep working in the application as if I didn't ever log out. Override the Session constructor and terminate() to each log the sessionID(). Then check the logs to track when sessions begin and end. That should shed some light. Robert ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/webobjectspicora%40gmail.com This email sent to webobjectspic...@gmail.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/mschrag%40mdimension.com This email sent to msch...@mdimension.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: GRR, still the logout method not working.
Hello mike this is what Im getting from the dumpStak() Bonjour IM with Gustavo Pizano piz...@xloc29/24/09 3:53 PM java.lang.Exception: Stack trace at java.lang.Thread.dumpStack(Thread.java:1176) at xws.localizer.Session.init(Session.java:30) 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:501) at java.lang.Class.newInstance0(Class.java:350) at java.lang.Class.newInstance(Class.java:303) at com.webobjects.foundation._NSUtilities.instantiateObject (_NSUtilities.java:616) at com.webobjects.appserver.WOApplication.createSessionForRequest (WOApplication.java:1974) at er.extensions.appserver.ERXApplication.createSessionForRequest (ERXApplication.java:2022) at xws.localizer.Application.createSessionForRequest(Application.java: 34) at com.webobjects.appserver.WOApplication._initializeSessionInContext (WOApplication.java:2110) at com.webobjects.appserver.WOContext.session(WOContext.java:369) at com.webobjects.appserver.WOContext.componentActionURL (WOContext.java:1208) at com.webobjects.appserver.WOContext.componentActionURL (WOContext.java:1182) at er.ajax.AjaxUtils.ajaxComponentActionUrl(AjaxUtils.java:408) at er.ajax.AjaxModalDialog.appendToResponse(AjaxModalDialog.java:444) at com.webobjects.appserver._private.WOComponentReference.appendToResponse (WOComponentReference.java:135) at com.webobjects.appserver ._private.WODynamicGroup.appendChildrenToResponse(WODynamicGroup.java: 126) at com.webobjects.appserver._private.WODynamicGroup.appendToResponse (WODynamicGroup.java:136) at com.webobjects.appserver.WOComponent.appendToResponse (WOComponent.java:1122) at com.webobjects.appserver._private.WOComponentReference.appendToResponse (WOComponentReference.java:135) at com.webobjects.appserver ._private.WODynamicGroup.appendChildrenToResponse(WODynamicGroup.java: 126) at com.webobjects.appserver._private.WODynamicGroup.appendToResponse (WODynamicGroup.java:136) at com.webobjects.appserver.WOComponent.appendToResponse (WOComponent.java:1122) at er.extensions.components.ERXComponent.appendToResponse (ERXComponent.java:107) at com.webobjects.appserver.WOComponent._appendPageToResponse (WOComponent.java:1574) at com.webobjects.appserver.WOComponent._generateResponseInContext (WOComponent.java:1543) at com.webobjects.appserver.WOComponent.generateResponse (WOComponent.java:1538) at com.webobjects.appserver._private.WOActionRequestHandler._handleRequest (WOActionRequestHandler.java:278) at com.webobjects.appserver._private.WOActionRequestHandler.handleRequest (WOActionRequestHandler.java:158) at er.extensions.appserver.ERXDirectActionRequestHandler.handleRequest (ERXDirectActionRequestHandler.java:123) at com.webobjects.appserver.WOApplication.dispatchRequest (WOApplication.java:1687) at er.extensions.appserver.ERXApplication.dispatchRequestImmediately (ERXApplication.java:1772) at er.extensions.appserver.ERXApplication.dispatchRequest (ERXApplication.java:1737) at com.webobjects.appserver._private.WOWorkerThread.runOnce (WOWorkerThread.java:144) at com.webobjects.appserver._private.WOWorkerThread.run (WOWorkerThread.java:226) at java.lang.Thread.run(Thread.java:613) I see these lines : at er.ajax.AjaxUtils.ajaxComponentActionUrl(AjaxUtils.java:408) at er.ajax.AjaxModalDialog.appendToResponse(AjaxModalDialog.java:444) I dunno if that's what's happening. or... Also I overrode the dispatchRequest and this is what I got: Long one Localizer[45879] INFO NSLog - Dispatch er.extensions.appserver.ERXRequest (er.extensions.appserver.ERXRequest httpVersion=HTTP/1.1 headers= {accept=[*/*], accept-encoding=[gzip, deflate], accept-language=[en- us], connection=[keep-alive], host=[10.1.1.102:45879], referer=[http:// 10.1.1.102:45879/cgi-bin/WebObjects/XWSLocalizer.woa], user-agent= [Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_8; en-us) AppleWebKit/ 531.9 (KHTML, like Gecko) Version/4.0.3 Safari/531.9]} content- length=0 cookies=null userInfo={} storePageInBacktrackCache=true ) method=GET uri=/cgi-bin/WebObjects/XWSLocalizer.woa/_wr_/wodata=/ System/Library/Frameworks/Ajax.framework/WebServerResources/ modalbox.js defaultFormValueEncoding=UTF-8 formValueEncodingDetectionEnabled=NO formValueEncoding=UTF-8 formValues={} Sep 24 15:57:04 XWSLocalizer[45879] INFO NSLog - Dispatch er.extensions.appserver.ERXRequest (er.extensions.appserver.ERXRequest httpVersion=HTTP/1.1 headers= {accept=[*/*], accept-encoding=[gzip, deflate], accept-language=[en- us], connection=[keep-alive], host=[10.1.1.102:45879], referer=[http:// 10.1.1.102:45879/cgi-bin/WebObjects/XWSLocalizer.woa], user-agent= [Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_8; en-us) AppleWebKit/ 531.9 (KHTML, like
Re: saving pdf's to the database
Tim, I don't know if you got this working yet, but I'm just trying to stick with you on this. The reason I skipped the db encoding path was that I assumed you were using the same system for db storage as your previously mentioned capability, namely storing PDFs generated with iText. If you can store those PDFs I assumed you could store any PDF. This made me think that perhaps your handoff of data somewhere between eof and the components, or perhaps just the components, was erroneous. To the end of isolating the problem, and forgive me if you have already, can you make the thing work by skipping the db and just hold the data in an instance variable in your eo instance when debugging? Specifically, if you skip the takestoredvalueforkey and just keep the data in an nsdata field does it work? This won't persist across sessions or object stores, but if you use the same eo while debugging can you get the file to display? JAL John A. Larson President Precision Instruments, Inc. Ph: 847-824-4194 Fax: 866-240-7104 Sent from my iPhone On Sep 23, 2009, at 4:47 PM, Tim Worman li...@thetimmy.com wrote: On Sep 23, 2009, at 2:43 PM, Chuck Hill wrote: On Sep 23, 2009, at 2:28 PM, Tim Worman wrote: Thanks for the response. In our case the files will always be pdf since we are requiring that as the format of the originating user's submission. I can definitely see the file size concern if the pdf is a big ole glorified image. Hopefully, most of the users will produce their pdf's by printing to pdf in mac os x (or acrobat on Windoze). I already had a component class that takes plain text blobs (logs) from the database, converts them to pdf, and presents them in a browser window. That class doesn't work on the blobs where the file was originated as pdf. How does it present the converted files? It implements iText but at some point I will be moving to PDFKit. I present the text as a PDF in a new window. The same thing should work with the PDF in a database. Right, but since it should already be a PDF, I don't need any translation or need for my iText implementation, correct? Yeah, just the present the text as a PDF in a new window part. So, I got concerned that maybe I was missing something saving the NSData. My database saves blobs to the file system so I tried reading one as a pdf and couldn't. Hence my question. That might be an artifact of your database (adding extra info). It could also be that there is some encoding/re- encoding happening that is scrambling the contents of the file. Which database are you using? I'm using OpenBase and I suspect what you're saying is right. It does cause some worry though since I don't have the review portion working yet. :-) You are certain it is a BLOB not a CLOB? How is the attribute modeled? I've modeled it as a blob, with the external type 'object.' OpenBase has a 'binary' type but it seems 'object' should be correct. I attached a screenshot. I don't think you did. :-) I am not sure which type is correct, or if both are. Chuck Damnit, I hate it when you're right even more than normal. Screenshot attached. Screen shot 2009-09-23 at 2.24.24 PM.png Tim I've assumed that I should just be able create a response that simply returns my NSData object and set the proper content- type. Am I on the right track? That is what I have always done in the past. It _should_ be simple and straightforward. Chuck On Sep 23, 2009, at 9:02 AM, John Kim Larson wrote: Hi Tim, We do this all the time with receiving reports, prints, etc. Since the component I use for upload handles any file type ( Word, images, PDF) I keep track of the file extension that the file was uploaded with in an attribute of my File entity. I then use that information to reconstitute the mime type when either embedding or downloading the file. There's not too much magic there, just a bunch of if elses to get the mime type from the extension. I can try to help you if that isn't enough info. Another gotcha is to make sure that your file size doesn't exceed the blob capacity. PDFs from text are fine, but if someone uploads a high res scanned file as a PDF, you will get an error either upon committing the change or upon trying to view the file. JAL John A. Larson President Precision Instruments, Inc. Ph: 847-824-4194 Fax: 866-240-7104 Sent from my iPhone On Sep 23, 2009, at 10:45 AM, Tim Worman li...@thetimmy.com wrote: WO'ers: I am writing an application where users can upload pdf files - which my app saves to the database. I also need to have mechanisms in place where a reviewer can browse the documents that have been uploaded. The upload and saving to the database seems to be working. This is modeled as 'blob' and the class type is 'NSData.' The files are uploaded via AjaxFileUpload. I have saved plain text files to the database before but
Re: GRR, still the logout method not working.
Hi Gustavo, this is what we are doing to logout: 1) the logout link returns a logout-page without any real surface where the appendToResponse is overwritten to terminate the session and to redirect to a you logged out successfully page. The method is : public void appendToResponse(WOResponse response, WOContext context) { // necessary? super.appendToResponse(response, context); // finish session session().logout(); session().terminate(); // redirect String redirectURL = context.request().adaptorPrefix() + / + context.request().applicationName() + .woa/wa/logout; response.setStatus(302); response.setHeader(redirectURL, location); response.setHeader(0, content-length); } 2) The DirectAction logoutAction returns a stateless page with the logout hint. If you want to avoid creating a session on this page make sure that you do not touch anything that needs a session. This is especially true for any form elements or component-action-links. HTH, Susanne -- Susanne Schneider Coordinator secuTrial Development iAS interActive Systems GmbH Dieffenbachstraße 33 c, D-10967 Berlin fon+49(0)30 22 50 50 - 498 fax+49(0)30 22 50 50 - 451 mail susanne.schnei...@interactive-systems.de webhttp://www.interActive-Systems.de Geschäftsführer: Dr. Marko Reschke, Thomas Fritzsche Sitz der Gesellschaft: Berlin Amtsgericht Berlin Charlottenburg, HRB 106103B ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Connector/J 5.1, Euro Symbol as '?'
so something else must have changed. you're in eclipse, right ? check your workspace encoding (prefs general workspace). if you're on a mac it normally defaults to system default of macroman. i'd change that to other UTF-8. eclipse will then whirr away for a while whilst it changes everything. then all your files and stuff will be utf8 to at least you'll have eliminated another potential encoding pitfall. we've seen some strangeness with this and the good old uk pound symbol... i take it you've also not done anything funky in my.cnf ? like changing the default char set ? if you're using mysql gui tools then you can check under options advanced localization simon 2009/9/24 David Griffith da...@infinityspain.com: Just another note which might give more info: On the euro symbol issue, there is only one place where the euro symbol is coming from the database. The rest of the time it's actually written in the HTML directly. It has been displaying perfectly up to yesterday when I decided to change the adaptor to the new version. Now it displays as '?'. Even when I changed back to the old adaptor it did not seem to make any difference. Anyone any idea why that could be? Regards, David. On 24 Sep 2009, at 13:05, David Griffith wrote: Thanks Kieran, I might have to take you up on that. I've been thinking that it must be something to do with too many records been read in but I can't see where that could be happening. I'll try adding the encoding string to the EOModel connection and see if that helps. I've just tried changing back to the old adaptor but doesn't seem to have helped either. Regards, David. On 24 Sep 2009, at 12:46, Kieran Kelleher wrote: Hi again David, Regarding App Oout of memory: App out of memory commonly is caused in WO apps by reading in too many EOs (display group or possibly a huge faulted relationship) or too many concurrent sessions and needs profiling or at least strategic logging to see what is happening in production. If the problem can be simulated in development environment, it will be easier to resolve. Wonder has some features that allow free memory tracking, memory reserve, temporary refusing sessions in low-memory conditions and forced garbage collection. To give you breathing room to troubleshoot you should have maxed out memory per instance. I think 1536 is the max for 32-bit system, so WOMonitor args should be sth like this: -Xms1024m -Xmx1536m I am very tight on time myself, but if no one offers to get their hands on to track this down in the next 24 hours, I might be able to help tomorrow (Friday) let me know if that is the case. Regards, Kieran On Sep 24, 2009, at 4:36 AM, David Griffith wrote: Hi all, I've been having a real problem over the past 12 months with my WebObjects and mySQL installation. It has been getting gradually worse to the point now where the apps crash every 10 or 15 mins. The are crashing out with Java.OutOfHeapSpace errors. We've tried everything to increase the heap space but has made no difference. The fact that it is has gradually gotten worse over time indicates to me that as the database is growing the problem is getting worse. I tried last night to update the Connecter/J adaptor to version 5.1 as we were using an older one and I thought that might help. It hasn't in fact, and what it has done is make all the € symbols appear as '?'. I know this has to do with the encoding and I want it all to be UTF8 but I can't seem to work out how the hell to get them to display properly. They all displayed perfectly before I changed the adaptor. On the other hand, I really need to find a solution to this problem where the apps are crashing and I am very tight for time. I am prepared to pay someone to track down this problem for me. Any takers? Kind regards, David. ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/kieran_lists%40mac.com This email sent to kieran_li...@mac.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/david%40infinityspain.com This email sent to da...@infinityspain.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/simon%40potwells.co.uk This email sent to si...@potwells.co.uk ___ Do not post admin
Re: Connector/J 5.1, Euro Symbol as '?'
You can also set UTF-8 as the general encoding for all workspaces by adding this line in eclipse.ini : -Dfile.encoding=UTF-8 so something else must have changed. you're in eclipse, right ? check your workspace encoding (prefs general workspace). if you're on a mac it normally defaults to system default of macroman. i'd change that to other UTF-8. eclipse will then whirr away for a while whilst it changes everything. then all your files and stuff will be utf8 to at least you'll have eliminated another potential encoding pitfall. we've seen some strangeness with this and the good old uk pound symbol... i take it you've also not done anything funky in my.cnf ? like changing the default char set ? if you're using mysql gui tools then you can check under options advanced localization simon 2009/9/24 David Griffith da...@infinityspain.com: Just another note which might give more info: On the euro symbol issue, there is only one place where the euro symbol is coming from the database. The rest of the time it's actually written in the HTML directly. It has been displaying perfectly up to yesterday when I decided to change the adaptor to the new version. Now it displays as '?'. Even when I changed back to the old adaptor it did not seem to make any difference. Anyone any idea why that could be? Regards, David. On 24 Sep 2009, at 13:05, David Griffith wrote: Thanks Kieran, I might have to take you up on that. I've been thinking that it must be something to do with too many records been read in but I can't see where that could be happening. I'll try adding the encoding string to the EOModel connection and see if that helps. I've just tried changing back to the old adaptor but doesn't seem to have helped either. Regards, David. On 24 Sep 2009, at 12:46, Kieran Kelleher wrote: Hi again David, Regarding App Oout of memory: App out of memory commonly is caused in WO apps by reading in too many EOs (display group or possibly a huge faulted relationship) or too many concurrent sessions and needs profiling or at least strategic logging to see what is happening in production. If the problem can be simulated in development environment, it will be easier to resolve. Wonder has some features that allow free memory tracking, memory reserve, temporary refusing sessions in low-memory conditions and forced garbage collection. To give you breathing room to troubleshoot you should have maxed out memory per instance. I think 1536 is the max for 32-bit system, so WOMonitor args should be sth like this: -Xms1024m -Xmx1536m I am very tight on time myself, but if no one offers to get their hands on to track this down in the next 24 hours, I might be able to help tomorrow (Friday) let me know if that is the case. Regards, Kieran On Sep 24, 2009, at 4:36 AM, David Griffith wrote: Hi all, I've been having a real problem over the past 12 months with my WebObjects and mySQL installation. It has been getting gradually worse to the point now where the apps crash every 10 or 15 mins. The are crashing out with Java.OutOfHeapSpace errors. We've tried everything to increase the heap space but has made no difference. The fact that it is has gradually gotten worse over time indicates to me that as the database is growing the problem is getting worse. I tried last night to update the Connecter/J adaptor to version 5.1 as we were using an older one and I thought that might help. It hasn't in fact, and what it has done is make all the € symbols appear as '?'. I know this has to do with the encoding and I want it all to be UTF8 but I can't seem to work out how the hell to get them to display properly. They all displayed perfectly before I changed the adaptor. On the other hand, I really need to find a solution to this problem where the apps are crashing and I am very tight for time. I am prepared to pay someone to track down this problem for me. Any takers? Kind regards, David. ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/kieran_lists%40mac.com This email sent to kieran_li...@mac.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/david%40infinityspain.com This email sent to da...@infinityspain.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription:
Re: GRR, still the logout method not working.
Susanne. Thanks so much, I will apply your method to my project and see what happens... One question. is my DirectAction good?, I mean, as you saw Im usign pageWithName() method, and I read that using that Im referencing the old session, I have confusion here. Also I must override the appendToRespondMethod in the LogOut WOcomponent, isn't ? Thx. Gustavo On Sep 24, 2009, at 5:48 PM, Susanne Schneider wrote: Hi Gustavo, this is what we are doing to logout: 1) the logout link returns a logout-page without any real surface where the appendToResponse is overwritten to terminate the session and to redirect to a you logged out successfully page. The method is : public void appendToResponse(WOResponse response, WOContext context) { // necessary? super.appendToResponse(response, context); // finish session session().logout(); session().terminate(); // redirect String redirectURL = context.request().adaptorPrefix() + / + context.request().applicationName() + .woa/wa/logout; response.setStatus(302); response.setHeader(redirectURL, location); response.setHeader(0, content-length); } 2) The DirectAction logoutAction returns a stateless page with the logout hint. If you want to avoid creating a session on this page make sure that you do not touch anything that needs a session. This is especially true for any form elements or component-action-links. HTH, Susanne -- Susanne Schneider Coordinator secuTrial Development iAS interActive Systems GmbH Dieffenbachstraße 33 c, D-10967 Berlin fon+49(0)30 22 50 50 - 498 fax+49(0)30 22 50 50 - 451 mail susanne.schnei...@interactive-systems.de webhttp://www.interActive-Systems.de Geschäftsführer: Dr. Marko Reschke, Thomas Fritzsche Sitz der Gesellschaft: Berlin Amtsgericht Berlin Charlottenburg, HRB 106103B ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: saving pdf's to the database
John: I really appreciate you following up about this. This is an awesome community. I actually did get this to work and luckily it is as easy as it should be. Instead of using my existing iText component I just had to make a new one and set up the WOResponse with the pdf data straight from the database. The iText related component is taking text logs and converting them to pdf's. Since the raw data should already be PDF I realized that the existing component was probably breaking things and luckily I was right. In essence I got myself all worked up and worried and as usual the problem was me. Thanks so much for your help - it definitely got me headed in the right direction. Tim UCLA GSEIS On Sep 24, 2009, at 8:05 AM, John Kim Larson wrote: Tim, I don't know if you got this working yet, but I'm just trying to stick with you on this. The reason I skipped the db encoding path was that I assumed you were using the same system for db storage as your previously mentioned capability, namely storing PDFs generated with iText. If you can store those PDFs I assumed you could store any PDF. This made me think that perhaps your handoff of data somewhere between eof and the components, or perhaps just the components, was erroneous. To the end of isolating the problem, and forgive me if you have already, can you make the thing work by skipping the db and just hold the data in an instance variable in your eo instance when debugging? Specifically, if you skip the takestoredvalueforkey and just keep the data in an nsdata field does it work? This won't persist across sessions or object stores, but if you use the same eo while debugging can you get the file to display? JAL John A. Larson President Precision Instruments, Inc. Ph: 847-824-4194 Fax: 866-240-7104 Sent from my iPhone On Sep 23, 2009, at 4:47 PM, Tim Worman li...@thetimmy.com wrote: On Sep 23, 2009, at 2:43 PM, Chuck Hill wrote: On Sep 23, 2009, at 2:28 PM, Tim Worman wrote: Thanks for the response. In our case the files will always be pdf since we are requiring that as the format of the originating user's submission. I can definitely see the file size concern if the pdf is a big ole glorified image. Hopefully, most of the users will produce their pdf's by printing to pdf in mac os x (or acrobat on Windoze). I already had a component class that takes plain text blobs (logs) from the database, converts them to pdf, and presents them in a browser window. That class doesn't work on the blobs where the file was originated as pdf. How does it present the converted files? It implements iText but at some point I will be moving to PDFKit. I present the text as a PDF in a new window. The same thing should work with the PDF in a database. Right, but since it should already be a PDF, I don't need any translation or need for my iText implementation, correct? Yeah, just the present the text as a PDF in a new window part. So, I got concerned that maybe I was missing something saving the NSData. My database saves blobs to the file system so I tried reading one as a pdf and couldn't. Hence my question. That might be an artifact of your database (adding extra info). It could also be that there is some encoding/re- encoding happening that is scrambling the contents of the file. Which database are you using? I'm using OpenBase and I suspect what you're saying is right. It does cause some worry though since I don't have the review portion working yet. :-) You are certain it is a BLOB not a CLOB? How is the attribute modeled? I've modeled it as a blob, with the external type 'object.' OpenBase has a 'binary' type but it seems 'object' should be correct. I attached a screenshot. I don't think you did. :-) I am not sure which type is correct, or if both are. Chuck Damnit, I hate it when you're right even more than normal. Screenshot attached. Screen shot 2009-09-23 at 2.24.24 PM.png Tim I've assumed that I should just be able create a response that simply returns my NSData object and set the proper content-type. Am I on the right track? That is what I have always done in the past. It _should_ be simple and straightforward. Chuck On Sep 23, 2009, at 9:02 AM, John Kim Larson wrote: Hi Tim, We do this all the time with receiving reports, prints, etc. Since the component I use for upload handles any file type ( Word, images, PDF) I keep track of the file extension that the file was uploaded with in an attribute of my File entity. I then use that information to reconstitute the mime type when either embedding or downloading the file. There's not too much magic there, just a bunch of if elses to get the mime type from the extension. I can try to help you if that isn't enough info. Another gotcha is to make sure that your file size doesn't exceed the blob capacity. PDFs from text are fine, but if
ERSelenium
Hi All, There was a presentation at WOWODC 09 (west) that covered ERSelenium. But I can't find the video under the WOWODC 09 West videos. Is there one? Thanks, Ricardo ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: ERSelenium
I think it's in the session on Text Driven Development. David On 24-Sep-09, at 4:11 PM, Ricardo J. Parada wrote: Hi All, There was a presentation at WOWODC 09 (west) that covered ERSelenium. But I can't find the video under the WOWODC 09 West videos. Is there one? Thanks, Ricardo ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/programmingosx %40mac.com This email sent to programming...@mac.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: ERSelenium
On 2009-09-24, at 7:26 PM, David Holt wrote: I think it's in the session on Text Driven Development. That would be *Test* driven development :-) David On 24-Sep-09, at 4:11 PM, Ricardo J. Parada wrote: Hi All, There was a presentation at WOWODC 09 (west) that covered ERSelenium. But I can't find the video under the WOWODC 09 West videos. Is there one? Thanks, Ricardo ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/programmingosx%40mac.com This email sent to programming...@mac.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/dleber_wodev%40codeferous.com This email sent to dleber_wo...@codeferous.com ;david -- David LeBer Codeferous Software 'co-def-er-ous' adj. Literally 'code-bearing' site: http://codeferous.com blog: http://davidleber.net profile:http://www.linkedin.com/in/davidleber twitter:http://twitter.com/rebeld -- Toronto Area Cocoa / WebObjects developers group: http://tacow.org ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: ERSelenium
Found it... Thank you both! :-) On Sep 24, 2009, at 6:29 PM, David LeBer wrote: On 2009-09-24, at 7:26 PM, David Holt wrote: I think it's in the session on Text Driven Development. That would be *Test* driven development :-) David On 24-Sep-09, at 4:11 PM, Ricardo J. Parada wrote: Hi All, There was a presentation at WOWODC 09 (west) that covered ERSelenium. But I can't find the video under the WOWODC 09 West videos. Is there one? Thanks, Ricardo ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/programmingosx%40mac.com This email sent to programming...@mac.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/dleber_wodev%40codeferous.com This email sent to dleber_wo...@codeferous.com ;david -- David LeBer Codeferous Software 'co-def-er-ous' adj. Literally 'code-bearing' site: http://codeferous.com blog: http://davidleber.net profile:http://www.linkedin.com/in/davidleber twitter:http://twitter.com/rebeld -- Toronto Area Cocoa / WebObjects developers group: http://tacow.org ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: ERSelenium
On Sep 24, 2009, at 4:29 PM, David LeBer wrote: On 2009-09-24, at 7:26 PM, David Holt wrote: I think it's in the session on Text Driven Development. That would be *Test* driven development :-) Wow, this is really going to turn Dave's world upside down! :-P On 24-Sep-09, at 4:11 PM, Ricardo J. Parada wrote: Hi All, There was a presentation at WOWODC 09 (west) that covered ERSelenium. But I can't find the video under the WOWODC 09 West videos. Is there one? Thanks, Ricardo ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/programmingosx%40mac.com This email sent to programming...@mac.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/dleber_wodev%40codeferous.com This email sent to dleber_wo...@codeferous.com ;david -- David LeBer Codeferous Software 'co-def-er-ous' adj. Literally 'code-bearing' site: http://codeferous.com blog: http://davidleber.net profile:http://www.linkedin.com/in/davidleber twitter:http://twitter.com/rebeld -- Toronto Area Cocoa / WebObjects developers group: http://tacow.org ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net This email sent to ch...@global-village.net -- Chuck Hill Senior Consultant / VP Development Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/products/practical_webobjects ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Google Chrome Frame
Hi All, Just sharing something I saw today... It sounds too good to be true... I have yet to try it. ;-) http://blog.chromium.org/2009/09/introducing-google-chrome-frame.html Ricardo ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: ERSelenium
On 24-Sep-09, at 4:29 PM, David LeBer wrote: On 2009-09-24, at 7:26 PM, David Holt wrote: I think it's in the session on Text Driven Development. That would be *Test* driven development :-) Pretty much Text too, for that matter :-) David On 24-Sep-09, at 4:11 PM, Ricardo J. Parada wrote: Hi All, There was a presentation at WOWODC 09 (west) that covered ERSelenium. But I can't find the video under the WOWODC 09 West videos. Is there one? Thanks, Ricardo ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/ programmingosx%40mac.com This email sent to programming...@mac.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/dleber_wodev% 40codeferous.com This email sent to dleber_wo...@codeferous.com ;david -- David LeBer Codeferous Software 'co-def-er-ous' adj. Literally 'code-bearing' site: http://codeferous.com blog: http://davidleber.net profile:http://www.linkedin.com/in/davidleber twitter:http://twitter.com/rebeld -- Toronto Area Cocoa / WebObjects developers group: http://tacow.org ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com