Project

General

Profile

Actions

bug #1753

closed

error in server due to level2 cache

Added by Andreas Kohlbecker over 12 years ago. Updated about 6 years ago.

Status:
Worksforme
Priority:
New
Category:
server-maintenance
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Severity:
normal
Found in Version:
Tags:

Description

2010-05-19 16:16:23,986 INFO [eu.etaxonomy.cdm.api.application.CdmApplicationUtils] - Resource directory: /opt/cdmserver/.cdmLibrary/writableResources
2010-05-19 16:16:30,574 ERROR [net.sf.ehcache.Cache] - Unable to set localhost. This prevents creation of a GUID. Cause was: edit: edit
java.net.UnknownHostException: edit: edit
        at java.net.InetAddress.getLocalHost(InetAddress.java:1353)
        at net.sf.ehcache.Cache.<clinit>(Cache.java:95)
        at net.sf.ehcache.config.ConfigurationHelper.createCache(ConfigurationHelper.java:291)
        at net.sf.ehcache.config.ConfigurationHelper.createDefaultCache(ConfigurationHelper.java:241)
        at net.sf.ehcache.CacheManager.configure(CacheManager.java:262)
        at net.sf.ehcache.CacheManager.init(CacheManager.java:196)
        at net.sf.ehcache.CacheManager.<init>(CacheManager.java:172)
        at net.sf.ehcache.CacheManager.create(CacheManager.java:438)
        at org.springframework.cache.ehcache.EhCacheManagerFactoryBean.afterPropertiesSet(EhCacheManagerFactoryBean.java:103)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1460)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1398)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:512)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:450)
        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:290)
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:287)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:189)
        at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:322)
        at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1305)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1067)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:511)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:450)
        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:290)
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:287)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:189)
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:820)
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:762)
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:680)
        at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredMethodElement.inject(AutowiredAnnotationBeanPostProcessor.java:556)
        at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:84)
        at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:280)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1055)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:511)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:450)
        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:290)
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:287)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:189)
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:557)
        at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:842)
        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:416)
        at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:261)
        at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:192)
        at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)
        at org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:645)
        at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:189)
        at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:978)
        at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:586)
        at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:349)
        at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:55)
        at org.eclipse.jetty.server.handler.HandlerCollection.doStart(HandlerCollection.java:165)
        at org.eclipse.jetty.server.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:162)
        at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:55)
        at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:92)
        at org.eclipse.jetty.server.Server.doStart(Server.java:228)
        at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:55)
        at eu.etaxonomy.cdm.server.Bootloader.main(Bootloader.java:329)
2010-05-19 16:16:31.782:INFO:/diptera:Initializing Spring FrameworkServlet 'cdmrest'
2010-05-19 16:16:33,286 INFO [eu.etaxonomy.cdm.remote.config.DataSourceConfig] - using jndi datasource 'jdbc/diptera'
2010-05-19 16:16:35.746:INFO:/cichorieae:Initializing Spring root WebApplicationContext
2010-05-19 16:16:40,402 INFO [eu.etaxonomy.cdm.remote.config.DataSourceConfig] - using jndi datasource 'jdbc/cichorieae'
2010-05-19 16:16:53,710 WARN [eu.etaxonomy.cdm.strategy.cache.name.BacterialNameDefaultCacheStrategy] - BacterialNameDefaultCacheStrategy not yet really implemented. Its just a copy from BotanicalNameDefaultCacheStrategy right now !!
2010-05-19 16:17:09,778 INFO [eu.etaxonomy.cdm.database.PersistentTermInitializer] - PersistentTermInitializer.omit == false, initializing 35 term classes
2010-05-19 16:17:21,830 INFO [eu.etaxonomy.cdm.api.application.CdmApplicationUtils] - Resource directory: /opt/cdmserver/.cdmLibrary/writableResources

Actions #1

Updated by Andreas Kohlbecker almost 12 years ago

  • Category changed from cdmserver to cdmlib-remote
Actions #2

Updated by Andreas Kohlbecker over 11 years ago

  • Target version changed from cdm_dataportal - Next Major Release to cdm-server RELEASE 3.0.7
Actions #3

Updated by Andreas Kohlbecker over 11 years ago

  • Status changed from New to In Progress
  • Category changed from cdmlib-remote to server-maintenance

See also the following thread which is on the same issue http://forums.atlassian.com/thread.jspa?messageID=257247176

This problems only occurs on the production not on my local developer machine or on the development server.

I wrote a little test class to check the behaviour of InetAddress.getLocalHost() on the different machines:

import java.net.InetAddress;
import java.net.UnknownHostException;

public class InetAddressGetLocalHost {

    /**
     * @param args
     */
    public static void main(String[] args) {
        try {
            InetAddress host = InetAddress.getLocalHost();
            System.out.println("host name: " + host.getHostName());
            System.out.print("IP: ");
            byte b[] = host.getAddress();
            for (int i = 0; i < b.length; i++) {
                System.out.print(b[i] + ".");
            }
            System.out.println("");

        } catch (UnknownHostException e) {
            System.err.println(e.getMessage());
            e.printStackTrace();
        }

    }

}

It throws an exception only on edit-producion server, so this issue is most probably an server configuration issue.

Thus I will change the component of this ticket.

Actions #4

Updated by Andreas Kohlbecker about 6 years ago

  • Tags set to ehcache
  • Description updated (diff)
Actions #5

Updated by Andreas Kohlbecker about 6 years ago

  • Private changed from Yes to No
Actions #6

Updated by Andreas Kohlbecker about 6 years ago

  • Status changed from In Progress to Worksforme

this is no longer a problem

Actions

Also available in: Atom PDF