You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Martin Gainty (JIRA)" <ji...@apache.org> on 2016/10/26 15:41:58 UTC

[jira] [Created] (AXIS2-5817) org.apache.axis2.builder.UnknownContentBuilderTest error

Martin Gainty created AXIS2-5817:
------------------------------------

             Summary: org.apache.axis2.builder.UnknownContentBuilderTest error
                 Key: AXIS2-5817
                 URL: https://issues.apache.org/jira/browse/AXIS2-5817
             Project: Axis2
          Issue Type: Bug
          Components: Integration
    Affects Versions: 1.5.6
         Environment: jdk 1.8
            Reporter: Martin Gainty
            Priority: Minor


org.apache.axis2.builder.UnknownContentBuilderTest testNoBuilder test

        File file = getTestResourceFile("mime_message.txt");
        MIMEBuilder mimeBuilder = new MIMEBuilder();
        FileInputStream fis = new FileInputStream(file);
        ConfigurationContext configContext = null;
        try {
			String path=file.getAbsolutePath();
			configContext=ConfigurationContextFactory.createDefaultConfigurationContext(path);
		}
		catch(Exception excp) { System.out.println("UnknownContentBuilderTest::testNoBuilder LINE 81 throws Exception mssage="+excp.getMessage()); }

where mime-message.txt contains:

----MIMEBoundary258DE2D105298B756D
content-type:text/plain; charset=ISO-8859-1; format=flowed
content-transfer-encoding:binary
content-id:<0....@apache.org>

<?xml version='1.0' encoding='utf-8'?><soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope"><soapenv:Header><wsa:To xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing">http://localhost:8070/axis2/services/MTOMService/mtomSample</wsa:To></soapenv:Header><soapenv:Body><x:EchoTest xmlns:x="http://example.org/mtom/data"><x:Data><xop:Include href="cid:1.BBFC8D48A21258EBBD@apache.org" xmlns:xop="http://www.w3.org/2004/08/xop/include"></xop:Include></x:Data><x:Data><xop:Include href="cid:2.CB365E36E21BD6491A@apache.org" xmlns:xop="http://www.w3.org/2004/08/xop/include"></xop:Include></x:Data></x:EchoTest></soapenv:Body></soapenv:Envelope>
----MIMEBoundary258DE2D105298B756D
content-id:<11...@apache.org>
content-type:text/csv;name="test.csv"
content-transfer-encoding:binary

saminda saminda saminda saminda saminda saminda saminda saminda saminda saminda saminda saminda saminda saminda saminda saminda saminda saminda saminda saminda 

there is no axisconfig element inside message.txt so Exception is thrown:

<error message="The system was looking for the &apos;axisconfig&apos; element,
    but it found &apos;%AXIS2_HOME%\modules\integration\test-resources\mime_message.txt&apos;" 
    type="org.apache.axis2.deployment.DeploymentException">org.apache.axis2.deployment.DeploymentException: 
    The system was looking for the &apos;axisconfig&apos; element, 
    but it found &apos;C:\Axis\axis-2.1.5\modules\integration\test-resources\mime_message.txt&apos;
	at org.apache.axis2.deployment.AxisConfigBuilder.populateConfig(AxisConfigBuilder.java:177)
	at org.apache.axis2.context.ConfigurationContextFactory.createBasicConfigurationContext(ConfigurationContextFactory.java:427)
	at org.apache.axis2.context.ConfigurationContextFactory.createDefaultConfigurationContext(ConfigurationContextFactory.java:409)
	at org.apache.axis2.builder.UnknownContentBuilderTest.testNoBuilder(UnknownContentBuilderTest.java:77)

disable testNoBuilder test to stop UnknownContentBuilderTest from failing
OR sub in axis2.xml that contains <axisconfig name="AxisJava2.0"> element



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org