You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Michele Mazzucco <Mi...@ncl.ac.uk> on 2006/11/08 16:31:42 UTC
[Axis2] NullPointerException in org.apache.axis2.transport.http.AxisServlet
Hi all,
I'm getting a NPE in AxisServlet and I don't know the reason.
Please find attached the tomcat output (axis2 is set to debug) and the
custom handler.
The handler has always worked fine when the invoke method signature was
"void": should I change anyting (apart from the return type)?
Any clue?
Michele
Re: [Axis2] NullPointerException in org.apache.axis2.transport.http.AxisServlet
Posted by Sanka Samaranayke <ss...@gmail.com>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi Michele,
Note that if you add any <operation> element within the <service> element
in the services.xml, you must specify the mep attribute of for that
<operation>
element.
e.g.
<operation name="ping" mep="http://www.w3.org/2004/08/wsdl/in-only"> ..
...
</opertion>
Sanka
Deepal Jayasinghe wrote:
> Hi Michele;
>
> You need to add message receivers as follows;
> <service>
> <messageReceivers>
> <messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-only"
>
> class="org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver"/>
> <messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-out"
>
> class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/>
> </messageReceivers>
>
> And it is working correctly , pls have a look at the service life cycle
> sample. And you do not need to specify message receivers at each
> operation level.
>
> Thanks
> Deepal
> </service>
>
>> Hi again,
>>
>> I've found out a problem was due to a mis configured services.xml (the
>> message receiver must be declared inside each operation, it is not legal
>> to declare all used message receivers this way:
>>
>> <messageReceivers>
>> <messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-only"
>>
>> class="org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver"/>
>> <messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-out"
>>
>> class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/>
>> </messageReceivers>
>>
>> and this was the cause of:
>> 2006-11-08 15:18:20,954 [org.apache.axis2.transport.http.AxisServlet] -
>> org.apache.axis2.AxisFault: ServiceClass does not implement required
>> method of the form OMElement addService(OMElement e)
>>
>> but I still have this:
>>
>> DEBUG Phase:invoke - Invoking Handler 'AddressingBasedDispatcher' in
>> Phase 'Dispatch'
>> DEBUG ProjectResourceBundle:handleGetObject -
>> org.apache.axis2.i18n.resource::handleGetObject(checkingserviceforepr)
>> DEBUG AddressingBasedDispatcher:findService - Checking for Service using
>> toEPRs address : {0}
>> DEBUG ProjectResourceBundle:handleGetObject -
>> org.apache.axis2.i18n.resource::handleGetObject(checkingserviceforepr)
>> DEBUG AddressingBasedDispatcher:findService - Checking for Service using
>> toEPRs address : {0}
>> DEBUG ProjectResourceBundle:handleGetObject -
>> org.apache.axis2.i18n.resource::handleGetObject(servicefound)
>> DEBUG AbstractDispatcher:invoke - Found AxisService : RoutingService
>> DEBUG ProjectResourceBundle:handleGetObject -
>> org.apache.axis2.i18n.resource::handleGetObject(checkingoperation)
>> DEBUG AddressingBasedDispatcher:findOperation - Checking for Operation
>> using WSAAction : urn:addNode
>> DEBUG ProjectResourceBundle:handleGetObject -
>> org.apache.axis2.i18n.resource::handleGetObject(operationfound)
>> DEBUG AbstractDispatcher:invoke - Found AxisOperation : addNode
>> DEBUG Phase:invoke - Invoking Handler 'SOAPMessageBodyBasedDispatcher'
>> in Phase 'Dispatch'
>> DEBUG Phase:invoke - Invoking Handler 'InstanceDispatcher' in Phase
>> 'Dispatch'
>> DEBUG Phase:invoke - Invoking Handler 'AddressingWSDLValidationHandler'
>> in Phase 'Dispatch'
>> DEBUG Phase:invoke - Checking post-conditions for phase "Dispatch"
>> DEBUG Phase:invoke - Checking pre-condition for Phase "OperationInPhase"
>> DEBUG Phase:invoke - Invoking phase "OperationInPhase"
>> DEBUG Phase:invoke - Checking post-conditions for phase "OperationInPhase"
>> DEBUG Phase:invoke - Checking pre-condition for Phase "soapmonitorPhase"
>> DEBUG Phase:invoke - Invoking phase "soapmonitorPhase"
>> DEBUG Phase:invoke - Checking post-conditions for phase "soapmonitorPhase"
>> DEBUG Phase:invoke - Checking pre-condition for Phase
>> "ManagerInterceptorPhase"
>> DEBUG Phase:invoke - Invoking phase "ManagerInterceptorPhase"
>> DEBUG Phase:invoke - Invoking Handler 'InFlowManagerHandler' in Phase
>> 'ManagerInterceptorPhase'
>> DEBUG Phase:invoke - Checking post-conditions for phase
>> "ManagerInterceptorPhase"
>> DEBUG Phase:invoke - Checking pre-condition for Phase "Transport"
>> DEBUG Phase:invoke - Invoking phase "Transport"
>> DEBUG Phase:invoke - Invoking Handler 'SOAPActionBasedDispatcher' in
>> Phase 'Transport'
>> DEBUG SOAPActionBasedDispatcher:findService - Checking for Service using
>> SOAPAction is a TODO item
>> DEBUG Phase:invoke - Checking post-conditions for phase "Transport"
>> DEBUG Phase:invoke - Checking pre-condition for Phase "Security"
>> DEBUG Phase:invoke - Invoking phase "Security"
>> DEBUG Phase:invoke - Checking post-conditions for phase "Security"
>> DEBUG Phase:invoke - Checking pre-condition for Phase "PreDispatch"
>> DEBUG Phase:invoke - Invoking phase "PreDispatch"
>> DEBUG Phase:invoke - Invoking Handler 'AddressingFinalInHandler' in
>> Phase 'PreDispatch'
>> DEBUG AddressingInHandler:invoke - Starting WS-Addressing Final IN
>> handler ...
>> DEBUG AddressingInHandler:invoke - No Headers present corresponding to
>> WS-Addressing Final
>> DEBUG Phase:invoke - Invoking Handler 'AddressingSubmissionInHandler' in
>> Phase 'PreDispatch'
>> DEBUG AddressingInHandler:invoke - Starting WS-Addressing Submission IN
>> handler ...
>> DEBUG AddressingInHandler:invoke - No Headers present corresponding to
>> WS-Addressing Submission
>> DEBUG Phase:invoke - Checking post-conditions for phase "PreDispatch"
>> DEBUG Phase:invoke - Checking pre-condition for Phase "Dispatch"
>> DEBUG Phase:invoke - Invoking phase "Dispatch"
>> DEBUG Phase:invoke - Invoking Handler 'AddressingBasedDispatcher' in
>> Phase 'Dispatch'
>> DEBUG ProjectResourceBundle:handleGetObject -
>> org.apache.axis2.i18n.resource::handleGetObject(checkingserviceforepr)
>> DEBUG AddressingBasedDispatcher:findService - Checking for Service using
>> toEPRs address : {0}
>> DEBUG ProjectResourceBundle:handleGetObject -
>> org.apache.axis2.i18n.resource::handleGetObject(checkingserviceforepr)
>> DEBUG AddressingBasedDispatcher:findService - Checking for Service using
>> toEPRs address : {0}
>> DEBUG ProjectResourceBundle:handleGetObject -
>> org.apache.axis2.i18n.resource::handleGetObject(servicefound)
>> DEBUG AbstractDispatcher:invoke - Found AxisService : RoutingService
>> DEBUG ProjectResourceBundle:handleGetObject -
>> org.apache.axis2.i18n.resource::handleGetObject(checkingoperation)
>> DEBUG AddressingBasedDispatcher:findOperation - Checking for Operation
>> using WSAAction : urn:addService
>> DEBUG ProjectResourceBundle:handleGetObject -
>> org.apache.axis2.i18n.resource::handleGetObject(operationfound)
>> DEBUG AbstractDispatcher:invoke - Found AxisOperation : addService
>> DEBUG Phase:invoke - Invoking Handler 'SOAPMessageBodyBasedDispatcher'
>> in Phase 'Dispatch'
>> DEBUG Phase:invoke - Invoking Handler 'InstanceDispatcher' in Phase
>> 'Dispatch'
>> DEBUG Phase:invoke - Invoking Handler 'AddressingWSDLValidationHandler'
>> in Phase 'Dispatch'
>> DEBUG Phase:invoke - Checking post-conditions for phase "Dispatch"
>> DEBUG Phase:invoke - Checking pre-condition for Phase "OperationInPhase"
>> DEBUG Phase:invoke - Invoking phase "OperationInPhase"
>> DEBUG Phase:invoke - Checking post-conditions for phase "OperationInPhase"
>> DEBUG Phase:invoke - Checking pre-condition for Phase "soapmonitorPhase"
>> DEBUG Phase:invoke - Invoking phase "soapmonitorPhase"
>> DEBUG Phase:invoke - Checking post-conditions for phase "soapmonitorPhase"
>> DEBUG Phase:invoke - Checking pre-condition for Phase
>> "ManagerInterceptorPhase"
>> DEBUG Phase:invoke - Invoking phase "ManagerInterceptorPhase"
>> DEBUG Phase:invoke - Invoking Handler 'InFlowManagerHandler' in Phase
>> 'ManagerInterceptorPhase'
>> ERROR AxisServlet:doPost - java.lang.NullPointerException
>> DEBUG AddressingHelper:isFaultRedirected - isReplyRedirected: FaultTo is
>> null. Returning isReplyRedirected
>> DEBUG AddressingHelper:isReplyRedirected - isReplyRedirected: ReplyTo is
>> null. Returning false
>> DEBUG Phase:invoke - Checking pre-condition for Phase "MessageOut"
>> DEBUG Phase:invoke - Invoking phase "MessageOut"
>> DEBUG Phase:invoke - Invoking Handler 'AddressingOutHandler' in Phase
>> 'MessageOut'
>> DEBUG EndpointReferenceHelper:toOM - toOM: Factory,
>> org.apache.axiom.soap.impl.llom.soap12.SOAP12Factory@6de609
>> DEBUG EndpointReferenceHelper:toOM - toOM: Endpoint reference, Address:
>> http://www.w3.org/2005/08/addressing/none
>> DEBUG EndpointReferenceHelper:toOM - toOM: Element qname,
>> {http://www.w3.org/2005/08/addressing}ReplyTo
>> DEBUG EndpointReferenceHelper:toOM - toOM: Addressing namespace,
>> http://www.w3.org/2005/08/addressing
>> DEBUG Phase:invoke - Checking post-conditions for phase "MessageOut"
>>
>>
>> Any clue?
>>
>>
>>
>> Michele
>>
>>
>> Michele Mazzucco wrote:
>>
>>
>>> Hi all,
>>>
>>> I'm getting a NPE in AxisServlet and I don't know the reason.
>>> Please find attached the tomcat output (axis2 is set to debug) and the
>>> custom handler.
>>> The handler has always worked fine when the invoke method signature was
>>> "void": should I change anyting (apart from the return type)?
>>>
>>> Any clue?
>>>
>>> Michele
>>>
>>>
>>> ------------------------------------------------------------------------
>>>
>>> /*
>>> * QoSP Project
org.ncl.ac.uk.qosp.modules.manager.RouterDispatcher.java Created
>>> * on 02-Jun-2006, 12:02:14
>>> */
>>> package ncl.qosp.modules.manager;
>>>
>>> import java.util.Iterator;
>>>
>>> import javax.xml.namespace.QName;
>>>
>>> import ncl.qosp.core.MessageType;
>>> import ncl.qosp.core.RoutingConstants;
>>> import ncl.qosp.core.SOAPConstants;
>>> import ncl.qosp.core.SOAPHeaderConstants;
>>> import ncl.qosp.utils.FileUtils;
>>>
>>> import org.apache.axiom.om.OMException;
>>> import org.apache.axiom.soap.SOAPHeader;
>>> import org.apache.axiom.soap.SOAPHeaderBlock;
>>> import org.apache.axis2.AxisFault;
>>> import org.apache.axis2.addressing.AddressingConstants;
>>> import org.apache.axis2.addressing.EndpointReference;
>>> import org.apache.axis2.context.MessageContext;
>>> import org.apache.axis2.description.AxisOperation;
>>> import org.apache.axis2.description.AxisService;
>>> import org.apache.axis2.description.HandlerDescription;
>>> import org.apache.axis2.engine.AbstractDispatcher;
>>> import org.apache.axis2.engine.AxisConfiguration;
>>> import org.apache.axis2.util.Utils;
>>> import org.apache.log4j.Level;
>>> import org.apache.log4j.Logger;
>>>
>>> /**
>>> * Dispatches the client request to the manager service. All the core
>>> * informations, that is target service and target method, are saved
into the
>>> * {@link org.apache.axis2.context.MessageContext} options.
>>> * <p>
>>> * This handler replaces the
>>> * {@link org.apache.axis2.engine.RequestURIBasedDispatcher} handler
in the
>>> * incoming chain (transport phase).
>>> * <p>
>>> * To get the target WS addressing action mapping the SOAP header is
parsed.
>>> *
>>> * @author <a href="mailto:Michele.Mazzucco@ncl.ac.uk">Michele
Mazzucco</a>
>>> * @version 0.2
>>> * @since 0.1
>>> * @see "$AXIS2_HOME/webapps/axis2/WEB-INF/conf/axis2.xml"
>>> */
>>> public class RouterDispatcher extends AbstractDispatcher {
>>>
>>> // ///////////////////////////////////////////////////////////////////
>>> // Constants
>>> // ///////////////////////////////////////////////////////////////////
>>>
>>> /**
>>> * The dispatcher's name.
>>> *
>>> * @see #initDispatcher()
>>> */
>>> private static final String DISPATCHER_NAME = "RouterDispatcher";
>>>
>>> /**
>>> *
>>> */
>>> private static final QName WSA_ACTION = new QName(
>>> AddressingConstants.WSA_ACTION);
>>>
>>> // ///////////////////////////////////////////////////////////////////
>>> // Logger
>>> // ///////////////////////////////////////////////////////////////////
>>>
>>> /** Logger. */
>>> private static Logger log;
>>>
>>> static {
>>> log = Logger.getLogger(RouterDispatcher.class);
>>> }
>>>
>>> // ///////////////////////////////////////////////////////////////////
>>> // Fields
>>> // ///////////////////////////////////////////////////////////////////
>>>
>>> /** The target operation. */
>>> private String targetOperationName;
>>>
>>> /** The target service. */
>>> private String targetServiceName;
>>>
>>> /** Message arrival time. */
>>> private long arrivalTime;
>>>
>>>
>>> // ///////////////////////////////////////////////////////////////////
>>> // Methods from AbstractDispatcher
>>> // ///////////////////////////////////////////////////////////////////
>>>
>>> // The findOperation and findService are very similar to the ones
>>> // implemented
>>> // in RequestURIBasedDispatcher
>>>
>>> /*
>>> * @see
org.apache.axis2.engine.AbstractDispatcher#findOperation(org.apache.axis2.description.AxisService,
>>> * org.apache.axis2.context.MessageContext)
>>> */
>>> @Override
>>> public AxisOperation findOperation(AxisService service,
>>> MessageContext messageContext) {
>>> /*
>>> * if (log.isDebugEnabled()) { log.debug("Trying to find the
required
>>> * operation"); }
>>> */
>>>
>>> AxisOperation result = null;
>>>
>>> EndpointReference toEPR = messageContext.getTo();
>>> if ((toEPR != null) && (targetOperationName == null)) {
>>> String filePart = toEPR.getAddress();
>>> String[] values = Utils.parseRequestURLForServiceAndOperation(
>>> filePart, messageContext.getConfigurationContext()
>>> .getServicePath());
>>>
>>> // The previous call returns an array of lenght 2, where
values[1]
>>> // holds the operation name
>>> if ((values[1] != null) && (values[1].length() > 0)) {
>>> targetOperationName = values[1];
>>> }
>>> }
>>>
>>> result =
service.getOperation(RoutingConstants.FORWARD_OPERATION_NAME);
>>>
>>> return result;
>>> } // -- findOperation()
>>>
>>>
>>> /*
>>> * @see
org.apache.axis2.engine.AbstractDispatcher#findService(org.apache.axis2.context.MessageContext)
>>> */
>>> @Override
>>> public AxisService findService(MessageContext messageContext)
>>> throws AxisFault {
>>>
>>> AxisService result = null;
>>> EndpointReference toEPR = messageContext.getTo();
>>>
>>> if (toEPR != null) {
>>> String address = toEPR.getAddress();
>>>
>>> // Returns a 2 values array
>>> String[] values = Utils.parseRequestURLForServiceAndOperation(
>>> address, messageContext.getConfigurationContext()
>>> .getServicePath());
>>>
>>> if ((values[1] != null) && (values[1].length() > 0)) {
>>> targetOperationName = values[1];
>>> }
>>> if ((values[0] != null) && (values[0].length() > 0)) {
>>> targetServiceName = values[0];
>>> /*
>>> * if (log.isDebugEnabled()) { log.debug("Target
service is [" +
>>> * targetServiceName + "]"); }
>>> */
>>>
>>> AxisConfiguration registry = messageContext
>>> .getConfigurationContext().getAxisConfiguration();
>>>
>>> /*
>>> * If the target service is 'version', allow the
request to pass
>>> * through
>>> */
>>> if (targetServiceName.equalsIgnoreCase("version")) {
>>> result = registry.getService(targetServiceName);
>>> } else {
>>> // Forwards the request to the 'RoutingService'
service
>>> result = registry
>>>
.getService(RoutingConstants.FORWARD_SERVICE_NAME);
>>> }
>>> }
>>> }
>>>
>>> return result;
>>>
>>> } // -- findService()
>>>
>>>
>>> /*
>>> * @see org.apache.axis2.engine.AbstractDispatcher#initDispatcher()
>>> */
>>> @Override
>>> public void initDispatcher() {
>>> init(new HandlerDescription(DISPATCHER_NAME));
>>> }
>>>
>>>
>>> /*
>>> * @see
org.apache.axis2.engine.AbstractDispatcher#invoke(org.apache.axis2.context.MessageContext)
>>> */
>>> @Override
>>> public InvocationResponse invoke(MessageContext messageContext)
>>> throws AxisFault {
>>>
>>> log.info("Handler invoked");
>>> try {
>>> SOAPHeader header = messageContext.getEnvelope().getHeader();
>>> String messageType =
SOAPHeaderConstants.getQospMessage(header);
>>>
>>> if (messageType != null) {
>>> if (log.isDebugEnabled()) {
>>> log.debug("Internal message [" + messageType + "]");
>>> }
>>>
>>> if
(messageType.equalsIgnoreCase(MessageType.RESULT.value())) {
>>>
removeRelatesTo(messageContext.getEnvelope().getHeader());
>>> if (log.isDebugEnabled()) {
>>> log
>>> .debug("Response message (removed the
RelatesTo header)");
>>> }
>>> }
>>>
>>> } else {
>>> if (log.isDebugEnabled()) {
>>> log.debug("Received client request");
>>> }
>>>
>>> clientRequest(messageContext);
>>> }
>>> } catch (OMException e) {
>>> if (log.isEnabledFor(Level.ERROR)) {
>>> log.error(FileUtils.getNow()
>>> + ": unable to get the SOAP header: "
>>> + e.getLocalizedMessage());
>>> }
>>> throw new AxisFault(e);
>>> }
>>>
>>> return InvocationResponse.CONTINUE;
>>>
>>> } // -- invoke()
>>>
>>>
>>> // ///////////////////////////////////////////////////////////////////
>>> // Private methods
>>> // ///////////////////////////////////////////////////////////////////
>>>
>>> /**
>>> * Removes the {@link AddressingConstants#WSA_RELATES_TO} element
from the
>>> * SOAP header. This is needed because the result receiver is
different from
>>> * the requestor.
>>> *
>>> * @param header The SOAP header message without the 'RelatesTo'
element.
>>> */
>>> @SuppressWarnings("unchecked")
>>> private final void removeRelatesTo(SOAPHeader header) {
>>> for (Iterator<SOAPHeaderBlock> i =
header.examineAllHeaderBlocks(); i
>>> .hasNext();) {
>>> SOAPHeaderBlock tmp = i.next();
>>>
>>> if (tmp.getLocalName().equalsIgnoreCase(
>>> AddressingConstants.WSA_RELATES_TO)) {
>>> tmp.detach();
>>>
>>> if (log.isDebugEnabled()) {
>>> log.debug("Removed 'RelatesTo'");
>>> }
>>> break;
>>> }
>>> }
>>> } // -- removeRelatesTo()
>>>
>>>
>>> /**
>>> * Handler client requests.
>>> *
>>> * @param messageContext The message context.
>>> * @throws AxisFault If an error occurs.
>>> */
>>> private final void clientRequest(MessageContext messageContext)
>>> throws AxisFault {
>>> // Gets the arrival timestamp
>>> this.arrivalTime = System.currentTimeMillis();
>>>
>>> AxisService axisService = messageContext.getAxisService();
>>>
>>> if (axisService == null) {
>>> axisService = findService(messageContext);
>>>
>>> if (axisService != null) {
>>> if (log.isInfoEnabled()) {
>>> log.info("Target service: " + axisService.getName());
>>> }
>>> messageContext.setAxisService(axisService);
>>>
>>> if (log.isInfoEnabled()) {
>>> log.info("Message to: " +
axisService.getEndpoint().toString());
>>> }
>>> }
>>> }
>>>
>>> if ((messageContext.getAxisService() != null)
>>> && (messageContext.getAxisOperation() == null)) {
>>> AxisOperation axisOperation = null;
>>>
>>> axisOperation = findOperation(axisService, messageContext);
>>>
>>> if (axisOperation != null) {/*
>>> * if (log.isInfoEnabled()) {
>>> * log.info("Operation set to [" +
>>> *
axisOperation.getName().getLocalPart() +
>>> * "]"); }
>>> */
>>>
>>> messageContext.setAxisOperation(axisOperation);
>>> }
>>> }
>>>
>>> saveTargetService(messageContext);
>>> saveTargetOperation(messageContext);
>>> // saveTargetAction(messageContext);
>>>
>>> // Gets the action mapping
>>> String soapAction = messageContext.getSoapAction();
>>> if ((soapAction == null) || (soapAction.length() == 0)) {
>>> try {
>>> /*
>>> * If the message context does not contain the soap
action try
>>> * to get it from the SOAP header
>>> */
>>> SOAPHeader header =
messageContext.getEnvelope().getHeader();
>>> soapAction =
header.getFirstChildWithName(WSA_ACTION).getText();
>>> // extractWSASoapAction(header.toString());
>>> } catch (OMException e) {
>>> if (log.isEnabledFor(Level.ERROR)) {
>>> log.error(FileUtils.getNow()
>>> + ": unable to get the SOAP header: "
>>> + e.getLocalizedMessage());
>>> }
>>> throw new AxisFault(e);
>>> }
>>> }
>>> messageContext.getOptions().setProperty(
>>> RoutingConstants.TARGET_ACTION_MAPPING, soapAction);
>>>
>>> // Saves the arrival time stamp
>>> saveArrivalTime(messageContext);
>>> } // -- clientRequest()
>>>
>>>
>>> /**
>>> * Saves the arrival time stamp.
>>> *
>>> * @param messageContext The message context.
>>> */
>>> private final void saveArrivalTime(MessageContext messageContext) {
>>>
messageContext.getOptions().setProperty(SOAPConstants.REQ_ARRIVAL_TIME,
>>> this.arrivalTime);
>>> } // -- saveArrivalTime()
>>>
>>>
>>> /**
>>> * Saves the target service as {@link RoutingConstants#TARGET_SERVICE}
>>> * message property.
>>> *
>>> * @param messageContext The message context.
>>> */
>>> private final void saveTargetService(final MessageContext
messageContext) {
>>> messageContext.getOptions().setProperty(
>>> RoutingConstants.TARGET_SERVICE, targetServiceName);
>>> } // -- saveTargetService()
>>>
>>>
>>> /**
>>> * Saves the target operation as {@link
RoutingConstants#TARGET_OPERATION}
>>> * message property.
>>> *
>>> * @param messageContext The message context.
>>> */
>>> private final void saveTargetOperation(final MessageContext
messageContext) {
>>> if ((targetOperationName != null) &&
(targetOperationName.length() > 0)) {
>>> messageContext.getOptions().setProperty(
>>> RoutingConstants.TARGET_OPERATION,
targetOperationName);
>>> }
>>> } // -- saveTargetOperation()
>>>
>>> } // END RouterDispatcher
>>>
>>>
>>> ------------------------------------------------------------------------
>>>
>>> 2006-11-08 15:08:54,044
[org.apache.axis2.deployment.DeploymentEngine] - Deploying Web service
RoutingService.aar
>>> 2006-11-08 15:08:54,090
[org.apache.axis2.deployment.DeploymentEngine] - Deploying Web service
version.aar
>>> 2006-11-08 15:12:10,471 [org.apache.axis2.transport.http.AxisServlet]
- java.lang.NullPointerException
>>> 2006-11-08 15:17:59,644 [org.apache.axis2.engine.Phase] - Handler
AddressingFinalInHandler added to Phase PreDispatch
>>> 2006-11-08 15:17:59,644 [org.apache.axis2.engine.Phase] - Handler
AddressingSubmissionInHandler added to Phase PreDispatch
>>> 2006-11-08 15:17:59,644 [org.apache.axis2.engine.Phase] - Handler
AddressingOutHandler added to Phase MessageOut
>>> 2006-11-08 15:17:59,644 [org.apache.axis2.engine.Phase] - Handler
AddressingFinalInHandler added to Phase PreDispatch
>>> 2006-11-08 15:17:59,644 [org.apache.axis2.engine.Phase] - Handler
AddressingSubmissionInHandler added to Phase PreDispatch
>>> 2006-11-08 15:17:59,644 [org.apache.axis2.engine.Phase] - Handler
AddressingOutHandler added to Phase MessageOut
>>> 2006-11-08 15:17:59,644 [org.apache.axis2.engine.Phase] - Handler
InFlowManagerHandler added to Phase ManagerInterceptorPhase
>>> 2006-11-08 15:17:59,691 [org.apache.axis2.i18n.ProjectResourceBundle]
- org.apache.axis2.i18n.resource::handleGetObject(deployingws)
>>> 2006-11-08 15:17:59,691
[org.apache.axis2.deployment.DeploymentEngine] - Deploying Web service
RoutingService.aar
>>> 2006-11-08 15:17:59,753 [org.apache.axis2.i18n.ProjectResourceBundle]
- org.apache.axis2.i18n.resource::handleGetObject(deployingws)
>>> 2006-11-08 15:17:59,753
[org.apache.axis2.deployment.DeploymentEngine] - Deploying Web service
version.aar
>>> 2006-11-08 15:17:59,753
[org.apache.axis2.deployment.WarBasedAxisConfigurator] - loaded services
from webapp
>>> 2006-11-08 15:18:10,189 [org.apache.axis2.engine.Phase] - Checking
pre-condition for Phase "ManagerInterceptorPhase"
>>> 2006-11-08 15:18:10,189 [org.apache.axis2.engine.Phase] - Invoking
phase "ManagerInterceptorPhase"
>>> 2006-11-08 15:18:10,189 [org.apache.axis2.engine.Phase] - Invoking
Handler 'InFlowManagerHandler' in Phase 'ManagerInterceptorPhase'
>>> 2006-11-08 15:18:10,205 [org.apache.axis2.engine.Phase] - Checking
post-conditions for phase "ManagerInterceptorPhase"
>>> 2006-11-08 15:18:10,205 [org.apache.axis2.engine.Phase] - Checking
pre-condition for Phase "Transport"
>>> 2006-11-08 15:18:10,205 [org.apache.axis2.engine.Phase] - Invoking
phase "Transport"
>>> 2006-11-08 15:18:10,205 [org.apache.axis2.engine.Phase] - Invoking
Handler 'SOAPActionBasedDispatcher' in Phase 'Transport'
>>> 2006-11-08 15:18:10,205
[org.apache.axis2.engine.SOAPActionBasedDispatcher] - Checking for
Service using SOAPAction is a TODO item
>>> 2006-11-08 15:18:10,205 [org.apache.axis2.engine.Phase] - Checking
post-conditions for phase "Transport"
>>> 2006-11-08 15:18:10,221 [org.apache.axis2.engine.Phase] - Checking
pre-condition for Phase "Security"
>>> 2006-11-08 15:18:10,221 [org.apache.axis2.engine.Phase] - Invoking
phase "Security"
>>> 2006-11-08 15:18:10,221 [org.apache.axis2.engine.Phase] - Checking
post-conditions for phase "Security"
>>> 2006-11-08 15:18:10,221 [org.apache.axis2.engine.Phase] - Checking
pre-condition for Phase "PreDispatch"
>>> 2006-11-08 15:18:10,221 [org.apache.axis2.engine.Phase] - Invoking
phase "PreDispatch"
>>> 2006-11-08 15:18:10,221 [org.apache.axis2.engine.Phase] - Invoking
Handler 'AddressingFinalInHandler' in Phase 'PreDispatch'
>>> 2006-11-08 15:18:10,221
[org.apache.axis2.handlers.addressing.AddressingInHandler] - Starting
WS-Addressing Final IN handler ...
>>> 2006-11-08 15:18:10,221
[org.apache.axis2.handlers.addressing.AddressingInHandler] - No Headers
present corresponding to WS-Addressing Final
>>> 2006-11-08 15:18:10,221 [org.apache.axis2.engine.Phase] - Invoking
Handler 'AddressingSubmissionInHandler' in Phase 'PreDispatch'
>>> 2006-11-08 15:18:10,221
[org.apache.axis2.handlers.addressing.AddressingInHandler] - Starting
WS-Addressing Submission IN handler ...
>>> 2006-11-08 15:18:10,221
[org.apache.axis2.handlers.addressing.AddressingInHandler] - No Headers
present corresponding to WS-Addressing Submission
>>> 2006-11-08 15:18:10,221 [org.apache.axis2.engine.Phase] - Checking
post-conditions for phase "PreDispatch"
>>> 2006-11-08 15:18:10,221 [org.apache.axis2.engine.Phase] - Checking
pre-condition for Phase "Dispatch"
>>> 2006-11-08 15:18:10,236 [org.apache.axis2.engine.Phase] - Invoking
phase "Dispatch"
>>> 2006-11-08 15:18:10,236 [org.apache.axis2.engine.Phase] - Invoking
Handler 'AddressingBasedDispatcher' in Phase 'Dispatch'
>>> 2006-11-08 15:18:10,236 [org.apache.axis2.i18n.ProjectResourceBundle]
- org.apache.axis2.i18n.resource::handleGetObject(checkingserviceforepr)
>>> 2006-11-08 15:18:10,236
[org.apache.axis2.engine.AddressingBasedDispatcher] - Checking for
Service using toEPRs address : {0}
>>> 2006-11-08 15:18:10,236 [org.apache.axis2.i18n.ProjectResourceBundle]
- org.apache.axis2.i18n.resource::handleGetObject(checkingserviceforepr)
>>> 2006-11-08 15:18:10,236
[org.apache.axis2.engine.AddressingBasedDispatcher] - Checking for
Service using toEPRs address : {0}
>>> 2006-11-08 15:18:10,236 [org.apache.axis2.i18n.ProjectResourceBundle]
- org.apache.axis2.i18n.resource::handleGetObject(servicefound)
>>> 2006-11-08 15:18:10,236 [org.apache.axis2.engine.AbstractDispatcher]
- Found AxisService : RoutingService
>>> 2006-11-08 15:18:10,236 [org.apache.axis2.i18n.ProjectResourceBundle]
- org.apache.axis2.i18n.resource::handleGetObject(checkingoperation)
>>> 2006-11-08 15:18:10,236
[org.apache.axis2.engine.AddressingBasedDispatcher] - Checking for
Operation using WSAAction : urn:addNode
>>> 2006-11-08 15:18:10,236 [org.apache.axis2.i18n.ProjectResourceBundle]
- org.apache.axis2.i18n.resource::handleGetObject(operationfound)
>>> 2006-11-08 15:18:10,236 [org.apache.axis2.engine.AbstractDispatcher]
- Found AxisOperation : addNode
>>> 2006-11-08 15:18:10,252 [org.apache.axis2.engine.Phase] - Invoking
Handler 'SOAPMessageBodyBasedDispatcher' in Phase 'Dispatch'
>>> 2006-11-08 15:18:10,252 [org.apache.axis2.engine.Phase] - Invoking
Handler 'InstanceDispatcher' in Phase 'Dispatch'
>>> 2006-11-08 15:18:10,252 [org.apache.axis2.engine.Phase] - Invoking
Handler 'AddressingWSDLValidationHandler' in Phase 'Dispatch'
>>> 2006-11-08 15:18:10,252 [org.apache.axis2.engine.Phase] - Checking
post-conditions for phase "Dispatch"
>>> 2006-11-08 15:18:10,252 [org.apache.axis2.engine.Phase] - Checking
pre-condition for Phase "OperationInPhase"
>>> 2006-11-08 15:18:10,252 [org.apache.axis2.engine.Phase] - Invoking
phase "OperationInPhase"
>>> 2006-11-08 15:18:10,252 [org.apache.axis2.engine.Phase] - Checking
post-conditions for phase "OperationInPhase"
>>> 2006-11-08 15:18:10,252 [org.apache.axis2.engine.Phase] - Checking
pre-condition for Phase "soapmonitorPhase"
>>> 2006-11-08 15:18:10,252 [org.apache.axis2.engine.Phase] - Invoking
phase "soapmonitorPhase"
>>> 2006-11-08 15:18:10,252 [org.apache.axis2.engine.Phase] - Checking
post-conditions for phase "soapmonitorPhase"
>>> 2006-11-08 15:18:10,283 [org.apache.axis2.i18n.ProjectResourceBundle]
- org.apache.axis2.i18n.resource::handleGetObject(methodDoesNotExistInOut)
>>> 2006-11-08 15:18:10,283 [org.apache.axis2.transport.http.AxisServlet]
- org.apache.axis2.AxisFault: ServiceClass does not implement required
method of the form OMElement addNode(OMElement e)
>>> 2006-11-08 15:18:10,283
[org.apache.axis2.addressing.AddressingHelper] - isReplyRedirected:
FaultTo is null. Returning isReplyRedirected
>>> 2006-11-08 15:18:10,283
[org.apache.axis2.addressing.AddressingHelper] - isReplyRedirected:
ReplyTo is null. Returning false
>>> 2006-11-08 15:18:10,299 [org.apache.axis2.engine.Phase] - Checking
pre-condition for Phase "soapmonitorPhase"
>>> 2006-11-08 15:18:10,314 [org.apache.axis2.engine.Phase] - Invoking
phase "soapmonitorPhase"
>>> 2006-11-08 15:18:10,314 [org.apache.axis2.engine.Phase] - Checking
post-conditions for phase "soapmonitorPhase"
>>> 2006-11-08 15:18:10,314 [org.apache.axis2.engine.Phase] - Checking
pre-condition for Phase "OperationOutFaultPhase"
>>> 2006-11-08 15:18:10,314 [org.apache.axis2.engine.Phase] - Invoking
phase "OperationOutFaultPhase"
>>> 2006-11-08 15:18:10,314 [org.apache.axis2.engine.Phase] - Checking
post-conditions for phase "OperationOutFaultPhase"
>>> 2006-11-08 15:18:10,314 [org.apache.axis2.engine.Phase] - Checking
pre-condition for Phase "PolicyDetermination"
>>> 2006-11-08 15:18:10,314 [org.apache.axis2.engine.Phase] - Invoking
phase "PolicyDetermination"
>>> 2006-11-08 15:18:10,314 [org.apache.axis2.engine.Phase] - Checking
post-conditions for phase "PolicyDetermination"
>>> 2006-11-08 15:18:10,314 [org.apache.axis2.engine.Phase] - Checking
pre-condition for Phase "MessageOut"
>>> 2006-11-08 15:18:10,314 [org.apache.axis2.engine.Phase] - Invoking
phase "MessageOut"
>>> 2006-11-08 15:18:10,314 [org.apache.axis2.engine.Phase] - Invoking
Handler 'AddressingOutHandler' in Phase 'MessageOut'
>>> 2006-11-08 15:18:10,314
[org.apache.axis2.handlers.addressing.AddressingHandler] - Addressing is
disabled .....
>>> 2006-11-08 15:18:10,314 [org.apache.axis2.engine.Phase] - Checking
post-conditions for phase "MessageOut"
>>> 2006-11-08 15:18:20,891 [org.apache.axis2.engine.Phase] - Checking
pre-condition for Phase "ManagerInterceptorPhase"
>>> 2006-11-08 15:18:20,891 [org.apache.axis2.engine.Phase] - Invoking
phase "ManagerInterceptorPhase"
>>> 2006-11-08 15:18:20,891 [org.apache.axis2.engine.Phase] - Invoking
Handler 'InFlowManagerHandler' in Phase 'ManagerInterceptorPhase'
>>> 2006-11-08 15:18:20,891 [org.apache.axis2.engine.Phase] - Checking
post-conditions for phase "ManagerInterceptorPhase"
>>> 2006-11-08 15:18:20,891 [org.apache.axis2.engine.Phase] - Checking
pre-condition for Phase "Transport"
>>> 2006-11-08 15:18:20,907 [org.apache.axis2.engine.Phase] - Invoking
phase "Transport"
>>> 2006-11-08 15:18:20,907 [org.apache.axis2.engine.Phase] - Invoking
Handler 'SOAPActionBasedDispatcher' in Phase 'Transport'
>>> 2006-11-08 15:18:20,907
[org.apache.axis2.engine.SOAPActionBasedDispatcher] - Checking for
Service using SOAPAction is a TODO item
>>> 2006-11-08 15:18:20,907 [org.apache.axis2.engine.Phase] - Checking
post-conditions for phase "Transport"
>>> 2006-11-08 15:18:20,907 [org.apache.axis2.engine.Phase] - Checking
pre-condition for Phase "Security"
>>> 2006-11-08 15:18:20,907 [org.apache.axis2.engine.Phase] - Invoking
phase "Security"
>>> 2006-11-08 15:18:20,907 [org.apache.axis2.engine.Phase] - Checking
post-conditions for phase "Security"
>>> 2006-11-08 15:18:20,907 [org.apache.axis2.engine.Phase] - Checking
pre-condition for Phase "PreDispatch"
>>> 2006-11-08 15:18:20,907 [org.apache.axis2.engine.Phase] - Invoking
phase "PreDispatch"
>>> 2006-11-08 15:18:20,907 [org.apache.axis2.engine.Phase] - Invoking
Handler 'AddressingFinalInHandler' in Phase 'PreDispatch'
>>> 2006-11-08 15:18:20,907
[org.apache.axis2.handlers.addressing.AddressingInHandler] - Starting
WS-Addressing Final IN handler ...
>>> 2006-11-08 15:18:20,907
[org.apache.axis2.handlers.addressing.AddressingInHandler] - No Headers
present corresponding to WS-Addressing Final
>>> 2006-11-08 15:18:20,907 [org.apache.axis2.engine.Phase] - Invoking
Handler 'AddressingSubmissionInHandler' in Phase 'PreDispatch'
>>> 2006-11-08 15:18:20,907
[org.apache.axis2.handlers.addressing.AddressingInHandler] - Starting
WS-Addressing Submission IN handler ...
>>> 2006-11-08 15:18:20,907
[org.apache.axis2.handlers.addressing.AddressingInHandler] - No Headers
present corresponding to WS-Addressing Submission
>>> 2006-11-08 15:18:20,922 [org.apache.axis2.engine.Phase] - Checking
post-conditions for phase "PreDispatch"
>>> 2006-11-08 15:18:20,922 [org.apache.axis2.engine.Phase] - Checking
pre-condition for Phase "Dispatch"
>>> 2006-11-08 15:18:20,922 [org.apache.axis2.engine.Phase] - Invoking
phase "Dispatch"
>>> 2006-11-08 15:18:20,922 [org.apache.axis2.engine.Phase] - Invoking
Handler 'AddressingBasedDispatcher' in Phase 'Dispatch'
>>> 2006-11-08 15:18:20,922 [org.apache.axis2.i18n.ProjectResourceBundle]
- org.apache.axis2.i18n.resource::handleGetObject(checkingserviceforepr)
>>> 2006-11-08 15:18:20,922
[org.apache.axis2.engine.AddressingBasedDispatcher] - Checking for
Service using toEPRs address : {0}
>>> 2006-11-08 15:18:20,922 [org.apache.axis2.i18n.ProjectResourceBundle]
- org.apache.axis2.i18n.resource::handleGetObject(checkingserviceforepr)
>>> 2006-11-08 15:18:20,922
[org.apache.axis2.engine.AddressingBasedDispatcher] - Checking for
Service using toEPRs address : {0}
>>> 2006-11-08 15:18:20,922 [org.apache.axis2.i18n.ProjectResourceBundle]
- org.apache.axis2.i18n.resource::handleGetObject(servicefound)
>>> 2006-11-08 15:18:20,922 [org.apache.axis2.engine.AbstractDispatcher]
- Found AxisService : RoutingService
>>> 2006-11-08 15:18:20,922 [org.apache.axis2.i18n.ProjectResourceBundle]
- org.apache.axis2.i18n.resource::handleGetObject(checkingoperation)
>>> 2006-11-08 15:18:20,922
[org.apache.axis2.engine.AddressingBasedDispatcher] - Checking for
Operation using WSAAction : urn:addService
>>> 2006-11-08 15:18:20,922 [org.apache.axis2.i18n.ProjectResourceBundle]
- org.apache.axis2.i18n.resource::handleGetObject(operationfound)
>>> 2006-11-08 15:18:20,938 [org.apache.axis2.engine.AbstractDispatcher]
- Found AxisOperation : addService
>>> 2006-11-08 15:18:20,938 [org.apache.axis2.engine.Phase] - Invoking
Handler 'SOAPMessageBodyBasedDispatcher' in Phase 'Dispatch'
>>> 2006-11-08 15:18:20,938 [org.apache.axis2.engine.Phase] - Invoking
Handler 'InstanceDispatcher' in Phase 'Dispatch'
>>> 2006-11-08 15:18:20,938 [org.apache.axis2.engine.Phase] - Invoking
Handler 'AddressingWSDLValidationHandler' in Phase 'Dispatch'
>>> 2006-11-08 15:18:20,938 [org.apache.axis2.engine.Phase] - Checking
post-conditions for phase "Dispatch"
>>> 2006-11-08 15:18:20,938 [org.apache.axis2.engine.Phase] - Checking
pre-condition for Phase "OperationInPhase"
>>> 2006-11-08 15:18:20,938 [org.apache.axis2.engine.Phase] - Invoking
phase "OperationInPhase"
>>> 2006-11-08 15:18:20,938 [org.apache.axis2.engine.Phase] - Checking
post-conditions for phase "OperationInPhase"
>>> 2006-11-08 15:18:20,938 [org.apache.axis2.engine.Phase] - Checking
pre-condition for Phase "soapmonitorPhase"
>>> 2006-11-08 15:18:20,938 [org.apache.axis2.engine.Phase] - Invoking
phase "soapmonitorPhase"
>>> 2006-11-08 15:18:20,938 [org.apache.axis2.engine.Phase] - Checking
post-conditions for phase "soapmonitorPhase"
>>> 2006-11-08 15:18:20,938 [org.apache.axis2.i18n.ProjectResourceBundle]
- org.apache.axis2.i18n.resource::handleGetObject(methodDoesNotExistInOut)
>>> 2006-11-08 15:18:20,954 [org.apache.axis2.transport.http.AxisServlet]
- org.apache.axis2.AxisFault: ServiceClass does not implement required
method of the form OMElement addService(OMElement e)
>>> 2006-11-08 15:18:20,954
[org.apache.axis2.addressing.AddressingHelper] - isReplyRedirected:
FaultTo is null. Returning isReplyRedirected
>>> 2006-11-08 15:18:20,954
[org.apache.axis2.addressing.AddressingHelper] - isReplyRedirected:
ReplyTo is null. Returning false
>>> 2006-11-08 15:18:20,954 [org.apache.axis2.engine.Phase] - Checking
pre-condition for Phase "soapmonitorPhase"
>>> 2006-11-08 15:18:20,954 [org.apache.axis2.engine.Phase] - Invoking
phase "soapmonitorPhase"
>>> 2006-11-08 15:18:20,954 [org.apache.axis2.engine.Phase] - Checking
post-conditions for phase "soapmonitorPhase"
>>> 2006-11-08 15:18:20,954 [org.apache.axis2.engine.Phase] - Checking
pre-condition for Phase "OperationOutFaultPhase"
>>> 2006-11-08 15:18:20,954 [org.apache.axis2.engine.Phase] - Invoking
phase "OperationOutFaultPhase"
>>> 2006-11-08 15:18:20,954 [org.apache.axis2.engine.Phase] - Checking
post-conditions for phase "OperationOutFaultPhase"
>>> 2006-11-08 15:18:20,954 [org.apache.axis2.engine.Phase] - Checking
pre-condition for Phase "PolicyDetermination"
>>> 2006-11-08 15:18:20,954 [org.apache.axis2.engine.Phase] - Invoking
phase "PolicyDetermination"
>>> 2006-11-08 15:18:20,954 [org.apache.axis2.engine.Phase] - Checking
post-conditions for phase "PolicyDetermination"
>>> 2006-11-08 15:18:20,969 [org.apache.axis2.engine.Phase] - Checking
pre-condition for Phase "MessageOut"
>>> 2006-11-08 15:18:20,969 [org.apache.axis2.engine.Phase] - Invoking
phase "MessageOut"
>>> 2006-11-08 15:18:20,969 [org.apache.axis2.engine.Phase] - Invoking
Handler 'AddressingOutHandler' in Phase 'MessageOut'
>>> 2006-11-08 15:18:20,969
[org.apache.axis2.handlers.addressing.AddressingHandler] - Addressing is
disabled .....
>>> 2006-11-08 15:18:20,969 [org.apache.axis2.engine.Phase] - Checking
post-conditions for phase "MessageOut"
>>> 2006-11-08 15:18:38,404 [org.apache.axis2.engine.Phase] - Checking
pre-condition for Phase "ManagerInterceptorPhase"
>>> 2006-11-08 15:18:38,404 [org.apache.axis2.engine.Phase] - Invoking
phase "ManagerInterceptorPhase"
>>> 2006-11-08 15:18:38,404 [org.apache.axis2.engine.Phase] - Invoking
Handler 'InFlowManagerHandler' in Phase 'ManagerInterceptorPhase'
>>> 2006-11-08 15:18:38,420 [org.apache.axis2.transport.http.AxisServlet]
- java.lang.NullPointerException
>>> 2006-11-08 15:18:38,420
[org.apache.axis2.addressing.AddressingHelper] - isReplyRedirected:
FaultTo is null. Returning isReplyRedirected
>>> 2006-11-08 15:18:38,420
[org.apache.axis2.addressing.AddressingHelper] - isReplyRedirected:
ReplyTo is null. Returning false
>>> 2006-11-08 15:18:38,420 [org.apache.axis2.engine.Phase] - Checking
pre-condition for Phase "MessageOut"
>>> 2006-11-08 15:18:38,420 [org.apache.axis2.engine.Phase] - Invoking
phase "MessageOut"
>>> 2006-11-08 15:18:38,420 [org.apache.axis2.engine.Phase] - Invoking
Handler 'AddressingOutHandler' in Phase 'MessageOut'
>>> 2006-11-08 15:18:38,420
[org.apache.axis2.addressing.EndpointReferenceHelper] - toOM: Factory,
org.apache.axiom.soap.impl.llom.soap12.SOAP12Factory@98bbf6
>>> 2006-11-08 15:18:38,420
[org.apache.axis2.addressing.EndpointReferenceHelper] - toOM: Endpoint
reference, Address: http://www.w3.org/2005/08/addressing/none
>>> 2006-11-08 15:18:38,420
[org.apache.axis2.addressing.EndpointReferenceHelper] - toOM: Element
qname, {http://www.w3.org/2005/08/addressing}ReplyTo
>>> 2006-11-08 15:18:38,436
[org.apache.axis2.addressing.EndpointReferenceHelper] - toOM: Addressing
namespace, http://www.w3.org/2005/08/addressing
>>> 2006-11-08 15:18:38,436 [org.apache.axis2.engine.Phase] - Checking
post-conditions for phase "MessageOut"
>>> 2006-11-08 15:24:31,935 [org.apache.axis2.engine.Phase] - Checking
pre-condition for Phase "ManagerInterceptorPhase"
>>> 2006-11-08 15:24:31,935 [org.apache.axis2.engine.Phase] - Invoking
phase "ManagerInterceptorPhase"
>>> 2006-11-08 15:24:31,935 [org.apache.axis2.engine.Phase] - Invoking
Handler 'InFlowManagerHandler' in Phase 'ManagerInterceptorPhase'
>>> 2006-11-08 15:24:31,935 [org.apache.axis2.transport.http.AxisServlet]
- java.lang.NullPointerException
>>> 2006-11-08 15:24:31,935
[org.apache.axis2.addressing.AddressingHelper] - isReplyRedirected:
FaultTo is null. Returning isReplyRedirected
>>> 2006-11-08 15:24:31,935
[org.apache.axis2.addressing.AddressingHelper] - isReplyRedirected:
ReplyTo is null. Returning false
>>> 2006-11-08 15:24:31,935 [org.apache.axis2.engine.Phase] - Checking
pre-condition for Phase "MessageOut"
>>> 2006-11-08 15:24:31,935 [org.apache.axis2.engine.Phase] - Invoking
phase "MessageOut"
>>> 2006-11-08 15:24:31,951 [org.apache.axis2.engine.Phase] - Invoking
Handler 'AddressingOutHandler' in Phase 'MessageOut'
>>> 2006-11-08 15:24:31,951
[org.apache.axis2.addressing.EndpointReferenceHelper] - toOM: Factory,
org.apache.axiom.soap.impl.llom.soap12.SOAP12Factory@e7e8eb
>>> 2006-11-08 15:24:31,951
[org.apache.axis2.addressing.EndpointReferenceHelper] - toOM: Endpoint
reference, Address: http://www.w3.org/2005/08/addressing/none
>>> 2006-11-08 15:24:31,951
[org.apache.axis2.addressing.EndpointReferenceHelper] - toOM: Element
qname, {http://www.w3.org/2005/08/addressing}ReplyTo
>>> 2006-11-08 15:24:31,951
[org.apache.axis2.addressing.EndpointReferenceHelper] - toOM: Addressing
namespace, http://www.w3.org/2005/08/addressing
>>> 2006-11-08 15:24:31,951 [org.apache.axis2.engine.Phase] - Checking
post-conditions for phase "MessageOut"
>>>
>>>
>>> ------------------------------------------------------------------------
>>>
>>> 2006-11-08 15:08:53,731 [ncl.qosp.controller.RoutingService] -
Startup time is: Wed Nov 08 15:08:53 GMT 2006
>>> 2006-11-08 15:08:54,106 [ncl.qosp.controller.RoutingService] - --
Constructor
>>> 2006-11-08 15:08:54,184 [ncl.qosp.controller.RoutingService] -
Scheduler created
>>> 2006-11-08 15:08:54,184
[ncl.qosp.controller.scheduler.weighted.queue.QueueSizeScheduler] -
Scheduler component started
>>> 2006-11-08 15:09:08,198 [ncl.qosp.controller.LifecycleSupport] - Qosp
is shutting down...
>>> 2006-11-08 15:09:08,198
[ncl.qosp.controller.scheduler.weighted.queue.QueueSizeScheduler] - The
timer was not running
>>> 2006-11-08 15:09:08,198
[ncl.qosp.controller.scheduler.weighted.queue.QueueSizeScheduler] -
Scheduler component stopped
>>> 2006-11-08 15:09:08,198 [ncl.qosp.controller.LifecycleSupport] -
Scheduler stopped
>>> 2006-11-08 15:09:08,198 [ncl.qosp.controller.LifecycleSupport] -
Scheduler unregistered from the mbean server
>>> 2006-11-08 15:09:08,198 [ncl.qosp.controller.LifecycleSupport] -
Connector server stopped
>>> 2006-11-08 15:10:13,518 [ncl.qosp.controller.RoutingService] -
Startup time is: Wed Nov 08 15:10:13 GMT 2006
>>> 2006-11-08 15:10:13,908 [ncl.qosp.controller.RoutingService] - --
Constructor
>>> 2006-11-08 15:10:13,971 [ncl.qosp.controller.RoutingService] -
Scheduler created
>>> 2006-11-08 15:10:13,971
[ncl.qosp.controller.scheduler.weighted.queue.QueueSizeScheduler] -
Scheduler component started
>>> 2006-11-08 15:10:41,014 [ncl.qosp.modules.manager.RouterDispatcher] -
Handler invoked
>>> 2006-11-08 15:10:41,030 [ncl.qosp.modules.manager.RouterDispatcher] -
Internal message [New node]
>>> 2006-11-08 15:11:01,183 [ncl.qosp.modules.manager.RouterDispatcher] -
Handler invoked
>>> 2006-11-08 15:11:01,183 [ncl.qosp.modules.manager.RouterDispatcher] -
Internal message [New service]
>>> 2006-11-08 15:11:31,836
[ncl.qosp.controller.scheduler.weighted.queue.QueueSizeScheduler] -
Received listener request
>>> 2006-11-08 15:11:31,836
[ncl.qosp.controller.scheduler.weighted.queue.QueueSizeScheduler] -
Added notification listener
>>> 2006-11-08 15:12:10,471 [ncl.qosp.modules.manager.RouterDispatcher] -
Handler invoked
>>> 2006-11-08 15:12:10,471 [ncl.qosp.modules.manager.RouterDispatcher] -
Received client request
>>> 2006-11-08 15:12:10,471 [ncl.qosp.modules.manager.RouterDispatcher] -
Target service: RoutingService
>>> 2006-11-08 15:13:50,271 [ncl.qosp.controller.LifecycleSupport] - Qosp
is shutting down...
>>> 2006-11-08 15:13:50,271
[ncl.qosp.controller.scheduler.weighted.queue.QueueSizeScheduler] - The
timer was not running
>>> 2006-11-08 15:13:50,271
[ncl.qosp.controller.scheduler.weighted.queue.QueueSizeScheduler] -
Scheduler component stopped
>>> 2006-11-08 15:13:50,271 [ncl.qosp.controller.LifecycleSupport] -
Scheduler stopped
>>> 2006-11-08 15:13:50,271 [ncl.qosp.controller.LifecycleSupport] -
Scheduler unregistered from the mbean server
>>> 2006-11-08 15:13:50,302 [ncl.qosp.controller.LifecycleSupport] -
Connector server stopped
>>> 2006-11-08 15:17:59,363 [ncl.qosp.controller.RoutingService] -
Startup time is: Wed Nov 08 15:17:59 GMT 2006
>>> 2006-11-08 15:17:59,769 [ncl.qosp.controller.RoutingService] - --
Constructor
>>> 2006-11-08 15:17:59,831 [ncl.qosp.controller.RoutingService] -
Scheduler created
>>> 2006-11-08 15:17:59,847
[ncl.qosp.controller.scheduler.weighted.queue.QueueSizeScheduler] -
Scheduler component started
>>> 2006-11-08 15:18:10,205 [ncl.qosp.modules.manager.RouterDispatcher] -
Handler invoked
>>> 2006-11-08 15:18:10,205 [ncl.qosp.modules.manager.RouterDispatcher] -
Internal message [New node]
>>> 2006-11-08 15:18:20,891 [ncl.qosp.modules.manager.RouterDispatcher] -
Handler invoked
>>> 2006-11-08 15:18:20,891 [ncl.qosp.modules.manager.RouterDispatcher] -
Internal message [New service]
>>> 2006-11-08 15:18:38,404 [ncl.qosp.modules.manager.RouterDispatcher] -
Handler invoked
>>> 2006-11-08 15:18:38,404 [ncl.qosp.modules.manager.RouterDispatcher] -
Received client request
>>> 2006-11-08 15:18:38,404 [ncl.qosp.modules.manager.RouterDispatcher] -
Target service: RoutingService
>>> 2006-11-08 15:24:31,935 [ncl.qosp.modules.manager.RouterDispatcher] -
Handler invoked
>>> 2006-11-08 15:24:31,935 [ncl.qosp.modules.manager.RouterDispatcher] -
Received client request
>>> 2006-11-08 15:24:31,935 [ncl.qosp.modules.manager.RouterDispatcher] -
Target service: RoutingService
>>>
>>>
>>>
>>> ------------------------------------------------------------------------
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>>> For additional commands, e-mail: axis-user-help@ws.apache.org
>>>
>>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> For additional commands, e-mail: axis-user-help@ws.apache.org
>>
>>
>>
>>
>>
>
- --
Sanka Samaranayake
WSO2 Inc.
T:+94-77-3506382 F:+94-11-2424304
http://sankas.blogspot.com/
http://www.wso2.net/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.1 (GNU/Linux)
iD8DBQFFUr4M/Hd0ETKdgNIRArA+AJ99NBV3SVRsOfWqJcZ6ViY/mnhz7ACfVNEx
+F7Bf4yBtlIfPJtNxvt0H5I=
=CvD/
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: [Axis2] NullPointerException in org.apache.axis2.transport.http.AxisServlet
Posted by Michele Mazzucco <Mi...@ncl.ac.uk>.
Deepal,
as I said in a my previous post, this way I get
2006-11-08 15:18:20,954 [org.apache.axis2.transport.http.AxisServlet] -
org.apache.axis2.AxisFault: ServiceClass does not implement required
method of the form OMElement addService(OMElement e)
where the addService operation has a in-only MEP and the two declared
message receivers were RawXMLINOnlyMessageReceiver and
RawXMLINOutMessageReceiver
Michele
Deepal Jayasinghe wrote:
> Hi Michele;
>
> You need to add message receivers as follows;
> <service>
> <messageReceivers>
> <messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-only"
>
> class="org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver"/>
> <messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-out"
>
> class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/>
> </messageReceivers>
>
> And it is working correctly , pls have a look at the service life cycle
> sample. And you do not need to specify message receivers at each
> operation level.
>
> Thanks
> Deepal
> </service>
>
>> Hi again,
>>
>> I've found out a problem was due to a mis configured services.xml (the
>> message receiver must be declared inside each operation, it is not legal
>> to declare all used message receivers this way:
>>
>> <messageReceivers>
>> <messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-only"
>>
>> class="org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver"/>
>> <messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-out"
>>
>> class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/>
>> </messageReceivers>
>>
>> and this was the cause of:
>> 2006-11-08 15:18:20,954 [org.apache.axis2.transport.http.AxisServlet] -
>> org.apache.axis2.AxisFault: ServiceClass does not implement required
>> method of the form OMElement addService(OMElement e)
>>
>> but I still have this:
>>
>> DEBUG Phase:invoke - Invoking Handler 'AddressingBasedDispatcher' in
>> Phase 'Dispatch'
>> DEBUG ProjectResourceBundle:handleGetObject -
>> org.apache.axis2.i18n.resource::handleGetObject(checkingserviceforepr)
>> DEBUG AddressingBasedDispatcher:findService - Checking for Service using
>> toEPRs address : {0}
>> DEBUG ProjectResourceBundle:handleGetObject -
>> org.apache.axis2.i18n.resource::handleGetObject(checkingserviceforepr)
>> DEBUG AddressingBasedDispatcher:findService - Checking for Service using
>> toEPRs address : {0}
>> DEBUG ProjectResourceBundle:handleGetObject -
>> org.apache.axis2.i18n.resource::handleGetObject(servicefound)
>> DEBUG AbstractDispatcher:invoke - Found AxisService : RoutingService
>> DEBUG ProjectResourceBundle:handleGetObject -
>> org.apache.axis2.i18n.resource::handleGetObject(checkingoperation)
>> DEBUG AddressingBasedDispatcher:findOperation - Checking for Operation
>> using WSAAction : urn:addNode
>> DEBUG ProjectResourceBundle:handleGetObject -
>> org.apache.axis2.i18n.resource::handleGetObject(operationfound)
>> DEBUG AbstractDispatcher:invoke - Found AxisOperation : addNode
>> DEBUG Phase:invoke - Invoking Handler 'SOAPMessageBodyBasedDispatcher'
>> in Phase 'Dispatch'
>> DEBUG Phase:invoke - Invoking Handler 'InstanceDispatcher' in Phase
>> 'Dispatch'
>> DEBUG Phase:invoke - Invoking Handler 'AddressingWSDLValidationHandler'
>> in Phase 'Dispatch'
>> DEBUG Phase:invoke - Checking post-conditions for phase "Dispatch"
>> DEBUG Phase:invoke - Checking pre-condition for Phase "OperationInPhase"
>> DEBUG Phase:invoke - Invoking phase "OperationInPhase"
>> DEBUG Phase:invoke - Checking post-conditions for phase "OperationInPhase"
>> DEBUG Phase:invoke - Checking pre-condition for Phase "soapmonitorPhase"
>> DEBUG Phase:invoke - Invoking phase "soapmonitorPhase"
>> DEBUG Phase:invoke - Checking post-conditions for phase "soapmonitorPhase"
>> DEBUG Phase:invoke - Checking pre-condition for Phase
>> "ManagerInterceptorPhase"
>> DEBUG Phase:invoke - Invoking phase "ManagerInterceptorPhase"
>> DEBUG Phase:invoke - Invoking Handler 'InFlowManagerHandler' in Phase
>> 'ManagerInterceptorPhase'
>> DEBUG Phase:invoke - Checking post-conditions for phase
>> "ManagerInterceptorPhase"
>> DEBUG Phase:invoke - Checking pre-condition for Phase "Transport"
>> DEBUG Phase:invoke - Invoking phase "Transport"
>> DEBUG Phase:invoke - Invoking Handler 'SOAPActionBasedDispatcher' in
>> Phase 'Transport'
>> DEBUG SOAPActionBasedDispatcher:findService - Checking for Service using
>> SOAPAction is a TODO item
>> DEBUG Phase:invoke - Checking post-conditions for phase "Transport"
>> DEBUG Phase:invoke - Checking pre-condition for Phase "Security"
>> DEBUG Phase:invoke - Invoking phase "Security"
>> DEBUG Phase:invoke - Checking post-conditions for phase "Security"
>> DEBUG Phase:invoke - Checking pre-condition for Phase "PreDispatch"
>> DEBUG Phase:invoke - Invoking phase "PreDispatch"
>> DEBUG Phase:invoke - Invoking Handler 'AddressingFinalInHandler' in
>> Phase 'PreDispatch'
>> DEBUG AddressingInHandler:invoke - Starting WS-Addressing Final IN
>> handler ...
>> DEBUG AddressingInHandler:invoke - No Headers present corresponding to
>> WS-Addressing Final
>> DEBUG Phase:invoke - Invoking Handler 'AddressingSubmissionInHandler' in
>> Phase 'PreDispatch'
>> DEBUG AddressingInHandler:invoke - Starting WS-Addressing Submission IN
>> handler ...
>> DEBUG AddressingInHandler:invoke - No Headers present corresponding to
>> WS-Addressing Submission
>> DEBUG Phase:invoke - Checking post-conditions for phase "PreDispatch"
>> DEBUG Phase:invoke - Checking pre-condition for Phase "Dispatch"
>> DEBUG Phase:invoke - Invoking phase "Dispatch"
>> DEBUG Phase:invoke - Invoking Handler 'AddressingBasedDispatcher' in
>> Phase 'Dispatch'
>> DEBUG ProjectResourceBundle:handleGetObject -
>> org.apache.axis2.i18n.resource::handleGetObject(checkingserviceforepr)
>> DEBUG AddressingBasedDispatcher:findService - Checking for Service using
>> toEPRs address : {0}
>> DEBUG ProjectResourceBundle:handleGetObject -
>> org.apache.axis2.i18n.resource::handleGetObject(checkingserviceforepr)
>> DEBUG AddressingBasedDispatcher:findService - Checking for Service using
>> toEPRs address : {0}
>> DEBUG ProjectResourceBundle:handleGetObject -
>> org.apache.axis2.i18n.resource::handleGetObject(servicefound)
>> DEBUG AbstractDispatcher:invoke - Found AxisService : RoutingService
>> DEBUG ProjectResourceBundle:handleGetObject -
>> org.apache.axis2.i18n.resource::handleGetObject(checkingoperation)
>> DEBUG AddressingBasedDispatcher:findOperation - Checking for Operation
>> using WSAAction : urn:addService
>> DEBUG ProjectResourceBundle:handleGetObject -
>> org.apache.axis2.i18n.resource::handleGetObject(operationfound)
>> DEBUG AbstractDispatcher:invoke - Found AxisOperation : addService
>> DEBUG Phase:invoke - Invoking Handler 'SOAPMessageBodyBasedDispatcher'
>> in Phase 'Dispatch'
>> DEBUG Phase:invoke - Invoking Handler 'InstanceDispatcher' in Phase
>> 'Dispatch'
>> DEBUG Phase:invoke - Invoking Handler 'AddressingWSDLValidationHandler'
>> in Phase 'Dispatch'
>> DEBUG Phase:invoke - Checking post-conditions for phase "Dispatch"
>> DEBUG Phase:invoke - Checking pre-condition for Phase "OperationInPhase"
>> DEBUG Phase:invoke - Invoking phase "OperationInPhase"
>> DEBUG Phase:invoke - Checking post-conditions for phase "OperationInPhase"
>> DEBUG Phase:invoke - Checking pre-condition for Phase "soapmonitorPhase"
>> DEBUG Phase:invoke - Invoking phase "soapmonitorPhase"
>> DEBUG Phase:invoke - Checking post-conditions for phase "soapmonitorPhase"
>> DEBUG Phase:invoke - Checking pre-condition for Phase
>> "ManagerInterceptorPhase"
>> DEBUG Phase:invoke - Invoking phase "ManagerInterceptorPhase"
>> DEBUG Phase:invoke - Invoking Handler 'InFlowManagerHandler' in Phase
>> 'ManagerInterceptorPhase'
>> ERROR AxisServlet:doPost - java.lang.NullPointerException
>> DEBUG AddressingHelper:isFaultRedirected - isReplyRedirected: FaultTo is
>> null. Returning isReplyRedirected
>> DEBUG AddressingHelper:isReplyRedirected - isReplyRedirected: ReplyTo is
>> null. Returning false
>> DEBUG Phase:invoke - Checking pre-condition for Phase "MessageOut"
>> DEBUG Phase:invoke - Invoking phase "MessageOut"
>> DEBUG Phase:invoke - Invoking Handler 'AddressingOutHandler' in Phase
>> 'MessageOut'
>> DEBUG EndpointReferenceHelper:toOM - toOM: Factory,
>> org.apache.axiom.soap.impl.llom.soap12.SOAP12Factory@6de609
>> DEBUG EndpointReferenceHelper:toOM - toOM: Endpoint reference, Address:
>> http://www.w3.org/2005/08/addressing/none
>> DEBUG EndpointReferenceHelper:toOM - toOM: Element qname,
>> {http://www.w3.org/2005/08/addressing}ReplyTo
>> DEBUG EndpointReferenceHelper:toOM - toOM: Addressing namespace,
>> http://www.w3.org/2005/08/addressing
>> DEBUG Phase:invoke - Checking post-conditions for phase "MessageOut"
>>
>>
>> Any clue?
>>
>>
>>
>> Michele
>>
>>
>> Michele Mazzucco wrote:
>>
>>
>>> Hi all,
>>>
>>> I'm getting a NPE in AxisServlet and I don't know the reason.
>>> Please find attached the tomcat output (axis2 is set to debug) and the
>>> custom handler.
>>> The handler has always worked fine when the invoke method signature was
>>> "void": should I change anyting (apart from the return type)?
>>>
>>> Any clue?
>>>
>>> Michele
>>>
>>>
>>> ------------------------------------------------------------------------
>>>
>>> /*
>>> * QoSP Project org.ncl.ac.uk.qosp.modules.manager.RouterDispatcher.java Created
>>> * on 02-Jun-2006, 12:02:14
>>> */
>>> package ncl.qosp.modules.manager;
>>>
>>> import java.util.Iterator;
>>>
>>> import javax.xml.namespace.QName;
>>>
>>> import ncl.qosp.core.MessageType;
>>> import ncl.qosp.core.RoutingConstants;
>>> import ncl.qosp.core.SOAPConstants;
>>> import ncl.qosp.core.SOAPHeaderConstants;
>>> import ncl.qosp.utils.FileUtils;
>>>
>>> import org.apache.axiom.om.OMException;
>>> import org.apache.axiom.soap.SOAPHeader;
>>> import org.apache.axiom.soap.SOAPHeaderBlock;
>>> import org.apache.axis2.AxisFault;
>>> import org.apache.axis2.addressing.AddressingConstants;
>>> import org.apache.axis2.addressing.EndpointReference;
>>> import org.apache.axis2.context.MessageContext;
>>> import org.apache.axis2.description.AxisOperation;
>>> import org.apache.axis2.description.AxisService;
>>> import org.apache.axis2.description.HandlerDescription;
>>> import org.apache.axis2.engine.AbstractDispatcher;
>>> import org.apache.axis2.engine.AxisConfiguration;
>>> import org.apache.axis2.util.Utils;
>>> import org.apache.log4j.Level;
>>> import org.apache.log4j.Logger;
>>>
>>> /**
>>> * Dispatches the client request to the manager service. All the core
>>> * informations, that is target service and target method, are saved into the
>>> * {@link org.apache.axis2.context.MessageContext} options.
>>> * <p>
>>> * This handler replaces the
>>> * {@link org.apache.axis2.engine.RequestURIBasedDispatcher} handler in the
>>> * incoming chain (transport phase).
>>> * <p>
>>> * To get the target WS addressing action mapping the SOAP header is parsed.
>>> *
>>> * @author <a href="mailto:Michele.Mazzucco@ncl.ac.uk">Michele Mazzucco</a>
>>> * @version 0.2
>>> * @since 0.1
>>> * @see "$AXIS2_HOME/webapps/axis2/WEB-INF/conf/axis2.xml"
>>> */
>>> public class RouterDispatcher extends AbstractDispatcher {
>>>
>>> // ///////////////////////////////////////////////////////////////////
>>> // Constants
>>> // ///////////////////////////////////////////////////////////////////
>>>
>>> /**
>>> * The dispatcher's name.
>>> *
>>> * @see #initDispatcher()
>>> */
>>> private static final String DISPATCHER_NAME = "RouterDispatcher";
>>>
>>> /**
>>> *
>>> */
>>> private static final QName WSA_ACTION = new QName(
>>> AddressingConstants.WSA_ACTION);
>>>
>>> // ///////////////////////////////////////////////////////////////////
>>> // Logger
>>> // ///////////////////////////////////////////////////////////////////
>>>
>>> /** Logger. */
>>> private static Logger log;
>>>
>>> static {
>>> log = Logger.getLogger(RouterDispatcher.class);
>>> }
>>>
>>> // ///////////////////////////////////////////////////////////////////
>>> // Fields
>>> // ///////////////////////////////////////////////////////////////////
>>>
>>> /** The target operation. */
>>> private String targetOperationName;
>>>
>>> /** The target service. */
>>> private String targetServiceName;
>>>
>>> /** Message arrival time. */
>>> private long arrivalTime;
>>>
>>>
>>> // ///////////////////////////////////////////////////////////////////
>>> // Methods from AbstractDispatcher
>>> // ///////////////////////////////////////////////////////////////////
>>>
>>> // The findOperation and findService are very similar to the ones
>>> // implemented
>>> // in RequestURIBasedDispatcher
>>>
>>> /*
>>> * @see org.apache.axis2.engine.AbstractDispatcher#findOperation(org.apache.axis2.description.AxisService,
>>> * org.apache.axis2.context.MessageContext)
>>> */
>>> @Override
>>> public AxisOperation findOperation(AxisService service,
>>> MessageContext messageContext) {
>>> /*
>>> * if (log.isDebugEnabled()) { log.debug("Trying to find the required
>>> * operation"); }
>>> */
>>>
>>> AxisOperation result = null;
>>>
>>> EndpointReference toEPR = messageContext.getTo();
>>> if ((toEPR != null) && (targetOperationName == null)) {
>>> String filePart = toEPR.getAddress();
>>> String[] values = Utils.parseRequestURLForServiceAndOperation(
>>> filePart, messageContext.getConfigurationContext()
>>> .getServicePath());
>>>
>>> // The previous call returns an array of lenght 2, where values[1]
>>> // holds the operation name
>>> if ((values[1] != null) && (values[1].length() > 0)) {
>>> targetOperationName = values[1];
>>> }
>>> }
>>>
>>> result = service.getOperation(RoutingConstants.FORWARD_OPERATION_NAME);
>>>
>>> return result;
>>> } // -- findOperation()
>>>
>>>
>>> /*
>>> * @see org.apache.axis2.engine.AbstractDispatcher#findService(org.apache.axis2.context.MessageContext)
>>> */
>>> @Override
>>> public AxisService findService(MessageContext messageContext)
>>> throws AxisFault {
>>>
>>> AxisService result = null;
>>> EndpointReference toEPR = messageContext.getTo();
>>>
>>> if (toEPR != null) {
>>> String address = toEPR.getAddress();
>>>
>>> // Returns a 2 values array
>>> String[] values = Utils.parseRequestURLForServiceAndOperation(
>>> address, messageContext.getConfigurationContext()
>>> .getServicePath());
>>>
>>> if ((values[1] != null) && (values[1].length() > 0)) {
>>> targetOperationName = values[1];
>>> }
>>> if ((values[0] != null) && (values[0].length() > 0)) {
>>> targetServiceName = values[0];
>>> /*
>>> * if (log.isDebugEnabled()) { log.debug("Target service is [" +
>>> * targetServiceName + "]"); }
>>> */
>>>
>>> AxisConfiguration registry = messageContext
>>> .getConfigurationContext().getAxisConfiguration();
>>>
>>> /*
>>> * If the target service is 'version', allow the request to pass
>>> * through
>>> */
>>> if (targetServiceName.equalsIgnoreCase("version")) {
>>> result = registry.getService(targetServiceName);
>>> } else {
>>> // Forwards the request to the 'RoutingService' service
>>> result = registry
>>> .getService(RoutingConstants.FORWARD_SERVICE_NAME);
>>> }
>>> }
>>> }
>>>
>>> return result;
>>>
>>> } // -- findService()
>>>
>>>
>>> /*
>>> * @see org.apache.axis2.engine.AbstractDispatcher#initDispatcher()
>>> */
>>> @Override
>>> public void initDispatcher() {
>>> init(new HandlerDescription(DISPATCHER_NAME));
>>> }
>>>
>>>
>>> /*
>>> * @see org.apache.axis2.engine.AbstractDispatcher#invoke(org.apache.axis2.context.MessageContext)
>>> */
>>> @Override
>>> public InvocationResponse invoke(MessageContext messageContext)
>>> throws AxisFault {
>>>
>>> log.info("Handler invoked");
>>> try {
>>> SOAPHeader header = messageContext.getEnvelope().getHeader();
>>> String messageType = SOAPHeaderConstants.getQospMessage(header);
>>>
>>> if (messageType != null) {
>>> if (log.isDebugEnabled()) {
>>> log.debug("Internal message [" + messageType + "]");
>>> }
>>>
>>> if (messageType.equalsIgnoreCase(MessageType.RESULT.value())) {
>>> removeRelatesTo(messageContext.getEnvelope().getHeader());
>>> if (log.isDebugEnabled()) {
>>> log
>>> .debug("Response message (removed the RelatesTo header)");
>>> }
>>> }
>>>
>>> } else {
>>> if (log.isDebugEnabled()) {
>>> log.debug("Received client request");
>>> }
>>>
>>> clientRequest(messageContext);
>>> }
>>> } catch (OMException e) {
>>> if (log.isEnabledFor(Level.ERROR)) {
>>> log.error(FileUtils.getNow()
>>> + ": unable to get the SOAP header: "
>>> + e.getLocalizedMessage());
>>> }
>>> throw new AxisFault(e);
>>> }
>>>
>>> return InvocationResponse.CONTINUE;
>>>
>>> } // -- invoke()
>>>
>>>
>>> // ///////////////////////////////////////////////////////////////////
>>> // Private methods
>>> // ///////////////////////////////////////////////////////////////////
>>>
>>> /**
>>> * Removes the {@link AddressingConstants#WSA_RELATES_TO} element from the
>>> * SOAP header. This is needed because the result receiver is different from
>>> * the requestor.
>>> *
>>> * @param header The SOAP header message without the 'RelatesTo' element.
>>> */
>>> @SuppressWarnings("unchecked")
>>> private final void removeRelatesTo(SOAPHeader header) {
>>> for (Iterator<SOAPHeaderBlock> i = header.examineAllHeaderBlocks(); i
>>> .hasNext();) {
>>> SOAPHeaderBlock tmp = i.next();
>>>
>>> if (tmp.getLocalName().equalsIgnoreCase(
>>> AddressingConstants.WSA_RELATES_TO)) {
>>> tmp.detach();
>>>
>>> if (log.isDebugEnabled()) {
>>> log.debug("Removed 'RelatesTo'");
>>> }
>>> break;
>>> }
>>> }
>>> } // -- removeRelatesTo()
>>>
>>>
>>> /**
>>> * Handler client requests.
>>> *
>>> * @param messageContext The message context.
>>> * @throws AxisFault If an error occurs.
>>> */
>>> private final void clientRequest(MessageContext messageContext)
>>> throws AxisFault {
>>> // Gets the arrival timestamp
>>> this.arrivalTime = System.currentTimeMillis();
>>>
>>> AxisService axisService = messageContext.getAxisService();
>>>
>>> if (axisService == null) {
>>> axisService = findService(messageContext);
>>>
>>> if (axisService != null) {
>>> if (log.isInfoEnabled()) {
>>> log.info("Target service: " + axisService.getName());
>>> }
>>> messageContext.setAxisService(axisService);
>>>
>>> if (log.isInfoEnabled()) {
>>> log.info("Message to: " + axisService.getEndpoint().toString());
>>> }
>>> }
>>> }
>>>
>>> if ((messageContext.getAxisService() != null)
>>> && (messageContext.getAxisOperation() == null)) {
>>> AxisOperation axisOperation = null;
>>>
>>> axisOperation = findOperation(axisService, messageContext);
>>>
>>> if (axisOperation != null) {/*
>>> * if (log.isInfoEnabled()) {
>>> * log.info("Operation set to [" +
>>> * axisOperation.getName().getLocalPart() +
>>> * "]"); }
>>> */
>>>
>>> messageContext.setAxisOperation(axisOperation);
>>> }
>>> }
>>>
>>> saveTargetService(messageContext);
>>> saveTargetOperation(messageContext);
>>> // saveTargetAction(messageContext);
>>>
>>> // Gets the action mapping
>>> String soapAction = messageContext.getSoapAction();
>>> if ((soapAction == null) || (soapAction.length() == 0)) {
>>> try {
>>> /*
>>> * If the message context does not contain the soap action try
>>> * to get it from the SOAP header
>>> */
>>> SOAPHeader header = messageContext.getEnvelope().getHeader();
>>> soapAction = header.getFirstChildWithName(WSA_ACTION).getText();
>>> // extractWSASoapAction(header.toString());
>>> } catch (OMException e) {
>>> if (log.isEnabledFor(Level.ERROR)) {
>>> log.error(FileUtils.getNow()
>>> + ": unable to get the SOAP header: "
>>> + e.getLocalizedMessage());
>>> }
>>> throw new AxisFault(e);
>>> }
>>> }
>>> messageContext.getOptions().setProperty(
>>> RoutingConstants.TARGET_ACTION_MAPPING, soapAction);
>>>
>>> // Saves the arrival time stamp
>>> saveArrivalTime(messageContext);
>>> } // -- clientRequest()
>>>
>>>
>>> /**
>>> * Saves the arrival time stamp.
>>> *
>>> * @param messageContext The message context.
>>> */
>>> private final void saveArrivalTime(MessageContext messageContext) {
>>> messageContext.getOptions().setProperty(SOAPConstants.REQ_ARRIVAL_TIME,
>>> this.arrivalTime);
>>> } // -- saveArrivalTime()
>>>
>>>
>>> /**
>>> * Saves the target service as {@link RoutingConstants#TARGET_SERVICE}
>>> * message property.
>>> *
>>> * @param messageContext The message context.
>>> */
>>> private final void saveTargetService(final MessageContext messageContext) {
>>> messageContext.getOptions().setProperty(
>>> RoutingConstants.TARGET_SERVICE, targetServiceName);
>>> } // -- saveTargetService()
>>>
>>>
>>> /**
>>> * Saves the target operation as {@link RoutingConstants#TARGET_OPERATION}
>>> * message property.
>>> *
>>> * @param messageContext The message context.
>>> */
>>> private final void saveTargetOperation(final MessageContext messageContext) {
>>> if ((targetOperationName != null) && (targetOperationName.length() > 0)) {
>>> messageContext.getOptions().setProperty(
>>> RoutingConstants.TARGET_OPERATION, targetOperationName);
>>> }
>>> } // -- saveTargetOperation()
>>>
>>> } // END RouterDispatcher
>>>
>>>
>>> ------------------------------------------------------------------------
>>>
>>> 2006-11-08 15:08:54,044 [org.apache.axis2.deployment.DeploymentEngine] - Deploying Web service RoutingService.aar
>>> 2006-11-08 15:08:54,090 [org.apache.axis2.deployment.DeploymentEngine] - Deploying Web service version.aar
>>> 2006-11-08 15:12:10,471 [org.apache.axis2.transport.http.AxisServlet] - java.lang.NullPointerException
>>> 2006-11-08 15:17:59,644 [org.apache.axis2.engine.Phase] - Handler AddressingFinalInHandler added to Phase PreDispatch
>>> 2006-11-08 15:17:59,644 [org.apache.axis2.engine.Phase] - Handler AddressingSubmissionInHandler added to Phase PreDispatch
>>> 2006-11-08 15:17:59,644 [org.apache.axis2.engine.Phase] - Handler AddressingOutHandler added to Phase MessageOut
>>> 2006-11-08 15:17:59,644 [org.apache.axis2.engine.Phase] - Handler AddressingFinalInHandler added to Phase PreDispatch
>>> 2006-11-08 15:17:59,644 [org.apache.axis2.engine.Phase] - Handler AddressingSubmissionInHandler added to Phase PreDispatch
>>> 2006-11-08 15:17:59,644 [org.apache.axis2.engine.Phase] - Handler AddressingOutHandler added to Phase MessageOut
>>> 2006-11-08 15:17:59,644 [org.apache.axis2.engine.Phase] - Handler InFlowManagerHandler added to Phase ManagerInterceptorPhase
>>> 2006-11-08 15:17:59,691 [org.apache.axis2.i18n.ProjectResourceBundle] - org.apache.axis2.i18n.resource::handleGetObject(deployingws)
>>> 2006-11-08 15:17:59,691 [org.apache.axis2.deployment.DeploymentEngine] - Deploying Web service RoutingService.aar
>>> 2006-11-08 15:17:59,753 [org.apache.axis2.i18n.ProjectResourceBundle] - org.apache.axis2.i18n.resource::handleGetObject(deployingws)
>>> 2006-11-08 15:17:59,753 [org.apache.axis2.deployment.DeploymentEngine] - Deploying Web service version.aar
>>> 2006-11-08 15:17:59,753 [org.apache.axis2.deployment.WarBasedAxisConfigurator] - loaded services from webapp
>>> 2006-11-08 15:18:10,189 [org.apache.axis2.engine.Phase] - Checking pre-condition for Phase "ManagerInterceptorPhase"
>>> 2006-11-08 15:18:10,189 [org.apache.axis2.engine.Phase] - Invoking phase "ManagerInterceptorPhase"
>>> 2006-11-08 15:18:10,189 [org.apache.axis2.engine.Phase] - Invoking Handler 'InFlowManagerHandler' in Phase 'ManagerInterceptorPhase'
>>> 2006-11-08 15:18:10,205 [org.apache.axis2.engine.Phase] - Checking post-conditions for phase "ManagerInterceptorPhase"
>>> 2006-11-08 15:18:10,205 [org.apache.axis2.engine.Phase] - Checking pre-condition for Phase "Transport"
>>> 2006-11-08 15:18:10,205 [org.apache.axis2.engine.Phase] - Invoking phase "Transport"
>>> 2006-11-08 15:18:10,205 [org.apache.axis2.engine.Phase] - Invoking Handler 'SOAPActionBasedDispatcher' in Phase 'Transport'
>>> 2006-11-08 15:18:10,205 [org.apache.axis2.engine.SOAPActionBasedDispatcher] - Checking for Service using SOAPAction is a TODO item
>>> 2006-11-08 15:18:10,205 [org.apache.axis2.engine.Phase] - Checking post-conditions for phase "Transport"
>>> 2006-11-08 15:18:10,221 [org.apache.axis2.engine.Phase] - Checking pre-condition for Phase "Security"
>>> 2006-11-08 15:18:10,221 [org.apache.axis2.engine.Phase] - Invoking phase "Security"
>>> 2006-11-08 15:18:10,221 [org.apache.axis2.engine.Phase] - Checking post-conditions for phase "Security"
>>> 2006-11-08 15:18:10,221 [org.apache.axis2.engine.Phase] - Checking pre-condition for Phase "PreDispatch"
>>> 2006-11-08 15:18:10,221 [org.apache.axis2.engine.Phase] - Invoking phase "PreDispatch"
>>> 2006-11-08 15:18:10,221 [org.apache.axis2.engine.Phase] - Invoking Handler 'AddressingFinalInHandler' in Phase 'PreDispatch'
>>> 2006-11-08 15:18:10,221 [org.apache.axis2.handlers.addressing.AddressingInHandler] - Starting WS-Addressing Final IN handler ...
>>> 2006-11-08 15:18:10,221 [org.apache.axis2.handlers.addressing.AddressingInHandler] - No Headers present corresponding to WS-Addressing Final
>>> 2006-11-08 15:18:10,221 [org.apache.axis2.engine.Phase] - Invoking Handler 'AddressingSubmissionInHandler' in Phase 'PreDispatch'
>>> 2006-11-08 15:18:10,221 [org.apache.axis2.handlers.addressing.AddressingInHandler] - Starting WS-Addressing Submission IN handler ...
>>> 2006-11-08 15:18:10,221 [org.apache.axis2.handlers.addressing.AddressingInHandler] - No Headers present corresponding to WS-Addressing Submission
>>> 2006-11-08 15:18:10,221 [org.apache.axis2.engine.Phase] - Checking post-conditions for phase "PreDispatch"
>>> 2006-11-08 15:18:10,221 [org.apache.axis2.engine.Phase] - Checking pre-condition for Phase "Dispatch"
>>> 2006-11-08 15:18:10,236 [org.apache.axis2.engine.Phase] - Invoking phase "Dispatch"
>>> 2006-11-08 15:18:10,236 [org.apache.axis2.engine.Phase] - Invoking Handler 'AddressingBasedDispatcher' in Phase 'Dispatch'
>>> 2006-11-08 15:18:10,236 [org.apache.axis2.i18n.ProjectResourceBundle] - org.apache.axis2.i18n.resource::handleGetObject(checkingserviceforepr)
>>> 2006-11-08 15:18:10,236 [org.apache.axis2.engine.AddressingBasedDispatcher] - Checking for Service using toEPRs address : {0}
>>> 2006-11-08 15:18:10,236 [org.apache.axis2.i18n.ProjectResourceBundle] - org.apache.axis2.i18n.resource::handleGetObject(checkingserviceforepr)
>>> 2006-11-08 15:18:10,236 [org.apache.axis2.engine.AddressingBasedDispatcher] - Checking for Service using toEPRs address : {0}
>>> 2006-11-08 15:18:10,236 [org.apache.axis2.i18n.ProjectResourceBundle] - org.apache.axis2.i18n.resource::handleGetObject(servicefound)
>>> 2006-11-08 15:18:10,236 [org.apache.axis2.engine.AbstractDispatcher] - Found AxisService : RoutingService
>>> 2006-11-08 15:18:10,236 [org.apache.axis2.i18n.ProjectResourceBundle] - org.apache.axis2.i18n.resource::handleGetObject(checkingoperation)
>>> 2006-11-08 15:18:10,236 [org.apache.axis2.engine.AddressingBasedDispatcher] - Checking for Operation using WSAAction : urn:addNode
>>> 2006-11-08 15:18:10,236 [org.apache.axis2.i18n.ProjectResourceBundle] - org.apache.axis2.i18n.resource::handleGetObject(operationfound)
>>> 2006-11-08 15:18:10,236 [org.apache.axis2.engine.AbstractDispatcher] - Found AxisOperation : addNode
>>> 2006-11-08 15:18:10,252 [org.apache.axis2.engine.Phase] - Invoking Handler 'SOAPMessageBodyBasedDispatcher' in Phase 'Dispatch'
>>> 2006-11-08 15:18:10,252 [org.apache.axis2.engine.Phase] - Invoking Handler 'InstanceDispatcher' in Phase 'Dispatch'
>>> 2006-11-08 15:18:10,252 [org.apache.axis2.engine.Phase] - Invoking Handler 'AddressingWSDLValidationHandler' in Phase 'Dispatch'
>>> 2006-11-08 15:18:10,252 [org.apache.axis2.engine.Phase] - Checking post-conditions for phase "Dispatch"
>>> 2006-11-08 15:18:10,252 [org.apache.axis2.engine.Phase] - Checking pre-condition for Phase "OperationInPhase"
>>> 2006-11-08 15:18:10,252 [org.apache.axis2.engine.Phase] - Invoking phase "OperationInPhase"
>>> 2006-11-08 15:18:10,252 [org.apache.axis2.engine.Phase] - Checking post-conditions for phase "OperationInPhase"
>>> 2006-11-08 15:18:10,252 [org.apache.axis2.engine.Phase] - Checking pre-condition for Phase "soapmonitorPhase"
>>> 2006-11-08 15:18:10,252 [org.apache.axis2.engine.Phase] - Invoking phase "soapmonitorPhase"
>>> 2006-11-08 15:18:10,252 [org.apache.axis2.engine.Phase] - Checking post-conditions for phase "soapmonitorPhase"
>>> 2006-11-08 15:18:10,283 [org.apache.axis2.i18n.ProjectResourceBundle] - org.apache.axis2.i18n.resource::handleGetObject(methodDoesNotExistInOut)
>>> 2006-11-08 15:18:10,283 [org.apache.axis2.transport.http.AxisServlet] - org.apache.axis2.AxisFault: ServiceClass does not implement required method of the form OMElement addNode(OMElement e)
>>> 2006-11-08 15:18:10,283 [org.apache.axis2.addressing.AddressingHelper] - isReplyRedirected: FaultTo is null. Returning isReplyRedirected
>>> 2006-11-08 15:18:10,283 [org.apache.axis2.addressing.AddressingHelper] - isReplyRedirected: ReplyTo is null. Returning false
>>> 2006-11-08 15:18:10,299 [org.apache.axis2.engine.Phase] - Checking pre-condition for Phase "soapmonitorPhase"
>>> 2006-11-08 15:18:10,314 [org.apache.axis2.engine.Phase] - Invoking phase "soapmonitorPhase"
>>> 2006-11-08 15:18:10,314 [org.apache.axis2.engine.Phase] - Checking post-conditions for phase "soapmonitorPhase"
>>> 2006-11-08 15:18:10,314 [org.apache.axis2.engine.Phase] - Checking pre-condition for Phase "OperationOutFaultPhase"
>>> 2006-11-08 15:18:10,314 [org.apache.axis2.engine.Phase] - Invoking phase "OperationOutFaultPhase"
>>> 2006-11-08 15:18:10,314 [org.apache.axis2.engine.Phase] - Checking post-conditions for phase "OperationOutFaultPhase"
>>> 2006-11-08 15:18:10,314 [org.apache.axis2.engine.Phase] - Checking pre-condition for Phase "PolicyDetermination"
>>> 2006-11-08 15:18:10,314 [org.apache.axis2.engine.Phase] - Invoking phase "PolicyDetermination"
>>> 2006-11-08 15:18:10,314 [org.apache.axis2.engine.Phase] - Checking post-conditions for phase "PolicyDetermination"
>>> 2006-11-08 15:18:10,314 [org.apache.axis2.engine.Phase] - Checking pre-condition for Phase "MessageOut"
>>> 2006-11-08 15:18:10,314 [org.apache.axis2.engine.Phase] - Invoking phase "MessageOut"
>>> 2006-11-08 15:18:10,314 [org.apache.axis2.engine.Phase] - Invoking Handler 'AddressingOutHandler' in Phase 'MessageOut'
>>> 2006-11-08 15:18:10,314 [org.apache.axis2.handlers.addressing.AddressingHandler] - Addressing is disabled .....
>>> 2006-11-08 15:18:10,314 [org.apache.axis2.engine.Phase] - Checking post-conditions for phase "MessageOut"
>>> 2006-11-08 15:18:20,891 [org.apache.axis2.engine.Phase] - Checking pre-condition for Phase "ManagerInterceptorPhase"
>>> 2006-11-08 15:18:20,891 [org.apache.axis2.engine.Phase] - Invoking phase "ManagerInterceptorPhase"
>>> 2006-11-08 15:18:20,891 [org.apache.axis2.engine.Phase] - Invoking Handler 'InFlowManagerHandler' in Phase 'ManagerInterceptorPhase'
>>> 2006-11-08 15:18:20,891 [org.apache.axis2.engine.Phase] - Checking post-conditions for phase "ManagerInterceptorPhase"
>>> 2006-11-08 15:18:20,891 [org.apache.axis2.engine.Phase] - Checking pre-condition for Phase "Transport"
>>> 2006-11-08 15:18:20,907 [org.apache.axis2.engine.Phase] - Invoking phase "Transport"
>>> 2006-11-08 15:18:20,907 [org.apache.axis2.engine.Phase] - Invoking Handler 'SOAPActionBasedDispatcher' in Phase 'Transport'
>>> 2006-11-08 15:18:20,907 [org.apache.axis2.engine.SOAPActionBasedDispatcher] - Checking for Service using SOAPAction is a TODO item
>>> 2006-11-08 15:18:20,907 [org.apache.axis2.engine.Phase] - Checking post-conditions for phase "Transport"
>>> 2006-11-08 15:18:20,907 [org.apache.axis2.engine.Phase] - Checking pre-condition for Phase "Security"
>>> 2006-11-08 15:18:20,907 [org.apache.axis2.engine.Phase] - Invoking phase "Security"
>>> 2006-11-08 15:18:20,907 [org.apache.axis2.engine.Phase] - Checking post-conditions for phase "Security"
>>> 2006-11-08 15:18:20,907 [org.apache.axis2.engine.Phase] - Checking pre-condition for Phase "PreDispatch"
>>> 2006-11-08 15:18:20,907 [org.apache.axis2.engine.Phase] - Invoking phase "PreDispatch"
>>> 2006-11-08 15:18:20,907 [org.apache.axis2.engine.Phase] - Invoking Handler 'AddressingFinalInHandler' in Phase 'PreDispatch'
>>> 2006-11-08 15:18:20,907 [org.apache.axis2.handlers.addressing.AddressingInHandler] - Starting WS-Addressing Final IN handler ...
>>> 2006-11-08 15:18:20,907 [org.apache.axis2.handlers.addressing.AddressingInHandler] - No Headers present corresponding to WS-Addressing Final
>>> 2006-11-08 15:18:20,907 [org.apache.axis2.engine.Phase] - Invoking Handler 'AddressingSubmissionInHandler' in Phase 'PreDispatch'
>>> 2006-11-08 15:18:20,907 [org.apache.axis2.handlers.addressing.AddressingInHandler] - Starting WS-Addressing Submission IN handler ...
>>> 2006-11-08 15:18:20,907 [org.apache.axis2.handlers.addressing.AddressingInHandler] - No Headers present corresponding to WS-Addressing Submission
>>> 2006-11-08 15:18:20,922 [org.apache.axis2.engine.Phase] - Checking post-conditions for phase "PreDispatch"
>>> 2006-11-08 15:18:20,922 [org.apache.axis2.engine.Phase] - Checking pre-condition for Phase "Dispatch"
>>> 2006-11-08 15:18:20,922 [org.apache.axis2.engine.Phase] - Invoking phase "Dispatch"
>>> 2006-11-08 15:18:20,922 [org.apache.axis2.engine.Phase] - Invoking Handler 'AddressingBasedDispatcher' in Phase 'Dispatch'
>>> 2006-11-08 15:18:20,922 [org.apache.axis2.i18n.ProjectResourceBundle] - org.apache.axis2.i18n.resource::handleGetObject(checkingserviceforepr)
>>> 2006-11-08 15:18:20,922 [org.apache.axis2.engine.AddressingBasedDispatcher] - Checking for Service using toEPRs address : {0}
>>> 2006-11-08 15:18:20,922 [org.apache.axis2.i18n.ProjectResourceBundle] - org.apache.axis2.i18n.resource::handleGetObject(checkingserviceforepr)
>>> 2006-11-08 15:18:20,922 [org.apache.axis2.engine.AddressingBasedDispatcher] - Checking for Service using toEPRs address : {0}
>>> 2006-11-08 15:18:20,922 [org.apache.axis2.i18n.ProjectResourceBundle] - org.apache.axis2.i18n.resource::handleGetObject(servicefound)
>>> 2006-11-08 15:18:20,922 [org.apache.axis2.engine.AbstractDispatcher] - Found AxisService : RoutingService
>>> 2006-11-08 15:18:20,922 [org.apache.axis2.i18n.ProjectResourceBundle] - org.apache.axis2.i18n.resource::handleGetObject(checkingoperation)
>>> 2006-11-08 15:18:20,922 [org.apache.axis2.engine.AddressingBasedDispatcher] - Checking for Operation using WSAAction : urn:addService
>>> 2006-11-08 15:18:20,922 [org.apache.axis2.i18n.ProjectResourceBundle] - org.apache.axis2.i18n.resource::handleGetObject(operationfound)
>>> 2006-11-08 15:18:20,938 [org.apache.axis2.engine.AbstractDispatcher] - Found AxisOperation : addService
>>> 2006-11-08 15:18:20,938 [org.apache.axis2.engine.Phase] - Invoking Handler 'SOAPMessageBodyBasedDispatcher' in Phase 'Dispatch'
>>> 2006-11-08 15:18:20,938 [org.apache.axis2.engine.Phase] - Invoking Handler 'InstanceDispatcher' in Phase 'Dispatch'
>>> 2006-11-08 15:18:20,938 [org.apache.axis2.engine.Phase] - Invoking Handler 'AddressingWSDLValidationHandler' in Phase 'Dispatch'
>>> 2006-11-08 15:18:20,938 [org.apache.axis2.engine.Phase] - Checking post-conditions for phase "Dispatch"
>>> 2006-11-08 15:18:20,938 [org.apache.axis2.engine.Phase] - Checking pre-condition for Phase "OperationInPhase"
>>> 2006-11-08 15:18:20,938 [org.apache.axis2.engine.Phase] - Invoking phase "OperationInPhase"
>>> 2006-11-08 15:18:20,938 [org.apache.axis2.engine.Phase] - Checking post-conditions for phase "OperationInPhase"
>>> 2006-11-08 15:18:20,938 [org.apache.axis2.engine.Phase] - Checking pre-condition for Phase "soapmonitorPhase"
>>> 2006-11-08 15:18:20,938 [org.apache.axis2.engine.Phase] - Invoking phase "soapmonitorPhase"
>>> 2006-11-08 15:18:20,938 [org.apache.axis2.engine.Phase] - Checking post-conditions for phase "soapmonitorPhase"
>>> 2006-11-08 15:18:20,938 [org.apache.axis2.i18n.ProjectResourceBundle] - org.apache.axis2.i18n.resource::handleGetObject(methodDoesNotExistInOut)
>>> 2006-11-08 15:18:20,954 [org.apache.axis2.transport.http.AxisServlet] - org.apache.axis2.AxisFault: ServiceClass does not implement required method of the form OMElement addService(OMElement e)
>>> 2006-11-08 15:18:20,954 [org.apache.axis2.addressing.AddressingHelper] - isReplyRedirected: FaultTo is null. Returning isReplyRedirected
>>> 2006-11-08 15:18:20,954 [org.apache.axis2.addressing.AddressingHelper] - isReplyRedirected: ReplyTo is null. Returning false
>>> 2006-11-08 15:18:20,954 [org.apache.axis2.engine.Phase] - Checking pre-condition for Phase "soapmonitorPhase"
>>> 2006-11-08 15:18:20,954 [org.apache.axis2.engine.Phase] - Invoking phase "soapmonitorPhase"
>>> 2006-11-08 15:18:20,954 [org.apache.axis2.engine.Phase] - Checking post-conditions for phase "soapmonitorPhase"
>>> 2006-11-08 15:18:20,954 [org.apache.axis2.engine.Phase] - Checking pre-condition for Phase "OperationOutFaultPhase"
>>> 2006-11-08 15:18:20,954 [org.apache.axis2.engine.Phase] - Invoking phase "OperationOutFaultPhase"
>>> 2006-11-08 15:18:20,954 [org.apache.axis2.engine.Phase] - Checking post-conditions for phase "OperationOutFaultPhase"
>>> 2006-11-08 15:18:20,954 [org.apache.axis2.engine.Phase] - Checking pre-condition for Phase "PolicyDetermination"
>>> 2006-11-08 15:18:20,954 [org.apache.axis2.engine.Phase] - Invoking phase "PolicyDetermination"
>>> 2006-11-08 15:18:20,954 [org.apache.axis2.engine.Phase] - Checking post-conditions for phase "PolicyDetermination"
>>> 2006-11-08 15:18:20,969 [org.apache.axis2.engine.Phase] - Checking pre-condition for Phase "MessageOut"
>>> 2006-11-08 15:18:20,969 [org.apache.axis2.engine.Phase] - Invoking phase "MessageOut"
>>> 2006-11-08 15:18:20,969 [org.apache.axis2.engine.Phase] - Invoking Handler 'AddressingOutHandler' in Phase 'MessageOut'
>>> 2006-11-08 15:18:20,969 [org.apache.axis2.handlers.addressing.AddressingHandler] - Addressing is disabled .....
>>> 2006-11-08 15:18:20,969 [org.apache.axis2.engine.Phase] - Checking post-conditions for phase "MessageOut"
>>> 2006-11-08 15:18:38,404 [org.apache.axis2.engine.Phase] - Checking pre-condition for Phase "ManagerInterceptorPhase"
>>> 2006-11-08 15:18:38,404 [org.apache.axis2.engine.Phase] - Invoking phase "ManagerInterceptorPhase"
>>> 2006-11-08 15:18:38,404 [org.apache.axis2.engine.Phase] - Invoking Handler 'InFlowManagerHandler' in Phase 'ManagerInterceptorPhase'
>>> 2006-11-08 15:18:38,420 [org.apache.axis2.transport.http.AxisServlet] - java.lang.NullPointerException
>>> 2006-11-08 15:18:38,420 [org.apache.axis2.addressing.AddressingHelper] - isReplyRedirected: FaultTo is null. Returning isReplyRedirected
>>> 2006-11-08 15:18:38,420 [org.apache.axis2.addressing.AddressingHelper] - isReplyRedirected: ReplyTo is null. Returning false
>>> 2006-11-08 15:18:38,420 [org.apache.axis2.engine.Phase] - Checking pre-condition for Phase "MessageOut"
>>> 2006-11-08 15:18:38,420 [org.apache.axis2.engine.Phase] - Invoking phase "MessageOut"
>>> 2006-11-08 15:18:38,420 [org.apache.axis2.engine.Phase] - Invoking Handler 'AddressingOutHandler' in Phase 'MessageOut'
>>> 2006-11-08 15:18:38,420 [org.apache.axis2.addressing.EndpointReferenceHelper] - toOM: Factory, org.apache.axiom.soap.impl.llom.soap12.SOAP12Factory@98bbf6
>>> 2006-11-08 15:18:38,420 [org.apache.axis2.addressing.EndpointReferenceHelper] - toOM: Endpoint reference, Address: http://www.w3.org/2005/08/addressing/none
>>> 2006-11-08 15:18:38,420 [org.apache.axis2.addressing.EndpointReferenceHelper] - toOM: Element qname, {http://www.w3.org/2005/08/addressing}ReplyTo
>>> 2006-11-08 15:18:38,436 [org.apache.axis2.addressing.EndpointReferenceHelper] - toOM: Addressing namespace, http://www.w3.org/2005/08/addressing
>>> 2006-11-08 15:18:38,436 [org.apache.axis2.engine.Phase] - Checking post-conditions for phase "MessageOut"
>>> 2006-11-08 15:24:31,935 [org.apache.axis2.engine.Phase] - Checking pre-condition for Phase "ManagerInterceptorPhase"
>>> 2006-11-08 15:24:31,935 [org.apache.axis2.engine.Phase] - Invoking phase "ManagerInterceptorPhase"
>>> 2006-11-08 15:24:31,935 [org.apache.axis2.engine.Phase] - Invoking Handler 'InFlowManagerHandler' in Phase 'ManagerInterceptorPhase'
>>> 2006-11-08 15:24:31,935 [org.apache.axis2.transport.http.AxisServlet] - java.lang.NullPointerException
>>> 2006-11-08 15:24:31,935 [org.apache.axis2.addressing.AddressingHelper] - isReplyRedirected: FaultTo is null. Returning isReplyRedirected
>>> 2006-11-08 15:24:31,935 [org.apache.axis2.addressing.AddressingHelper] - isReplyRedirected: ReplyTo is null. Returning false
>>> 2006-11-08 15:24:31,935 [org.apache.axis2.engine.Phase] - Checking pre-condition for Phase "MessageOut"
>>> 2006-11-08 15:24:31,935 [org.apache.axis2.engine.Phase] - Invoking phase "MessageOut"
>>> 2006-11-08 15:24:31,951 [org.apache.axis2.engine.Phase] - Invoking Handler 'AddressingOutHandler' in Phase 'MessageOut'
>>> 2006-11-08 15:24:31,951 [org.apache.axis2.addressing.EndpointReferenceHelper] - toOM: Factory, org.apache.axiom.soap.impl.llom.soap12.SOAP12Factory@e7e8eb
>>> 2006-11-08 15:24:31,951 [org.apache.axis2.addressing.EndpointReferenceHelper] - toOM: Endpoint reference, Address: http://www.w3.org/2005/08/addressing/none
>>> 2006-11-08 15:24:31,951 [org.apache.axis2.addressing.EndpointReferenceHelper] - toOM: Element qname, {http://www.w3.org/2005/08/addressing}ReplyTo
>>> 2006-11-08 15:24:31,951 [org.apache.axis2.addressing.EndpointReferenceHelper] - toOM: Addressing namespace, http://www.w3.org/2005/08/addressing
>>> 2006-11-08 15:24:31,951 [org.apache.axis2.engine.Phase] - Checking post-conditions for phase "MessageOut"
>>>
>>>
>>> ------------------------------------------------------------------------
>>>
>>> 2006-11-08 15:08:53,731 [ncl.qosp.controller.RoutingService] - Startup time is: Wed Nov 08 15:08:53 GMT 2006
>>> 2006-11-08 15:08:54,106 [ncl.qosp.controller.RoutingService] - -- Constructor
>>> 2006-11-08 15:08:54,184 [ncl.qosp.controller.RoutingService] - Scheduler created
>>> 2006-11-08 15:08:54,184 [ncl.qosp.controller.scheduler.weighted.queue.QueueSizeScheduler] - Scheduler component started
>>> 2006-11-08 15:09:08,198 [ncl.qosp.controller.LifecycleSupport] - Qosp is shutting down...
>>> 2006-11-08 15:09:08,198 [ncl.qosp.controller.scheduler.weighted.queue.QueueSizeScheduler] - The timer was not running
>>> 2006-11-08 15:09:08,198 [ncl.qosp.controller.scheduler.weighted.queue.QueueSizeScheduler] - Scheduler component stopped
>>> 2006-11-08 15:09:08,198 [ncl.qosp.controller.LifecycleSupport] - Scheduler stopped
>>> 2006-11-08 15:09:08,198 [ncl.qosp.controller.LifecycleSupport] - Scheduler unregistered from the mbean server
>>> 2006-11-08 15:09:08,198 [ncl.qosp.controller.LifecycleSupport] - Connector server stopped
>>> 2006-11-08 15:10:13,518 [ncl.qosp.controller.RoutingService] - Startup time is: Wed Nov 08 15:10:13 GMT 2006
>>> 2006-11-08 15:10:13,908 [ncl.qosp.controller.RoutingService] - -- Constructor
>>> 2006-11-08 15:10:13,971 [ncl.qosp.controller.RoutingService] - Scheduler created
>>> 2006-11-08 15:10:13,971 [ncl.qosp.controller.scheduler.weighted.queue.QueueSizeScheduler] - Scheduler component started
>>> 2006-11-08 15:10:41,014 [ncl.qosp.modules.manager.RouterDispatcher] - Handler invoked
>>> 2006-11-08 15:10:41,030 [ncl.qosp.modules.manager.RouterDispatcher] - Internal message [New node]
>>> 2006-11-08 15:11:01,183 [ncl.qosp.modules.manager.RouterDispatcher] - Handler invoked
>>> 2006-11-08 15:11:01,183 [ncl.qosp.modules.manager.RouterDispatcher] - Internal message [New service]
>>> 2006-11-08 15:11:31,836 [ncl.qosp.controller.scheduler.weighted.queue.QueueSizeScheduler] - Received listener request
>>> 2006-11-08 15:11:31,836 [ncl.qosp.controller.scheduler.weighted.queue.QueueSizeScheduler] - Added notification listener
>>> 2006-11-08 15:12:10,471 [ncl.qosp.modules.manager.RouterDispatcher] - Handler invoked
>>> 2006-11-08 15:12:10,471 [ncl.qosp.modules.manager.RouterDispatcher] - Received client request
>>> 2006-11-08 15:12:10,471 [ncl.qosp.modules.manager.RouterDispatcher] - Target service: RoutingService
>>> 2006-11-08 15:13:50,271 [ncl.qosp.controller.LifecycleSupport] - Qosp is shutting down...
>>> 2006-11-08 15:13:50,271 [ncl.qosp.controller.scheduler.weighted.queue.QueueSizeScheduler] - The timer was not running
>>> 2006-11-08 15:13:50,271 [ncl.qosp.controller.scheduler.weighted.queue.QueueSizeScheduler] - Scheduler component stopped
>>> 2006-11-08 15:13:50,271 [ncl.qosp.controller.LifecycleSupport] - Scheduler stopped
>>> 2006-11-08 15:13:50,271 [ncl.qosp.controller.LifecycleSupport] - Scheduler unregistered from the mbean server
>>> 2006-11-08 15:13:50,302 [ncl.qosp.controller.LifecycleSupport] - Connector server stopped
>>> 2006-11-08 15:17:59,363 [ncl.qosp.controller.RoutingService] - Startup time is: Wed Nov 08 15:17:59 GMT 2006
>>> 2006-11-08 15:17:59,769 [ncl.qosp.controller.RoutingService] - -- Constructor
>>> 2006-11-08 15:17:59,831 [ncl.qosp.controller.RoutingService] - Scheduler created
>>> 2006-11-08 15:17:59,847 [ncl.qosp.controller.scheduler.weighted.queue.QueueSizeScheduler] - Scheduler component started
>>> 2006-11-08 15:18:10,205 [ncl.qosp.modules.manager.RouterDispatcher] - Handler invoked
>>> 2006-11-08 15:18:10,205 [ncl.qosp.modules.manager.RouterDispatcher] - Internal message [New node]
>>> 2006-11-08 15:18:20,891 [ncl.qosp.modules.manager.RouterDispatcher] - Handler invoked
>>> 2006-11-08 15:18:20,891 [ncl.qosp.modules.manager.RouterDispatcher] - Internal message [New service]
>>> 2006-11-08 15:18:38,404 [ncl.qosp.modules.manager.RouterDispatcher] - Handler invoked
>>> 2006-11-08 15:18:38,404 [ncl.qosp.modules.manager.RouterDispatcher] - Received client request
>>> 2006-11-08 15:18:38,404 [ncl.qosp.modules.manager.RouterDispatcher] - Target service: RoutingService
>>> 2006-11-08 15:24:31,935 [ncl.qosp.modules.manager.RouterDispatcher] - Handler invoked
>>> 2006-11-08 15:24:31,935 [ncl.qosp.modules.manager.RouterDispatcher] - Received client request
>>> 2006-11-08 15:24:31,935 [ncl.qosp.modules.manager.RouterDispatcher] - Target service: RoutingService
>>>
>>>
>>>
>>> ------------------------------------------------------------------------
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>>> For additional commands, e-mail: axis-user-help@ws.apache.org
>>>
>>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> For additional commands, e-mail: axis-user-help@ws.apache.org
>>
>>
>>
>>
>>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: [Axis2] NullPointerException in org.apache.axis2.transport.http.AxisServlet
Posted by Deepal Jayasinghe <de...@opensource.lk>.
Hi Michele;
You need to add message receivers as follows;
<service>
<messageReceivers>
<messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-only"
class="org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver"/>
<messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-out"
class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/>
</messageReceivers>
And it is working correctly , pls have a look at the service life cycle
sample. And you do not need to specify message receivers at each
operation level.
Thanks
Deepal
</service>
>Hi again,
>
>I've found out a problem was due to a mis configured services.xml (the
>message receiver must be declared inside each operation, it is not legal
>to declare all used message receivers this way:
>
><messageReceivers>
> <messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-only"
>
>class="org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver"/>
> <messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-out"
>
>class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/>
> </messageReceivers>
>
>and this was the cause of:
>2006-11-08 15:18:20,954 [org.apache.axis2.transport.http.AxisServlet] -
>org.apache.axis2.AxisFault: ServiceClass does not implement required
>method of the form OMElement addService(OMElement e)
>
>but I still have this:
>
>DEBUG Phase:invoke - Invoking Handler 'AddressingBasedDispatcher' in
>Phase 'Dispatch'
>DEBUG ProjectResourceBundle:handleGetObject -
>org.apache.axis2.i18n.resource::handleGetObject(checkingserviceforepr)
>DEBUG AddressingBasedDispatcher:findService - Checking for Service using
>toEPRs address : {0}
>DEBUG ProjectResourceBundle:handleGetObject -
>org.apache.axis2.i18n.resource::handleGetObject(checkingserviceforepr)
>DEBUG AddressingBasedDispatcher:findService - Checking for Service using
>toEPRs address : {0}
>DEBUG ProjectResourceBundle:handleGetObject -
>org.apache.axis2.i18n.resource::handleGetObject(servicefound)
>DEBUG AbstractDispatcher:invoke - Found AxisService : RoutingService
>DEBUG ProjectResourceBundle:handleGetObject -
>org.apache.axis2.i18n.resource::handleGetObject(checkingoperation)
>DEBUG AddressingBasedDispatcher:findOperation - Checking for Operation
>using WSAAction : urn:addNode
>DEBUG ProjectResourceBundle:handleGetObject -
>org.apache.axis2.i18n.resource::handleGetObject(operationfound)
>DEBUG AbstractDispatcher:invoke - Found AxisOperation : addNode
>DEBUG Phase:invoke - Invoking Handler 'SOAPMessageBodyBasedDispatcher'
>in Phase 'Dispatch'
>DEBUG Phase:invoke - Invoking Handler 'InstanceDispatcher' in Phase
>'Dispatch'
>DEBUG Phase:invoke - Invoking Handler 'AddressingWSDLValidationHandler'
>in Phase 'Dispatch'
>DEBUG Phase:invoke - Checking post-conditions for phase "Dispatch"
>DEBUG Phase:invoke - Checking pre-condition for Phase "OperationInPhase"
>DEBUG Phase:invoke - Invoking phase "OperationInPhase"
>DEBUG Phase:invoke - Checking post-conditions for phase "OperationInPhase"
>DEBUG Phase:invoke - Checking pre-condition for Phase "soapmonitorPhase"
>DEBUG Phase:invoke - Invoking phase "soapmonitorPhase"
>DEBUG Phase:invoke - Checking post-conditions for phase "soapmonitorPhase"
>DEBUG Phase:invoke - Checking pre-condition for Phase
>"ManagerInterceptorPhase"
>DEBUG Phase:invoke - Invoking phase "ManagerInterceptorPhase"
>DEBUG Phase:invoke - Invoking Handler 'InFlowManagerHandler' in Phase
>'ManagerInterceptorPhase'
>DEBUG Phase:invoke - Checking post-conditions for phase
>"ManagerInterceptorPhase"
>DEBUG Phase:invoke - Checking pre-condition for Phase "Transport"
>DEBUG Phase:invoke - Invoking phase "Transport"
>DEBUG Phase:invoke - Invoking Handler 'SOAPActionBasedDispatcher' in
>Phase 'Transport'
>DEBUG SOAPActionBasedDispatcher:findService - Checking for Service using
>SOAPAction is a TODO item
>DEBUG Phase:invoke - Checking post-conditions for phase "Transport"
>DEBUG Phase:invoke - Checking pre-condition for Phase "Security"
>DEBUG Phase:invoke - Invoking phase "Security"
>DEBUG Phase:invoke - Checking post-conditions for phase "Security"
>DEBUG Phase:invoke - Checking pre-condition for Phase "PreDispatch"
>DEBUG Phase:invoke - Invoking phase "PreDispatch"
>DEBUG Phase:invoke - Invoking Handler 'AddressingFinalInHandler' in
>Phase 'PreDispatch'
>DEBUG AddressingInHandler:invoke - Starting WS-Addressing Final IN
>handler ...
>DEBUG AddressingInHandler:invoke - No Headers present corresponding to
>WS-Addressing Final
>DEBUG Phase:invoke - Invoking Handler 'AddressingSubmissionInHandler' in
>Phase 'PreDispatch'
>DEBUG AddressingInHandler:invoke - Starting WS-Addressing Submission IN
>handler ...
>DEBUG AddressingInHandler:invoke - No Headers present corresponding to
>WS-Addressing Submission
>DEBUG Phase:invoke - Checking post-conditions for phase "PreDispatch"
>DEBUG Phase:invoke - Checking pre-condition for Phase "Dispatch"
>DEBUG Phase:invoke - Invoking phase "Dispatch"
>DEBUG Phase:invoke - Invoking Handler 'AddressingBasedDispatcher' in
>Phase 'Dispatch'
>DEBUG ProjectResourceBundle:handleGetObject -
>org.apache.axis2.i18n.resource::handleGetObject(checkingserviceforepr)
>DEBUG AddressingBasedDispatcher:findService - Checking for Service using
>toEPRs address : {0}
>DEBUG ProjectResourceBundle:handleGetObject -
>org.apache.axis2.i18n.resource::handleGetObject(checkingserviceforepr)
>DEBUG AddressingBasedDispatcher:findService - Checking for Service using
>toEPRs address : {0}
>DEBUG ProjectResourceBundle:handleGetObject -
>org.apache.axis2.i18n.resource::handleGetObject(servicefound)
>DEBUG AbstractDispatcher:invoke - Found AxisService : RoutingService
>DEBUG ProjectResourceBundle:handleGetObject -
>org.apache.axis2.i18n.resource::handleGetObject(checkingoperation)
>DEBUG AddressingBasedDispatcher:findOperation - Checking for Operation
>using WSAAction : urn:addService
>DEBUG ProjectResourceBundle:handleGetObject -
>org.apache.axis2.i18n.resource::handleGetObject(operationfound)
>DEBUG AbstractDispatcher:invoke - Found AxisOperation : addService
>DEBUG Phase:invoke - Invoking Handler 'SOAPMessageBodyBasedDispatcher'
>in Phase 'Dispatch'
>DEBUG Phase:invoke - Invoking Handler 'InstanceDispatcher' in Phase
>'Dispatch'
>DEBUG Phase:invoke - Invoking Handler 'AddressingWSDLValidationHandler'
>in Phase 'Dispatch'
>DEBUG Phase:invoke - Checking post-conditions for phase "Dispatch"
>DEBUG Phase:invoke - Checking pre-condition for Phase "OperationInPhase"
>DEBUG Phase:invoke - Invoking phase "OperationInPhase"
>DEBUG Phase:invoke - Checking post-conditions for phase "OperationInPhase"
>DEBUG Phase:invoke - Checking pre-condition for Phase "soapmonitorPhase"
>DEBUG Phase:invoke - Invoking phase "soapmonitorPhase"
>DEBUG Phase:invoke - Checking post-conditions for phase "soapmonitorPhase"
>DEBUG Phase:invoke - Checking pre-condition for Phase
>"ManagerInterceptorPhase"
>DEBUG Phase:invoke - Invoking phase "ManagerInterceptorPhase"
>DEBUG Phase:invoke - Invoking Handler 'InFlowManagerHandler' in Phase
>'ManagerInterceptorPhase'
>ERROR AxisServlet:doPost - java.lang.NullPointerException
>DEBUG AddressingHelper:isFaultRedirected - isReplyRedirected: FaultTo is
>null. Returning isReplyRedirected
>DEBUG AddressingHelper:isReplyRedirected - isReplyRedirected: ReplyTo is
>null. Returning false
>DEBUG Phase:invoke - Checking pre-condition for Phase "MessageOut"
>DEBUG Phase:invoke - Invoking phase "MessageOut"
>DEBUG Phase:invoke - Invoking Handler 'AddressingOutHandler' in Phase
>'MessageOut'
>DEBUG EndpointReferenceHelper:toOM - toOM: Factory,
>org.apache.axiom.soap.impl.llom.soap12.SOAP12Factory@6de609
>DEBUG EndpointReferenceHelper:toOM - toOM: Endpoint reference, Address:
>http://www.w3.org/2005/08/addressing/none
>DEBUG EndpointReferenceHelper:toOM - toOM: Element qname,
>{http://www.w3.org/2005/08/addressing}ReplyTo
>DEBUG EndpointReferenceHelper:toOM - toOM: Addressing namespace,
>http://www.w3.org/2005/08/addressing
>DEBUG Phase:invoke - Checking post-conditions for phase "MessageOut"
>
>
>Any clue?
>
>
>
>Michele
>
>
>Michele Mazzucco wrote:
>
>
>>Hi all,
>>
>>I'm getting a NPE in AxisServlet and I don't know the reason.
>>Please find attached the tomcat output (axis2 is set to debug) and the
>>custom handler.
>>The handler has always worked fine when the invoke method signature was
>>"void": should I change anyting (apart from the return type)?
>>
>>Any clue?
>>
>>Michele
>>
>>
>>------------------------------------------------------------------------
>>
>>/*
>> * QoSP Project org.ncl.ac.uk.qosp.modules.manager.RouterDispatcher.java Created
>> * on 02-Jun-2006, 12:02:14
>> */
>>package ncl.qosp.modules.manager;
>>
>>import java.util.Iterator;
>>
>>import javax.xml.namespace.QName;
>>
>>import ncl.qosp.core.MessageType;
>>import ncl.qosp.core.RoutingConstants;
>>import ncl.qosp.core.SOAPConstants;
>>import ncl.qosp.core.SOAPHeaderConstants;
>>import ncl.qosp.utils.FileUtils;
>>
>>import org.apache.axiom.om.OMException;
>>import org.apache.axiom.soap.SOAPHeader;
>>import org.apache.axiom.soap.SOAPHeaderBlock;
>>import org.apache.axis2.AxisFault;
>>import org.apache.axis2.addressing.AddressingConstants;
>>import org.apache.axis2.addressing.EndpointReference;
>>import org.apache.axis2.context.MessageContext;
>>import org.apache.axis2.description.AxisOperation;
>>import org.apache.axis2.description.AxisService;
>>import org.apache.axis2.description.HandlerDescription;
>>import org.apache.axis2.engine.AbstractDispatcher;
>>import org.apache.axis2.engine.AxisConfiguration;
>>import org.apache.axis2.util.Utils;
>>import org.apache.log4j.Level;
>>import org.apache.log4j.Logger;
>>
>>/**
>> * Dispatches the client request to the manager service. All the core
>> * informations, that is target service and target method, are saved into the
>> * {@link org.apache.axis2.context.MessageContext} options.
>> * <p>
>> * This handler replaces the
>> * {@link org.apache.axis2.engine.RequestURIBasedDispatcher} handler in the
>> * incoming chain (transport phase).
>> * <p>
>> * To get the target WS addressing action mapping the SOAP header is parsed.
>> *
>> * @author <a href="mailto:Michele.Mazzucco@ncl.ac.uk">Michele Mazzucco</a>
>> * @version 0.2
>> * @since 0.1
>> * @see "$AXIS2_HOME/webapps/axis2/WEB-INF/conf/axis2.xml"
>> */
>>public class RouterDispatcher extends AbstractDispatcher {
>>
>> // ///////////////////////////////////////////////////////////////////
>> // Constants
>> // ///////////////////////////////////////////////////////////////////
>>
>> /**
>> * The dispatcher's name.
>> *
>> * @see #initDispatcher()
>> */
>> private static final String DISPATCHER_NAME = "RouterDispatcher";
>>
>> /**
>> *
>> */
>> private static final QName WSA_ACTION = new QName(
>> AddressingConstants.WSA_ACTION);
>>
>> // ///////////////////////////////////////////////////////////////////
>> // Logger
>> // ///////////////////////////////////////////////////////////////////
>>
>> /** Logger. */
>> private static Logger log;
>>
>> static {
>> log = Logger.getLogger(RouterDispatcher.class);
>> }
>>
>> // ///////////////////////////////////////////////////////////////////
>> // Fields
>> // ///////////////////////////////////////////////////////////////////
>>
>> /** The target operation. */
>> private String targetOperationName;
>>
>> /** The target service. */
>> private String targetServiceName;
>>
>> /** Message arrival time. */
>> private long arrivalTime;
>>
>>
>> // ///////////////////////////////////////////////////////////////////
>> // Methods from AbstractDispatcher
>> // ///////////////////////////////////////////////////////////////////
>>
>> // The findOperation and findService are very similar to the ones
>> // implemented
>> // in RequestURIBasedDispatcher
>>
>> /*
>> * @see org.apache.axis2.engine.AbstractDispatcher#findOperation(org.apache.axis2.description.AxisService,
>> * org.apache.axis2.context.MessageContext)
>> */
>> @Override
>> public AxisOperation findOperation(AxisService service,
>> MessageContext messageContext) {
>> /*
>> * if (log.isDebugEnabled()) { log.debug("Trying to find the required
>> * operation"); }
>> */
>>
>> AxisOperation result = null;
>>
>> EndpointReference toEPR = messageContext.getTo();
>> if ((toEPR != null) && (targetOperationName == null)) {
>> String filePart = toEPR.getAddress();
>> String[] values = Utils.parseRequestURLForServiceAndOperation(
>> filePart, messageContext.getConfigurationContext()
>> .getServicePath());
>>
>> // The previous call returns an array of lenght 2, where values[1]
>> // holds the operation name
>> if ((values[1] != null) && (values[1].length() > 0)) {
>> targetOperationName = values[1];
>> }
>> }
>>
>> result = service.getOperation(RoutingConstants.FORWARD_OPERATION_NAME);
>>
>> return result;
>> } // -- findOperation()
>>
>>
>> /*
>> * @see org.apache.axis2.engine.AbstractDispatcher#findService(org.apache.axis2.context.MessageContext)
>> */
>> @Override
>> public AxisService findService(MessageContext messageContext)
>> throws AxisFault {
>>
>> AxisService result = null;
>> EndpointReference toEPR = messageContext.getTo();
>>
>> if (toEPR != null) {
>> String address = toEPR.getAddress();
>>
>> // Returns a 2 values array
>> String[] values = Utils.parseRequestURLForServiceAndOperation(
>> address, messageContext.getConfigurationContext()
>> .getServicePath());
>>
>> if ((values[1] != null) && (values[1].length() > 0)) {
>> targetOperationName = values[1];
>> }
>> if ((values[0] != null) && (values[0].length() > 0)) {
>> targetServiceName = values[0];
>> /*
>> * if (log.isDebugEnabled()) { log.debug("Target service is [" +
>> * targetServiceName + "]"); }
>> */
>>
>> AxisConfiguration registry = messageContext
>> .getConfigurationContext().getAxisConfiguration();
>>
>> /*
>> * If the target service is 'version', allow the request to pass
>> * through
>> */
>> if (targetServiceName.equalsIgnoreCase("version")) {
>> result = registry.getService(targetServiceName);
>> } else {
>> // Forwards the request to the 'RoutingService' service
>> result = registry
>> .getService(RoutingConstants.FORWARD_SERVICE_NAME);
>> }
>> }
>> }
>>
>> return result;
>>
>> } // -- findService()
>>
>>
>> /*
>> * @see org.apache.axis2.engine.AbstractDispatcher#initDispatcher()
>> */
>> @Override
>> public void initDispatcher() {
>> init(new HandlerDescription(DISPATCHER_NAME));
>> }
>>
>>
>> /*
>> * @see org.apache.axis2.engine.AbstractDispatcher#invoke(org.apache.axis2.context.MessageContext)
>> */
>> @Override
>> public InvocationResponse invoke(MessageContext messageContext)
>> throws AxisFault {
>>
>> log.info("Handler invoked");
>> try {
>> SOAPHeader header = messageContext.getEnvelope().getHeader();
>> String messageType = SOAPHeaderConstants.getQospMessage(header);
>>
>> if (messageType != null) {
>> if (log.isDebugEnabled()) {
>> log.debug("Internal message [" + messageType + "]");
>> }
>>
>> if (messageType.equalsIgnoreCase(MessageType.RESULT.value())) {
>> removeRelatesTo(messageContext.getEnvelope().getHeader());
>> if (log.isDebugEnabled()) {
>> log
>> .debug("Response message (removed the RelatesTo header)");
>> }
>> }
>>
>> } else {
>> if (log.isDebugEnabled()) {
>> log.debug("Received client request");
>> }
>>
>> clientRequest(messageContext);
>> }
>> } catch (OMException e) {
>> if (log.isEnabledFor(Level.ERROR)) {
>> log.error(FileUtils.getNow()
>> + ": unable to get the SOAP header: "
>> + e.getLocalizedMessage());
>> }
>> throw new AxisFault(e);
>> }
>>
>> return InvocationResponse.CONTINUE;
>>
>> } // -- invoke()
>>
>>
>> // ///////////////////////////////////////////////////////////////////
>> // Private methods
>> // ///////////////////////////////////////////////////////////////////
>>
>> /**
>> * Removes the {@link AddressingConstants#WSA_RELATES_TO} element from the
>> * SOAP header. This is needed because the result receiver is different from
>> * the requestor.
>> *
>> * @param header The SOAP header message without the 'RelatesTo' element.
>> */
>> @SuppressWarnings("unchecked")
>> private final void removeRelatesTo(SOAPHeader header) {
>> for (Iterator<SOAPHeaderBlock> i = header.examineAllHeaderBlocks(); i
>> .hasNext();) {
>> SOAPHeaderBlock tmp = i.next();
>>
>> if (tmp.getLocalName().equalsIgnoreCase(
>> AddressingConstants.WSA_RELATES_TO)) {
>> tmp.detach();
>>
>> if (log.isDebugEnabled()) {
>> log.debug("Removed 'RelatesTo'");
>> }
>> break;
>> }
>> }
>> } // -- removeRelatesTo()
>>
>>
>> /**
>> * Handler client requests.
>> *
>> * @param messageContext The message context.
>> * @throws AxisFault If an error occurs.
>> */
>> private final void clientRequest(MessageContext messageContext)
>> throws AxisFault {
>> // Gets the arrival timestamp
>> this.arrivalTime = System.currentTimeMillis();
>>
>> AxisService axisService = messageContext.getAxisService();
>>
>> if (axisService == null) {
>> axisService = findService(messageContext);
>>
>> if (axisService != null) {
>> if (log.isInfoEnabled()) {
>> log.info("Target service: " + axisService.getName());
>> }
>> messageContext.setAxisService(axisService);
>>
>> if (log.isInfoEnabled()) {
>> log.info("Message to: " + axisService.getEndpoint().toString());
>> }
>> }
>> }
>>
>> if ((messageContext.getAxisService() != null)
>> && (messageContext.getAxisOperation() == null)) {
>> AxisOperation axisOperation = null;
>>
>> axisOperation = findOperation(axisService, messageContext);
>>
>> if (axisOperation != null) {/*
>> * if (log.isInfoEnabled()) {
>> * log.info("Operation set to [" +
>> * axisOperation.getName().getLocalPart() +
>> * "]"); }
>> */
>>
>> messageContext.setAxisOperation(axisOperation);
>> }
>> }
>>
>> saveTargetService(messageContext);
>> saveTargetOperation(messageContext);
>> // saveTargetAction(messageContext);
>>
>> // Gets the action mapping
>> String soapAction = messageContext.getSoapAction();
>> if ((soapAction == null) || (soapAction.length() == 0)) {
>> try {
>> /*
>> * If the message context does not contain the soap action try
>> * to get it from the SOAP header
>> */
>> SOAPHeader header = messageContext.getEnvelope().getHeader();
>> soapAction = header.getFirstChildWithName(WSA_ACTION).getText();
>> // extractWSASoapAction(header.toString());
>> } catch (OMException e) {
>> if (log.isEnabledFor(Level.ERROR)) {
>> log.error(FileUtils.getNow()
>> + ": unable to get the SOAP header: "
>> + e.getLocalizedMessage());
>> }
>> throw new AxisFault(e);
>> }
>> }
>> messageContext.getOptions().setProperty(
>> RoutingConstants.TARGET_ACTION_MAPPING, soapAction);
>>
>> // Saves the arrival time stamp
>> saveArrivalTime(messageContext);
>> } // -- clientRequest()
>>
>>
>> /**
>> * Saves the arrival time stamp.
>> *
>> * @param messageContext The message context.
>> */
>> private final void saveArrivalTime(MessageContext messageContext) {
>> messageContext.getOptions().setProperty(SOAPConstants.REQ_ARRIVAL_TIME,
>> this.arrivalTime);
>> } // -- saveArrivalTime()
>>
>>
>> /**
>> * Saves the target service as {@link RoutingConstants#TARGET_SERVICE}
>> * message property.
>> *
>> * @param messageContext The message context.
>> */
>> private final void saveTargetService(final MessageContext messageContext) {
>> messageContext.getOptions().setProperty(
>> RoutingConstants.TARGET_SERVICE, targetServiceName);
>> } // -- saveTargetService()
>>
>>
>> /**
>> * Saves the target operation as {@link RoutingConstants#TARGET_OPERATION}
>> * message property.
>> *
>> * @param messageContext The message context.
>> */
>> private final void saveTargetOperation(final MessageContext messageContext) {
>> if ((targetOperationName != null) && (targetOperationName.length() > 0)) {
>> messageContext.getOptions().setProperty(
>> RoutingConstants.TARGET_OPERATION, targetOperationName);
>> }
>> } // -- saveTargetOperation()
>>
>>} // END RouterDispatcher
>>
>>
>>------------------------------------------------------------------------
>>
>>2006-11-08 15:08:54,044 [org.apache.axis2.deployment.DeploymentEngine] - Deploying Web service RoutingService.aar
>>2006-11-08 15:08:54,090 [org.apache.axis2.deployment.DeploymentEngine] - Deploying Web service version.aar
>>2006-11-08 15:12:10,471 [org.apache.axis2.transport.http.AxisServlet] - java.lang.NullPointerException
>>2006-11-08 15:17:59,644 [org.apache.axis2.engine.Phase] - Handler AddressingFinalInHandler added to Phase PreDispatch
>>2006-11-08 15:17:59,644 [org.apache.axis2.engine.Phase] - Handler AddressingSubmissionInHandler added to Phase PreDispatch
>>2006-11-08 15:17:59,644 [org.apache.axis2.engine.Phase] - Handler AddressingOutHandler added to Phase MessageOut
>>2006-11-08 15:17:59,644 [org.apache.axis2.engine.Phase] - Handler AddressingFinalInHandler added to Phase PreDispatch
>>2006-11-08 15:17:59,644 [org.apache.axis2.engine.Phase] - Handler AddressingSubmissionInHandler added to Phase PreDispatch
>>2006-11-08 15:17:59,644 [org.apache.axis2.engine.Phase] - Handler AddressingOutHandler added to Phase MessageOut
>>2006-11-08 15:17:59,644 [org.apache.axis2.engine.Phase] - Handler InFlowManagerHandler added to Phase ManagerInterceptorPhase
>>2006-11-08 15:17:59,691 [org.apache.axis2.i18n.ProjectResourceBundle] - org.apache.axis2.i18n.resource::handleGetObject(deployingws)
>>2006-11-08 15:17:59,691 [org.apache.axis2.deployment.DeploymentEngine] - Deploying Web service RoutingService.aar
>>2006-11-08 15:17:59,753 [org.apache.axis2.i18n.ProjectResourceBundle] - org.apache.axis2.i18n.resource::handleGetObject(deployingws)
>>2006-11-08 15:17:59,753 [org.apache.axis2.deployment.DeploymentEngine] - Deploying Web service version.aar
>>2006-11-08 15:17:59,753 [org.apache.axis2.deployment.WarBasedAxisConfigurator] - loaded services from webapp
>>2006-11-08 15:18:10,189 [org.apache.axis2.engine.Phase] - Checking pre-condition for Phase "ManagerInterceptorPhase"
>>2006-11-08 15:18:10,189 [org.apache.axis2.engine.Phase] - Invoking phase "ManagerInterceptorPhase"
>>2006-11-08 15:18:10,189 [org.apache.axis2.engine.Phase] - Invoking Handler 'InFlowManagerHandler' in Phase 'ManagerInterceptorPhase'
>>2006-11-08 15:18:10,205 [org.apache.axis2.engine.Phase] - Checking post-conditions for phase "ManagerInterceptorPhase"
>>2006-11-08 15:18:10,205 [org.apache.axis2.engine.Phase] - Checking pre-condition for Phase "Transport"
>>2006-11-08 15:18:10,205 [org.apache.axis2.engine.Phase] - Invoking phase "Transport"
>>2006-11-08 15:18:10,205 [org.apache.axis2.engine.Phase] - Invoking Handler 'SOAPActionBasedDispatcher' in Phase 'Transport'
>>2006-11-08 15:18:10,205 [org.apache.axis2.engine.SOAPActionBasedDispatcher] - Checking for Service using SOAPAction is a TODO item
>>2006-11-08 15:18:10,205 [org.apache.axis2.engine.Phase] - Checking post-conditions for phase "Transport"
>>2006-11-08 15:18:10,221 [org.apache.axis2.engine.Phase] - Checking pre-condition for Phase "Security"
>>2006-11-08 15:18:10,221 [org.apache.axis2.engine.Phase] - Invoking phase "Security"
>>2006-11-08 15:18:10,221 [org.apache.axis2.engine.Phase] - Checking post-conditions for phase "Security"
>>2006-11-08 15:18:10,221 [org.apache.axis2.engine.Phase] - Checking pre-condition for Phase "PreDispatch"
>>2006-11-08 15:18:10,221 [org.apache.axis2.engine.Phase] - Invoking phase "PreDispatch"
>>2006-11-08 15:18:10,221 [org.apache.axis2.engine.Phase] - Invoking Handler 'AddressingFinalInHandler' in Phase 'PreDispatch'
>>2006-11-08 15:18:10,221 [org.apache.axis2.handlers.addressing.AddressingInHandler] - Starting WS-Addressing Final IN handler ...
>>2006-11-08 15:18:10,221 [org.apache.axis2.handlers.addressing.AddressingInHandler] - No Headers present corresponding to WS-Addressing Final
>>2006-11-08 15:18:10,221 [org.apache.axis2.engine.Phase] - Invoking Handler 'AddressingSubmissionInHandler' in Phase 'PreDispatch'
>>2006-11-08 15:18:10,221 [org.apache.axis2.handlers.addressing.AddressingInHandler] - Starting WS-Addressing Submission IN handler ...
>>2006-11-08 15:18:10,221 [org.apache.axis2.handlers.addressing.AddressingInHandler] - No Headers present corresponding to WS-Addressing Submission
>>2006-11-08 15:18:10,221 [org.apache.axis2.engine.Phase] - Checking post-conditions for phase "PreDispatch"
>>2006-11-08 15:18:10,221 [org.apache.axis2.engine.Phase] - Checking pre-condition for Phase "Dispatch"
>>2006-11-08 15:18:10,236 [org.apache.axis2.engine.Phase] - Invoking phase "Dispatch"
>>2006-11-08 15:18:10,236 [org.apache.axis2.engine.Phase] - Invoking Handler 'AddressingBasedDispatcher' in Phase 'Dispatch'
>>2006-11-08 15:18:10,236 [org.apache.axis2.i18n.ProjectResourceBundle] - org.apache.axis2.i18n.resource::handleGetObject(checkingserviceforepr)
>>2006-11-08 15:18:10,236 [org.apache.axis2.engine.AddressingBasedDispatcher] - Checking for Service using toEPRs address : {0}
>>2006-11-08 15:18:10,236 [org.apache.axis2.i18n.ProjectResourceBundle] - org.apache.axis2.i18n.resource::handleGetObject(checkingserviceforepr)
>>2006-11-08 15:18:10,236 [org.apache.axis2.engine.AddressingBasedDispatcher] - Checking for Service using toEPRs address : {0}
>>2006-11-08 15:18:10,236 [org.apache.axis2.i18n.ProjectResourceBundle] - org.apache.axis2.i18n.resource::handleGetObject(servicefound)
>>2006-11-08 15:18:10,236 [org.apache.axis2.engine.AbstractDispatcher] - Found AxisService : RoutingService
>>2006-11-08 15:18:10,236 [org.apache.axis2.i18n.ProjectResourceBundle] - org.apache.axis2.i18n.resource::handleGetObject(checkingoperation)
>>2006-11-08 15:18:10,236 [org.apache.axis2.engine.AddressingBasedDispatcher] - Checking for Operation using WSAAction : urn:addNode
>>2006-11-08 15:18:10,236 [org.apache.axis2.i18n.ProjectResourceBundle] - org.apache.axis2.i18n.resource::handleGetObject(operationfound)
>>2006-11-08 15:18:10,236 [org.apache.axis2.engine.AbstractDispatcher] - Found AxisOperation : addNode
>>2006-11-08 15:18:10,252 [org.apache.axis2.engine.Phase] - Invoking Handler 'SOAPMessageBodyBasedDispatcher' in Phase 'Dispatch'
>>2006-11-08 15:18:10,252 [org.apache.axis2.engine.Phase] - Invoking Handler 'InstanceDispatcher' in Phase 'Dispatch'
>>2006-11-08 15:18:10,252 [org.apache.axis2.engine.Phase] - Invoking Handler 'AddressingWSDLValidationHandler' in Phase 'Dispatch'
>>2006-11-08 15:18:10,252 [org.apache.axis2.engine.Phase] - Checking post-conditions for phase "Dispatch"
>>2006-11-08 15:18:10,252 [org.apache.axis2.engine.Phase] - Checking pre-condition for Phase "OperationInPhase"
>>2006-11-08 15:18:10,252 [org.apache.axis2.engine.Phase] - Invoking phase "OperationInPhase"
>>2006-11-08 15:18:10,252 [org.apache.axis2.engine.Phase] - Checking post-conditions for phase "OperationInPhase"
>>2006-11-08 15:18:10,252 [org.apache.axis2.engine.Phase] - Checking pre-condition for Phase "soapmonitorPhase"
>>2006-11-08 15:18:10,252 [org.apache.axis2.engine.Phase] - Invoking phase "soapmonitorPhase"
>>2006-11-08 15:18:10,252 [org.apache.axis2.engine.Phase] - Checking post-conditions for phase "soapmonitorPhase"
>>2006-11-08 15:18:10,283 [org.apache.axis2.i18n.ProjectResourceBundle] - org.apache.axis2.i18n.resource::handleGetObject(methodDoesNotExistInOut)
>>2006-11-08 15:18:10,283 [org.apache.axis2.transport.http.AxisServlet] - org.apache.axis2.AxisFault: ServiceClass does not implement required method of the form OMElement addNode(OMElement e)
>>2006-11-08 15:18:10,283 [org.apache.axis2.addressing.AddressingHelper] - isReplyRedirected: FaultTo is null. Returning isReplyRedirected
>>2006-11-08 15:18:10,283 [org.apache.axis2.addressing.AddressingHelper] - isReplyRedirected: ReplyTo is null. Returning false
>>2006-11-08 15:18:10,299 [org.apache.axis2.engine.Phase] - Checking pre-condition for Phase "soapmonitorPhase"
>>2006-11-08 15:18:10,314 [org.apache.axis2.engine.Phase] - Invoking phase "soapmonitorPhase"
>>2006-11-08 15:18:10,314 [org.apache.axis2.engine.Phase] - Checking post-conditions for phase "soapmonitorPhase"
>>2006-11-08 15:18:10,314 [org.apache.axis2.engine.Phase] - Checking pre-condition for Phase "OperationOutFaultPhase"
>>2006-11-08 15:18:10,314 [org.apache.axis2.engine.Phase] - Invoking phase "OperationOutFaultPhase"
>>2006-11-08 15:18:10,314 [org.apache.axis2.engine.Phase] - Checking post-conditions for phase "OperationOutFaultPhase"
>>2006-11-08 15:18:10,314 [org.apache.axis2.engine.Phase] - Checking pre-condition for Phase "PolicyDetermination"
>>2006-11-08 15:18:10,314 [org.apache.axis2.engine.Phase] - Invoking phase "PolicyDetermination"
>>2006-11-08 15:18:10,314 [org.apache.axis2.engine.Phase] - Checking post-conditions for phase "PolicyDetermination"
>>2006-11-08 15:18:10,314 [org.apache.axis2.engine.Phase] - Checking pre-condition for Phase "MessageOut"
>>2006-11-08 15:18:10,314 [org.apache.axis2.engine.Phase] - Invoking phase "MessageOut"
>>2006-11-08 15:18:10,314 [org.apache.axis2.engine.Phase] - Invoking Handler 'AddressingOutHandler' in Phase 'MessageOut'
>>2006-11-08 15:18:10,314 [org.apache.axis2.handlers.addressing.AddressingHandler] - Addressing is disabled .....
>>2006-11-08 15:18:10,314 [org.apache.axis2.engine.Phase] - Checking post-conditions for phase "MessageOut"
>>2006-11-08 15:18:20,891 [org.apache.axis2.engine.Phase] - Checking pre-condition for Phase "ManagerInterceptorPhase"
>>2006-11-08 15:18:20,891 [org.apache.axis2.engine.Phase] - Invoking phase "ManagerInterceptorPhase"
>>2006-11-08 15:18:20,891 [org.apache.axis2.engine.Phase] - Invoking Handler 'InFlowManagerHandler' in Phase 'ManagerInterceptorPhase'
>>2006-11-08 15:18:20,891 [org.apache.axis2.engine.Phase] - Checking post-conditions for phase "ManagerInterceptorPhase"
>>2006-11-08 15:18:20,891 [org.apache.axis2.engine.Phase] - Checking pre-condition for Phase "Transport"
>>2006-11-08 15:18:20,907 [org.apache.axis2.engine.Phase] - Invoking phase "Transport"
>>2006-11-08 15:18:20,907 [org.apache.axis2.engine.Phase] - Invoking Handler 'SOAPActionBasedDispatcher' in Phase 'Transport'
>>2006-11-08 15:18:20,907 [org.apache.axis2.engine.SOAPActionBasedDispatcher] - Checking for Service using SOAPAction is a TODO item
>>2006-11-08 15:18:20,907 [org.apache.axis2.engine.Phase] - Checking post-conditions for phase "Transport"
>>2006-11-08 15:18:20,907 [org.apache.axis2.engine.Phase] - Checking pre-condition for Phase "Security"
>>2006-11-08 15:18:20,907 [org.apache.axis2.engine.Phase] - Invoking phase "Security"
>>2006-11-08 15:18:20,907 [org.apache.axis2.engine.Phase] - Checking post-conditions for phase "Security"
>>2006-11-08 15:18:20,907 [org.apache.axis2.engine.Phase] - Checking pre-condition for Phase "PreDispatch"
>>2006-11-08 15:18:20,907 [org.apache.axis2.engine.Phase] - Invoking phase "PreDispatch"
>>2006-11-08 15:18:20,907 [org.apache.axis2.engine.Phase] - Invoking Handler 'AddressingFinalInHandler' in Phase 'PreDispatch'
>>2006-11-08 15:18:20,907 [org.apache.axis2.handlers.addressing.AddressingInHandler] - Starting WS-Addressing Final IN handler ...
>>2006-11-08 15:18:20,907 [org.apache.axis2.handlers.addressing.AddressingInHandler] - No Headers present corresponding to WS-Addressing Final
>>2006-11-08 15:18:20,907 [org.apache.axis2.engine.Phase] - Invoking Handler 'AddressingSubmissionInHandler' in Phase 'PreDispatch'
>>2006-11-08 15:18:20,907 [org.apache.axis2.handlers.addressing.AddressingInHandler] - Starting WS-Addressing Submission IN handler ...
>>2006-11-08 15:18:20,907 [org.apache.axis2.handlers.addressing.AddressingInHandler] - No Headers present corresponding to WS-Addressing Submission
>>2006-11-08 15:18:20,922 [org.apache.axis2.engine.Phase] - Checking post-conditions for phase "PreDispatch"
>>2006-11-08 15:18:20,922 [org.apache.axis2.engine.Phase] - Checking pre-condition for Phase "Dispatch"
>>2006-11-08 15:18:20,922 [org.apache.axis2.engine.Phase] - Invoking phase "Dispatch"
>>2006-11-08 15:18:20,922 [org.apache.axis2.engine.Phase] - Invoking Handler 'AddressingBasedDispatcher' in Phase 'Dispatch'
>>2006-11-08 15:18:20,922 [org.apache.axis2.i18n.ProjectResourceBundle] - org.apache.axis2.i18n.resource::handleGetObject(checkingserviceforepr)
>>2006-11-08 15:18:20,922 [org.apache.axis2.engine.AddressingBasedDispatcher] - Checking for Service using toEPRs address : {0}
>>2006-11-08 15:18:20,922 [org.apache.axis2.i18n.ProjectResourceBundle] - org.apache.axis2.i18n.resource::handleGetObject(checkingserviceforepr)
>>2006-11-08 15:18:20,922 [org.apache.axis2.engine.AddressingBasedDispatcher] - Checking for Service using toEPRs address : {0}
>>2006-11-08 15:18:20,922 [org.apache.axis2.i18n.ProjectResourceBundle] - org.apache.axis2.i18n.resource::handleGetObject(servicefound)
>>2006-11-08 15:18:20,922 [org.apache.axis2.engine.AbstractDispatcher] - Found AxisService : RoutingService
>>2006-11-08 15:18:20,922 [org.apache.axis2.i18n.ProjectResourceBundle] - org.apache.axis2.i18n.resource::handleGetObject(checkingoperation)
>>2006-11-08 15:18:20,922 [org.apache.axis2.engine.AddressingBasedDispatcher] - Checking for Operation using WSAAction : urn:addService
>>2006-11-08 15:18:20,922 [org.apache.axis2.i18n.ProjectResourceBundle] - org.apache.axis2.i18n.resource::handleGetObject(operationfound)
>>2006-11-08 15:18:20,938 [org.apache.axis2.engine.AbstractDispatcher] - Found AxisOperation : addService
>>2006-11-08 15:18:20,938 [org.apache.axis2.engine.Phase] - Invoking Handler 'SOAPMessageBodyBasedDispatcher' in Phase 'Dispatch'
>>2006-11-08 15:18:20,938 [org.apache.axis2.engine.Phase] - Invoking Handler 'InstanceDispatcher' in Phase 'Dispatch'
>>2006-11-08 15:18:20,938 [org.apache.axis2.engine.Phase] - Invoking Handler 'AddressingWSDLValidationHandler' in Phase 'Dispatch'
>>2006-11-08 15:18:20,938 [org.apache.axis2.engine.Phase] - Checking post-conditions for phase "Dispatch"
>>2006-11-08 15:18:20,938 [org.apache.axis2.engine.Phase] - Checking pre-condition for Phase "OperationInPhase"
>>2006-11-08 15:18:20,938 [org.apache.axis2.engine.Phase] - Invoking phase "OperationInPhase"
>>2006-11-08 15:18:20,938 [org.apache.axis2.engine.Phase] - Checking post-conditions for phase "OperationInPhase"
>>2006-11-08 15:18:20,938 [org.apache.axis2.engine.Phase] - Checking pre-condition for Phase "soapmonitorPhase"
>>2006-11-08 15:18:20,938 [org.apache.axis2.engine.Phase] - Invoking phase "soapmonitorPhase"
>>2006-11-08 15:18:20,938 [org.apache.axis2.engine.Phase] - Checking post-conditions for phase "soapmonitorPhase"
>>2006-11-08 15:18:20,938 [org.apache.axis2.i18n.ProjectResourceBundle] - org.apache.axis2.i18n.resource::handleGetObject(methodDoesNotExistInOut)
>>2006-11-08 15:18:20,954 [org.apache.axis2.transport.http.AxisServlet] - org.apache.axis2.AxisFault: ServiceClass does not implement required method of the form OMElement addService(OMElement e)
>>2006-11-08 15:18:20,954 [org.apache.axis2.addressing.AddressingHelper] - isReplyRedirected: FaultTo is null. Returning isReplyRedirected
>>2006-11-08 15:18:20,954 [org.apache.axis2.addressing.AddressingHelper] - isReplyRedirected: ReplyTo is null. Returning false
>>2006-11-08 15:18:20,954 [org.apache.axis2.engine.Phase] - Checking pre-condition for Phase "soapmonitorPhase"
>>2006-11-08 15:18:20,954 [org.apache.axis2.engine.Phase] - Invoking phase "soapmonitorPhase"
>>2006-11-08 15:18:20,954 [org.apache.axis2.engine.Phase] - Checking post-conditions for phase "soapmonitorPhase"
>>2006-11-08 15:18:20,954 [org.apache.axis2.engine.Phase] - Checking pre-condition for Phase "OperationOutFaultPhase"
>>2006-11-08 15:18:20,954 [org.apache.axis2.engine.Phase] - Invoking phase "OperationOutFaultPhase"
>>2006-11-08 15:18:20,954 [org.apache.axis2.engine.Phase] - Checking post-conditions for phase "OperationOutFaultPhase"
>>2006-11-08 15:18:20,954 [org.apache.axis2.engine.Phase] - Checking pre-condition for Phase "PolicyDetermination"
>>2006-11-08 15:18:20,954 [org.apache.axis2.engine.Phase] - Invoking phase "PolicyDetermination"
>>2006-11-08 15:18:20,954 [org.apache.axis2.engine.Phase] - Checking post-conditions for phase "PolicyDetermination"
>>2006-11-08 15:18:20,969 [org.apache.axis2.engine.Phase] - Checking pre-condition for Phase "MessageOut"
>>2006-11-08 15:18:20,969 [org.apache.axis2.engine.Phase] - Invoking phase "MessageOut"
>>2006-11-08 15:18:20,969 [org.apache.axis2.engine.Phase] - Invoking Handler 'AddressingOutHandler' in Phase 'MessageOut'
>>2006-11-08 15:18:20,969 [org.apache.axis2.handlers.addressing.AddressingHandler] - Addressing is disabled .....
>>2006-11-08 15:18:20,969 [org.apache.axis2.engine.Phase] - Checking post-conditions for phase "MessageOut"
>>2006-11-08 15:18:38,404 [org.apache.axis2.engine.Phase] - Checking pre-condition for Phase "ManagerInterceptorPhase"
>>2006-11-08 15:18:38,404 [org.apache.axis2.engine.Phase] - Invoking phase "ManagerInterceptorPhase"
>>2006-11-08 15:18:38,404 [org.apache.axis2.engine.Phase] - Invoking Handler 'InFlowManagerHandler' in Phase 'ManagerInterceptorPhase'
>>2006-11-08 15:18:38,420 [org.apache.axis2.transport.http.AxisServlet] - java.lang.NullPointerException
>>2006-11-08 15:18:38,420 [org.apache.axis2.addressing.AddressingHelper] - isReplyRedirected: FaultTo is null. Returning isReplyRedirected
>>2006-11-08 15:18:38,420 [org.apache.axis2.addressing.AddressingHelper] - isReplyRedirected: ReplyTo is null. Returning false
>>2006-11-08 15:18:38,420 [org.apache.axis2.engine.Phase] - Checking pre-condition for Phase "MessageOut"
>>2006-11-08 15:18:38,420 [org.apache.axis2.engine.Phase] - Invoking phase "MessageOut"
>>2006-11-08 15:18:38,420 [org.apache.axis2.engine.Phase] - Invoking Handler 'AddressingOutHandler' in Phase 'MessageOut'
>>2006-11-08 15:18:38,420 [org.apache.axis2.addressing.EndpointReferenceHelper] - toOM: Factory, org.apache.axiom.soap.impl.llom.soap12.SOAP12Factory@98bbf6
>>2006-11-08 15:18:38,420 [org.apache.axis2.addressing.EndpointReferenceHelper] - toOM: Endpoint reference, Address: http://www.w3.org/2005/08/addressing/none
>>2006-11-08 15:18:38,420 [org.apache.axis2.addressing.EndpointReferenceHelper] - toOM: Element qname, {http://www.w3.org/2005/08/addressing}ReplyTo
>>2006-11-08 15:18:38,436 [org.apache.axis2.addressing.EndpointReferenceHelper] - toOM: Addressing namespace, http://www.w3.org/2005/08/addressing
>>2006-11-08 15:18:38,436 [org.apache.axis2.engine.Phase] - Checking post-conditions for phase "MessageOut"
>>2006-11-08 15:24:31,935 [org.apache.axis2.engine.Phase] - Checking pre-condition for Phase "ManagerInterceptorPhase"
>>2006-11-08 15:24:31,935 [org.apache.axis2.engine.Phase] - Invoking phase "ManagerInterceptorPhase"
>>2006-11-08 15:24:31,935 [org.apache.axis2.engine.Phase] - Invoking Handler 'InFlowManagerHandler' in Phase 'ManagerInterceptorPhase'
>>2006-11-08 15:24:31,935 [org.apache.axis2.transport.http.AxisServlet] - java.lang.NullPointerException
>>2006-11-08 15:24:31,935 [org.apache.axis2.addressing.AddressingHelper] - isReplyRedirected: FaultTo is null. Returning isReplyRedirected
>>2006-11-08 15:24:31,935 [org.apache.axis2.addressing.AddressingHelper] - isReplyRedirected: ReplyTo is null. Returning false
>>2006-11-08 15:24:31,935 [org.apache.axis2.engine.Phase] - Checking pre-condition for Phase "MessageOut"
>>2006-11-08 15:24:31,935 [org.apache.axis2.engine.Phase] - Invoking phase "MessageOut"
>>2006-11-08 15:24:31,951 [org.apache.axis2.engine.Phase] - Invoking Handler 'AddressingOutHandler' in Phase 'MessageOut'
>>2006-11-08 15:24:31,951 [org.apache.axis2.addressing.EndpointReferenceHelper] - toOM: Factory, org.apache.axiom.soap.impl.llom.soap12.SOAP12Factory@e7e8eb
>>2006-11-08 15:24:31,951 [org.apache.axis2.addressing.EndpointReferenceHelper] - toOM: Endpoint reference, Address: http://www.w3.org/2005/08/addressing/none
>>2006-11-08 15:24:31,951 [org.apache.axis2.addressing.EndpointReferenceHelper] - toOM: Element qname, {http://www.w3.org/2005/08/addressing}ReplyTo
>>2006-11-08 15:24:31,951 [org.apache.axis2.addressing.EndpointReferenceHelper] - toOM: Addressing namespace, http://www.w3.org/2005/08/addressing
>>2006-11-08 15:24:31,951 [org.apache.axis2.engine.Phase] - Checking post-conditions for phase "MessageOut"
>>
>>
>>------------------------------------------------------------------------
>>
>>2006-11-08 15:08:53,731 [ncl.qosp.controller.RoutingService] - Startup time is: Wed Nov 08 15:08:53 GMT 2006
>>2006-11-08 15:08:54,106 [ncl.qosp.controller.RoutingService] - -- Constructor
>>2006-11-08 15:08:54,184 [ncl.qosp.controller.RoutingService] - Scheduler created
>>2006-11-08 15:08:54,184 [ncl.qosp.controller.scheduler.weighted.queue.QueueSizeScheduler] - Scheduler component started
>>2006-11-08 15:09:08,198 [ncl.qosp.controller.LifecycleSupport] - Qosp is shutting down...
>>2006-11-08 15:09:08,198 [ncl.qosp.controller.scheduler.weighted.queue.QueueSizeScheduler] - The timer was not running
>>2006-11-08 15:09:08,198 [ncl.qosp.controller.scheduler.weighted.queue.QueueSizeScheduler] - Scheduler component stopped
>>2006-11-08 15:09:08,198 [ncl.qosp.controller.LifecycleSupport] - Scheduler stopped
>>2006-11-08 15:09:08,198 [ncl.qosp.controller.LifecycleSupport] - Scheduler unregistered from the mbean server
>>2006-11-08 15:09:08,198 [ncl.qosp.controller.LifecycleSupport] - Connector server stopped
>>2006-11-08 15:10:13,518 [ncl.qosp.controller.RoutingService] - Startup time is: Wed Nov 08 15:10:13 GMT 2006
>>2006-11-08 15:10:13,908 [ncl.qosp.controller.RoutingService] - -- Constructor
>>2006-11-08 15:10:13,971 [ncl.qosp.controller.RoutingService] - Scheduler created
>>2006-11-08 15:10:13,971 [ncl.qosp.controller.scheduler.weighted.queue.QueueSizeScheduler] - Scheduler component started
>>2006-11-08 15:10:41,014 [ncl.qosp.modules.manager.RouterDispatcher] - Handler invoked
>>2006-11-08 15:10:41,030 [ncl.qosp.modules.manager.RouterDispatcher] - Internal message [New node]
>>2006-11-08 15:11:01,183 [ncl.qosp.modules.manager.RouterDispatcher] - Handler invoked
>>2006-11-08 15:11:01,183 [ncl.qosp.modules.manager.RouterDispatcher] - Internal message [New service]
>>2006-11-08 15:11:31,836 [ncl.qosp.controller.scheduler.weighted.queue.QueueSizeScheduler] - Received listener request
>>2006-11-08 15:11:31,836 [ncl.qosp.controller.scheduler.weighted.queue.QueueSizeScheduler] - Added notification listener
>>2006-11-08 15:12:10,471 [ncl.qosp.modules.manager.RouterDispatcher] - Handler invoked
>>2006-11-08 15:12:10,471 [ncl.qosp.modules.manager.RouterDispatcher] - Received client request
>>2006-11-08 15:12:10,471 [ncl.qosp.modules.manager.RouterDispatcher] - Target service: RoutingService
>>2006-11-08 15:13:50,271 [ncl.qosp.controller.LifecycleSupport] - Qosp is shutting down...
>>2006-11-08 15:13:50,271 [ncl.qosp.controller.scheduler.weighted.queue.QueueSizeScheduler] - The timer was not running
>>2006-11-08 15:13:50,271 [ncl.qosp.controller.scheduler.weighted.queue.QueueSizeScheduler] - Scheduler component stopped
>>2006-11-08 15:13:50,271 [ncl.qosp.controller.LifecycleSupport] - Scheduler stopped
>>2006-11-08 15:13:50,271 [ncl.qosp.controller.LifecycleSupport] - Scheduler unregistered from the mbean server
>>2006-11-08 15:13:50,302 [ncl.qosp.controller.LifecycleSupport] - Connector server stopped
>>2006-11-08 15:17:59,363 [ncl.qosp.controller.RoutingService] - Startup time is: Wed Nov 08 15:17:59 GMT 2006
>>2006-11-08 15:17:59,769 [ncl.qosp.controller.RoutingService] - -- Constructor
>>2006-11-08 15:17:59,831 [ncl.qosp.controller.RoutingService] - Scheduler created
>>2006-11-08 15:17:59,847 [ncl.qosp.controller.scheduler.weighted.queue.QueueSizeScheduler] - Scheduler component started
>>2006-11-08 15:18:10,205 [ncl.qosp.modules.manager.RouterDispatcher] - Handler invoked
>>2006-11-08 15:18:10,205 [ncl.qosp.modules.manager.RouterDispatcher] - Internal message [New node]
>>2006-11-08 15:18:20,891 [ncl.qosp.modules.manager.RouterDispatcher] - Handler invoked
>>2006-11-08 15:18:20,891 [ncl.qosp.modules.manager.RouterDispatcher] - Internal message [New service]
>>2006-11-08 15:18:38,404 [ncl.qosp.modules.manager.RouterDispatcher] - Handler invoked
>>2006-11-08 15:18:38,404 [ncl.qosp.modules.manager.RouterDispatcher] - Received client request
>>2006-11-08 15:18:38,404 [ncl.qosp.modules.manager.RouterDispatcher] - Target service: RoutingService
>>2006-11-08 15:24:31,935 [ncl.qosp.modules.manager.RouterDispatcher] - Handler invoked
>>2006-11-08 15:24:31,935 [ncl.qosp.modules.manager.RouterDispatcher] - Received client request
>>2006-11-08 15:24:31,935 [ncl.qosp.modules.manager.RouterDispatcher] - Target service: RoutingService
>>
>>
>>
>>------------------------------------------------------------------------
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>>For additional commands, e-mail: axis-user-help@ws.apache.org
>>
>>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
>
>
>
--
Thanks,
Deepal
................................................................
"The highest tower is built one brick at a time"
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: [Axis2] Help using AXIOMXPath
Posted by Davanum Srinivas <da...@gmail.com>.
You definitely need to switch to 1.1 branch nightly build...
-- dims
On 11/8/06, Brian Bacsu <bb...@csc.com> wrote:
>
> Hi
>
> I am trying to use AXIOMXPath in a statement such as this (using Axis2
> version 1.0):
>
> AXIOMXPath xpathExpression = new AXIOMXPath (xpathString);
>
> OMElement node=
> (OMElement)xpathExpression.selectSingleNode(OM_message);
>
> I have verified the XPath is valid.
>
> But... I get the following error:
>
> java.lang.NullPointerException
> at
> org.apache.axiom.om.xpath.DocumentNavigator.getDocumentNode(DocumentNavigator.java:603)
> at
> org.jaxen.expr.DefaultAbsoluteLocationPath.evaluate(DefaultAbsoluteLocationPath.java:97)
> at
> org.jaxen.expr.DefaultXPathExpr.asList(DefaultXPathExpr.java:98)
> at
> org.jaxen.BaseXPath.selectNodesForContext(BaseXPath.java:674)
> at org.jaxen.BaseXPath.selectNodes(BaseXPath.java:213)
> at
> org.jaxen.BaseXPath.selectSingleNode(BaseXPath.java:234)
>
> Any suggestions would be appreciated.
>
> Thanks,
>
> Brian Bacsu
>
--
Davanum Srinivas : http://www.wso2.net (Oxygen for Web Service Developers)
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: [Axis2] NullPointerException in org.apache.axis2.transport.http.AxisServlet
Posted by Michele Mazzucco <Mi...@ncl.ac.uk>.
jira AXIS2-1655 created.
Michele
Davanum Srinivas wrote:
> Could u please log a bug anyway (with the bad xml). We should not be
> throwing NPE's.
>
> thanks,
> -- dims
>
> On 11/8/06, Michele Mazzucco <Mi...@ncl.ac.uk> wrote:
>> Hi again,
>>
>> I've found out a problem was due to a mis configured services.xml (the
>> message receiver must be declared inside each operation, it is not legal
>> to declare all used message receivers this way:
>>
>> <messageReceivers>
>> <messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-only"
>>
>> class="org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver"/>
>> <messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-out"
>>
>> class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/>
>> </messageReceivers>
>>
>> and this was the cause of:
>> 2006-11-08 15:18:20,954 [org.apache.axis2.transport.http.AxisServlet] -
>> org.apache.axis2.AxisFault: ServiceClass does not implement required
>> method of the form OMElement addService(OMElement e)
>>
>> but I still have this:
>>
>> DEBUG Phase:invoke - Invoking Handler 'AddressingBasedDispatcher' in
>> Phase 'Dispatch'
>> DEBUG ProjectResourceBundle:handleGetObject -
>> org.apache.axis2.i18n.resource::handleGetObject(checkingserviceforepr)
>> DEBUG AddressingBasedDispatcher:findService - Checking for Service using
>> toEPRs address : {0}
>> DEBUG ProjectResourceBundle:handleGetObject -
>> org.apache.axis2.i18n.resource::handleGetObject(checkingserviceforepr)
>> DEBUG AddressingBasedDispatcher:findService - Checking for Service using
>> toEPRs address : {0}
>> DEBUG ProjectResourceBundle:handleGetObject -
>> org.apache.axis2.i18n.resource::handleGetObject(servicefound)
>> DEBUG AbstractDispatcher:invoke - Found AxisService : RoutingService
>> DEBUG ProjectResourceBundle:handleGetObject -
>> org.apache.axis2.i18n.resource::handleGetObject(checkingoperation)
>> DEBUG AddressingBasedDispatcher:findOperation - Checking for Operation
>> using WSAAction : urn:addNode
>> DEBUG ProjectResourceBundle:handleGetObject -
>> org.apache.axis2.i18n.resource::handleGetObject(operationfound)
>> DEBUG AbstractDispatcher:invoke - Found AxisOperation : addNode
>> DEBUG Phase:invoke - Invoking Handler 'SOAPMessageBodyBasedDispatcher'
>> in Phase 'Dispatch'
>> DEBUG Phase:invoke - Invoking Handler 'InstanceDispatcher' in Phase
>> 'Dispatch'
>> DEBUG Phase:invoke - Invoking Handler 'AddressingWSDLValidationHandler'
>> in Phase 'Dispatch'
>> DEBUG Phase:invoke - Checking post-conditions for phase "Dispatch"
>> DEBUG Phase:invoke - Checking pre-condition for Phase "OperationInPhase"
>> DEBUG Phase:invoke - Invoking phase "OperationInPhase"
>> DEBUG Phase:invoke - Checking post-conditions for phase
>> "OperationInPhase"
>> DEBUG Phase:invoke - Checking pre-condition for Phase "soapmonitorPhase"
>> DEBUG Phase:invoke - Invoking phase "soapmonitorPhase"
>> DEBUG Phase:invoke - Checking post-conditions for phase
>> "soapmonitorPhase"
>> DEBUG Phase:invoke - Checking pre-condition for Phase
>> "ManagerInterceptorPhase"
>> DEBUG Phase:invoke - Invoking phase "ManagerInterceptorPhase"
>> DEBUG Phase:invoke - Invoking Handler 'InFlowManagerHandler' in Phase
>> 'ManagerInterceptorPhase'
>> DEBUG Phase:invoke - Checking post-conditions for phase
>> "ManagerInterceptorPhase"
>> DEBUG Phase:invoke - Checking pre-condition for Phase "Transport"
>> DEBUG Phase:invoke - Invoking phase "Transport"
>> DEBUG Phase:invoke - Invoking Handler 'SOAPActionBasedDispatcher' in
>> Phase 'Transport'
>> DEBUG SOAPActionBasedDispatcher:findService - Checking for Service using
>> SOAPAction is a TODO item
>> DEBUG Phase:invoke - Checking post-conditions for phase "Transport"
>> DEBUG Phase:invoke - Checking pre-condition for Phase "Security"
>> DEBUG Phase:invoke - Invoking phase "Security"
>> DEBUG Phase:invoke - Checking post-conditions for phase "Security"
>> DEBUG Phase:invoke - Checking pre-condition for Phase "PreDispatch"
>> DEBUG Phase:invoke - Invoking phase "PreDispatch"
>> DEBUG Phase:invoke - Invoking Handler 'AddressingFinalInHandler' in
>> Phase 'PreDispatch'
>> DEBUG AddressingInHandler:invoke - Starting WS-Addressing Final IN
>> handler ...
>> DEBUG AddressingInHandler:invoke - No Headers present corresponding to
>> WS-Addressing Final
>> DEBUG Phase:invoke - Invoking Handler 'AddressingSubmissionInHandler' in
>> Phase 'PreDispatch'
>> DEBUG AddressingInHandler:invoke - Starting WS-Addressing Submission IN
>> handler ...
>> DEBUG AddressingInHandler:invoke - No Headers present corresponding to
>> WS-Addressing Submission
>> DEBUG Phase:invoke - Checking post-conditions for phase "PreDispatch"
>> DEBUG Phase:invoke - Checking pre-condition for Phase "Dispatch"
>> DEBUG Phase:invoke - Invoking phase "Dispatch"
>> DEBUG Phase:invoke - Invoking Handler 'AddressingBasedDispatcher' in
>> Phase 'Dispatch'
>> DEBUG ProjectResourceBundle:handleGetObject -
>> org.apache.axis2.i18n.resource::handleGetObject(checkingserviceforepr)
>> DEBUG AddressingBasedDispatcher:findService - Checking for Service using
>> toEPRs address : {0}
>> DEBUG ProjectResourceBundle:handleGetObject -
>> org.apache.axis2.i18n.resource::handleGetObject(checkingserviceforepr)
>> DEBUG AddressingBasedDispatcher:findService - Checking for Service using
>> toEPRs address : {0}
>> DEBUG ProjectResourceBundle:handleGetObject -
>> org.apache.axis2.i18n.resource::handleGetObject(servicefound)
>> DEBUG AbstractDispatcher:invoke - Found AxisService : RoutingService
>> DEBUG ProjectResourceBundle:handleGetObject -
>> org.apache.axis2.i18n.resource::handleGetObject(checkingoperation)
>> DEBUG AddressingBasedDispatcher:findOperation - Checking for Operation
>> using WSAAction : urn:addService
>> DEBUG ProjectResourceBundle:handleGetObject -
>> org.apache.axis2.i18n.resource::handleGetObject(operationfound)
>> DEBUG AbstractDispatcher:invoke - Found AxisOperation : addService
>> DEBUG Phase:invoke - Invoking Handler 'SOAPMessageBodyBasedDispatcher'
>> in Phase 'Dispatch'
>> DEBUG Phase:invoke - Invoking Handler 'InstanceDispatcher' in Phase
>> 'Dispatch'
>> DEBUG Phase:invoke - Invoking Handler 'AddressingWSDLValidationHandler'
>> in Phase 'Dispatch'
>> DEBUG Phase:invoke - Checking post-conditions for phase "Dispatch"
>> DEBUG Phase:invoke - Checking pre-condition for Phase "OperationInPhase"
>> DEBUG Phase:invoke - Invoking phase "OperationInPhase"
>> DEBUG Phase:invoke - Checking post-conditions for phase
>> "OperationInPhase"
>> DEBUG Phase:invoke - Checking pre-condition for Phase "soapmonitorPhase"
>> DEBUG Phase:invoke - Invoking phase "soapmonitorPhase"
>> DEBUG Phase:invoke - Checking post-conditions for phase
>> "soapmonitorPhase"
>> DEBUG Phase:invoke - Checking pre-condition for Phase
>> "ManagerInterceptorPhase"
>> DEBUG Phase:invoke - Invoking phase "ManagerInterceptorPhase"
>> DEBUG Phase:invoke - Invoking Handler 'InFlowManagerHandler' in Phase
>> 'ManagerInterceptorPhase'
>> ERROR AxisServlet:doPost - java.lang.NullPointerException
>> DEBUG AddressingHelper:isFaultRedirected - isReplyRedirected: FaultTo is
>> null. Returning isReplyRedirected
>> DEBUG AddressingHelper:isReplyRedirected - isReplyRedirected: ReplyTo is
>> null. Returning false
>> DEBUG Phase:invoke - Checking pre-condition for Phase "MessageOut"
>> DEBUG Phase:invoke - Invoking phase "MessageOut"
>> DEBUG Phase:invoke - Invoking Handler 'AddressingOutHandler' in Phase
>> 'MessageOut'
>> DEBUG EndpointReferenceHelper:toOM - toOM: Factory,
>> org.apache.axiom.soap.impl.llom.soap12.SOAP12Factory@6de609
>> DEBUG EndpointReferenceHelper:toOM - toOM: Endpoint reference, Address:
>> http://www.w3.org/2005/08/addressing/none
>> DEBUG EndpointReferenceHelper:toOM - toOM: Element qname,
>> {http://www.w3.org/2005/08/addressing}ReplyTo
>> DEBUG EndpointReferenceHelper:toOM - toOM: Addressing namespace,
>> http://www.w3.org/2005/08/addressing
>> DEBUG Phase:invoke - Checking post-conditions for phase "MessageOut"
>>
>>
>> Any clue?
>>
>>
>>
>> Michele
>>
>>
>> Michele Mazzucco wrote:
>> > Hi all,
>> >
>> > I'm getting a NPE in AxisServlet and I don't know the reason.
>> > Please find attached the tomcat output (axis2 is set to debug) and the
>> > custom handler.
>> > The handler has always worked fine when the invoke method signature was
>> > "void": should I change anyting (apart from the return type)?
>> >
>> > Any clue?
>> >
>> > Michele
>> >
>> >
>> >
>> ------------------------------------------------------------------------
>> >
>> > /*
>> > * QoSP Project
>> org.ncl.ac.uk.qosp.modules.manager.RouterDispatcher.java Created
>> > * on 02-Jun-2006, 12:02:14
>> > */
>> > package ncl.qosp.modules.manager;
>> >
>> > import java.util.Iterator;
>> >
>> > import javax.xml.namespace.QName;
>> >
>> > import ncl.qosp.core.MessageType;
>> > import ncl.qosp.core.RoutingConstants;
>> > import ncl.qosp.core.SOAPConstants;
>> > import ncl.qosp.core.SOAPHeaderConstants;
>> > import ncl.qosp.utils.FileUtils;
>> >
>> > import org.apache.axiom.om.OMException;
>> > import org.apache.axiom.soap.SOAPHeader;
>> > import org.apache.axiom.soap.SOAPHeaderBlock;
>> > import org.apache.axis2.AxisFault;
>> > import org.apache.axis2.addressing.AddressingConstants;
>> > import org.apache.axis2.addressing.EndpointReference;
>> > import org.apache.axis2.context.MessageContext;
>> > import org.apache.axis2.description.AxisOperation;
>> > import org.apache.axis2.description.AxisService;
>> > import org.apache.axis2.description.HandlerDescription;
>> > import org.apache.axis2.engine.AbstractDispatcher;
>> > import org.apache.axis2.engine.AxisConfiguration;
>> > import org.apache.axis2.util.Utils;
>> > import org.apache.log4j.Level;
>> > import org.apache.log4j.Logger;
>> >
>> > /**
>> > * Dispatches the client request to the manager service. All the core
>> > * informations, that is target service and target method, are saved
>> into the
>> > * {@link org.apache.axis2.context.MessageContext} options.
>> > * <p>
>> > * This handler replaces the
>> > * {@link org.apache.axis2.engine.RequestURIBasedDispatcher} handler
>> in the
>> > * incoming chain (transport phase).
>> > * <p>
>> > * To get the target WS addressing action mapping the SOAP header is
>> parsed.
>> > *
>> > * @author <a href="mailto:Michele.Mazzucco@ncl.ac.uk">Michele
>> Mazzucco</a>
>> > * @version 0.2
>> > * @since 0.1
>> > * @see "$AXIS2_HOME/webapps/axis2/WEB-INF/conf/axis2.xml"
>> > */
>> > public class RouterDispatcher extends AbstractDispatcher {
>> >
>> > //
>> ///////////////////////////////////////////////////////////////////
>> > // Constants
>> > //
>> ///////////////////////////////////////////////////////////////////
>> >
>> > /**
>> > * The dispatcher's name.
>> > *
>> > * @see #initDispatcher()
>> > */
>> > private static final String DISPATCHER_NAME = "RouterDispatcher";
>> >
>> > /**
>> > *
>> > */
>> > private static final QName WSA_ACTION = new QName(
>> > AddressingConstants.WSA_ACTION);
>> >
>> > //
>> ///////////////////////////////////////////////////////////////////
>> > // Logger
>> > //
>> ///////////////////////////////////////////////////////////////////
>> >
>> > /** Logger. */
>> > private static Logger log;
>> >
>> > static {
>> > log = Logger.getLogger(RouterDispatcher.class);
>> > }
>> >
>> > //
>> ///////////////////////////////////////////////////////////////////
>> > // Fields
>> > //
>> ///////////////////////////////////////////////////////////////////
>> >
>> > /** The target operation. */
>> > private String targetOperationName;
>> >
>> > /** The target service. */
>> > private String targetServiceName;
>> >
>> > /** Message arrival time. */
>> > private long arrivalTime;
>> >
>> >
>> > //
>> ///////////////////////////////////////////////////////////////////
>> > // Methods from AbstractDispatcher
>> > //
>> ///////////////////////////////////////////////////////////////////
>> >
>> > // The findOperation and findService are very similar to the ones
>> > // implemented
>> > // in RequestURIBasedDispatcher
>> >
>> > /*
>> > * @see
>> org.apache.axis2.engine.AbstractDispatcher#findOperation(org.apache.axis2.description.AxisService,
>>
>> > * org.apache.axis2.context.MessageContext)
>> > */
>> > @Override
>> > public AxisOperation findOperation(AxisService service,
>> > MessageContext messageContext) {
>> > /*
>> > * if (log.isDebugEnabled()) { log.debug("Trying to find the
>> required
>> > * operation"); }
>> > */
>> >
>> > AxisOperation result = null;
>> >
>> > EndpointReference toEPR = messageContext.getTo();
>> > if ((toEPR != null) && (targetOperationName == null)) {
>> > String filePart = toEPR.getAddress();
>> > String[] values =
>> Utils.parseRequestURLForServiceAndOperation(
>> > filePart, messageContext.getConfigurationContext()
>> > .getServicePath());
>> >
>> > // The previous call returns an array of lenght 2, where
>> values[1]
>> > // holds the operation name
>> > if ((values[1] != null) && (values[1].length() > 0)) {
>> > targetOperationName = values[1];
>> > }
>> > }
>> >
>> > result =
>> service.getOperation(RoutingConstants.FORWARD_OPERATION_NAME);
>> >
>> > return result;
>> > } // -- findOperation()
>> >
>> >
>> > /*
>> > * @see
>> org.apache.axis2.engine.AbstractDispatcher#findService(org.apache.axis2.context.MessageContext)
>>
>> > */
>> > @Override
>> > public AxisService findService(MessageContext messageContext)
>> > throws AxisFault {
>> >
>> > AxisService result = null;
>> > EndpointReference toEPR = messageContext.getTo();
>> >
>> > if (toEPR != null) {
>> > String address = toEPR.getAddress();
>> >
>> > // Returns a 2 values array
>> > String[] values =
>> Utils.parseRequestURLForServiceAndOperation(
>> > address, messageContext.getConfigurationContext()
>> > .getServicePath());
>> >
>> > if ((values[1] != null) && (values[1].length() > 0)) {
>> > targetOperationName = values[1];
>> > }
>> > if ((values[0] != null) && (values[0].length() > 0)) {
>> > targetServiceName = values[0];
>> > /*
>> > * if (log.isDebugEnabled()) { log.debug("Target
>> service is [" +
>> > * targetServiceName + "]"); }
>> > */
>> >
>> > AxisConfiguration registry = messageContext
>> >
>> .getConfigurationContext().getAxisConfiguration();
>> >
>> > /*
>> > * If the target service is 'version', allow the
>> request to pass
>> > * through
>> > */
>> > if (targetServiceName.equalsIgnoreCase("version")) {
>> > result = registry.getService(targetServiceName);
>> > } else {
>> > // Forwards the request to the 'RoutingService'
>> service
>> > result = registry
>> >
>> .getService(RoutingConstants.FORWARD_SERVICE_NAME);
>> > }
>> > }
>> > }
>> >
>> > return result;
>> >
>> > } // -- findService()
>> >
>> >
>> > /*
>> > * @see org.apache.axis2.engine.AbstractDispatcher#initDispatcher()
>> > */
>> > @Override
>> > public void initDispatcher() {
>> > init(new HandlerDescription(DISPATCHER_NAME));
>> > }
>> >
>> >
>> > /*
>> > * @see
>> org.apache.axis2.engine.AbstractDispatcher#invoke(org.apache.axis2.context.MessageContext)
>>
>> > */
>> > @Override
>> > public InvocationResponse invoke(MessageContext messageContext)
>> > throws AxisFault {
>> >
>> > log.info("Handler invoked");
>> > try {
>> > SOAPHeader header =
>> messageContext.getEnvelope().getHeader();
>> > String messageType =
>> SOAPHeaderConstants.getQospMessage(header);
>> >
>> > if (messageType != null) {
>> > if (log.isDebugEnabled()) {
>> > log.debug("Internal message [" + messageType +
>> "]");
>> > }
>> >
>> > if
>> (messageType.equalsIgnoreCase(MessageType.RESULT.value())) {
>> >
>> removeRelatesTo(messageContext.getEnvelope().getHeader());
>> > if (log.isDebugEnabled()) {
>> > log
>> > .debug("Response message (removed
>> the RelatesTo header)");
>> > }
>> > }
>> >
>> > } else {
>> > if (log.isDebugEnabled()) {
>> > log.debug("Received client request");
>> > }
>> >
>> > clientRequest(messageContext);
>> > }
>> > } catch (OMException e) {
>> > if (log.isEnabledFor(Level.ERROR)) {
>> > log.error(FileUtils.getNow()
>> > + ": unable to get the SOAP header: "
>> > + e.getLocalizedMessage());
>> > }
>> > throw new AxisFault(e);
>> > }
>> >
>> > return InvocationResponse.CONTINUE;
>> >
>> > } // -- invoke()
>> >
>> >
>> > //
>> ///////////////////////////////////////////////////////////////////
>> > // Private methods
>> > //
>> ///////////////////////////////////////////////////////////////////
>> >
>> > /**
>> > * Removes the {@link AddressingConstants#WSA_RELATES_TO}
>> element from the
>> > * SOAP header. This is needed because the result receiver is
>> different from
>> > * the requestor.
>> > *
>> > * @param header The SOAP header message without the 'RelatesTo'
>> element.
>> > */
>> > @SuppressWarnings("unchecked")
>> > private final void removeRelatesTo(SOAPHeader header) {
>> > for (Iterator<SOAPHeaderBlock> i =
>> header.examineAllHeaderBlocks(); i
>> > .hasNext();) {
>> > SOAPHeaderBlock tmp = i.next();
>> >
>> > if (tmp.getLocalName().equalsIgnoreCase(
>> > AddressingConstants.WSA_RELATES_TO)) {
>> > tmp.detach();
>> >
>> > if (log.isDebugEnabled()) {
>> > log.debug("Removed 'RelatesTo'");
>> > }
>> > break;
>> > }
>> > }
>> > } // -- removeRelatesTo()
>> >
>> >
>> > /**
>> > * Handler client requests.
>> > *
>> > * @param messageContext The message context.
>> > * @throws AxisFault If an error occurs.
>> > */
>> > private final void clientRequest(MessageContext messageContext)
>> > throws AxisFault {
>> > // Gets the arrival timestamp
>> > this.arrivalTime = System.currentTimeMillis();
>> >
>> > AxisService axisService = messageContext.getAxisService();
>> >
>> > if (axisService == null) {
>> > axisService = findService(messageContext);
>> >
>> > if (axisService != null) {
>> > if (log.isInfoEnabled()) {
>> > log.info("Target service: " +
>> axisService.getName());
>> > }
>> > messageContext.setAxisService(axisService);
>> >
>> > if (log.isInfoEnabled()) {
>> > log.info("Message to: " +
>> axisService.getEndpoint().toString());
>> > }
>> > }
>> > }
>> >
>> > if ((messageContext.getAxisService() != null)
>> > && (messageContext.getAxisOperation() == null)) {
>> > AxisOperation axisOperation = null;
>> >
>> > axisOperation = findOperation(axisService, messageContext);
>> >
>> > if (axisOperation != null) {/*
>> > * if (log.isInfoEnabled()) {
>> > * log.info("Operation set
>> to [" +
>> > *
>> axisOperation.getName().getLocalPart() +
>> > * "]"); }
>> > */
>> >
>> > messageContext.setAxisOperation(axisOperation);
>> > }
>> > }
>> >
>> > saveTargetService(messageContext);
>> > saveTargetOperation(messageContext);
>> > // saveTargetAction(messageContext);
>> >
>> > // Gets the action mapping
>> > String soapAction = messageContext.getSoapAction();
>> > if ((soapAction == null) || (soapAction.length() == 0)) {
>> > try {
>> > /*
>> > * If the message context does not contain the soap
>> action try
>> > * to get it from the SOAP header
>> > */
>> > SOAPHeader header =
>> messageContext.getEnvelope().getHeader();
>> > soapAction =
>> header.getFirstChildWithName(WSA_ACTION).getText();
>> > // extractWSASoapAction(header.toString());
>> > } catch (OMException e) {
>> > if (log.isEnabledFor(Level.ERROR)) {
>> > log.error(FileUtils.getNow()
>> > + ": unable to get the SOAP header: "
>> > + e.getLocalizedMessage());
>> > }
>> > throw new AxisFault(e);
>> > }
>> > }
>> > messageContext.getOptions().setProperty(
>> > RoutingConstants.TARGET_ACTION_MAPPING, soapAction);
>> >
>> > // Saves the arrival time stamp
>> > saveArrivalTime(messageContext);
>> > } // -- clientRequest()
>> >
>> >
>> > /**
>> > * Saves the arrival time stamp.
>> > *
>> > * @param messageContext The message context.
>> > */
>> > private final void saveArrivalTime(MessageContext messageContext) {
>> >
>> messageContext.getOptions().setProperty(SOAPConstants.REQ_ARRIVAL_TIME,
>> > this.arrivalTime);
>> > } // -- saveArrivalTime()
>> >
>> >
>> > /**
>> > * Saves the target service as {@link
>> RoutingConstants#TARGET_SERVICE}
>> > * message property.
>> > *
>> > * @param messageContext The message context.
>> > */
>> > private final void saveTargetService(final MessageContext
>> messageContext) {
>> > messageContext.getOptions().setProperty(
>> > RoutingConstants.TARGET_SERVICE, targetServiceName);
>> > } // -- saveTargetService()
>> >
>> >
>> > /**
>> > * Saves the target operation as {@link
>> RoutingConstants#TARGET_OPERATION}
>> > * message property.
>> > *
>> > * @param messageContext The message context.
>> > */
>> > private final void saveTargetOperation(final MessageContext
>> messageContext) {
>> > if ((targetOperationName != null) &&
>> (targetOperationName.length() > 0)) {
>> > messageContext.getOptions().setProperty(
>> > RoutingConstants.TARGET_OPERATION,
>> targetOperationName);
>> > }
>> > } // -- saveTargetOperation()
>> >
>> > } // END RouterDispatcher
>> >
>> >
>> >
>> ------------------------------------------------------------------------
>> >
>> > 2006-11-08 15:08:54,044
>> [org.apache.axis2.deployment.DeploymentEngine] - Deploying Web
>> service RoutingService.aar
>> > 2006-11-08 15:08:54,090
>> [org.apache.axis2.deployment.DeploymentEngine] - Deploying Web
>> service version.aar
>> > 2006-11-08 15:12:10,471
>> [org.apache.axis2.transport.http.AxisServlet] -
>> java.lang.NullPointerException
>> > 2006-11-08 15:17:59,644 [org.apache.axis2.engine.Phase] - Handler
>> AddressingFinalInHandler added to Phase PreDispatch
>> > 2006-11-08 15:17:59,644 [org.apache.axis2.engine.Phase] - Handler
>> AddressingSubmissionInHandler added to Phase PreDispatch
>> > 2006-11-08 15:17:59,644 [org.apache.axis2.engine.Phase] - Handler
>> AddressingOutHandler added to Phase MessageOut
>> > 2006-11-08 15:17:59,644 [org.apache.axis2.engine.Phase] - Handler
>> AddressingFinalInHandler added to Phase PreDispatch
>> > 2006-11-08 15:17:59,644 [org.apache.axis2.engine.Phase] - Handler
>> AddressingSubmissionInHandler added to Phase PreDispatch
>> > 2006-11-08 15:17:59,644 [org.apache.axis2.engine.Phase] - Handler
>> AddressingOutHandler added to Phase MessageOut
>> > 2006-11-08 15:17:59,644 [org.apache.axis2.engine.Phase] - Handler
>> InFlowManagerHandler added to Phase ManagerInterceptorPhase
>> > 2006-11-08 15:17:59,691
>> [org.apache.axis2.i18n.ProjectResourceBundle] -
>> org.apache.axis2.i18n.resource::handleGetObject(deployingws)
>> > 2006-11-08 15:17:59,691
>> [org.apache.axis2.deployment.DeploymentEngine] - Deploying Web
>> service RoutingService.aar
>> > 2006-11-08 15:17:59,753
>> [org.apache.axis2.i18n.ProjectResourceBundle] -
>> org.apache.axis2.i18n.resource::handleGetObject(deployingws)
>> > 2006-11-08 15:17:59,753
>> [org.apache.axis2.deployment.DeploymentEngine] - Deploying Web
>> service version.aar
>> > 2006-11-08 15:17:59,753
>> [org.apache.axis2.deployment.WarBasedAxisConfigurator] - loaded
>> services from webapp
>> > 2006-11-08 15:18:10,189 [org.apache.axis2.engine.Phase] - Checking
>> pre-condition for Phase "ManagerInterceptorPhase"
>> > 2006-11-08 15:18:10,189 [org.apache.axis2.engine.Phase] - Invoking
>> phase "ManagerInterceptorPhase"
>> > 2006-11-08 15:18:10,189 [org.apache.axis2.engine.Phase] - Invoking
>> Handler 'InFlowManagerHandler' in Phase 'ManagerInterceptorPhase'
>> > 2006-11-08 15:18:10,205 [org.apache.axis2.engine.Phase] - Checking
>> post-conditions for phase "ManagerInterceptorPhase"
>> > 2006-11-08 15:18:10,205 [org.apache.axis2.engine.Phase] - Checking
>> pre-condition for Phase "Transport"
>> > 2006-11-08 15:18:10,205 [org.apache.axis2.engine.Phase] - Invoking
>> phase "Transport"
>> > 2006-11-08 15:18:10,205 [org.apache.axis2.engine.Phase] - Invoking
>> Handler 'SOAPActionBasedDispatcher' in Phase 'Transport'
>> > 2006-11-08 15:18:10,205
>> [org.apache.axis2.engine.SOAPActionBasedDispatcher] - Checking for
>> Service using SOAPAction is a TODO item
>> > 2006-11-08 15:18:10,205 [org.apache.axis2.engine.Phase] - Checking
>> post-conditions for phase "Transport"
>> > 2006-11-08 15:18:10,221 [org.apache.axis2.engine.Phase] - Checking
>> pre-condition for Phase "Security"
>> > 2006-11-08 15:18:10,221 [org.apache.axis2.engine.Phase] - Invoking
>> phase "Security"
>> > 2006-11-08 15:18:10,221 [org.apache.axis2.engine.Phase] - Checking
>> post-conditions for phase "Security"
>> > 2006-11-08 15:18:10,221 [org.apache.axis2.engine.Phase] - Checking
>> pre-condition for Phase "PreDispatch"
>> > 2006-11-08 15:18:10,221 [org.apache.axis2.engine.Phase] - Invoking
>> phase "PreDispatch"
>> > 2006-11-08 15:18:10,221 [org.apache.axis2.engine.Phase] - Invoking
>> Handler 'AddressingFinalInHandler' in Phase 'PreDispatch'
>> > 2006-11-08 15:18:10,221
>> [org.apache.axis2.handlers.addressing.AddressingInHandler] - Starting
>> WS-Addressing Final IN handler ...
>> > 2006-11-08 15:18:10,221
>> [org.apache.axis2.handlers.addressing.AddressingInHandler] - No
>> Headers present corresponding to WS-Addressing Final
>> > 2006-11-08 15:18:10,221 [org.apache.axis2.engine.Phase] - Invoking
>> Handler 'AddressingSubmissionInHandler' in Phase 'PreDispatch'
>> > 2006-11-08 15:18:10,221
>> [org.apache.axis2.handlers.addressing.AddressingInHandler] - Starting
>> WS-Addressing Submission IN handler ...
>> > 2006-11-08 15:18:10,221
>> [org.apache.axis2.handlers.addressing.AddressingInHandler] - No
>> Headers present corresponding to WS-Addressing Submission
>> > 2006-11-08 15:18:10,221 [org.apache.axis2.engine.Phase] - Checking
>> post-conditions for phase "PreDispatch"
>> > 2006-11-08 15:18:10,221 [org.apache.axis2.engine.Phase] - Checking
>> pre-condition for Phase "Dispatch"
>> > 2006-11-08 15:18:10,236 [org.apache.axis2.engine.Phase] - Invoking
>> phase "Dispatch"
>> > 2006-11-08 15:18:10,236 [org.apache.axis2.engine.Phase] - Invoking
>> Handler 'AddressingBasedDispatcher' in Phase 'Dispatch'
>> > 2006-11-08 15:18:10,236
>> [org.apache.axis2.i18n.ProjectResourceBundle] -
>> org.apache.axis2.i18n.resource::handleGetObject(checkingserviceforepr)
>> > 2006-11-08 15:18:10,236
>> [org.apache.axis2.engine.AddressingBasedDispatcher] - Checking for
>> Service using toEPRs address : {0}
>> > 2006-11-08 15:18:10,236
>> [org.apache.axis2.i18n.ProjectResourceBundle] -
>> org.apache.axis2.i18n.resource::handleGetObject(checkingserviceforepr)
>> > 2006-11-08 15:18:10,236
>> [org.apache.axis2.engine.AddressingBasedDispatcher] - Checking for
>> Service using toEPRs address : {0}
>> > 2006-11-08 15:18:10,236
>> [org.apache.axis2.i18n.ProjectResourceBundle] -
>> org.apache.axis2.i18n.resource::handleGetObject(servicefound)
>> > 2006-11-08 15:18:10,236 [org.apache.axis2.engine.AbstractDispatcher]
>> - Found AxisService : RoutingService
>> > 2006-11-08 15:18:10,236
>> [org.apache.axis2.i18n.ProjectResourceBundle] -
>> org.apache.axis2.i18n.resource::handleGetObject(checkingoperation)
>> > 2006-11-08 15:18:10,236
>> [org.apache.axis2.engine.AddressingBasedDispatcher] - Checking for
>> Operation using WSAAction : urn:addNode
>> > 2006-11-08 15:18:10,236
>> [org.apache.axis2.i18n.ProjectResourceBundle] -
>> org.apache.axis2.i18n.resource::handleGetObject(operationfound)
>> > 2006-11-08 15:18:10,236 [org.apache.axis2.engine.AbstractDispatcher]
>> - Found AxisOperation : addNode
>> > 2006-11-08 15:18:10,252 [org.apache.axis2.engine.Phase] - Invoking
>> Handler 'SOAPMessageBodyBasedDispatcher' in Phase 'Dispatch'
>> > 2006-11-08 15:18:10,252 [org.apache.axis2.engine.Phase] - Invoking
>> Handler 'InstanceDispatcher' in Phase 'Dispatch'
>> > 2006-11-08 15:18:10,252 [org.apache.axis2.engine.Phase] - Invoking
>> Handler 'AddressingWSDLValidationHandler' in Phase 'Dispatch'
>> > 2006-11-08 15:18:10,252 [org.apache.axis2.engine.Phase] - Checking
>> post-conditions for phase "Dispatch"
>> > 2006-11-08 15:18:10,252 [org.apache.axis2.engine.Phase] - Checking
>> pre-condition for Phase "OperationInPhase"
>> > 2006-11-08 15:18:10,252 [org.apache.axis2.engine.Phase] - Invoking
>> phase "OperationInPhase"
>> > 2006-11-08 15:18:10,252 [org.apache.axis2.engine.Phase] - Checking
>> post-conditions for phase "OperationInPhase"
>> > 2006-11-08 15:18:10,252 [org.apache.axis2.engine.Phase] - Checking
>> pre-condition for Phase "soapmonitorPhase"
>> > 2006-11-08 15:18:10,252 [org.apache.axis2.engine.Phase] - Invoking
>> phase "soapmonitorPhase"
>> > 2006-11-08 15:18:10,252 [org.apache.axis2.engine.Phase] - Checking
>> post-conditions for phase "soapmonitorPhase"
>> > 2006-11-08 15:18:10,283
>> [org.apache.axis2.i18n.ProjectResourceBundle] -
>> org.apache.axis2.i18n.resource::handleGetObject(methodDoesNotExistInOut)
>> > 2006-11-08 15:18:10,283
>> [org.apache.axis2.transport.http.AxisServlet] -
>> org.apache.axis2.AxisFault: ServiceClass does not implement required
>> method of the form OMElement addNode(OMElement e)
>> > 2006-11-08 15:18:10,283
>> [org.apache.axis2.addressing.AddressingHelper] - isReplyRedirected:
>> FaultTo is null. Returning isReplyRedirected
>> > 2006-11-08 15:18:10,283
>> [org.apache.axis2.addressing.AddressingHelper] - isReplyRedirected:
>> ReplyTo is null. Returning false
>> > 2006-11-08 15:18:10,299 [org.apache.axis2.engine.Phase] - Checking
>> pre-condition for Phase "soapmonitorPhase"
>> > 2006-11-08 15:18:10,314 [org.apache.axis2.engine.Phase] - Invoking
>> phase "soapmonitorPhase"
>> > 2006-11-08 15:18:10,314 [org.apache.axis2.engine.Phase] - Checking
>> post-conditions for phase "soapmonitorPhase"
>> > 2006-11-08 15:18:10,314 [org.apache.axis2.engine.Phase] - Checking
>> pre-condition for Phase "OperationOutFaultPhase"
>> > 2006-11-08 15:18:10,314 [org.apache.axis2.engine.Phase] - Invoking
>> phase "OperationOutFaultPhase"
>> > 2006-11-08 15:18:10,314 [org.apache.axis2.engine.Phase] - Checking
>> post-conditions for phase "OperationOutFaultPhase"
>> > 2006-11-08 15:18:10,314 [org.apache.axis2.engine.Phase] - Checking
>> pre-condition for Phase "PolicyDetermination"
>> > 2006-11-08 15:18:10,314 [org.apache.axis2.engine.Phase] - Invoking
>> phase "PolicyDetermination"
>> > 2006-11-08 15:18:10,314 [org.apache.axis2.engine.Phase] - Checking
>> post-conditions for phase "PolicyDetermination"
>> > 2006-11-08 15:18:10,314 [org.apache.axis2.engine.Phase] - Checking
>> pre-condition for Phase "MessageOut"
>> > 2006-11-08 15:18:10,314 [org.apache.axis2.engine.Phase] - Invoking
>> phase "MessageOut"
>> > 2006-11-08 15:18:10,314 [org.apache.axis2.engine.Phase] - Invoking
>> Handler 'AddressingOutHandler' in Phase 'MessageOut'
>> > 2006-11-08 15:18:10,314
>> [org.apache.axis2.handlers.addressing.AddressingHandler] - Addressing
>> is disabled .....
>> > 2006-11-08 15:18:10,314 [org.apache.axis2.engine.Phase] - Checking
>> post-conditions for phase "MessageOut"
>> > 2006-11-08 15:18:20,891 [org.apache.axis2.engine.Phase] - Checking
>> pre-condition for Phase "ManagerInterceptorPhase"
>> > 2006-11-08 15:18:20,891 [org.apache.axis2.engine.Phase] - Invoking
>> phase "ManagerInterceptorPhase"
>> > 2006-11-08 15:18:20,891 [org.apache.axis2.engine.Phase] - Invoking
>> Handler 'InFlowManagerHandler' in Phase 'ManagerInterceptorPhase'
>> > 2006-11-08 15:18:20,891 [org.apache.axis2.engine.Phase] - Checking
>> post-conditions for phase "ManagerInterceptorPhase"
>> > 2006-11-08 15:18:20,891 [org.apache.axis2.engine.Phase] - Checking
>> pre-condition for Phase "Transport"
>> > 2006-11-08 15:18:20,907 [org.apache.axis2.engine.Phase] - Invoking
>> phase "Transport"
>> > 2006-11-08 15:18:20,907 [org.apache.axis2.engine.Phase] - Invoking
>> Handler 'SOAPActionBasedDispatcher' in Phase 'Transport'
>> > 2006-11-08 15:18:20,907
>> [org.apache.axis2.engine.SOAPActionBasedDispatcher] - Checking for
>> Service using SOAPAction is a TODO item
>> > 2006-11-08 15:18:20,907 [org.apache.axis2.engine.Phase] - Checking
>> post-conditions for phase "Transport"
>> > 2006-11-08 15:18:20,907 [org.apache.axis2.engine.Phase] - Checking
>> pre-condition for Phase "Security"
>> > 2006-11-08 15:18:20,907 [org.apache.axis2.engine.Phase] - Invoking
>> phase "Security"
>> > 2006-11-08 15:18:20,907 [org.apache.axis2.engine.Phase] - Checking
>> post-conditions for phase "Security"
>> > 2006-11-08 15:18:20,907 [org.apache.axis2.engine.Phase] - Checking
>> pre-condition for Phase "PreDispatch"
>> > 2006-11-08 15:18:20,907 [org.apache.axis2.engine.Phase] - Invoking
>> phase "PreDispatch"
>> > 2006-11-08 15:18:20,907 [org.apache.axis2.engine.Phase] - Invoking
>> Handler 'AddressingFinalInHandler' in Phase 'PreDispatch'
>> > 2006-11-08 15:18:20,907
>> [org.apache.axis2.handlers.addressing.AddressingInHandler] - Starting
>> WS-Addressing Final IN handler ...
>> > 2006-11-08 15:18:20,907
>> [org.apache.axis2.handlers.addressing.AddressingInHandler] - No
>> Headers present corresponding to WS-Addressing Final
>> > 2006-11-08 15:18:20,907 [org.apache.axis2.engine.Phase] - Invoking
>> Handler 'AddressingSubmissionInHandler' in Phase 'PreDispatch'
>> > 2006-11-08 15:18:20,907
>> [org.apache.axis2.handlers.addressing.AddressingInHandler] - Starting
>> WS-Addressing Submission IN handler ...
>> > 2006-11-08 15:18:20,907
>> [org.apache.axis2.handlers.addressing.AddressingInHandler] - No
>> Headers present corresponding to WS-Addressing Submission
>> > 2006-11-08 15:18:20,922 [org.apache.axis2.engine.Phase] - Checking
>> post-conditions for phase "PreDispatch"
>> > 2006-11-08 15:18:20,922 [org.apache.axis2.engine.Phase] - Checking
>> pre-condition for Phase "Dispatch"
>> > 2006-11-08 15:18:20,922 [org.apache.axis2.engine.Phase] - Invoking
>> phase "Dispatch"
>> > 2006-11-08 15:18:20,922 [org.apache.axis2.engine.Phase] - Invoking
>> Handler 'AddressingBasedDispatcher' in Phase 'Dispatch'
>> > 2006-11-08 15:18:20,922
>> [org.apache.axis2.i18n.ProjectResourceBundle] -
>> org.apache.axis2.i18n.resource::handleGetObject(checkingserviceforepr)
>> > 2006-11-08 15:18:20,922
>> [org.apache.axis2.engine.AddressingBasedDispatcher] - Checking for
>> Service using toEPRs address : {0}
>> > 2006-11-08 15:18:20,922
>> [org.apache.axis2.i18n.ProjectResourceBundle] -
>> org.apache.axis2.i18n.resource::handleGetObject(checkingserviceforepr)
>> > 2006-11-08 15:18:20,922
>> [org.apache.axis2.engine.AddressingBasedDispatcher] - Checking for
>> Service using toEPRs address : {0}
>> > 2006-11-08 15:18:20,922
>> [org.apache.axis2.i18n.ProjectResourceBundle] -
>> org.apache.axis2.i18n.resource::handleGetObject(servicefound)
>> > 2006-11-08 15:18:20,922 [org.apache.axis2.engine.AbstractDispatcher]
>> - Found AxisService : RoutingService
>> > 2006-11-08 15:18:20,922
>> [org.apache.axis2.i18n.ProjectResourceBundle] -
>> org.apache.axis2.i18n.resource::handleGetObject(checkingoperation)
>> > 2006-11-08 15:18:20,922
>> [org.apache.axis2.engine.AddressingBasedDispatcher] - Checking for
>> Operation using WSAAction : urn:addService
>> > 2006-11-08 15:18:20,922
>> [org.apache.axis2.i18n.ProjectResourceBundle] -
>> org.apache.axis2.i18n.resource::handleGetObject(operationfound)
>> > 2006-11-08 15:18:20,938 [org.apache.axis2.engine.AbstractDispatcher]
>> - Found AxisOperation : addService
>> > 2006-11-08 15:18:20,938 [org.apache.axis2.engine.Phase] - Invoking
>> Handler 'SOAPMessageBodyBasedDispatcher' in Phase 'Dispatch'
>> > 2006-11-08 15:18:20,938 [org.apache.axis2.engine.Phase] - Invoking
>> Handler 'InstanceDispatcher' in Phase 'Dispatch'
>> > 2006-11-08 15:18:20,938 [org.apache.axis2.engine.Phase] - Invoking
>> Handler 'AddressingWSDLValidationHandler' in Phase 'Dispatch'
>> > 2006-11-08 15:18:20,938 [org.apache.axis2.engine.Phase] - Checking
>> post-conditions for phase "Dispatch"
>> > 2006-11-08 15:18:20,938 [org.apache.axis2.engine.Phase] - Checking
>> pre-condition for Phase "OperationInPhase"
>> > 2006-11-08 15:18:20,938 [org.apache.axis2.engine.Phase] - Invoking
>> phase "OperationInPhase"
>> > 2006-11-08 15:18:20,938 [org.apache.axis2.engine.Phase] - Checking
>> post-conditions for phase "OperationInPhase"
>> > 2006-11-08 15:18:20,938 [org.apache.axis2.engine.Phase] - Checking
>> pre-condition for Phase "soapmonitorPhase"
>> > 2006-11-08 15:18:20,938 [org.apache.axis2.engine.Phase] - Invoking
>> phase "soapmonitorPhase"
>> > 2006-11-08 15:18:20,938 [org.apache.axis2.engine.Phase] - Checking
>> post-conditions for phase "soapmonitorPhase"
>> > 2006-11-08 15:18:20,938
>> [org.apache.axis2.i18n.ProjectResourceBundle] -
>> org.apache.axis2.i18n.resource::handleGetObject(methodDoesNotExistInOut)
>> > 2006-11-08 15:18:20,954
>> [org.apache.axis2.transport.http.AxisServlet] -
>> org.apache.axis2.AxisFault: ServiceClass does not implement required
>> method of the form OMElement addService(OMElement e)
>> > 2006-11-08 15:18:20,954
>> [org.apache.axis2.addressing.AddressingHelper] - isReplyRedirected:
>> FaultTo is null. Returning isReplyRedirected
>> > 2006-11-08 15:18:20,954
>> [org.apache.axis2.addressing.AddressingHelper] - isReplyRedirected:
>> ReplyTo is null. Returning false
>> > 2006-11-08 15:18:20,954 [org.apache.axis2.engine.Phase] - Checking
>> pre-condition for Phase "soapmonitorPhase"
>> > 2006-11-08 15:18:20,954 [org.apache.axis2.engine.Phase] - Invoking
>> phase "soapmonitorPhase"
>> > 2006-11-08 15:18:20,954 [org.apache.axis2.engine.Phase] - Checking
>> post-conditions for phase "soapmonitorPhase"
>> > 2006-11-08 15:18:20,954 [org.apache.axis2.engine.Phase] - Checking
>> pre-condition for Phase "OperationOutFaultPhase"
>> > 2006-11-08 15:18:20,954 [org.apache.axis2.engine.Phase] - Invoking
>> phase "OperationOutFaultPhase"
>> > 2006-11-08 15:18:20,954 [org.apache.axis2.engine.Phase] - Checking
>> post-conditions for phase "OperationOutFaultPhase"
>> > 2006-11-08 15:18:20,954 [org.apache.axis2.engine.Phase] - Checking
>> pre-condition for Phase "PolicyDetermination"
>> > 2006-11-08 15:18:20,954 [org.apache.axis2.engine.Phase] - Invoking
>> phase "PolicyDetermination"
>> > 2006-11-08 15:18:20,954 [org.apache.axis2.engine.Phase] - Checking
>> post-conditions for phase "PolicyDetermination"
>> > 2006-11-08 15:18:20,969 [org.apache.axis2.engine.Phase] - Checking
>> pre-condition for Phase "MessageOut"
>> > 2006-11-08 15:18:20,969 [org.apache.axis2.engine.Phase] - Invoking
>> phase "MessageOut"
>> > 2006-11-08 15:18:20,969 [org.apache.axis2.engine.Phase] - Invoking
>> Handler 'AddressingOutHandler' in Phase 'MessageOut'
>> > 2006-11-08 15:18:20,969
>> [org.apache.axis2.handlers.addressing.AddressingHandler] - Addressing
>> is disabled .....
>> > 2006-11-08 15:18:20,969 [org.apache.axis2.engine.Phase] - Checking
>> post-conditions for phase "MessageOut"
>> > 2006-11-08 15:18:38,404 [org.apache.axis2.engine.Phase] - Checking
>> pre-condition for Phase "ManagerInterceptorPhase"
>> > 2006-11-08 15:18:38,404 [org.apache.axis2.engine.Phase] - Invoking
>> phase "ManagerInterceptorPhase"
>> > 2006-11-08 15:18:38,404 [org.apache.axis2.engine.Phase] - Invoking
>> Handler 'InFlowManagerHandler' in Phase 'ManagerInterceptorPhase'
>> > 2006-11-08 15:18:38,420
>> [org.apache.axis2.transport.http.AxisServlet] -
>> java.lang.NullPointerException
>> > 2006-11-08 15:18:38,420
>> [org.apache.axis2.addressing.AddressingHelper] - isReplyRedirected:
>> FaultTo is null. Returning isReplyRedirected
>> > 2006-11-08 15:18:38,420
>> [org.apache.axis2.addressing.AddressingHelper] - isReplyRedirected:
>> ReplyTo is null. Returning false
>> > 2006-11-08 15:18:38,420 [org.apache.axis2.engine.Phase] - Checking
>> pre-condition for Phase "MessageOut"
>> > 2006-11-08 15:18:38,420 [org.apache.axis2.engine.Phase] - Invoking
>> phase "MessageOut"
>> > 2006-11-08 15:18:38,420 [org.apache.axis2.engine.Phase] - Invoking
>> Handler 'AddressingOutHandler' in Phase 'MessageOut'
>> > 2006-11-08 15:18:38,420
>> [org.apache.axis2.addressing.EndpointReferenceHelper] - toOM: Factory,
>> org.apache.axiom.soap.impl.llom.soap12.SOAP12Factory@98bbf6
>> > 2006-11-08 15:18:38,420
>> [org.apache.axis2.addressing.EndpointReferenceHelper] - toOM: Endpoint
>> reference, Address: http://www.w3.org/2005/08/addressing/none
>> > 2006-11-08 15:18:38,420
>> [org.apache.axis2.addressing.EndpointReferenceHelper] - toOM: Element
>> qname, {http://www.w3.org/2005/08/addressing}ReplyTo
>> > 2006-11-08 15:18:38,436
>> [org.apache.axis2.addressing.EndpointReferenceHelper] - toOM:
>> Addressing namespace, http://www.w3.org/2005/08/addressing
>> > 2006-11-08 15:18:38,436 [org.apache.axis2.engine.Phase] - Checking
>> post-conditions for phase "MessageOut"
>> > 2006-11-08 15:24:31,935 [org.apache.axis2.engine.Phase] - Checking
>> pre-condition for Phase "ManagerInterceptorPhase"
>> > 2006-11-08 15:24:31,935 [org.apache.axis2.engine.Phase] - Invoking
>> phase "ManagerInterceptorPhase"
>> > 2006-11-08 15:24:31,935 [org.apache.axis2.engine.Phase] - Invoking
>> Handler 'InFlowManagerHandler' in Phase 'ManagerInterceptorPhase'
>> > 2006-11-08 15:24:31,935
>> [org.apache.axis2.transport.http.AxisServlet] -
>> java.lang.NullPointerException
>> > 2006-11-08 15:24:31,935
>> [org.apache.axis2.addressing.AddressingHelper] - isReplyRedirected:
>> FaultTo is null. Returning isReplyRedirected
>> > 2006-11-08 15:24:31,935
>> [org.apache.axis2.addressing.AddressingHelper] - isReplyRedirected:
>> ReplyTo is null. Returning false
>> > 2006-11-08 15:24:31,935 [org.apache.axis2.engine.Phase] - Checking
>> pre-condition for Phase "MessageOut"
>> > 2006-11-08 15:24:31,935 [org.apache.axis2.engine.Phase] - Invoking
>> phase "MessageOut"
>> > 2006-11-08 15:24:31,951 [org.apache.axis2.engine.Phase] - Invoking
>> Handler 'AddressingOutHandler' in Phase 'MessageOut'
>> > 2006-11-08 15:24:31,951
>> [org.apache.axis2.addressing.EndpointReferenceHelper] - toOM: Factory,
>> org.apache.axiom.soap.impl.llom.soap12.SOAP12Factory@e7e8eb
>> > 2006-11-08 15:24:31,951
>> [org.apache.axis2.addressing.EndpointReferenceHelper] - toOM: Endpoint
>> reference, Address: http://www.w3.org/2005/08/addressing/none
>> > 2006-11-08 15:24:31,951
>> [org.apache.axis2.addressing.EndpointReferenceHelper] - toOM: Element
>> qname, {http://www.w3.org/2005/08/addressing}ReplyTo
>> > 2006-11-08 15:24:31,951
>> [org.apache.axis2.addressing.EndpointReferenceHelper] - toOM:
>> Addressing namespace, http://www.w3.org/2005/08/addressing
>> > 2006-11-08 15:24:31,951 [org.apache.axis2.engine.Phase] - Checking
>> post-conditions for phase "MessageOut"
>> >
>> >
>> >
>> ------------------------------------------------------------------------
>> >
>> > 2006-11-08 15:08:53,731 [ncl.qosp.controller.RoutingService] -
>> Startup time is: Wed Nov 08 15:08:53 GMT 2006
>> > 2006-11-08 15:08:54,106 [ncl.qosp.controller.RoutingService] - --
>> Constructor
>> > 2006-11-08 15:08:54,184 [ncl.qosp.controller.RoutingService] -
>> Scheduler created
>> > 2006-11-08 15:08:54,184
>> [ncl.qosp.controller.scheduler.weighted.queue.QueueSizeScheduler] -
>> Scheduler component started
>> > 2006-11-08 15:09:08,198 [ncl.qosp.controller.LifecycleSupport] -
>> Qosp is shutting down...
>> > 2006-11-08 15:09:08,198
>> [ncl.qosp.controller.scheduler.weighted.queue.QueueSizeScheduler] -
>> The timer was not running
>> > 2006-11-08 15:09:08,198
>> [ncl.qosp.controller.scheduler.weighted.queue.QueueSizeScheduler] -
>> Scheduler component stopped
>> > 2006-11-08 15:09:08,198 [ncl.qosp.controller.LifecycleSupport] -
>> Scheduler stopped
>> > 2006-11-08 15:09:08,198 [ncl.qosp.controller.LifecycleSupport] -
>> Scheduler unregistered from the mbean server
>> > 2006-11-08 15:09:08,198 [ncl.qosp.controller.LifecycleSupport] -
>> Connector server stopped
>> > 2006-11-08 15:10:13,518 [ncl.qosp.controller.RoutingService] -
>> Startup time is: Wed Nov 08 15:10:13 GMT 2006
>> > 2006-11-08 15:10:13,908 [ncl.qosp.controller.RoutingService] - --
>> Constructor
>> > 2006-11-08 15:10:13,971 [ncl.qosp.controller.RoutingService] -
>> Scheduler created
>> > 2006-11-08 15:10:13,971
>> [ncl.qosp.controller.scheduler.weighted.queue.QueueSizeScheduler] -
>> Scheduler component started
>> > 2006-11-08 15:10:41,014 [ncl.qosp.modules.manager.RouterDispatcher]
>> - Handler invoked
>> > 2006-11-08 15:10:41,030 [ncl.qosp.modules.manager.RouterDispatcher]
>> - Internal message [New node]
>> > 2006-11-08 15:11:01,183 [ncl.qosp.modules.manager.RouterDispatcher]
>> - Handler invoked
>> > 2006-11-08 15:11:01,183 [ncl.qosp.modules.manager.RouterDispatcher]
>> - Internal message [New service]
>> > 2006-11-08 15:11:31,836
>> [ncl.qosp.controller.scheduler.weighted.queue.QueueSizeScheduler] -
>> Received listener request
>> > 2006-11-08 15:11:31,836
>> [ncl.qosp.controller.scheduler.weighted.queue.QueueSizeScheduler] -
>> Added notification listener
>> > 2006-11-08 15:12:10,471 [ncl.qosp.modules.manager.RouterDispatcher]
>> - Handler invoked
>> > 2006-11-08 15:12:10,471 [ncl.qosp.modules.manager.RouterDispatcher]
>> - Received client request
>> > 2006-11-08 15:12:10,471 [ncl.qosp.modules.manager.RouterDispatcher]
>> - Target service: RoutingService
>> > 2006-11-08 15:13:50,271 [ncl.qosp.controller.LifecycleSupport] -
>> Qosp is shutting down...
>> > 2006-11-08 15:13:50,271
>> [ncl.qosp.controller.scheduler.weighted.queue.QueueSizeScheduler] -
>> The timer was not running
>> > 2006-11-08 15:13:50,271
>> [ncl.qosp.controller.scheduler.weighted.queue.QueueSizeScheduler] -
>> Scheduler component stopped
>> > 2006-11-08 15:13:50,271 [ncl.qosp.controller.LifecycleSupport] -
>> Scheduler stopped
>> > 2006-11-08 15:13:50,271 [ncl.qosp.controller.LifecycleSupport] -
>> Scheduler unregistered from the mbean server
>> > 2006-11-08 15:13:50,302 [ncl.qosp.controller.LifecycleSupport] -
>> Connector server stopped
>> > 2006-11-08 15:17:59,363 [ncl.qosp.controller.RoutingService] -
>> Startup time is: Wed Nov 08 15:17:59 GMT 2006
>> > 2006-11-08 15:17:59,769 [ncl.qosp.controller.RoutingService] - --
>> Constructor
>> > 2006-11-08 15:17:59,831 [ncl.qosp.controller.RoutingService] -
>> Scheduler created
>> > 2006-11-08 15:17:59,847
>> [ncl.qosp.controller.scheduler.weighted.queue.QueueSizeScheduler] -
>> Scheduler component started
>> > 2006-11-08 15:18:10,205 [ncl.qosp.modules.manager.RouterDispatcher]
>> - Handler invoked
>> > 2006-11-08 15:18:10,205 [ncl.qosp.modules.manager.RouterDispatcher]
>> - Internal message [New node]
>> > 2006-11-08 15:18:20,891 [ncl.qosp.modules.manager.RouterDispatcher]
>> - Handler invoked
>> > 2006-11-08 15:18:20,891 [ncl.qosp.modules.manager.RouterDispatcher]
>> - Internal message [New service]
>> > 2006-11-08 15:18:38,404 [ncl.qosp.modules.manager.RouterDispatcher]
>> - Handler invoked
>> > 2006-11-08 15:18:38,404 [ncl.qosp.modules.manager.RouterDispatcher]
>> - Received client request
>> > 2006-11-08 15:18:38,404 [ncl.qosp.modules.manager.RouterDispatcher]
>> - Target service: RoutingService
>> > 2006-11-08 15:24:31,935 [ncl.qosp.modules.manager.RouterDispatcher]
>> - Handler invoked
>> > 2006-11-08 15:24:31,935 [ncl.qosp.modules.manager.RouterDispatcher]
>> - Received client request
>> > 2006-11-08 15:24:31,935 [ncl.qosp.modules.manager.RouterDispatcher]
>> - Target service: RoutingService
>> >
>> >
>> >
>> >
>> ------------------------------------------------------------------------
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> > For additional commands, e-mail: axis-user-help@ws.apache.org
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> For additional commands, e-mail: axis-user-help@ws.apache.org
>>
>>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: [Axis2] Help using AXIOMXPath
Posted by Brian Bacsu <bb...@csc.com>.
Martin
This is being implemented as part of a web service client not a service.
Thanks,
Brian Bacsu
"Martin Gainty" <mg...@hotmail.com>
11/08/2006 06:24 PM
Please respond to
axis-user@ws.apache.org
To
<ax...@ws.apache.org>
cc
Subject
Re: [Axis2] Help using AXIOMXPath
Brian-
can we see your services.xml ?
M-
This e-mail communication and any attachments may contain confidential and
privileged information for the use of the
designated recipients named above. If you are not the intended recipient,
you are hereby notified that you have received
this communication in error and that any review, disclosure,
dissemination, distribution or copying of it or its
contents
----- Original Message -----
From: Brian Bacsu
To: axis-user@ws.apache.org
Sent: Wednesday, November 08, 2006 5:33 PM
Subject: Re: [Axis2] Help using AXIOMXPath
Hi
I am trying to use AXIOMXPath in a statement such as this (using Axis2
version 1.0):
AXIOMXPath xpathExpression = new AXIOMXPath (xpathString);
OMElement node= (OMElement)xpathExpression.selectSingleNode(OM_message);
I have verified the XPath is valid.
But... I get the following error:
java.lang.NullPointerException
at org.apache.axiom.om.xpath.DocumentNavigator.getDocumentNode(
DocumentNavigator.java:603)
at org.jaxen.expr.DefaultAbsoluteLocationPath.evaluate(
DefaultAbsoluteLocationPath.java:97)
at org.jaxen.expr.DefaultXPathExpr.asList(DefaultXPathExpr.java:98
)
at org.jaxen.BaseXPath.selectNodesForContext(BaseXPath.java:674)
at org.jaxen.BaseXPath.selectNodes(BaseXPath.java:213)
at org.jaxen.BaseXPath.selectSingleNode(BaseXPath.java:234)
Any suggestions would be appreciated.
Thanks,
Brian Bacsu
Re: [Axis2] Help using AXIOMXPath
Posted by Martin Gainty <mg...@hotmail.com>.
Brian-
can we see your services.xml ?
M-
This e-mail communication and any attachments may contain confidential and privileged information for the use of the
designated recipients named above. If you are not the intended recipient, you are hereby notified that you have received
this communication in error and that any review, disclosure, dissemination, distribution or copying of it or its
contents
----- Original Message -----
From: Brian Bacsu
To: axis-user@ws.apache.org
Sent: Wednesday, November 08, 2006 5:33 PM
Subject: Re: [Axis2] Help using AXIOMXPath
Hi
I am trying to use AXIOMXPath in a statement such as this (using Axis2 version 1.0):
AXIOMXPath xpathExpression = new AXIOMXPath (xpathString);
OMElement node= (OMElement)xpathExpression.selectSingleNode(OM_message);
I have verified the XPath is valid.
But... I get the following error:
java.lang.NullPointerException
at org.apache.axiom.om.xpath.DocumentNavigator.getDocumentNode(DocumentNavigator.java:603)
at org.jaxen.expr.DefaultAbsoluteLocationPath.evaluate(DefaultAbsoluteLocationPath.java:97)
at org.jaxen.expr.DefaultXPathExpr.asList(DefaultXPathExpr.java:98)
at org.jaxen.BaseXPath.selectNodesForContext(BaseXPath.java:674)
at org.jaxen.BaseXPath.selectNodes(BaseXPath.java:213)
at org.jaxen.BaseXPath.selectSingleNode(BaseXPath.java:234)
Any suggestions would be appreciated.
Thanks,
Brian Bacsu
Re: [Axis2] Help using AXIOMXPath
Posted by Brian Bacsu <bb...@csc.com>.
Hi
I am trying to use AXIOMXPath in a statement such as this (using Axis2
version 1.0):
AXIOMXPath xpathExpression = new AXIOMXPath (xpathString);
OMElement node= (OMElement)xpathExpression.selectSingleNode(OM_message);
I have verified the XPath is valid.
But... I get the following error:
java.lang.NullPointerException
at org.apache.axiom.om.xpath.DocumentNavigator.getDocumentNode(
DocumentNavigator.java:603)
at org.jaxen.expr.DefaultAbsoluteLocationPath.evaluate(
DefaultAbsoluteLocationPath.java:97)
at org.jaxen.expr.DefaultXPathExpr.asList(DefaultXPathExpr.java:98
)
at org.jaxen.BaseXPath.selectNodesForContext(BaseXPath.java:674)
at org.jaxen.BaseXPath.selectNodes(BaseXPath.java:213)
at org.jaxen.BaseXPath.selectSingleNode(BaseXPath.java:234)
Any suggestions would be appreciated.
Thanks,
Brian Bacsu
Re: [Axis2] NullPointerException in org.apache.axis2.transport.http.AxisServlet
Posted by Davanum Srinivas <da...@gmail.com>.
Could u please log a bug anyway (with the bad xml). We should not be
throwing NPE's.
thanks,
-- dims
On 11/8/06, Michele Mazzucco <Mi...@ncl.ac.uk> wrote:
> Hi again,
>
> I've found out a problem was due to a mis configured services.xml (the
> message receiver must be declared inside each operation, it is not legal
> to declare all used message receivers this way:
>
> <messageReceivers>
> <messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-only"
>
> class="org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver"/>
> <messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-out"
>
> class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/>
> </messageReceivers>
>
> and this was the cause of:
> 2006-11-08 15:18:20,954 [org.apache.axis2.transport.http.AxisServlet] -
> org.apache.axis2.AxisFault: ServiceClass does not implement required
> method of the form OMElement addService(OMElement e)
>
> but I still have this:
>
> DEBUG Phase:invoke - Invoking Handler 'AddressingBasedDispatcher' in
> Phase 'Dispatch'
> DEBUG ProjectResourceBundle:handleGetObject -
> org.apache.axis2.i18n.resource::handleGetObject(checkingserviceforepr)
> DEBUG AddressingBasedDispatcher:findService - Checking for Service using
> toEPRs address : {0}
> DEBUG ProjectResourceBundle:handleGetObject -
> org.apache.axis2.i18n.resource::handleGetObject(checkingserviceforepr)
> DEBUG AddressingBasedDispatcher:findService - Checking for Service using
> toEPRs address : {0}
> DEBUG ProjectResourceBundle:handleGetObject -
> org.apache.axis2.i18n.resource::handleGetObject(servicefound)
> DEBUG AbstractDispatcher:invoke - Found AxisService : RoutingService
> DEBUG ProjectResourceBundle:handleGetObject -
> org.apache.axis2.i18n.resource::handleGetObject(checkingoperation)
> DEBUG AddressingBasedDispatcher:findOperation - Checking for Operation
> using WSAAction : urn:addNode
> DEBUG ProjectResourceBundle:handleGetObject -
> org.apache.axis2.i18n.resource::handleGetObject(operationfound)
> DEBUG AbstractDispatcher:invoke - Found AxisOperation : addNode
> DEBUG Phase:invoke - Invoking Handler 'SOAPMessageBodyBasedDispatcher'
> in Phase 'Dispatch'
> DEBUG Phase:invoke - Invoking Handler 'InstanceDispatcher' in Phase
> 'Dispatch'
> DEBUG Phase:invoke - Invoking Handler 'AddressingWSDLValidationHandler'
> in Phase 'Dispatch'
> DEBUG Phase:invoke - Checking post-conditions for phase "Dispatch"
> DEBUG Phase:invoke - Checking pre-condition for Phase "OperationInPhase"
> DEBUG Phase:invoke - Invoking phase "OperationInPhase"
> DEBUG Phase:invoke - Checking post-conditions for phase "OperationInPhase"
> DEBUG Phase:invoke - Checking pre-condition for Phase "soapmonitorPhase"
> DEBUG Phase:invoke - Invoking phase "soapmonitorPhase"
> DEBUG Phase:invoke - Checking post-conditions for phase "soapmonitorPhase"
> DEBUG Phase:invoke - Checking pre-condition for Phase
> "ManagerInterceptorPhase"
> DEBUG Phase:invoke - Invoking phase "ManagerInterceptorPhase"
> DEBUG Phase:invoke - Invoking Handler 'InFlowManagerHandler' in Phase
> 'ManagerInterceptorPhase'
> DEBUG Phase:invoke - Checking post-conditions for phase
> "ManagerInterceptorPhase"
> DEBUG Phase:invoke - Checking pre-condition for Phase "Transport"
> DEBUG Phase:invoke - Invoking phase "Transport"
> DEBUG Phase:invoke - Invoking Handler 'SOAPActionBasedDispatcher' in
> Phase 'Transport'
> DEBUG SOAPActionBasedDispatcher:findService - Checking for Service using
> SOAPAction is a TODO item
> DEBUG Phase:invoke - Checking post-conditions for phase "Transport"
> DEBUG Phase:invoke - Checking pre-condition for Phase "Security"
> DEBUG Phase:invoke - Invoking phase "Security"
> DEBUG Phase:invoke - Checking post-conditions for phase "Security"
> DEBUG Phase:invoke - Checking pre-condition for Phase "PreDispatch"
> DEBUG Phase:invoke - Invoking phase "PreDispatch"
> DEBUG Phase:invoke - Invoking Handler 'AddressingFinalInHandler' in
> Phase 'PreDispatch'
> DEBUG AddressingInHandler:invoke - Starting WS-Addressing Final IN
> handler ...
> DEBUG AddressingInHandler:invoke - No Headers present corresponding to
> WS-Addressing Final
> DEBUG Phase:invoke - Invoking Handler 'AddressingSubmissionInHandler' in
> Phase 'PreDispatch'
> DEBUG AddressingInHandler:invoke - Starting WS-Addressing Submission IN
> handler ...
> DEBUG AddressingInHandler:invoke - No Headers present corresponding to
> WS-Addressing Submission
> DEBUG Phase:invoke - Checking post-conditions for phase "PreDispatch"
> DEBUG Phase:invoke - Checking pre-condition for Phase "Dispatch"
> DEBUG Phase:invoke - Invoking phase "Dispatch"
> DEBUG Phase:invoke - Invoking Handler 'AddressingBasedDispatcher' in
> Phase 'Dispatch'
> DEBUG ProjectResourceBundle:handleGetObject -
> org.apache.axis2.i18n.resource::handleGetObject(checkingserviceforepr)
> DEBUG AddressingBasedDispatcher:findService - Checking for Service using
> toEPRs address : {0}
> DEBUG ProjectResourceBundle:handleGetObject -
> org.apache.axis2.i18n.resource::handleGetObject(checkingserviceforepr)
> DEBUG AddressingBasedDispatcher:findService - Checking for Service using
> toEPRs address : {0}
> DEBUG ProjectResourceBundle:handleGetObject -
> org.apache.axis2.i18n.resource::handleGetObject(servicefound)
> DEBUG AbstractDispatcher:invoke - Found AxisService : RoutingService
> DEBUG ProjectResourceBundle:handleGetObject -
> org.apache.axis2.i18n.resource::handleGetObject(checkingoperation)
> DEBUG AddressingBasedDispatcher:findOperation - Checking for Operation
> using WSAAction : urn:addService
> DEBUG ProjectResourceBundle:handleGetObject -
> org.apache.axis2.i18n.resource::handleGetObject(operationfound)
> DEBUG AbstractDispatcher:invoke - Found AxisOperation : addService
> DEBUG Phase:invoke - Invoking Handler 'SOAPMessageBodyBasedDispatcher'
> in Phase 'Dispatch'
> DEBUG Phase:invoke - Invoking Handler 'InstanceDispatcher' in Phase
> 'Dispatch'
> DEBUG Phase:invoke - Invoking Handler 'AddressingWSDLValidationHandler'
> in Phase 'Dispatch'
> DEBUG Phase:invoke - Checking post-conditions for phase "Dispatch"
> DEBUG Phase:invoke - Checking pre-condition for Phase "OperationInPhase"
> DEBUG Phase:invoke - Invoking phase "OperationInPhase"
> DEBUG Phase:invoke - Checking post-conditions for phase "OperationInPhase"
> DEBUG Phase:invoke - Checking pre-condition for Phase "soapmonitorPhase"
> DEBUG Phase:invoke - Invoking phase "soapmonitorPhase"
> DEBUG Phase:invoke - Checking post-conditions for phase "soapmonitorPhase"
> DEBUG Phase:invoke - Checking pre-condition for Phase
> "ManagerInterceptorPhase"
> DEBUG Phase:invoke - Invoking phase "ManagerInterceptorPhase"
> DEBUG Phase:invoke - Invoking Handler 'InFlowManagerHandler' in Phase
> 'ManagerInterceptorPhase'
> ERROR AxisServlet:doPost - java.lang.NullPointerException
> DEBUG AddressingHelper:isFaultRedirected - isReplyRedirected: FaultTo is
> null. Returning isReplyRedirected
> DEBUG AddressingHelper:isReplyRedirected - isReplyRedirected: ReplyTo is
> null. Returning false
> DEBUG Phase:invoke - Checking pre-condition for Phase "MessageOut"
> DEBUG Phase:invoke - Invoking phase "MessageOut"
> DEBUG Phase:invoke - Invoking Handler 'AddressingOutHandler' in Phase
> 'MessageOut'
> DEBUG EndpointReferenceHelper:toOM - toOM: Factory,
> org.apache.axiom.soap.impl.llom.soap12.SOAP12Factory@6de609
> DEBUG EndpointReferenceHelper:toOM - toOM: Endpoint reference, Address:
> http://www.w3.org/2005/08/addressing/none
> DEBUG EndpointReferenceHelper:toOM - toOM: Element qname,
> {http://www.w3.org/2005/08/addressing}ReplyTo
> DEBUG EndpointReferenceHelper:toOM - toOM: Addressing namespace,
> http://www.w3.org/2005/08/addressing
> DEBUG Phase:invoke - Checking post-conditions for phase "MessageOut"
>
>
> Any clue?
>
>
>
> Michele
>
>
> Michele Mazzucco wrote:
> > Hi all,
> >
> > I'm getting a NPE in AxisServlet and I don't know the reason.
> > Please find attached the tomcat output (axis2 is set to debug) and the
> > custom handler.
> > The handler has always worked fine when the invoke method signature was
> > "void": should I change anyting (apart from the return type)?
> >
> > Any clue?
> >
> > Michele
> >
> >
> > ------------------------------------------------------------------------
> >
> > /*
> > * QoSP Project org.ncl.ac.uk.qosp.modules.manager.RouterDispatcher.java Created
> > * on 02-Jun-2006, 12:02:14
> > */
> > package ncl.qosp.modules.manager;
> >
> > import java.util.Iterator;
> >
> > import javax.xml.namespace.QName;
> >
> > import ncl.qosp.core.MessageType;
> > import ncl.qosp.core.RoutingConstants;
> > import ncl.qosp.core.SOAPConstants;
> > import ncl.qosp.core.SOAPHeaderConstants;
> > import ncl.qosp.utils.FileUtils;
> >
> > import org.apache.axiom.om.OMException;
> > import org.apache.axiom.soap.SOAPHeader;
> > import org.apache.axiom.soap.SOAPHeaderBlock;
> > import org.apache.axis2.AxisFault;
> > import org.apache.axis2.addressing.AddressingConstants;
> > import org.apache.axis2.addressing.EndpointReference;
> > import org.apache.axis2.context.MessageContext;
> > import org.apache.axis2.description.AxisOperation;
> > import org.apache.axis2.description.AxisService;
> > import org.apache.axis2.description.HandlerDescription;
> > import org.apache.axis2.engine.AbstractDispatcher;
> > import org.apache.axis2.engine.AxisConfiguration;
> > import org.apache.axis2.util.Utils;
> > import org.apache.log4j.Level;
> > import org.apache.log4j.Logger;
> >
> > /**
> > * Dispatches the client request to the manager service. All the core
> > * informations, that is target service and target method, are saved into the
> > * {@link org.apache.axis2.context.MessageContext} options.
> > * <p>
> > * This handler replaces the
> > * {@link org.apache.axis2.engine.RequestURIBasedDispatcher} handler in the
> > * incoming chain (transport phase).
> > * <p>
> > * To get the target WS addressing action mapping the SOAP header is parsed.
> > *
> > * @author <a href="mailto:Michele.Mazzucco@ncl.ac.uk">Michele Mazzucco</a>
> > * @version 0.2
> > * @since 0.1
> > * @see "$AXIS2_HOME/webapps/axis2/WEB-INF/conf/axis2.xml"
> > */
> > public class RouterDispatcher extends AbstractDispatcher {
> >
> > // ///////////////////////////////////////////////////////////////////
> > // Constants
> > // ///////////////////////////////////////////////////////////////////
> >
> > /**
> > * The dispatcher's name.
> > *
> > * @see #initDispatcher()
> > */
> > private static final String DISPATCHER_NAME = "RouterDispatcher";
> >
> > /**
> > *
> > */
> > private static final QName WSA_ACTION = new QName(
> > AddressingConstants.WSA_ACTION);
> >
> > // ///////////////////////////////////////////////////////////////////
> > // Logger
> > // ///////////////////////////////////////////////////////////////////
> >
> > /** Logger. */
> > private static Logger log;
> >
> > static {
> > log = Logger.getLogger(RouterDispatcher.class);
> > }
> >
> > // ///////////////////////////////////////////////////////////////////
> > // Fields
> > // ///////////////////////////////////////////////////////////////////
> >
> > /** The target operation. */
> > private String targetOperationName;
> >
> > /** The target service. */
> > private String targetServiceName;
> >
> > /** Message arrival time. */
> > private long arrivalTime;
> >
> >
> > // ///////////////////////////////////////////////////////////////////
> > // Methods from AbstractDispatcher
> > // ///////////////////////////////////////////////////////////////////
> >
> > // The findOperation and findService are very similar to the ones
> > // implemented
> > // in RequestURIBasedDispatcher
> >
> > /*
> > * @see org.apache.axis2.engine.AbstractDispatcher#findOperation(org.apache.axis2.description.AxisService,
> > * org.apache.axis2.context.MessageContext)
> > */
> > @Override
> > public AxisOperation findOperation(AxisService service,
> > MessageContext messageContext) {
> > /*
> > * if (log.isDebugEnabled()) { log.debug("Trying to find the required
> > * operation"); }
> > */
> >
> > AxisOperation result = null;
> >
> > EndpointReference toEPR = messageContext.getTo();
> > if ((toEPR != null) && (targetOperationName == null)) {
> > String filePart = toEPR.getAddress();
> > String[] values = Utils.parseRequestURLForServiceAndOperation(
> > filePart, messageContext.getConfigurationContext()
> > .getServicePath());
> >
> > // The previous call returns an array of lenght 2, where values[1]
> > // holds the operation name
> > if ((values[1] != null) && (values[1].length() > 0)) {
> > targetOperationName = values[1];
> > }
> > }
> >
> > result = service.getOperation(RoutingConstants.FORWARD_OPERATION_NAME);
> >
> > return result;
> > } // -- findOperation()
> >
> >
> > /*
> > * @see org.apache.axis2.engine.AbstractDispatcher#findService(org.apache.axis2.context.MessageContext)
> > */
> > @Override
> > public AxisService findService(MessageContext messageContext)
> > throws AxisFault {
> >
> > AxisService result = null;
> > EndpointReference toEPR = messageContext.getTo();
> >
> > if (toEPR != null) {
> > String address = toEPR.getAddress();
> >
> > // Returns a 2 values array
> > String[] values = Utils.parseRequestURLForServiceAndOperation(
> > address, messageContext.getConfigurationContext()
> > .getServicePath());
> >
> > if ((values[1] != null) && (values[1].length() > 0)) {
> > targetOperationName = values[1];
> > }
> > if ((values[0] != null) && (values[0].length() > 0)) {
> > targetServiceName = values[0];
> > /*
> > * if (log.isDebugEnabled()) { log.debug("Target service is [" +
> > * targetServiceName + "]"); }
> > */
> >
> > AxisConfiguration registry = messageContext
> > .getConfigurationContext().getAxisConfiguration();
> >
> > /*
> > * If the target service is 'version', allow the request to pass
> > * through
> > */
> > if (targetServiceName.equalsIgnoreCase("version")) {
> > result = registry.getService(targetServiceName);
> > } else {
> > // Forwards the request to the 'RoutingService' service
> > result = registry
> > .getService(RoutingConstants.FORWARD_SERVICE_NAME);
> > }
> > }
> > }
> >
> > return result;
> >
> > } // -- findService()
> >
> >
> > /*
> > * @see org.apache.axis2.engine.AbstractDispatcher#initDispatcher()
> > */
> > @Override
> > public void initDispatcher() {
> > init(new HandlerDescription(DISPATCHER_NAME));
> > }
> >
> >
> > /*
> > * @see org.apache.axis2.engine.AbstractDispatcher#invoke(org.apache.axis2.context.MessageContext)
> > */
> > @Override
> > public InvocationResponse invoke(MessageContext messageContext)
> > throws AxisFault {
> >
> > log.info("Handler invoked");
> > try {
> > SOAPHeader header = messageContext.getEnvelope().getHeader();
> > String messageType = SOAPHeaderConstants.getQospMessage(header);
> >
> > if (messageType != null) {
> > if (log.isDebugEnabled()) {
> > log.debug("Internal message [" + messageType + "]");
> > }
> >
> > if (messageType.equalsIgnoreCase(MessageType.RESULT.value())) {
> > removeRelatesTo(messageContext.getEnvelope().getHeader());
> > if (log.isDebugEnabled()) {
> > log
> > .debug("Response message (removed the RelatesTo header)");
> > }
> > }
> >
> > } else {
> > if (log.isDebugEnabled()) {
> > log.debug("Received client request");
> > }
> >
> > clientRequest(messageContext);
> > }
> > } catch (OMException e) {
> > if (log.isEnabledFor(Level.ERROR)) {
> > log.error(FileUtils.getNow()
> > + ": unable to get the SOAP header: "
> > + e.getLocalizedMessage());
> > }
> > throw new AxisFault(e);
> > }
> >
> > return InvocationResponse.CONTINUE;
> >
> > } // -- invoke()
> >
> >
> > // ///////////////////////////////////////////////////////////////////
> > // Private methods
> > // ///////////////////////////////////////////////////////////////////
> >
> > /**
> > * Removes the {@link AddressingConstants#WSA_RELATES_TO} element from the
> > * SOAP header. This is needed because the result receiver is different from
> > * the requestor.
> > *
> > * @param header The SOAP header message without the 'RelatesTo' element.
> > */
> > @SuppressWarnings("unchecked")
> > private final void removeRelatesTo(SOAPHeader header) {
> > for (Iterator<SOAPHeaderBlock> i = header.examineAllHeaderBlocks(); i
> > .hasNext();) {
> > SOAPHeaderBlock tmp = i.next();
> >
> > if (tmp.getLocalName().equalsIgnoreCase(
> > AddressingConstants.WSA_RELATES_TO)) {
> > tmp.detach();
> >
> > if (log.isDebugEnabled()) {
> > log.debug("Removed 'RelatesTo'");
> > }
> > break;
> > }
> > }
> > } // -- removeRelatesTo()
> >
> >
> > /**
> > * Handler client requests.
> > *
> > * @param messageContext The message context.
> > * @throws AxisFault If an error occurs.
> > */
> > private final void clientRequest(MessageContext messageContext)
> > throws AxisFault {
> > // Gets the arrival timestamp
> > this.arrivalTime = System.currentTimeMillis();
> >
> > AxisService axisService = messageContext.getAxisService();
> >
> > if (axisService == null) {
> > axisService = findService(messageContext);
> >
> > if (axisService != null) {
> > if (log.isInfoEnabled()) {
> > log.info("Target service: " + axisService.getName());
> > }
> > messageContext.setAxisService(axisService);
> >
> > if (log.isInfoEnabled()) {
> > log.info("Message to: " + axisService.getEndpoint().toString());
> > }
> > }
> > }
> >
> > if ((messageContext.getAxisService() != null)
> > && (messageContext.getAxisOperation() == null)) {
> > AxisOperation axisOperation = null;
> >
> > axisOperation = findOperation(axisService, messageContext);
> >
> > if (axisOperation != null) {/*
> > * if (log.isInfoEnabled()) {
> > * log.info("Operation set to [" +
> > * axisOperation.getName().getLocalPart() +
> > * "]"); }
> > */
> >
> > messageContext.setAxisOperation(axisOperation);
> > }
> > }
> >
> > saveTargetService(messageContext);
> > saveTargetOperation(messageContext);
> > // saveTargetAction(messageContext);
> >
> > // Gets the action mapping
> > String soapAction = messageContext.getSoapAction();
> > if ((soapAction == null) || (soapAction.length() == 0)) {
> > try {
> > /*
> > * If the message context does not contain the soap action try
> > * to get it from the SOAP header
> > */
> > SOAPHeader header = messageContext.getEnvelope().getHeader();
> > soapAction = header.getFirstChildWithName(WSA_ACTION).getText();
> > // extractWSASoapAction(header.toString());
> > } catch (OMException e) {
> > if (log.isEnabledFor(Level.ERROR)) {
> > log.error(FileUtils.getNow()
> > + ": unable to get the SOAP header: "
> > + e.getLocalizedMessage());
> > }
> > throw new AxisFault(e);
> > }
> > }
> > messageContext.getOptions().setProperty(
> > RoutingConstants.TARGET_ACTION_MAPPING, soapAction);
> >
> > // Saves the arrival time stamp
> > saveArrivalTime(messageContext);
> > } // -- clientRequest()
> >
> >
> > /**
> > * Saves the arrival time stamp.
> > *
> > * @param messageContext The message context.
> > */
> > private final void saveArrivalTime(MessageContext messageContext) {
> > messageContext.getOptions().setProperty(SOAPConstants.REQ_ARRIVAL_TIME,
> > this.arrivalTime);
> > } // -- saveArrivalTime()
> >
> >
> > /**
> > * Saves the target service as {@link RoutingConstants#TARGET_SERVICE}
> > * message property.
> > *
> > * @param messageContext The message context.
> > */
> > private final void saveTargetService(final MessageContext messageContext) {
> > messageContext.getOptions().setProperty(
> > RoutingConstants.TARGET_SERVICE, targetServiceName);
> > } // -- saveTargetService()
> >
> >
> > /**
> > * Saves the target operation as {@link RoutingConstants#TARGET_OPERATION}
> > * message property.
> > *
> > * @param messageContext The message context.
> > */
> > private final void saveTargetOperation(final MessageContext messageContext) {
> > if ((targetOperationName != null) && (targetOperationName.length() > 0)) {
> > messageContext.getOptions().setProperty(
> > RoutingConstants.TARGET_OPERATION, targetOperationName);
> > }
> > } // -- saveTargetOperation()
> >
> > } // END RouterDispatcher
> >
> >
> > ------------------------------------------------------------------------
> >
> > 2006-11-08 15:08:54,044 [org.apache.axis2.deployment.DeploymentEngine] - Deploying Web service RoutingService.aar
> > 2006-11-08 15:08:54,090 [org.apache.axis2.deployment.DeploymentEngine] - Deploying Web service version.aar
> > 2006-11-08 15:12:10,471 [org.apache.axis2.transport.http.AxisServlet] - java.lang.NullPointerException
> > 2006-11-08 15:17:59,644 [org.apache.axis2.engine.Phase] - Handler AddressingFinalInHandler added to Phase PreDispatch
> > 2006-11-08 15:17:59,644 [org.apache.axis2.engine.Phase] - Handler AddressingSubmissionInHandler added to Phase PreDispatch
> > 2006-11-08 15:17:59,644 [org.apache.axis2.engine.Phase] - Handler AddressingOutHandler added to Phase MessageOut
> > 2006-11-08 15:17:59,644 [org.apache.axis2.engine.Phase] - Handler AddressingFinalInHandler added to Phase PreDispatch
> > 2006-11-08 15:17:59,644 [org.apache.axis2.engine.Phase] - Handler AddressingSubmissionInHandler added to Phase PreDispatch
> > 2006-11-08 15:17:59,644 [org.apache.axis2.engine.Phase] - Handler AddressingOutHandler added to Phase MessageOut
> > 2006-11-08 15:17:59,644 [org.apache.axis2.engine.Phase] - Handler InFlowManagerHandler added to Phase ManagerInterceptorPhase
> > 2006-11-08 15:17:59,691 [org.apache.axis2.i18n.ProjectResourceBundle] - org.apache.axis2.i18n.resource::handleGetObject(deployingws)
> > 2006-11-08 15:17:59,691 [org.apache.axis2.deployment.DeploymentEngine] - Deploying Web service RoutingService.aar
> > 2006-11-08 15:17:59,753 [org.apache.axis2.i18n.ProjectResourceBundle] - org.apache.axis2.i18n.resource::handleGetObject(deployingws)
> > 2006-11-08 15:17:59,753 [org.apache.axis2.deployment.DeploymentEngine] - Deploying Web service version.aar
> > 2006-11-08 15:17:59,753 [org.apache.axis2.deployment.WarBasedAxisConfigurator] - loaded services from webapp
> > 2006-11-08 15:18:10,189 [org.apache.axis2.engine.Phase] - Checking pre-condition for Phase "ManagerInterceptorPhase"
> > 2006-11-08 15:18:10,189 [org.apache.axis2.engine.Phase] - Invoking phase "ManagerInterceptorPhase"
> > 2006-11-08 15:18:10,189 [org.apache.axis2.engine.Phase] - Invoking Handler 'InFlowManagerHandler' in Phase 'ManagerInterceptorPhase'
> > 2006-11-08 15:18:10,205 [org.apache.axis2.engine.Phase] - Checking post-conditions for phase "ManagerInterceptorPhase"
> > 2006-11-08 15:18:10,205 [org.apache.axis2.engine.Phase] - Checking pre-condition for Phase "Transport"
> > 2006-11-08 15:18:10,205 [org.apache.axis2.engine.Phase] - Invoking phase "Transport"
> > 2006-11-08 15:18:10,205 [org.apache.axis2.engine.Phase] - Invoking Handler 'SOAPActionBasedDispatcher' in Phase 'Transport'
> > 2006-11-08 15:18:10,205 [org.apache.axis2.engine.SOAPActionBasedDispatcher] - Checking for Service using SOAPAction is a TODO item
> > 2006-11-08 15:18:10,205 [org.apache.axis2.engine.Phase] - Checking post-conditions for phase "Transport"
> > 2006-11-08 15:18:10,221 [org.apache.axis2.engine.Phase] - Checking pre-condition for Phase "Security"
> > 2006-11-08 15:18:10,221 [org.apache.axis2.engine.Phase] - Invoking phase "Security"
> > 2006-11-08 15:18:10,221 [org.apache.axis2.engine.Phase] - Checking post-conditions for phase "Security"
> > 2006-11-08 15:18:10,221 [org.apache.axis2.engine.Phase] - Checking pre-condition for Phase "PreDispatch"
> > 2006-11-08 15:18:10,221 [org.apache.axis2.engine.Phase] - Invoking phase "PreDispatch"
> > 2006-11-08 15:18:10,221 [org.apache.axis2.engine.Phase] - Invoking Handler 'AddressingFinalInHandler' in Phase 'PreDispatch'
> > 2006-11-08 15:18:10,221 [org.apache.axis2.handlers.addressing.AddressingInHandler] - Starting WS-Addressing Final IN handler ...
> > 2006-11-08 15:18:10,221 [org.apache.axis2.handlers.addressing.AddressingInHandler] - No Headers present corresponding to WS-Addressing Final
> > 2006-11-08 15:18:10,221 [org.apache.axis2.engine.Phase] - Invoking Handler 'AddressingSubmissionInHandler' in Phase 'PreDispatch'
> > 2006-11-08 15:18:10,221 [org.apache.axis2.handlers.addressing.AddressingInHandler] - Starting WS-Addressing Submission IN handler ...
> > 2006-11-08 15:18:10,221 [org.apache.axis2.handlers.addressing.AddressingInHandler] - No Headers present corresponding to WS-Addressing Submission
> > 2006-11-08 15:18:10,221 [org.apache.axis2.engine.Phase] - Checking post-conditions for phase "PreDispatch"
> > 2006-11-08 15:18:10,221 [org.apache.axis2.engine.Phase] - Checking pre-condition for Phase "Dispatch"
> > 2006-11-08 15:18:10,236 [org.apache.axis2.engine.Phase] - Invoking phase "Dispatch"
> > 2006-11-08 15:18:10,236 [org.apache.axis2.engine.Phase] - Invoking Handler 'AddressingBasedDispatcher' in Phase 'Dispatch'
> > 2006-11-08 15:18:10,236 [org.apache.axis2.i18n.ProjectResourceBundle] - org.apache.axis2.i18n.resource::handleGetObject(checkingserviceforepr)
> > 2006-11-08 15:18:10,236 [org.apache.axis2.engine.AddressingBasedDispatcher] - Checking for Service using toEPRs address : {0}
> > 2006-11-08 15:18:10,236 [org.apache.axis2.i18n.ProjectResourceBundle] - org.apache.axis2.i18n.resource::handleGetObject(checkingserviceforepr)
> > 2006-11-08 15:18:10,236 [org.apache.axis2.engine.AddressingBasedDispatcher] - Checking for Service using toEPRs address : {0}
> > 2006-11-08 15:18:10,236 [org.apache.axis2.i18n.ProjectResourceBundle] - org.apache.axis2.i18n.resource::handleGetObject(servicefound)
> > 2006-11-08 15:18:10,236 [org.apache.axis2.engine.AbstractDispatcher] - Found AxisService : RoutingService
> > 2006-11-08 15:18:10,236 [org.apache.axis2.i18n.ProjectResourceBundle] - org.apache.axis2.i18n.resource::handleGetObject(checkingoperation)
> > 2006-11-08 15:18:10,236 [org.apache.axis2.engine.AddressingBasedDispatcher] - Checking for Operation using WSAAction : urn:addNode
> > 2006-11-08 15:18:10,236 [org.apache.axis2.i18n.ProjectResourceBundle] - org.apache.axis2.i18n.resource::handleGetObject(operationfound)
> > 2006-11-08 15:18:10,236 [org.apache.axis2.engine.AbstractDispatcher] - Found AxisOperation : addNode
> > 2006-11-08 15:18:10,252 [org.apache.axis2.engine.Phase] - Invoking Handler 'SOAPMessageBodyBasedDispatcher' in Phase 'Dispatch'
> > 2006-11-08 15:18:10,252 [org.apache.axis2.engine.Phase] - Invoking Handler 'InstanceDispatcher' in Phase 'Dispatch'
> > 2006-11-08 15:18:10,252 [org.apache.axis2.engine.Phase] - Invoking Handler 'AddressingWSDLValidationHandler' in Phase 'Dispatch'
> > 2006-11-08 15:18:10,252 [org.apache.axis2.engine.Phase] - Checking post-conditions for phase "Dispatch"
> > 2006-11-08 15:18:10,252 [org.apache.axis2.engine.Phase] - Checking pre-condition for Phase "OperationInPhase"
> > 2006-11-08 15:18:10,252 [org.apache.axis2.engine.Phase] - Invoking phase "OperationInPhase"
> > 2006-11-08 15:18:10,252 [org.apache.axis2.engine.Phase] - Checking post-conditions for phase "OperationInPhase"
> > 2006-11-08 15:18:10,252 [org.apache.axis2.engine.Phase] - Checking pre-condition for Phase "soapmonitorPhase"
> > 2006-11-08 15:18:10,252 [org.apache.axis2.engine.Phase] - Invoking phase "soapmonitorPhase"
> > 2006-11-08 15:18:10,252 [org.apache.axis2.engine.Phase] - Checking post-conditions for phase "soapmonitorPhase"
> > 2006-11-08 15:18:10,283 [org.apache.axis2.i18n.ProjectResourceBundle] - org.apache.axis2.i18n.resource::handleGetObject(methodDoesNotExistInOut)
> > 2006-11-08 15:18:10,283 [org.apache.axis2.transport.http.AxisServlet] - org.apache.axis2.AxisFault: ServiceClass does not implement required method of the form OMElement addNode(OMElement e)
> > 2006-11-08 15:18:10,283 [org.apache.axis2.addressing.AddressingHelper] - isReplyRedirected: FaultTo is null. Returning isReplyRedirected
> > 2006-11-08 15:18:10,283 [org.apache.axis2.addressing.AddressingHelper] - isReplyRedirected: ReplyTo is null. Returning false
> > 2006-11-08 15:18:10,299 [org.apache.axis2.engine.Phase] - Checking pre-condition for Phase "soapmonitorPhase"
> > 2006-11-08 15:18:10,314 [org.apache.axis2.engine.Phase] - Invoking phase "soapmonitorPhase"
> > 2006-11-08 15:18:10,314 [org.apache.axis2.engine.Phase] - Checking post-conditions for phase "soapmonitorPhase"
> > 2006-11-08 15:18:10,314 [org.apache.axis2.engine.Phase] - Checking pre-condition for Phase "OperationOutFaultPhase"
> > 2006-11-08 15:18:10,314 [org.apache.axis2.engine.Phase] - Invoking phase "OperationOutFaultPhase"
> > 2006-11-08 15:18:10,314 [org.apache.axis2.engine.Phase] - Checking post-conditions for phase "OperationOutFaultPhase"
> > 2006-11-08 15:18:10,314 [org.apache.axis2.engine.Phase] - Checking pre-condition for Phase "PolicyDetermination"
> > 2006-11-08 15:18:10,314 [org.apache.axis2.engine.Phase] - Invoking phase "PolicyDetermination"
> > 2006-11-08 15:18:10,314 [org.apache.axis2.engine.Phase] - Checking post-conditions for phase "PolicyDetermination"
> > 2006-11-08 15:18:10,314 [org.apache.axis2.engine.Phase] - Checking pre-condition for Phase "MessageOut"
> > 2006-11-08 15:18:10,314 [org.apache.axis2.engine.Phase] - Invoking phase "MessageOut"
> > 2006-11-08 15:18:10,314 [org.apache.axis2.engine.Phase] - Invoking Handler 'AddressingOutHandler' in Phase 'MessageOut'
> > 2006-11-08 15:18:10,314 [org.apache.axis2.handlers.addressing.AddressingHandler] - Addressing is disabled .....
> > 2006-11-08 15:18:10,314 [org.apache.axis2.engine.Phase] - Checking post-conditions for phase "MessageOut"
> > 2006-11-08 15:18:20,891 [org.apache.axis2.engine.Phase] - Checking pre-condition for Phase "ManagerInterceptorPhase"
> > 2006-11-08 15:18:20,891 [org.apache.axis2.engine.Phase] - Invoking phase "ManagerInterceptorPhase"
> > 2006-11-08 15:18:20,891 [org.apache.axis2.engine.Phase] - Invoking Handler 'InFlowManagerHandler' in Phase 'ManagerInterceptorPhase'
> > 2006-11-08 15:18:20,891 [org.apache.axis2.engine.Phase] - Checking post-conditions for phase "ManagerInterceptorPhase"
> > 2006-11-08 15:18:20,891 [org.apache.axis2.engine.Phase] - Checking pre-condition for Phase "Transport"
> > 2006-11-08 15:18:20,907 [org.apache.axis2.engine.Phase] - Invoking phase "Transport"
> > 2006-11-08 15:18:20,907 [org.apache.axis2.engine.Phase] - Invoking Handler 'SOAPActionBasedDispatcher' in Phase 'Transport'
> > 2006-11-08 15:18:20,907 [org.apache.axis2.engine.SOAPActionBasedDispatcher] - Checking for Service using SOAPAction is a TODO item
> > 2006-11-08 15:18:20,907 [org.apache.axis2.engine.Phase] - Checking post-conditions for phase "Transport"
> > 2006-11-08 15:18:20,907 [org.apache.axis2.engine.Phase] - Checking pre-condition for Phase "Security"
> > 2006-11-08 15:18:20,907 [org.apache.axis2.engine.Phase] - Invoking phase "Security"
> > 2006-11-08 15:18:20,907 [org.apache.axis2.engine.Phase] - Checking post-conditions for phase "Security"
> > 2006-11-08 15:18:20,907 [org.apache.axis2.engine.Phase] - Checking pre-condition for Phase "PreDispatch"
> > 2006-11-08 15:18:20,907 [org.apache.axis2.engine.Phase] - Invoking phase "PreDispatch"
> > 2006-11-08 15:18:20,907 [org.apache.axis2.engine.Phase] - Invoking Handler 'AddressingFinalInHandler' in Phase 'PreDispatch'
> > 2006-11-08 15:18:20,907 [org.apache.axis2.handlers.addressing.AddressingInHandler] - Starting WS-Addressing Final IN handler ...
> > 2006-11-08 15:18:20,907 [org.apache.axis2.handlers.addressing.AddressingInHandler] - No Headers present corresponding to WS-Addressing Final
> > 2006-11-08 15:18:20,907 [org.apache.axis2.engine.Phase] - Invoking Handler 'AddressingSubmissionInHandler' in Phase 'PreDispatch'
> > 2006-11-08 15:18:20,907 [org.apache.axis2.handlers.addressing.AddressingInHandler] - Starting WS-Addressing Submission IN handler ...
> > 2006-11-08 15:18:20,907 [org.apache.axis2.handlers.addressing.AddressingInHandler] - No Headers present corresponding to WS-Addressing Submission
> > 2006-11-08 15:18:20,922 [org.apache.axis2.engine.Phase] - Checking post-conditions for phase "PreDispatch"
> > 2006-11-08 15:18:20,922 [org.apache.axis2.engine.Phase] - Checking pre-condition for Phase "Dispatch"
> > 2006-11-08 15:18:20,922 [org.apache.axis2.engine.Phase] - Invoking phase "Dispatch"
> > 2006-11-08 15:18:20,922 [org.apache.axis2.engine.Phase] - Invoking Handler 'AddressingBasedDispatcher' in Phase 'Dispatch'
> > 2006-11-08 15:18:20,922 [org.apache.axis2.i18n.ProjectResourceBundle] - org.apache.axis2.i18n.resource::handleGetObject(checkingserviceforepr)
> > 2006-11-08 15:18:20,922 [org.apache.axis2.engine.AddressingBasedDispatcher] - Checking for Service using toEPRs address : {0}
> > 2006-11-08 15:18:20,922 [org.apache.axis2.i18n.ProjectResourceBundle] - org.apache.axis2.i18n.resource::handleGetObject(checkingserviceforepr)
> > 2006-11-08 15:18:20,922 [org.apache.axis2.engine.AddressingBasedDispatcher] - Checking for Service using toEPRs address : {0}
> > 2006-11-08 15:18:20,922 [org.apache.axis2.i18n.ProjectResourceBundle] - org.apache.axis2.i18n.resource::handleGetObject(servicefound)
> > 2006-11-08 15:18:20,922 [org.apache.axis2.engine.AbstractDispatcher] - Found AxisService : RoutingService
> > 2006-11-08 15:18:20,922 [org.apache.axis2.i18n.ProjectResourceBundle] - org.apache.axis2.i18n.resource::handleGetObject(checkingoperation)
> > 2006-11-08 15:18:20,922 [org.apache.axis2.engine.AddressingBasedDispatcher] - Checking for Operation using WSAAction : urn:addService
> > 2006-11-08 15:18:20,922 [org.apache.axis2.i18n.ProjectResourceBundle] - org.apache.axis2.i18n.resource::handleGetObject(operationfound)
> > 2006-11-08 15:18:20,938 [org.apache.axis2.engine.AbstractDispatcher] - Found AxisOperation : addService
> > 2006-11-08 15:18:20,938 [org.apache.axis2.engine.Phase] - Invoking Handler 'SOAPMessageBodyBasedDispatcher' in Phase 'Dispatch'
> > 2006-11-08 15:18:20,938 [org.apache.axis2.engine.Phase] - Invoking Handler 'InstanceDispatcher' in Phase 'Dispatch'
> > 2006-11-08 15:18:20,938 [org.apache.axis2.engine.Phase] - Invoking Handler 'AddressingWSDLValidationHandler' in Phase 'Dispatch'
> > 2006-11-08 15:18:20,938 [org.apache.axis2.engine.Phase] - Checking post-conditions for phase "Dispatch"
> > 2006-11-08 15:18:20,938 [org.apache.axis2.engine.Phase] - Checking pre-condition for Phase "OperationInPhase"
> > 2006-11-08 15:18:20,938 [org.apache.axis2.engine.Phase] - Invoking phase "OperationInPhase"
> > 2006-11-08 15:18:20,938 [org.apache.axis2.engine.Phase] - Checking post-conditions for phase "OperationInPhase"
> > 2006-11-08 15:18:20,938 [org.apache.axis2.engine.Phase] - Checking pre-condition for Phase "soapmonitorPhase"
> > 2006-11-08 15:18:20,938 [org.apache.axis2.engine.Phase] - Invoking phase "soapmonitorPhase"
> > 2006-11-08 15:18:20,938 [org.apache.axis2.engine.Phase] - Checking post-conditions for phase "soapmonitorPhase"
> > 2006-11-08 15:18:20,938 [org.apache.axis2.i18n.ProjectResourceBundle] - org.apache.axis2.i18n.resource::handleGetObject(methodDoesNotExistInOut)
> > 2006-11-08 15:18:20,954 [org.apache.axis2.transport.http.AxisServlet] - org.apache.axis2.AxisFault: ServiceClass does not implement required method of the form OMElement addService(OMElement e)
> > 2006-11-08 15:18:20,954 [org.apache.axis2.addressing.AddressingHelper] - isReplyRedirected: FaultTo is null. Returning isReplyRedirected
> > 2006-11-08 15:18:20,954 [org.apache.axis2.addressing.AddressingHelper] - isReplyRedirected: ReplyTo is null. Returning false
> > 2006-11-08 15:18:20,954 [org.apache.axis2.engine.Phase] - Checking pre-condition for Phase "soapmonitorPhase"
> > 2006-11-08 15:18:20,954 [org.apache.axis2.engine.Phase] - Invoking phase "soapmonitorPhase"
> > 2006-11-08 15:18:20,954 [org.apache.axis2.engine.Phase] - Checking post-conditions for phase "soapmonitorPhase"
> > 2006-11-08 15:18:20,954 [org.apache.axis2.engine.Phase] - Checking pre-condition for Phase "OperationOutFaultPhase"
> > 2006-11-08 15:18:20,954 [org.apache.axis2.engine.Phase] - Invoking phase "OperationOutFaultPhase"
> > 2006-11-08 15:18:20,954 [org.apache.axis2.engine.Phase] - Checking post-conditions for phase "OperationOutFaultPhase"
> > 2006-11-08 15:18:20,954 [org.apache.axis2.engine.Phase] - Checking pre-condition for Phase "PolicyDetermination"
> > 2006-11-08 15:18:20,954 [org.apache.axis2.engine.Phase] - Invoking phase "PolicyDetermination"
> > 2006-11-08 15:18:20,954 [org.apache.axis2.engine.Phase] - Checking post-conditions for phase "PolicyDetermination"
> > 2006-11-08 15:18:20,969 [org.apache.axis2.engine.Phase] - Checking pre-condition for Phase "MessageOut"
> > 2006-11-08 15:18:20,969 [org.apache.axis2.engine.Phase] - Invoking phase "MessageOut"
> > 2006-11-08 15:18:20,969 [org.apache.axis2.engine.Phase] - Invoking Handler 'AddressingOutHandler' in Phase 'MessageOut'
> > 2006-11-08 15:18:20,969 [org.apache.axis2.handlers.addressing.AddressingHandler] - Addressing is disabled .....
> > 2006-11-08 15:18:20,969 [org.apache.axis2.engine.Phase] - Checking post-conditions for phase "MessageOut"
> > 2006-11-08 15:18:38,404 [org.apache.axis2.engine.Phase] - Checking pre-condition for Phase "ManagerInterceptorPhase"
> > 2006-11-08 15:18:38,404 [org.apache.axis2.engine.Phase] - Invoking phase "ManagerInterceptorPhase"
> > 2006-11-08 15:18:38,404 [org.apache.axis2.engine.Phase] - Invoking Handler 'InFlowManagerHandler' in Phase 'ManagerInterceptorPhase'
> > 2006-11-08 15:18:38,420 [org.apache.axis2.transport.http.AxisServlet] - java.lang.NullPointerException
> > 2006-11-08 15:18:38,420 [org.apache.axis2.addressing.AddressingHelper] - isReplyRedirected: FaultTo is null. Returning isReplyRedirected
> > 2006-11-08 15:18:38,420 [org.apache.axis2.addressing.AddressingHelper] - isReplyRedirected: ReplyTo is null. Returning false
> > 2006-11-08 15:18:38,420 [org.apache.axis2.engine.Phase] - Checking pre-condition for Phase "MessageOut"
> > 2006-11-08 15:18:38,420 [org.apache.axis2.engine.Phase] - Invoking phase "MessageOut"
> > 2006-11-08 15:18:38,420 [org.apache.axis2.engine.Phase] - Invoking Handler 'AddressingOutHandler' in Phase 'MessageOut'
> > 2006-11-08 15:18:38,420 [org.apache.axis2.addressing.EndpointReferenceHelper] - toOM: Factory, org.apache.axiom.soap.impl.llom.soap12.SOAP12Factory@98bbf6
> > 2006-11-08 15:18:38,420 [org.apache.axis2.addressing.EndpointReferenceHelper] - toOM: Endpoint reference, Address: http://www.w3.org/2005/08/addressing/none
> > 2006-11-08 15:18:38,420 [org.apache.axis2.addressing.EndpointReferenceHelper] - toOM: Element qname, {http://www.w3.org/2005/08/addressing}ReplyTo
> > 2006-11-08 15:18:38,436 [org.apache.axis2.addressing.EndpointReferenceHelper] - toOM: Addressing namespace, http://www.w3.org/2005/08/addressing
> > 2006-11-08 15:18:38,436 [org.apache.axis2.engine.Phase] - Checking post-conditions for phase "MessageOut"
> > 2006-11-08 15:24:31,935 [org.apache.axis2.engine.Phase] - Checking pre-condition for Phase "ManagerInterceptorPhase"
> > 2006-11-08 15:24:31,935 [org.apache.axis2.engine.Phase] - Invoking phase "ManagerInterceptorPhase"
> > 2006-11-08 15:24:31,935 [org.apache.axis2.engine.Phase] - Invoking Handler 'InFlowManagerHandler' in Phase 'ManagerInterceptorPhase'
> > 2006-11-08 15:24:31,935 [org.apache.axis2.transport.http.AxisServlet] - java.lang.NullPointerException
> > 2006-11-08 15:24:31,935 [org.apache.axis2.addressing.AddressingHelper] - isReplyRedirected: FaultTo is null. Returning isReplyRedirected
> > 2006-11-08 15:24:31,935 [org.apache.axis2.addressing.AddressingHelper] - isReplyRedirected: ReplyTo is null. Returning false
> > 2006-11-08 15:24:31,935 [org.apache.axis2.engine.Phase] - Checking pre-condition for Phase "MessageOut"
> > 2006-11-08 15:24:31,935 [org.apache.axis2.engine.Phase] - Invoking phase "MessageOut"
> > 2006-11-08 15:24:31,951 [org.apache.axis2.engine.Phase] - Invoking Handler 'AddressingOutHandler' in Phase 'MessageOut'
> > 2006-11-08 15:24:31,951 [org.apache.axis2.addressing.EndpointReferenceHelper] - toOM: Factory, org.apache.axiom.soap.impl.llom.soap12.SOAP12Factory@e7e8eb
> > 2006-11-08 15:24:31,951 [org.apache.axis2.addressing.EndpointReferenceHelper] - toOM: Endpoint reference, Address: http://www.w3.org/2005/08/addressing/none
> > 2006-11-08 15:24:31,951 [org.apache.axis2.addressing.EndpointReferenceHelper] - toOM: Element qname, {http://www.w3.org/2005/08/addressing}ReplyTo
> > 2006-11-08 15:24:31,951 [org.apache.axis2.addressing.EndpointReferenceHelper] - toOM: Addressing namespace, http://www.w3.org/2005/08/addressing
> > 2006-11-08 15:24:31,951 [org.apache.axis2.engine.Phase] - Checking post-conditions for phase "MessageOut"
> >
> >
> > ------------------------------------------------------------------------
> >
> > 2006-11-08 15:08:53,731 [ncl.qosp.controller.RoutingService] - Startup time is: Wed Nov 08 15:08:53 GMT 2006
> > 2006-11-08 15:08:54,106 [ncl.qosp.controller.RoutingService] - -- Constructor
> > 2006-11-08 15:08:54,184 [ncl.qosp.controller.RoutingService] - Scheduler created
> > 2006-11-08 15:08:54,184 [ncl.qosp.controller.scheduler.weighted.queue.QueueSizeScheduler] - Scheduler component started
> > 2006-11-08 15:09:08,198 [ncl.qosp.controller.LifecycleSupport] - Qosp is shutting down...
> > 2006-11-08 15:09:08,198 [ncl.qosp.controller.scheduler.weighted.queue.QueueSizeScheduler] - The timer was not running
> > 2006-11-08 15:09:08,198 [ncl.qosp.controller.scheduler.weighted.queue.QueueSizeScheduler] - Scheduler component stopped
> > 2006-11-08 15:09:08,198 [ncl.qosp.controller.LifecycleSupport] - Scheduler stopped
> > 2006-11-08 15:09:08,198 [ncl.qosp.controller.LifecycleSupport] - Scheduler unregistered from the mbean server
> > 2006-11-08 15:09:08,198 [ncl.qosp.controller.LifecycleSupport] - Connector server stopped
> > 2006-11-08 15:10:13,518 [ncl.qosp.controller.RoutingService] - Startup time is: Wed Nov 08 15:10:13 GMT 2006
> > 2006-11-08 15:10:13,908 [ncl.qosp.controller.RoutingService] - -- Constructor
> > 2006-11-08 15:10:13,971 [ncl.qosp.controller.RoutingService] - Scheduler created
> > 2006-11-08 15:10:13,971 [ncl.qosp.controller.scheduler.weighted.queue.QueueSizeScheduler] - Scheduler component started
> > 2006-11-08 15:10:41,014 [ncl.qosp.modules.manager.RouterDispatcher] - Handler invoked
> > 2006-11-08 15:10:41,030 [ncl.qosp.modules.manager.RouterDispatcher] - Internal message [New node]
> > 2006-11-08 15:11:01,183 [ncl.qosp.modules.manager.RouterDispatcher] - Handler invoked
> > 2006-11-08 15:11:01,183 [ncl.qosp.modules.manager.RouterDispatcher] - Internal message [New service]
> > 2006-11-08 15:11:31,836 [ncl.qosp.controller.scheduler.weighted.queue.QueueSizeScheduler] - Received listener request
> > 2006-11-08 15:11:31,836 [ncl.qosp.controller.scheduler.weighted.queue.QueueSizeScheduler] - Added notification listener
> > 2006-11-08 15:12:10,471 [ncl.qosp.modules.manager.RouterDispatcher] - Handler invoked
> > 2006-11-08 15:12:10,471 [ncl.qosp.modules.manager.RouterDispatcher] - Received client request
> > 2006-11-08 15:12:10,471 [ncl.qosp.modules.manager.RouterDispatcher] - Target service: RoutingService
> > 2006-11-08 15:13:50,271 [ncl.qosp.controller.LifecycleSupport] - Qosp is shutting down...
> > 2006-11-08 15:13:50,271 [ncl.qosp.controller.scheduler.weighted.queue.QueueSizeScheduler] - The timer was not running
> > 2006-11-08 15:13:50,271 [ncl.qosp.controller.scheduler.weighted.queue.QueueSizeScheduler] - Scheduler component stopped
> > 2006-11-08 15:13:50,271 [ncl.qosp.controller.LifecycleSupport] - Scheduler stopped
> > 2006-11-08 15:13:50,271 [ncl.qosp.controller.LifecycleSupport] - Scheduler unregistered from the mbean server
> > 2006-11-08 15:13:50,302 [ncl.qosp.controller.LifecycleSupport] - Connector server stopped
> > 2006-11-08 15:17:59,363 [ncl.qosp.controller.RoutingService] - Startup time is: Wed Nov 08 15:17:59 GMT 2006
> > 2006-11-08 15:17:59,769 [ncl.qosp.controller.RoutingService] - -- Constructor
> > 2006-11-08 15:17:59,831 [ncl.qosp.controller.RoutingService] - Scheduler created
> > 2006-11-08 15:17:59,847 [ncl.qosp.controller.scheduler.weighted.queue.QueueSizeScheduler] - Scheduler component started
> > 2006-11-08 15:18:10,205 [ncl.qosp.modules.manager.RouterDispatcher] - Handler invoked
> > 2006-11-08 15:18:10,205 [ncl.qosp.modules.manager.RouterDispatcher] - Internal message [New node]
> > 2006-11-08 15:18:20,891 [ncl.qosp.modules.manager.RouterDispatcher] - Handler invoked
> > 2006-11-08 15:18:20,891 [ncl.qosp.modules.manager.RouterDispatcher] - Internal message [New service]
> > 2006-11-08 15:18:38,404 [ncl.qosp.modules.manager.RouterDispatcher] - Handler invoked
> > 2006-11-08 15:18:38,404 [ncl.qosp.modules.manager.RouterDispatcher] - Received client request
> > 2006-11-08 15:18:38,404 [ncl.qosp.modules.manager.RouterDispatcher] - Target service: RoutingService
> > 2006-11-08 15:24:31,935 [ncl.qosp.modules.manager.RouterDispatcher] - Handler invoked
> > 2006-11-08 15:24:31,935 [ncl.qosp.modules.manager.RouterDispatcher] - Received client request
> > 2006-11-08 15:24:31,935 [ncl.qosp.modules.manager.RouterDispatcher] - Target service: RoutingService
> >
> >
> >
> > ------------------------------------------------------------------------
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > For additional commands, e-mail: axis-user-help@ws.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
--
Davanum Srinivas : http://www.wso2.net (Oxygen for Web Service Developers)
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: [Axis2] NullPointerException in org.apache.axis2.transport.http.AxisServlet
Posted by Michele Mazzucco <Mi...@ncl.ac.uk>.
Hi again,
I've found out a problem was due to a mis configured services.xml (the
message receiver must be declared inside each operation, it is not legal
to declare all used message receivers this way:
<messageReceivers>
<messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-only"
class="org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver"/>
<messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-out"
class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/>
</messageReceivers>
and this was the cause of:
2006-11-08 15:18:20,954 [org.apache.axis2.transport.http.AxisServlet] -
org.apache.axis2.AxisFault: ServiceClass does not implement required
method of the form OMElement addService(OMElement e)
but I still have this:
DEBUG Phase:invoke - Invoking Handler 'AddressingBasedDispatcher' in
Phase 'Dispatch'
DEBUG ProjectResourceBundle:handleGetObject -
org.apache.axis2.i18n.resource::handleGetObject(checkingserviceforepr)
DEBUG AddressingBasedDispatcher:findService - Checking for Service using
toEPRs address : {0}
DEBUG ProjectResourceBundle:handleGetObject -
org.apache.axis2.i18n.resource::handleGetObject(checkingserviceforepr)
DEBUG AddressingBasedDispatcher:findService - Checking for Service using
toEPRs address : {0}
DEBUG ProjectResourceBundle:handleGetObject -
org.apache.axis2.i18n.resource::handleGetObject(servicefound)
DEBUG AbstractDispatcher:invoke - Found AxisService : RoutingService
DEBUG ProjectResourceBundle:handleGetObject -
org.apache.axis2.i18n.resource::handleGetObject(checkingoperation)
DEBUG AddressingBasedDispatcher:findOperation - Checking for Operation
using WSAAction : urn:addNode
DEBUG ProjectResourceBundle:handleGetObject -
org.apache.axis2.i18n.resource::handleGetObject(operationfound)
DEBUG AbstractDispatcher:invoke - Found AxisOperation : addNode
DEBUG Phase:invoke - Invoking Handler 'SOAPMessageBodyBasedDispatcher'
in Phase 'Dispatch'
DEBUG Phase:invoke - Invoking Handler 'InstanceDispatcher' in Phase
'Dispatch'
DEBUG Phase:invoke - Invoking Handler 'AddressingWSDLValidationHandler'
in Phase 'Dispatch'
DEBUG Phase:invoke - Checking post-conditions for phase "Dispatch"
DEBUG Phase:invoke - Checking pre-condition for Phase "OperationInPhase"
DEBUG Phase:invoke - Invoking phase "OperationInPhase"
DEBUG Phase:invoke - Checking post-conditions for phase "OperationInPhase"
DEBUG Phase:invoke - Checking pre-condition for Phase "soapmonitorPhase"
DEBUG Phase:invoke - Invoking phase "soapmonitorPhase"
DEBUG Phase:invoke - Checking post-conditions for phase "soapmonitorPhase"
DEBUG Phase:invoke - Checking pre-condition for Phase
"ManagerInterceptorPhase"
DEBUG Phase:invoke - Invoking phase "ManagerInterceptorPhase"
DEBUG Phase:invoke - Invoking Handler 'InFlowManagerHandler' in Phase
'ManagerInterceptorPhase'
DEBUG Phase:invoke - Checking post-conditions for phase
"ManagerInterceptorPhase"
DEBUG Phase:invoke - Checking pre-condition for Phase "Transport"
DEBUG Phase:invoke - Invoking phase "Transport"
DEBUG Phase:invoke - Invoking Handler 'SOAPActionBasedDispatcher' in
Phase 'Transport'
DEBUG SOAPActionBasedDispatcher:findService - Checking for Service using
SOAPAction is a TODO item
DEBUG Phase:invoke - Checking post-conditions for phase "Transport"
DEBUG Phase:invoke - Checking pre-condition for Phase "Security"
DEBUG Phase:invoke - Invoking phase "Security"
DEBUG Phase:invoke - Checking post-conditions for phase "Security"
DEBUG Phase:invoke - Checking pre-condition for Phase "PreDispatch"
DEBUG Phase:invoke - Invoking phase "PreDispatch"
DEBUG Phase:invoke - Invoking Handler 'AddressingFinalInHandler' in
Phase 'PreDispatch'
DEBUG AddressingInHandler:invoke - Starting WS-Addressing Final IN
handler ...
DEBUG AddressingInHandler:invoke - No Headers present corresponding to
WS-Addressing Final
DEBUG Phase:invoke - Invoking Handler 'AddressingSubmissionInHandler' in
Phase 'PreDispatch'
DEBUG AddressingInHandler:invoke - Starting WS-Addressing Submission IN
handler ...
DEBUG AddressingInHandler:invoke - No Headers present corresponding to
WS-Addressing Submission
DEBUG Phase:invoke - Checking post-conditions for phase "PreDispatch"
DEBUG Phase:invoke - Checking pre-condition for Phase "Dispatch"
DEBUG Phase:invoke - Invoking phase "Dispatch"
DEBUG Phase:invoke - Invoking Handler 'AddressingBasedDispatcher' in
Phase 'Dispatch'
DEBUG ProjectResourceBundle:handleGetObject -
org.apache.axis2.i18n.resource::handleGetObject(checkingserviceforepr)
DEBUG AddressingBasedDispatcher:findService - Checking for Service using
toEPRs address : {0}
DEBUG ProjectResourceBundle:handleGetObject -
org.apache.axis2.i18n.resource::handleGetObject(checkingserviceforepr)
DEBUG AddressingBasedDispatcher:findService - Checking for Service using
toEPRs address : {0}
DEBUG ProjectResourceBundle:handleGetObject -
org.apache.axis2.i18n.resource::handleGetObject(servicefound)
DEBUG AbstractDispatcher:invoke - Found AxisService : RoutingService
DEBUG ProjectResourceBundle:handleGetObject -
org.apache.axis2.i18n.resource::handleGetObject(checkingoperation)
DEBUG AddressingBasedDispatcher:findOperation - Checking for Operation
using WSAAction : urn:addService
DEBUG ProjectResourceBundle:handleGetObject -
org.apache.axis2.i18n.resource::handleGetObject(operationfound)
DEBUG AbstractDispatcher:invoke - Found AxisOperation : addService
DEBUG Phase:invoke - Invoking Handler 'SOAPMessageBodyBasedDispatcher'
in Phase 'Dispatch'
DEBUG Phase:invoke - Invoking Handler 'InstanceDispatcher' in Phase
'Dispatch'
DEBUG Phase:invoke - Invoking Handler 'AddressingWSDLValidationHandler'
in Phase 'Dispatch'
DEBUG Phase:invoke - Checking post-conditions for phase "Dispatch"
DEBUG Phase:invoke - Checking pre-condition for Phase "OperationInPhase"
DEBUG Phase:invoke - Invoking phase "OperationInPhase"
DEBUG Phase:invoke - Checking post-conditions for phase "OperationInPhase"
DEBUG Phase:invoke - Checking pre-condition for Phase "soapmonitorPhase"
DEBUG Phase:invoke - Invoking phase "soapmonitorPhase"
DEBUG Phase:invoke - Checking post-conditions for phase "soapmonitorPhase"
DEBUG Phase:invoke - Checking pre-condition for Phase
"ManagerInterceptorPhase"
DEBUG Phase:invoke - Invoking phase "ManagerInterceptorPhase"
DEBUG Phase:invoke - Invoking Handler 'InFlowManagerHandler' in Phase
'ManagerInterceptorPhase'
ERROR AxisServlet:doPost - java.lang.NullPointerException
DEBUG AddressingHelper:isFaultRedirected - isReplyRedirected: FaultTo is
null. Returning isReplyRedirected
DEBUG AddressingHelper:isReplyRedirected - isReplyRedirected: ReplyTo is
null. Returning false
DEBUG Phase:invoke - Checking pre-condition for Phase "MessageOut"
DEBUG Phase:invoke - Invoking phase "MessageOut"
DEBUG Phase:invoke - Invoking Handler 'AddressingOutHandler' in Phase
'MessageOut'
DEBUG EndpointReferenceHelper:toOM - toOM: Factory,
org.apache.axiom.soap.impl.llom.soap12.SOAP12Factory@6de609
DEBUG EndpointReferenceHelper:toOM - toOM: Endpoint reference, Address:
http://www.w3.org/2005/08/addressing/none
DEBUG EndpointReferenceHelper:toOM - toOM: Element qname,
{http://www.w3.org/2005/08/addressing}ReplyTo
DEBUG EndpointReferenceHelper:toOM - toOM: Addressing namespace,
http://www.w3.org/2005/08/addressing
DEBUG Phase:invoke - Checking post-conditions for phase "MessageOut"
Any clue?
Michele
Michele Mazzucco wrote:
> Hi all,
>
> I'm getting a NPE in AxisServlet and I don't know the reason.
> Please find attached the tomcat output (axis2 is set to debug) and the
> custom handler.
> The handler has always worked fine when the invoke method signature was
> "void": should I change anyting (apart from the return type)?
>
> Any clue?
>
> Michele
>
>
> ------------------------------------------------------------------------
>
> /*
> * QoSP Project org.ncl.ac.uk.qosp.modules.manager.RouterDispatcher.java Created
> * on 02-Jun-2006, 12:02:14
> */
> package ncl.qosp.modules.manager;
>
> import java.util.Iterator;
>
> import javax.xml.namespace.QName;
>
> import ncl.qosp.core.MessageType;
> import ncl.qosp.core.RoutingConstants;
> import ncl.qosp.core.SOAPConstants;
> import ncl.qosp.core.SOAPHeaderConstants;
> import ncl.qosp.utils.FileUtils;
>
> import org.apache.axiom.om.OMException;
> import org.apache.axiom.soap.SOAPHeader;
> import org.apache.axiom.soap.SOAPHeaderBlock;
> import org.apache.axis2.AxisFault;
> import org.apache.axis2.addressing.AddressingConstants;
> import org.apache.axis2.addressing.EndpointReference;
> import org.apache.axis2.context.MessageContext;
> import org.apache.axis2.description.AxisOperation;
> import org.apache.axis2.description.AxisService;
> import org.apache.axis2.description.HandlerDescription;
> import org.apache.axis2.engine.AbstractDispatcher;
> import org.apache.axis2.engine.AxisConfiguration;
> import org.apache.axis2.util.Utils;
> import org.apache.log4j.Level;
> import org.apache.log4j.Logger;
>
> /**
> * Dispatches the client request to the manager service. All the core
> * informations, that is target service and target method, are saved into the
> * {@link org.apache.axis2.context.MessageContext} options.
> * <p>
> * This handler replaces the
> * {@link org.apache.axis2.engine.RequestURIBasedDispatcher} handler in the
> * incoming chain (transport phase).
> * <p>
> * To get the target WS addressing action mapping the SOAP header is parsed.
> *
> * @author <a href="mailto:Michele.Mazzucco@ncl.ac.uk">Michele Mazzucco</a>
> * @version 0.2
> * @since 0.1
> * @see "$AXIS2_HOME/webapps/axis2/WEB-INF/conf/axis2.xml"
> */
> public class RouterDispatcher extends AbstractDispatcher {
>
> // ///////////////////////////////////////////////////////////////////
> // Constants
> // ///////////////////////////////////////////////////////////////////
>
> /**
> * The dispatcher's name.
> *
> * @see #initDispatcher()
> */
> private static final String DISPATCHER_NAME = "RouterDispatcher";
>
> /**
> *
> */
> private static final QName WSA_ACTION = new QName(
> AddressingConstants.WSA_ACTION);
>
> // ///////////////////////////////////////////////////////////////////
> // Logger
> // ///////////////////////////////////////////////////////////////////
>
> /** Logger. */
> private static Logger log;
>
> static {
> log = Logger.getLogger(RouterDispatcher.class);
> }
>
> // ///////////////////////////////////////////////////////////////////
> // Fields
> // ///////////////////////////////////////////////////////////////////
>
> /** The target operation. */
> private String targetOperationName;
>
> /** The target service. */
> private String targetServiceName;
>
> /** Message arrival time. */
> private long arrivalTime;
>
>
> // ///////////////////////////////////////////////////////////////////
> // Methods from AbstractDispatcher
> // ///////////////////////////////////////////////////////////////////
>
> // The findOperation and findService are very similar to the ones
> // implemented
> // in RequestURIBasedDispatcher
>
> /*
> * @see org.apache.axis2.engine.AbstractDispatcher#findOperation(org.apache.axis2.description.AxisService,
> * org.apache.axis2.context.MessageContext)
> */
> @Override
> public AxisOperation findOperation(AxisService service,
> MessageContext messageContext) {
> /*
> * if (log.isDebugEnabled()) { log.debug("Trying to find the required
> * operation"); }
> */
>
> AxisOperation result = null;
>
> EndpointReference toEPR = messageContext.getTo();
> if ((toEPR != null) && (targetOperationName == null)) {
> String filePart = toEPR.getAddress();
> String[] values = Utils.parseRequestURLForServiceAndOperation(
> filePart, messageContext.getConfigurationContext()
> .getServicePath());
>
> // The previous call returns an array of lenght 2, where values[1]
> // holds the operation name
> if ((values[1] != null) && (values[1].length() > 0)) {
> targetOperationName = values[1];
> }
> }
>
> result = service.getOperation(RoutingConstants.FORWARD_OPERATION_NAME);
>
> return result;
> } // -- findOperation()
>
>
> /*
> * @see org.apache.axis2.engine.AbstractDispatcher#findService(org.apache.axis2.context.MessageContext)
> */
> @Override
> public AxisService findService(MessageContext messageContext)
> throws AxisFault {
>
> AxisService result = null;
> EndpointReference toEPR = messageContext.getTo();
>
> if (toEPR != null) {
> String address = toEPR.getAddress();
>
> // Returns a 2 values array
> String[] values = Utils.parseRequestURLForServiceAndOperation(
> address, messageContext.getConfigurationContext()
> .getServicePath());
>
> if ((values[1] != null) && (values[1].length() > 0)) {
> targetOperationName = values[1];
> }
> if ((values[0] != null) && (values[0].length() > 0)) {
> targetServiceName = values[0];
> /*
> * if (log.isDebugEnabled()) { log.debug("Target service is [" +
> * targetServiceName + "]"); }
> */
>
> AxisConfiguration registry = messageContext
> .getConfigurationContext().getAxisConfiguration();
>
> /*
> * If the target service is 'version', allow the request to pass
> * through
> */
> if (targetServiceName.equalsIgnoreCase("version")) {
> result = registry.getService(targetServiceName);
> } else {
> // Forwards the request to the 'RoutingService' service
> result = registry
> .getService(RoutingConstants.FORWARD_SERVICE_NAME);
> }
> }
> }
>
> return result;
>
> } // -- findService()
>
>
> /*
> * @see org.apache.axis2.engine.AbstractDispatcher#initDispatcher()
> */
> @Override
> public void initDispatcher() {
> init(new HandlerDescription(DISPATCHER_NAME));
> }
>
>
> /*
> * @see org.apache.axis2.engine.AbstractDispatcher#invoke(org.apache.axis2.context.MessageContext)
> */
> @Override
> public InvocationResponse invoke(MessageContext messageContext)
> throws AxisFault {
>
> log.info("Handler invoked");
> try {
> SOAPHeader header = messageContext.getEnvelope().getHeader();
> String messageType = SOAPHeaderConstants.getQospMessage(header);
>
> if (messageType != null) {
> if (log.isDebugEnabled()) {
> log.debug("Internal message [" + messageType + "]");
> }
>
> if (messageType.equalsIgnoreCase(MessageType.RESULT.value())) {
> removeRelatesTo(messageContext.getEnvelope().getHeader());
> if (log.isDebugEnabled()) {
> log
> .debug("Response message (removed the RelatesTo header)");
> }
> }
>
> } else {
> if (log.isDebugEnabled()) {
> log.debug("Received client request");
> }
>
> clientRequest(messageContext);
> }
> } catch (OMException e) {
> if (log.isEnabledFor(Level.ERROR)) {
> log.error(FileUtils.getNow()
> + ": unable to get the SOAP header: "
> + e.getLocalizedMessage());
> }
> throw new AxisFault(e);
> }
>
> return InvocationResponse.CONTINUE;
>
> } // -- invoke()
>
>
> // ///////////////////////////////////////////////////////////////////
> // Private methods
> // ///////////////////////////////////////////////////////////////////
>
> /**
> * Removes the {@link AddressingConstants#WSA_RELATES_TO} element from the
> * SOAP header. This is needed because the result receiver is different from
> * the requestor.
> *
> * @param header The SOAP header message without the 'RelatesTo' element.
> */
> @SuppressWarnings("unchecked")
> private final void removeRelatesTo(SOAPHeader header) {
> for (Iterator<SOAPHeaderBlock> i = header.examineAllHeaderBlocks(); i
> .hasNext();) {
> SOAPHeaderBlock tmp = i.next();
>
> if (tmp.getLocalName().equalsIgnoreCase(
> AddressingConstants.WSA_RELATES_TO)) {
> tmp.detach();
>
> if (log.isDebugEnabled()) {
> log.debug("Removed 'RelatesTo'");
> }
> break;
> }
> }
> } // -- removeRelatesTo()
>
>
> /**
> * Handler client requests.
> *
> * @param messageContext The message context.
> * @throws AxisFault If an error occurs.
> */
> private final void clientRequest(MessageContext messageContext)
> throws AxisFault {
> // Gets the arrival timestamp
> this.arrivalTime = System.currentTimeMillis();
>
> AxisService axisService = messageContext.getAxisService();
>
> if (axisService == null) {
> axisService = findService(messageContext);
>
> if (axisService != null) {
> if (log.isInfoEnabled()) {
> log.info("Target service: " + axisService.getName());
> }
> messageContext.setAxisService(axisService);
>
> if (log.isInfoEnabled()) {
> log.info("Message to: " + axisService.getEndpoint().toString());
> }
> }
> }
>
> if ((messageContext.getAxisService() != null)
> && (messageContext.getAxisOperation() == null)) {
> AxisOperation axisOperation = null;
>
> axisOperation = findOperation(axisService, messageContext);
>
> if (axisOperation != null) {/*
> * if (log.isInfoEnabled()) {
> * log.info("Operation set to [" +
> * axisOperation.getName().getLocalPart() +
> * "]"); }
> */
>
> messageContext.setAxisOperation(axisOperation);
> }
> }
>
> saveTargetService(messageContext);
> saveTargetOperation(messageContext);
> // saveTargetAction(messageContext);
>
> // Gets the action mapping
> String soapAction = messageContext.getSoapAction();
> if ((soapAction == null) || (soapAction.length() == 0)) {
> try {
> /*
> * If the message context does not contain the soap action try
> * to get it from the SOAP header
> */
> SOAPHeader header = messageContext.getEnvelope().getHeader();
> soapAction = header.getFirstChildWithName(WSA_ACTION).getText();
> // extractWSASoapAction(header.toString());
> } catch (OMException e) {
> if (log.isEnabledFor(Level.ERROR)) {
> log.error(FileUtils.getNow()
> + ": unable to get the SOAP header: "
> + e.getLocalizedMessage());
> }
> throw new AxisFault(e);
> }
> }
> messageContext.getOptions().setProperty(
> RoutingConstants.TARGET_ACTION_MAPPING, soapAction);
>
> // Saves the arrival time stamp
> saveArrivalTime(messageContext);
> } // -- clientRequest()
>
>
> /**
> * Saves the arrival time stamp.
> *
> * @param messageContext The message context.
> */
> private final void saveArrivalTime(MessageContext messageContext) {
> messageContext.getOptions().setProperty(SOAPConstants.REQ_ARRIVAL_TIME,
> this.arrivalTime);
> } // -- saveArrivalTime()
>
>
> /**
> * Saves the target service as {@link RoutingConstants#TARGET_SERVICE}
> * message property.
> *
> * @param messageContext The message context.
> */
> private final void saveTargetService(final MessageContext messageContext) {
> messageContext.getOptions().setProperty(
> RoutingConstants.TARGET_SERVICE, targetServiceName);
> } // -- saveTargetService()
>
>
> /**
> * Saves the target operation as {@link RoutingConstants#TARGET_OPERATION}
> * message property.
> *
> * @param messageContext The message context.
> */
> private final void saveTargetOperation(final MessageContext messageContext) {
> if ((targetOperationName != null) && (targetOperationName.length() > 0)) {
> messageContext.getOptions().setProperty(
> RoutingConstants.TARGET_OPERATION, targetOperationName);
> }
> } // -- saveTargetOperation()
>
> } // END RouterDispatcher
>
>
> ------------------------------------------------------------------------
>
> 2006-11-08 15:08:54,044 [org.apache.axis2.deployment.DeploymentEngine] - Deploying Web service RoutingService.aar
> 2006-11-08 15:08:54,090 [org.apache.axis2.deployment.DeploymentEngine] - Deploying Web service version.aar
> 2006-11-08 15:12:10,471 [org.apache.axis2.transport.http.AxisServlet] - java.lang.NullPointerException
> 2006-11-08 15:17:59,644 [org.apache.axis2.engine.Phase] - Handler AddressingFinalInHandler added to Phase PreDispatch
> 2006-11-08 15:17:59,644 [org.apache.axis2.engine.Phase] - Handler AddressingSubmissionInHandler added to Phase PreDispatch
> 2006-11-08 15:17:59,644 [org.apache.axis2.engine.Phase] - Handler AddressingOutHandler added to Phase MessageOut
> 2006-11-08 15:17:59,644 [org.apache.axis2.engine.Phase] - Handler AddressingFinalInHandler added to Phase PreDispatch
> 2006-11-08 15:17:59,644 [org.apache.axis2.engine.Phase] - Handler AddressingSubmissionInHandler added to Phase PreDispatch
> 2006-11-08 15:17:59,644 [org.apache.axis2.engine.Phase] - Handler AddressingOutHandler added to Phase MessageOut
> 2006-11-08 15:17:59,644 [org.apache.axis2.engine.Phase] - Handler InFlowManagerHandler added to Phase ManagerInterceptorPhase
> 2006-11-08 15:17:59,691 [org.apache.axis2.i18n.ProjectResourceBundle] - org.apache.axis2.i18n.resource::handleGetObject(deployingws)
> 2006-11-08 15:17:59,691 [org.apache.axis2.deployment.DeploymentEngine] - Deploying Web service RoutingService.aar
> 2006-11-08 15:17:59,753 [org.apache.axis2.i18n.ProjectResourceBundle] - org.apache.axis2.i18n.resource::handleGetObject(deployingws)
> 2006-11-08 15:17:59,753 [org.apache.axis2.deployment.DeploymentEngine] - Deploying Web service version.aar
> 2006-11-08 15:17:59,753 [org.apache.axis2.deployment.WarBasedAxisConfigurator] - loaded services from webapp
> 2006-11-08 15:18:10,189 [org.apache.axis2.engine.Phase] - Checking pre-condition for Phase "ManagerInterceptorPhase"
> 2006-11-08 15:18:10,189 [org.apache.axis2.engine.Phase] - Invoking phase "ManagerInterceptorPhase"
> 2006-11-08 15:18:10,189 [org.apache.axis2.engine.Phase] - Invoking Handler 'InFlowManagerHandler' in Phase 'ManagerInterceptorPhase'
> 2006-11-08 15:18:10,205 [org.apache.axis2.engine.Phase] - Checking post-conditions for phase "ManagerInterceptorPhase"
> 2006-11-08 15:18:10,205 [org.apache.axis2.engine.Phase] - Checking pre-condition for Phase "Transport"
> 2006-11-08 15:18:10,205 [org.apache.axis2.engine.Phase] - Invoking phase "Transport"
> 2006-11-08 15:18:10,205 [org.apache.axis2.engine.Phase] - Invoking Handler 'SOAPActionBasedDispatcher' in Phase 'Transport'
> 2006-11-08 15:18:10,205 [org.apache.axis2.engine.SOAPActionBasedDispatcher] - Checking for Service using SOAPAction is a TODO item
> 2006-11-08 15:18:10,205 [org.apache.axis2.engine.Phase] - Checking post-conditions for phase "Transport"
> 2006-11-08 15:18:10,221 [org.apache.axis2.engine.Phase] - Checking pre-condition for Phase "Security"
> 2006-11-08 15:18:10,221 [org.apache.axis2.engine.Phase] - Invoking phase "Security"
> 2006-11-08 15:18:10,221 [org.apache.axis2.engine.Phase] - Checking post-conditions for phase "Security"
> 2006-11-08 15:18:10,221 [org.apache.axis2.engine.Phase] - Checking pre-condition for Phase "PreDispatch"
> 2006-11-08 15:18:10,221 [org.apache.axis2.engine.Phase] - Invoking phase "PreDispatch"
> 2006-11-08 15:18:10,221 [org.apache.axis2.engine.Phase] - Invoking Handler 'AddressingFinalInHandler' in Phase 'PreDispatch'
> 2006-11-08 15:18:10,221 [org.apache.axis2.handlers.addressing.AddressingInHandler] - Starting WS-Addressing Final IN handler ...
> 2006-11-08 15:18:10,221 [org.apache.axis2.handlers.addressing.AddressingInHandler] - No Headers present corresponding to WS-Addressing Final
> 2006-11-08 15:18:10,221 [org.apache.axis2.engine.Phase] - Invoking Handler 'AddressingSubmissionInHandler' in Phase 'PreDispatch'
> 2006-11-08 15:18:10,221 [org.apache.axis2.handlers.addressing.AddressingInHandler] - Starting WS-Addressing Submission IN handler ...
> 2006-11-08 15:18:10,221 [org.apache.axis2.handlers.addressing.AddressingInHandler] - No Headers present corresponding to WS-Addressing Submission
> 2006-11-08 15:18:10,221 [org.apache.axis2.engine.Phase] - Checking post-conditions for phase "PreDispatch"
> 2006-11-08 15:18:10,221 [org.apache.axis2.engine.Phase] - Checking pre-condition for Phase "Dispatch"
> 2006-11-08 15:18:10,236 [org.apache.axis2.engine.Phase] - Invoking phase "Dispatch"
> 2006-11-08 15:18:10,236 [org.apache.axis2.engine.Phase] - Invoking Handler 'AddressingBasedDispatcher' in Phase 'Dispatch'
> 2006-11-08 15:18:10,236 [org.apache.axis2.i18n.ProjectResourceBundle] - org.apache.axis2.i18n.resource::handleGetObject(checkingserviceforepr)
> 2006-11-08 15:18:10,236 [org.apache.axis2.engine.AddressingBasedDispatcher] - Checking for Service using toEPRs address : {0}
> 2006-11-08 15:18:10,236 [org.apache.axis2.i18n.ProjectResourceBundle] - org.apache.axis2.i18n.resource::handleGetObject(checkingserviceforepr)
> 2006-11-08 15:18:10,236 [org.apache.axis2.engine.AddressingBasedDispatcher] - Checking for Service using toEPRs address : {0}
> 2006-11-08 15:18:10,236 [org.apache.axis2.i18n.ProjectResourceBundle] - org.apache.axis2.i18n.resource::handleGetObject(servicefound)
> 2006-11-08 15:18:10,236 [org.apache.axis2.engine.AbstractDispatcher] - Found AxisService : RoutingService
> 2006-11-08 15:18:10,236 [org.apache.axis2.i18n.ProjectResourceBundle] - org.apache.axis2.i18n.resource::handleGetObject(checkingoperation)
> 2006-11-08 15:18:10,236 [org.apache.axis2.engine.AddressingBasedDispatcher] - Checking for Operation using WSAAction : urn:addNode
> 2006-11-08 15:18:10,236 [org.apache.axis2.i18n.ProjectResourceBundle] - org.apache.axis2.i18n.resource::handleGetObject(operationfound)
> 2006-11-08 15:18:10,236 [org.apache.axis2.engine.AbstractDispatcher] - Found AxisOperation : addNode
> 2006-11-08 15:18:10,252 [org.apache.axis2.engine.Phase] - Invoking Handler 'SOAPMessageBodyBasedDispatcher' in Phase 'Dispatch'
> 2006-11-08 15:18:10,252 [org.apache.axis2.engine.Phase] - Invoking Handler 'InstanceDispatcher' in Phase 'Dispatch'
> 2006-11-08 15:18:10,252 [org.apache.axis2.engine.Phase] - Invoking Handler 'AddressingWSDLValidationHandler' in Phase 'Dispatch'
> 2006-11-08 15:18:10,252 [org.apache.axis2.engine.Phase] - Checking post-conditions for phase "Dispatch"
> 2006-11-08 15:18:10,252 [org.apache.axis2.engine.Phase] - Checking pre-condition for Phase "OperationInPhase"
> 2006-11-08 15:18:10,252 [org.apache.axis2.engine.Phase] - Invoking phase "OperationInPhase"
> 2006-11-08 15:18:10,252 [org.apache.axis2.engine.Phase] - Checking post-conditions for phase "OperationInPhase"
> 2006-11-08 15:18:10,252 [org.apache.axis2.engine.Phase] - Checking pre-condition for Phase "soapmonitorPhase"
> 2006-11-08 15:18:10,252 [org.apache.axis2.engine.Phase] - Invoking phase "soapmonitorPhase"
> 2006-11-08 15:18:10,252 [org.apache.axis2.engine.Phase] - Checking post-conditions for phase "soapmonitorPhase"
> 2006-11-08 15:18:10,283 [org.apache.axis2.i18n.ProjectResourceBundle] - org.apache.axis2.i18n.resource::handleGetObject(methodDoesNotExistInOut)
> 2006-11-08 15:18:10,283 [org.apache.axis2.transport.http.AxisServlet] - org.apache.axis2.AxisFault: ServiceClass does not implement required method of the form OMElement addNode(OMElement e)
> 2006-11-08 15:18:10,283 [org.apache.axis2.addressing.AddressingHelper] - isReplyRedirected: FaultTo is null. Returning isReplyRedirected
> 2006-11-08 15:18:10,283 [org.apache.axis2.addressing.AddressingHelper] - isReplyRedirected: ReplyTo is null. Returning false
> 2006-11-08 15:18:10,299 [org.apache.axis2.engine.Phase] - Checking pre-condition for Phase "soapmonitorPhase"
> 2006-11-08 15:18:10,314 [org.apache.axis2.engine.Phase] - Invoking phase "soapmonitorPhase"
> 2006-11-08 15:18:10,314 [org.apache.axis2.engine.Phase] - Checking post-conditions for phase "soapmonitorPhase"
> 2006-11-08 15:18:10,314 [org.apache.axis2.engine.Phase] - Checking pre-condition for Phase "OperationOutFaultPhase"
> 2006-11-08 15:18:10,314 [org.apache.axis2.engine.Phase] - Invoking phase "OperationOutFaultPhase"
> 2006-11-08 15:18:10,314 [org.apache.axis2.engine.Phase] - Checking post-conditions for phase "OperationOutFaultPhase"
> 2006-11-08 15:18:10,314 [org.apache.axis2.engine.Phase] - Checking pre-condition for Phase "PolicyDetermination"
> 2006-11-08 15:18:10,314 [org.apache.axis2.engine.Phase] - Invoking phase "PolicyDetermination"
> 2006-11-08 15:18:10,314 [org.apache.axis2.engine.Phase] - Checking post-conditions for phase "PolicyDetermination"
> 2006-11-08 15:18:10,314 [org.apache.axis2.engine.Phase] - Checking pre-condition for Phase "MessageOut"
> 2006-11-08 15:18:10,314 [org.apache.axis2.engine.Phase] - Invoking phase "MessageOut"
> 2006-11-08 15:18:10,314 [org.apache.axis2.engine.Phase] - Invoking Handler 'AddressingOutHandler' in Phase 'MessageOut'
> 2006-11-08 15:18:10,314 [org.apache.axis2.handlers.addressing.AddressingHandler] - Addressing is disabled .....
> 2006-11-08 15:18:10,314 [org.apache.axis2.engine.Phase] - Checking post-conditions for phase "MessageOut"
> 2006-11-08 15:18:20,891 [org.apache.axis2.engine.Phase] - Checking pre-condition for Phase "ManagerInterceptorPhase"
> 2006-11-08 15:18:20,891 [org.apache.axis2.engine.Phase] - Invoking phase "ManagerInterceptorPhase"
> 2006-11-08 15:18:20,891 [org.apache.axis2.engine.Phase] - Invoking Handler 'InFlowManagerHandler' in Phase 'ManagerInterceptorPhase'
> 2006-11-08 15:18:20,891 [org.apache.axis2.engine.Phase] - Checking post-conditions for phase "ManagerInterceptorPhase"
> 2006-11-08 15:18:20,891 [org.apache.axis2.engine.Phase] - Checking pre-condition for Phase "Transport"
> 2006-11-08 15:18:20,907 [org.apache.axis2.engine.Phase] - Invoking phase "Transport"
> 2006-11-08 15:18:20,907 [org.apache.axis2.engine.Phase] - Invoking Handler 'SOAPActionBasedDispatcher' in Phase 'Transport'
> 2006-11-08 15:18:20,907 [org.apache.axis2.engine.SOAPActionBasedDispatcher] - Checking for Service using SOAPAction is a TODO item
> 2006-11-08 15:18:20,907 [org.apache.axis2.engine.Phase] - Checking post-conditions for phase "Transport"
> 2006-11-08 15:18:20,907 [org.apache.axis2.engine.Phase] - Checking pre-condition for Phase "Security"
> 2006-11-08 15:18:20,907 [org.apache.axis2.engine.Phase] - Invoking phase "Security"
> 2006-11-08 15:18:20,907 [org.apache.axis2.engine.Phase] - Checking post-conditions for phase "Security"
> 2006-11-08 15:18:20,907 [org.apache.axis2.engine.Phase] - Checking pre-condition for Phase "PreDispatch"
> 2006-11-08 15:18:20,907 [org.apache.axis2.engine.Phase] - Invoking phase "PreDispatch"
> 2006-11-08 15:18:20,907 [org.apache.axis2.engine.Phase] - Invoking Handler 'AddressingFinalInHandler' in Phase 'PreDispatch'
> 2006-11-08 15:18:20,907 [org.apache.axis2.handlers.addressing.AddressingInHandler] - Starting WS-Addressing Final IN handler ...
> 2006-11-08 15:18:20,907 [org.apache.axis2.handlers.addressing.AddressingInHandler] - No Headers present corresponding to WS-Addressing Final
> 2006-11-08 15:18:20,907 [org.apache.axis2.engine.Phase] - Invoking Handler 'AddressingSubmissionInHandler' in Phase 'PreDispatch'
> 2006-11-08 15:18:20,907 [org.apache.axis2.handlers.addressing.AddressingInHandler] - Starting WS-Addressing Submission IN handler ...
> 2006-11-08 15:18:20,907 [org.apache.axis2.handlers.addressing.AddressingInHandler] - No Headers present corresponding to WS-Addressing Submission
> 2006-11-08 15:18:20,922 [org.apache.axis2.engine.Phase] - Checking post-conditions for phase "PreDispatch"
> 2006-11-08 15:18:20,922 [org.apache.axis2.engine.Phase] - Checking pre-condition for Phase "Dispatch"
> 2006-11-08 15:18:20,922 [org.apache.axis2.engine.Phase] - Invoking phase "Dispatch"
> 2006-11-08 15:18:20,922 [org.apache.axis2.engine.Phase] - Invoking Handler 'AddressingBasedDispatcher' in Phase 'Dispatch'
> 2006-11-08 15:18:20,922 [org.apache.axis2.i18n.ProjectResourceBundle] - org.apache.axis2.i18n.resource::handleGetObject(checkingserviceforepr)
> 2006-11-08 15:18:20,922 [org.apache.axis2.engine.AddressingBasedDispatcher] - Checking for Service using toEPRs address : {0}
> 2006-11-08 15:18:20,922 [org.apache.axis2.i18n.ProjectResourceBundle] - org.apache.axis2.i18n.resource::handleGetObject(checkingserviceforepr)
> 2006-11-08 15:18:20,922 [org.apache.axis2.engine.AddressingBasedDispatcher] - Checking for Service using toEPRs address : {0}
> 2006-11-08 15:18:20,922 [org.apache.axis2.i18n.ProjectResourceBundle] - org.apache.axis2.i18n.resource::handleGetObject(servicefound)
> 2006-11-08 15:18:20,922 [org.apache.axis2.engine.AbstractDispatcher] - Found AxisService : RoutingService
> 2006-11-08 15:18:20,922 [org.apache.axis2.i18n.ProjectResourceBundle] - org.apache.axis2.i18n.resource::handleGetObject(checkingoperation)
> 2006-11-08 15:18:20,922 [org.apache.axis2.engine.AddressingBasedDispatcher] - Checking for Operation using WSAAction : urn:addService
> 2006-11-08 15:18:20,922 [org.apache.axis2.i18n.ProjectResourceBundle] - org.apache.axis2.i18n.resource::handleGetObject(operationfound)
> 2006-11-08 15:18:20,938 [org.apache.axis2.engine.AbstractDispatcher] - Found AxisOperation : addService
> 2006-11-08 15:18:20,938 [org.apache.axis2.engine.Phase] - Invoking Handler 'SOAPMessageBodyBasedDispatcher' in Phase 'Dispatch'
> 2006-11-08 15:18:20,938 [org.apache.axis2.engine.Phase] - Invoking Handler 'InstanceDispatcher' in Phase 'Dispatch'
> 2006-11-08 15:18:20,938 [org.apache.axis2.engine.Phase] - Invoking Handler 'AddressingWSDLValidationHandler' in Phase 'Dispatch'
> 2006-11-08 15:18:20,938 [org.apache.axis2.engine.Phase] - Checking post-conditions for phase "Dispatch"
> 2006-11-08 15:18:20,938 [org.apache.axis2.engine.Phase] - Checking pre-condition for Phase "OperationInPhase"
> 2006-11-08 15:18:20,938 [org.apache.axis2.engine.Phase] - Invoking phase "OperationInPhase"
> 2006-11-08 15:18:20,938 [org.apache.axis2.engine.Phase] - Checking post-conditions for phase "OperationInPhase"
> 2006-11-08 15:18:20,938 [org.apache.axis2.engine.Phase] - Checking pre-condition for Phase "soapmonitorPhase"
> 2006-11-08 15:18:20,938 [org.apache.axis2.engine.Phase] - Invoking phase "soapmonitorPhase"
> 2006-11-08 15:18:20,938 [org.apache.axis2.engine.Phase] - Checking post-conditions for phase "soapmonitorPhase"
> 2006-11-08 15:18:20,938 [org.apache.axis2.i18n.ProjectResourceBundle] - org.apache.axis2.i18n.resource::handleGetObject(methodDoesNotExistInOut)
> 2006-11-08 15:18:20,954 [org.apache.axis2.transport.http.AxisServlet] - org.apache.axis2.AxisFault: ServiceClass does not implement required method of the form OMElement addService(OMElement e)
> 2006-11-08 15:18:20,954 [org.apache.axis2.addressing.AddressingHelper] - isReplyRedirected: FaultTo is null. Returning isReplyRedirected
> 2006-11-08 15:18:20,954 [org.apache.axis2.addressing.AddressingHelper] - isReplyRedirected: ReplyTo is null. Returning false
> 2006-11-08 15:18:20,954 [org.apache.axis2.engine.Phase] - Checking pre-condition for Phase "soapmonitorPhase"
> 2006-11-08 15:18:20,954 [org.apache.axis2.engine.Phase] - Invoking phase "soapmonitorPhase"
> 2006-11-08 15:18:20,954 [org.apache.axis2.engine.Phase] - Checking post-conditions for phase "soapmonitorPhase"
> 2006-11-08 15:18:20,954 [org.apache.axis2.engine.Phase] - Checking pre-condition for Phase "OperationOutFaultPhase"
> 2006-11-08 15:18:20,954 [org.apache.axis2.engine.Phase] - Invoking phase "OperationOutFaultPhase"
> 2006-11-08 15:18:20,954 [org.apache.axis2.engine.Phase] - Checking post-conditions for phase "OperationOutFaultPhase"
> 2006-11-08 15:18:20,954 [org.apache.axis2.engine.Phase] - Checking pre-condition for Phase "PolicyDetermination"
> 2006-11-08 15:18:20,954 [org.apache.axis2.engine.Phase] - Invoking phase "PolicyDetermination"
> 2006-11-08 15:18:20,954 [org.apache.axis2.engine.Phase] - Checking post-conditions for phase "PolicyDetermination"
> 2006-11-08 15:18:20,969 [org.apache.axis2.engine.Phase] - Checking pre-condition for Phase "MessageOut"
> 2006-11-08 15:18:20,969 [org.apache.axis2.engine.Phase] - Invoking phase "MessageOut"
> 2006-11-08 15:18:20,969 [org.apache.axis2.engine.Phase] - Invoking Handler 'AddressingOutHandler' in Phase 'MessageOut'
> 2006-11-08 15:18:20,969 [org.apache.axis2.handlers.addressing.AddressingHandler] - Addressing is disabled .....
> 2006-11-08 15:18:20,969 [org.apache.axis2.engine.Phase] - Checking post-conditions for phase "MessageOut"
> 2006-11-08 15:18:38,404 [org.apache.axis2.engine.Phase] - Checking pre-condition for Phase "ManagerInterceptorPhase"
> 2006-11-08 15:18:38,404 [org.apache.axis2.engine.Phase] - Invoking phase "ManagerInterceptorPhase"
> 2006-11-08 15:18:38,404 [org.apache.axis2.engine.Phase] - Invoking Handler 'InFlowManagerHandler' in Phase 'ManagerInterceptorPhase'
> 2006-11-08 15:18:38,420 [org.apache.axis2.transport.http.AxisServlet] - java.lang.NullPointerException
> 2006-11-08 15:18:38,420 [org.apache.axis2.addressing.AddressingHelper] - isReplyRedirected: FaultTo is null. Returning isReplyRedirected
> 2006-11-08 15:18:38,420 [org.apache.axis2.addressing.AddressingHelper] - isReplyRedirected: ReplyTo is null. Returning false
> 2006-11-08 15:18:38,420 [org.apache.axis2.engine.Phase] - Checking pre-condition for Phase "MessageOut"
> 2006-11-08 15:18:38,420 [org.apache.axis2.engine.Phase] - Invoking phase "MessageOut"
> 2006-11-08 15:18:38,420 [org.apache.axis2.engine.Phase] - Invoking Handler 'AddressingOutHandler' in Phase 'MessageOut'
> 2006-11-08 15:18:38,420 [org.apache.axis2.addressing.EndpointReferenceHelper] - toOM: Factory, org.apache.axiom.soap.impl.llom.soap12.SOAP12Factory@98bbf6
> 2006-11-08 15:18:38,420 [org.apache.axis2.addressing.EndpointReferenceHelper] - toOM: Endpoint reference, Address: http://www.w3.org/2005/08/addressing/none
> 2006-11-08 15:18:38,420 [org.apache.axis2.addressing.EndpointReferenceHelper] - toOM: Element qname, {http://www.w3.org/2005/08/addressing}ReplyTo
> 2006-11-08 15:18:38,436 [org.apache.axis2.addressing.EndpointReferenceHelper] - toOM: Addressing namespace, http://www.w3.org/2005/08/addressing
> 2006-11-08 15:18:38,436 [org.apache.axis2.engine.Phase] - Checking post-conditions for phase "MessageOut"
> 2006-11-08 15:24:31,935 [org.apache.axis2.engine.Phase] - Checking pre-condition for Phase "ManagerInterceptorPhase"
> 2006-11-08 15:24:31,935 [org.apache.axis2.engine.Phase] - Invoking phase "ManagerInterceptorPhase"
> 2006-11-08 15:24:31,935 [org.apache.axis2.engine.Phase] - Invoking Handler 'InFlowManagerHandler' in Phase 'ManagerInterceptorPhase'
> 2006-11-08 15:24:31,935 [org.apache.axis2.transport.http.AxisServlet] - java.lang.NullPointerException
> 2006-11-08 15:24:31,935 [org.apache.axis2.addressing.AddressingHelper] - isReplyRedirected: FaultTo is null. Returning isReplyRedirected
> 2006-11-08 15:24:31,935 [org.apache.axis2.addressing.AddressingHelper] - isReplyRedirected: ReplyTo is null. Returning false
> 2006-11-08 15:24:31,935 [org.apache.axis2.engine.Phase] - Checking pre-condition for Phase "MessageOut"
> 2006-11-08 15:24:31,935 [org.apache.axis2.engine.Phase] - Invoking phase "MessageOut"
> 2006-11-08 15:24:31,951 [org.apache.axis2.engine.Phase] - Invoking Handler 'AddressingOutHandler' in Phase 'MessageOut'
> 2006-11-08 15:24:31,951 [org.apache.axis2.addressing.EndpointReferenceHelper] - toOM: Factory, org.apache.axiom.soap.impl.llom.soap12.SOAP12Factory@e7e8eb
> 2006-11-08 15:24:31,951 [org.apache.axis2.addressing.EndpointReferenceHelper] - toOM: Endpoint reference, Address: http://www.w3.org/2005/08/addressing/none
> 2006-11-08 15:24:31,951 [org.apache.axis2.addressing.EndpointReferenceHelper] - toOM: Element qname, {http://www.w3.org/2005/08/addressing}ReplyTo
> 2006-11-08 15:24:31,951 [org.apache.axis2.addressing.EndpointReferenceHelper] - toOM: Addressing namespace, http://www.w3.org/2005/08/addressing
> 2006-11-08 15:24:31,951 [org.apache.axis2.engine.Phase] - Checking post-conditions for phase "MessageOut"
>
>
> ------------------------------------------------------------------------
>
> 2006-11-08 15:08:53,731 [ncl.qosp.controller.RoutingService] - Startup time is: Wed Nov 08 15:08:53 GMT 2006
> 2006-11-08 15:08:54,106 [ncl.qosp.controller.RoutingService] - -- Constructor
> 2006-11-08 15:08:54,184 [ncl.qosp.controller.RoutingService] - Scheduler created
> 2006-11-08 15:08:54,184 [ncl.qosp.controller.scheduler.weighted.queue.QueueSizeScheduler] - Scheduler component started
> 2006-11-08 15:09:08,198 [ncl.qosp.controller.LifecycleSupport] - Qosp is shutting down...
> 2006-11-08 15:09:08,198 [ncl.qosp.controller.scheduler.weighted.queue.QueueSizeScheduler] - The timer was not running
> 2006-11-08 15:09:08,198 [ncl.qosp.controller.scheduler.weighted.queue.QueueSizeScheduler] - Scheduler component stopped
> 2006-11-08 15:09:08,198 [ncl.qosp.controller.LifecycleSupport] - Scheduler stopped
> 2006-11-08 15:09:08,198 [ncl.qosp.controller.LifecycleSupport] - Scheduler unregistered from the mbean server
> 2006-11-08 15:09:08,198 [ncl.qosp.controller.LifecycleSupport] - Connector server stopped
> 2006-11-08 15:10:13,518 [ncl.qosp.controller.RoutingService] - Startup time is: Wed Nov 08 15:10:13 GMT 2006
> 2006-11-08 15:10:13,908 [ncl.qosp.controller.RoutingService] - -- Constructor
> 2006-11-08 15:10:13,971 [ncl.qosp.controller.RoutingService] - Scheduler created
> 2006-11-08 15:10:13,971 [ncl.qosp.controller.scheduler.weighted.queue.QueueSizeScheduler] - Scheduler component started
> 2006-11-08 15:10:41,014 [ncl.qosp.modules.manager.RouterDispatcher] - Handler invoked
> 2006-11-08 15:10:41,030 [ncl.qosp.modules.manager.RouterDispatcher] - Internal message [New node]
> 2006-11-08 15:11:01,183 [ncl.qosp.modules.manager.RouterDispatcher] - Handler invoked
> 2006-11-08 15:11:01,183 [ncl.qosp.modules.manager.RouterDispatcher] - Internal message [New service]
> 2006-11-08 15:11:31,836 [ncl.qosp.controller.scheduler.weighted.queue.QueueSizeScheduler] - Received listener request
> 2006-11-08 15:11:31,836 [ncl.qosp.controller.scheduler.weighted.queue.QueueSizeScheduler] - Added notification listener
> 2006-11-08 15:12:10,471 [ncl.qosp.modules.manager.RouterDispatcher] - Handler invoked
> 2006-11-08 15:12:10,471 [ncl.qosp.modules.manager.RouterDispatcher] - Received client request
> 2006-11-08 15:12:10,471 [ncl.qosp.modules.manager.RouterDispatcher] - Target service: RoutingService
> 2006-11-08 15:13:50,271 [ncl.qosp.controller.LifecycleSupport] - Qosp is shutting down...
> 2006-11-08 15:13:50,271 [ncl.qosp.controller.scheduler.weighted.queue.QueueSizeScheduler] - The timer was not running
> 2006-11-08 15:13:50,271 [ncl.qosp.controller.scheduler.weighted.queue.QueueSizeScheduler] - Scheduler component stopped
> 2006-11-08 15:13:50,271 [ncl.qosp.controller.LifecycleSupport] - Scheduler stopped
> 2006-11-08 15:13:50,271 [ncl.qosp.controller.LifecycleSupport] - Scheduler unregistered from the mbean server
> 2006-11-08 15:13:50,302 [ncl.qosp.controller.LifecycleSupport] - Connector server stopped
> 2006-11-08 15:17:59,363 [ncl.qosp.controller.RoutingService] - Startup time is: Wed Nov 08 15:17:59 GMT 2006
> 2006-11-08 15:17:59,769 [ncl.qosp.controller.RoutingService] - -- Constructor
> 2006-11-08 15:17:59,831 [ncl.qosp.controller.RoutingService] - Scheduler created
> 2006-11-08 15:17:59,847 [ncl.qosp.controller.scheduler.weighted.queue.QueueSizeScheduler] - Scheduler component started
> 2006-11-08 15:18:10,205 [ncl.qosp.modules.manager.RouterDispatcher] - Handler invoked
> 2006-11-08 15:18:10,205 [ncl.qosp.modules.manager.RouterDispatcher] - Internal message [New node]
> 2006-11-08 15:18:20,891 [ncl.qosp.modules.manager.RouterDispatcher] - Handler invoked
> 2006-11-08 15:18:20,891 [ncl.qosp.modules.manager.RouterDispatcher] - Internal message [New service]
> 2006-11-08 15:18:38,404 [ncl.qosp.modules.manager.RouterDispatcher] - Handler invoked
> 2006-11-08 15:18:38,404 [ncl.qosp.modules.manager.RouterDispatcher] - Received client request
> 2006-11-08 15:18:38,404 [ncl.qosp.modules.manager.RouterDispatcher] - Target service: RoutingService
> 2006-11-08 15:24:31,935 [ncl.qosp.modules.manager.RouterDispatcher] - Handler invoked
> 2006-11-08 15:24:31,935 [ncl.qosp.modules.manager.RouterDispatcher] - Received client request
> 2006-11-08 15:24:31,935 [ncl.qosp.modules.manager.RouterDispatcher] - Target service: RoutingService
>
>
>
> ------------------------------------------------------------------------
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org