javaspringspring-mvcdiameter-protocol

Error using openblox diameter server in Spring MVC?


Bit of a specific one this..

I'm having trouble using the Openblox diameter stack when using Spring MVC, specifically the init method call on the transport stack:

import com.traffix.openblox.core.transport.TransportStack;

Stack stack = new TransportStack();
stack.init(configureStack());

I'm getting a null pointer exception on the call to init - note that the Configuration returned from configureStack() is valid and works on non-Spring MVC projects. Heres the stack trace:

 2776 [pool-2-thread-1] WARN com.traffix.openblox.core.fsm.StateMachine  - Idle failed to process <Initiate Transport Stack( Idle) 
java.lang.NullPointerException
    at com.traffix.openblox.core.utils.logging.StackLogger.init(Unknown Source)
    at com.traffix.openblox.core.transport.Stack.g(Unknown Source)
    at com.traffix.openblox.core.transport.TransportStack.g(Unknown Source)
    at com.traffix.openblox.core.transport.u.N(Unknown Source)
    at com.traffix.openblox.core.transport.c$a.processEvent(Unknown Source)
    at com.traffix.openblox.core.fsm.StateMachine.a(Unknown Source)
    at com.traffix.openblox.core.fsm.StateMachine.a(Unknown Source)
    at com.traffix.openblox.core.transport.u.a(Unknown Source)
    at com.traffix.openblox.core.transport.Stack.init(Unknown Source)
    at com.rory.services.pcrf.simulator.PcrfSimulator.initialize(PcrfSimulator.java:131)
    at com.rory.services.pcrf.simulator.PcrfSimulator.<init>(PcrfSimulator.java:113)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

Solution

  • There is some sort of conflict between Openblox and Tomcat. Workaround for now is by removing conf/logging.properties from the Tomcat directory.