Re: Webobjects-dev Digest, Vol 3, Issue 830
Re: Webobjects-dev Digest, Vol 3, Issue 830
- Subject: Re: Webobjects-dev Digest, Vol 3, Issue 830
- From: email@hidden
- Date: Wed, 20 Dec 2006 11:30:27 -0500
Jerry (others)
In the scant Apple documentation on this topic, it seems to suggest
that just making a fetch spec in the model and rebuilding the project
makes that fetch spec available in WebServices Assistant's Arguments
and Return panes. Please refer to this page:
http://developer.apple.com/documentation/WebObjects/Web_Services/DtoWS/ch
apter_5_section_13.html
Has anyone successfully used Fetch Specs in WebServices via WebServices
Assistant and if so, would you please ... please clarify the process?
Thanks much for your help,
--Mat
-----Original Message-----
From: email@hidden
To: email@hidden
Sent: Tue, 19 Dec 2006 12:06:34 -0800 (PST)
Subject: Webobjects-dev Digest, Vol 3, Issue 830
Send Webobjects-dev mailing list submissions to
email@hidden
To subscribe or unsubscribe via the World Wide Web, visit
http://lists.apple.com/mailman/listinfo/webobjects-dev
or, via email, send a message with subject or body 'help' to
email@hidden
You can reach the person managing the list at
email@hidden
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Webobjects-dev digest..."
Today's Topics:
1. Re: Performace Problem (Srinivas Adusumalli)
2. Re: NSTimestamp problem (Art Isbell)
3. Re: Where does my JDBC Driver go (Tom Jones)
4. Multiple Calls to Bound Action in Request-Response (Carter Wojcik)
5. java.io.UnsupportedEncodingException:
NSMacOSRomanStringEncoding (Xia, Wen)
6. Re: Multiple Calls to Bound Action in Request-Response
(Chuck Hill)
7. Re: java.io.UnsupportedEncodingException:
NSMacOSRomanStringEncoding (Art Isbell)
8. Performance help (Mehul Pattni)
----------------------------------------------------------------------
Message: 1
Date: Tue, 19 Dec 2006 11:24:55 +0530
From: Srinivas Adusumalli <email@hidden>
Subject: Re: Performace Problem
To: Ken Anderson <email@hidden>
Cc: email@hidden
Message-ID: <email@hidden>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
HI ,
There are no relationships at all , all the columns are the class
properties, i am using 5.2.4
Thanks & regards,
Sri
Ken Anderson wrote:
Hey Srinivas!
Are you firing any faults? I'm assuming you're timing just the fetch
call, so probably not. What version of WebObjects is this with?
Lastly, if the columns are in your model as class properties, or
they're not class properties but they're used in a relationship,
they'll be fetched. Is your entity only a subset of the columns?
Ken
On Dec 18, 2006, at 10:48 AM, Srinivas Adusumalli wrote:
Hi Everyone,
I have a performance problem while fetching records from the
database.
I just have 30000 records in a table and when i fetch those records
using fetch specification its taking nearly 25 seconds, i am
fetching the records based on a qualifier using 3 of the columns, i
tried creating indexes on those columns and when i run the SQL
query
saying select * from tablename where clause the Execution plan
shows
a very little Elapsed time but when i fetch those records from the
Application its nearly taking 25 seconds , i also tried fetching
using the rawRows concept but it also didn't help , this also takes
almost the same time if i include most of the columns present in
the table, there are nearly 70 columns in the table. Is there a way
to improve the performance
Thanks & Regards,
--Sri
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40anderhome.com
This email sent to email@hidden
------------------------------
Message: 2
Date: Mon, 18 Dec 2006 21:03:23 -1000
From: Art Isbell <email@hidden>
Subject: Re: NSTimestamp problem
To: WebObjects Dev Apple <email@hidden>
Message-ID: <email@hidden>
Content-Type: text/plain; charset="us-ascii"
On Dec 18, 2006, at 6:35 PM, Bob Stuart wrote:
I notice the sun tool says:
The java.vendor property value must be "Sun Microsystems Inc.".
so I bet it won't work for Apple JVMs. It didn't appear that Apple
had a JVM release that met the dates shown on the sun page. Maybe
we are stuck?
Well, the Java zone info database is in /System/Library/Frameworks/
JavaVM.framework/Versions/1.5.0/Home/lib/zi. This looks very similar
to the Mac OS X zone info database in /usr/share/zoneinfo which was
produced by the zone info compiler, zic, from the Olson TimeZoneInfo
database. I would be surprised if there isn't a zone info compiler
for Java that could be used to build your own Java zone info
database, but I haven't looked for it. I think doing so would be
worth a little effort.
Aloha,
Art
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://lists.apple.com/pipermail/webobjects-dev/attachments/20061218/cc33
b2c4/attachment.html
------------------------------
Message: 3
Date: Tue, 19 Dec 2006 09:54:17 -0600
From: "Tom Jones" <email@hidden>
Subject: Re: Where does my JDBC Driver go
To: "Chuck Hill" <email@hidden>
Cc: Group WebObjects <email@hidden>
Message-ID:
<email@hidden>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Thanks to all for the help. I've got it working now, I wish I had some
idea what was wrong...The way I resolved this was to switch back to
using XCode's EModeler and setting the connection info from there, I
switch back to the "classic" EOModeler, and it worked. It looked like
at some point I had put some invalid information in the Connection
Info, and for some reason EOModeler was unable to set the value back
(I believe the driver name was wrong (and unnecessary as has been
pointed out). Anyway, issue resolved, perhaps by magic...
Thanks, and Happy Holidays to all.
On 12/18/06, Chuck Hill <email@hidden> wrote:
I don't know how much I would trust the accuracy of that error
message. Your app works OK, but EOModeler can't browse the data?
Doesn't MySQL need a EOF connector (plugin) too? That may be what it
is complaining about. It might also be a class loader order issue.
If you have been putting the JDBC driver all over trying to get this
to work, try removing it from everywhere except /Library/Java/
Extensions.
On Dec 16, 2006, at 10:39 AM, Tom Jones wrote:
> I've tried both locations, and I am still having problems. Here's
the
> message I get
>
> JDBC connection failed for driver :'com.mysql.jdbc.driver'. Driver
not
> found in Java Runtime! Please verify your CLASSPATH environment
> variable. The current CLASSPATH for your application is :
> /Developer/Applications/WebObjects/EOModeler.app/Contents/Resources/
> Java/eomodeler.zip:/Users/tom/Library/Java:/Library/Java:/System/
> Library/Java:/Network/Library/Java:/System/Library/Frameworks/
> JavaVM.framework/Classes/classes.jar:/System/Library/Frameworks/
> JavaVM.framework/Classes/ui.jar:/Developer/Applications/WebObjects/
> EOModeler.app/Contents/Resources/Java/eomodeler.zip:/System/Library/
> Frameworks/JavaVM.framework/Versions/1.5.0/Classes/.compatibility/
> 14compatibility.jar
>
> My previous email indicted I was running XCode, true, but I am also
> running EOModeler, which is where the problem lies.
>
> Thanks,
>
> Tom
>
> On 12/13/06, Art Isbell <email@hidden> wrote:
>> On Dec 13, 2006, at 12:56 AM, Gordon Maynard wrote:
>>
>> > Try /library/java/extensions
>>
>> Or for WebObjects-only jars of any kind including JDBC, /
>> Library/
>> WebObjects/Extensions.
>>
>> > On 13/12/06 10:08, "Tom Jones" <email@hidden> wrote:
>> >
>> >> What is the correct location for JDBC drivers in WebObjects? I
am
>> >> running the latest version of XCode.
>>
>> Aloha,
>> Art
>>
>> _______________________________________________
>> Do not post admin requests to the list. They will be ignored.
>> Webobjects-dev mailing list (email@hidden)
>> Help/Unsubscribe/Update your Subscription:
>> 40gmail.com
>>
>> This email sent to email@hidden
>>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
> 40global-village.net
>
> This email sent to email@hidden
>
--
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
------------------------------
Message: 4
Date: Tue, 19 Dec 2006 08:43:32 -0800 (PST)
From: Carter Wojcik <email@hidden>
Subject: Multiple Calls to Bound Action in Request-Response
To: email@hidden
Message-ID: <email@hidden>
Content-Type: text/plain; charset=iso-8859-1
Hi All -
I have a page containing a custom component
(TabComponent). The TabComponent contains an
ObjectComponent. The ObjectComponent contains a
ButtonComponent. The TabComponent is wrapped in a
conditional.
When the user wants to add a record they push a
button, which flags the conditional as true and
displays the TabComponent. The user selects the
objects to add from a list and then presses an 'Add'
button which calls a method (addAction) located on the
page. Inside the addAction, the conditional is set to
false, to hide the TabComponent once objects are
added.
Initially I was having issues with synchronizing the
conditional on the page, but following advice from
Chuck's book and overriding appendToResponse with an
additional boolean has solved that problem.
Now the problem seems to be that my addAction is being
called multiple times in the Request-Response loop.
This causes the conditional to be set to false and the
TabComponent is hidden. I would only like the
TabComponent to be hidden under certain circumstances,
such as 'Cancel' button pressed or 'Add' button
pressed.
Is there an alternate way to limit when the addAction
is called? Or a different place to put my logic so
that the addAction is not always called?
Thanks for the help.
Carter
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
------------------------------
Message: 5
Date: Tue, 19 Dec 2006 08:48:27 -0800
From: "Xia, Wen" <email@hidden>
Subject: java.io.UnsupportedEncodingException:
NSMacOSRomanStringEncoding
To: <email@hidden>
Message-ID: <C1AD57DB.BC98%email@hidden>
Content-Type: text/plain; charset="us-ascii"
We are having this problem at work. Thank you for your advice.
Wen
From: "Gamache, Don" <email@hidden>
Date: Tue, 19 Dec 2006 07:22:33 -0800
To: WebObjects Dev Apple <email@hidden>
Conversation: java.io.UnsupportedEncodingException:
NSMacOSRomanStringEncoding
Subject: java.io.UnsupportedEncodingException:
NSMacOSRomanStringEncoding
I have a WebObjects web application with about 10 pages running on a
Window
machine. When I first brought up the second page I got this error:
java.io.UnsupportedEncodingException: NSMacOSRomanStringEncoding .
When I
restarted the application I got past page 2 OK but the error
java.io.UnsupportedEncodingException: NSMacOSRomanStringEncoding came up
again. I restarted and got past page 3 OK but page 4 now had the same
error. Restarted and page 4 OK but now page 5 has error. Does anyone
know
why the first time these pages come up they have this error? Thanks.
Don
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://lists.apple.com/pipermail/webobjects-dev/attachments/20061219/c68c
ca6c/attachment.html
------------------------------
Message: 6
Date: Tue, 19 Dec 2006 08:52:33 -0800
From: Chuck Hill <email@hidden>
Subject: Re: Multiple Calls to Bound Action in Request-Response
To: Carter Wojcik <email@hidden>
Cc: email@hidden
Message-ID: <email@hidden>
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
See page 206, Manual Synchronization, bullet point 3. I think that
is what you are hitting and the solutions is also found in that section.
Chuck
On Dec 19, 2006, at 8:43 AM, Carter Wojcik wrote:
Hi All -
I have a page containing a custom component
(TabComponent). The TabComponent contains an
ObjectComponent. The ObjectComponent contains a
ButtonComponent. The TabComponent is wrapped in a
conditional.
When the user wants to add a record they push a
button, which flags the conditional as true and
displays the TabComponent. The user selects the
objects to add from a list and then presses an 'Add'
button which calls a method (addAction) located on the
page. Inside the addAction, the conditional is set to
false, to hide the TabComponent once objects are
added.
Initially I was having issues with synchronizing the
conditional on the page, but following advice from
Chuck's book and overriding appendToResponse with an
additional boolean has solved that problem.
Now the problem seems to be that my addAction is being
called multiple times in the Request-Response loop.
This causes the conditional to be set to false and the
TabComponent is hidden. I would only like the
TabComponent to be hidden under certain circumstances,
such as 'Cancel' button pressed or 'Add' button
pressed.
Is there an alternate way to limit when the addAction
is called? Or a different place to put my logic so
that the addAction is not always called?
Thanks for the help.
Carter
__________________________________________________
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 (email@hidden)
Help/Unsubscribe/Update your Subscription:
40global-village.net
This email sent to email@hidden
--
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
------------------------------
Message: 7
Date: Tue, 19 Dec 2006 07:52:48 -1000
From: Art Isbell <email@hidden>
Subject: Re: java.io.UnsupportedEncodingException:
NSMacOSRomanStringEncoding
To: WebObjects Dev Apple <email@hidden>
Message-ID: <email@hidden>
Content-Type: text/plain; charset="us-ascii"
On Dec 19, 2006, at 6:48 AM, Xia, Wen wrote:
I have a WebObjects web application with about 10 pages running on
a Window machine. When I first brought up the second page I got
this error: java.io.UnsupportedEncodingException:
NSMacOSRomanStringEncoding .
This exception can be thrown if the Java JRE version is not the
multilanguage version. However, it appears that at this time, the
only Windows download choice since Java 1.4 is the multilanguage
version. If you're running a Java version earlier than 1.4, you
might have the U.S. English version installed which is insufficient.
Aloha,
Art
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://lists.apple.com/pipermail/webobjects-dev/attachments/20061219/197d
2574/attachment.html
------------------------------
Message: 8
Date: Tue, 19 Dec 2006 11:44:32 -0800
From: Mehul Pattni <email@hidden>
Subject: Performance help
To: "WebObjects (Group)" <email@hidden>
Message-ID: <email@hidden>
Content-Type: text/plain; charset="us-ascii"
Hi,
I'm having major performance issues during heavy load to the system.
I'm not getting out of memory but getting the famous
java.net.SocketException: Broken pipe
These are my additional arguments in java monitor
maxHeapSize=100000
-WODirectConnectEnabled false
Here is what top reports. Any help would be greatly appreciated.
Cheers,
Mehul
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Picture 10.png
Type: image/png
Size: 4294 bytes
Desc: not available
Url :
http://lists.apple.com/pipermail/webobjects-dev/attachments/20061219/7f32
f4cb/Picture10.png
-------------- next part --------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Picture 8.png
Type: image/png
Size: 4127 bytes
Desc: not available
Url :
http://lists.apple.com/pipermail/webobjects-dev/attachments/20061219/7f32
f4cb/Picture8.png
------------------------------
_______________________________________________
Webobjects-dev mailing list
email@hidden
http://lists.apple.com/mailman/listinfo/webobjects-dev
End of Webobjects-dev Digest, Vol 3, Issue 830
**********************************************
________________________________________________________________________
Check out the new AOL. Most comprehensive set of free safety and
security tools, free access to millions of high-quality videos from
across the web, free AOL Mail and more.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden