We are getting an error when the cartridge agent is starting, looks like the 
(local) build it is pulling 2 different versions of SLF4J (see exception below) 
when the cartridge zip file is generated which causes an incompatibility, has 
anyone else seen this ?

Any idea what's causing it and how to resolve it ?

Thanks

Martin


log4j:WARN Please initialize the log4j system properly.
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in 
[jar:file:/opt/apache-stratos-cartridge-agent-4.0.0/lib/slf4j-1.5.10.wso2v1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in 
[jar:file:/opt/apache-stratos-cartridge-agent-4.0.0/lib/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
log4j:WARN Please initialize the log4j system properly.
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in 
[jar:file:/opt/apache-stratos-cartridge-agent-4.0.0/lib/slf4j-1.5.10.wso2v1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in 
[jar:file:/opt/apache-stratos-cartridge-agent-4.0.0/lib/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
"/var/log/apache-stratos/cartridge-agent.log" 48L, 5449C                        
               1,1           Top
        at 
org.apache.activemq.transport.AbstractInactivityMonitor.onException(AbstractInactivityMonitor.java:310)
        at 
org.apache.activemq.transport.TransportSupport.onException(TransportSupport.java:96)
        at 
org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:200)
        at java.lang.Thread.run(Thread.java:745)
Exception in thread "Thread-3" java.lang.NoSuchMethodError: 
org.slf4j.helpers.MessageFormatter.format(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/String;
        at org.slf4j.impl.Log4jLoggerAdapter.debug(Log4jLoggerAdapter.java:246)
        at 
org.apache.activemq.thread.TaskRunnerFactory.init(TaskRunnerFactory.java:91)
        at 
org.apache.activemq.thread.TaskRunnerFactory.execute(TaskRunnerFactory.java:149)
        at 
org.apache.activemq.thread.TaskRunnerFactory.execute(TaskRunnerFactory.java:145)
        at 
org.apache.activemq.transport.tcp.TcpTransport.doStop(TcpTransport.java:538)
        at org.apache.activemq.util.ServiceSupport.stop(ServiceSupport.java:71)
        at 
org.apache.activemq.transport.tcp.TcpTransport.stop(TcpTransport.java:582)
        at 
org.apache.activemq.transport.AbstractInactivityMonitor.stop(AbstractInactivityMonitor.java:145)
        at 
org.apache.activemq.transport.TransportFilter.stop(TransportFilter.java:65)
        at 
org.apache.activemq.transport.WireFormatNegotiator.stop(WireFormatNegotiator.java:91)
        at 
org.apache.activemq.transport.TransportFilter.stop(TransportFilter.java:65)
        at 
org.apache.activemq.transport.TransportFilter.stop(TransportFilter.java:65)
        at 
org.apache.activemq.transport.ResponseCorrelator.stop(ResponseCorrelator.java:132)
        at 
org.apache.activemq.util.ServiceSupport.dispose(ServiceSupport.java:43)
        at 
org.apache.activemq.ActiveMQConnection.close(ActiveMQConnection.java:725)
        at 
org.apache.stratos.messaging.broker.connect.TopicConnector.close(TopicConnector.java:86)
        at 
org.apache.stratos.messaging.broker.subscribe.TopicSubscriber.run(TopicSubscriber.java:157)
        at java.lang.Thread.run(Thread.java:745)

Reply via email to