Re: SOLVED: Immortal… ehm, frozen instances.

2013-04-03 Thread Chuck Hill
Sounds like it was timing out and throwing an exception that was improperly 
handled.  Seems odd that it would cause zombie sessions even with the 
try...finally in sleep() and terminate()


On 2013-04-03, at 10:32 AM, Altera WO Team wrote:

> Hi all,
> 
> I finally solved the problem… well, not really but I found out the reason. 
> Turns out that the whole thing is on amazon boxes and the DB machine (MySQL) 
> was being backed up every hour… The backup takes all the cpu (not the backup, 
> the bzip2 of the backup) and locks up MySQL for 2 minutes, if an instance 
> tries to access the db in those 2 minutes that instance won't be able to die 
> properly. 
> Solution? I removed the hourly backup which was useless and scheduled a 
> nightly backup with a reniced bzip2. No issues from that day!
> 
> Thanks everybody for the help.
> 
> Matteo
> 
>> 
>> On 21/mar/2013, at 19:19, Chuck Hill  wrote:
>> 
>>> 
>>> On 2013-03-21, at 10:54 AM, Altera WO Team wrote:
>>> 
 
 On 21/mar/2013, at 18:46, Chuck Hill  wrote:
 
> 
> On 2013-03-21, at 6:47 AM, Altera WO Team wrote:
> 
>> I tried anyway and I can confirm. I'm not creating needless sessions. 
>> 
>> The app locks up anyway though… 
> 
> Did adding the finally blocks in your terminate() method help?  Is 
> anything in your code calling session.terminate() directly?  A logout 
> link?
 
 the finally blocks didn't help.
 
 Something is calling session.terminate() directly though, happens when a 
 something bad happens in a direct action.
 
if (existingSession() != null)
sess().terminate();
 
 It's called only if we can't parse the parameters and should never happen. 
 I'll put some logging in those cases. 
 
 Why should this be a problem?
>>> 
>>> I thought it was fixed in 5.4.3, but I could be wrong.  In some past 
>>> version if that same URL can in in rapid succession, you would get 
>>> deadlocks like you are seeing.  The solution at the time was to not call 
>>> terminate directly and instead set the session timeout to a couple seconds. 
>>>  That allowed both requests to clear before terminating the session.
>>> 
>>> 
>>> Chuck
>>> 
>>> 
>> I lost hope in finding the real reason, for now I would be happy to find 
>> a dirty workaround. I need those apps to bounce anyway.
>> 
>> I already tried using ERTimeToKill and it's ineffective.
>> 
>> The lockups are quite rare: I have 10 instances running, bouncing every 
>> 6 hours and it happens maybe 2 times a week, but if an instance locks up 
>> the instances running become 9 and in the long run I'll have everything 
>> locked up.
>> 
>> Any suggestions?
> 
> I don't recall how ERTimeToKill works, but with those stuck threads you 
> are going to need to do
> 
> Runtime.getRuntime().exit(1);
> 
> and if THAT does not kill it, this should:
> 
> Runtime.getRuntime().halt(1);
> 
> 
> Chuck
>> 
>> On 20/mar/2013, at 01:16, Chuck Hill  wrote:
>> 
>>> I think the problem is not that it is creating needless sessions, but 
>>> that a checked-out session is not getting checked back in.
>>> 
>>> Chuck
>>> 
>>> 
>>> On 2013-03-19, at 5:08 PM, Simon wrote:
>>> 
 if we have this kind of issue the first thing we do is log out session 
 creation and check the stack traces. stick something like this in your 
 session constructor then check the output:
 
 public Session() {
 super();
 StringWriter stringWriter = new StringWriter();
 
 PrintWriter printWriter = new PrintWriter(stringWriter);
 
 (new Throwable()).printStackTrace(printWriter);
 
 String trace = stringWriter.toString(); < log this somewhere that 
 you can get easy access to
 
 }
 
 
 
 
 
 
 On 19 March 2013 23:15, Altera WO Team  wrote:
 Wow, good hint!
 
 In theory I'm not touching a Session but sometimes, when something in 
 an EO changes I trigger e-mail sending. 
 I use ERMailDeliveryHTML using a component instantiated with a brand 
 new wocontext using ERXWOContext.newContext()
 the component is not referencing a Session in any part. 
 
 Could it be the cause?
 
 Matteo
 
 
 On 19/mar/2013, at 21:24, Simon  wrote:
 
> ...or you are touching the session object outside the RR loop. the 
> classic gotcha is rendering a component in a thread that touches the 
> session in some way e.g. delivering an email in a thread that uses a 
> component to render it's content... been caught by that one s 
> many times!
> 
> 
> 

Re: WONettyAdaptor

2013-04-03 Thread Ramsey Gurley
In the testing I've done, I haven't noticed a great difference in performance 
between it and the default. But it's easier to do websockets with the 
WONettyAdaptor which might be reason enough to use it.


On Apr 3, 2013, at 3:44 PM, Ricardo Parada wrote:

> I am considering using it with a direct action app.  No file uploads.
> Is it reliable? More efficient?
> 
> Thanks Ramsey,
> Ricardo
> 
> 
> 
> On Apr 3, 2013, at 5:42 PM, Ramsey Gurley  wrote:
> 
>> At least one gotcha. It's limited to 100Mb file sizes at the moment.
>> 
>> Ramsey
>> 
>> On Apr 3, 2013, at 3:39 PM, Ricardo Parada wrote:
>> 
>>> Hi,
>>> 
>>> Do you all recommend using WONettyAdaptor over the WODefaultAdaptor?
>>> 
>>> Thanks,
>>> Ricardo
>>> 
>>> ___
>>> Do not post admin requests to the list. They will be ignored.
>>> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
>>> Help/Unsubscribe/Update your Subscription:
>>> https://lists.apple.com/mailman/options/webobjects-dev/rgurley%40smarthealth.com
>>> 
>>> This email sent to rgur...@smarthealth.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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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


Re: WONettyAdaptor

2013-04-03 Thread Ricardo Parada
I am considering using it with a direct action app.  No file uploads.
Is it reliable? More efficient?

Thanks Ramsey,
Ricardo



On Apr 3, 2013, at 5:42 PM, Ramsey Gurley  wrote:

> At least one gotcha. It's limited to 100Mb file sizes at the moment.
> 
> Ramsey
> 
> On Apr 3, 2013, at 3:39 PM, Ricardo Parada wrote:
> 
>> Hi,
>> 
>> Do you all recommend using WONettyAdaptor over the WODefaultAdaptor?
>> 
>> Thanks,
>> Ricardo
>> 
>> ___
>> Do not post admin requests to the list. They will be ignored.
>> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
>> Help/Unsubscribe/Update your Subscription:
>> https://lists.apple.com/mailman/options/webobjects-dev/rgurley%40smarthealth.com
>> 
>> This email sent to rgur...@smarthealth.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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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


Re: WONettyAdaptor

2013-04-03 Thread Ramsey Gurley
At least one gotcha. It's limited to 100Mb file sizes at the moment.

Ramsey

On Apr 3, 2013, at 3:39 PM, Ricardo Parada wrote:

> Hi,
> 
> Do you all recommend using WONettyAdaptor over the WODefaultAdaptor?
> 
> Thanks,
> Ricardo
> 
> ___
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/rgurley%40smarthealth.com
> 
> This email sent to rgur...@smarthealth.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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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


WONettyAdaptor

2013-04-03 Thread Ricardo Parada
Hi,

Do you all recommend using WONettyAdaptor over the WODefaultAdaptor?

Thanks,
Ricardo

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

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


Re: custom page ??

2013-04-03 Thread David LeBer
Blaming a technology for the evil that men do...

Gah, I've said too much already. :p

D

--
David LeBer
Codeferous Software

On 2013-04-03, at 5:31 PM, Ramsey Gurley  wrote:

> E, WOOgnl makes it ten times worse!  WOOgnl produces befuddling things 
> like
> 
> 
> 
> I'm looking around for a file named misc.html. Nope! It's actually a method 
> named html(String string) on a class named ChuckTesta. Pffft. Obviously! I'm 
> sure if I command click it, it'll take me right to the source... oh wait, no, 
> it doesn't.
> 
> It also produces stuff like
> 
>  anOrderDetailSale.orderLineNumber" ?id = 
> "$anOrderDetailSaleStyle.styleNumber" ?cid = 
> "$anOrderDetailSale.extraStorage.category.categoryId //VALID" ?pn = 
> "$anOrderDetailSale.partNumber" disabled = "~(!anOrderDetailSaleStyle)" 
> secure = "$false"> />
> 
> I'm side scrolling on a 22" monitor in a maximized window just attempting to 
> read it. No widescreen is wide enough for WOOgnl!
> 
> And then there's the plain ridiculous
> 
> 
> 
> I'm sure that stuff is fun to debug. All I need to know:
> 
> inline bindings == satan
> 
> and cmd-2 W is my friend :D
> 
> Ramsey
> 
> On Apr 3, 2013, at 1:23 PM, David LeBer wrote:
> 
>> Bah, inline bindings are a great idea.
>> 
>> But only if you have them enabled, and the WOOgnl framework in your class 
>> path.
>> 
>> D
>> 
>> --
>> David LeBer
>> Codeferous Software
>> 
>> On 2013-04-03, at 4:12 PM, Ramsey Gurley  wrote:
>> 
>>> WOHyperLink? The class is WOHyperlink. Perhaps part of the problem?
>>> 
>>> I blame the inline bindings. Inline bindings are never a good idea :-)
>>> 
>>> Ramsey
>>> 
>>> On Apr 3, 2013, at 1:03 PM, Theodore Petrosky wrote:
>>> 
 I have a d2w app and I wanted to add a component to act as a report 
 listing page.
 
 I created a component called ReportsPage extending ERD2WInspectPageTemplate
 
 my idea was to add a few hyperlinks that would create some wonderful 
 jasper report documents.
 
 my ReportsPage comes in fine but when I add a simple hyperlink:
 
 
 Project Report
 
 
 om.webobjects.appserver.parser.woml.WOMLTemplateParserException: 
 ReportsPage: 5:6: Could not generate an element named: WOHyperLink
 
 
 so I assume that extending ERD2WInspectPageTemplate is my problem. 
 
 Is there a better way to do this?
 
 
 ___
 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:
 https://lists.apple.com/mailman/options/webobjects-dev/rgurley%40smarthealth.com
 
 This email sent to rgur...@smarthealth.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:
>>> https://lists.apple.com/mailman/options/webobjects-dev/dleber_wodev%40codeferous.com
>>> 
>>> This email sent to dleber_wo...@codeferous.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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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


Re: [Excel] - Maximum column with EGSimpleTableCreator

2013-04-03 Thread Tobias Janz
Hi,

looks like nobody has used the ExcelGenerator-Framework with more than 255
Columns or a bit abstract with the xlsx-Format.
Maybe you could write an extension?
Also the version of the poi-jar is out of date, 3.9 is the latest stable
version (3.6 is 3 years old).
Looks like the SS Usermodel is a good idea.

Tobias



2013/4/3 Dev WO 

> I'm sure I won't be able to fit more than 255 columns in this one either;)
>
> Xavier
>
> On 3 avr. 2013, at 19:21, Alan Ward  wrote:
>
> >
> > What's Excel?  I thought it was a car :)
> >
> > http://en.wikipedia.org/wiki/Lotus_Excel
> >
> > Alan
> >
> >
> > On Apr 3, 2013, at 11:09 AM, Dev WO  wrote:
> >
> >> I don't want to believe I'm the only one on this list to have to deal
> with Excel;)
> >> Any pointer/recommendation regarding the Excel generation column limit?
> >>
> >> Thanks,
> >>
> >> Xavier
> >>
> >> On 28 mars 2013, at 20:54, Dev WO  wrote:
> >>
> >>> Hello list,
> >>>
> >>> I found a thread from 2010 about this, mentioning the the pre-2007
> Excel limitation regarding the number of columns.
> >>> I looked at the code from EGSimpleTableParser and EGSimpleTableCreator
> and related Properties' file but didn't find anything in them related to
> this limitation.
> >>> It looks like the only way to get more than 255 columns in Excel is
> using the xlsx format through org.apache.poi.ss.usermodel instead of the
> org.apache.poi.hssf.usermodel.
> >>>
> >>> I'm wondering how people creating Excel export on this list are
> handling that, are you all using Aspose or did I overlooked something in
> Wonder?
> >>>
> >>> Thanks,
> >>>
> >>> Xavier
> >>>
> >>>
> >>> ___
> >>> 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:
> >>>
> https://lists.apple.com/mailman/options/webobjects-dev/webobjects%40anazys.com
> >>>
> >>> This email sent to webobje...@anazys.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:
> >>
> https://lists.apple.com/mailman/options/webobjects-dev/award%40apple.com
> >>
> >> This email sent to aw...@apple.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:
>
> https://lists.apple.com/mailman/options/webobjects-dev/janz.tobias%40gmail.com
>
> This email sent to janz.tob...@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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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


Re: custom page ??

2013-04-03 Thread Ramsey Gurley
E, WOOgnl makes it ten times worse!  WOOgnl produces befuddling things like



I'm looking around for a file named misc.html. Nope! It's actually a method 
named html(String string) on a class named ChuckTesta. Pffft. Obviously! I'm 
sure if I command click it, it'll take me right to the source... oh wait, no, 
it doesn't.

It also produces stuff like



I'm side scrolling on a 22" monitor in a maximized window just attempting to 
read it. No widescreen is wide enough for WOOgnl!

And then there's the plain ridiculous



I'm sure that stuff is fun to debug. All I need to know:

inline bindings == satan

and cmd-2 W is my friend :D

Ramsey

On Apr 3, 2013, at 1:23 PM, David LeBer wrote:

> Bah, inline bindings are a great idea.
> 
> But only if you have them enabled, and the WOOgnl framework in your class 
> path.
> 
> D
> 
> --
> David LeBer
> Codeferous Software
> 
> On 2013-04-03, at 4:12 PM, Ramsey Gurley  wrote:
> 
>> WOHyperLink? The class is WOHyperlink. Perhaps part of the problem?
>> 
>> I blame the inline bindings. Inline bindings are never a good idea :-)
>> 
>> Ramsey
>> 
>> On Apr 3, 2013, at 1:03 PM, Theodore Petrosky wrote:
>> 
>>> I have a d2w app and I wanted to add a component to act as a report listing 
>>> page.
>>> 
>>> I created a component called ReportsPage extending ERD2WInspectPageTemplate
>>> 
>>> my idea was to add a few hyperlinks that would create some wonderful jasper 
>>> report documents.
>>> 
>>> my ReportsPage comes in fine but when I add a simple hyperlink:
>>> 
>>> 
>>> Project Report
>>> 
>>> 
>>> om.webobjects.appserver.parser.woml.WOMLTemplateParserException: 
>>> ReportsPage: 5:6: Could not generate an element named: WOHyperLink
>>> 
>>> 
>>> so I assume that extending ERD2WInspectPageTemplate is my problem. 
>>> 
>>> Is there a better way to do this?
>>> 
>>> 
>>> ___
>>> 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:
>>> https://lists.apple.com/mailman/options/webobjects-dev/rgurley%40smarthealth.com
>>> 
>>> This email sent to rgur...@smarthealth.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:
>> https://lists.apple.com/mailman/options/webobjects-dev/dleber_wodev%40codeferous.com
>> 
>> This email sent to dleber_wo...@codeferous.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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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


Re: custom page ??

2013-04-03 Thread Theodore Petrosky

silly me, I thought WOOgnl was on by default in a new D2W app.

thank you one and all.

--- On Wed, 4/3/13, David LeBer  wrote:

> From: David LeBer 
> Subject: Re: custom page ??
> To: "Ramsey Gurley" 
> Cc: "WebObjects Development" 
> Date: Wednesday, April 3, 2013, 4:23 PM
> Bah, inline bindings are a great
> idea.
> 
> But only if you have them enabled, and the WOOgnl framework
> in your class path.
> 
> D
> 
> --
> David LeBer
> Codeferous Software
> 
> On 2013-04-03, at 4:12 PM, Ramsey Gurley 
> wrote:
> 
> > WOHyperLink? The class is WOHyperlink. Perhaps part of
> the problem?
> > 
> > I blame the inline bindings. Inline bindings are never
> a good idea :-)
> > 
> > Ramsey
> > 
> > On Apr 3, 2013, at 1:03 PM, Theodore Petrosky wrote:
> > 
> >> I have a d2w app and I wanted to add a component to
> act as a report listing page.
> >> 
> >> I created a component called ReportsPage extending
> ERD2WInspectPageTemplate
> >> 
> >> my idea was to add a few hyperlinks that would
> create some wonderful jasper report documents.
> >> 
> >> my ReportsPage comes in fine but when I add a
> simple hyperlink:
> >> 
> >> 
> >>  "$projectReportAction">Project
> Report
> >> 
> >> 
> >>
> om.webobjects.appserver.parser.woml.WOMLTemplateParserException:
> ReportsPage: 5:6: Could not generate an element named:
> WOHyperLink
> >> 
> >> 
> >> so I assume that extending ERD2WInspectPageTemplate
> is my problem. 
> >> 
> >> Is there a better way to do this?
> >> 
> >> 
> >> ___
> >> 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:
> >> https://lists.apple.com/mailman/options/webobjects-dev/rgurley%40smarthealth.com
> >> 
> >> This email sent to rgur...@smarthealth.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:
> > https://lists.apple.com/mailman/options/webobjects-dev/dleber_wodev%40codeferous.com
> > 
> > This email sent to dleber_wo...@codeferous.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:
> https://lists.apple.com/mailman/options/webobjects-dev/tedpet5%40yahoo.com
> 
> This email sent to tedp...@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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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

Re: custom page ??

2013-04-03 Thread Ramsey Gurley
Is it wo:link or wo:WOHyperlink? I guess you've tried both. 

If it's not the WOHyperLink thing, I'm not sure what the problem is. A 
hyperlink should work just fine. All the looks use them just fine. Try to cmd-2 
w that thing. I'll bet it works with a WOD binding. Inline bindings are The 
Devil after all.

But rather than customize an entire inspect page just to bring in a few 
hyperlinks, why not create a custom page controller and have methods like

public WOComponent generateReport(WOComponent sender)

on it? It sounds like you're trying to beat D2W into submission to do things 
the old way :-)

Ramsey


On Apr 3, 2013, at 1:21 PM, Theodore Petrosky wrote:

> 
> that was me fat fingering it.
> 
> Error: 
> com.webobjects.appserver.parser.woml.WOMLTemplateParserException: 
> ReportsPage: 4:5: Could not generate an element named: WOHyperlink
> Reason:Could not generate an element named: WOHyperlink
> 
> my goal is to bring in a simple component with hyperlinks on it. 
> 
> public class ReportsPage extends ERD2WInspectPageTemplate {
> 
> i am using these 4 rules for the component:
> 
> 100 : pageConfiguration = 'ReportsPage' => entity = "User" [EntityAssignment]
> 100 : pageConfiguration = 'ReportsPage' => navigationState = "Reports" 
> [Assignment]
> 100 : pageConfiguration = 'ReportsPage' => task = "inspect" [Assignment]
> 100 : pageConfiguration = 'ReportsPage' => templateNameForInspectPage = 
> "ReportsPage" [Assignment]
> 
> if I have no WOHyperlink on the page, then it renders just fine.
> 
> here is the entire html:
> 
> 
> Outlets Project Reports
> 
> Project 
> Report
> 
> 
> 
> the action just starts the jasper reports process.
> 
> ideas?
> 
> Ted
> 
> 
> 
> 
> --- On Wed, 4/3/13, Ramsey Gurley  wrote:
> 
>> From: Ramsey Gurley 
>> Subject: Re: custom page ??
>> To: "Theodore Petrosky" 
>> Cc: "WebObjects Development" 
>> Date: Wednesday, April 3, 2013, 4:12 PM
>> WOHyperLink? The class is
>> WOHyperlink. Perhaps part of the problem?
>> 
>> I blame the inline bindings. Inline bindings are never a
>> good idea :-)
>> 
>> Ramsey
>> 
>> On Apr 3, 2013, at 1:03 PM, Theodore Petrosky wrote:
>> 
>>> I have a d2w app and I wanted to add a component to act
>> as a report listing page.
>>> 
>>> I created a component called ReportsPage extending
>> ERD2WInspectPageTemplate
>>> 
>>> my idea was to add a few hyperlinks that would create
>> some wonderful jasper report documents.
>>> 
>>> my ReportsPage comes in fine but when I add a simple
>> hyperlink:
>>> 
>>> 
>>> > "$projectReportAction">Project
>> Report
>>> 
>>> 
>>> 
>> om.webobjects.appserver.parser.woml.WOMLTemplateParserException:
>> ReportsPage: 5:6: Could not generate an element named:
>> WOHyperLink
>>> 
>>> 
>>> so I assume that extending ERD2WInspectPageTemplate is
>> my problem. 
>>> 
>>> Is there a better way to do this?
>>> 
>>> 
>>> ___
>>> 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:
>>> https://lists.apple.com/mailman/options/webobjects-dev/rgurley%40smarthealth.com
>>> 
>>> This email sent to rgur...@smarthealth.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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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


Re: custom page ??

2013-04-03 Thread David LeBer
Bah, inline bindings are a great idea.

But only if you have them enabled, and the WOOgnl framework in your class path.

D

--
David LeBer
Codeferous Software

On 2013-04-03, at 4:12 PM, Ramsey Gurley  wrote:

> WOHyperLink? The class is WOHyperlink. Perhaps part of the problem?
> 
> I blame the inline bindings. Inline bindings are never a good idea :-)
> 
> Ramsey
> 
> On Apr 3, 2013, at 1:03 PM, Theodore Petrosky wrote:
> 
>> I have a d2w app and I wanted to add a component to act as a report listing 
>> page.
>> 
>> I created a component called ReportsPage extending ERD2WInspectPageTemplate
>> 
>> my idea was to add a few hyperlinks that would create some wonderful jasper 
>> report documents.
>> 
>> my ReportsPage comes in fine but when I add a simple hyperlink:
>> 
>> 
>> Project Report
>> 
>> 
>> om.webobjects.appserver.parser.woml.WOMLTemplateParserException: 
>> ReportsPage: 5:6: Could not generate an element named: WOHyperLink
>> 
>> 
>> so I assume that extending ERD2WInspectPageTemplate is my problem. 
>> 
>> Is there a better way to do this?
>> 
>> 
>> ___
>> 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:
>> https://lists.apple.com/mailman/options/webobjects-dev/rgurley%40smarthealth.com
>> 
>> This email sent to rgur...@smarthealth.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:
> https://lists.apple.com/mailman/options/webobjects-dev/dleber_wodev%40codeferous.com
> 
> This email sent to dleber_wo...@codeferous.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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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


Re: custom page ??

2013-04-03 Thread Theodore Petrosky

that was me fat fingering it.

Error:   com.webobjects.appserver.parser.woml.WOMLTemplateParserException: 
ReportsPage: 4:5: Could not generate an element named: WOHyperlink
Reason:  Could not generate an element named: WOHyperlink

my goal is to bring in a simple component with hyperlinks on it. 

public class ReportsPage extends ERD2WInspectPageTemplate {

i am using these 4 rules for the component:

100 : pageConfiguration = 'ReportsPage' => entity = "User" [EntityAssignment]
100 : pageConfiguration = 'ReportsPage' => navigationState = "Reports" 
[Assignment]
100 : pageConfiguration = 'ReportsPage' => task = "inspect" [Assignment]
100 : pageConfiguration = 'ReportsPage' => templateNameForInspectPage = 
"ReportsPage" [Assignment]

if I have no WOHyperlink on the page, then it renders just fine.

here is the entire html:


Outlets Project Reports

Project 
Report



the action just starts the jasper reports process.

ideas?

Ted




--- On Wed, 4/3/13, Ramsey Gurley  wrote:

> From: Ramsey Gurley 
> Subject: Re: custom page ??
> To: "Theodore Petrosky" 
> Cc: "WebObjects Development" 
> Date: Wednesday, April 3, 2013, 4:12 PM
> WOHyperLink? The class is
> WOHyperlink. Perhaps part of the problem?
> 
> I blame the inline bindings. Inline bindings are never a
> good idea :-)
> 
> Ramsey
> 
> On Apr 3, 2013, at 1:03 PM, Theodore Petrosky wrote:
> 
> > I have a d2w app and I wanted to add a component to act
> as a report listing page.
> > 
> > I created a component called ReportsPage extending
> ERD2WInspectPageTemplate
> > 
> > my idea was to add a few hyperlinks that would create
> some wonderful jasper report documents.
> > 
> > my ReportsPage comes in fine but when I add a simple
> hyperlink:
> > 
> > 
> >  "$projectReportAction">Project
> Report
> > 
> > 
> >
> om.webobjects.appserver.parser.woml.WOMLTemplateParserException:
> ReportsPage: 5:6: Could not generate an element named:
> WOHyperLink
> > 
> > 
> > so I assume that extending ERD2WInspectPageTemplate is
> my problem. 
> > 
> > Is there a better way to do this?
> > 
> > 
> > ___
> > 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:
> > https://lists.apple.com/mailman/options/webobjects-dev/rgurley%40smarthealth.com
> > 
> > This email sent to rgur...@smarthealth.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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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

Re: custom page ??

2013-04-03 Thread Ramsey Gurley
WOHyperLink? The class is WOHyperlink. Perhaps part of the problem?

I blame the inline bindings. Inline bindings are never a good idea :-)

Ramsey

On Apr 3, 2013, at 1:03 PM, Theodore Petrosky wrote:

> I have a d2w app and I wanted to add a component to act as a report listing 
> page.
> 
> I created a component called ReportsPage extending ERD2WInspectPageTemplate
> 
> my idea was to add a few hyperlinks that would create some wonderful jasper 
> report documents.
> 
> my ReportsPage comes in fine but when I add a simple hyperlink:
> 
> 
> Project Report
> 
> 
> om.webobjects.appserver.parser.woml.WOMLTemplateParserException: ReportsPage: 
> 5:6: Could not generate an element named: WOHyperLink
> 
> 
> so I assume that extending ERD2WInspectPageTemplate is my problem. 
> 
> Is there a better way to do this?
> 
> 
> ___
> 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:
> https://lists.apple.com/mailman/options/webobjects-dev/rgurley%40smarthealth.com
> 
> This email sent to rgur...@smarthealth.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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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


custom page ??

2013-04-03 Thread Theodore Petrosky
I have a d2w app and I wanted to add a component to act as a report listing 
page.

I created a component called ReportsPage extending ERD2WInspectPageTemplate

my idea was to add a few hyperlinks that would create some wonderful jasper 
report documents.

my ReportsPage comes in fine but when I add a simple hyperlink:


Project Report


om.webobjects.appserver.parser.woml.WOMLTemplateParserException: ReportsPage: 
5:6: Could not generate an element named: WOHyperLink


so I assume that extending ERD2WInspectPageTemplate is my problem. 

Is there a better way to do this?


 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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


Re: SOLVED: Immortal… ehm, frozen instances.

2013-04-03 Thread Steve Peery
I strongly agree with the suggestion for a MySQL replication slave server. They 
are not that hard to set up and then you can dump a backup as often as you like 
with out effecting the main server and you always have an up to the minute copy 
incase something happens. I had a problem a couple of months ago and going to a 
backup up that was just a couple of hours old was a major loss.

Steve

On Apr 3, 2013, at 2:16 PM, Kieran Kelleher  wrote:

> Another longer term option is to have a MySQL replication slave server that 
> performs backup snapshots as needed (hourly, daily, weekly).
> 
> On Apr 3, 2013, at 1:32 PM, Altera WO Team  wrote:
> 
>> Hi all,
>> 
>> I finally solved the problem… well, not really but I found out the reason. 
>> Turns out that the whole thing is on amazon boxes and the DB machine (MySQL) 
>> was being backed up every hour… The backup takes all the cpu (not the 
>> backup, the bzip2 of the backup) and locks up MySQL for 2 minutes, if an 
>> instance tries to access the db in those 2 minutes that instance won't be 
>> able to die properly. 
>> Solution? I removed the hourly backup which was useless and scheduled a 
>> nightly backup with a reniced bzip2. No issues from that day!
>> 
>> Thanks everybody for the help.
>> 
>> Matteo
>> 
>>> 
>>> On 21/mar/2013, at 19:19, Chuck Hill  wrote:
>>> 
 
 On 2013-03-21, at 10:54 AM, Altera WO Team wrote:
 
> 
> On 21/mar/2013, at 18:46, Chuck Hill  wrote:
> 
>> 
>> On 2013-03-21, at 6:47 AM, Altera WO Team wrote:
>> 
>>> I tried anyway and I can confirm. I'm not creating needless sessions. 
>>> 
>>> The app locks up anyway though… 
>> 
>> Did adding the finally blocks in your terminate() method help?  Is 
>> anything in your code calling session.terminate() directly?  A logout 
>> link?
> 
> the finally blocks didn't help.
> 
> Something is calling session.terminate() directly though, happens when a 
> something bad happens in a direct action.
> 
>   if (existingSession() != null)
>   sess().terminate();
> 
> It's called only if we can't parse the parameters and should never 
> happen. I'll put some logging in those cases. 
> 
> Why should this be a problem?
 
 I thought it was fixed in 5.4.3, but I could be wrong.  In some past 
 version if that same URL can in in rapid succession, you would get 
 deadlocks like you are seeing.  The solution at the time was to not call 
 terminate directly and instead set the session timeout to a couple 
 seconds.  That allowed both requests to clear before terminating the 
 session.
 
 
 Chuck
 
 
>>> I lost hope in finding the real reason, for now I would be happy to 
>>> find a dirty workaround. I need those apps to bounce anyway.
>>> 
>>> I already tried using ERTimeToKill and it's ineffective.
>>> 
>>> The lockups are quite rare: I have 10 instances running, bouncing every 
>>> 6 hours and it happens maybe 2 times a week, but if an instance locks 
>>> up the instances running become 9 and in the long run I'll have 
>>> everything locked up.
>>> 
>>> Any suggestions?
>> 
>> I don't recall how ERTimeToKill works, but with those stuck threads you 
>> are going to need to do
>> 
>> Runtime.getRuntime().exit(1);
>> 
>> and if THAT does not kill it, this should:
>> 
>> Runtime.getRuntime().halt(1);
>> 
>> 
>> Chuck
>>> 
>>> On 20/mar/2013, at 01:16, Chuck Hill  wrote:
>>> 
 I think the problem is not that it is creating needless sessions, but 
 that a checked-out session is not getting checked back in.
 
 Chuck
 
 
 On 2013-03-19, at 5:08 PM, Simon wrote:
 
> if we have this kind of issue the first thing we do is log out 
> session creation and check the stack traces. stick something like 
> this in your session constructor then check the output:
> 
> public Session() {
> super();
> StringWriter stringWriter = new StringWriter();
> 
> PrintWriter printWriter = new PrintWriter(stringWriter);
> 
> (new Throwable()).printStackTrace(printWriter);
> 
> String trace = stringWriter.toString(); < log this somewhere that 
> you can get easy access to
> 
> }
> 
> 
> 
> 
> 
> 
> On 19 March 2013 23:15, Altera WO Team  wrote:
> Wow, good hint!
> 
> In theory I'm not touching a Session but sometimes, when something in 
> an EO changes I trigger e-mail sending. 
> I use ERMailDeliveryHTML using a component instantiated with a brand 
> new wocontext using ERXWOContext.newContext()
> the component is not referencing a Sess

Re: SOLVED: Immortal… ehm, frozen instances.

2013-04-03 Thread Kieran Kelleher
Another longer term option is to have a MySQL replication slave server that 
performs backup snapshots as needed (hourly, daily, weekly).

On Apr 3, 2013, at 1:32 PM, Altera WO Team  wrote:

> Hi all,
> 
> I finally solved the problem… well, not really but I found out the reason. 
> Turns out that the whole thing is on amazon boxes and the DB machine (MySQL) 
> was being backed up every hour… The backup takes all the cpu (not the backup, 
> the bzip2 of the backup) and locks up MySQL for 2 minutes, if an instance 
> tries to access the db in those 2 minutes that instance won't be able to die 
> properly. 
> Solution? I removed the hourly backup which was useless and scheduled a 
> nightly backup with a reniced bzip2. No issues from that day!
> 
> Thanks everybody for the help.
> 
> Matteo
> 
>> 
>> On 21/mar/2013, at 19:19, Chuck Hill  wrote:
>> 
>>> 
>>> On 2013-03-21, at 10:54 AM, Altera WO Team wrote:
>>> 
 
 On 21/mar/2013, at 18:46, Chuck Hill  wrote:
 
> 
> On 2013-03-21, at 6:47 AM, Altera WO Team wrote:
> 
>> I tried anyway and I can confirm. I'm not creating needless sessions. 
>> 
>> The app locks up anyway though… 
> 
> Did adding the finally blocks in your terminate() method help?  Is 
> anything in your code calling session.terminate() directly?  A logout 
> link?
 
 the finally blocks didn't help.
 
 Something is calling session.terminate() directly though, happens when a 
 something bad happens in a direct action.
 
if (existingSession() != null)
sess().terminate();
 
 It's called only if we can't parse the parameters and should never happen. 
 I'll put some logging in those cases. 
 
 Why should this be a problem?
>>> 
>>> I thought it was fixed in 5.4.3, but I could be wrong.  In some past 
>>> version if that same URL can in in rapid succession, you would get 
>>> deadlocks like you are seeing.  The solution at the time was to not call 
>>> terminate directly and instead set the session timeout to a couple seconds. 
>>>  That allowed both requests to clear before terminating the session.
>>> 
>>> 
>>> Chuck
>>> 
>>> 
>> I lost hope in finding the real reason, for now I would be happy to find 
>> a dirty workaround. I need those apps to bounce anyway.
>> 
>> I already tried using ERTimeToKill and it's ineffective.
>> 
>> The lockups are quite rare: I have 10 instances running, bouncing every 
>> 6 hours and it happens maybe 2 times a week, but if an instance locks up 
>> the instances running become 9 and in the long run I'll have everything 
>> locked up.
>> 
>> Any suggestions?
> 
> I don't recall how ERTimeToKill works, but with those stuck threads you 
> are going to need to do
> 
> Runtime.getRuntime().exit(1);
> 
> and if THAT does not kill it, this should:
> 
> Runtime.getRuntime().halt(1);
> 
> 
> Chuck
>> 
>> On 20/mar/2013, at 01:16, Chuck Hill  wrote:
>> 
>>> I think the problem is not that it is creating needless sessions, but 
>>> that a checked-out session is not getting checked back in.
>>> 
>>> Chuck
>>> 
>>> 
>>> On 2013-03-19, at 5:08 PM, Simon wrote:
>>> 
 if we have this kind of issue the first thing we do is log out session 
 creation and check the stack traces. stick something like this in your 
 session constructor then check the output:
 
 public Session() {
 super();
 StringWriter stringWriter = new StringWriter();
 
 PrintWriter printWriter = new PrintWriter(stringWriter);
 
 (new Throwable()).printStackTrace(printWriter);
 
 String trace = stringWriter.toString(); < log this somewhere that 
 you can get easy access to
 
 }
 
 
 
 
 
 
 On 19 March 2013 23:15, Altera WO Team  wrote:
 Wow, good hint!
 
 In theory I'm not touching a Session but sometimes, when something in 
 an EO changes I trigger e-mail sending. 
 I use ERMailDeliveryHTML using a component instantiated with a brand 
 new wocontext using ERXWOContext.newContext()
 the component is not referencing a Session in any part. 
 
 Could it be the cause?
 
 Matteo
 
 
 On 19/mar/2013, at 21:24, Simon  wrote:
 
> ...or you are touching the session object outside the RR loop. the 
> classic gotcha is rendering a component in a thread that touches the 
> session in some way e.g. delivering an email in a thread that uses a 
> component to render it's content... been caught by that one s 
> many times!
> 
> 
> On 19 March 2013 17:51, Chuck Hill  wrote:

SOLVED: Immortal… ehm, frozen instances.

2013-04-03 Thread Altera WO Team
Hi all,

I finally solved the problem… well, not really but I found out the reason. 
Turns out that the whole thing is on amazon boxes and the DB machine (MySQL) 
was being backed up every hour… The backup takes all the cpu (not the backup, 
the bzip2 of the backup) and locks up MySQL for 2 minutes, if an instance tries 
to access the db in those 2 minutes that instance won't be able to die 
properly. 
Solution? I removed the hourly backup which was useless and scheduled a nightly 
backup with a reniced bzip2. No issues from that day!

Thanks everybody for the help.

Matteo

> 
> On 21/mar/2013, at 19:19, Chuck Hill  wrote:
> 
>> 
>> On 2013-03-21, at 10:54 AM, Altera WO Team wrote:
>> 
>>> 
>>> On 21/mar/2013, at 18:46, Chuck Hill  wrote:
>>> 
 
 On 2013-03-21, at 6:47 AM, Altera WO Team wrote:
 
> I tried anyway and I can confirm. I'm not creating needless sessions. 
> 
> The app locks up anyway though… 
 
 Did adding the finally blocks in your terminate() method help?  Is 
 anything in your code calling session.terminate() directly?  A logout link?
>>> 
>>> the finally blocks didn't help.
>>> 
>>> Something is calling session.terminate() directly though, happens when a 
>>> something bad happens in a direct action.
>>> 
>>> if (existingSession() != null)
>>> sess().terminate();
>>> 
>>> It's called only if we can't parse the parameters and should never happen. 
>>> I'll put some logging in those cases. 
>>> 
>>> Why should this be a problem?
>> 
>> I thought it was fixed in 5.4.3, but I could be wrong.  In some past version 
>> if that same URL can in in rapid succession, you would get deadlocks like 
>> you are seeing.  The solution at the time was to not call terminate directly 
>> and instead set the session timeout to a couple seconds.  That allowed both 
>> requests to clear before terminating the session.
>> 
>> 
>> Chuck
>> 
>> 
> I lost hope in finding the real reason, for now I would be happy to find 
> a dirty workaround. I need those apps to bounce anyway.
> 
> I already tried using ERTimeToKill and it's ineffective.
> 
> The lockups are quite rare: I have 10 instances running, bouncing every 6 
> hours and it happens maybe 2 times a week, but if an instance locks up 
> the instances running become 9 and in the long run I'll have everything 
> locked up.
> 
> Any suggestions?
 
 I don't recall how ERTimeToKill works, but with those stuck threads you 
 are going to need to do
 
 Runtime.getRuntime().exit(1);
 
 and if THAT does not kill it, this should:
 
 Runtime.getRuntime().halt(1);
 
 
 Chuck
> 
> On 20/mar/2013, at 01:16, Chuck Hill  wrote:
> 
>> I think the problem is not that it is creating needless sessions, but 
>> that a checked-out session is not getting checked back in.
>> 
>> Chuck
>> 
>> 
>> On 2013-03-19, at 5:08 PM, Simon wrote:
>> 
>>> if we have this kind of issue the first thing we do is log out session 
>>> creation and check the stack traces. stick something like this in your 
>>> session constructor then check the output:
>>> 
>>> public Session() {
>>> super();
>>> StringWriter stringWriter = new StringWriter();
>>> 
>>> PrintWriter printWriter = new PrintWriter(stringWriter);
>>> 
>>> (new Throwable()).printStackTrace(printWriter);
>>> 
>>> String trace = stringWriter.toString(); < log this somewhere that 
>>> you can get easy access to
>>> 
>>> }
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> On 19 March 2013 23:15, Altera WO Team  wrote:
>>> Wow, good hint!
>>> 
>>> In theory I'm not touching a Session but sometimes, when something in 
>>> an EO changes I trigger e-mail sending. 
>>> I use ERMailDeliveryHTML using a component instantiated with a brand 
>>> new wocontext using ERXWOContext.newContext()
>>> the component is not referencing a Session in any part. 
>>> 
>>> Could it be the cause?
>>> 
>>> Matteo
>>> 
>>> 
>>> On 19/mar/2013, at 21:24, Simon  wrote:
>>> 
 ...or you are touching the session object outside the RR loop. the 
 classic gotcha is rendering a component in a thread that touches the 
 session in some way e.g. delivering an email in a thread that uses a 
 component to render it's content... been caught by that one s many 
 times!
 
 
 On 19 March 2013 17:51, Chuck Hill  wrote:
 Hi Matteo,
 
 You have one or more Zombie (aka Immortal) Sessions, as shown by stack 
 traces like this:
 "WorkerThread11" prio=10 tid=0x41848800 nid=0x1010 in 
 Object.wait() [0x7f16f7cfa000]
 java.lang.Thread.State: WAITING (on object monitor)
at java.lang.Object.wait(Nati

Re: [Excel] - Maximum column with EGSimpleTableCreator

2013-04-03 Thread Dev WO
I'm sure I won't be able to fit more than 255 columns in this one either;)

Xavier

On 3 avr. 2013, at 19:21, Alan Ward  wrote:

> 
> What's Excel?  I thought it was a car :)
> 
> http://en.wikipedia.org/wiki/Lotus_Excel
> 
> Alan
> 
> 
> On Apr 3, 2013, at 11:09 AM, Dev WO  wrote:
> 
>> I don't want to believe I'm the only one on this list to have to deal with 
>> Excel;)
>> Any pointer/recommendation regarding the Excel generation column limit?
>> 
>> Thanks,
>> 
>> Xavier
>> 
>> On 28 mars 2013, at 20:54, Dev WO  wrote:
>> 
>>> Hello list,
>>> 
>>> I found a thread from 2010 about this, mentioning the the pre-2007 Excel 
>>> limitation regarding the number of columns.
>>> I looked at the code from EGSimpleTableParser and EGSimpleTableCreator and 
>>> related Properties' file but didn't find anything in them related to this 
>>> limitation.
>>> It looks like the only way to get more than 255 columns in Excel is using 
>>> the xlsx format through org.apache.poi.ss.usermodel instead of the 
>>> org.apache.poi.hssf.usermodel.
>>> 
>>> I'm wondering how people creating Excel export on this list are handling 
>>> that, are you all using Aspose or did I overlooked something in Wonder?
>>> 
>>> Thanks,
>>> 
>>> Xavier
>>> 
>>> 
>>> ___
>>> 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:
>>> https://lists.apple.com/mailman/options/webobjects-dev/webobjects%40anazys.com
>>> 
>>> This email sent to webobje...@anazys.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:
>> https://lists.apple.com/mailman/options/webobjects-dev/award%40apple.com
>> 
>> This email sent to aw...@apple.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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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


Re: [Excel] - Maximum column with EGSimpleTableCreator

2013-04-03 Thread Alan Ward

What's Excel?  I thought it was a car :)

http://en.wikipedia.org/wiki/Lotus_Excel

Alan


On Apr 3, 2013, at 11:09 AM, Dev WO  wrote:

> I don't want to believe I'm the only one on this list to have to deal with 
> Excel;)
> Any pointer/recommendation regarding the Excel generation column limit?
> 
> Thanks,
> 
> Xavier
> 
> On 28 mars 2013, at 20:54, Dev WO  wrote:
> 
>> Hello list,
>> 
>> I found a thread from 2010 about this, mentioning the the pre-2007 Excel 
>> limitation regarding the number of columns.
>> I looked at the code from EGSimpleTableParser and EGSimpleTableCreator and 
>> related Properties' file but didn't find anything in them related to this 
>> limitation.
>> It looks like the only way to get more than 255 columns in Excel is using 
>> the xlsx format through org.apache.poi.ss.usermodel instead of the 
>> org.apache.poi.hssf.usermodel.
>> 
>> I'm wondering how people creating Excel export on this list are handling 
>> that, are you all using Aspose or did I overlooked something in Wonder?
>> 
>> Thanks,
>> 
>> Xavier
>> 
>> 
>> ___
>> 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:
>> https://lists.apple.com/mailman/options/webobjects-dev/webobjects%40anazys.com
>> 
>> This email sent to webobje...@anazys.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:
> https://lists.apple.com/mailman/options/webobjects-dev/award%40apple.com
> 
> This email sent to aw...@apple.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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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


Re: [Excel] - Maximum column with EGSimpleTableCreator

2013-04-03 Thread Dev WO
I don't want to believe I'm the only one on this list to have to deal with 
Excel;)
Any pointer/recommendation regarding the Excel generation column limit?

Thanks,

Xavier

On 28 mars 2013, at 20:54, Dev WO  wrote:

> Hello list,
> 
> I found a thread from 2010 about this, mentioning the the pre-2007 Excel 
> limitation regarding the number of columns.
> I looked at the code from EGSimpleTableParser and EGSimpleTableCreator and 
> related Properties' file but didn't find anything in them related to this 
> limitation.
> It looks like the only way to get more than 255 columns in Excel is using the 
> xlsx format through org.apache.poi.ss.usermodel instead of the 
> org.apache.poi.hssf.usermodel.
> 
> I'm wondering how people creating Excel export on this list are handling 
> that, are you all using Aspose or did I overlooked something in Wonder?
> 
> Thanks,
> 
> Xavier
> 
> 
> ___
> 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:
> https://lists.apple.com/mailman/options/webobjects-dev/webobjects%40anazys.com
> 
> This email sent to webobje...@anazys.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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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


Rép : Re: Re: Relationship issue : java.lang.NullPointerException OR MandatoryToOneRelationshipException; additionalExceptions: ()

2013-04-03 Thread Raymond NANEON
Alex,I created new EC for each Entity instance but I got to messages : relationship Exception :java.lang.RuntimeException: You crossed editing context boundaries attempting to set the 'eoTypeTiers' relationship of  (in EC er.extensions.eof.ERXEC@1be3e4c5) to  (in EC er.extensions.eof.ERXEC@4dbed348).    at er.extensions.eof.ERXGenericRecord.checkMatchingEditingContexts(ERXGenericRecord.java:1316)    at er.extensions.eof.ERXGenericRecord.addObjectToBothSidesOfRelationshipWithKey(ERXGenericRecord.java:581)    at org.utt.rfcct.serveur.modele.rfcct._EODomaine.setEoTypeTiersRelationship(_EODomaine.java:208)    at org.utt.rfcct.serveur.components.assistants.modules.ModuleAdminDomaine.validerDomaine(ModuleAdminDomaine.java:90)    at org.utt.rfcct.serveur.components.assistants.modules.ModuleAdminDomaine.unDomaineEnregistrer(ModuleAdminDomaine.java:248)Data save Error : avr. 03 16:45:52 RFcct[8485] DEBUG er.eo.ERXGenericRecord  - EditingContextWillSaveChanges: done calling will*avr. 03 16:45:52 RFcct[8485] DEBUG NSLog  -  === Begin Internal Transactionavr. 03 16:45:52 RFcct[8485] DEBUG NSLog  -  evaluateExpression: avr. 03 16:45:52 RFcct[8485] DEBUG NSLog  - 1 row(s) processedavr. 03 16:45:52 RFcct[8485] DEBUG NSLog  -  === Commit Internal Transactionavr. 03 16:45:52 RFcct[8485] DEBUG NSLog  -  === Begin Internal Transactionavr. 03 16:45:52 RFcct[8485] INFO  er.transaction.adaptor.Exceptions  - Database Exception occured: java.lang.NullPointerExceptionavr. 03 16:45:52 RFcct[8485] DEBUG NSLog  -  === Rollback Internal Transactioncom.webobjects.eoaccess.EOGeneralAdaptorException    at com.webobjects.eoaccess.EODatabaseContext._exceptionWithDatabaseContextInformationAdded(EODatabaseContext.java:4504)    at com.webobjects.eoaccess.EODatabaseContext.performChanges(EODatabaseContext.java:6216)    at com.webobjects.eocontrol.EOObjectStoreCoordinator.saveChangesInEditingContext(EOObjectStoreCoordinator.java:376)    at com.webobjects.eocontrol.EOEditingContext.saveChanges(EOEditingContext.java:3192)    at er.extensions.eof.ERXEC._saveChanges(ERXEC.java:1176)    at er.extensions.eof.ERXEC.saveChanges(ERXEC.java:1099)    at org.utt.rfcct.serveur.components.assistants.modules.ModuleAdminDomaine.unDomaineEnregistrer(ModuleAdminDomaine.java:257)It's not is to use EC.saveChanges() :(ThanksEnvoyé depuis iCloudLe 03 avr 2013 à 07:17, Raymond NANEON  a écrit :Le 03 avr 2013 à 06:58, Alexis Tual  a écrit :2013/4/3 Raymond NANEON Bonjour Alexis,Well come back to cocktail :)So when I want to set the relationship I got this in stacktrace :avr. 03 14:16:48 RFcct[8485] INFO  er.transaction.adaptor.Exceptions  - Database Exception occured: java.lang.NullPointerException java.lang.NullPointerException    at com.webobjects.jdbcadaptor.OraclePlugIn$OracleExpression.isLOBAttribute(OraclePlugIn.java:531)    at com.webobjects.jdbcadaptor.OraclePlugIn$OracleExpression.shouldUseBindVariableForAttribute(OraclePlugIn.java:547)     at com.webobjects.eoaccess.EOSQLExpression.sqlStringForValue(EOSQLExpression.java:1965)    at com.webobjects.jdbcadaptor.OraclePlugIn$OracleExpression.sqlStringForKeyValueQualifier(OraclePlugIn.java:651)     at com.webobjects.eoaccess.EOQualifierSQLGeneration$_KeyValueQualifierSupport.sqlStringForSQLExpression(EOQualifierSQLGeneration.java:463)    at er.extensions.ERXExtensions$KeyValueQualifierSQLGenerationSupport.sqlStringForSQLExpression(ERXExtensions.java:348)Looks like some attribute in your eomodel doesn't have an External Type set. This is mandatory. issue corrected, thanks a lot.  I deleted my build directory and clean everything. it seems the instruction domaine.editingContext().saveChanges(); save all EOEntreprises in the context and not domaine Entity only? Why? I want just to save domaine and not all entities like CAPACITE, MATIERE and so one.An editingContext observes all changes from the eo's it "contains", see it as a sandbox. You can't select specific changes. You could use one EC for your "domaine" changes et one EC for the other changes. So I must create new EC Entity instance ? I try it.Ray AlexThanksEnvoyé depuis iCloudLe 03 avr 2013 à 03:17, Alexis Tual  a écrit :Bonjour Raymond,What's the NPE stacktrace ?the eomodel looks fine too me as it allows null relationship. It seems you have a refresh pb in your eclipse, try to refresh/clean your projects.Cheers,Alex2013/4/3 Raymond NANEON Hi List,I have a big problem with my relationship one-to-many.When I set domaine.setEoTypeTiersRelationship(ctrl.getSelectedTypeTiers()), I got java.lang.NullPointerException and When I dion't set the relationship I got "; propertyKey: eoTypeTiers; type: MandatoryToOneRelationshipException; additionalExceptions: ()>". What I am doing wrong? I try to do domaine.editingContext().saveChanges();Here is How my relationship look like in modelThanks for your advices Envoyé depuis iCloud ___ Do not post admin requests to the list. They

Rép : Re: Re: Relationship issue : java.lang.NullPointerException OR MandatoryToOneRelationshipException; additionalExceptions: ()

2013-04-03 Thread Raymond NANEON
Le 03 avr 2013 à 06:58, Alexis Tual  a écrit :2013/4/3 Raymond NANEON Bonjour Alexis,Well come back to cocktail :)So when I want to set the relationship I got this in stacktrace :avr. 03 14:16:48 RFcct[8485] INFO  er.transaction.adaptor.Exceptions  - Database Exception occured: java.lang.NullPointerException java.lang.NullPointerException    at com.webobjects.jdbcadaptor.OraclePlugIn$OracleExpression.isLOBAttribute(OraclePlugIn.java:531)    at com.webobjects.jdbcadaptor.OraclePlugIn$OracleExpression.shouldUseBindVariableForAttribute(OraclePlugIn.java:547)     at com.webobjects.eoaccess.EOSQLExpression.sqlStringForValue(EOSQLExpression.java:1965)    at com.webobjects.jdbcadaptor.OraclePlugIn$OracleExpression.sqlStringForKeyValueQualifier(OraclePlugIn.java:651)     at com.webobjects.eoaccess.EOQualifierSQLGeneration$_KeyValueQualifierSupport.sqlStringForSQLExpression(EOQualifierSQLGeneration.java:463)    at er.extensions.ERXExtensions$KeyValueQualifierSQLGenerationSupport.sqlStringForSQLExpression(ERXExtensions.java:348)Looks like some attribute in your eomodel doesn't have an External Type set. This is mandatory. issue corrected, thanks a lot.  I deleted my build directory and clean everything. it seems the instruction domaine.editingContext().saveChanges(); save all EOEntreprises in the context and not domaine Entity only? Why? I want just to save domaine and not all entities like CAPACITE, MATIERE and so one.An editingContext observes all changes from the eo's it "contains", see it as a sandbox. You can't select specific changes. You could use one EC for your "domaine" changes et one EC for the other changes. So I must create new EC Entity instance ? I try it.Ray AlexThanksEnvoyé depuis iCloudLe 03 avr 2013 à 03:17, Alexis Tual  a écrit :Bonjour Raymond,What's the NPE stacktrace ?the eomodel looks fine too me as it allows null relationship. It seems you have a refresh pb in your eclipse, try to refresh/clean your projects.Cheers,Alex2013/4/3 Raymond NANEON Hi List,I have a big problem with my relationship one-to-many.When I set domaine.setEoTypeTiersRelationship(ctrl.getSelectedTypeTiers()), I got java.lang.NullPointerException and When I dion't set the relationship I got "; propertyKey: eoTypeTiers; type: MandatoryToOneRelationshipException; additionalExceptions: ()>". What I am doing wrong? I try to do domaine.editingContext().saveChanges();Here is How my relationship look like in modelThanks for your advices Envoyé depuis iCloud ___ 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: https://lists.apple.com/mailman/options/webobjects-dev/alexis.tual%40gmail.com  This email sent to alexis.t...@gmail.com Envoyé depuis iCloud ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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


Re: ERRest and ERXKeyFilters advice

2013-04-03 Thread Giles Palmer
Hi Pascal

Thanks for that, the ERRest app uses a non-wonder framework that doesn't have 
ERXKeys for it so for now I am having to use strings.

Regards

Giles

> 
> Le 2013-04-03 à 05:40, Giles Palmer  a écrit :
> 
>> Hi
>> 
>> Thanks for that.  
>> 
>> I was actually trying to see if there was a way to ensure that eo's on their 
>> own or as part of a relationship get returned in the same form by having 
>> standard filters for each type of eo.
>> 
>> include(String keyName, ERXKeyFilter existingFilter)  is exactly what I was 
>> looking for.
>> 
>> So for my transaction filter with its to 1 organisation I can do:
>> 
>> ERXKeyFilter filter = ERXKeyFilter.filterWithAttributes();
>> filter.include("organisation", organisationFilter());
> 
> Avoid using strings like this, if you rename your relationship, you will not 
> see that you have a string to change. Either use 
> 
>  include(ERXKey key, ERXKeyFilter existingFilter) 
> 
> or :
> 
>  include(MyEntity.ORGANISATION_KEY, organisationFilter())
> 
>> Where organisationFilter() is a filter determining how organisations should 
>> be filtered.
>> 
>> Thanks
>> 
>> Giles
>> 
>>> You shouldn't hard-code your key values. It should look more like this:
>>> 
>>> ERXKeyFilter filter = ERXKeyFilter.filterWithAttributes();
>>> filter.exclude(MyEntity.MY_ATTRIBUTE);
>>> filter.exclude(MyEntity.MY_OTHER_ATTRIBUTE);
>>> return filter;
>>> 
>>> If you want to include a to-one relationship, but none of its attributes 
>>> (just type and id):
>>> 
>>> ERXKeyFilter filter = ERXKeyFilter.filterWithAttributes();
>>> filter.include(MyEntity.MY_TO_ONE_RELATIONSHIP_OBJECT);
>>> return filter;
>>> 
>>> If you want to include a to-one relationship, and a couple attributes:
>>> 
>>> ERXKeyFilter filter = ERXKeyFilter.filterWithAttributes();
>>> filter.include(MyEntity.MY_TO_ONE_RELATIONSHIP_OBJECT).include(MyOtherEntity.ATTRIBUTE);
>>> filter.include(MyEntity.MY_TO_ONE_RELATIONSHIP_OBJECT).include(MyOtherEntity.ATTRIBUTE2);
>>> return filter;
>>> 
>>> -G
>>> 
>>> On Apr 2, 2013, at 7:55 AM, Giles Palmer  wrote:
>>> 
 Hi 
 
 I am just starting my first ERRest app and playing with ERXKeyFilters.
 
 I have an OrganisationController using a filter and I remove unwanted 
 attributes from the rest response with:
 
 ERXKeyFilter filter = ERXKeyFilter.filterWithAttributes();
 filter.exclude("dateTimeStamp","autoNotify","notifyMethod","webSitePassword","website");
 
 This works great, however if I then have a TransactionController and a 
 Transaction object that has a to-1 Organisation relationship how best do I 
 also remove the unwanted Organisation attributes from the rest response? 
 At the moment I have the below:
 
 ERXKeyFilter filter = ERXKeyFilter.filterWithAttributes();
 filter.include("organisation").includeAttributes();
 filter.exclude("organisation.dateTimeStamp","organisation.autoNotify","organisation.notifyMethod","organisation.webSitePassword","organisation.website");
 
 
 but I can't help thinking there is a better way to ensure consistency 
 about what attributes are contained in the response for various EOs when 
 they form parts of responses that contain relationship objects.  Is there 
 a better way of achieving this?
 
 Thanks
 
 Giles
 ___
 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:
 https://lists.apple.com/mailman/options/webobjects-dev/mastermind%40knuckleheads.net
 
 This email sent to masterm...@knuckleheads.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:
>> https://lists.apple.com/mailman/options/webobjects-dev/probert%40macti.ca
>> 
>> This email sent to prob...@macti.ca
> 


 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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

Re: ERRest and ERXKeyFilters advice

2013-04-03 Thread Pascal Robert

Le 2013-04-03 à 05:40, Giles Palmer  a écrit :

> Hi
> 
> Thanks for that.  
> 
> I was actually trying to see if there was a way to ensure that eo's on their 
> own or as part of a relationship get returned in the same form by having 
> standard filters for each type of eo.
> 
> include(String keyName, ERXKeyFilter existingFilter)  is exactly what I was 
> looking for.
> 
> So for my transaction filter with its to 1 organisation I can do:
> 
> ERXKeyFilter filter = ERXKeyFilter.filterWithAttributes();
> filter.include("organisation", organisationFilter());

Avoid using strings like this, if you rename your relationship, you will not 
see that you have a string to change. Either use 

  include(ERXKey key, ERXKeyFilter existingFilter) 

or :

  include(MyEntity.ORGANISATION_KEY, organisationFilter())

> Where organisationFilter() is a filter determining how organisations should 
> be filtered.
> 
> Thanks
> 
> Giles
> 
>> You shouldn't hard-code your key values. It should look more like this:
>> 
>> ERXKeyFilter filter = ERXKeyFilter.filterWithAttributes();
>> filter.exclude(MyEntity.MY_ATTRIBUTE);
>> filter.exclude(MyEntity.MY_OTHER_ATTRIBUTE);
>> return filter;
>> 
>> If you want to include a to-one relationship, but none of its attributes 
>> (just type and id):
>> 
>> ERXKeyFilter filter = ERXKeyFilter.filterWithAttributes();
>> filter.include(MyEntity.MY_TO_ONE_RELATIONSHIP_OBJECT);
>> return filter;
>> 
>> If you want to include a to-one relationship, and a couple attributes:
>> 
>> ERXKeyFilter filter = ERXKeyFilter.filterWithAttributes();
>> filter.include(MyEntity.MY_TO_ONE_RELATIONSHIP_OBJECT).include(MyOtherEntity.ATTRIBUTE);
>> filter.include(MyEntity.MY_TO_ONE_RELATIONSHIP_OBJECT).include(MyOtherEntity.ATTRIBUTE2);
>> return filter;
>> 
>> -G
>> 
>> On Apr 2, 2013, at 7:55 AM, Giles Palmer  wrote:
>> 
>>> Hi 
>>> 
>>> I am just starting my first ERRest app and playing with ERXKeyFilters.
>>> 
>>> I have an OrganisationController using a filter and I remove unwanted 
>>> attributes from the rest response with:
>>> 
>>> ERXKeyFilter filter = ERXKeyFilter.filterWithAttributes();
>>> filter.exclude("dateTimeStamp","autoNotify","notifyMethod","webSitePassword","website");
>>> 
>>> This works great, however if I then have a TransactionController and a 
>>> Transaction object that has a to-1 Organisation relationship how best do I 
>>> also remove the unwanted Organisation attributes from the rest response? At 
>>> the moment I have the below:
>>> 
>>> ERXKeyFilter filter = ERXKeyFilter.filterWithAttributes();
>>> filter.include("organisation").includeAttributes();
>>> filter.exclude("organisation.dateTimeStamp","organisation.autoNotify","organisation.notifyMethod","organisation.webSitePassword","organisation.website");
>>> 
>>> 
>>> but I can't help thinking there is a better way to ensure consistency about 
>>> what attributes are contained in the response for various EOs when they 
>>> form parts of responses that contain relationship objects.  Is there a 
>>> better way of achieving this?
>>> 
>>> Thanks
>>> 
>>> Giles
>>> ___
>>> 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:
>>> https://lists.apple.com/mailman/options/webobjects-dev/mastermind%40knuckleheads.net
>>> 
>>> This email sent to masterm...@knuckleheads.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:
> https://lists.apple.com/mailman/options/webobjects-dev/probert%40macti.ca
> 
> This email sent to prob...@macti.ca


 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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

Re: ERRest and ERXKeyFilters advice

2013-04-03 Thread Giles Palmer
Hi

Thanks for that.  

I was actually trying to see if there was a way to ensure that eo's on their 
own or as part of a relationship get returned in the same form by having 
standard filters for each type of eo.

include(String keyName, ERXKeyFilter existingFilter)  is exactly what I was 
looking for.

So for my transaction filter with its to 1 organisation I can do:

ERXKeyFilter filter = ERXKeyFilter.filterWithAttributes();
filter.include("organisation", organisationFilter());

Where organisationFilter() is a filter determining how organisations should be 
filtered.

Thanks

Giles

> You shouldn't hard-code your key values. It should look more like this:
> 
> ERXKeyFilter filter = ERXKeyFilter.filterWithAttributes();
> filter.exclude(MyEntity.MY_ATTRIBUTE);
> filter.exclude(MyEntity.MY_OTHER_ATTRIBUTE);
> return filter;
> 
> If you want to include a to-one relationship, but none of its attributes 
> (just type and id):
> 
> ERXKeyFilter filter = ERXKeyFilter.filterWithAttributes();
> filter.include(MyEntity.MY_TO_ONE_RELATIONSHIP_OBJECT);
> return filter;
> 
> If you want to include a to-one relationship, and a couple attributes:
> 
> ERXKeyFilter filter = ERXKeyFilter.filterWithAttributes();
> filter.include(MyEntity.MY_TO_ONE_RELATIONSHIP_OBJECT).include(MyOtherEntity.ATTRIBUTE);
> filter.include(MyEntity.MY_TO_ONE_RELATIONSHIP_OBJECT).include(MyOtherEntity.ATTRIBUTE2);
> return filter;
> 
> -G
> 
> On Apr 2, 2013, at 7:55 AM, Giles Palmer  wrote:
> 
>> Hi 
>> 
>> I am just starting my first ERRest app and playing with ERXKeyFilters.
>> 
>> I have an OrganisationController using a filter and I remove unwanted 
>> attributes from the rest response with:
>> 
>> ERXKeyFilter filter = ERXKeyFilter.filterWithAttributes();
>> filter.exclude("dateTimeStamp","autoNotify","notifyMethod","webSitePassword","website");
>> 
>> This works great, however if I then have a TransactionController and a 
>> Transaction object that has a to-1 Organisation relationship how best do I 
>> also remove the unwanted Organisation attributes from the rest response? At 
>> the moment I have the below:
>> 
>> ERXKeyFilter filter = ERXKeyFilter.filterWithAttributes();
>> filter.include("organisation").includeAttributes();
>> filter.exclude("organisation.dateTimeStamp","organisation.autoNotify","organisation.notifyMethod","organisation.webSitePassword","organisation.website");
>> 
>> 
>> but I can't help thinking there is a better way to ensure consistency about 
>> what attributes are contained in the response for various EOs when they form 
>> parts of responses that contain relationship objects.  Is there a better way 
>> of achieving this?
>> 
>> Thanks
>> 
>> Giles
>> ___
>> 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:
>> https://lists.apple.com/mailman/options/webobjects-dev/mastermind%40knuckleheads.net
>> 
>> This email sent to masterm...@knuckleheads.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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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


Re: ImageIO Native Java 1.6 / Small Progress

2013-04-03 Thread Johan Henselmans

On 2 apr. 2013, at 23:11, Johnny Miller  wrote:

> So... 
> 
> I kind of assumed that since Java 1.6 64 bit was installed that my system was 
> 64 bit.  But after running uname -m I see that it is i386.  Which is probably 
> why xcode can't compile the binary to x86_64.
> 

If you are running snow leopard, pressing the 6 and 4 during startup should 
make your kernel run 64 bits. It does not say everything. 

See for example: 
http://macperformanceguide.com/SnowLeopard-64bit.html


> Anybody know why Apple updated Java to 64 bit on a 32 bit machine?  And/or 
> how to get 32 bit Java 1.6 onto my i386 server?
> 
> Thanks,
> 
> Johnny
> 
> On Apr 2, 2013, at 10:39 AM, Johnny Miller  wrote:
> 
>> Hi Tim,
>> 
>> Yeah, I'm getting stumped.  I've tried setting x86_64 in the build setting 
>> for all targets and I've even tried compiling with xcodebuild ARCHS="x86_64" 
>> from the command line but no matter what if I run 
>> 
>> file libImageIOImageProcessor.jnilib
>> 
>> I get 
>> 
>> libImageIOImageProcessor.jnilib: Mach-O dynamically linked shared library 
>> i386
>> 
>> It just refuses to take the x86_64 setting.
>> 
>> Johnny
>> 
>> 
>> On Apr 2, 2013, at 10:14 AM, Tim Worman  wrote:
>> 
>>> I've had this issue before. There used to be a WO based app for changing 
>>> your Open Directory password. It was set up with a JNI library for 
>>> interfacing with Apple's directory services frameworks. It no longer ran on 
>>> 64-bit Intel.
>>> 
>>> I never tried to dive into XCode and recompile it - so not sure about that 
>>> part.
>>> 
>>> Tim
>>> 
>>> On Apr 2, 2013, at 12:55 PM, Johnny Miller  wrote:
>>> 
 OK.  So I added this argument to the application's additional arguments in 
 WOMonitor:
 
 -Djava.library.path=/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java
 
 And it is now finding the JNI.  But now I'm on to a new problem!
 
 java.lang.UnsatisfiedLinkError: 
 /Library/Java/Extensions/libImageIOImageProcessor.jnilib: no suitable 
 image found. Did find: 
 /Library/Java/Extensions/libImageIOImageProcessor.jnilib: mach-o, but 
 wrong architecture
 
 So the Google seems to think this is because the JNI is compiled for 32 
 bit but I'm using 64 bit java.  That would make sense.  I've tried 
 recompiling the JNI and I've changed the ARCHS variable in the build 
 properties to x86_64 but I'm still getting the error.  Does anyone who is 
 wise in the ways of MacOSX programming know where I've gone wrong?  I'm 
 using 10.5 and XCode 3.1
 
 Thanks,
 
 Johnny
 
 On Apr 2, 2013, at 9:25 AM, Johnny Miller  wrote:
 
> Thanks for the advice guys.  Although, I'd really like to get the native 
> going...
> 
> The error I'm seeing is a com.webobjects.foundation.NSForwardException 
> [java.lang.NoClassDefFoundError] Could not initialize class 
> er.attachment.thumbnail.ImageIOImageProcessor:java.lang.NoClassDefFoundError:
>  
> 
> I made a simple class that prints out the java class path from the 
> command line and I see that /Library/Java/Extensions is in there.  But... 
> getting WebObjects to use Java 1.6 was kind of a hack to begin with.  I 
> had to create the file /etc/launchd.conf which contains these two lines:
> 
> setenv JAVA_VERSION 1.6
> setenv JAVA_HOME 
> /System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home
> 
> Philippe Rabier pointed me to this solution a few months back -> 
> http://stackoverflow.com/questions/135688/setting-environment-variables-in-os-x
> 
> Do you think I also need to add a Java class path variable to this file?  
> If so does anyone know what the variable would be?
> 
> Thanks,
> 
> Johnny
> 
> On Apr 2, 2013, at 8:52 AM, Ramsey Gurley  wrote:
> 
>> Frankly, my most recent experience with all three sucked. I tried 
>> installing octave. fink, macports, and homebrew all failed. I finally 
>> found a compiled package installer for Mac OS X which sorta works. I 
>> can't see myself getting to excited about any of them.
>> 
>> Ramsey
>> 
>> On Apr 2, 2013, at 10:46 AM, Tim Worman wrote:
>> 
>>> That could be so I suppose. And, it may be due to the particular 
>>> packages I use, but I have never had anything break with the software 
>>> packages I install. My experiences with homebrew have been good.
>>> 
>>> Tim
>>> 
>>> On Apr 2, 2013, at 9:58 AM, Ramsey Gurley  
>>> wrote:
>>> 
 If my understanding is correct, Homebrew uses the installed system 
 libraries whenever possible. That's the reason to use, and to avoid, 
 Homebrew. Install an app with Homebrew, then update the system from 
 Lion to Mountain Lion and pray things still work.
 
 With macports, you install a full set of your dependencies in a 
 separate /opt/