cancel
Showing results for 
Search instead for 
Did you mean: 

Could not connect to JMX Server

grumpy_burton
Champ in-the-making
Champ in-the-making
I seem to get these pretty often… and then I can't push content… any ideas?

14:31:58,843 ERROR [alfresco.mbeans.VirtServerRegistry] Could not connect to JMX Server within remote virtualization server (this may be a transient error.)

I also seem to get these pretty often…

INFO: Connected to remote Alfresco JMX Server
27/03/2007 14:31:09 org.apache.myfaces.config.FacesConfigurator feedStandardConfig
INFO: Reading standard config org/apache/myfaces/resource/standard-faces-config.xml
27/03/2007 14:31:09 org.apache.myfaces.util.LocaleUtils toLocale
SEVERE: Locale name null or empty, ignoring
27/03/2007 14:31:10 org.apache.myfaces.webapp.StartupServletContextListener initFaces
INFO: ServletContext 'v:\mentor\VERSION\v-1\DATA\www\avm_webapps\ROOT\' initialized.
27/03/2007 14:31:10 org.apache.catalina.core.StandardContext filterStart
SEVERE: Exception starting filter alfrecoCacheControlFilter
java.lang.NullPointerException
   at org.alfresco.filter.CacheControlFilter.Init(CacheControlFilter.java:94)
   at org.alfresco.filter.CacheControlFilter.init(CacheControlFilter.java:65)
   at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:223)
   at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:304)
   at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:77)
   at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3634)
   at org.apache.catalina.core.StandardContext.start(StandardContext.java:4217)
   at org.alfresco.catalina.context.AVMStandardContext.start(AVMStandardContext.java:70)
   at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
   at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
   at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
   at org.alfresco.catalina.host.AVMHostConfig.deployAVMdirectory(AVMHostConfig.java:1402)
   at org.alfresco.catalina.host.AVMHostConfig.deployAVMWebapp(AVMHostConfig.java:1201)
   at org.alfresco.catalina.host.AVMHostConfig.deployAVMWebappDescriptorTree(AVMHostConfig.java:1047)
   at org.alfresco.catalina.host.AVMHostConfig.deployAVMWebappsInDependencyOrder(AVMHostConfig.java:1040)
   at org.alfresco.catalina.host.AVMHostConfig.deployAllAVMwebappsInRepository(AVMHostConfig.java:403)
   at org.alfresco.catalina.host.AVMHostConfig.deployApps(AVMHostConfig.java:244)
   at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1122)
   at org.alfresco.catalina.host.AVMHostConfig.start(AVMHostConfig.java:196)
   at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
   at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
   at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1021)
   at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
   at org.alfresco.catalina.host.AVMHost.start(AVMHost.java:586)
   at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
   at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
   at org.apache.catalina.core.StandardService.start(StandardService.java:450)
   at org.apache.catalina.core.StandardServer.start(StandardServer.java:709)
   at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
   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.catalina.startup.Bootstrap.start(Bootstrap.java:294)
   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
27/03/2007 14:31:10 org.apache.catalina.core.StandardContext start
SEVERE: Error filterStart
27/03/2007 14:31:10 org.apache.catalina.core.StandardContext start
SEVERE: Context [/$-1$mentor$ROOT] startup failed due to previous errors
27/03/2007 14:31:17 org.apache.catalina.core.StandardHost start

Cheers,
Alex.
5 REPLIES 5

edgar
Champ in-the-making
Champ in-the-making
Same here. Logging out of Alfresco and back in again works as a workaround for me.

It seems that there is bug in Alfresco's caching system somewhere.

Maybe you can post these two issues (not sure if they are related) to Alfresco's JIRA (if they are not already there)?

http://issues.alfresco.com

jcox
Champ in-the-making
Champ in-the-making
This has nothing to do with caching, despite the classname you're seeing.
Also, the problem has nothing to do with logging in or out, despite the
fact that it seems that logging out "fixes" things.

Actually, what *is* fixing things is the time it takes you to log out & back in.

Here's what's going on:

[1]  The virt server started up before (or faster than) the alfresco webapp
[2]  The virt server hang around waiting for the AVM to become available
[3]  Warnings are emitted about not able to connect via JMX
[4]  Someone tries to view content anyhow  (but the server is not up yet)
[5]  Anything that tries to access AVMRemote (e.g.: the CacheControlFilter) barfs
[6]  Eventually, the Alfresco webapp is started (or becomes fully "up").
[7]  The virt server registers itself with the alfresco webapp (now AVMRemote works).
[8]  Now your webapp will function via the virt server


If you ever stop the alfresco webapp, the virt server will just start doing
a slow poll, waiting for it to come back up.   Thus, you *will* see some
funkiness during edge conditions like startup shutdown when one server
is not quite up yet (or when a re-poll has not occured yet).

I could make the error condition prettier, but the fundamental behavior
cannot change –  there's simply nothing for the virt server to talk to on
the other end until the AVM is fully "up".

    I hope this helps,
    -Jon

grumpy_burton
Champ in-the-making
Champ in-the-making
Actually… I am getting these AFTER both servers have been started and running successfully for a period of time (i.e. just then it happened after about 30mins of both running successfully…)

Seems to happen most often after a bulk import.

edgar
Champ in-the-making
Champ in-the-making
Hi Jon,

thanks for the quick reply. I also see this problem after both servers have started up. I see this problem when the servers have been running for hours.   I cannot tell you exactly when the problem occurs. I will keep an eye out.

About the start-up of Alfresco WCM that you wrote down. I am a little confused. I start Alfresco this way:
1. Alfresco ECMS Community Network -> Start Alfresco Server
2. Two Tomcat windows are opened. One repeatedly says: "WARNING: Retrying JNDI connection..". The other one "INFO: Deploying web application archive alfresco.war".
3. Once the deploying of the WAR has finished the first Tomcat is happy and the window is closed.
4. Only now I start Alfresco WCM.

In the first steps (ECMS) no Virtualization Server is started is there? Alfresco WCM is the Virtualization Server, right?

I am a bit confused because previous versions of Alfresco (like 2.0-preview) started up differently.

cheers,

Edgar

jcox
Champ in-the-making
Champ in-the-making
Edgar,

I wanted to make sure you saw this post:
    http://forums.alfresco.com/viewtopic.php?p=19322#19322

There's also been a bug filed for virt server's installer on Windows platforms:
     http://issues.alfresco.com/browse/WCM-422

You don't have to wait for a patch; just install the virtualization
server as a service.