[go-nuts] Curiosity in encoding/json mem allocations

2016-09-06 Thread Tonny Staunsbrink
Hi I hope this is the right forum for posting this kind of question: Debugging application performance, I came across JSON stream parsing causing a large number of mem allocations. Here's a snippet of code, which exemplifies my findings: var ( noSpace= `{"Key":"StringValue"}` oneSpace =

[protobuf] Reading to the end of a protobuf.Buffer

2016-07-28 Thread Tonny Staunsbrink
Is there a graceful way to detect having reached the end of a protobuf.Buffer (Golang)? I always end up with unexpected EOF -- You received this message because you are subscribed to the Google Groups "Protocol Buffers" group. To unsubscribe from this group and stop receiving emails from it, s

Re: No snapshot for gid _EOIntegralKeyGlobalID

2009-05-07 Thread Tonny Staunsbrink
Slightly of topic, but I have a framework which cannot provoke this error. If i create a fault with a primary key which does not exist, I just have an object with null for every value. What can I have done to disable this exception? Cheers Tonny On Tue, May 5, 2009 at 10:52 PM, David Avendasora w

Re: Multiple instances of WOA's deployed as WAR's

2009-04-20 Thread Tonny Staunsbrink
k there is some functionality > in >Project Wonder to rename it. >- We found it easier to pass the session id in the URL in most cases. > > Again, this is a great list! Thanks! > > Dave > > >- > > > Hope that helps people. Overall I like deploying WO

Multiple instances of WOA's deployed as WAR's

2009-04-17 Thread Tonny Staunsbrink
Hello A recent posting said that "war file deployment just works" (it's not an exact quote, but that how i remember it). I've considered deploying WOA's in servlet containers, but there a few issues i just can't see how they will work if I run deploy an app to a servlet container cluster. 1) The

Re: WebObjects with NetBeans 6.5

2009-04-04 Thread Tonny Staunsbrink
s replaced and other paths may depend on your build/project layout). This target can only run inside the NetBeans IDE. /> Cheers Tonny On Sat, Mar 28, 2009 at 9:46 PM, Tonny Staunsbrink wrote: > Hi > This is not an introductio

Re: WebObjects with NetBeans 6.5

2009-03-28 Thread Tonny Staunsbrink
Hi This is not an introduction, just a statement that it can be done. I've used Netbeans to run woa's, so i use the profiler, I don't have the setup anymore, but it could be done. Cheers /Tonny On Fri, Mar 13, 2009 at 10:31 AM, Q wrote: > > On 13/03/2009, at 2:04 PM, mike deavila wrote: > > He

Re: Hibernate

2009-02-24 Thread Tonny Staunsbrink
Hi I'm using Hibernate for setting up a in memory database for test cases and then runs a lot of test cases involving EOF, seem to work fine in parallel, so hibernate can problably run in a app server with no trouble. But why do all that integration work (integrating Hibernate), when you allready

Re: Error with Cross-Model/Database Relationship

2008-12-08 Thread Tonny Staunsbrink
> > I had a similar problem and was never able to fix it. The solution was to > make the foreign keys visible and create the faults in my own code. > I have a feeling that it is a bug in handling cross-database relationships > where the destination object is part of an inheritance structure. I see

Re: JNDI Datasource vs JDBC (Tomcat deployment)

2008-11-11 Thread Tonny Staunsbrink
Can't quite see how that will work with webobjects (in it's out of the box state), in WO you a multiple threads (when concurrent request handling is enabled) which uses a a synchronized data store. That combined WO's request handler locking strategies makes WO single threaded in practice. The servl

Re: Invalidating objects asynchronously

2008-09-02 Thread Tonny Staunsbrink
Interesting problem, my solution to the problem is: "don't". Keeping multiple data stores in sync is a pain. It is in WO as is in in any other distributed environment - for example database clusters. The challenges are so numerous that i consider sharding a better solution for load balancing. In t

[solved]Re: No resources when setting a framework project dependency

2008-06-26 Thread Tonny Staunsbrink
the app from. Updating the include files solved the problem Cheers Tonny On Thu, Jun 19, 2008 at 8:40 PM, Tonny Staunsbrink <[EMAIL PROTECTED]> wrote: > Hello > I have several project in Eclipse, a couple of framework and a couple of > apps. One of the framework contains

No resources when setting a framework project dependency

2008-06-19 Thread Tonny Staunsbrink
Hello I have several project in Eclipse, a couple of framework and a couple of apps. One of the framework contains a collection of WOComponents. I would really, really like to be able to edit these components and se the changes without reinstalling (and using Eclipses debug class reloading would al

Re: WOLongResponesePage Problem

2008-05-27 Thread Tonny Staunsbrink
the background job, and that bookkeeping adds up, if the user can perform several backend jobs. Cheers Tonny On Mon, May 26, 2008 at 5:32 AM, Guido Neitzer <[EMAIL PROTECTED]> wrote: > On 24.05.2008, at 15:09, Tonny Staunsbrink wrote: > > Also bear in mind that accessing the session&

Re: WOLongResponesePage Problem

2008-05-24 Thread Tonny Staunsbrink
On Thu, May 22, 2008 at 3:16 AM, Lachlan Deck <[EMAIL PROTECTED]> wrote: > On 21/05/2008, at 8:11 PM, Patrick Middleton wrote: > >> >> On 21 May 2008, at 10:59, santoshg wrote: >> >> I am using WOLongResponsePage Component in my project. >>> But in the run time, it is showing the

Re: [slightly OT] data modeling question

2008-05-07 Thread Tonny Staunsbrink
I too have been in trouble when working with inheritance in eof. I think the only reason for using inheritance in the eo model is in case you want to make sql based (datebase based) queries at the base of the inheritance hierarchy. In all other circumstances i would try to avoid inheritance. Note t

Re: stateless component

2008-04-07 Thread Tonny Staunsbrink
TECTED] > > > > On Apr 3, 2008, at 10:39, Chuck Hill wrote: > > > > On Apr 3, 2008, at 10:28 AM, Tonny Staunsbrink wrote: > > > > > The top level component is allways created, subcomponents are reused, > > > not sure why > > > > > >

Re: stateless component

2008-04-03 Thread Tonny Staunsbrink
The top level component is allways created, subcomponents are reused, not sure why Cheers Tonny On Wed, Apr 2, 2008 at 11:37 PM, Archibald Singleton <[EMAIL PROTECTED]> wrote: > Hello, > > From the WO API docs: "For extra efficiency, you can create stateless > components: components that can

Re: Locking Session.defaultEditingContext() Question

2008-04-01 Thread Tonny Staunsbrink
If I should take a guess, I would say it's a concurrency issue. Are you running a multithreaded app, do you have custom RequestHandler or are you running any background jobs? /T On Tue, Apr 1, 2008 at 5:17 PM, Dov Rosenberg <[EMAIL PROTECTED]> wrote: > I have been tracking down a strange error i

Re: Multiple EOModels

2008-03-27 Thread Tonny Staunsbrink
> > > I have two apps that have two distinct EOModels. I now need to link > these two apps so that they have access to each other's data, so I was > going to add both models to each app and recompile. > > However, it transpires that both models have a couple of entity names > in common. I can und

Re: EOEditingContext for JUnit

2008-03-25 Thread Tonny Staunsbrink
Cool, I didn't now that solution. We're using an in memory db (hsqldb), but that requires loading the schemas - not always easy through wo - but on the other hand it also catches sql issues. Cheers Tonny On Mon, Mar 24, 2008 at 8:16 PM, Mike Schrag <[EMAIL PROTECTED]> wrote: > You can try using t

Re: Anyone have any other ideas on my deployment woes?

2007-12-26 Thread Tonny Staunsbrink
Hello Andrew I had similar problems once, but got around it by just trusting in my own logging (and ignoring any wo logging - which is usually only needed at development time, in production wo logging then goes to /dev/null ), so i didn't spend the time debugging the problem, but i suspected the p

Re: JSF

2007-12-24 Thread Tonny Staunsbrink
On Dec 20, 2007 8:49 PM, Andrus Adamchik <[EMAIL PROTECTED]> wrote: > Yeah... JSF is a mess. So is the underlying JSP. Tapestry can't keep > compatibility with itself for more than a year in a row, and hence > can't be used for enterprise applications that have a much longer > maintenance lifespan

Re: Direct Actions in 5.4

2007-12-16 Thread Tonny Staunsbrink
I had a similar problem once. Back then the DirectAction class was "overshadowed" by a class with the same name, but in a different package. Forexample: the direct action class User and the enterprise object User - the enterprise class then blocked the direct action, problably because it was found

Re: Generating HTML without WORequest

2007-12-14 Thread Tonny Staunsbrink
How about generating a string from the wocontext (when you have in the original request). and then storing that for later sending? On Dec 14, 2007 7:09 PM, Kieran Kelleher <[EMAIL PROTECTED]> wrote: > Solution: > > Project Wonder -> ERJavaMail framework will get you where you want to > go. That is

Re: Running Wonder Applications with WO 5.4 pb

2007-10-28 Thread Tonny Staunsbrink
Looks like the build is against the old 5.3. I think the createRequest method signature changed in 5.4. On 10/28/07, Jean Pierre Malrieu <[EMAIL PROTECTED]> wrote: > > Hi, > > I am trying to run a test application with WO 5.4 on Leopard. > Running standard WO application works fine. But running a

[TurboGears] Re: Cannot add object to database

2007-09-29 Thread Tonny Staunsbrink
Hi Rob I'm getting the same error. Could you please tell the solution. In advance, Thanks. Cheers Tonny On 9/27/07, Rob <[EMAIL PROTECTED]> wrote: > > > I'll remember to do this in the future. Also I figured out the > problem. > > On Sep 27, 6:33 am, "Florent Aide" <[EMAIL PROTECTED]> wrote: >

[TurboGears] State of identity.current.user

2007-09-23 Thread Tonny Staunsbrink
Hello everybody, I'm new to this list (and new to Turbogears and almost new to Python). I'm Using Turbogears to write small Intranet/Facebook thingy. For this I planned on using the identity framework i TG. I have however run in to some oddities. On a page in the app the user can change some prof

Re: running objective - c script as fastcgi ?

2007-09-10 Thread Tonny Staunsbrink
A bit of topic (WebObjects) ;-) - perhaps... Have you looked at http://www.fastcgi.com/devkit/doc/overview.html. It's at C API which should be usable from Objective-C. Cheers Tonny On 9/10/07, Francisc Simon <[EMAIL PROTECTED]> wrote: > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Hi @al

Re: log4j initialization problem

2007-08-16 Thread Tonny Staunsbrink
Hi All Another way to "bundle" your log4j.properties is to include it in the framework /application jar and then use the log4j.conifguration system property if you need to change the defaults in teh deployment environment. That way there is no log4j configuration code in the application/framework j

Re: sql for qualifier that spans two databases

2007-07-18 Thread Tonny Staunsbrink
On 7/18/07, Travis Britt <[EMAIL PROTECTED]> wrote: Hoping someone can quickly tell me if this should be possible without writing my own SQL. Two databases. Two EOModels, one for each database. A to-one relationship from an entity in one model to an entity in the other. That is no problem u

EOModels through annotations and reflection

2006-12-18 Thread Tonny Staunsbrink
Hi After the latest disscussion about tools (new and deprecated) and some debuging of EOModel loading, I came to wonder if there are any exesiting solutions which uses annotations and reflection to build the models? From my point of view, it would be kinda cool to keep it all in Java c

Re: References accross models

2006-12-18 Thread Tonny Staunsbrink
I tried inluding Wonder (the 3.0 download). That didn't solve the issue either. I don't think issue is the sequence of the entities. But the fact that that some entities now live in af Different EODatabase. Before the the entity was only living in separate model, now they also lives in diff

Re: References accross models

2006-12-15 Thread Tonny Staunsbrink
eally like to get hands on the core EOF code to fix these damned bugs directly. :-( On Dec 14, 2006, at 11:12 AM, Francis Labrie wrote: Tonny Staunsbrink wrote: [...] Any input to this will be much appreciated. BTW: it is single table inheritance and all the entities of the inheritance

References accross models

2006-12-14 Thread Tonny Staunsbrink
Hi All I'm currently working on using different EOModels to access diffrent databases, for scalability reasons. Model A only has to-one relations to Model B, and Model B is selfcontained, it doesn't reference any entities in model A (Well there is one exception, but that will go away).

Max to post parameters?

2006-11-30 Thread Tonny Staunsbrink
Does anybody know if there is a maximum to the length of string that can be posted to webobjects? I have an app which post a little more than 3.6k bytes to a woa. Webobject seems to loose the last 100 bytes or so. Posting to a php scripts works fine, all the bytes are there. It like webobje

Re: Generics and WO

2006-08-22 Thread Tonny Staunsbrink
On Aug 22, 2006, at 8:14 AM, Ian Joyner wrote: On 22/08/2006, at 2:23 PM, Lachlan Deck wrote: Hi there, On 15/08/2006, at 2:06 PM, Ian Joyner wrote: Reading up on this a bit more, I note that generics are implemented, not by changing the JVM, but by 'type erasure'. The upside of this is

Re: Class Generation in Xcode 2.2.1 using Modeler plugin

2006-05-10 Thread Tonny Staunsbrink
I say use EOModeller, the integrated editor is buggy (need to be restarted to see changes, doent't validate model consistency and sometimes corrupts your model - so pretty much next to useless). For java class generation EOGenerator (http://www.rubicode.com/Software/EOGenerator/ - it gets updated a

Re: [NOOB-QUESTION] where should a jar file ?

2006-05-10 Thread Tonny Staunsbrink
On May 6, 2006, at 9:57 AM, Philippe Lafoucrière wrote: Not in the template, but the WO loader has support for one. Put the jars in AppName.woa/Contents/Extensions Where they will be picked up automatically by the WO bootstrap class. Hello, sorry to come again with that, but can I put

Re: Frameworks and versioning

2006-01-05 Thread Tonny Staunsbrink
Hi All I'm don't think there is a "right" answer on this issue. Embedding your frameworks solves the problem of breaking API or introducing bugs. On the other hand it makes it cumbersome to deploy bugfixes to frameworks (when multiple apps are using the frameworks). It's the same discussi

Re: Java 1.5 & WO?

2005-12-13 Thread Tonny Staunsbrink
Yes, I've run an app wih 1.5 (using Generics and the new for functionality) . No problems encountered - this is an app running for short periods of time though. /Tonny On Dec 12, 2005, at 12:38 PM, Ken Anderson wrote: Has anyone tried Java 1.5 and WO? ___

Re: EOGenerator

2005-11-17 Thread Tonny Staunsbrink
On Nov 15, 2005, at 5:15 PM, David LeBer wrote: On 15-Nov-05, at 10:47 AM, Tonny Staunsbrink wrote: Anybody else who had trouble running EOGenerator (version 1.6) with WO 5.3.1? (Trouble as in: It doesn't produce any output) As a data point. I'm playing with WO 5.3.1 rig

Re: EOGenerator

2005-11-17 Thread Tonny Staunsbrink
have your default path anymore. On Nov 15, 2005, at 10:47 AM, Tonny Staunsbrink wrote: Anybody else who had trouble running EOGenerator (version 1.6) with WO 5.3.1? (Trouble as in: It doesn't produce any output) Regards Tonny ___ Do not

Re: Xcode 2.2 Error reporting

2005-11-17 Thread Tonny Staunsbrink
I don't think so, this seems to be the new way Xcode handles Java build errors. On Nov 17, 2005, at 11:22 AM, David Griffith wrote: I've installed Xcode 2.2 and now I just get: Command /Developer/Private/jam failed with exit code 1 instead of the more useful compiler messages I used to get

EOGenerator

2005-11-15 Thread Tonny Staunsbrink
Anybody else who had trouble running EOGenerator (version 1.6) with WO 5.3.1? (Trouble as in: It doesn't produce any output) Regards Tonny ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects

Re: 5.3.1 in XCode 2.2

2005-11-11 Thread Tonny Staunsbrink
The embedded editor eems pretty useless to me. It removed my prototypes, prevented me from adding relationsship (unless is restarted xcode after adding Entities), it doen's support stored procedures and on one occassion it removed my Enitynames from the graphicals elements (they were then c