this was a bug in the CocoonBean. The logger was used before it was initialized. I have fixed it in the CVS.
This happened only if you should get an error before initializing the logger. In your case (line 178) you should have seen this error: "Please, specify at least one starting URI."
If you use current CVS, your won't get the NPE.
Thanks for reporting.
Joerg
Steven Kurzman wrote:
Hello, I'm having problems using the command line interface and hope somebody can help me out. I don't know Java and am very new to Cocoon, using 2.1m3 and Tomcat 4.1.24 on Mac OS 10.2.
I read the instructions at wiki.cocoondev.org/Wiki.jsp?page=CommandLine and, from my /Cocoon/build/webapp directory containing both a cocoon.xconf and sitemap.xmap, did
./cocoon.sh cli -x cocoon.xconf
It loads all the .jar files from WEB-INF/lib but then gives me
-------------------- Executing ----------------- Main Class: org.apache.cocoon.Main ERROR: Unknown element: sitemap ------------------------------------------------------------------------ cocoon 2.1m3 Copyright (c) 1999-2003 Apache Software Foundation. All rights reserved. ------------------------------------------------------------------------
Exception in thread "main" java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at Loader.invokeMain(Unknown Source)
at Loader.run(Unknown Source)
at Loader.main(Unknown Source)
Caused by: java.lang.NullPointerException
at org.apache.cocoon.bean.CocoonBean.initialize(CocoonBean.java:178)
at org.apache.cocoon.Main.main(Main.java:374)
... 7 more
I've tried variations on the ./cocoon.sh command, editing the cli.xconf file, etc., but always get this exception.
What does this mean? What am I doing wrong? How can I do it correctly? Thank you very much for any help!
Steve Kurzman
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
