Uploaded image for project: 'OpenNMS'
  1. OpenNMS
  2. NMS-2382

spring/beanfactory issue in icedtea (java 1.7.0 dev)

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Won't Fix
    • 1.3.11
    • Unknown Release
    • Architecture
    • Security Level: Default (Default Security Scheme)
    • None
    • Operating System: Linux
      Platform: All
    • 2324

    Description

      (this came from NMS-2335)

      Startup exception seen in output.log on a Fedora 8 system:

      ------------------------------------------------------------------------------
      Mon Feb 18 07:49:05 EST 2008
      begin ulimit settings:
      core file size (blocks, -c) 0
      data seg size (kbytes, -d) unlimited
      scheduling priority (-e) 0
      file size (blocks, -f) unlimited
      pending signals (-i) 16384
      max locked memory (kbytes, -l) 32
      max memory size (kbytes, -m) unlimited
      open files (-n) 10240
      pipe size (512 bytes, -p) 8
      POSIX message queues (bytes, -q) 819200
      real-time priority (-r) 0
      stack size (kbytes, -s) 8192
      cpu time (seconds, -t) unlimited
      max user processes (-u) 16384
      virtual memory (kbytes, -v) unlimited
      file locks (-x) unlimited
      end ulimit settings
      Executing command: /opt/opennms/bin/runjava -r –
      -Dopennms.home=/opt/opennms -Xmx256m -jar /opt/opennms/lib/opennms_bootstrap
      .jar start
      [DEBUG] System property 'opennms.library.jicmp' set to '/usr/lib/libjicmp.so.
      Attempting to load jicmp library from this locatio
      n.
      [INFO] Successfully loaded jicmp library.
      Feb 18, 2008 7:49:13 AM java.util.prefs.FileSystemPreferences$7 run
      WARNING: Prefs file removed in background /root/.java/.userPrefs/prefs.xml
      Feb 18, 2008 7:49:13 AM java.util.prefs.FileSystemPreferences$7 run
      WARNING: Prefs file removed in background /etc/.java/.systemPrefs/prefs.xml
      An error occurred while attempting to start the "OpenNMS:Name=Capsd" service
      (class org.opennms.netmgt.capsd.jmx.Capsd). Shuttin
      g down and exiting.
      javax.management.RuntimeMBeanException:
      org.springframework.beans.factory.access.BootstrapException: Unable to return
      specified B
      eanFactory instance: factory key [capsdContext], from group with resource name
      [classpath*:beanRefContext.xml]; nested exception
      is org.springframework.beans.factory.BeanCreationException: Error creating bean
      with name 'capsdContext' defined in URL [jar:file
      :/opt/opennms/lib/opennms-services-1.3.11.jar!/beanRefContext.xml]:
      Instantiation of bean failed; nested exception is org.springf
      ramework.beans.BeanInstantiationException: Could not instantiate bean class
      [org.springframework.context.support.ClassPathXmlAppl
      icationContext]: Constructor threw exception; nested exception is
      org.springframework.beans.factory.BeanCreationException: Error
      creating bean with name 'xmlRpcNotifier' defined in class path resource
      [META-INF/opennms/applicationContext-capsd.xml]: Cannot c
      reate inner bean 'util:property-path#ce0df0' of type
      [org.springframework.beans.factory.config.PropertyPathFactoryBean] while set
      ting bean property 'xmlRpcEnabled'; nested exception is
      org.springframework.beans.factory.BeanCreationException: Error creating b
      ean with name 'util:property-path#ce0df0': Initialization of bean failed;
      nested exception is java.lang.IllegalArgumentException:
      error at ::0 can't find referenced pointcut capsdEventHandler
      at
      com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.rethrow(DefaultMBeanServerInterceptor.java:877)
      at
      com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.rethrowMaybeMBeanException(DefaultMBeanServerInterceptor.java:89
      0)
      at
      com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:859)
      at
      com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:795)
      at org.opennms.netmgt.vmmgr.Invoker.invoke(Invoker.java:313)
      at org.opennms.netmgt.vmmgr.Invoker.invokeMethods(Invoker.java:236)
      at org.opennms.netmgt.vmmgr.Starter.start(Starter.java:247)
      at org.opennms.netmgt.vmmgr.Starter.startDaemon(Starter.java:127)
      at org.opennms.netmgt.vmmgr.Controller.start(Controller.java:197)
      at org.opennms.netmgt.vmmgr.Controller.main(Controller.java:169)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at
      sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at
      sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:623)
      at org.opennms.bootstrap.Bootstrap$3.run(Bootstrap.java:368)
      at java.lang.Thread.run(Thread.java:675)
      Caused by: org.springframework.beans.factory.access.BootstrapException: Unable
      to return specified BeanFactory instance: factory
      key [capsdContext], from group with resource name
      [classpath*:beanRefContext.xml]; nested exception is org.springframework.beans.
      factory.BeanCreationException: Error creating bean with name 'capsdContext'
      defined in URL [jar:file:/opt/opennms/lib/opennms-ser
      vices-1.3.11.jar!/beanRefContext.xml]: Instantiation of bean failed; nested
      exception is org.springframework.beans.BeanInstantiat
      ionException: Could not instantiate bean class
      [org.springframework.context.support.ClassPathXmlApplicationContext]:
      Constructor
      threw exception; nested exception is
      org.springframework.beans.factory.BeanCreationException: Error creating bean
      with name 'xmlR
      pcNotifier' defined in class path resource
      [META-INF/opennms/applicationContext-capsd.xml]: Cannot create inner bean
      'util:proper
      ty-path#ce0df0' of type
      [org.springframework.beans.factory.config.PropertyPathFactoryBean] while
      setting bean property 'xmlRpcEna
      bled'; nested exception is
      org.springframework.beans.factory.BeanCreationException: Error creating bean
      with name 'util:property-
      path#ce0df0': Initialization of bean failed; nested exception is
      java.lang.IllegalArgumentException: error at ::0 can't find refe
      renced pointcut capsdEventHandler
      at
      org.springframework.beans.factory.access.SingletonBeanFactoryLocator.useBeanFactory(SingletonBeanFactoryLocator.java:4
      05)
      at org.opennms.core.utils.BeanUtils.getBeanFactory(BeanUtils.java:58)
      at org.opennms.core.utils.BeanUtils.getFactory(BeanUtils.java:101)
      at
      org.opennms.netmgt.daemon.AbstractSpringContextJmxServiceDaemon.init(AbstractSpringContextJmxServiceDaemon.java:40)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at
      sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at
      sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:623)
      at
      com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:111)
      at
      com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:45)
      at
      com.sun.jmx.mbeanserver.MBeanIntrospector.invokeM(MBeanIntrospector.java:226)
      at com.sun.jmx.mbeanserver.PerInterface.invoke(PerInterface.java:138)
      at com.sun.jmx.mbeanserver.MBeanSupport.invoke(MBeanSupport.java:251)
      at
      com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:857)
      ... 13 more
      Caused by: org.springframework.beans.factory.BeanCreationException: Error
      creating bean with name 'capsdContext' defined in URL [
      jar:file:/opt/opennms/lib/opennms-services-1.3.11.jar!/beanRefContext.xml]:
      Instantiation of bean failed; nested exception is org
      .springframework.beans.BeanInstantiationException: Could not instantiate bean
      class [org.springframework.context.support.ClassPat
      hXmlApplicationContext]: Constructor threw exception; nested exception is
      org.springframework.beans.factory.BeanCreationException
      : Error creating bean with name 'xmlRpcNotifier' defined in class path resource
      [META-INF/opennms/applicationContext-capsd.xml]:
      Cannot create inner bean 'util:property-path#ce0df0' of type
      [org.springframework.beans.factory.config.PropertyPathFactoryBean] w
      hile setting bean property 'xmlRpcEnabled'; nested exception is
      org.springframework.beans.factory.BeanCreationException: Error cr
      eating bean with name 'util:property-path#ce0df0': Initialization of bean
      failed; nested exception is java.lang.IllegalArgumentEx
      ception: error at ::0 can't find referenced pointcut capsdEventHandler
      at
      org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFac
      tory.java:451)
      at
      org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:249)
      at
      org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:
      155)
      at
      org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:246)
      at
      org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)
      at
      org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:733)
      at
      org.springframework.beans.factory.access.SingletonBeanFactoryLocator.useBeanFactory(SingletonBeanFactoryLocator.java:3
      95)
      ... 26 more
      Caused by: org.springframework.beans.BeanInstantiationException: Could not
      instantiate bean class [org.springframework.context.su
      pport.ClassPathXmlApplicationContext]: Constructor threw exception; nested
      exception is org.springframework.beans.factory.BeanCre
      ationException: Error creating bean with name 'xmlRpcNotifier' defined in class
      path resource [META-INF/opennms/applicationContex
      t-capsd.xml]: Cannot create inner bean 'util:property-path#ce0df0' of type
      [org.springframework.beans.factory.config.PropertyPath
      FactoryBean] while setting bean property 'xmlRpcEnabled'; nested exception is
      org.springframework.beans.factory.BeanCreationExcep
      tion: Error creating bean with name 'util:property-path#ce0df0': Initialization
      of bean failed; nested exception is java.lang.Ill
      egalArgumentException: error at ::0 can't find referenced pointcut
      capsdEventHandler
      at
      org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:100)
      at
      org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:87)
      at
      org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:186)
      at
      org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapab
      leBeanFactory.java:795)
      at
      org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapabl
      eBeanFactory.java:713)
      at
      org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFac
      tory.java:386)
      ... 32 more
      Caused by: org.springframework.beans.factory.BeanCreationException: Error
      creating bean with name 'xmlRpcNotifier' defined in cla
      ss path resource [META-INF/opennms/applicationContext-capsd.xml]: Cannot create
      inner bean 'util:property-path#ce0df0' of type [o
      rg.springframework.beans.factory.config.PropertyPathFactoryBean] while setting
      bean property 'xmlRpcEnabled'; nested exception is
      org.springframework.beans.factory.BeanCreationException: Error creating bean
      with name 'util:property-path#ce0df0': Initializati
      on of bean failed; nested exception is java.lang.IllegalArgumentException:
      error at ::0 can't find referenced pointcut capsdEvent
      Handler
      at
      org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.jav
      a:228)
      at
      org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResol
      ver.java:123)
      at
      org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapab
      leBeanFactory.java:1095)
      at
      org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanF
      actory.java:857)
      at
      org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFac
      tory.java:423)
      at
      org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:249)
      at
      org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:
      155)
      at
      org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:246)
      at
      org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)
      at
      org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFacto
      ry.java:291)
      at
      org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352)
      at
      org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:122)
      at
      org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:88)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
      Method)
      at
      sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
      at
      sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      at java.lang.reflect.Constructor.newInstance(Constructor.java:539)
      at
      org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:85)
      ... 37 more
      Caused by: org.springframework.beans.factory.BeanCreationException: Error
      creating bean with name 'util:property-path#ce0df0': In
      itialization of bean failed; nested exception is
      java.lang.IllegalArgumentException: error at ::0 can't find referenced pointcut
      capsdEventHandler
      at
      org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFac
      tory.java:451)
      at
      org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.jav
      a:216)
      ... 54 more
      Caused by: java.lang.IllegalArgumentException: error at ::0 can't find
      referenced pointcut capsdEventHandler
      at
      org.aspectj.weaver.tools.PointcutParser.parsePointcutExpression(PointcutParser.java:315)
      at
      org.springframework.aop.aspectj.AspectJExpressionPointcut.buildPointcutExpression(AspectJExpressionPointcut.java:189)
      at
      org.springframework.aop.aspectj.AspectJExpressionPointcut.checkReadyToMatch(AspectJExpressionPointcut.java:176)
      at
      org.springframework.aop.aspectj.AspectJExpressionPointcut.getClassFilter(AspectJExpressionPointcut.java:157)
      at org.springframework.aop.support.AopUtils.canApply(AopUtils.java:189)
      at org.springframework.aop.support.AopUtils.canApply(AopUtils.java:244)
      at
      org.springframework.aop.support.AopUtils.findAdvisorsThatCanApply(AopUtils.java:278)
      at
      org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.findEligibleAdvisors(AbstractAdvisorAutoPr
      oxyCreator.java:83)
      at
      org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.getAdvicesAndAdvisorsForBean(AbstractAdvis
      orAutoProxyCreator.java:66)
      at
      org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator.postProcessAfterInitialization(AbstractAutoProxyC
      reator.java:296)
      at
      org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsAfterInitializatio
      n(AbstractAutowireCapableBeanFactory.java:313)
      at
      org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBea
      nFactory.java:1176)
      at
      org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFac
      tory.java:427)
      ... 55 more

      The culprit seems to be the JDK that ships with Fedora 8:

      `cat /opt/opennms/etc/java.conf` -version –

      [root@se-monhq ~]# `cat /opt/opennms/etc/java.conf` -version
      java version "1.7.0"
      IcedTea Runtime Environment (build 1.7.0-b21)
      IcedTea Client VM (build 1.7.0-b21, mixed mode)

      Running opt/opennms/bin/runjava -S /usr/java/jdk1.5.0_14/bin/java fixed the
      startup issue.

      Attachments

        Issue Links

          Activity

            People

              buglist@opennms.org OpenNMS Bug Mailing List (Inactive)
              ranger Benjamin Reed
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: