Return-Path: Mailing-List: contact cocoon-users-help@xml.apache.org; run by ezmlm Delivered-To: mailing list cocoon-users@xml.apache.org Received: (qmail 49336 invoked from network); 22 May 2000 20:09:50 -0000 Received: from mail4.tor.primus.ca (216.254.136.135) by locus.apache.org with SMTP; 22 May 2000 20:09:50 -0000 Received: from [209.167.106.12] (helo=compaq) by mail4.tor.primus.ca with smtp (Exim 2.11 #1) id 12tyWK-00058h-07 for cocoon-users@xml.apache.org; Mon, 22 May 2000 16:09:49 -0400 Message-Id: <3.0.6.32.20000522161127.00946100@mail.iprimus.ca> X-Sender: derbyshire@mail.iprimus.ca X-Mailer: QUALCOMM Windows Eudora Light Version 3.0.6 (32) Date: Mon, 22 May 2000 16:11:27 -0400 To: cocoon-users@xml.apache.org From: Paul Derbyshire Subject: Re: Mystery NullPointerException with standalone usage. In-Reply-To: <20000522202927.B22048@brit.luminas.co.uk> References: <3.0.6.32.20000522145647.00893c80@mail.iprimus.ca> <3.0.6.32.20000522145647.00893c80@mail.iprimus.ca> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N At 08:29 PM 5/22/00 +0100, you wrote: >On Mon, May 22, 2000 at 02:56:47PM -0400, Paul Derbyshire wrote: >> >Attachment Converted: "c:\program files\eudora\attach\commandline.patch" >> This fixes the command line problems? I assume the usage is to apply the >> patch and then recompile Cocoon. And I assume the documentation on Cocoon >> explains how to recompile Cocoon. The remainign question is, of course, how >> do I apply the patch? > >Heh. Always a problem... > > ftp://ftp.cygnus.com/pub/gnu-win32/win32/i386/patch.zip > >Try that on for size. The GNU tools. I suspected those might do it. But I was unsure. Nonetheless, that is not enough information. I now know *with what* I should apply the patch, and I'd already suspected the answer. I still don't know *how*. Undoubtedly there is documentation with that program (and undoubtedly it is in that crufty info format for which only crufty browsers can apparently be found), explaining the general usage. But I don't know how exactly to make it install the patch on the *correct* source file, given that the directory of the source file on my machine (C:\Cocoon-1.7.4\src\something) is undoubtedly not that where the patch was created (could've been E:\Cocoon\src\something, or \usr\local\cocoon-1.7.4\src\something, or heaven only knows what). Indeed, I took the liberty of inspecting the patch file in a programmer's editor -- it is human-readable and I even can figure out what it's doing (changing an if condition in the Engine class, so it correctly handles the problem, which was obviously that "context" was neither null nor a ServletContext, a corner case it wasn't handling before), and it seems to contain a relative path to the source file instead of an absolute one. I guess I need to tell patch where to base this path -- C:\Cocoon-1.7.4\ by the look of it... -- .*. "Clouds are not spheres, mountains are not cones, coastlines are not -() < circles, and bark is not smooth, nor does lightning travel in a `*' straight line." ------------------------------------------------- -- B. Mandelbrot |http://surf.to/pgd.net derbyshire@globalserve.net _____________________ ____|________ Paul Derbyshire Programmer & Humanist|ICQ: 10423848|