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 "Russell J. Nile (JIRA)" <ji...@apache.org> on 2006/11/16 13:36:38 UTC

[jira] Created: (AXIS2-1721) Invalid content type on request

Invalid content type on request
-------------------------------

                 Key: AXIS2-1721
                 URL: http://issues.apache.org/jira/browse/AXIS2-1721
             Project: Apache Axis 2.0 (Axis2)
          Issue Type: Bug
          Components: transports
    Affects Versions: 1.1
            Reporter: Russell J. Nile


I'm not sure if this is a bug but I am receiving a remote exception indicating:
org.apache.axis2.AxisFault: Content type should be one of /n text/xml/n application/x-www-form-urlencoded/n multipart/related; nested exception is: 
	org.apache.axis2.AxisFault: Content type should be one of /n text/xml/n application/x-www-form-urlencoded/n multipart/related

the content-type set on the request is set to "application/soap+xml"
 >> "POST /O2CServiceContainer/services/EventRecorder HTTP/1.1[\r][\n]"
=,2006-11-16, 07:34:44:715, [main], Adding Host request header
=,2006-11-16, 07:34:44:730, [main], >> "User-Agent: Axis2[\r][\n]"
=,2006-11-16, 07:34:44:730, [main], >> "Host: localhost:9080[\r][\n]"
=,2006-11-16, 07:34:44:730, [main], >> "Transfer-Encoding: chunked[\r][\n]"
=,2006-11-16, 07:34:44:730, [main], >> "Content-Type: application/soap+xml; charset=UTF-8;action="urn:recordEvent";[\r][\n]"
=,2006-11-16, 07:34:44:730, [main], >> "[\r][\n]"

I'm not sure what I can do to change this.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] Resolved: (AXIS2-1721) Invalid content type on request

Posted by "Deepal Jayasinghe (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-1721?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Deepal Jayasinghe resolved AXIS2-1721.
--------------------------------------

    Resolution: Fixed

seems like issue is fixed.

> Invalid content type on request
> -------------------------------
>
>                 Key: AXIS2-1721
>                 URL: https://issues.apache.org/jira/browse/AXIS2-1721
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: transports
>    Affects Versions: 1.1
>            Reporter: Russell J. Nile
>         Assigned To: Deepal Jayasinghe
>
> I'm not sure if this is a bug but I am receiving a remote exception indicating:
> org.apache.axis2.AxisFault: Content type should be one of /n text/xml/n application/x-www-form-urlencoded/n multipart/related; nested exception is: 
> 	org.apache.axis2.AxisFault: Content type should be one of /n text/xml/n application/x-www-form-urlencoded/n multipart/related
> the content-type set on the request is set to "application/soap+xml"
>  >> "POST /O2CServiceContainer/services/EventRecorder HTTP/1.1[\r][\n]"
> =,2006-11-16, 07:34:44:715, [main], Adding Host request header
> =,2006-11-16, 07:34:44:730, [main], >> "User-Agent: Axis2[\r][\n]"
> =,2006-11-16, 07:34:44:730, [main], >> "Host: localhost:9080[\r][\n]"
> =,2006-11-16, 07:34:44:730, [main], >> "Transfer-Encoding: chunked[\r][\n]"
> =,2006-11-16, 07:34:44:730, [main], >> "Content-Type: application/soap+xml; charset=UTF-8;action="urn:recordEvent";[\r][\n]"
> =,2006-11-16, 07:34:44:730, [main], >> "[\r][\n]"
> I'm not sure what I can do to change this.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Commented: (AXIS2-1721) Invalid content type on request

Posted by "Russell J. Nile (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS2-1721?page=comments#action_12458644 ] 
            
Russell J. Nile commented on AXIS2-1721:
----------------------------------------

Jira,

As it turns out my problem had to do with some redundant jar files with
obsolete classes.  Ensure there is just version 1.1 jar files in your
classpath.

Russell



> Invalid content type on request
> -------------------------------
>
>                 Key: AXIS2-1721
>                 URL: http://issues.apache.org/jira/browse/AXIS2-1721
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: transports
>    Affects Versions: 1.1
>            Reporter: Russell J. Nile
>
> I'm not sure if this is a bug but I am receiving a remote exception indicating:
> org.apache.axis2.AxisFault: Content type should be one of /n text/xml/n application/x-www-form-urlencoded/n multipart/related; nested exception is: 
> 	org.apache.axis2.AxisFault: Content type should be one of /n text/xml/n application/x-www-form-urlencoded/n multipart/related
> the content-type set on the request is set to "application/soap+xml"
>  >> "POST /O2CServiceContainer/services/EventRecorder HTTP/1.1[\r][\n]"
> =,2006-11-16, 07:34:44:715, [main], Adding Host request header
> =,2006-11-16, 07:34:44:730, [main], >> "User-Agent: Axis2[\r][\n]"
> =,2006-11-16, 07:34:44:730, [main], >> "Host: localhost:9080[\r][\n]"
> =,2006-11-16, 07:34:44:730, [main], >> "Transfer-Encoding: chunked[\r][\n]"
> =,2006-11-16, 07:34:44:730, [main], >> "Content-Type: application/soap+xml; charset=UTF-8;action="urn:recordEvent";[\r][\n]"
> =,2006-11-16, 07:34:44:730, [main], >> "[\r][\n]"
> I'm not sure what I can do to change this.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] Commented: (AXIS2-1721) Invalid content type on request

Posted by "Singh, Nagender (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS2-1721?page=comments#action_12458634 ] 
            
Singh, Nagender commented on AXIS2-1721:
----------------------------------------

Do you know the solution for this problem as I am dying to resolve the
same issue.



> Invalid content type on request
> -------------------------------
>
>                 Key: AXIS2-1721
>                 URL: http://issues.apache.org/jira/browse/AXIS2-1721
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: transports
>    Affects Versions: 1.1
>            Reporter: Russell J. Nile
>
> I'm not sure if this is a bug but I am receiving a remote exception indicating:
> org.apache.axis2.AxisFault: Content type should be one of /n text/xml/n application/x-www-form-urlencoded/n multipart/related; nested exception is: 
> 	org.apache.axis2.AxisFault: Content type should be one of /n text/xml/n application/x-www-form-urlencoded/n multipart/related
> the content-type set on the request is set to "application/soap+xml"
>  >> "POST /O2CServiceContainer/services/EventRecorder HTTP/1.1[\r][\n]"
> =,2006-11-16, 07:34:44:715, [main], Adding Host request header
> =,2006-11-16, 07:34:44:730, [main], >> "User-Agent: Axis2[\r][\n]"
> =,2006-11-16, 07:34:44:730, [main], >> "Host: localhost:9080[\r][\n]"
> =,2006-11-16, 07:34:44:730, [main], >> "Transfer-Encoding: chunked[\r][\n]"
> =,2006-11-16, 07:34:44:730, [main], >> "Content-Type: application/soap+xml; charset=UTF-8;action="urn:recordEvent";[\r][\n]"
> =,2006-11-16, 07:34:44:730, [main], >> "[\r][\n]"
> I'm not sure what I can do to change this.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] Commented: (AXIS2-1721) Invalid content type on request

Posted by "Ryan Groe (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS2-1721?page=comments#action_12454211 ] 
            
Ryan Groe commented on AXIS2-1721:
----------------------------------

I realize that there are likely a bunch of causes for this and I am an axis novice, but I was able to fix this problem by setting enableRESTInAxis2MainServlet to false (which is the default value).  I had set it to true to do some quick web testing and didn't realize it would be a problem.

> Invalid content type on request
> -------------------------------
>
>                 Key: AXIS2-1721
>                 URL: http://issues.apache.org/jira/browse/AXIS2-1721
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: transports
>    Affects Versions: 1.1
>            Reporter: Russell J. Nile
>
> I'm not sure if this is a bug but I am receiving a remote exception indicating:
> org.apache.axis2.AxisFault: Content type should be one of /n text/xml/n application/x-www-form-urlencoded/n multipart/related; nested exception is: 
> 	org.apache.axis2.AxisFault: Content type should be one of /n text/xml/n application/x-www-form-urlencoded/n multipart/related
> the content-type set on the request is set to "application/soap+xml"
>  >> "POST /O2CServiceContainer/services/EventRecorder HTTP/1.1[\r][\n]"
> =,2006-11-16, 07:34:44:715, [main], Adding Host request header
> =,2006-11-16, 07:34:44:730, [main], >> "User-Agent: Axis2[\r][\n]"
> =,2006-11-16, 07:34:44:730, [main], >> "Host: localhost:9080[\r][\n]"
> =,2006-11-16, 07:34:44:730, [main], >> "Transfer-Encoding: chunked[\r][\n]"
> =,2006-11-16, 07:34:44:730, [main], >> "Content-Type: application/soap+xml; charset=UTF-8;action="urn:recordEvent";[\r][\n]"
> =,2006-11-16, 07:34:44:730, [main], >> "[\r][\n]"
> I'm not sure what I can do to change this.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] Updated: (AXIS2-1721) Invalid content type on request

Posted by "Davanum Srinivas (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-1721?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Davanum Srinivas updated AXIS2-1721:
------------------------------------

    Assignee: Deepal Jayasinghe

> Invalid content type on request
> -------------------------------
>
>                 Key: AXIS2-1721
>                 URL: https://issues.apache.org/jira/browse/AXIS2-1721
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: transports
>    Affects Versions: 1.1
>            Reporter: Russell J. Nile
>         Assigned To: Deepal Jayasinghe
>
> I'm not sure if this is a bug but I am receiving a remote exception indicating:
> org.apache.axis2.AxisFault: Content type should be one of /n text/xml/n application/x-www-form-urlencoded/n multipart/related; nested exception is: 
> 	org.apache.axis2.AxisFault: Content type should be one of /n text/xml/n application/x-www-form-urlencoded/n multipart/related
> the content-type set on the request is set to "application/soap+xml"
>  >> "POST /O2CServiceContainer/services/EventRecorder HTTP/1.1[\r][\n]"
> =,2006-11-16, 07:34:44:715, [main], Adding Host request header
> =,2006-11-16, 07:34:44:730, [main], >> "User-Agent: Axis2[\r][\n]"
> =,2006-11-16, 07:34:44:730, [main], >> "Host: localhost:9080[\r][\n]"
> =,2006-11-16, 07:34:44:730, [main], >> "Transfer-Encoding: chunked[\r][\n]"
> =,2006-11-16, 07:34:44:730, [main], >> "Content-Type: application/soap+xml; charset=UTF-8;action="urn:recordEvent";[\r][\n]"
> =,2006-11-16, 07:34:44:730, [main], >> "[\r][\n]"
> I'm not sure what I can do to change this.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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