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 maomaode <ma...@gmail.com> on 2007/06/30 13:22:03 UTC

James Server exists abnormally and can not startup

Hi,

I got a really abnormal case, the James server is OK this morning, but 
this afternoon, it seems existed abnormally, and i found it can not be 
started anymore.

The output looks like this:

=======================================================
Using PHOENIX_HOME:   /data2/softwares/james-2.3.1
Using PHOENIX_TMPDIR: /data2/softwares/james-2.3.1/temp
Using JAVA_HOME:      /data1/java/jdk1.5.0_10
Running Phoenix:

Phoenix 4.2
=======================================================


Previously i can see it list all the started port, but seems now it hang 
there forever.

I used the following command to launch the james server

 > nohup ./run.sh &

And the platform is Suse linux, the i used the Java5

Can anyone help me out?


Thanks in advance
mao

---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org


Re: James Server exists abnormally and can not startup

Posted by Stefano Bagnara <ap...@bago.org>.
maomaode ha scritto:
> This is MUST a spammer, anyway to stop it using my James Server, can you
> tell me how to configure.
> I've configured my server with the SMTPs and POPs, but seems that will
> not prevent spammers.
> 
> Really appreciate your help


The "only" solution is to add a Bayesian Filter and send bounces only if
it is not trapped by the Bayesian.

In trunk we added some fastfail capability so to be able to reject
connections ASAP when spammers are detected.

Stefano


---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org


Re: James Server exists abnormally and can not startup

Posted by maomaode <ma...@gmail.com>.
Stefano Bagnara wrote:
> maomaode ha scritto:
>   
>> Hi Stefano
>>
>> Really Thanks your help, and your information.
>>
>> I changed the environment, since it's really changed from the version 2.3.0
>>
>> But the server still can not start up normally.
>>
>> And then i search the nohup.log i found this
>>
>> Exception: Exception caught while storing a stream :
>> java.io.FileNotFoundException:
>> /data2/bokeland/softwares/james-2.3.1/apps/james/var/mail/outgoing/4D61696C313138333133313337363532382D3835333738352D746F2D7961686F6F2E636F6D2E686F746D61696C2E636F6D2E6D736E2E636F6D2E73696E616D61696C2E636F6D2E7961686F6F2E636F6D2E74772E75726C2E636F6D2E74772E6D61696C2E61706F6C2E636F6D2E74772E736F2D6E65742E6E65742E74772E6D7331312E75726C2E636F6D2E7477.Repository.FileStreamStore
>> (File name too long)
>>     
>
> This is a different problem than the previous one, but it is anyway
> related to the files you have in the repository.
>
> The file above, decoded, give this text:
> "Mail1183131376528-853785-to-yahoo.com.hotmail.com.msn.com.sinamail.com.yahoo.com.tw.url.com.tw.mail.apol.com.tw.so-net.net.tw.ms11.url.com.tw"
>
> This is the result of mail Mail1183131376528 splitted and then moved to
> the outgoing spool by remote delivery. That mail has a recipient with
> the following domain:
> yahoo.com.hotmail.com.msn.com.sinamail.com.yahoo.com.tw.url.com.tw.mail.apol.com.tw.so-net.net.tw.ms11.url.com.tw
>
> It seems weird that in your outgoing you have such a domain.
>   


This is MUST a spammer, anyway to stop it using my James Server, can you 
tell me how to configure.
I've configured my server with the SMTPs and POPs, but seems that will 
not prevent spammers.

Really appreciate your help

James

>   
>> Seems that James Server trying to write some file, but the file name is
>> tooo long
>>
>> And then i go into the apps/james/var/mail directory when i > ls -l i
>> found this:
>>
>> drwxr-xr-x 2 root root        48 Jul  3 09:51 address-error
>> drwxr-xr-x 2 root root        48 Jul  3 09:36 error
>> drwxr-xr-x 7 root root       168 Jun 18 16:21 inboxes
>> drwxr-xr-x 2 root root 123294544 Jun 30 16:56 outgoing
>> drwxr-xr-x 2 root root        48 Jun 17 19:56 relay-denied
>> drwxr-xr-x 2 root root 140114288 Jun 30 17:03 spam
>> drwxr-xr-x 2 root root      1008 Jun 30 17:03 spool
>>
>>
>> You may noticed that the outgoing and spam directory size is really wired!?
>>
>> I go into the outgoing directory , and i can not list the directory with
>>     
>>> ls -l and also i can not > rm *
>>>       
>
> Run a search for "find xargs rm" on your favorite search engine for a
> solution to this.
>
>   
>> So i decided mv the direcotry :
>>
>> drwxr-xr-x 2 root root        48 Jul  3 09:51 address-error
>> drwxr-xr-x 2 root root        48 Jul  3 09:36 error
>> drwxr-xr-x 7 root root       168 Jun 18 16:21 inboxes
>> drwxr-xr-x 2 root root        48 Jul  3 09:48 outgoing
>> drwxr-xr-x 2 root root 123294544 Jun 30 16:56 outgoing_bak
>> drwxr-xr-x 2 root root        48 Jun 17 19:56 relay-denied
>> drwxr-xr-x 2 root root 140114288 Jun 30 17:03 spam_bak
>> drwxr-xr-x 2 root root      1008 Jun 30 17:03 spool
>>
>>
>> Now i can start the James Server
>>
>> But I still don't know why the directory size is so big, is it been
>> attacked? hacked? or it's the config errors or it's a program errors?
>> As you can see, mv directory is just a work around solution, i guess the
>> problem will happen later
>>     
>
> Look in the logs, maybe increasing the log level (environment.xml) and
> try to understand the flow of some message. If there is weird activity
> you will for sure notice this.
>
> Stefano
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
> For additional commands, e-mail: server-user-help@james.apache.org
>
>
>   

---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org


Re: James Server exists abnormally and can not startup

Posted by Stefano Bagnara <ap...@bago.org>.
maomaode ha scritto:
> Hi Stefano
> 
> Really Thanks your help, and your information.
> 
> I changed the environment, since it's really changed from the version 2.3.0
> 
> But the server still can not start up normally.
> 
> And then i search the nohup.log i found this
> 
> Exception: Exception caught while storing a stream :
> java.io.FileNotFoundException:
> /data2/bokeland/softwares/james-2.3.1/apps/james/var/mail/outgoing/4D61696C313138333133313337363532382D3835333738352D746F2D7961686F6F2E636F6D2E686F746D61696C2E636F6D2E6D736E2E636F6D2E73696E616D61696C2E636F6D2E7961686F6F2E636F6D2E74772E75726C2E636F6D2E74772E6D61696C2E61706F6C2E636F6D2E74772E736F2D6E65742E6E65742E74772E6D7331312E75726C2E636F6D2E7477.Repository.FileStreamStore
> (File name too long)

This is a different problem than the previous one, but it is anyway
related to the files you have in the repository.

The file above, decoded, give this text:
"Mail1183131376528-853785-to-yahoo.com.hotmail.com.msn.com.sinamail.com.yahoo.com.tw.url.com.tw.mail.apol.com.tw.so-net.net.tw.ms11.url.com.tw"

This is the result of mail Mail1183131376528 splitted and then moved to
the outgoing spool by remote delivery. That mail has a recipient with
the following domain:
yahoo.com.hotmail.com.msn.com.sinamail.com.yahoo.com.tw.url.com.tw.mail.apol.com.tw.so-net.net.tw.ms11.url.com.tw

It seems weird that in your outgoing you have such a domain.

> Seems that James Server trying to write some file, but the file name is
> tooo long
> 
> And then i go into the apps/james/var/mail directory when i > ls -l i
> found this:
> 
> drwxr-xr-x 2 root root        48 Jul  3 09:51 address-error
> drwxr-xr-x 2 root root        48 Jul  3 09:36 error
> drwxr-xr-x 7 root root       168 Jun 18 16:21 inboxes
> drwxr-xr-x 2 root root 123294544 Jun 30 16:56 outgoing
> drwxr-xr-x 2 root root        48 Jun 17 19:56 relay-denied
> drwxr-xr-x 2 root root 140114288 Jun 30 17:03 spam
> drwxr-xr-x 2 root root      1008 Jun 30 17:03 spool
> 
> 
> You may noticed that the outgoing and spam directory size is really wired!?
> 
> I go into the outgoing directory , and i can not list the directory with
>> ls -l and also i can not > rm *

Run a search for "find xargs rm" on your favorite search engine for a
solution to this.

> So i decided mv the direcotry :
> 
> drwxr-xr-x 2 root root        48 Jul  3 09:51 address-error
> drwxr-xr-x 2 root root        48 Jul  3 09:36 error
> drwxr-xr-x 7 root root       168 Jun 18 16:21 inboxes
> drwxr-xr-x 2 root root        48 Jul  3 09:48 outgoing
> drwxr-xr-x 2 root root 123294544 Jun 30 16:56 outgoing_bak
> drwxr-xr-x 2 root root        48 Jun 17 19:56 relay-denied
> drwxr-xr-x 2 root root 140114288 Jun 30 17:03 spam_bak
> drwxr-xr-x 2 root root      1008 Jun 30 17:03 spool
> 
> 
> Now i can start the James Server
> 
> But I still don't know why the directory size is so big, is it been
> attacked? hacked? or it's the config errors or it's a program errors?
> As you can see, mv directory is just a work around solution, i guess the
> problem will happen later

Look in the logs, maybe increasing the log level (environment.xml) and
try to understand the flow of some message. If there is weird activity
you will for sure notice this.

Stefano


---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org


Re: Upgrading to 2.3.1

Posted by Stefano Bagnara <ap...@bago.org>.
Sundeep Gelli ha scritto:
> Hi,
> 
>  I am currently using james 2.3.0 and now im planning to upgrade to
> 2.3.1 . Can i do it without unistalling the present one? Are there any
> documents available, listing the changes to be made?
> 
> Thanks & Rgds
> Sundeep

The only things changed in 2.3.1 are:
- The environment.xml file has a fix for the slow startup.
- The phoenix-engine.jar has been changed (note it is in 2 folders)
- The james.sar file has changed

Another solution is to install 2.3.1 in a different folder, run it once
to let it decompress the sar, and then copy there your config.xml and
your data (if you use file repositories).

Stefano


---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org


Upgrading to 2.3.1

Posted by Sundeep Gelli <su...@picmond.com>.
Hi,

  I am currently using james 2.3.0 and now im planning to upgrade to 2.3.1 . 
Can i do it without unistalling the present one? Are there any documents 
available, listing the changes to be made?

Thanks & Rgds
Sundeep 


---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org


Re: James Server exists abnormally and can not startup

Posted by maomaode <ma...@gmail.com>.
Hi Stefano

Really Thanks your help, and your information.

I changed the environment, since it's really changed from the version 2.3.0

But the server still can not start up normally.

And then i search the nohup.log i found this

Exception: Exception caught while storing a stream : 
java.io.FileNotFoundException: 
/data2/bokeland/softwares/james-2.3.1/apps/james/var/mail/outgoing/4D61696C313138333133313337363532382D3835333738352D746F2D7961686F6F2E636F6D2E686F746D61696C2E636F6D2E6D736E2E636F6D2E73696E616D61696C2E636F6D2E7961686F6F2E636F6D2E74772E75726C2E636F6D2E74772E6D61696C2E61706F6C2E636F6D2E74772E736F2D6E65742E6E65742E74772E6D7331312E75726C2E636F6D2E7477.Repository.FileStreamStore 
(File name too long)


Seems that James Server trying to write some file, but the file name is 
tooo long

And then i go into the apps/james/var/mail directory when i > ls -l i 
found this:

drwxr-xr-x 2 root root        48 Jul  3 09:51 address-error
drwxr-xr-x 2 root root        48 Jul  3 09:36 error
drwxr-xr-x 7 root root       168 Jun 18 16:21 inboxes
drwxr-xr-x 2 root root 123294544 Jun 30 16:56 outgoing
drwxr-xr-x 2 root root        48 Jun 17 19:56 relay-denied
drwxr-xr-x 2 root root 140114288 Jun 30 17:03 spam
drwxr-xr-x 2 root root      1008 Jun 30 17:03 spool


You may noticed that the outgoing and spam directory size is really wired!?

I go into the outgoing directory , and i can not list the directory with 
 > ls -l and also i can not > rm *

So i decided mv the direcotry :

drwxr-xr-x 2 root root        48 Jul  3 09:51 address-error
drwxr-xr-x 2 root root        48 Jul  3 09:36 error
drwxr-xr-x 7 root root       168 Jun 18 16:21 inboxes
drwxr-xr-x 2 root root        48 Jul  3 09:48 outgoing
drwxr-xr-x 2 root root 123294544 Jun 30 16:56 outgoing_bak
drwxr-xr-x 2 root root        48 Jun 17 19:56 relay-denied
drwxr-xr-x 2 root root 140114288 Jun 30 17:03 spam_bak
drwxr-xr-x 2 root root      1008 Jun 30 17:03 spool


Now i can start the James Server


But I still don't know why the directory size is so big, is it been 
attacked? hacked? or it's the config errors or it's a program errors?
As you can see, mv directory is just a work around solution, i guess the 
problem will happen later

BTW, i can see lots of spam emails in the box, and also a lot of spammer 
use the smtp server, how to stop those emails.


Thanks a lot
mmao

> maomaode ha scritto:
>   
>> Hi Stefano,
>>
>> I did install 2.3.1, but i used the 2.3.0 configuration files.
>> Will that cause problems?
>>     
>
> Yes, make sure to replace the environment.xml in the apps/james/SAR-INF
> folder.
> ------------------
> <?xml version="1.0"?>
>
> <server>
>
>   <!-- Overrides the default behaviour of phoenix that use "." as dir -->
>   <!-- and /SAR-INF/lib/*.jar as include resulting in a full scan -->
>   <!-- of the james folder and very slow startup when there are a lot of -->
>   <!-- messages in var -->
>   <!-- -->
>   <classloaders default="default" version="1.0">
>     <classloader name="default" parent="*system*">
>       <entry location="./SAR-INF/classes" />
>       <fileset dir="./SAR-INF/lib">
>         <include name="*.jar" />
>       </fileset>
>     </classloader>
>     <predefined name="*system*" />
>   </classloaders>
> ----------------
>
> This is the key to solve your problem. (as you can see in the changelog
> : http://svn.apache.org/viewvc?view=rev&revision=526796 . Note that
> james-server.xml is renamed to environment.xml when packaging the sar)
>
>   
>> Actually the server was running for days, and suddenly crashed.
>>     
>
> The crash should not be related in any way with this problem.
> The loop that was causing a big delay at startup for 2.3.0 is only run
> once at startup and simply enumerate any file under the apps/james folder.
>
>   
>> I don't know which log file should i look into?
>>
>> I can reinstall the James Server, but that's the last choice i would
>> like to take.
>>
>> Thanks,
>> mmao
>>     
>
> You're welcome,
> Stefano
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
> For additional commands, e-mail: server-user-help@james.apache.org
>
>
>   

---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org


Re: James Server exists abnormally and can not startup

Posted by Stefano Bagnara <ap...@bago.org>.
maomaode ha scritto:
> Hi Stefano,
> 
> I did install 2.3.1, but i used the 2.3.0 configuration files.
> Will that cause problems?

Yes, make sure to replace the environment.xml in the apps/james/SAR-INF
folder.
------------------
<?xml version="1.0"?>

<server>

  <!-- Overrides the default behaviour of phoenix that use "." as dir -->
  <!-- and /SAR-INF/lib/*.jar as include resulting in a full scan -->
  <!-- of the james folder and very slow startup when there are a lot of -->
  <!-- messages in var -->
  <!-- -->
  <classloaders default="default" version="1.0">
    <classloader name="default" parent="*system*">
      <entry location="./SAR-INF/classes" />
      <fileset dir="./SAR-INF/lib">
        <include name="*.jar" />
      </fileset>
    </classloader>
    <predefined name="*system*" />
  </classloaders>
----------------

This is the key to solve your problem. (as you can see in the changelog
: http://svn.apache.org/viewvc?view=rev&revision=526796 . Note that
james-server.xml is renamed to environment.xml when packaging the sar)

> Actually the server was running for days, and suddenly crashed.

The crash should not be related in any way with this problem.
The loop that was causing a big delay at startup for 2.3.0 is only run
once at startup and simply enumerate any file under the apps/james folder.

> I don't know which log file should i look into?
> 
> I can reinstall the James Server, but that's the last choice i would
> like to take.
> 
> Thanks,
> mmao

You're welcome,
Stefano


---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org


Re: James Server exists abnormally and can not startup

Posted by maomaode <ma...@gmail.com>.
Hi Stefano,

I did install 2.3.1, but i used the 2.3.0 configuration files.
Will that cause problems?

Actually the server was running for days, and suddenly crashed.
I don't know which log file should i look into?

I can reinstall the James Server, but that's the last choice i would 
like to take.

Thanks,
mmao




> You seem to hit https://issues.apache.org/jira/browse/JAMES-781
>
> It is marked as solved in 2.3.1 so it is weird.
>
> Maybe you installed 2.3.0 and then upgraded to 2.3.1 and some of your
> files has not been upgraded?
>
> I see the recursive DefaultLoaderResolver call is on line 170, and it is
> identical to the one reported in JAMES-781, so maybe you didn't replace
> the phoenix-engine.jar in your install folder: there are 2 identical
> jars, one in lib, one in bin/lib.
>
> Stefano
>
> maomaode ha scritto:
>   
>> "main" prio=1 tid=0x0000000040116030 nid=0x388f runnable
>> [0x00007fff5c98c000..0x00007fff5c98e4c0]
>>        at java.io.UnixFileSystem.list(Native Method)
>>        at java.io.File.list(File.java:937)
>>        at java.io.File.listFiles(File.java:1015)
>>        at
>> org.apache.avalon.phoenix.components.classloader.DefaultLoaderResolver.scanDir(DefaultLoaderResolver.java:151)
>>
>>        at
>> org.apache.avalon.phoenix.components.classloader.DefaultLoaderResolver.scanDir(DefaultLoaderResolver.java:170)
>>
>>        at
>> org.apache.avalon.phoenix.components.classloader.DefaultLoaderResolver.scanDir(DefaultLoaderResolver.java:170)
>>
>>        at
>> org.apache.avalon.phoenix.components.classloader.DefaultLoaderResolver.scanDir(DefaultLoaderResolver.java:170)
>>
>>        at
>> org.apache.avalon.phoenix.components.classloader.DefaultLoaderResolver.resolveFileSet(DefaultLoaderResolver.java:130)
>>
>>        at
>> org.apache.avalon.phoenix.components.classloader.SarLoaderResolver.resolveFileSet(SarLoaderResolver.java:169)
>>
>>        at
>> org.realityforge.classman.builder.LoaderBuilder.buildRegularClassLoader(LoaderBuilder.java:210)
>>
>>        at
>> org.realityforge.classman.builder.LoaderBuilder.processClassLoader(LoaderBuilder.java:126)
>>
>>        at
>> org.realityforge.classman.builder.LoaderBuilder.addAllClassLoaders(LoaderBuilder.java:71)
>>
>>        at
>> org.realityforge.classman.builder.LoaderBuilder.buildClassLoaders(LoaderBuilder.java:48)
>>
>>        at
>> org.apache.avalon.phoenix.components.classloader.DefaultClassLoaderManager.createClassLoaderSet(DefaultClassLoaderManager.java:233)
>>
>>        at
>> org.apache.avalon.phoenix.components.deployer.DefaultDeployer.deploy(DefaultDeployer.java:331)
>>
>>        at
>> org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployFile(DefaultEmbeddor.java:542)
>>
>>        - locked <0x00002ba95bc92f48> (a
>> org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor)
>>        at
>> org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployFile(DefaultEmbeddor.java:535)
>>
>>        at
>> org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployFiles(DefaultEmbeddor.java:520)
>>
>>        at
>> org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployDefaultApplications(DefaultEmbeddor.java:509)
>>
>>        at
>> org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.execute(DefaultEmbeddor.java:268)
>>
>>        at org.apache.avalon.phoenix.frontends.CLIMain.run(CLIMain.java:198)
>>        at
>> org.apache.avalon.phoenix.frontends.CLIMain.execute(CLIMain.java:184)
>>        at
>> org.apache.avalon.phoenix.frontends.CLIMain.main(CLIMain.java:145)
>>        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:135)
>>        at org.apache.avalon.phoenix.launcher.Main.main(Main.java:84)
>>     
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
> For additional commands, e-mail: server-user-help@james.apache.org
>
>
>   

---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org


Re: James Server exists abnormally and can not startup

Posted by Stefano Bagnara <ap...@bago.org>.
You seem to hit https://issues.apache.org/jira/browse/JAMES-781

It is marked as solved in 2.3.1 so it is weird.

Maybe you installed 2.3.0 and then upgraded to 2.3.1 and some of your
files has not been upgraded?

I see the recursive DefaultLoaderResolver call is on line 170, and it is
identical to the one reported in JAMES-781, so maybe you didn't replace
the phoenix-engine.jar in your install folder: there are 2 identical
jars, one in lib, one in bin/lib.

Stefano

maomaode ha scritto:
> "main" prio=1 tid=0x0000000040116030 nid=0x388f runnable
> [0x00007fff5c98c000..0x00007fff5c98e4c0]
>        at java.io.UnixFileSystem.list(Native Method)
>        at java.io.File.list(File.java:937)
>        at java.io.File.listFiles(File.java:1015)
>        at
> org.apache.avalon.phoenix.components.classloader.DefaultLoaderResolver.scanDir(DefaultLoaderResolver.java:151)
> 
>        at
> org.apache.avalon.phoenix.components.classloader.DefaultLoaderResolver.scanDir(DefaultLoaderResolver.java:170)
> 
>        at
> org.apache.avalon.phoenix.components.classloader.DefaultLoaderResolver.scanDir(DefaultLoaderResolver.java:170)
> 
>        at
> org.apache.avalon.phoenix.components.classloader.DefaultLoaderResolver.scanDir(DefaultLoaderResolver.java:170)
> 
>        at
> org.apache.avalon.phoenix.components.classloader.DefaultLoaderResolver.resolveFileSet(DefaultLoaderResolver.java:130)
> 
>        at
> org.apache.avalon.phoenix.components.classloader.SarLoaderResolver.resolveFileSet(SarLoaderResolver.java:169)
> 
>        at
> org.realityforge.classman.builder.LoaderBuilder.buildRegularClassLoader(LoaderBuilder.java:210)
> 
>        at
> org.realityforge.classman.builder.LoaderBuilder.processClassLoader(LoaderBuilder.java:126)
> 
>        at
> org.realityforge.classman.builder.LoaderBuilder.addAllClassLoaders(LoaderBuilder.java:71)
> 
>        at
> org.realityforge.classman.builder.LoaderBuilder.buildClassLoaders(LoaderBuilder.java:48)
> 
>        at
> org.apache.avalon.phoenix.components.classloader.DefaultClassLoaderManager.createClassLoaderSet(DefaultClassLoaderManager.java:233)
> 
>        at
> org.apache.avalon.phoenix.components.deployer.DefaultDeployer.deploy(DefaultDeployer.java:331)
> 
>        at
> org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployFile(DefaultEmbeddor.java:542)
> 
>        - locked <0x00002ba95bc92f48> (a
> org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor)
>        at
> org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployFile(DefaultEmbeddor.java:535)
> 
>        at
> org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployFiles(DefaultEmbeddor.java:520)
> 
>        at
> org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployDefaultApplications(DefaultEmbeddor.java:509)
> 
>        at
> org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.execute(DefaultEmbeddor.java:268)
> 
>        at org.apache.avalon.phoenix.frontends.CLIMain.run(CLIMain.java:198)
>        at
> org.apache.avalon.phoenix.frontends.CLIMain.execute(CLIMain.java:184)
>        at
> org.apache.avalon.phoenix.frontends.CLIMain.main(CLIMain.java:145)
>        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:135)
>        at org.apache.avalon.phoenix.launcher.Main.main(Main.java:84)



---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org


Re: James Server exists abnormally and can not startup

Posted by maomaode <ma...@gmail.com>.
Hi Stefano,

Thanks for you reply, i did what you said, the following is the 
stacktrace i got
Do you need the log files, tell me which log file you need to diagnose 
the problem.


Thanks a lot


Using JAVA_HOME:      /data1/java/jdk1.5.0_10
Running Phoenix:

Phoenix 4.2

Full thread dump Java HotSpot(TM) 64-Bit Server VM (1.5.0_10-b03 mixed 
mode):

"Thread-0" daemon prio=1 tid=0x00002aaab00a9790 nid=0x389f waiting on 
condition [0x0000000040d5c000..0x0000000040d5cc00]
        at java.lang.Thread.sleep(Native Method)
        at 
org.apache.avalon.excalibur.monitor.impl.ActiveMonitor.run(ActiveMonitor.java:101)
        at java.lang.Thread.run(Thread.java:595)

"Low Memory Detector" daemon prio=1 tid=0x00002aaaaab825f0 nid=0x389d 
runnable [0x0000000000000000..0x0000000000000000]

"CompilerThread1" daemon prio=1 tid=0x00002aaaaab809c0 nid=0x389c 
waiting on condition [0x0000000000000000..0x0000000040a58360]

"CompilerThread0" daemon prio=1 tid=0x00002aaaaab7f410 nid=0x389b 
waiting on condition [0x0000000000000000..0x0000000040957690]

"AdapterThread" daemon prio=1 tid=0x00002aaaaab7dcb0 nid=0x389a waiting 
on condition [0x0000000000000000..0x0000000000000000]

"Signal Dispatcher" daemon prio=1 tid=0x00002aaaaab7ca30 nid=0x3899 
waiting on condition [0x0000000000000000..0x0000000000000000]

"Finalizer" daemon prio=1 tid=0x00002aaaaab65480 nid=0x3898 in 
Object.wait() [0x0000000040655000..0x0000000040655c80]
        at java.lang.Object.wait(Native Method)
        - waiting on <0x00002ba95bc85eb0> (a 
java.lang.ref.ReferenceQueue$Lock)
        at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:116)
        - locked <0x00002ba95bc85eb0> (a java.lang.ref.ReferenceQueue$Lock)
        at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:132)
        at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:159)

"Reference Handler" daemon prio=1 tid=0x00002aaaaab64c50 nid=0x3897 in 
Object.wait() [0x0000000040554000..0x0000000040554c00]
        at java.lang.Object.wait(Native Method)
        - waiting on <0x00002ba95bc8f2c8> (a java.lang.ref.Reference$Lock)
        at java.lang.Object.wait(Object.java:474)
        at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:116)
        - locked <0x00002ba95bc8f2c8> (a java.lang.ref.Reference$Lock)

"main" prio=1 tid=0x0000000040116030 nid=0x388f runnable 
[0x00007fff5c98c000..0x00007fff5c98e4c0]
        at java.io.UnixFileSystem.list(Native Method)
        at java.io.File.list(File.java:937)
        at java.io.File.listFiles(File.java:1015)
        at 
org.apache.avalon.phoenix.components.classloader.DefaultLoaderResolver.scanDir(DefaultLoaderResolver.java:151)
        at 
org.apache.avalon.phoenix.components.classloader.DefaultLoaderResolver.scanDir(DefaultLoaderResolver.java:170)
        at 
org.apache.avalon.phoenix.components.classloader.DefaultLoaderResolver.scanDir(DefaultLoaderResolver.java:170)
        at 
org.apache.avalon.phoenix.components.classloader.DefaultLoaderResolver.scanDir(DefaultLoaderResolver.java:170)
        at 
org.apache.avalon.phoenix.components.classloader.DefaultLoaderResolver.resolveFileSet(DefaultLoaderResolver.java:130)
        at 
org.apache.avalon.phoenix.components.classloader.SarLoaderResolver.resolveFileSet(SarLoaderResolver.java:169)
        at 
org.realityforge.classman.builder.LoaderBuilder.buildRegularClassLoader(LoaderBuilder.java:210)
        at 
org.realityforge.classman.builder.LoaderBuilder.processClassLoader(LoaderBuilder.java:126)
        at 
org.realityforge.classman.builder.LoaderBuilder.addAllClassLoaders(LoaderBuilder.java:71)
        at 
org.realityforge.classman.builder.LoaderBuilder.buildClassLoaders(LoaderBuilder.java:48)
        at 
org.apache.avalon.phoenix.components.classloader.DefaultClassLoaderManager.createClassLoaderSet(DefaultClassLoaderManager.java:233)
        at 
org.apache.avalon.phoenix.components.deployer.DefaultDeployer.deploy(DefaultDeployer.java:331)
        at 
org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployFile(DefaultEmbeddor.java:542)
        - locked <0x00002ba95bc92f48> (a 
org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor)
        at 
org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployFile(DefaultEmbeddor.java:535)
        at 
org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployFiles(DefaultEmbeddor.java:520)
        at 
org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployDefaultApplications(DefaultEmbeddor.java:509)
        at 
org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.execute(DefaultEmbeddor.java:268)
        at org.apache.avalon.phoenix.frontends.CLIMain.run(CLIMain.java:198)
        at 
org.apache.avalon.phoenix.frontends.CLIMain.execute(CLIMain.java:184)
        at 
org.apache.avalon.phoenix.frontends.CLIMain.main(CLIMain.java:145)
        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:135)
        at org.apache.avalon.phoenix.launcher.Main.main(Main.java:84)

"VM Thread" prio=1 tid=0x00002aaaaab60760 nid=0x3896 runnable

"GC task thread#0 (ParallelGC)" prio=1 tid=0x0000000040132ab0 nid=0x3894 
runnable

"GC task thread#1 (ParallelGC)" prio=1 tid=0x0000000040133930 nid=0x3895 
runnable

"VM Periodic Task Thread" prio=1 tid=0x00002aaaaab84240 nid=0x389e 
waiting on condition



Stefano Bagnara wrote:
> Probably it is not "forever", but a long time needed to do something.
>
> Try running it without the nohup and run a "KILL -3 <pid>" to the james
> pid. It will dump the stack trace to console: we need that stack trace.
>
> Maybe you want to do 2 or 3 dumps in the first seconds/minutes after
> running the application so that we can see what JAMES Server is doing.
>
> Stefano
>
> maomaode ha scritto:
>   
>> Hi,
>>
>> I got a really abnormal case, the James server is OK this morning, but
>> this afternoon, it seems existed abnormally, and i found it can not be
>> started anymore.
>>
>> The output looks like this:
>>
>> =======================================================
>> Using PHOENIX_HOME:   /data2/softwares/james-2.3.1
>> Using PHOENIX_TMPDIR: /data2/softwares/james-2.3.1/temp
>> Using JAVA_HOME:      /data1/java/jdk1.5.0_10
>> Running Phoenix:
>>
>> Phoenix 4.2
>> =======================================================
>>
>>
>> Previously i can see it list all the started port, but seems now it hang
>> there forever.
>>
>> I used the following command to launch the james server
>>
>>     
>>> nohup ./run.sh &
>>>       
>> And the platform is Suse linux, the i used the Java5
>>
>> Can anyone help me out?
>>
>>
>> Thanks in advance
>> mao
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
>> For additional commands, e-mail: server-user-help@james.apache.org
>>
>>
>>     
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
> For additional commands, e-mail: server-user-help@james.apache.org
>
>
>   

---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org


Re: James Server exists abnormally and can not startup

Posted by Stefano Bagnara <ap...@bago.org>.
Probably it is not "forever", but a long time needed to do something.

Try running it without the nohup and run a "KILL -3 <pid>" to the james
pid. It will dump the stack trace to console: we need that stack trace.

Maybe you want to do 2 or 3 dumps in the first seconds/minutes after
running the application so that we can see what JAMES Server is doing.

Stefano

maomaode ha scritto:
> Hi,
> 
> I got a really abnormal case, the James server is OK this morning, but
> this afternoon, it seems existed abnormally, and i found it can not be
> started anymore.
> 
> The output looks like this:
> 
> =======================================================
> Using PHOENIX_HOME:   /data2/softwares/james-2.3.1
> Using PHOENIX_TMPDIR: /data2/softwares/james-2.3.1/temp
> Using JAVA_HOME:      /data1/java/jdk1.5.0_10
> Running Phoenix:
> 
> Phoenix 4.2
> =======================================================
> 
> 
> Previously i can see it list all the started port, but seems now it hang
> there forever.
> 
> I used the following command to launch the james server
> 
>> nohup ./run.sh &
> 
> And the platform is Suse linux, the i used the Java5
> 
> Can anyone help me out?
> 
> 
> Thanks in advance
> mao
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
> For additional commands, e-mail: server-user-help@james.apache.org
> 
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org