Uploaded image for project: 'James Server'
  1. James Server
  2. JAMES-1541

James won't start when Tarpit is active - TarpitHandler not found

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.0-beta4, 3.0.0-beta5
    • Fix Version/s: None
    • Component/s: James Core
    • Labels:
      None
    • Environment:
      Ubuntu 12.04

      Description

      I deployed james-server-app-3.0.0-beta5-20140130.003646-329-app.tar.gz.

      Uncommented the tarpit handler in smtpserver.xml and started the server.
      Server fails to start due to the following exception:

      INFO | jvm 1 | 2014/02/03 23:27:10 | WrapperSimpleApp: Encountered an error running main: org.springframework.beans.factory.BeanCreationException: Error creating b
      ean with name 'smtpserver': Invocation of init method failed; nested exception is org.apache.james.protocols.lib.handler.ProtocolHandlerLoader$LoadingException: Unable
      to load handler
      INFO | jvm 1 | 2014/02/03 23:27:10 | org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'smtpserver': Invocation of init method
      failed; nested exception is org.apache.james.protocols.lib.handler.ProtocolHandlerLoader$LoadingException: Unable to load handler
      INFO | jvm 1 | 2014/02/03 23:27:10 | at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(I
      nitDestroyAnnotationBeanPostProcessor.java:135)
      INFO | jvm 1 | 2014/02/03 23:27:10 | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitializat
      ion(AbstractAutowireCapableBeanFactory.java:394)
      INFO | jvm 1 | 2014/02/03 23:27:10 | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBe
      anFactory.java:1448)
      INFO | jvm 1 | 2014/02/03 23:27:10 | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBean
      Factory.java:519)
      INFO | jvm 1 | 2014/02/03 23:27:10 | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFa
      ctory.java:456)
      INFO | jvm 1 | 2014/02/03 23:27:10 | at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
      INFO | jvm 1 | 2014/02/03 23:27:10 | at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java
      :225)
      INFO | jvm 1 | 2014/02/03 23:27:10 | at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
      INFO | jvm 1 | 2014/02/03 23:27:10 | at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
      INFO | jvm 1 | 2014/02/03 23:27:10 | at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFact
      ory.java:609)
      INFO | jvm 1 | 2014/02/03 23:27:10 | at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationCon
      text.java:918)
      INFO | jvm 1 | 2014/02/03 23:27:10 | at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:469)
      INFO | jvm 1 | 2014/02/03 23:27:10 | at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)
      INFO | jvm 1 | 2014/02/03 23:27:10 | at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:93)
      INFO | jvm 1 | 2014/02/03 23:27:10 | at org.apache.james.container.spring.context.JamesServerApplicationContext.<init>(JamesServerApplicationContext.java:39)
      INFO | jvm 1 | 2014/02/03 23:27:10 | at org.apache.james.app.spring.JamesAppSpringMain.init(JamesAppSpringMain.java:61)
      INFO | jvm 1 | 2014/02/03 23:27:10 | at org.apache.james.app.spring.JamesAppSpringMain.main(JamesAppSpringMain.java:42)
      INFO | jvm 1 | 2014/02/03 23:27:10 | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      INFO | jvm 1 | 2014/02/03 23:27:10 | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      INFO | jvm 1 | 2014/02/03 23:27:10 | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      INFO | jvm 1 | 2014/02/03 23:27:10 | at java.lang.reflect.Method.invoke(Method.java:606)
      INFO | jvm 1 | 2014/02/03 23:27:10 | at org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:240)
      INFO | jvm 1 | 2014/02/03 23:27:10 | at java.lang.Thread.run(Thread.java:724)
      INFO | jvm 1 | 2014/02/03 23:27:10 | Caused by: org.apache.james.protocols.lib.handler.ProtocolHandlerLoader$LoadingException: Unable to load handler
      INFO | jvm 1 | 2014/02/03 23:27:10 | at org.apache.james.container.spring.bean.factory.protocols.ProtocolHandlerLoaderBeanFactory.load(ProtocolHandlerLoaderBeanFactory.java:46)
      INFO | jvm 1 | 2014/02/03 23:27:10 | at org.apache.james.protocols.lib.ProtocolHandlerChainImpl.init(ProtocolHandlerChainImpl.java:83)
      INFO | jvm 1 | 2014/02/03 23:27:10 | at org.apache.james.protocols.lib.netty.AbstractProtocolAsyncServer.preInit(AbstractProtocolAsyncServer.java:52)
      INFO | jvm 1 | 2014/02/03 23:27:10 | at org.apache.james.smtpserver.netty.SMTPServer.preInit(SMTPServer.java:95)
      INFO | jvm 1 | 2014/02/03 23:27:10 | at org.apache.james.protocols.lib.netty.AbstractConfigurableAsyncServer.init(AbstractConfigurableAsyncServer.java:270)
      INFO | jvm 1 | 2014/02/03 23:27:10 | at org.apache.james.protocols.lib.netty.AbstractServerFactory.init(AbstractServerFactory.java:66)
      INFO | jvm 1 | 2014/02/03 23:27:10 | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      INFO | jvm 1 | 2014/02/03 23:27:10 | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      INFO | jvm 1 | 2014/02/03 23:27:10 | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      INFO | jvm 1 | 2014/02/03 23:27:10 | at java.lang.reflect.Method.invoke(Method.java:606)
      INFO | jvm 1 | 2014/02/03 23:27:10 | at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:346)
      INFO | jvm 1 | 2014/02/03 23:27:10 | at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:299)
      INFO | jvm 1 | 2014/02/03 23:27:10 | at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:132)
      INFO | jvm 1 | 2014/02/03 23:27:10 | ... 22 more
      INFO | jvm 1 | 2014/02/03 23:27:10 | Caused by: java.lang.ClassNotFoundException: org.apache.james.smtpserver.fastfail.TarpitHandler
      INFO | jvm 1 | 2014/02/03 23:27:10 | at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
      INFO | jvm 1 | 2014/02/03 23:27:10 | at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
      INFO | jvm 1 | 2014/02/03 23:27:10 | at java.security.AccessController.doPrivileged(Native Method)
      INFO | jvm 1 | 2014/02/03 23:27:10 | at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
      INFO | jvm 1 | 2014/02/03 23:27:10 | at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
      INFO | jvm 1 | 2014/02/03 23:27:10 | at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
      INFO | jvm 1 | 2014/02/03 23:27:10 | at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
      INFO | jvm 1 | 2014/02/03 23:27:10 | at org.apache.james.container.spring.bean.factory.protocols.ProtocolHandlerLoaderBeanFactory.load(ProtocolHandlerLoaderBeanFactory.java:39)
      INFO | jvm 1 | 2014/02/03 23:27:10 | ... 34 more
      STATUS | wrapper | 2014/02/03 23:27:12 | <-- Wrapper Stopped

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              shahar.davidson Shahar Davidson
            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 0.5h
                0.5h