Received: (qmail 89895 invoked by uid 501); 1 Jun 2000 20:27:10 -0000 Message-Id: <20000601202709.89893.qmail@locus.apache.org> Date: 1 Jun 2000 20:27:09 -0000 From: Dietmar WEBER Reply-To: dw@lascor.de To: submit@bugz.apache.org Subject: standalone usage of Cocoon1.7.3: NullPointerException in engine.java X-Send-Pr-Version: 3.110 >Number: 6138 >Category: xml-cocoon >Synopsis: standalone usage of Cocoon1.7.3: NullPointerException in engine.java >Confidential: no >Severity: critical >Priority: medium >Responsible: xml >State: open >Class: sw-bug >Submitter-Id: apache >Arrival-Date: Thu Jun 01 13:30:00 PDT 2000 >Closed-Date: >Last-Modified: >Originator: dw@lascor.de >Release: >Organization: apache >Environment: WinNT4.0 >Description: I switched the parameters usage (key/element of hashtable) in getInstance. Then cocoon was doing fine as standalone. >How-To-Repeat: Try to run cocoon 173 as standalone >Fix: modify engine.java: (dwe!!) public static Engine getInstance(Configurations confs, Object context) throws Exception { Engine engine = null; if(confs != null) // dwe!! engine = (Engine) engineInstances.get(context); engine = (Engine) engineInstances.get(confs); if (engine == null) { synchronized (Engine.class) { engine = new Engine(confs, context); // dwe!! engineInstances.put(context, engine); engineInstances.put(confs, engine); } } return engine; } >Release-Note: >Audit-Trail: >Unformatted: [In order for any reply to be added to the PR database, you need] [to include in the Cc line and make sure the] [subject line starts with the report component and number, with ] [or without any 'Re:' prefixes (such as "general/1098:" or ] ["Re: general/1098:"). If the subject doesn't match this ] [pattern, your message will be misfiled and ignored. The ] ["apbugs" address is not added to the Cc line of messages from ] [the database automatically because of the potential for mail ] [loops. If you do not include this Cc, your reply may be ig- ] [nored unless you are responding to an explicit request from a ] [developer. Reply only with text; DO NOT SEND ATTACHMENTS! ]