0 Replies Latest reply on Dec 30, 2005 7:34 AM by Karl Ivar Dahl

    Missing Spring logging after upgrade from 4.0.0 to 4.0.2

    Karl Ivar Dahl Newbie

      After upgrading JBoss 4.0.0 to 4.0.2, I have suddenly lost much of the helpful errormessages from spring.

      Example from 4.0.0 log:

      12:49:50,984 ERROR [LogInterceptor] EJBException in method: public abstract void no.nsb.eos.service.schedule.ScheduleHelperService.setAktiv(boolean) throws java.rmi.RemoteException, causedBy:
      org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'no.nsb.eos' defined in URL [jar:file:/C:/nsb_eos_tools/jboss-4.0.0/server/default/tmp/deploy/tmp58921eos-core-3.0.sar-contents/eos-core.jar!/eos-beanRefContext.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.FatalBeanException: Could not instantiate class [org.springframework.context.support.ClassPathXmlApplicationContext]; constructor threw exception; nested exception is org
      .springframework.beans.factory.BeanCreationException: Error creating bean with name 'salderingsService' defined in class path resource [eos-serviceContext.xml]: Can't resolve reference to bean 'salderingsServiceTarget' while setting property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'salderingsServiceTarget' defined in class path resource [eos-serviceContext.xml]: Error setting property values; nested exception is org.spr
      ingframework.beans.NotWritablePropertyException: Invalid property 'salderingsRepositoryy' of bean class [no.nsb.eos.service.saldering.SalderingsServiceImpl]: Bean property 'salderingsRepositoryy' is not writable or has an invalid setter method: Does the parameter type of the setter match the return type of the getter?
      org.springframework.beans.FatalBeanException: Could not instantiate class [org.springframework.context.support.ClassPathXmlApplicationContext]; constructor threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'salderingsService' defined in class path resource [eos-serviceContext.xml]: Can't resolve reference to bean 'salderingsServiceTarget' while setting property 'target'; nested exception is org.springframework.beans.factor
      y.BeanCreationException: Error creating bean with name 'salderingsServiceTarget' defined in class path resource [eos-serviceContext.xml]: Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'salderingsRepositoryy' of bean class [no.nsb.eos.service.saldering.SalderingsServiceImpl]: Bean property 'salderingsRepositoryy' is not writable or has an invalid setter method: Does the parameter type of the setter match the return type
       of the getter?
      org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'salderingsService' defined in class path resource [eos-serviceContext.xml]: Can't resolve reference to bean 'salderingsServiceTarget' while setting property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'salderingsServiceTarget' defined in class path resource [eos-serviceContext.xml]: Error setting property values; nested exception is org.
      springframework.beans.NotWritablePropertyException: Invalid property 'salderingsRepositoryy' of bean class [no.nsb.eos.service.saldering.SalderingsServiceImpl]: Bean property 'salderingsRepositoryy' is not writable or has an invalid setter method: Does the parameter type of the setter match the return type of the getter?
      org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'salderingsServiceTarget' defined in class path resource [eos-serviceContext.xml]: Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'salderingsRepositoryy' of bean class [no.nsb.eos.service.saldering.SalderingsServiceImpl]: Bean property 'salderingsRepositoryy' is not writable or has an invalid setter method: Does the parameter type of
      the setter match the return type of the getter?
      org.springframework.beans.NotWritablePropertyException: Invalid property 'salderingsRepositoryy' of bean class [no.nsb.eos.service.saldering.SalderingsServiceImpl]: Bean property 'salderingsRepositoryy' is not writable or has an invalid setter method: Does the parameter type of the setter match the return type of the getter?
       at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:772)
      


      The same error under JBoss 4.0.2:
      2005-12-30 12:14:45,378 INFO [SessionFactoryImpl] (Timer-3:) closing
      2005-12-30 12:14:45,644 INFO [DefaultListableBeanFactory] (Timer-3:) Destroying singletons in factory {org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans [no.nsb.eos]; root of BeanFactory hierarchy}
      12:14:45,644 ERROR [LogInterceptor](Timer-3:) EJBException in method: public abstract no.nsb.eos.service.schedule.ejb.ScheduleHelperServiceRemote no.nsb.eos.service.schedule.ejb.ScheduleHelperServiceHome.create() throws javax.ejb.CreateException,java.rmi.RemoteException:
      javax.ejb.EJBException: Could not instantiate bean
       at org.jboss.ejb.plugins.AbstractInstancePool.get(AbstractInstancePool.java:180)
       at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invokeHome(StatelessSessionInstanceInterceptor.java:78)
       at org.jboss.ejb.plugins.AbstractInterceptor.invokeHome(AbstractInterceptor.java:90)
       at org.jboss.ejb.plugins.CallValidationInterceptor.invokeHome(CallValidationInterceptor.java:41)
       at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:109)
       at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:335)
       at org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxInterceptorCMT.java:146)
       at org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:116)
       at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:121)
       at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invokeHome(ProxyFactoryFinderInterceptor.java:93)
       at org.jboss.ejb.SessionContainer.internalInvokeHome(SessionContainer.java:613)
       at org.jboss.ejb.Container.invoke(Container.java:894)
       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.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
       at org.jboss.invocation.local.LocalInvoker$MBeanServerAction.invoke(LocalInvoker.java:155)
       at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:104)
       at org.jboss.invocation.InvokerInterceptor.invokeLocal(InvokerInterceptor.java:179)
       at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:165)
       at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:46)
       at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:55)
       at org.jboss.proxy.ejb.HomeInterceptor.invoke(HomeInterceptor.java:169)
       at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:86)
       at $Proxy75.create(Unknown Source)
       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.springframework.ejb.access.AbstractSlsbInvokerInterceptor.create(AbstractSlsbInvokerInterceptor.java:175)
       at org.springframework.ejb.access.AbstractRemoteSlsbInvokerInterceptor.newSessionBeanInstance(AbstractRemoteSlsbInvokerInterceptor.java:202)
       at org.springframework.ejb.access.SimpleRemoteSlsbInvokerInterceptor.getSessionBeanInstance(SimpleRemoteSlsbInvokerInterceptor.java:108)
       at org.springframework.ejb.access.SimpleRemoteSlsbInvokerInterceptor.doInvoke(SimpleRemoteSlsbInvokerInterceptor.java:74)
       at org.springframework.ejb.access.AbstractRemoteSlsbInvokerInterceptor.invoke(AbstractRemoteSlsbInvokerInterceptor.java:114)
       at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:144)
       at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:174)
       at $Proxy82.setAktiv(Unknown Source)
       at no.nsb.eos.service.schedule.ScheduleServiceImpl.process(ScheduleServiceImpl.java:77)
       at no.nsb.eos.schedule.Scheduler.perform(Scheduler.java:73)
       at org.jboss.varia.scheduler.Scheduler$Listener.handleNotification(Scheduler.java:1221)
       at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:585)
       at org.jboss.mx.notification.NotificationListenerProxy.invoke(NotificationListenerProxy.java:138)
       at $Proxy9.handleNotification(Unknown Source)
       at javax.management.NotificationBroadcasterSupport.handleNotification(NotificationBroadcasterSupport.java:221)
       at javax.management.NotificationBroadcasterSupport.sendNotification(NotificationBroadcasterSupport.java:184)
       at javax.management.timer.Timer.sendNotification(Timer.java:1295)
       at javax.management.timer.Timer.notifyAlarmClock(Timer.java:1264)
       at javax.management.timer.TimerAlarmClock.run(Timer.java:1347)
       at java.util.TimerThread.mainLoop(Timer.java:512)
       at java.util.TimerThread.run(Timer.java:462)
      2005-12-30 12:14:45,832 INFO [XmlBeanDefinitionReader] (Timer-3:) Loading XML bean definitions from URL [jar:file:/C:/nsb_eos_tools/jboss-4.0.2/server/default/tmp/deploy/tmp35005eos-core-3.0.sar-contents/eos-core.jar!/eos-beanRefContext.xml]
      


      As far as I can see, the relevant log4j config is identical on the two deployments, but the 4.0.2 log is useless.

      Does anyone have an idea where to start looking?

      Thanks,
      Karl Ivar Dahl