Re: [SOLVED] com.reportmill.base.RMException: Probable fatal error:No fonts found.

2011-06-05 Thread Shravan Kumar. M
Hi David/ Mike,

Thanks for your time and suggestions.

We have tried Mike's suggestions, but that did not help fix this issue, so we 
went on doing more investigation... (sorry for the delay in response, we were 
banging our heads to figure the solution... and lost in the herd ;) )

Finally, we got this issue (fonts problem) fixed by running the following 
*simple* command:


--


sudo apt-get install msttcorefonts

--


This command installed all the fonts and we're able to get the reports! 
Hurray!!!

For more info, please checkout this article from my friend Kamal - 
http://www.kamaldshah.com/2011/06/linux-not-for-faint-hearted.html#links

Thank You,
Shravan Kumar. M
---




From: David Avendasora webobje...@avendasora.com
To: Shravan Kumar. M mshravan_...@yahoo.com
Cc: kamalsha...@gmail.com; WebObjects-Dev Mailing List List 
webobjects-dev@lists.apple.com
Sent: Friday, June 3, 2011 10:26 AM
Subject: Re: com.reportmill.base.RMException: Probable fatal error:No fonts 
found.


Hi Shravan,

Did you see Mike's response:

On Jun 1, 2011, at 7:21 AM, Mike Schrag wrote:

If it's using AWT to access those fonts you might need to run with 
-Djava.awt.headless=true. This might be a bogus error from a root awt exception.


This is from the ReportMill 
website: http://www.reportmill.com/support/Headless.html

This really sounds like it is what is happening.

Dave


On Jun 1, 2011, at 5:10 AM, Shravan Kumar. M wrote:

Thanks for your response Dave.


We have placed the reportmill jar in the application bundle with other jars 
like: mysql connector and so on and deployed it... Our app is able to connect 
to database and does CRUD operations well enough!!!


*Problem is with reports only.*


-

However, I wonder from the below line i.e., WO runtime/ reportmill is able to 
find RMDocument class but not RMFont class, why?



Caused by: java.lang.NoClassDefFoundError: Could not initialize class 
com.reportmill.text.RMFont
   at com.reportmill.shape.RMDocument.init(RMDocument.java:39)


-


However, looking at the other exception log as shown below - it looks like WO 
runtime/ reportmill is able to find RMFont class as well, but problem is with 
instantiating it and it says - Probable fatal error:No fonts found - we are 
using basic fonts which should be available by default in any OS, right???



Caused by: com.reportmill.base.RMException: Probable fatal error:No fonts 
found.
       at com.reportmill.text.RMFont.clinit(RMFont.java:58)


-


Right now we are planning to install fonts to Ubuntu server (VM instance), but 
not sure if that helps!!!





Any other clues???



Regards,
Shravan



From: David Avendasora webobje...@avendasora.com
To: Shravan Kumar. M mshravan_...@yahoo.com
Cc: WO Dev Group webobjects-dev@lists.apple.com
Sent: Wednesday, June 1, 2011 12:27 PM
Subject: Re: com.reportmill.base.RMException: Probable fatal error:No fonts 
found.


Hi Shravan,


It appears to be having a problem finding the com.reportmill.text.RMFont class.


Where do you have the ReportMillxx.jar installed? I see by some of 
ReportMill's documentation that they suggest installing it in the 
Local/Library/WebObjects/Extensions directory.


Don't put it there.


Just don't.


If it's already there on the server, get it out of there.


Put it in your Application's Libraries directory, then right click on it and 
add it to your build path. That way the .jar will always be available to the 
App.


Dave Avendasora



On Jun 1, 2011, at 12:43 AM, Shravan Kumar. M wrote:

Hi Group,


Any clues to this exception with a new WO app deployed to the Ubuntu:


---
Following exception occurs when we generate a ReportMill report from our app:
---


Caused by: java.lang.NoClassDefFoundError: Could not initialize class 
com.reportmill.text.RMFont
   at com.reportmill.shape.RMDocument.init(RMDocument.java:39)
   at org.bmjrft.cds.components.PatientDetailsPage.generateIDCard(Unknown 
Source)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
   at
 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:616)
   at 
com.webobjects.foundation.NSKeyValueCoding$ValueAccessor$1.methodValue(NSKeyValueCoding.java:636)
   at 
com.webobjects.foundation.NSKeyValueCoding$_MethodBinding.valueInObject(NSKeyValueCoding.java:1134

Re: com.reportmill.base.RMException: Probable fatal error:No fonts found.

2011-06-01 Thread Shravan Kumar. M
just adding WO mailing list!!




From: Shravan Kumar. M mshravan_...@yahoo.com
To: David Avendasora webobje...@avendasora.com
Cc: kamalsha...@gmail.com kamalsha...@gmail.com
Sent: Wednesday, June 1, 2011 2:40 PM
Subject: Re: com.reportmill.base.RMException: Probable fatal error:No fonts 
found.


Thanks for your response Dave.

We have placed the reportmill jar in the application bundle with other jars 
like: mysql connector and so on and deployed it... Our app is able to connect 
to database and does CRUD operations well enough!!!

*Problem is with reports only.*

-

However, I wonder from the below line i.e., WO runtime/ reportmill is able to 
find RMDocument class but not RMFont class, why?


Caused by: java.lang.NoClassDefFoundError: Could not initialize class 
com.reportmill.text.RMFont
   at com.reportmill.shape.RMDocument.init(RMDocument.java:39)

-

However, looking at the other exception log as shown below - it looks like WO 
runtime/ reportmill is able to find RMFont class as well, but problem is with 
instantiating it and it says - Probable fatal error:No fonts found - we are 
using basic fonts which should be available by default in any OS, right???


Caused by: com.reportmill.base.RMException: Probable fatal error:No fonts found.
       at com.reportmill.text.RMFont.clinit(RMFont.java:58)

-

Right now we are planning to install fonts to Ubuntu server (VM instance), but 
not sure if that helps!!!



Any other clues???


Regards,
Shravan



From: David Avendasora webobje...@avendasora.com
To: Shravan Kumar. M mshravan_...@yahoo.com
Cc: WO Dev Group webobjects-dev@lists.apple.com
Sent: Wednesday, June 1, 2011 12:27 PM
Subject: Re: com.reportmill.base.RMException: Probable fatal error:No fonts 
found.


Hi Shravan,

It appears to be having a problem finding the com.reportmill.text.RMFont class.

Where do you have the ReportMillxx.jar installed? I see by some of ReportMill's 
documentation that they suggest installing it in the 
Local/Library/WebObjects/Extensions directory.

Don't put it there.

Just don't.

If it's already there on the server, get it out of there.

Put it in your Application's Libraries directory, then right click on it and 
add it to your build path. That way the .jar will always be available to the 
App.

Dave Avendasora


On Jun 1, 2011, at 12:43 AM, Shravan Kumar. M wrote:

Hi Group,


Any clues to this exception with a new WO app deployed to the Ubuntu:


---
Following exception occurs when we generate a ReportMill report from our app:
---


Caused by: java.lang.NoClassDefFoundError: Could not initialize class 
com.reportmill.text.RMFont
   at com.reportmill.shape.RMDocument.init(RMDocument.java:39)
   at org.bmjrft.cds.components.PatientDetailsPage.generateIDCard(Unknown 
Source)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
   at
 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:616)
   at 
com.webobjects.foundation.NSKeyValueCoding$ValueAccessor$1.methodValue(NSKeyValueCoding.java:636)
   at 
com.webobjects.foundation.NSKeyValueCoding$_MethodBinding.valueInObject(NSKeyValueCoding.java:1134)




---
Following exception occurs with call to new RMFont() in Application 
constructor:
---

 
May 31 04:44:55 CDS[2002] (ERXNSLogLog4jBridge.java:43) WARN  NSLog  - A fatal 
exception occurred: null
[2011-5-31 4:44:55 PDT] main java.lang.
ExceptionInInitializerError
       at org.bmjrft.cds.Application.init(Application.java:15)
       at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
       at 
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
       at 
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
       at java.lang.reflect.Constructor.newInstance(Constructor.java:532)
       at java.lang.Class.newInstance0(Class.java:372)
       at java.lang.Class.newInstance(Class.java:325)
       at com.webobjects.appserver.WOApplication.main(WOApplication.java:547)
       at er.extensions.appserver.ERXApplication.main(ERXApplication.java:631)
       at org.bmjrft.cds.Application.main(Application.java:9)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method

com.reportmill.base.RMException: Probable fatal error:No fonts found.

2011-05-31 Thread Shravan Kumar. M
Hi Group,

Any clues to this exception with a new WO app deployed to the Ubuntu:

---
Following exception occurs when we generate a ReportMill report from our app:
---

Caused by: java.lang.NoClassDefFoundError: Could not initialize class 
com.reportmill.text.RMFont
   at com.reportmill.shape.RMDocument.init(RMDocument.java:39)
   at org.bmjrft.cds.components.PatientDetailsPage.generateIDCard(Unknown 
Source)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
   at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:616)
   at 
com.webobjects.foundation.NSKeyValueCoding$ValueAccessor$1.methodValue(NSKeyValueCoding.java:636)
   at 
com.webobjects.foundation.NSKeyValueCoding$_MethodBinding.valueInObject(NSKeyValueCoding.java:1134)


---
Following exception occurs with call to new RMFont() in Application 
constructor:
---
 
May 31 04:44:55 CDS[2002] (ERXNSLogLog4jBridge.java:43) WARN  NSLog  - A fatal 
exception occurred: null
[2011-5-31 4:44:55 PDT] main java.lang.
ExceptionInInitializerError
       at org.bmjrft.cds.Application.init(Application.java:15)
       at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
       at 
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
       at 
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
       at java.lang.reflect.Constructor.newInstance(Constructor.java:532)
       at java.lang.Class.newInstance0(Class.java:372)
       at java.lang.Class.newInstance(Class.java:325)
       at com.webobjects.appserver.WOApplication.main(WOApplication.java:547)
       at er.extensions.appserver.ERXApplication.main(ERXApplication.java:631)
       at org.bmjrft.cds.Application.main(Application.java:9)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
       at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
       at java.lang.reflect.Method.invoke(Method.java:616)
       at com.webobjects._bootstrap.WOBootstrap.main(WOBootstrap.java:87)
Caused by: com.reportmill.base.RMException: Probable fatal error:No fonts found.
       at com.reportmill.text.RMFont.clinit(RMFont.java:58)
       ... 15 more

Let me know if need more info.

Thank You,
Shravan Kumar. M
---
 ___
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: WO Group Emails are in literal HTML code and not parsed...

2011-01-10 Thread Shravan Kumar. M
Thanks for your response Chuck.

I use Yahoo! Mail since long time and I see this issue since last few  months 
only. Now all my old WO messages as well look literal HTML!!




From: Chuck Hill ch...@global-village.net
To: Shravan Kumar. M mshravan_...@yahoo.com
Cc: WO Dev Group webobjects-dev@lists.apple.com
Sent: Sun, January 9, 2011 4:40:34 PM
Subject: Re: WO Group Emails are in literal HTML code and not parsed...

What posted looks fine to me.  Maybe you have something set wrong in your email 
reader?


On Jan 9, 2011, at 4:31 PM, Shravan Kumar. M wrote:

 Hi Group,
 
 Hope some one has come across this issue, could you help me figure out the 
issue:
 
 All the group emails I receive at my yahoo a/c are in literal HTML i.e., the 
HTML code is not parsed and is difficult to read them. For Eg:
 



   ___
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

WO Group Emails are in literal HTML code and not parsed...

2011-01-09 Thread Shravan Kumar. M
Hi Group,

Hope some one has come across this issue, could you help me figure out the 
issue:

All the group emails I receive at my yahoo a/c are in literal HTML i.e., the 
HTML code is not parsed and is difficult to read them. For Eg:

sample

Hello,
   this is really an apache question, but  thought I'd give it a try here since 
I can't seem to find anything that  helps elsewhere.  I'd like to be able to 
server static websites  from personal accounts (or even from any subdirectory 
under  /Library/WebServer/Documents) on my snow leopard server box.   However, 
if I try to access such a website, I get the Access Forbidden  error.  I tried 
doing what is suggested  here:

http://support.apple.com/kb/TA25038

for  example I have a netbrackets user account so I added a netbrackets.conf  
file to /etc/apache2/users with the following contents  :

Directory  /Users/netbrackets/Sites/
 Options Indexes MultiViews
AllowOverride  None
Order allow,deny
 Allow from  all
/Directory

restarted  apache and went to 

http://www.netbrackets.com/~netbrackets

but  no luck.  

Any  ideas?
Thanks,
Jeff





/sample


Thank you,
Shravan Kumar. M
--


   ___
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: Encode HTML in Java and decode in other API

2010-08-02 Thread Shravan Kumar. M
Yeah! thatz true.. but I was checking, in case if we have that ability within 
our frameworks (WO/ PWO), why import another :)


Thank You,
Shravan Kumar. M




From: Kieran Kelleher kieran_li...@mac.com
To: Shravan Kumar. M mshravan_...@yahoo.com
Cc: dfro...@demax.ru; WO Dev Group webobjects-dev@lists.apple.com
Sent: Mon, August 2, 2010 10:39:46 AM
Subject: Re: Encode HTML in Java and decode in other API

No reason why not. I have commons-lang as a standard jar in my own Foundation 
framework and use it in every project I do. It has a lot of useful utilities. 
It 
is included in *some* Wonder projects IIRC also.


On Jul 31, 2010, at 12:22 AM, Shravan Kumar. M wrote:

Thanks for the information Denis. That helps, I was wondering should I use 
commons-lang!!!



Cheers,
Shravan Kumar. M



From: Denis Frolov dfro...@demax.ru
To: Shravan Kumar. M mshravan_...@yahoo.com
Cc: WO Dev Group webobjects-dev@lists.apple.com
Sent: Thu, July 29, 2010 10:31:26 PM
Subject: Re: Encode HTML in Java and decode in other API

Hi,

Wonder has ERXStringUtilities.escapeNonXMLChars(String str).

On Fri, Jul 30, 2010 at 7:45 AM, Shravan Kumar. M
mshravan_...@yahoo.com wrote:
 Hi Group,

 Do we have any API in WO / PWO that can Encode HTML entities like:   
 br/ and so on something like: common-lang
 StringEscapeUtils#escapeHtml(...) method.

 The encoded content would need to be decoded by other API like browser or
 PDF and so on. I hope the encoding is does in standard way so, any API
 should be able to decode it! Correct me, if am wrong.

 Thank You,
 Shravan Kumar. M
 ---

  ___
 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/dfrolov%40demax.ru

 This email sent to dfro...@demax.ru


___
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: Encode HTML in Java and decode in other API

2010-07-30 Thread Shravan Kumar. M
Thanks for the information Denis. That helps, I was wondering should I use 
commons-lang!!!


Cheers,
Shravan Kumar. M



From: Denis Frolov dfro...@demax.ru
To: Shravan Kumar. M mshravan_...@yahoo.com
Cc: WO Dev Group webobjects-dev@lists.apple.com
Sent: Thu, July 29, 2010 10:31:26 PM
Subject: Re: Encode HTML in Java and decode in other API

Hi,

Wonder has ERXStringUtilities.escapeNonXMLChars(String str).

On Fri, Jul 30, 2010 at 7:45 AM, Shravan Kumar. M
mshravan_...@yahoo.com wrote:
 Hi Group,

 Do we have any API in WO / PWO that can Encode HTML entities like:   
 br/ and so on something like: common-lang
 StringEscapeUtils#escapeHtml(...) method.

 The encoded content would need to be decoded by other API like browser or
 PDF and so on. I hope the encoding is does in standard way so, any API
 should be able to decode it! Correct me, if am wrong.

 Thank You,
 Shravan Kumar. M
 ---

  ___
 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/dfrolov%40demax.ru

 This email sent to dfro...@demax.ru




   ___
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

Encode HTML in Java and decode in other API

2010-07-29 Thread Shravan Kumar. M
Hi Group,

Do we have any API in WO / PWO that can Encode HTML entities like:br/ 
and so on something like: common-lang StringEscapeUtils#escapeHtml(...) method.

The encoded content would need to be decoded by other API like browser or PDF 
and so on. I hope the encoding is does in standard way so, any API should be 
able to decode it! Correct me, if am wrong.

Thank You,
Shravan Kumar. M
---


   ___
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: Fw: Safari Extension

2010-07-18 Thread Shravan Kumar. M
Thanks Ken. Its really nice ext to Safari. Feels like WO knowledge is on tips.

How ever, any one noticed an issue with (beta 0.83) link 
http://www.webobjects.me/ - its not displaying content in English ( may be 
Chinese, not sure though)!

Cheers,
Shravan Kumar. M
---

Fw: Safari Extension
Safari Extension
Wed Jul 14 00:49:46 2010
From: 
ISHIMOTO Ken k...@ksroom.com
To: 
WebObjects-Dev Mailing List List webobjects-dev@lists.apple.com
Hi all,

I am playing around with  Safari Extensions, and made my first one.
Mostly it was made for making my Life easier with searches, but maybe other 
User 
likes to have a WO Logo in Safari^^.

I have tested it on Safari 5 on Mac.


Version : 0.83
Link : http://dl.dropbox.com/u/1548210/SafariExtensions/WebObjects.safariextz

Look : 


   ___
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: announcement

2010-04-24 Thread Shravan Kumar. M
Congratulations Mike. I really thank you for your quick responses to most of my 
emails... I always tell my friends that there is no other better forum other 
than WOCommunity where every question is answered and answered until it is 
addressed.

Hope you will continue your support to WO Community going forth! Why not build 
another Mike?

I hope you will strive for tremendous growth of WO inside Apple :) and we wish 
for that.

I really think there is no other better framework other than WO. Spring, 
Hibernate, Tapestry, ... are all just adding pepper to wound!

I wish for success :)

Cheers,
Shravan Kumar. M


Fw: announcement
announcement
Wed Apr 21 22:03:26 2010
From: 
Mike Schrag msch...@pobox.com
To: 
WO Dev Group webobjects-dev@lists.apple.comHey
everyone ... I wanted to let you guys know that Apr 30 will be my last
day at mDimension. A few weeks ago, I accepted a position at Apple. Not
to worry, though -- supporting WOLips and Wonder will be part of my
responsibilities, so I'm far from disappearing. I think iTMS has done a
really good job demonstrating that they're committed to contributing,
with Entity Modeler app, eomodeldoc, and a substantial amount of work
recently with ERModernLook. The folks over there appreciate the value
of the WebObjects and Wonder communities, and I look forward to a lot
of exciting things in the future.

As far as mDimension, we are
parting on really good terms. They have been a great company to work
for over the past 5 years. For years before I came on, Bill would tell
me about this framework called WebObjects and how great it was. When I
started at mDT, he got me going with WO with a bunch of books, WWDC
videos, and helpful guidance, and they set me on The Path. mDT has also
consistently made a substantial investment in the community, supporting
every bit of development that I've done in WOLips, Wonder, WOWODC, and
the build servers throughout my time here, and I applaud them for that.

For the things you guys may directly care about:

* WOLips - still working on it
* Wonder - still working on it
* Build Servers - mDT will continue to host the build servers
* WOWODC - still attending, though not in an official Apple capacity

To contact me in the future, my AIM/twitter are the same, but you can use my 
msch...@pobox.com email address.

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

FrontBase - Copy database to new installation on same laptop error

2010-04-16 Thread Shravan Kumar. M
Hi Group/ Support,

Today I have installed FrontBase Manager 4.2.9 and FrontBase Plugin and then 
copied /Library/FrontBase/Databases, /Library/FrontBase/Collations and 
/Library/FrontBase/LicenseString directories/ files from old installation of 
Leopard on my laptop to new installation of Leopard in an external drive 
connected to same laptop.

I then opened FrontBaseManager, and added YAMUData to monitor and logged-in to 
YAMUData database. But then I was not able to query any table and I'm getting 
following exceptions querying any table, could any one please advise:

Encountered an error while fetching table rows:

Semantic error 389. Privilege violation: SELECT ON ERA not granted.
Semantic error 485. Near: SELECT INDEX, ERAID, ANAME, ATH, AGHT, 
GRIDX, GRIDY, GRGHT, GRTH, FNAME, POLON, BAP_TO_SHOW FROM 
YAMU.ERA;.
Semantic error 485. Near: YAMU.ERA.
Semantic error 481. Illegal use of INDEX function.
Semantic error 485. Near: INDEX.
Semantic error 226. Referenced column - ERAID - not found.
Semantic error 226. Referenced column - ANAME - not found.
Semantic error 226. Referenced column - ATH - not found.
Semantic error 226. Referenced column - AGHT - not found.
Semantic error 226. Referenced column - GRIDX - not found.
Semantic error 226. Referenced column - GRIDY - not found.
Semantic error 226. Referenced column - GRGHT - not found.
Semantic error 226. Referenced column - GRTH - not found.
Semantic error 226. Referenced column - FNAME - not found.
Semantic error 226. Referenced column - POLON - not found.
Semantic error 226. Referenced column - BAP_TO_SHOW - not found.
Exception 363 (40:000). Transaction rollback.

Thank You,
Shravan Kumar. M
---



   ___
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: WOXMLDecoder NullPointerException

2010-03-14 Thread Shravan Kumar. M
Okay. Will try it out! Thanks for your suggestion, Simon!





From: Simon si...@potwells.co.uk
To: Shravan Kumar. M mshravan_...@yahoo.com
Cc: WO Dev Group webobjects-dev@lists.apple.com
Sent: Sun, March 14, 2010 4:35:04 PM
Subject: Re: WOXMLDecoder NullPointerException

my advice is to use a mapping file. no mapping file = debugging nightmare

simon

On 13 March 2010 11:45, Shravan Kumar. M mshravan_...@yahoo.com wrote:
 Hi Group,

 Following code to decode an xml file or xml string is resuting in NPE, could
 you any one please advise what's going wrong here:

 WOXMLDecoder xmlDecoder = WOXMLDecoder.decoder();
 //InputStream is =
 application().resourceManager().inputStreamForResourceNamed(supra.xml,
 null, null);
 //System.out.println(is... + is);
 //Object obj = xmlDecoder.decodeRootObject(new NSData(is, 1024));
 String xmlString = ?xml version='1.0'
 encoding='UTF-8'?suprachilde123/childe/supra;
 StringReader stringReader = new StringReader(xmlString);
 InputSource is = new InputSource(stringReader);
 Object obj = xmlDecoder.decodeRootObject(is);
 System.out.println(childe:  + xmlDecoder.valueForKey(childe));

 java.lang.NullPointerException
 [2010-03-13 17:08:56 IST] WorkerThread0 java.lang.NullPointerException
 at
 com.webobjects.appserver.xml.WOXMLDecoder.decodeObjectForKey(WOXMLDecoder.java:744)
 at
 com.webobjects.appserver.xml._private._DecodingHandler.root(_DecodingHandler.java:31)
 at
 com.webobjects.appserver.xml.WOXMLDecoder.decodeRootObject(WOXMLDecoder.java:706)
 at your.app.components.Main.submitData(Main.java:160)

 Thank You,
 Shravan Kumar. M
 ---


  ___
 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

WOXMLDecoder NullPointerException

2010-03-13 Thread Shravan Kumar. M
Hi Group,

Following code to decode an xml file or xml string is resuting in NPE, could 
you any one please advise what's going wrong here:

WOXMLDecoder xmlDecoder = WOXMLDecoder.decoder();
//InputStream is = 
application().resourceManager().inputStreamForResourceNamed(supra.xml, null, 
null);
//System.out.println(is... + is);
//Object obj = xmlDecoder.decodeRootObject(new NSData(is, 1024));
String xmlString = ?xml version='1.0'  
encoding='UTF-8'?suprachilde123/childe/supra;
StringReader stringReader = new StringReader(xmlString); 
InputSource is = new InputSource(stringReader); 
Object obj = xmlDecoder.decodeRootObject(is);
System.out.println(childe:  + xmlDecoder.valueForKey(childe));

java.lang.NullPointerException
[2010-03-13 17:08:56 IST] WorkerThread0 java.lang.NullPointerException
at 
com.webobjects.appserver.xml.WOXMLDecoder.decodeObjectForKey(WOXMLDecoder.java:744)
at 
com.webobjects.appserver.xml._private._DecodingHandler.root(_DecodingHandler.java:31)
at 
com.webobjects.appserver.xml.WOXMLDecoder.decodeRootObject(WOXMLDecoder.java:706)
at your.app.components.Main.submitData(Main.java:160)

Thank You,
Shravan Kumar. M
---



   ___
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: Long Fetch times

2010-03-13 Thread Shravan Kumar. M
Hi Jeff,

Just few questions to nail the problem:
1) When you execute the queries logged in your earlier directly in the 
database, does it have same performance/ same time to execute as you experience 
in the WO.
2) Try rebuilding table indices.
3) Just see if any data is corrupted in your database, there by it consumes so 
much time to retrieve data.
4) Might be your disk has slowed down and is not timely responding... time to 
replace with new disk ;-)

See if any of the above nails out your issue and helps solve the problem... if 
so, just post back your experiences!!!

Best Regards,
Shravan Kumar. M





Fw: Re: Long Fetch times
Re: Long Fetch times
Sun Mar 14 09:52:41 2010
From: 
Jeff Schmitz jeffandmon...@mac.com
To: 
Gaastra Dennis - WO Lists webobjects_li...@webappz.comA
little more info.  Here's the actual code that is doing the long
running fetch, followed by the sql generated by the code.  Note there
there isn't all that much data in the databaes, and the fetch itself
finds no matches...

   EOQualifier poolQual = Pool.POOL_TYPE.eq((int) poolType).and(
Pool.NAME.likeInsensitive(name));
   ERXFetchSpecification poolFetch = new 
ERXFetchSpecification(_Pool.ENTITY_NAME, poolQual, null);
   

   NSArray String keyPaths = newNSArray(newString[] {Pool.ENTRIES_KEY, 
  Pool.ENTRIES_KEY+ .+ Entry.COMBO_TEAMS_KEY, 
  Pool.ENTRIES_KEY+ .+ Entry.COMBO_TEAMS_KEY+ .+ 
ComboTeam.TEAM_POPUPS_KEY,
  Pool.ENTRIES_KEY+ .+ Entry.ENTRY_ADMIN_KEY});
   

   poolFetch.setPrefetchingRelationshipKeyPaths(keyPaths);
   Pool pool = (Pool) 
ec.objectsWithFetchSpecification(poolFetch).lastObject();
   return pool;


Mar 13 22:15:58 netBrackets[] (ERXNSLogLog4jBridge.java:46) DEBUG NSLog  -  
=== Begin Internal Transaction
Mar 13 22:15:58 netBrackets[] (ERXNSLogLog4jBridge.java:46)
DEBUG NSLog  -  evaluateExpression:
com.webobjects.jdbcadaptor._FrontBasePlugIn$FrontbaseExpression:
SELECT t0.c_admin_email, t0.c_admin_msg, t0.c_admin_pw,
t0.c_calculating_can_i_wins, t0.c_can_i_win_index,
t0.c_can_i_wins_calculated, t0.c_early_bird_paid,
t0.c_entry_limit, t0.id, t0.c_name, t0.c_paid, t0.c_password,
t0.c_pool_type, t0.c_results_index, t0.c_seed_type,
t0.c_spare_string, t0.c_stand_alone, t0.c_ud_bonus,
t0.c_updating_results, t0.c_weighted FROM t_pool t0 WHERE
(t0.c_pool_type = 0 AND t0.c_name LIKE '0HOGANS HOOPSTERS'
COLLATE INFORMATION_SCHEMA.CASE_INSENSITIVE) withBindings: 
Mar 13 22:15:58 netBrackets[] (ERXNSLogLog4jBridge.java:46) DEBUG NSLog  - 
1 row(s) processed
Mar 13 22:15:58 netBrackets[] (ERXNSLogLog4jBridge.java:46) DEBUG NSLog  -  
=== Commit Internal Transaction
Mar 13 22:15:58 netBrackets[] (ERXNSLogLog4jBridge.java:46) DEBUG NSLog  -  
=== Begin Internal Transaction
Mar 13 22:15:58 netBrackets[] (ERXNSLogLog4jBridge.java:46)
DEBUG NSLog  -  evaluateExpression:
com.webobjects.jdbcadaptor._FrontBasePlugIn$FrontbaseExpression:
SELECT t0.c_games, t0.c_groups, t0.id, t0.c_last_save,
t0.c_name, t0.c_password, t0.c_picks_confirmed, t0.poolID,
t0.c_real, t0.spare_bool, t0.spare_int, t0.spare_str,
t0.c_still_alive_first, t0.c_still_alive_second,
t0.c_still_alive_third, t0.c_tie_breaker, t0.userID FROM
t_entry t0 INNER JOIN t_pool T1 ON t0.poolID = T1.id WHERE
(T1.c_name LIKE '0HOGANS HOOPSTERS' COLLATE
INFORMATION_SCHEMA.CASE_INSENSITIVE AND T1.c_pool_type = 0)
withBindings: 
Mar 13 22:15:58 netBrackets[] (ERXNSLogLog4jBridge.java:46) DEBUG NSLog  - 
2 row(s) processed
Mar 13 22:15:58 netBrackets[] (ERXNSLogLog4jBridge.java:46) DEBUG NSLog  -  
=== Commit Internal Transaction
Mar 13 22:15:58 netBrackets[] (ERXNSLogLog4jBridge.java:46) DEBUG NSLog  -  
=== Begin Internal Transaction
Mar 13 22:15:58 netBrackets[] (ERXNSLogLog4jBridge.java:46)
DEBUG NSLog  -  evaluateExpression:
com.webobjects.jdbcadaptor._FrontBasePlugIn$FrontbaseExpression:
SELECT t0.entryID, t0.c_game, t0.c_group, t0.id, t0.c_items,
t0.c_score, t0.c_selected_item, t0.c_selected_weight FROM
t_combo_team t0 INNER JOIN t_entry T1 ON t0.entryID = T1.id
INNER JOIN t_pool T2 ON T1.poolID = T2.id WHERE (T2.c_pool_type
= 0 AND T2.c_name LIKE '0HOGANS HOOPSTERS' COLLATE
INFORMATION_SCHEMA.CASE_INSENSITIVE) withBindings: 
Mar 13 22:16:07 netBrackets[] (ERXNSLogLog4jBridge.java:46) DEBUG NSLog  - 
126 row(s) processed
Mar 13 22:16:07 netBrackets[] (ERXNSLogLog4jBridge.java:46) DEBUG NSLog  -  
=== Commit Internal Transaction
Mar 13 22:16:07 netBrackets[] (ERXNSLogLog4jBridge.java:46) DEBUG NSLog  -  
=== Begin Internal Transaction
Mar 13 22:16:07 netBrackets[] (ERXNSLogLog4jBridge.java:46)
DEBUG NSLog  -  evaluateExpression:
com.webobjects.jdbcadaptor._FrontBasePlugIn$FrontbaseExpression:
SELECT t0.c_combo_index, t0.comboTeamID, t0.c_group, t0.id,
t0.c_pool_type, t0.c_seed, t0.c_team_id, t0.c_team_pos FROM
t_team_popup t0 INNER JOIN t_combo_team T1 ON t0.comboTeamID =
T1.id INNER JOIN t_entry T2 ON T1.entryID

Fw: WOXMLDecoder NullPointerException

2010-03-13 Thread Shravan Kumar. M
Any suggestions please?

Fw: WOXMLDecoder NullPointerException
WOXMLDecoder NullPointerException
Sat Mar 13 17:15:22 2010
From: 
Shravan Kumar. M mshravan_...@yahoo.com
To: 
WO Dev Group webobjects-dev@lists.apple.com
Hi Group,

Following code to decode an xml file or xml string is resuting in NPE, could 
you any one please advise what's going wrong here:

WOXMLDecoder xmlDecoder = WOXMLDecoder.decoder();
//InputStream is = 
application().resourceManager().inputStreamForResourceNamed(supra.xml, null, 
null);
//supra.xml has similar xml as shown in xmlString below, but little elaborated.
//System.out.println(is... + is);
//Object obj = xmlDecoder.decodeRootObject(new NSData(is, 1024));
String xmlString = ?xml version='1.0'  
encoding='UTF-8'?suprachilde123/childe/supra;
StringReader stringReader = new StringReader(xmlString); 
InputSource is = new InputSource(stringReader); 
Object obj = xmlDecoder.decodeRootObject(is);
System.out.println(childe:  + xmlDecoder.valueForKey(childe));

java.lang.NullPointerException
[2010-03-13 17:08:56 IST] WorkerThread0 java.lang.NullPointerException
at 
com.webobjects.appserver.xml.WOXMLDecoder.decodeObjectForKey(WOXMLDecoder.java:744)
at 
com.webobjects.appserver.xml._private._DecodingHandler.root(_DecodingHandler.java:31)
at 
com.webobjects.appserver.xml.WOXMLDecoder.decodeRootObject(WOXMLDecoder.java:706)
at your.app.components.Main.submitData(Main.java:160)

Thank You,
Shravan Kumar. M
---


   ___
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

Eclipse: Generate Getters and Setters

2010-02-26 Thread Shravan Kumar. M
Hi Group,

When ever I use Source - Generate Getters and Setters... function in Eclipse 
it generates getter method as of Java Bean style like:

private String name;

public String getName() {
return name;
}

public void setName(String name) {
this.name = name;
}

But I wish the getter method generates like a native WO getter method i.e.,

public String name() {
return name;
}

Is there any setting I can modify to achieve this? Please advise.

Thank You in advance,
Shravan Kumar. M



   ___
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: refresh EC after call to ERXEOAccessUtilities.updateRowsDescribedByQualifier()?

2010-02-15 Thread Shravan Kumar. M
Thanks for all your inputs. I will be doing couple of experiments Mike and 
Kieran suggested and will post back soon with my observations/ any issues!





From: Jean-Francois Veillette jean_francois_veille...@yahoo.ca
To: Kieran Kelleher kieran_li...@mac.com
Cc: Shravan Kumar.M mshravan_...@yahoo.com; WO Dev Group 
webobjects-dev@lists.apple.com
Sent: Thu, February 11, 2010 8:09:04 PM
Subject: Re: refresh EC after call to 
ERXEOAccessUtilities.updateRowsDescribedByQualifier()?

Le 10-02-11 à 09:17, Kieran Kelleher a écrit :

 Really, IIRC, the code:
 
 ec.setFetchTimestamp( System.currentTimeMillis() );
 ec.refreshAllObjects();

That would take care of attributes,
but would it take care of relationships ?
what about deleted eo's ?

 Try it. If it works, great. If not, let us know ;-)

Yes please, let us know ;-)

- jfv


 On Feb 11, 2010, at 9:05 AM, Mike Schrag wrote:
 
 invalidateAllObjects can break other EC's that are currently editing objects 
 because you throw away the backing snapshots from underneath them ...
 
 ms
 
 On Feb 11, 2010, at 8:45 AM, Jean-Francois Veillette wrote:
 
 I'm surprised no one mentionned ec.invalidateAllObjects() coupled with 
 refetching arrays you might have in memory (displaygroup and such for 
 example), as far as I understand, it's the only solution that will take 
 care of relationship and get rid of deleted objects (faults will still be 
 in memory but at least refetching relationship and arrays will avoid 
 pointing to them).
 
 - jfv
 
 Le 10-02-08 à 14:20, Mike Schrag a écrit :
 
 yeah, this is why i'm suspicious that we'll see a generalized Wonder 
 implementation of this  definitely some tricks we could do, like what 
 you're saying -- just changing attributes that don't participate in 
 relationships, inverse relationships, or restricting qualifiers could be a 
 relatively easy update. changing anything that participates in a 
 relationship would be sort of a pain -- you have to do that pre-fetch 
 thing first and then you'd have to fake notifications afterwards. for 
 delete, it's even nastier.
 
 i think you take advantage of the knowledge you have of your special case 
 and custom write this. it's topics like these that make me sometimes think 
 the everything-is-cached approach is overkill. i'd love to see a variant 
 of EOF that lets you write like a stateless framework in cases where you 
 don't want all the snapshotting stuff.
 
 ms
 
 On Feb 8, 2010, at 2:13 PM, Anjo Krank wrote:
 
 Mostly, it depends on what you are doing. Changing, say, status=done is 
 different from owner=people pk:1, because the one only changes internal 
 state, the other touches relationships.
 
 Then again, all your *other* ECs in all *other* instances won't get 
 notified anyway (unless you use the ERCNF). So your code needs to be able 
 to handle that problem anyway.
 
 Cheers, Anjo
 
 
 
 Am 08.02.2010 um 20:02 schrieb Mike Schrag:
 
 Mike's precautionary measure is ticking at the top of my mind... so may 
 be for the time being I will just call ec.refreshAllObjects() just to 
 be integral, consistent, simple and more importantly let not annoy EOF 
 by mistake!!!
 my precautionary tale is about using the methods you're using at all 
 (i.e. the updateRowsDescribedByQualifier) ... you're sneaking behind EOF 
 and basically doing direct DB operations. you're then trying to come 
 back and expect an easy way for EOF's caches to be in-sync with your 
 changes. the general case here is that you can't do it without tossing 
 all your snapshots, because you have no idea if the snapshots in your 
 cache are actually in-sync with the current state of the database when 
 you executed your update. there's a reason EOF does what it does when 
 you perform all of these operations, and it's because it actually needs 
 to.
 
 probably the closest-to-right way to do this is to prefetch the rows 
 that would be updated or deleted, perform the operations, then use the 
 GIDs to ... i guess manually do everything that EOF would have done. 
 you're going to lose all the inverse relationship updating, and you're 
 going to lose delete rules, etc. also, by fetching into the EC 
 beforehand, you're basically taking the performance hit that you were 
 probably trying to avoid in the first place by using those API's.
 
 so i doubt there's a simple generalized API that will go into Wonder for 
 this -- i'm not people would be happy with the performance profile of it.
 
 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

Re: refresh EC after call to ERXEOAccessUtilities.updateRowsDescribedByQualifier()?

2010-02-08 Thread Shravan Kumar. M
Mike's precautionary measure is ticking at the top of my mind... so may be for 
the time being I will just call ec.refreshAllObjects() just to be integral, 
consistent, simple and more importantly let not annoy EOF by mistake!!!

I will however, keep Anjo's trick in mind and plan for its implementation 
slowly. Just a thought, I see Anjo's thought and this issue fix should go into 
wonder and may go into these API's like:

updateRowsDescribedByQualifier(EOEditingContext ec, String entityName, 
EOQualifier qualifier, NSDictionary newValues, boolean 
shouldUpdateECPostOperation) and similar one for 
deleteRowsDescribedByQualifier() API.

Thanks so much for all your participation.





From: msch...@mdimension.com msch...@mdimension.com
To: Anjo Krank a...@krank.net
Cc: Shravan Kumar. M mshravan_...@yahoo.com; WO Dev Group 
webobjects-dev@lists.apple.com
Sent: Mon, February 8, 2010 6:14:14 PM
Subject: Re: refresh EC after call to 
ERXEOAccessUtilities.updateRowsDescribedByQualifier()?

Good point .. That trick presumed that the update you performed didn't impact a 
qualified key.

forgetObject wouldn't remove from to-many relationships, right? So be careful 
on that.

Long story short -- messing around behind eof's back is a pain.

Sent from my iPhone

On Feb 8, 2010, at 3:55 AM, Anjo Kranka...@krank.net wrote:



 Wouldn't make much sense.
 
 - you're using these methods to NOT fetch the involved objects. If you're 
 doing the fetch, you might as well save them by modifying the objects
 - if you fetch them *after* the modification, then, depending on your 
 qualifier, you might not get anything back at all (say, modifying status=done 
 where status=new)
 
 What you *can* do is filter the EC's registeredObjects() with the same 
 qualifier, keep the GIDs, then update, then invalidate those objects. As for 
 the deleted objects, you should forgetObject() them.
 
 Cheers, Anjo
 
 Am 08.02.2010 um 06:04 schrieb Shravan Kumar. M:
 
 Thanks for your suggestion Mike. Sorry, I did not get your statement: do you 
 mean after call to ERXEOAccessUtilities.updateRowsDescribedByQualifier(), 
 should I immediately call EOFetchSpec 
 withfetchSpec.setRefreshesRefetchedObject(true) and with same qual used in 
 updateRowsDescribedByQualifier()?
 
 From: Mike Schrag msch...@mdimension.com
 To: Kieran Kelleher kieran_li...@mac.com
 Cc: Shravan Kumar. M mshravan_...@yahoo.com; WO Dev Group 
 webobjects-dev@lists.apple.com
 Sent: Sun, February 7, 2010 9:32:38 PM
 Subject: Re: refresh EC after call to 
 ERXEOAccessUtilities.updateRowsDescribedByQualifier()?
 
 for the update case, i was thinking just use the same qualifier with a 
 refreshesRefetchedObjects on a fetch spec  i think that won't refresh 
 deleted objects, though, so I'm not sure the best way to do the delete case. 
 if the objects were fetched into the eo already, then refreshAllObjects 
 might do it.
 
 On Feb 7, 2010, at 10:59 AM, Kieran Kelleher wrote:
 
 Off the top of my head, I would think something like this:
 
 ec.setFetchTimestamp( System.currentTimeMillis() );
 ec.refreshAllObjects();
 
 
 
 
 On Feb 7, 2010, at 1:06 AM, Shravan Kumar. M wrote:
 
 Hello Group,
 
 Is there any efficient way to refresh EOEditingContext after call to 
 ERXEOAccessUtilities.updateRowsDescribedByQualifier()/ 
 ERXEOAccessUtilities.deleteRowsDescribedByQualifier() API's, such that 
 only the effected EO's in the EC gets updated as per these actions?
 
 Thanks in advance,
 Shravan Kumar. M
 ---
 
 __
 Do You Yahoo!?
 Tired of spam? Yahoo! Mail has the best spam protection around
 http://mail.yahoo.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/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/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/anjo%40krank.net
 
 This email sent to a...@krank.net
 


   ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman

Re: refresh EC after call to ERXEOAccessUtilities.updateRowsDescribedByQualifier()?

2010-02-07 Thread Shravan Kumar. M
Thanks for your suggestion Kieran. At the moment I am just invoking 
ec.refreshAllObjects(); Will update the code as advised and try out!




From: Kieran Kelleher kieran_li...@mac.com
To: Shravan Kumar. M mshravan_...@yahoo.com
Cc: WO Dev Group webobjects-dev@lists.apple.com
Sent: Sun, February 7, 2010 9:29:06 PM
Subject: Re: refresh EC after call to 
ERXEOAccessUtilities.updateRowsDescribedByQualifier()?


Off the top of my head, I would think something like this:

ec.setFetchTimestamp( System.currentTimeMillis() );
ec.refreshAllObjects();




On Feb 7, 2010, at 1:06 AM, Shravan Kumar. M wrote:

Hello Group,

Is there any efficient way to refresh EOEditingContext after call to 
ERXEOAccessUtilities.updateRowsDescribedByQualifier()/ 
ERXEOAccessUtilities.deleteRowsDescribedByQualifier() API's, such that only 
the effected EO's in the EC gets updated as per these actions?

Thanks in advance,
Shravan Kumar. M
---
__
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around 
http://mail.yahoo.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/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: refresh EC after call to ERXEOAccessUtilities.updateRowsDescribedByQualifier()?

2010-02-07 Thread Shravan Kumar. M
Thanks for your suggestion Mike. Sorry, I did not get your statement: do you 
mean after call to ERXEOAccessUtilities.updateRowsDescribedByQualifier(), 
should I immediately call EOFetchSpec with 
fetchSpec.setRefreshesRefetchedObject(true) and with same qual used in 
updateRowsDescribedByQualifier()?




From: Mike Schrag msch...@mdimension.com
To: Kieran Kelleher kieran_li...@mac.com
Cc: Shravan Kumar. M mshravan_...@yahoo.com; WO Dev Group 
webobjects-dev@lists.apple.com
Sent: Sun, February 7, 2010 9:32:38 PM
Subject: Re: refresh EC after call to 
ERXEOAccessUtilities.updateRowsDescribedByQualifier()?

for the update case, i was thinking just use the same qualifier with a 
refreshesRefetchedObjects on a fetch spec  i think that won't refresh 
deleted objects, though, so I'm not sure the best way to do the delete case. if 
the objects were fetched into the eo already, then refreshAllObjects might do 
it.


On Feb 7, 2010, at 10:59 AM, Kieran Kelleher wrote:

Off the top of my head, I would think something like this:


ec.setFetchTimestamp( System.currentTimeMillis() );
ec.refreshAllObjects();







On Feb 7, 2010, at 1:06 AM, Shravan Kumar. M wrote:

Hello Group,

Is there any efficient way to refresh EOEditingContext after call to 
ERXEOAccessUtilities.updateRowsDescribedByQualifier()/ 
ERXEOAccessUtilities.deleteRowsDescribedByQualifier() API's, such that only 
the effected EO's in the EC gets updated as per these actions?

Thanks in advance,
Shravan Kumar. M
---
__
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around 
http://mail.yahoo.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/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/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: SIF and WO

2010-02-02 Thread Shravan Kumar. M
Hello Steve,

We write SIF agents in Java  J2EE technologies as per our company or client 
needs, but I would be interested to write them in WO.

Cheers,
Shravan Kumar. M
---

Fw: SIF and WO
SIF and WO
Tuesday, February 02, 2010 9:02:41 AM
From: 
Steve Peery spe...@gmavt.net
To: 
 webobjects-dev@lists.apple.comHas anyone used SIF, http://www.sifinfo.org, 
in a WebObjects project?

Thanks, Steve


   ___
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

Fw: Frames Session problem..

2010-01-19 Thread Shravan Kumar. M
Missed to reply to list!



- Forwarded Message 
From: Shravan Kumar. M mshravan_...@yahoo.com
To: sreenivasul...@evergent.com
Sent: Tue, January 19, 2010 11:34:50 PM
Subject: Re: Frames Session problem..


Use Javascript to call logout in another frame when logout in one frame is 
called, that would simply solve ur problem!

Frames Session problem..
Tue Jan 19 16:27:42 2010
From: 
Sreenivasulu A sreenivasul...@evergent.com
To: 
 webobjects-dev@lists.apple.com
Hi All,

My
application consists of  2 frames. One is for user login screen, and
other is for  application specific. Each frame maintains seperate
session object. When I logout my application only one session is
terminating. Other frame session is remaining itself. I don't know how
to track other frame session object. 
When user clicks on logout, session().terminate() is called in the code.
Please help me in this.


Thanks in Advance,
Sreenivasulu Arveti.



   ___
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: How to Prevent backtracking after session().terminate

2009-12-14 Thread Shravan Kumar. M
may be the browser is loading the page from browser cache, so to avoid that, 
you may have to try to set these response headers:

response.setHeader(Cache-Control,no-cache);
response.setHeader(Pragma,no-cache);
response.setDateHeader (Expires, 0);

OR some mechanism listed here, that suits your needs: 
http://www.google.co.in/search?q=browser+no+cacheie=utf-8oe=utf-8aq=trls=org.mozilla:en-US:officialclient=firefox-a
Cheers,
Shravan Kumar. M


How to Prevent backtracking after session().terminate
Mon Dec 14 17:52:44 2009
From:
Sreenivasulu.Arveti sreenivasul...@evergent.com
To:
 webobjects-dev@lists.apple.com

Hi All,

 

I am working with WOLips. In my application, when I clicked on Logout button, I 
called session().terminate().

It works fine in the Internet Explorer. When I click on back button it goes to 
login page. But in Mozilla browser

When I did the same thing it is not working. i.e., after clicking on logout 
button also when I click on back button

in the Mozilla web browser, application is working fine without going to login 
page.

 

Please get rid of this issue.

 

Thanks in advance,

Sreenivasulu Arveti.


   ___
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

Small feedback to ProjectWonder team

2009-12-05 Thread Shravan Kumar. M
Hello Wonder team,

Recently I have used ERXWOSwitch  ERXWOCase and they are so wonderfully 
designed. This is a good replacement for multiple WOConditional's.

Really these are so natural in usage and I got rid of toggling various 
WOConditional's

Thank You wonder team for your wonderful thoughts and implementations,
Shravan Kumar. M
---



   ___
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: Qualify data based on non-class property

2009-11-28 Thread Shravan Kumar. M
Thanks for your response Clark.

Actually, I have a list of customers which I have to filter based on their 
sales... but for that I have to build a qualifier to filter the data.

So, I will get customer Object reference from sales's objects, and finally I 
have to extract all the customers having sales...

occasionally I have to build qualifiers for the non-class properties :)

Thank You,
Shravan Kumar. M
--

Am I correct in assuming that sales.toCust() is a related EO? If so, you should 
be passing the name of the relationship as the key for the qualifier instead of 
the name of the foreign key, for example:

EOKeyValueQualifier custQual = new EOKeyValueQualifier(cust, 
EOQualifier.QualifierOperatorNotEqual, sales.toCust());

Clark

On 2009-11-28, at 10:51 AM, Shravan Kumar. M wrote:
Hello Group,


Can we qualify data based on non-class property? Using following mechanism, I 
was receiving error as shown here:


EOKeyValueQualifier custQual = new EOKeyValueQualifier(custID, 
EOQualifier.QualifierOperatorNotEqual, sales.toCust());
NSArray activeCusts = EOQualifier.filteredArrayWithQualifier(sales, finalQual);


com.webobjects.foundation.NSKeyValueCoding$UnknownKeyException: 
com.mtj.model.Map 0xcb43d9 valueForKey(): lookup of unknown key: 'custID'.
This class does not have an instance variable of the name custID or _custID, 
nor a method of the name custID, _custID, getCustID, or _ getCustID
at 
com.webobjects.foundation.NSKeyValueCoding$DefaultImplementation.handleQueryWithUnboundKey(NSKeyValueCoding.java:1316)
at 
com.webobjects.eocontrol.EOCustomObject.handleQueryWithUnboundKey(EOCustomObject.java:1623)
at 
com.webobjects.foundation.NSKeyValueCoding$Utility.handleQueryWithUnboundKey(NSKeyValueCoding.java:544)
at 
com.webobjects.foundation.NSKeyValueCoding$_KeyBinding.valueInObject(NSKeyValueCoding.java:920)
at 
com.webobjects.eocontrol.EOCustomObject.valueForKey(EOCustomObject.java:1559)
at 
com.webobjects.foundation.NSKeyValueCoding$Utility.valueForKey(NSKeyValueCoding.java:498)
at 
com.webobjects.foundation.NSKeyValueCodingAdditions$DefaultImplementation.valueForKeyPath(NSKeyValueCodingAdditions.java:212)
at 
com.webobjects.eocontrol.EOCustomObject.valueForKeyPath(EOCustomObject.java:1675)
at 
com.webobjects.foundation.NSKeyValueCodingAdditions$Utility.valueForKeyPath(NSKeyValueCodingAdditions.java:149)
at 
com.webobjects.eocontrol.EOKeyValueQualifier.evaluateWithObject(EOKeyValueQualifier.java:131)
at 
com.webobjects.eocontrol.EOAndQualifier.evaluateWithObject(EOAndQualifier.java:96)
at 
com.webobjects.eocontrol.EOAndQualifier.evaluateWithObject(EOAndQualifier.java:96)
at 
com.webobjects.eocontrol.EOQualifier.filteredArrayWithQualifier(EOQualifier.java:635)
at com.aso.model.Sales.activeCusts(Sales.java:514)






Thanks in advance,
Shravan Kumar. M
--


   ___
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: JProfiler from Eclipse/WOLips

2009-11-23 Thread Shravan Kumar. M
Would you like to go with *Shark* - Apple in-built profiler?

Cheers,
Shravan Kumar. M
-

Tuesday, November 24, 2009 8:04:28 AM
From: 
Kieran Kelleher kieran_li...@mac.com
To: 
Kieran Kelleher kieran_li...@mac.comAnd if I just go into Launch Configs, 
make a new WOApplication (JProfiler) config and try tp launch it, I get:

An internal error occurred during: Launching cheetah.
com.jprofiler.integrations.eclipse.internal.ProfilingSession.createProfilingSession(Lorg/eclipse/debug/core/model/ILaunchConfigurationDelegate;Lorg/eclipse/debug/core/ILaunchConfiguration;)Lcom/jprofiler/integrations/eclipse/internal/ProfilingSession;


On Nov 23, 2009, at 9:28 PM, Kieran Kelleher wrote:

Need a profiler for a weird memory issue. The trial key only works with 
JProfiler 6.


Installed JProfiler, and latest 3.4.XXX nightly wolips and JProfiler support. 
Restarted eclipse with -clean.


The context menu for Profile As.. does not have a WOApplication item.  any 
hints on what else to get JProfiler going?


Regards, Kieran


On Nov 17, 2009, at 5:19 PM, Mike Schrag wrote:

I've never tried with 6, which just came out ... I'm on 5.x.


ms


On Nov 17, 2009, at 5:18 PM, Lon Varscsak wrote:

I spoke too soon. :)  Is there a specific version of JProfiler I need?  I get 
this error:


java.lang.NoSuchMethodError:
com.jprofiler.integrations.eclipse.internal.ProfilingSession.createProfilingSession(Lorg/eclipse/debug/core/model/ILaunchConfigurationDelegate;Lorg/eclipse/debug/core/ILaunchConfiguration;)Lcom/jprofiler/integrations/eclipse/internal/ProfilingSession;
at
org.objectstyle.wolips.jprofiler.launching.JProfilerWOJavaLocalApplicationLaunchConfigurationDelegate.launch(JProfilerWOJavaLocalApplicationLaunchConfigurationDelegate.java:71)
at 
org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:853)
at 
org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:703)
at 
org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:866)
at org.eclipse.debug.internal.ui.DebugUIPlugin$8.run(DebugUIPlugin.java:1069)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)




On Tue, Nov 17, 2009 at 3:14 PM, Lon Varscsak varsc...@smarthealth.com 
wrote:

Ah, step #2 was my problem.  Thanks Mike.


-Lon



On Tue, Nov 17, 2009 at 2:57 PM, Mike Schrag msch...@mdimension.com wrote:

1) install jprofiler, select your eclipse during the ide integration step
2) install wolips jprofiler plugin (in the normal wolips install site)
3) proflie as=WebObjects Application


On Nov 17, 2009, at 4:54 PM, Lon Varscsak wrote:

 Does anyone have a quick start guide to getting JProfiler working
from within Eclipse with WOLips?  Or are there alternatives to
JProfiler that work better?

 Thanks,

 Lon
 ___
 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/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/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: [OT] Weird Boolean/ Wrapper class bug

2009-11-21 Thread Shravan Kumar. M
Mine: java version 1.5.0_16




From: David LeBer dleber_wo...@codeferous.com
To: Shravan Kumar. M mshravan_...@yahoo.com
Cc: WO Dev Group webobjects-dev@lists.apple.com
Sent: Sat, November 21, 2009 9:06:22 PM
Subject: Re: [OT] Weird Boolean/ Wrapper class bug


On 2009-11-21, at 10:23 AM, Shravan Kumar. M wrote:

 Hello Group,
 
 Boolean a = null;
 if(a != null)
 System.out.println(s);
 else 
 System.out.println(n);
 
 --
 Above code block raises NullPointerException, where as below one runs 
 successfully!!! Same is the case with any wrapper class (Integer, Long, ...).
 *Its wondering what it makes difference in checking (a != null)  and (a == 
 null)? Its just an Object check rt!*
 
 Exact exception: java.lang.NullPointerException at booleanValue()
 --
 
 Boolean a = null;
 if(a == null)
 System.out.println(s);
 else 
 System.out.println(n);

That makes no sense.

Boolean b = null;
if (b != null) {
NSLog.out.appendln(not null);
} else {
NSLog.out.appendln(is null);
}

Runs fine for me.

Something is hosed with your JVM?

;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: [OT] Weird Boolean/ Wrapper class bug

2009-11-21 Thread Shravan Kumar. M
Hello Mike,

Its the same code I have showed you (except that I changed variable names for 
simplicity), and there is no line of code that is missing. Where a is the EO 
property and when I check for it (  if(a != null) JRE throws NPE and when I 
check for if(a == null), JRE enjoys ), its throwing exception as stated. I 
believe this is a bug with JRE, and it seems to be fixed as per David's testing 
in later versions of JRE.

I think fix would be JRE shouldn't have unboxed it if its null... and they 
seems to have realized this mistake in later versions of JRE... But its 
wondering how a null  not null check differs in this world and they are not 
same from JRE perspective!!! If its an error it should have thrown error 
always...

Thank You,
Shravan Kumar. M




From: Mike Schrag msch...@mdimension.com
To: Shravan Kumar. M mshravan_...@yahoo.com
Cc: WO Dev Group webobjects-dev@lists.apple.com
Sent: Sat, November 21, 2009 9:26:57 PM
Subject: Re: [OT] Weird Boolean/ Wrapper class bug

You're not pasting the real code, I don't think. I suspect you're just getting 
screwed by autoboxing in whatever code you're not showing. If you have:

Boolean a = null;
boolean b = a;

That will result in a NPE as auto-unboxing attempts to unbox a into a boolean, 
which throws a NPE. Somewhere in the code you didn't include is an unbox into a 
boolean (little b) of your null Boolean.

So, for instance:

Boolean a = null;
if (a) {
}

will NPE. Look more closely at the exact code, specifically the line of code 
that actually failing, and make sure you're not getting an unbox.

ms


On Nov 21, 2009, at 10:23 AM, Shravan Kumar. M wrote:

Hello Group,


Boolean a = null;
if(a != null)
System.out.println(s);
else 
System.out.println(n);
--
Above code block raises NullPointerException, where as below one runs 
successfully!!! Same is the case with any wrapper class (Integer, Long, ...).
*Its wondering what it makes difference in checking (a != null)  and (a == 
null)? Its just an Object check rt!*


Exact exception: java.lang.NullPointerException at booleanValue()
--
Boolean a = null;
if(a == null)
System.out.println(s);
else 
System.out.println(n);


Thank You,
Shravan Kumar. M

___
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: [OT] Weird Boolean/ Wrapper class bug

2009-11-21 Thread Shravan Kumar. M
Thanks for your example and analysis Mike. When I run your example from a 
simple file over command-line everything is fine and when I put this code this 
Application.java, even then its fine...

But the error happens from a EO class and when I debug and test this code 
snippet in Display view, same error is shown there... so, the problem is 
getting more interesting and fuzzy. One thing I can surely say, error is 
inconsistent and is reproducible.

My java full version: java full version 1.5.0_16-b06-284

Thank You,
Shravan Kumar. M
-

Re: [OT] Weird Boolean/ Wrapper class bug
November 22, 2009 7:39:08 AM GMT+05:30
From:
Mike Schrag msch...@mdimension.com
To:
WO Dev Group webobjects-dev@lists.apple.com
Incidentally, boxing/unboxing actually happens at compile time ... Once you run 
that code and verify if it works or not, then do the same inside of Eclipse and 
see if it fails (assuming you are compiling this from eclipse not javac). If 
that fails, run

javap -c Test

and you can see the decompiled code ... There should be no boxing/unboxing 
calls (basically, you shouldn't see an invokevirtual except for the println), 
you should just see an ifnull.

ms


On Nov 21, 2009, at 9:02 PM, Mike Schrag wrote:

I just tested that code under JDK 1.5.0_16-b06-275 on Tiger and it works for 
me. Incidentally, my rule of thumb is if you think it's a VM, you're wrong. 
it's your fault. This rule of thumb has never failed me.


In a sample java file:


public class Test {
public static void main(String[] args) {
Boolean a = null;
if(a != null)
System.out.println(s);
else
System.out.println(n);
}
}


emerald:~ local$ java -fullversion
java full version 1.5.0_16-b06-275
emerald:~ local$ javac Test.java 
emerald:~ local$ java Test
n


javac that and run it and see if that fails for you.


ms


On Nov 21, 2009, at 7:55 PM, Shravan Kumar. M wrote:

Hello Mike,


Its the same code I have showed you (except that I changed variable names for 
simplicity), and there is no line of code that is missing. Where a is the 
EO property and when I check for it (  if(a != null) JRE throws NPE and when 
I check for if(a == null), JRE enjoys ), its throwing exception as stated. I 
believe this is a bug with JRE, and it seems to be fixed as per David's 
testing in later versions of JRE.


I think fix would be JRE shouldn't have unboxed it if its null... and they 
seems to have realized this mistake in later versions of JRE... But its 
wondering how a null  not null check differs in this world and they are not 
same from JRE perspective!!! If its an error it should have thrown error 
always...


Thank You,
Shravan Kumar. M




From: Mike Schrag msch...@mdimension.com
To: Shravan Kumar. M mshravan_...@yahoo.com
Cc: WO Dev Group webobjects-dev@lists.apple.com
Sent: Sat, November 21, 2009 9:26:57 PM
Subject: Re: [OT] Weird Boolean/ Wrapper class bug

You're not pasting the real code, I don't think. I suspect you're just 
getting screwed by autoboxing in whatever code you're not showing. If you 
have:


Boolean a = null;
boolean b = a;


That will result in a NPE as auto-unboxing attempts to unbox a into a 
boolean, which throws a NPE. Somewhere in the code you didn't include is an 
unbox into a boolean (little b) of your null Boolean.


So, for instance:


Boolean a = null;
if (a) {
}


will NPE. Look more closely at the exact code, specifically the line of code 
that actually failing, and make sure you're not getting an unbox.


ms


On Nov 21, 2009, at 10:23 AM, Shravan Kumar. M wrote:

Hello Group,


Boolean a = null;
if(a != null)
System.out.println(s);
else 
System.out.println(n);
--
Above code block raises NullPointerException, where as below one runs 
successfully!!! Same is the case with any wrapper class (Integer, Long, ...).
*Its wondering what it makes difference in checking (a != null)  and (a == 
null)? Its just an Object check rt!*


Exact exception: java.lang.NullPointerException at booleanValue()
--
Boolean a = null;
if(a == null)
System.out.println(s);
else 
System.out.println(n);


Thank You,
Shravan Kumar. M

___
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/mschrag%40mdimension.com

This email sent to msch...@mdimension.com

Re: ERXInQualifier bug - repeating last element extra 5 times

2009-11-17 Thread Shravan Kumar. M
Wow!!! Is it, its a new learning, thanks Huss.

We use Frontbase, and the query sent to DB has the values substituted from the 
logs. Do you know which DB support the bind variables concept coming to IN 
clause. I believe Oracle/ Sybase should do it!!!





From: John Huss johnth...@gmail.com
To: Ricardo J. Parada rpar...@mac.com
Cc: Shravan Kumar. M mshravan_...@yahoo.com; WO Dev Group 
webobjects-dev@lists.apple.com
Sent: Tue, November 17, 2009 10:42:14 PM
Subject: Re: ERXInQualifier bug - repeating last element extra 5 times

If your DB supports bind variables or parameterized queries you get SQL sort 
of like:

WHERE key IN (?, ?, ?, ?, ?, ?, ?, ?, ?)

and the values are supplied afterwards.  The DB server may be able to prepare 
for this query and run it faster the next time even if the actual values change 
because the SQL stays the same - just question marks.  It is an optimization.

John


On Mon, Nov 16, 2009 at 10:49 PM, Ricardo J. Parada rpar...@mac.com wrote:


When I tried it, the ERXInQualifier generated SQL for only the desired values 
and without repeating the last one.  Actually I did not set that property, I 
used the padToSize in the constructor.  And then I noticed that the default 
padToSize comes from that property by looking at the ERXInQualifier source 
code.


Like I said, I don't know what the padding is for.   I read the documentation 
but it did not answer that to me.  It mentions something about bind variables 
and reducing the number of unique queries.  But I still don't get it.  :-)


Here it is:


public ERXInQualifier(String key,
NSArray values,
  int padToSize)
Constructs an in qualifer for a given attribute name and an array of values.


Parameters:
key - attribute name
values - array of values
padToSize - the size which is expected to be reasonable for this qualifier. If 
the NSArray values has more than one element, the padToSize is used to round 
up the number of elements and pad with nulls. Doing this reduces the number of 
unique queries which result from having an arbitrary number of values. For 
example, if the padToSize is 8, then we'll either have 1, or 8, or 16, or... 
bind variables as compared to 1..., 2..., 3..., 4..., or 16






On Nov 16, 2009, at 11:39 PM, Shravan Kumar. M wrote:

Oh is it! I will try out this option today!!! 

Will changing this option as advised effect any other parts of Wonder/ 
ERXtensions - er.extensions.ERXInQualifier.DefaultPadToSize=1

Actually, due to this padding we had an SQL overflow once, but people did not 
recognize that this was caused by ERXInQualifier duplication of values...





From: Ricardo J. Parada rpar...@mac.com
To: Shravan Kumar. M mshravan_...@yahoo.com
Cc: WO Dev Group webobjects-dev@lists.apple.com
Sent: Tue, November 17, 2009 2:12:05 AM
Subject: Re: ERXInQualifier bug - repeating last element extra 5 times

Yes I noticed that too.  I don't quite understand what the padding does but I 
think you may set the following property to 1 and it may behave the way you 
are expecting it:


er.extensions.ERXInQualifier.DefaultPadToSize=1


 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/johnthuss%40gmail.com

This email sent to johnth...@gmail.com




   ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

ERXInQualifier bug - repeating last element extra 5 times

2009-11-16 Thread Shravan Kumar. M
Hi Group,

We have recently been using ERXInQualifier and noticed that there is a bug, 
where-in the last element of the array passed to this qualifier is repeated 
five times extra as follows: (344, 1163, 127, 127, 127, 127, 127, 127)

Is this issue fixed? Can I get a patch for ERXtensions ver 4.0

Thank You in advance,
Shravan Kumar. M
---



   ___
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: ERXInQualifier bug - repeating last element extra 5 times

2009-11-16 Thread Shravan Kumar. M
Thanks for your quick response Mike. Please let me know if there it is fixed, 
so I will take that fix accordingly.





From: Mike Schrag msch...@mdimension.com
To: Shravan Kumar. M mshravan_...@yahoo.com
Cc: WO Dev Group webobjects-dev@lists.apple.com
Sent: Tue, November 17, 2009 12:55:57 AM
Subject: Re: ERXInQualifier bug - repeating last element extra 5 times

i've never seen this bug ... i would check it on trunk. we don't provide 
patches for old versions, so you would need to maintain your own branch of this 
and pull the trunk fix back (if it is actually fixed).

ms


On Nov 16, 2009, at 2:06 PM, Shravan Kumar. M wrote:

Hi Group,

We have recently been using ERXInQualifier and noticed that there is a bug, 
where-in the last element of the array passed to this qualifier is repeated 
five times extra as follows: (344, 1163, 127, 127, 127, 127, 127, 127)

Is this issue fixed? Can I get a patch for ERXtensions ver 4.0

Thank You in advance,
Shravan Kumar. M
---

___
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: ERXInQualifier bug - repeating last element extra 5 times

2009-11-16 Thread Shravan Kumar. M
Oh is it! I will try out this option today!!!

Will changing this option as advised effect any other parts of Wonder/ 
ERXtensions - er.extensions.ERXInQualifier.DefaultPadToSize=1

Actually, due to this padding we had an SQL overflow once, but people did not 
recognize that this was caused by ERXInQualifier duplication of values...





From: Ricardo J. Parada rpar...@mac.com
To: Shravan Kumar. M mshravan_...@yahoo.com
Cc: WO Dev Group webobjects-dev@lists.apple.com
Sent: Tue, November 17, 2009 2:12:05 AM
Subject: Re: ERXInQualifier bug - repeating last element extra 5 times

Yes I noticed that too.  I don't quite understand what the padding does but I 
think you may set the following property to 1 and it may behave the way you are 
expecting it:

er.extensions.ERXInQualifier.DefaultPadToSize=1






On Nov 16, 2009, at 2:06 PM, Shravan Kumar. M wrote:

Hi Group,

We have recently been using ERXInQualifier and noticed that there is a bug, 
where-in the last element of the array passed to this qualifier is repeated 
five times extra as follows: (344, 1163, 127, 127, 127, 127, 127, 127)

Is this issue fixed? Can I get a patch for ERXtensions ver 4.0

Thank You in advance,
Shravan Kumar. M
---

___
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/rparada%40mac.com

This email sent to rpar...@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: ERXInQualifier bug - repeating last element extra 5 times

2009-11-16 Thread Shravan Kumar. M
Okay. Thanks for your quick response Ricardo.





From: Ricardo J. Parada rpar...@mac.com
To: Shravan Kumar. M mshravan_...@yahoo.com
Cc: WO Dev Group webobjects-dev@lists.apple.com
Sent: Tue, November 17, 2009 10:19:28 AM
Subject: Re: ERXInQualifier bug - repeating last element extra 5 times


When I tried it, the ERXInQualifier generated SQL for only the desired values 
and without repeating the last one.  Actually I did not set that property, I 
used the padToSize in the constructor.  And then I noticed that the default 
padToSize comes from that property by looking at the ERXInQualifier source code.

Like I said, I don't know what the padding is for.   I read the documentation 
but it did not answer that to me.  It mentions something about bind variables 
and reducing the number of unique queries.  But I still don't get it.  :-)

Here it is:

public ERXInQualifier(String key,
NSArray values,
  int padToSize)
Constructs an in qualifer for a given attribute name and an array of values.

Parameters:
key - attribute name
values - array of values
padToSize - the size which is expected to be reasonable for this qualifier. If 
the NSArray values has more than one element, the padToSize is used to round up 
the number of elements and pad with nulls. Doing this reduces the number of 
unique queries which result from having an arbitrary number of values. For 
example, if the padToSize is 8, then we'll either have 1, or 8, or 16, or... 
bind variables as compared to 1..., 2..., 3..., 4..., or 16




On Nov 16, 2009, at 11:39 PM, Shravan Kumar. M wrote:

Oh is it! I will try out this option today!!! 

Will changing this option as advised effect any other parts of Wonder/ 
ERXtensions - er.extensions.ERXInQualifier.DefaultPadToSize=1

Actually, due to this padding we had an SQL overflow once, but people did not 
recognize that this was caused by ERXInQualifier duplication of values...





From: Ricardo J. Parada rpar...@mac.com
To: Shravan Kumar. M mshravan_...@yahoo.com
Cc: WO Dev Group webobjects-dev@lists.apple.com
Sent: Tue, November 17, 2009 2:12:05 AM
Subject: Re: ERXInQualifier bug - repeating last element extra 5 times

Yes I noticed that too.  I don't quite understand what the padding does but I 
think you may set the following property to 1 and it may behave the way you 
are expecting it:


er.extensions.ERXInQualifier.DefaultPadToSize=1




   ___
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: [SOLVED] how to insert records in database in the order of insertion to EC

2009-11-01 Thread Shravan Kumar. M
Thanks Kieran for your solution. But unfortunately, we don't extend 
ERXGenericRecord, so we cannot get benefits of this!!! I have actually read 
about your this solution in a similar kind of issue posted and responded by you 
here: http://www.mail-archive.com/webobjects-dev@lists.apple.com/msg25975.html





From: Kieran Kelleher kieran_li...@mac.com
To: Shravan Kumar. M mshravan_...@yahoo.com
Cc: Chuck Hill ch...@global-village.net; WO Dev Group 
webobjects-dev@lists.apple.com
Sent: Sun, November 1, 2009 5:55:25 PM
Subject: Re: how to insert records in database in the order of insertion to EC

Or if you want the order of the PKs to be the same order as your insertion into 
the EC, you can try calling

eo.primaryKeyInTransaction(or sth like that)

which is provided by ERXGenericRecord subclass.

That method assigned the PK ... do it in each iteration. Then the items are 
saved the the PK order the same as insertion order.

Regards, Kieran


On Nov 1, 2009, at 12:11 AM, Shravan Kumar. M wrote:

Okay. So, as determined I will just with adding a new field to set the order of 
records inserted to DB.

Thanks again Chuck for your insight!!!





From: Chuck Hill ch...@global-village.net
To: Shravan Kumar. M mshravan_...@yahoo.com
Cc: WO Dev Group webobjects-dev@lists.apple.com
Sent: Sun, November 1, 2009 9:34:31 AM
Subject: Re: how to insert records in database in the order of insertion to EC


On Oct 31, 2009, at 8:46 PM, Shravan Kumar. M wrote:

 Thanks so much for your quick response Chuck.
 
 We use Frontbase. I have no FK issue here. It's just that the objects should 
 be inserted to DB in the order I have created and inserted into EC.
 
 Why EC saveChanges() operation just not save the objects in the order of 
 insertion??? Isn't it simple? I believe EC maintains an array 
 insertedObjects(), so it should just follow that array order, unless 
 otherwise any constraints as you have mentioned!!! Just trying to understand 
 the mystery behind the complexity :)

For what you want, it would not matter if it did.  The defined order of 
records in an un-ordered Select (a select with no Order By clause) is 
indeterminate.  The database is free to change the order of such result sets 
to return the result set in the shortest amount of time or any other reason it 
might have.


 If there's no built-in solution, then probably adding a sortOrder field to 
 my table would fix this issue.

That is the ONLY solution you can depend on.


Chuck


 From: Chuck Hill ch...@global-village.net
 To: Shravan Kumar. M mshravan_...@yahoo.com
 Cc: WO Dev Group webobjects-dev@lists.apple.com
 Sent: Sun, November 1, 2009 8:49:54 AM
 Subject: Re: how to insert records in database in the order of insertion to 
 EC
 
 
 On Oct 31, 2009, at 6:57 PM, Shravan Kumar. M wrote:
 
  Hi Group,
 
  Could any one please advise me how can I insert records in database in a 
  specific order or as per the order of insertion of objects to 
  EditingContext
 
 AFAIK, you can't.  The order of insertion is not tracked.
 
 
  for eg:
 
  I have inserted objects to EC in the following order: A1, A2, A3, A4, A5 
  (and then saved the EC once - editingContext.saveChanges())
  But, when these got saved to database the order is disturbed and is not 
  guaranteed i.e., I see following order sometimes: A2, A5, A1, A3, A4, 
  whereas I want the order of these objects as I have inserted to EC.
 
  I heard that we can do something with AdaptorOperations, but not sure of 
  that exactly and am trying to see if we have an higher level API for that. 
  (Just a note: We do not use Wonder to the fullest, of course we use Wonder 
  API's as required.)
 
 
 If your problem is FK constraint violations, make the constraints DEFERRABLE 
 INITIALLY DEFERRED when you create them.
 
 If you are using MS SQL Server, then you are in a world of hurt.  It 
 includes not supporting deferrable constraints in its set of unsupported yet 
 highly desirable features.  There is a reason why people mock that 
 database.  You can order the operations using EOF but (a) is isn't easy 
 and (b) you can't expect to know the order of insertion and (c) I can't 
 think of many useful examples to follow.  You could start with the source 
 for myhttp://www.global-village.net/chill/ms_sql_server_eof_plugin
 
 
 Chuck
 
 --Chuck HillSenior 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
 
 
 
 
 
 
 
 
 

--Chuck HillSenior 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

Re: [SOLVED] how to insert records in database in the order of insertion to EC

2009-11-01 Thread Shravan Kumar. M
Thanks for your adding strength to the solution determined. 

Its lot of good learning by participating in WO Community mailing lists.

Cheers,
Shravan Kumar. M





From: Mike Schrag msch...@mdimension.com
To: Shravan Kumar. M mshravan_...@yahoo.com
Cc: Kieran Kelleher kieran_li...@mac.com; WO Dev Group 
webobjects-dev@lists.apple.com
Sent: Sun, November 1, 2009 6:39:32 PM
Subject: Re: [SOLVED] how to insert records in database in the order of 
insertion to EC

100% with chuck here ... the database is an unordered set. don't depend on 
this. don't play pk tricks. if you want a specific order, add a field that 
represents this specific order and sort by it on fetch. clearly order matters 
to you, which means that ordering is real data and should be represented in 
your db explicitly, not achieved with trickery.


On Nov 1, 2009, at 7:40 AM, Shravan Kumar. M wrote:

Thanks Kieran for your solution. But unfortunately, we don't extend 
ERXGenericRecord, so we cannot get benefits of this!!! I have actually read 
about your this solution in a similar kind of issue posted and responded by you 
here: http://www.mail-archive.com/webobjects-dev@lists.apple.com/msg25975.html





From: Kieran Kelleher kieran_li...@mac.com
To: Shravan Kumar. M mshravan_...@yahoo.com
Cc: Chuck Hill ch...@global-village.net; WO Dev Group 
webobjects-dev@lists.apple.com
Sent: Sun, November 1, 2009 5:55:25 PM
Subject: Re: how to insert records in database in the order of insertion to EC

Or if you want the order of the PKs to be the same order as your insertion 
into the EC, you can try calling


eo.primaryKeyInTransaction(or sth like that)


which is provided by ERXGenericRecord subclass.


That method assigned the PK ... do it in each iteration. Then the items 
are saved the the PK order the same as insertion order.


Regards, Kieran


On Nov 1, 2009, at 12:11 AM, Shravan Kumar. M wrote:

Okay. So, as determined I will just with adding a new field to set the order 
of records inserted to DB.

Thanks again Chuck for your insight!!!





From: Chuck Hill ch...@global-village.net
To: Shravan Kumar. M mshravan_...@yahoo.com
Cc: WO Dev Group webobjects-dev@lists.apple.com
Sent: Sun, November 1, 2009 9:34:31 AM
Subject: Re: how to insert records in database in the order of insertion to EC


On Oct 31, 2009, at 8:46 PM, Shravan Kumar. M wrote:

 Thanks so much for your quick response Chuck.
 
 We use Frontbase. I have no FK issue here. It's just that the objects 
 should be inserted to DB in the order I have created and inserted into EC.
 
 Why EC saveChanges() operation just not save the objects in the order of 
 insertion??? Isn't it simple? I believe EC maintains an array 
 insertedObjects(), so it should just follow that array order, unless 
 otherwise any constraints as you have mentioned!!! Just trying to 
 understand the mystery behind the complexity :)

For what you want, it would not matter if it did.  The defined order of 
records in an un-ordered Select (a select with no Order By clause) is 
indeterminate.  The database is free to change the order of such result sets 
to return the result set in the shortest amount of time or any other reason 
it might have.


 If there's no built-in solution, then probably adding a sortOrder field 
 to my table would fix this issue.

That is the ONLY solution you can depend on.


Chuck


 From: Chuck Hill ch...@global-village.net
 To: Shravan Kumar. M mshravan_...@yahoo.com
 Cc: WO Dev Group webobjects-dev@lists.apple.com
 Sent: Sun, November 1, 2009 8:49:54 AM
 Subject: Re: how to insert records in database in the order of insertion to 
 EC
 
 
 On Oct 31, 2009, at 6:57 PM, Shravan Kumar. M wrote:
 
  Hi Group,
 
  Could any one please advise me how can I insert records in database in a 
  specific order or as per the order of insertion of objects to 
  EditingContext
 
 AFAIK, you can't.  The order of insertion is not tracked.
 
 
  for eg:
 
  I have inserted objects to EC in the following order: A1, A2, A3, A4, A5 
  (and then saved the EC once - editingContext.saveChanges())
  But, when these got saved to database the order is disturbed and is not 
  guaranteed i.e., I see following order sometimes: A2, A5, A1, A3, A4, 
  whereas I want the order of these objects as I have inserted to EC.
 
  I heard that we can do something with AdaptorOperations, but not sure of 
  that exactly and am trying to see if we have an higher level API for 
  that. (Just a note: We do not use Wonder to the fullest, of course we use 
  Wonder API's as required.)
 
 
 If your problem is FK constraint violations, make the constraints 
 DEFERRABLE INITIALLY DEFERRED when you create them.
 
 If you are using MS SQL Server, then you are in a world of hurt.  It 
 includes not supporting deferrable constraints in its set of unsupported 
 yet highly desirable features.  There is a reason why people mock that 
 database

how to insert records in database in the order of insertion to EC

2009-10-31 Thread Shravan Kumar. M
Hi Group,

Could any one please advise me how can I insert records in database in a 
specific order or as per the order of insertion of objects to EditingContext 
for eg:

I have inserted objects to EC in the following order: A1, A2, A3, A4, A5 (and 
then saved the EC once - editingContext.saveChanges())
But, when these got saved to database the order is disturbed and is not 
guaranteed i.e., I see following order sometimes: A2, A5, A1, A3, A4, whereas I 
want the order of these objects as I have inserted to EC.

I heard that we can do something with AdaptorOperations, but not sure of that 
exactly and am trying to see if we have an higher level API for that. (Just a 
note: We do not use Wonder to the fullest, of course we use Wonder API's as 
required.)

Thanks in advance,
Shravan Kumar. M
---



   ___
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: how to insert records in database in the order of insertion to EC

2009-10-31 Thread Shravan Kumar. M
Thanks so much for your quick response Chuck.

We use Frontbase. I have no FK issue here. It's just that the objects should be 
inserted to DB in the order I have created and inserted into EC.

Why EC saveChanges() operation just not save the objects in the order of 
insertion??? Isn't it simple? I believe EC maintains an array 
insertedObjects(), so it should just follow that array order, unless otherwise 
any constraints as you have mentioned!!! Just trying to understand the mystery 
behind the complexity :)

If there's no built-in solution, then probably adding a sortOrder field to my 
table would fix this issue.

Thank You,
Shravan Kumar. M





From: Chuck Hill ch...@global-village.net
To: Shravan Kumar. M mshravan_...@yahoo.com
Cc: WO Dev Group webobjects-dev@lists.apple.com
Sent: Sun, November 1, 2009 8:49:54 AM
Subject: Re: how to insert records in database in the order of insertion to EC


On Oct 31, 2009, at 6:57 PM, Shravan Kumar. M wrote:

 Hi Group,
 
 Could any one please advise me how can I insert records in database in a 
 specific order or as per the order of insertion of objects to EditingContext

AFAIK, you can't.  The order of insertion is not tracked.


 for eg:
 
 I have inserted objects to EC in the following order: A1, A2, A3, A4, A5 (and 
 then saved the EC once - editingContext.saveChanges())
 But, when these got saved to database the order is disturbed and is not 
 guaranteed i.e., I see following order sometimes: A2, A5, A1, A3, A4, whereas 
 I want the order of these objects as I have inserted to EC.
 
 I heard that we can do something with AdaptorOperations, but not sure of that 
 exactly and am trying to see if we have an higher level API for that. (Just a 
 note: We do not use Wonder to the fullest, of course we use Wonder API's as 
 required.)


If your problem is FK constraint violations, make the constraints DEFERRABLE 
INITIALLY DEFERRED when you create them.

If you are using MS SQL Server, then you are in a world of hurt.  It includes 
not supporting deferrable constraints in its set of unsupported yet highly 
desirable features.   There is a reason why people mock that database.  You 
can order the operations using EOF but (a) is isn't easy and (b) you can't 
expect to know the order of insertion and (c) I can't think of many useful 
examples to follow.  You could start with the source for my 
http://www.global-village.net/chill/ms_sql_server_eof_plugin


Chuck

--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

Re: how to insert records in database in the order of insertion to EC

2009-10-31 Thread Shravan Kumar. M
Your solution would work...!!! but I would like to invoke save only one time, 
as I have many objects to be saved by this operation, like for eg: 100, 200, 
... objects to be saved. 

As I have replied to Chuck, if there is no solution then probably adding 
sortOrder or datetime field would solve this issue!!!





From: Chan Yeow Heong, Jerome evilt...@mac.com
To: Shravan Kumar. M mshravan_...@yahoo.com
Sent: Sun, November 1, 2009 8:46:39 AM
Subject: Re: how to insert records in database in the order of insertion to EC


Do a save after each insert?

Add in a date time field to help you sort?

On 01-Nov-2009, at 9:57 AM, Shravan Kumar. M mshravan_...@yahoo.com wrote:


Hi Group,

Could any one please advise me how can I insert records in database in a 
specific order or as per the order of insertion of objects to EditingContext 
for eg:

I have inserted objects to EC in the following order: A1, A2, A3, A4, A5 (and 
then saved the EC once - editingContext.saveChanges())
But, when these got saved to database the order is disturbed and is not 
guaranteed i.e., I see following order sometimes: A2, A5, A1, A3, A4, whereas 
I want the order of these objects as I have inserted to EC.

I heard that we can do something with AdaptorOperations, but not sure of that 
exactly and am trying to see if we have an higher level API for that. (Just a 
note: We do not use Wonder
 to the fullest, of course we use Wonder API's as required.)

Thanks in advance,
Shravan Kumar. M
---


___
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/eviltofu%40mac.com

This email sent to evilt...@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: how to insert records in database in the order of insertion to EC

2009-10-31 Thread Shravan Kumar. M
Okay. So, as determined I will just with adding a new field to set the order of 
records inserted to DB.

Thanks again Chuck for your insight!!!





From: Chuck Hill ch...@global-village.net
To: Shravan Kumar. M mshravan_...@yahoo.com
Cc: WO Dev Group webobjects-dev@lists.apple.com
Sent: Sun, November 1, 2009 9:34:31 AM
Subject: Re: how to insert records in database in the order of insertion to EC


On Oct 31, 2009, at 8:46 PM, Shravan Kumar. M wrote:

 Thanks so much for your quick response Chuck.
 
 We use Frontbase. I have no FK issue here. It's just that the objects should 
 be inserted to DB in the order I have created and inserted into EC.
 
 Why EC saveChanges() operation just not save the objects in the order of 
 insertion??? Isn't it simple? I believe EC maintains an array 
 insertedObjects(), so it should just follow that array order, unless 
 otherwise any constraints as you have mentioned!!! Just trying to understand 
 the mystery behind the complexity :)

For what you want, it would not matter if it did.  The defined order of records 
in an un-ordered Select (a select with no Order By clause) is indeterminate.  
The database is free to change the order of such result sets to return the 
result set in the shortest amount of time or any other reason it might have.


 If there's no built-in solution, then probably adding a sortOrder field to 
 my table would fix this issue.

That is the ONLY solution you can depend on.


Chuck


 From: Chuck Hill ch...@global-village.net
 To: Shravan Kumar. M mshravan_...@yahoo.com
 Cc: WO Dev Group webobjects-dev@lists.apple.com
 Sent: Sun, November 1, 2009 8:49:54 AM
 Subject: Re: how to insert records in database in the order of insertion to EC
 
 
 On Oct 31, 2009, at 6:57 PM, Shravan Kumar. M wrote:
 
  Hi Group,
 
  Could any one please advise me how can I insert records in database in a 
  specific order or as per the order of insertion of objects to EditingContext
 
 AFAIK, you can't.  The order of insertion is not tracked.
 
 
  for eg:
 
  I have inserted objects to EC in the following order: A1, A2, A3, A4, A5 
  (and then saved the EC once - editingContext.saveChanges())
  But, when these got saved to database the order is disturbed and is not 
  guaranteed i.e., I see following order sometimes: A2, A5, A1, A3, A4, 
  whereas I want the order of these objects as I have inserted to EC.
 
  I heard that we can do something with AdaptorOperations, but not sure of 
  that exactly and am trying to see if we have an higher level API for that. 
  (Just a note: We do not use Wonder to the fullest, of course we use Wonder 
  API's as required.)
 
 
 If your problem is FK constraint violations, make the constraints DEFERRABLE 
 INITIALLY DEFERRED when you create them.
 
 If you are using MS SQL Server, then you are in a world of hurt.  It includes 
 not supporting deferrable constraints in its set of unsupported yet highly 
 desirable features.  There is a reason why people mock that database.  You 
 can order the operations using EOF but (a) is isn't easy and (b) you can't 
 expect to know the order of insertion and (c) I can't think of many useful 
 examples to follow.  You could start with the source for 
 myhttp://www.global-village.net/chill/ms_sql_server_eof_plugin
 
 
 Chuck
 
 --Chuck HillSenior 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
 
 
 
 
 
 
 
 
 

--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

Re: WOFileUpload component of WO 5.4.3 version

2009-10-06 Thread Shravan Kumar. M
Hello Ms. Miller,

Just trying to see if this thread helps solves your problem: 
http://lists.apple.com/archives/Webobjects-dev/2008/Dec/msg00727.html

Thank you,
Shravan Kumar. M
---

Forwarded Message: WOFileUpload component of WO 5.4.3 version WOFileUpload 
component of WO 5.4.3 version
Monday, October 5, 2009 7:09 PM



From: 
Vicky C.  Miller vcmil...@cssg.com



To: 
webobjects-dep...@lists.apple.com
We have an issue with WOFileUpload component of WO 5.4.3 
version, if there
is a WOFileUpload component in a page then the Form encType should be
multipart/form-data, then in this case the form data is not submitting to
the Server.  When we remove the WOFileUpload then the form data is
submitting.  Does anyone know a way to resolve this or a work-around?


   ___
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: how different are these urls working?

2009-09-30 Thread Shravan Kumar. M
Hi John,

I have a page with Delete links in a list to delete each row. Each row 
corresponds an EO. When we click on Delete link we have to confirm from user 
if (s)he is sure of doing that. So, we have added a confirm() js here and upon 
clicking ok, we have decided to use window.location.href = delete link url 
for the row user clicked;

Please let me know if you need any other information.

Thank you,
Shravan Kumar. M
--

--- On Wed, 9/30/09, John Huss johnth...@gmail.com wrote:

From: John Huss johnth...@gmail.com
Subject: Re: how different are these urls working?
To: Shravan Kumar. M mshravan_...@yahoo.com, WebObjects-Dev Mailing List 
List webobjects-dev@lists.apple.com
Date: Wednesday, September 30, 2009, 11:58 PM

We'll need more info than that.

On Wed, Sep 30, 2009 at 1:08 PM, Shravan Kumar. M mshravan_...@yahoo.com 
wrote:


Hi Group,

This does NOT work, i.e., this does NOT invoke WOComponent action method, but 
just invokes appendToResponse(resp, ctx), invokeAction(req, ctx). This link is 
generated in a WORepitition:
window.location.href = 
/MSK/WebObjects/DemoApp.woa/-5/wo/QbBT4uH3SmcSODt3O2rc6g/2.5.11.7.1.0.1.11.2


This works fine:
window.location.href = 
/MSK/WebObjects/DemoApp.woa/-5/wo/ubxmGDcAhE5cfjq7gDcMFM/19.5

Please advise, what could be the reason and any probable solution.

Thank You,

Shravan Kumar. M
--



  
 ___

Do not post admin requests to the list. They will be ignored.

Webobjects-dev mailing list      (Webobjects-dev@lists.apple.com)

Help/Unsubscribe/Update your Subscription:

http://lists.apple.com/mailman/options/webobjects-dev/johnthuss%40gmail.com



This email sent to johnth...@gmail.com





   ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: how different are these urls working?

2009-09-30 Thread Shravan Kumar. M
 Thanks for the note Petite. Delete link is a POST action.

Thank You,
Shravan Kumar. M


petite.abei...@gmail.com Wrote:
Re: how different are these urls working?
Thursday, October 1, 2009 2:17 AM



From: 
Petite Abeille petite.abei...@gmail.com



To: 
WebObjects-Dev Mailing List List 
webobjects-dev@lists.apple.com

On Sep 30, 2009, at 9:05 PM, Shravan Kumar. M wrote:


I have a page with Delete links in a list to delete each row. Each
row corresponds an EO. When we click on Delete link we have to
confirm from user if (s)he is sure of doing that.

Out of curiosity, that delete link, is that a GET or a POST?

Monster Attack! How Google Deleted Basecamp!

http://37signals.com/svn/archives2/google_web_accelerator_hey_not_so_fast_an_alert_for_web_app_designers.php



   ___
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: WOLongResponsePage issues

2009-07-27 Thread Shravan Kumar. M
Thanks for your information Chuck.

Regards,
Shravan Kumar. M
-

--- On Mon, 7/27/09, Chuck Hill ch...@global-village.net wrote:

From: Chuck Hill ch...@global-village.net
Subject: Re: WOLongResponsePage issues
To: Tim Worman li...@thetimmy.com
Cc: Shravan Kumar. M mshravan_...@yahoo.com, webobjects-dev@lists.apple.com
Date: Monday, July 27, 2009, 4:06 AM

This class (my modified version of it) is available in our GVCEOFExtensions 
framework.  GVCWOExtensions framework shows how we use it.

http://www.gvcsitemaker.com/chill/gvc_frameworks

Chuck



On Jul 26, 2009, at 11:21 AM, Tim Worman wrote:

 WOCode hasn't been available for a while. I'm not sure who was hosting the 
 site or who it belonged to. It would be cool if the stuff that was hosted 
 there could be moved somewhere reliable. Anyone?
 
 I've never used MulitECLockManager but I'm pretty sure there's got to be 
 other places to get it. I know other folks use it so, if nothing else, 
 someone could send it to you.
 
 Tim
 UCLA GSEIS
 
 On Jul 25, 2009, at 1:10 PM, Shravan Kumar. M wrote:
 
 Hi Tim,
 
 Thanks for your suggestion.
 
 I have changed my longresponse code to create a temporary ERXEC's 
 editingcontext and then once the process is completed am localizing the 
 content to my old ec. This has solved the issues of locking/ unlocking ec.
 
 However, I see that many links pointing to WOCode.woa end up with No 
 instance available,reason might be the app may be down. I tried to get the 
 MultiECLockManager residing in WOCode.woa site as referred in WO wiki, but 
 link is broken!!! Don't know who will take care of this issue?
 
 Thank You,
 Shravan Kumar. M
 
 
 --- On Sat, 7/25/09, Tim Worman li...@thetimmy.com wrote:
 
 From: Tim Worman li...@thetimmy.com
 Subject: Re: WOLongResponsePage issues
 To: Shravan Kumar. M mshravan_...@yahoo.com
 Cc: George Domurot geo...@boxofficetickets.com, 
 webobjects-dev@lists.apple.com
 Date: Saturday, July 25, 2009, 9:25 PM
 
 Shravan:
 
 It sounds to me like something is wrong with your code related to locking 
 and unlocking. Session.defaultEditingContext() has automatic locking - you 
 do not have to do it manually. So, if you continue using that EC you can 
 take out the locking code.
 
 The best solution would be to use an EC other than 
 Session.defaultEditingContext and use one of the frameworks that provides 
 auto-locking. You could use MultiECLockManager or Wonder's ERXEC and they 
 lock automatically.
 
 Tim
 UCLA GSEIS
 
 On Jul 24, 2009, at 11:34 PM, Shravan Kumar. M wrote:
 
  Thanks George. I was doing same, debugging the code, and trying to pull 
  odd man out ;-)
 
  I think I have finally found the issue of LongResponsePage not getting 
  refreshed. In the performAction() method the business logic is LOCKING the 
  session's defaultEditingContext and performing the business operation and 
  soon after this LongResponsePage thread is blocking and failing to refresh.
 
  Once, LongResponsePage operation thrown an error of editingContext is not 
  locked. So, I locked it and unlocked it as well!!!
 
  Am wondering how should I perform my business operation without locking my 
  editingContext?
 
  I see that we should setup a wiki page dedicated to LongResponsePage page 
  caveats, pros, cons, issues, usage examples, best practices,...!
 
  Thank You,
  Shravan Kumar. M
 
  --- On Sat, 7/25/09, George Domurot geo...@boxofficetickets.com wrote:
 
  From: George Domurot geo...@boxofficetickets.com
  Subject: Re: WOLongResponsePage issues
  To: Shravan Kumar. M mshravan_...@yahoo.com
  Cc: webobjects-dev@lists.apple.com
  Date: Saturday, July 25, 2009, 3:31 AM
 
  Shravan, do you have a custom page wrapper that is performing and special 
  tricks?
 
  If you have a simple example working, try taking an exact duplicate of the 
  example and using it within your project.  Make sure you don't add any 
  additional code or components, and make sure it still works as expected.  
  If so, start layering in your code a little bit at a time until it breaks.
 
  -George
 
  On Jul 24, 2009, at 11:59 AM, Shravan Kumar. M wrote:
 
  Hello Group,
 
  I have simulated the Long response code from my app to a sample project 
  and Long response is performing perfect there... but NOT in my app, i.e., 
  in my app long response page is not refreshing and returning no instance 
  page.
 
  I see that there should be some setting or some configuration in my app 
  that is causing long response to NOT work correctly... I am still trying 
  to extract this thing... could any one help me what am I missing/ should 
  look at?
 
  Thank You,
  Shravan Kumar. M
  --
 
  --- On Fri, 7/24/09, jeremy.dero...@ingencys.net 
  jeremy.dero...@ingencys.net wrote:
 
  From: jeremy.dero...@ingencys.net jeremy.dero...@ingencys.net
  Subject: Re: WOLongResponsePage issues
  To: shravan kumar mshravan_...@yahoo.com
  Cc: webobjects-dev

Re: 400 Error WebObjects

2009-07-27 Thread Shravan Kumar. M
Hmm! If the dump says my app is idle and no process running, what may be the 
reason I have this issue?

I will investigate this further...

Thanks Chuck for your insight.

Regards,
Shravan Kumar. M
-

--- On Mon, 7/27/09, Chuck Hill ch...@global-village.net wrote:

From: Chuck Hill ch...@global-village.net
Subject: Re: 400 Error WebObjects
To: Shravan Kumar. M mshravan_...@yahoo.com
Cc: WO Dev Group webobjects-dev@lists.apple.com
Date: Monday, July 27, 2009, 4:08 AM


On Jul 26, 2009, at 1:36 PM, Shravan Kumar. M wrote:

 Hello Group,
 
 Often sometimes when am working on my app, the app hangs on, I mean browser 
 does not get any response for a long time, finally browser displays No 
 instance page, but today I got 400 Error WebObjects page [Note that, all 
 these times, just restart of the app makes everything normal].

That my mean it is dead locked.  It may mean it is just busy.


 I have got the thread dump when I saw my app not responding for a while, can 
 any one advise what is happening here (please help me how to interpret the 
 thread dump log):

That dump is from a completely idle application.    There are no deadlocks and 
no activity.


Chuck

 
 Few things I have understood from the thread dump below, please validate:
 1) WorkerThread6 has locked 0x0919dd10
 2) Other WorkerThreads are waiting to lock 0x0919dd10
 
 ==
 
 Full thread dump Java HotSpot(TM) Client VM (1.5.0_16-133 mixed mode):
 
 Java2D Disposer daemon prio=10 tid=0x0104e500 nid=0x831600 in Object.wait() 
 [0xb0f0f000..0xb0f0fd90]
     at java.lang.Object.wait(Native Method)
     - waiting on 0x0966ddf0 (a java.lang.ref.ReferenceQueue$Lock)
     at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:120)
     - locked 0x0966ddf0 (a java.lang.ref.ReferenceQueue$Lock)
     at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:136)
     at sun.java2d.Disposer.run(Disposer.java:125)
     at java.lang.Thread.run(Thread.java:613)
 
 WorkerThread15 prio=5 tid=0x010429b0 nid=0x8c1200 waiting for monitor entry 
 [0xb178c000..0xb178cd90]
     at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:382)
     - waiting to lock 0x0919dd10 (a java.net.SocksSocketImpl)
     at java.net.ServerSocket.implAccept(ServerSocket.java:450)
     at java.net.ServerSocket.accept(ServerSocket.java:421)
     at 
com.webobjects.appserver._private.WOWorkerThread.run(WOWorkerThread.java:238)
     at java.lang.Thread.run(Thread.java:613)
 
 WorkerThread14 prio=5 tid=0x010421e0 nid=0x8c0400 waiting for monitor entry 
 [0xb170b000..0xb170bd90]
     at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:382)
     - waiting to lock 0x0919dd10 (a java.net.SocksSocketImpl)
     at java.net.ServerSocket.implAccept(ServerSocket.java:450)
     at java.net.ServerSocket.accept(ServerSocket.java:421)
     at 
com.webobjects.appserver._private.WOWorkerThread.run(WOWorkerThread.java:238)
     at java.lang.Thread.run(Thread.java:613)
 
 WorkerThread13 prio=5 tid=0x01041980 nid=0x8bf600 waiting for monitor entry 
 [0xb1626000..0xb1626d90]
     at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:382)
     - waiting to lock 0x0919dd10 (a java.net.SocksSocketImpl)
     at java.net.ServerSocket.implAccept(ServerSocket.java:450)
     at java.net.ServerSocket.accept(ServerSocket.java:421)
     at 
com.webobjects.appserver._private.WOWorkerThread.run(WOWorkerThread.java:238)
     at java.lang.Thread.run(Thread.java:613)
 
 WorkerThread12 prio=5 tid=0x010411e0 nid=0x8be800 waiting for monitor entry 
 [0xb15a5000..0xb15a5d90]
     at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:382)
     - waiting to lock 0x0919dd10 (a java.net.SocksSocketImpl)
     at java.net.ServerSocket.implAccept(ServerSocket.java:450)
     at java.net.ServerSocket.accept(ServerSocket.java:421)
     at 
com.webobjects.appserver._private.WOWorkerThread.run(WOWorkerThread.java:238)
     at java.lang.Thread.run(Thread.java:613)
 
 WorkerThread11 prio=5 tid=0x01040a20 nid=0x8bda00 waiting for monitor entry 
 [0xb1524000..0xb1524d90]
     at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:382)
     - waiting to lock 0x0919dd10 (a java.net.SocksSocketImpl)
     at java.net.ServerSocket.implAccept(ServerSocket.java:450)
     at java.net.ServerSocket.accept(ServerSocket.java:421)
     at 
com.webobjects.appserver._private.WOWorkerThread.run(WOWorkerThread.java:238)
     at java.lang.Thread.run(Thread.java:613)
 
 WorkerThread10 prio=5 tid=0x01040260 nid=0x8bcc00 waiting for monitor entry 
 [0xb14a3000..0xb14a3d90]
     at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:382)
     - waiting to lock 0x0919dd10 (a java.net.SocksSocketImpl)
     at java.net.ServerSocket.implAccept(ServerSocket.java:450)
     at java.net.ServerSocket.accept(ServerSocket.java:421)
     at 
com.webobjects.appserver._private.WOWorkerThread.run(WOWorkerThread.java:238

400 Error WebObjects

2009-07-26 Thread Shravan Kumar. M
..0x]

JDWP Command Reader daemon prio=5 tid=0x0100d420 nid=0x805e00 runnable 
[0x..0x]

JDWP Event Helper Thread daemon prio=5 tid=0x0100cf50 nid=0x814a00 runnable 
[0x..0x]

JDWP Transport Listener: dt_socket daemon prio=5 tid=0x0100c250 nid=0x813000 
runnable [0x..0xb0a86ae0]

Finalizer daemon prio=8 tid=0x01007980 nid=0x81a400 in Object.wait() 
[0xb0a05000..0xb0a05d90]
    at java.lang.Object.wait(Native Method)
    - waiting on 0x09090550 (a java.lang.ref.ReferenceQueue$Lock)
    at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:120)
    - locked 0x09090550 (a java.lang.ref.ReferenceQueue$Lock)
    at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:136)
    at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:159)

Reference Handler daemon prio=10 tid=0x010075a0 nid=0x818a00 in Object.wait() 
[0xb0984000..0xb0984d90]
    at java.lang.Object.wait(Native Method)
    - waiting on 0x09090578 (a java.lang.ref.Reference$Lock)
    at java.lang.Object.wait(Object.java:474)
    at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:116)
    - locked 0x09090578 (a java.lang.ref.Reference$Lock)

main prio=5 tid=0x010016b0 nid=0xb0801000 in Object.wait() 
[0xb07ff000..0xb0800148]
    at java.lang.Object.wait(Native Method)
    - waiting on 0x091a2198 (a com.webobjects.appserver._WORunLoop)
    at 
com.webobjects.appserver._WORunLoop._acceptInputBeforeDate(_WORunLoop.java:217)
    at com.webobjects.appserver._WORunLoop.runBeforeDate(_WORunLoop.java:71)
    - locked 0x091a2198 (a com.webobjects.appserver._WORunLoop)
    at com.webobjects.appserver.WOApplication._runOnce(WOApplication.java:775)
    at com.webobjects.appserver.WOApplication.run(WOApplication.java:900)
    at com.webobjects.appserver.WOApplication.main(WOApplication.java:324)
    at com.mtj.Application.main(Application.java:130)

VM Thread prio=9 tid=0x01006cf0 nid=0x817c00 runnable

VM Periodic Task Thread prio=9 tid=0x01012b90 nid=0x81e200 waiting on 
condition

Exception Catcher Thread prio=10 tid=0x010018d0 nid=0x80be00 runnable

==

Thank You
Shravan Kumar. M
--




   ___
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: WOLongResponsePage issues

2009-07-25 Thread Shravan Kumar. M
Thanks George. I was doing same, debugging the code, and trying to pull odd man 
out ;-)

I think I have finally found the issue of LongResponsePage not getting 
refreshed. In the performAction() method the business logic is LOCKING the 
session's defaultEditingContext and performing the business operation and soon 
after this LongResponsePage thread is blocking and failing to refresh.

Once, LongResponsePage operation thrown an error of editingContext is not 
locked. So, I locked it and unlocked it as well!!!

Am wondering how should I perform my business operation without locking my 
editingContext?

I see that we should setup a wiki page dedicated to LongResponsePage page 
caveats, pros, cons, issues, usage examples, best practices,...!

Thank You,
Shravan Kumar. M

--- On Sat, 7/25/09, George Domurot geo...@boxofficetickets.com wrote:

From: George Domurot geo...@boxofficetickets.com
Subject: Re: WOLongResponsePage issues
To: Shravan Kumar. M mshravan_...@yahoo.com
Cc: webobjects-dev@lists.apple.com
Date: Saturday, July 25, 2009, 3:31 AM

Shravan, do you have a custom page wrapper that is performing and special 
tricks?
If you have a simple example working, try taking an exact duplicate of the 
example and using it within your project.  Make sure you don't add any 
additional code or components, and make sure it still works as expected.  If 
so, start layering in your code a little bit at a time until it breaks.
-George
On Jul 24, 2009, at 11:59 AM, Shravan Kumar. M wrote:
Hello Group,

I have simulated the Long response code from my app to a sample project and 
Long response is performing perfect there... but NOT in my app, i.e., in my app 
long response page is not refreshing and returning no instance page.

I see that there should be some setting or some configuration in my app that is 
causing long response to NOT work correctly... I am still trying to extract 
this thing... could any one help me what am I missing/ should look at?

Thank You,
Shravan Kumar. M
--

--- On Fri, 7/24/09, jeremy.dero...@ingencys.net jeremy.dero...@ingencys.net 
wrote:

From: jeremy.dero...@ingencys.net jeremy.dero...@ingencys.net
Subject: Re: WOLongResponsePage
 issues
To: shravan kumar mshravan_...@yahoo.com
Cc: webobjects-dev@lists.apple.com
Date: Friday, July 24, 2009, 1:11 PM

With use both prototype and jQuery (in compatibilty mode) without any 
problems. But I never used WOLongResponsePage so I can not compare them. Maybe 
someone could give you a progress bar thread implementation/example dealing 
with sessio nand editing context  Jérémy
-shravan kumar mshravan_...@yahoo.com a écrit : -

A : jeremy.dero...@ingencys.net
De : shravan kumar mshravan_...@yahoo.com
Date : 24/07/2009 09:24
cc:
 webobjects-dev@lists.apple.com
Objet : Re: WOLongResponsePage issues

Thanks for your response Jérémy . But as my business logic is very much tied 
with session, editing context, I may need WOLongResponsePage. 

Also, I have NOT integrated Project Wonder to my system and I only use few of 
Project Wonder components here and there in my application. I hope to use 
AjaxProgressBar I have to at least integrate Project Wonder's AJAX framework 
(we know jQuery, we like it and we use it, but not Prototype.js which is the 
core of Project Wonder's Ajax framework, sorry! for my privileges). 

Correct me if am wrong? 

Thank You, 
Shravan Kumar. M 
- 

--- On Fri, 7/24/09, jeremy.dero...@ingencys.net
 jeremy.dero...@ingencys.net wrote: 

From: jeremy.dero...@ingencys.net jeremy.dero...@ingencys.net 
Subject: Re: WOLongResponsePage issues 
To: shravan kumar mshravan_...@yahoo.com 
Cc: webobjects-dev@lists.apple.com 
Date: Friday, July 24, 2009, 12:30 PM 

Hello,   Why not using Ajax capabilities of the project Wonder like 
ajaxprogressbar ?   It's easy to implement except dealing with thread and 
session if you're working with editing context.   Jérémy   
-webobjects-dev-bounces+jeremy.deroyer=ingencys@lists.apple.com a écrit 
: - 

A : WO Dev Group webobjects-dev@lists.apple.com 
De : shravan kumar
 mshravan_...@yahoo.com 
Envoyé par : webobjects-dev-bounces+jeremy.deroyer=ingencys@lists.apple.com 
Date : 24/07/2009 08:54 
Objet : WOLongResponsePage issues 

Hi Group, 

I am having trouble developing a long response page!!! I have developed a page 
which extends WOLongResponsePage component and implemented performActionI(), 
... methods. I have actually referred to SimpleRefreshPage example from 
WebObjects distribution. 

Am not sure what the problem is, but I have various issues: 
1) Not able to create a component in pageForResult() method (error says, 
context is null, ...). So I have created the component in the calling page and 
passing the created component to long response and returning this component in 
pageForResult() method. But I have read in WO that, if a component is created 
and cached in a variable, we have to invoke

Re: WOLongResponsePage issues

2009-07-25 Thread Shravan Kumar. M
Hi Tim,

Thanks for your suggestion.

I have changed my longresponse code to create a temporary ERXEC's 
editingcontext and then once the process is completed am localizing the content 
to my old ec. This has solved the issues of locking/ unlocking ec.

However, I see that many links pointing to WOCode.woa end up with No instance 
available,reason might be the app may be down. I tried to get the 
MultiECLockManager residing in WOCode.woa site as referred in WO wiki, but link 
is broken!!! Don't know who will take care of this issue?

Thank You,
Shravan Kumar. M


--- On Sat, 7/25/09, Tim Worman li...@thetimmy.com wrote:

From: Tim Worman li...@thetimmy.com
Subject: Re: WOLongResponsePage issues
To: Shravan Kumar. M mshravan_...@yahoo.com
Cc: George Domurot geo...@boxofficetickets.com, 
webobjects-dev@lists.apple.com
Date: Saturday, July 25, 2009, 9:25 PM

Shravan:

It sounds to me like something is wrong with your code related to locking and 
unlocking. Session.defaultEditingContext() has automatic locking - you do not 
have to do it manually. So, if you continue using that EC you can take out the 
locking code.

The best solution would be to use an EC other than 
Session.defaultEditingContext and use one of the frameworks that provides 
auto-locking. You could use MultiECLockManager or Wonder's ERXEC and they lock 
automatically.

Tim
UCLA GSEIS

On Jul 24, 2009, at 11:34 PM, Shravan Kumar. M wrote:

 Thanks George. I was doing same, debugging the code, and trying to pull odd 
 man out ;-)
 
 I think I have finally found the issue of LongResponsePage not getting 
 refreshed. In the performAction() method the business logic is LOCKING the 
 session's defaultEditingContext and performing the business operation and 
 soon after this LongResponsePage thread is blocking and failing to refresh.
 
 Once, LongResponsePage operation thrown an error of editingContext is not 
 locked. So, I locked it and unlocked it as well!!!
 
 Am wondering how should I perform my business operation without locking my 
 editingContext?
 
 I see that we should setup a wiki page dedicated to LongResponsePage page 
 caveats, pros, cons, issues, usage examples, best practices,...!
 
 Thank You,
 Shravan Kumar. M
 
 --- On Sat, 7/25/09, George Domurot geo...@boxofficetickets.com wrote:
 
 From: George Domurot geo...@boxofficetickets.com
 Subject: Re: WOLongResponsePage issues
 To: Shravan Kumar. M mshravan_...@yahoo.com
 Cc: webobjects-dev@lists.apple.com
 Date: Saturday, July 25, 2009, 3:31 AM
 
 Shravan, do you have a custom page wrapper that is performing and special 
 tricks?
 
 If you have a simple example working, try taking an exact duplicate of the 
 example and using it within your project.  Make sure you don't add any 
 additional code or components, and make sure it still works as expected.  If 
 so, start layering in your code a little bit at a time until it breaks.
 
 -George
 
 On Jul 24, 2009, at 11:59 AM, Shravan Kumar. M wrote:
 
 Hello Group,
 
 I have simulated the Long response code from my app to a sample project and 
 Long response is performing perfect there... but NOT in my app, i.e., in my 
 app long response page is not refreshing and returning no instance page.
 
 I see that there should be some setting or some configuration in my app that 
 is causing long response to NOT work correctly... I am still trying to 
 extract this thing... could any one help me what am I missing/ should look 
 at?
 
 Thank You,
 Shravan Kumar. M
 --
 
 --- On Fri, 7/24/09, jeremy.dero...@ingencys.net 
 jeremy.dero...@ingencys.net wrote:
 
 From: jeremy.dero...@ingencys.net jeremy.dero...@ingencys.net
 Subject: Re: WOLongResponsePage issues
 To: shravan kumar mshravan_...@yahoo.com
 Cc: webobjects-dev@lists.apple.com
 Date: Friday, July 24, 2009, 1:11 PM
 
 With use both prototype and jQuery (in compatibilty mode) without any 
 problems.
 
 But I never used WOLongResponsePage so I can not compare them.
 
 Maybe someone could give you a progress bar thread implementation/example 
 dealing with sessio nand editing context
 
 Jérémy
 -shravan kumar mshravan_...@yahoo.com a écrit : -
 
 A : jeremy.dero...@ingencys.net
 De : shravan kumar mshravan_...@yahoo.com
 Date : 24/07/2009 09:24
 cc: webobjects-dev@lists.apple.com
 Objet : Re: WOLongResponsePage issues
 
 Thanks for your response Jérémy . But as my business logic is very much tied 
 with session, editing context, I may need WOLongResponsePage.
 
 Also, I have NOT integrated Project Wonder to my system and I only use few 
 of Project Wonder components here and there in my application. I hope to use 
 AjaxProgressBar I have to at least integrate Project Wonder's AJAX framework 
 (we know jQuery, we like it and we use it, but not Prototype.js which is the 
 core of Project Wonder's Ajax framework, sorry! for my privileges).
 
 Correct me if am wrong?
 
 Thank You,
 Shravan Kumar. M

FRONTBASE add not null constraint?

2009-07-25 Thread Shravan Kumar. M
Hello Group,

I was trying to increase the column size of a column in frontbase, but failed 
due to some constraint issues. I have searched and got a solution posted way 
back by Chuck:

http://markmail.org/message/uk46b2su2wb654up#query:frontbase%3A%20Semantic%20error%20278+page:1+mid:uk46b2su2wb654up+state:results

I have first dropped the constraint. Then increased the column size.

Noe the problem is am unable to add constraint. Please help.

Following is the alter statement failing to work:

ALTER TABLE MYDB.CUSTOMER ADD CONSTRAINT 
NOT_NULL_MYDB_CUSTOMER__DESCRIPTION NOT NULL (DESCRIPTION) DEFAULT  ;

Thank you,
Shravan Kumar. M
-



   ___
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: WOLongResponsePage issues

2009-07-24 Thread Shravan Kumar. M
Hello Group,

I have simulated the Long response code from my app to a sample project and 
Long response is performing perfect there... but NOT in my app, i.e., in my app 
long response page is not refreshing and returning no instance page.

I see that there should be some setting or some configuration in my app that is 
causing long response to NOT work correctly... I am still trying to extract 
this thing... could any one help me what am I missing/ should look at?

Thank You,
Shravan Kumar. M
--

--- On Fri, 7/24/09, jeremy.dero...@ingencys.net jeremy.dero...@ingencys.net 
wrote:

From: jeremy.dero...@ingencys.net jeremy.dero...@ingencys.net
Subject: Re: WOLongResponsePage issues
To: shravan kumar mshravan_...@yahoo.com
Cc: webobjects-dev@lists.apple.com
Date: Friday, July 24, 2009, 1:11 PM

With use both prototype and jQuery (in compatibilty mode) without any 
problems. But I never used WOLongResponsePage so I can not compare them. Maybe 
someone could give you a progress bar thread implementation/example dealing 
with sessio nand editing context  Jérémy
-shravan kumar mshravan_...@yahoo.com a écrit : -

A : jeremy.dero...@ingencys.net
De : shravan kumar mshravan_...@yahoo.com
Date : 24/07/2009 09:24
cc: webobjects-dev@lists.apple.com
Objet : Re: WOLongResponsePage issues

Thanks for your response Jérémy . But as my business logic is very much tied 
with session, editing context, I may need WOLongResponsePage. 

Also, I have NOT integrated Project Wonder to my system and I only use few of 
Project Wonder components here and there in my application. I hope to use 
AjaxProgressBar I have to at least integrate Project Wonder's AJAX framework 
(we know jQuery, we like it and we use it, but not Prototype.js which is the 
core of Project Wonder's Ajax framework, sorry! for my privileges). 

Correct me if am wrong? 

Thank You, 
Shravan Kumar. M 
- 

--- On Fri, 7/24/09, jeremy.dero...@ingencys.net jeremy.dero...@ingencys.net 
wrote: 

From: jeremy.dero...@ingencys.net jeremy.dero...@ingencys.net 
Subject: Re: WOLongResponsePage issues 
To: shravan kumar mshravan_...@yahoo.com 
Cc: webobjects-dev@lists.apple.com 
Date: Friday, July 24, 2009, 12:30 PM 

Hello,   Why not using Ajax capabilities of the project Wonder like 
ajaxprogressbar ?   It's easy to implement except dealing with thread and 
session if you're working with editing context.   Jérémy   
-webobjects-dev-bounces+jeremy.deroyer=ingencys@lists.apple.com a écrit 
: - 

A : WO Dev Group webobjects-dev@lists.apple.com 
De : shravan kumar mshravan_...@yahoo.com 
Envoyé par : webobjects-dev-bounces+jeremy.deroyer=ingencys@lists.apple.com 
Date : 24/07/2009 08:54 
Objet : WOLongResponsePage issues 

Hi Group, 

I am having trouble developing a long response page!!! I have developed a page 
which extends WOLongResponsePage component and implemented performActionI(), 
... methods. I have actually referred to SimpleRefreshPage example from 
WebObjects distribution. 

Am not sure what the problem is, but I have various issues: 
1) Not able to create a component in pageForResult() method (error says, 
context is null, ...). So I have created the component in the calling page and 
passing the created component to long response and returning this component in 
pageForResult() method. But I have read in WO that, if a component is created 
and cached in a variable, we have to invoke ensureAwakeInContext(context) 
method to make sure the cached component is awakened and is up in the session 
store. 

2) I have placed a flash movie (.swf file) in the long response page, so the 
movie plays and replays as the page refreshes (this flash movie does not read 
any value from long response page like: status of long response, ...). 

3) Issue: The long response page is NOT refreshing and after some time No 
instance available message is shown in the browser, but note that server is 
continuing processing my request. 

4) Below is the code snippet from my long response page: 

    Number refreshCount = new Integer(1); 
    public void appendToResponse(...) { 
        setRefreshInterval(refreshCount); 
        super.appendToResponse(...); 
    } 
     
    public Object performAction() { 
        Object value = processImages(); 
        //value is of boolean type 
        return value; 
    } 
     
    /** 
        User  CImage are EO's and we using session's defaulteditingcontext 
here. 
    */ 
    private boolean processImages() { 
        User usr = ((Session)session()).loggedInUser(); 
        boolean isSuccess = CImage.processImages(usr); 
         
        return isSuccess; 
    } 
     
    public WOComponent pageForResult() { 
        return nextPage; 
    } 
     
    public WOComponent refreshPageForStatus() { 
        return this; 
    } 

5) If anyone could advise me do's and don'ts of WOLongResponsePage coding and 
best practices, that would be great. I see we are really

Re: Can I use WOMultipartIterator API in WOComponent action methods?

2008-08-08 Thread Shravan Kumar. M

Thanks for your response Lachlan Deck.

You are right! I can use context().request().formValues(), but as I said 
in my earlier email, I get image data from request which I cannot read 
from context().request().formValues() and is only available by iterating 
over WOMultipartIterator API. Hence, it is must for me to grab request 
data using WOMultipartIterator API.


---
*
From WebObjects API:*

public class *WOMultipartIterator*
extends java.lang.Object

This class represents the content of a multipart/form-data HTTP request.
You get the iterator for such a request by calling |multipartIterator| 
on the WORequest object. Once you have this object, you get WOFormData 
objects by repeatedly calling |nextFormData|, until it returns null.
Each WOFormData allows you to introspect the sub-headers, as well as 
either look at the form value(s) or grab the entire content of the part 
as an InputStream subclass.
The InputStream subclass is a WOFormDataInpuStream and can be used to 
stream large file uploads to disk (or elsewhere).
*The WOMultipartIterator should NOT be used with WOFileUpload component 
actions. It may be used with component actions where there is no 
WOFileUpload, and it may be used in DirectActions. *


---

From above API, I get to know I can use WOMultipartIterator API in 
either component actions/ direct actions.


Thank You
Shravan Kumar. M
effigent India Pvt., Ltd.,




Lachlan Deck wrote:

Hi Shravan,

On 07/08/2008, at 2:36 PM, Shravan Kumar. M wrote:

I would like iterate through this api, and retrieve form key-value 
pairs for my business logic processing. Basically I use a third party 
UI interface which obviously sends the data across to the server 
encoded in the HTTP Request and this data has file data to be uploaded.


context().request().formValues()

So, can I iterate through WOMultipartIterator API in WOComponent 
action methods and retrieve data from this api.


I don't see why not. That's what the api says.

with regards,
--

Lachlan Deck



 ___
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 [EMAIL PROTECTED]

Re: Can I use WOMultipartIterator API in WOComponent action methods?

2008-08-06 Thread Shravan Kumar. M

Hello Lachlan,

I would like iterate through this api, and retrieve form key-value pairs 
for my business logic processing. Basically I use a third party UI 
interface which obviously sends the data across to the server encoded in 
the HTTP Request and this data has file data to be uploaded.


So, can I iterate through WOMultipartIterator API in WOComponent action 
methods and retrieve data from this api.


Thank You
Shravan Kumar. M
effigent India Pvt., Ltd.,




Lachlan Deck wrote:

Hi Shravan,

On 05/08/2008, at 2:59 PM, Shravan Kumar. M wrote:

Can you advise me whether it is technically/ functionally correct 
using WOMultipartIterator API in WOComponent action methods?


Looking forward to your response.


what are you trying to achieve?

with regards,
--

Lachlan Deck






___
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 [EMAIL PROTECTED]


Can I use WOMultipartIterator API in WOComponent action methods?

2008-08-04 Thread Shravan Kumar. M

Hello Group,

Can you advise me whether it is technically/ functionally correct using 
WOMultipartIterator API in WOComponent action methods?


Looking forward to your response.

--
Thank You
Shravan Kumar. M
effigent India Pvt., Ltd.,


___
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 [EMAIL PROTECTED]


Re: Identify a resource in apache webserver directory

2008-07-30 Thread Shravan Kumar. M
Thanks for your help Bill. I am looking for code sample that could help 
me more clearly.


BTW, actually I would like to upload some files from my application to a 
location in web server. So I am looking for a best approach/ API/ 
Library which helps me achieve this.


Thank You
Shravan Kumar. M
effigent India Pvt., Ltd.,




William Hatch wrote:
The href binding for things like image, css, etc is your best bet. 
Give it the absolute apache path to the resource you'd like to 
retrieve. If you want to determine which resource you want to retrieve 
based on some app logic, you can bind the href to some method that 
would determine it. Be careful to use absolute paths; relative paths 
will have the app looking under the WebObjectsyourApp directory 
instead, which is also an option. Hope this  is what you're looking for.


Bill


On Jul 28, 2008, at 1:32 PM, [EMAIL PROTECTED] wrote:


Hello Group,

I have some solution of finding webserver url by going thru WORequest
object. I am looking for a more standard way of achieving this task.

Could any one please advise best practice to retrieve/store a resource
into a Apache  Webserver directory.

For Eg: I have a css file master.css stored in the following location in
my server /Library/WebObjects/MyProject/master.css, how can I retrieve
this file in my WOApp dynamically, either at dev/deploy times. Also, I
would like to store few images at this location.

Please advise me a best methodology to achieve this req.

Thanks in advance.

Thank You
Shravan

___
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/wh72%40cornell.edu

This email sent to [EMAIL PROTECTED]





___
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 [EMAIL PROTECTED]


Re: Webobjects-dev Digest, Vol 5, Issue 761

2008-07-15 Thread Shravan Kumar. M
Thanks Mike. We are struggling around this issue since long time with 
some workarounds, but we did not have any good solution yet. Your 
solution worked out well.


Thank You
Shravan Kumar. M
effigent India Pvt., Ltd.,







Subject:
One Less Mystery
From:
Mike Schrag [EMAIL PROTECTED]
Date:
Mon, 14 Jul 2008 19:27:04 -0400
To:
WebObjects Development webobjects-dev@lists.apple.com

To:
WebObjects Development webobjects-dev@lists.apple.com


One of our guys got tripped up because his hostname was floating 
between what we expected it to be and his IP address.  After some 
digging, I've resolved a mystery (well, it was a mystery to me .. 
maybe other people knew about it :) ).


If your CGI adaptor URL is http://127.0.0.1/cgi-bin/WebObjects, at 
runtime, WOApplication converts that to 
http://application.hostAddress()/cgi-bin/WebObjects.
If you CGI adaptor URL is http://localhost/cgi-bin/WebObjects, at 
runtime, WOApplication converts that to 
http://application.host()/cgi-bin/WebObjects.


application.host() considers your -WOHost setting, hostAddress uses 
InetAddress.getByName(host()).  So if you've ever been confused and 
perplexed as to why your app keeps using your IP address even when you 
set WOHost, this is why.  This is especially a problem when you're 
testing with cookies on your local machine, which is really sensitive 
to host name changing.


Part of the confusing part here is that WOLips defaults to 127.0.0.1.  
I think this is wrong and I'm about to change it (unless someone has a 
good reason behind it).  In the meantime, you can to several things:


1) Change the WOAdaptorURL in your launch config (to change this on a 
per-app basis)
2) Change the WOAdaptorURL in Preferences=WOLips=Launch.  This will 
change the defaults globally.  I don't recall if this cascades to 
existing run configs or not.


So to be safe and make sure your app works in dev like it does in 
deployment (which would have a consistent hostname), set WOAdaptorURL 
to http://localhost/cgi-bin/WebObjects and add a -WOHost 
yourhost.local (or whatever your fixed hostname is).


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 [EMAIL PROTECTED]

Apache 2+ with WebObjects 5.2.4

2007-11-13 Thread Shravan Kumar . M

Hi Group,

Currently we have Apache 1.3+ with WebObjects 5.2.4 running on our  
Solaris Server [SunOS Rabbit 5.8 Generic_117350-38 sun4u sparc  
SUNW,Sun-Fire-V890 Solaris]


Could any one please advise me if I can install Apache 2.2+ retaining  
WebObjects 5.2.4 in our Solaris server ?


Also, please advise me the steps to install Apache 2.2+ that is  
compatible with WebObjects 5.2.4, we also need SSL configured with  
Apache 2.2+, please advise if this has any issues ?


I have read in some of lists discussions that Apache 2.2+ is  
available in Project Wonder 2.0, can I use this for Solaris Server ?


Thanks  Rgds,
Shravan Kumar.M

Let us learn from the past to profit by the present,and from the  
present to live better in the future.

--William WordsWorth
---


 ___
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 [EMAIL PROTECTED]

URGENT!!! Downgrade WebObjects 5.3.* to 5.2.4 as well Java 1.5.* to 1.4.2_09

2007-06-07 Thread Shravan Kumar . M

Hello Group,

Can anyone guide me how to downgrade WebObjects 5.3.* to WebObjects  
5.2.4 as well Java 1.5.* to Java 1.4.2_09 ?


We need this ASAP, one of our production server is upgraded to  
WebObjects 5.3.2 and Java 1.5.0_07, and OS is Apple Mac OS X 10.4.8  
and our application is failing to work...


If I run the same application on a Mac OS X server having WebObjects  
5.2.4 and Java 1.4.2_09, application runs perfectly.


Following is the error in the production server having upgraded  
software:


java.lang.ClassCastException: com.webobjects.eoaccess.EOAttribute
2007-06-06 22:48:21,810 ERROR [admin-FarWest]  
er.extensions.ERXApplication   - Exception caught:  
com.webobjects.eoaccess.EOAttribute


Thanks  Rgds,
Shravan Kumar.M

Let us learn from the past to profit by the present,and from the  
present to live better in the future.

--William WordsWorth
---


 ___
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 [EMAIL PROTECTED]