Hi,
This commit broke the build for me (IBM Java1.5 on Linux). Do I need
some additional JMS stuf installed?

David

The following is the failing test dump (it hung for about an hour
before failing)

Testsuite: org.apache.axis2.jms.JMSEchoRawXMLTest
Tests run: 4, Failures: 0, Errors: 3, Time elapsed: 3,690.852 sec

------------- Standard Output ---------------
/home/illsleyd/ci/working-directory/1/modules/integration/target/test-resources/jms-enabled-server-repository
Server stopped 
...../home/illsleyd/ci/working-directory/1/modules/integration/target/test-resources/jms-enabled-server-repository
Server stopped 
...../home/illsleyd/ci/working-directory/1/modules/integration/target/test-resources/jms-enabled-server-repository
Server stopped 
...../home/illsleyd/ci/working-directory/1/modules/integration/target/test-resources/jms-enabled-server-repository
Server stopped .....------------- ---------------- ---------------
------------- Standard Error -----------------
log4j:WARN No appenders could be found for logger
(org.apache.activemq.broker.BrokerService).
log4j:WARN Please initialize the log4j system properly.
Exception in thread "JMSWorker-1" java.lang.NullPointerException
        at 
org.apache.axis2.transport.jms.JMSUtils.getDestination(JMSUtils.java:279)
        at org.apache.axis2.transport.jms.JMSSender.invoke(JMSSender.java:104)
        at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:740)
        at 
org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.receive(AbstractInOutSyncMessageReceiver.java:48)
        at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:502)
        at 
org.apache.axis2.transport.jms.JMSMessageReceiver$Worker.run(JMSMessageReceiver.java:198)
        at 
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:665)
        at 
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:690)
        at java.lang.Thread.run(Thread.java:797)
------------- ---------------- ---------------
Testcase: testEchoXMLSync(org.apache.axis2.jms.JMSEchoRawXMLTest):      Caused
an ERROR
Incoming message input stream is null
org.apache.axis2.AxisFault: Incoming message input stream is null
        at 
org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:64)
        at 
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:367)
        at 
org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:281)
        at 
org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:571)
        at 
org.apache.axis2.jms.JMSEchoRawXMLTest.testEchoXMLSync(JMSEchoRawXMLTest.java:171)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)


Testcase: testEchoXMLCompleteSync(org.apache.axis2.jms.JMSEchoRawXMLTest):      
Caused
an ERROR
Time out while waiting for the server to send the response
org.apache.axis2.AxisFault: Time out while waiting for the server to
send the response
        at 
org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:562)
        at 
org.apache.axis2.jms.JMSEchoRawXMLTest.testEchoXMLCompleteSync(JMSEchoRawXMLTest.java:199)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)


Testcase: testEchoXMLSyncMC(org.apache.axis2.jms.JMSEchoRawXMLTest):    Caused
an ERROR
First Element must contain the local name, Envelope; nested exception is:
        org.apache.axiom.soap.SOAPProcessingException: First Element must
contain the local name, Envelope
org.apache.axis2.AxisFault: First Element must contain the local name,
Envelope; nested exception is:
        org.apache.axiom.soap.SOAPProcessingException: First Element must
contain the local name, Envelope
        at 
org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:126)
        at 
org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:67)
        at 
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:367)
        at 
org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:281)
        at 
org.apache.axis2.jms.JMSEchoRawXMLTest.testEchoXMLSyncMC(JMSEchoRawXMLTest.java:238)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
Caused by: org.apache.axiom.soap.SOAPProcessingException: First
Element must contain the local name, Envelope
        at 
org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.constructNode(StAXSOAPModelBuilder.java:212)
        at 
org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.createOMElement(StAXSOAPModelBuilder.java:171)
        at 
org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:125)
        at 
org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.getSOAPEnvelope(StAXSOAPModelBuilder.java:155)
        at 
org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.identifySOAPVersion(StAXSOAPModelBuilder.java:131)
        at 
org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.<init>(StAXSOAPModelBuilder.java:106)
        at 
org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:120)
        ... 18 more



On 17/10/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
Author: asankha
Date: Tue Oct 17 02:35:04 2006
New Revision: 464874

URL: http://svn.apache.org/viewvc?view=rev&rev=464874
Log:
support pox JMS messages for the JMS transport

Modified:
    
webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/jms/JMSUtils.java

Modified: 
webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/jms/JMSUtils.java
URL: 
http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/jms/JMSUtils.java?view=diff&rev=464874&r1=464873&r2=464874
==============================================================================
--- 
webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/jms/JMSUtils.java
 (original)
+++ 
webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/jms/JMSUtils.java
 Tue Oct 17 02:35:04 2006
@@ -16,12 +16,13 @@
 package org.apache.axis2.transport.jms;

 import org.apache.axiom.om.OMOutputFormat;
+import org.apache.axiom.om.OMException;
 import org.apache.axiom.om.impl.builder.StAXBuilder;
+import org.apache.axiom.om.impl.builder.StAXOMBuilder;
 import org.apache.axiom.om.util.StAXUtils;
-import org.apache.axiom.soap.SOAP11Constants;
-import org.apache.axiom.soap.SOAP12Constants;
-import org.apache.axiom.soap.SOAPEnvelope;
+import org.apache.axiom.soap.*;
 import org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder;
+import org.apache.axiom.soap.impl.llom.soap11.SOAP11Factory;
 import org.apache.axis2.AxisFault;
 import org.apache.axis2.Constants;
 import org.apache.axis2.util.JavaUtils;
@@ -349,9 +350,29 @@
             // Set the encoding scheme in the message context
             
msgContext.setProperty(Constants.Configuration.CHARACTER_SET_ENCODING,
                                    MessageContext.DEFAULT_CHAR_SET_ENCODING);
-            builder = new StAXSOAPModelBuilder(
-                xmlreader, SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI);
-            envelope = (SOAPEnvelope) builder.getDocumentElement();
+            builder = new StAXOMBuilder(xmlreader);
+            SOAPFactory soapFactory = new SOAP11Factory();
+            builder.setOMBuilderFactory(soapFactory);
+            try {
+                if (builder.getDocumentElement() instanceof SOAPEnvelope) {
+                    envelope = (SOAPEnvelope) builder.getDocumentElement();
+                } else {
+                    envelope = soapFactory.getDefaultEnvelope();
+                    envelope.getBody().addChild(builder.getDocumentElement());
+                }
+            } catch (OMException e) {
+                handleException("Unsupported JMS Message format : " + 
message.getClass(), e);
+                /*if (message instanceof TextMessage) {
+
+                } else if (message instanceof BytesMessage) {
+
+                } else {
+                    log.error("Unsupported JMS Message format : " + 
message.getJMSType());
+                }
+                log.debug("Non SOAP/XML message received");
+                envelope = soapFactory.getDefaultEnvelope();
+                envelope.getBody().addChild(soapFactory.createOMText(null, 
true));*/
+            }
         }

         String charEncOfMessage = builder.getDocument().getCharsetEncoding();



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
David Illsley - IBM Web Services Development

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to