You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-user@james.apache.org by Miroslav Nachev <mi...@space-comm.com> on 2006/11/02 18:35:44 UTC
NullPointerException when try to start James from RUN or Avalon Phoenix
Launcher Main class
Hi,
When I try to start James from RUN script or using a simple class with
org.apache.avalon.phoenix.launcher.Main.main(new String[] {"start"}) I
have the following error:
There was an uncaught exception:
---------------------------------------------------------
--- Message ---
null
--- Stack Trace ---
java.lang.NullPointerException
at
org.apache.avalon.phoenix.frontends.CLISetup.parseCommandLineOptions(CLISetup.java:202)
at org.apache.avalon.phoenix.frontends.CLIMain.main(CLIMain.java:122)
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:585)
at org.apache.avalon.phoenix.launcher.Main.startup(Main.java:128)
at org.apache.avalon.phoenix.launcher.Main.main(Main.java:83)
at com.cosmos.server.james.StartJames.main(StartJames.java:28)
---------------------------------------------------------
The log file may contain further details of error.
Please check the configuration files and restart Phoenix.
If the problem persists, contact the Avalon project. See
http://jakarta.apache.org/avalon for more information.
My idea to run from a simple class is to be able to debug the code from
IDEs like NetBeans and/or JBuilder.
Any ideas where is the problem?
Regards,
Miro.
---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org
Re: NullPointerException when try to start James from RUN or Avalon Phoenix Launcher Main class
Posted by Bernd Fondermann <be...@googlemail.com>.
On 11/2/06, Miroslav Nachev <mi...@space-comm.com> wrote:
> Hi,
>
>
> My idea to run from a simple class is to be able to debug the code from
> IDEs like NetBeans and/or JBuilder.
I recommend using remote debugging, having two separate JVM: one for
James, one for IDE.
This is done by enabling debugging in the startup scripts by
commenting in one line in phoenix.sh for Unix and run.bat for Windows
- just look for the related comments.
You then have to prepare your IDE to connect to the debuggee.
Please refer to the Java reference and the documentation of your IDE
how to establish remote debugging.
For how to properly prepare James for remote debugging, please come
back to the list if you encounter problems.
Bernd
---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org