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 "Brian Husted (JIRA)" <ax...@ws.apache.org> on 2005/08/01 17:26:35 UTC

[jira] Created: (AXIS-2158) Error attempting to use DIME in Axis client

Error attempting to use DIME in Axis client
-------------------------------------------

         Key: AXIS-2158
         URL: http://issues.apache.org/jira/browse/AXIS-2158
     Project: Apache Axis
        Type: Bug
  Components: SAAJ  
    Versions: 1.2.1    
 Environment: Axis 1.2.1client running jdk1.4.2_05 and Tomcat 5.0 for server.
    Reporter: Brian Husted


Sending more than eight DIME chunks from an Axis client to Axis server results in the following error:

Caused by: java.io.IOException: End of physical stream detected when more DIME chunks expected. 
        at org.apache.axis.attachments.DimeDelimitedInputStream._read(DimeDelimitedInputStream.java:268) 
        at org.apache.axis.attachments.DimeDelimitedInputStream.read(DimeDelimitedInputStream.java:201) 
        at org.apache.axis.attachments.DimeDelimitedInputStream.read(DimeDelimitedInputStream.java:445) 
        at org.apache.axis.attachments.ManagedMemoryDataSource.<init>(ManagedMemoryDataSource.java:146) 
        at org.apache.axis.attachments.MultiPartDimeInputStream.readTillFound(MultiPartDimeInputStream.java:163) 
        ... 46 more 
        at org.apache.axis.encoding.DeserializationContext.getObjectByRef(DeserializationContext.java:619) 
        at org.apache.axis.encoding.ser.JAFDataHandlerDeserializer.startElement(JAFDataHandlerDeserializer.java:70) 
        at org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1048) 
        at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:165) 
        at org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:1141) 
        at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:236) 
        at org.apache.axis.message.RPCElement.getParams(RPCElement.java:384) 
        at org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:148) 
        at org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:323) 
        ... 33 more 


-- 
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


[jira] Commented: (AXIS-2158) Error attempting to use DIME in Axis client

Posted by "ravi (JIRA)" <ax...@ws.apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS-2158?page=comments#action_12358793 ] 

ravi commented on AXIS-2158:
----------------------------

Oleg,
  No, the target server is not using SSL, though we are using the basic http authentication.

Thanks again for your help
Ravi.

> Error attempting to use DIME in Axis client
> -------------------------------------------
>
>          Key: AXIS-2158
>          URL: http://issues.apache.org/jira/browse/AXIS-2158
>      Project: Apache Axis
>         Type: Bug
>   Components: SAAJ
>     Versions: 1.2.1
>  Environment: Axis 1.2.1client running jdk1.4.2_05 and Tomcat 5.0 for server.
>     Reporter: Brian Husted

>
> Sending more than eight DIME chunks from an Axis client to Axis server results in the following error:
> Caused by: java.io.IOException: End of physical stream detected when more DIME chunks expected. 
>         at org.apache.axis.attachments.DimeDelimitedInputStream._read(DimeDelimitedInputStream.java:268) 
>         at org.apache.axis.attachments.DimeDelimitedInputStream.read(DimeDelimitedInputStream.java:201) 
>         at org.apache.axis.attachments.DimeDelimitedInputStream.read(DimeDelimitedInputStream.java:445) 
>         at org.apache.axis.attachments.ManagedMemoryDataSource.<init>(ManagedMemoryDataSource.java:146) 
>         at org.apache.axis.attachments.MultiPartDimeInputStream.readTillFound(MultiPartDimeInputStream.java:163) 
>         ... 46 more 
>         at org.apache.axis.encoding.DeserializationContext.getObjectByRef(DeserializationContext.java:619) 
>         at org.apache.axis.encoding.ser.JAFDataHandlerDeserializer.startElement(JAFDataHandlerDeserializer.java:70) 
>         at org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1048) 
>         at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:165) 
>         at org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:1141) 
>         at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:236) 
>         at org.apache.axis.message.RPCElement.getParams(RPCElement.java:384) 
>         at org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:148) 
>         at org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:323) 
>         ... 33 more 

-- 
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


[jira] Updated: (AXIS-2158) Error attempting to use DIME in Axis client

Posted by "ravi (JIRA)" <ax...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS-2158?page=all ]

ravi updated AXIS-2158:
-----------------------

    Attachment: wirelog.txt

Oleg
  I am attaching the wire log (not sure this is it, but this is the output that i got when i enabled it). 

Thanks
Ravi

> Error attempting to use DIME in Axis client
> -------------------------------------------
>
>          Key: AXIS-2158
>          URL: http://issues.apache.org/jira/browse/AXIS-2158
>      Project: Apache Axis
>         Type: Bug
>   Components: SAAJ
>     Versions: 1.2.1
>  Environment: Axis 1.2.1client running jdk1.4.2_05 and Tomcat 5.0 for server.
>     Reporter: Brian Husted
>  Attachments: wirelog.txt
>
> Sending more than eight DIME chunks from an Axis client to Axis server results in the following error:
> Caused by: java.io.IOException: End of physical stream detected when more DIME chunks expected. 
>         at org.apache.axis.attachments.DimeDelimitedInputStream._read(DimeDelimitedInputStream.java:268) 
>         at org.apache.axis.attachments.DimeDelimitedInputStream.read(DimeDelimitedInputStream.java:201) 
>         at org.apache.axis.attachments.DimeDelimitedInputStream.read(DimeDelimitedInputStream.java:445) 
>         at org.apache.axis.attachments.ManagedMemoryDataSource.<init>(ManagedMemoryDataSource.java:146) 
>         at org.apache.axis.attachments.MultiPartDimeInputStream.readTillFound(MultiPartDimeInputStream.java:163) 
>         ... 46 more 
>         at org.apache.axis.encoding.DeserializationContext.getObjectByRef(DeserializationContext.java:619) 
>         at org.apache.axis.encoding.ser.JAFDataHandlerDeserializer.startElement(JAFDataHandlerDeserializer.java:70) 
>         at org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1048) 
>         at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:165) 
>         at org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:1141) 
>         at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:236) 
>         at org.apache.axis.message.RPCElement.getParams(RPCElement.java:384) 
>         at org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:148) 
>         at org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:323) 
>         ... 33 more 

-- 
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


[jira] Commented: (AXIS-2158) Error attempting to use DIME in Axis client

Posted by "ravi (JIRA)" <ax...@ws.apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS-2158?page=comments#action_12358785 ] 

ravi commented on AXIS-2158:
----------------------------

Brian,
  I did not document it. I guess credit should go to  Rodrigo Ruiz for documenting it. 

  I found another problem with this though. 
  When I run my client with a proxy server like squid, it runs into problems. 

  Squid gives the error message - (501)Not Implemented.

  This happens only when I use CommonsHTTPSender and does not happen with HTTPSender. Also, if I do not have a proxy server, it works perfectly. 

  Any help of the issue would help immensely.

Thanks a lot
Ravi.
 

> Error attempting to use DIME in Axis client
> -------------------------------------------
>
>          Key: AXIS-2158
>          URL: http://issues.apache.org/jira/browse/AXIS-2158
>      Project: Apache Axis
>         Type: Bug
>   Components: SAAJ
>     Versions: 1.2.1
>  Environment: Axis 1.2.1client running jdk1.4.2_05 and Tomcat 5.0 for server.
>     Reporter: Brian Husted

>
> Sending more than eight DIME chunks from an Axis client to Axis server results in the following error:
> Caused by: java.io.IOException: End of physical stream detected when more DIME chunks expected. 
>         at org.apache.axis.attachments.DimeDelimitedInputStream._read(DimeDelimitedInputStream.java:268) 
>         at org.apache.axis.attachments.DimeDelimitedInputStream.read(DimeDelimitedInputStream.java:201) 
>         at org.apache.axis.attachments.DimeDelimitedInputStream.read(DimeDelimitedInputStream.java:445) 
>         at org.apache.axis.attachments.ManagedMemoryDataSource.<init>(ManagedMemoryDataSource.java:146) 
>         at org.apache.axis.attachments.MultiPartDimeInputStream.readTillFound(MultiPartDimeInputStream.java:163) 
>         ... 46 more 
>         at org.apache.axis.encoding.DeserializationContext.getObjectByRef(DeserializationContext.java:619) 
>         at org.apache.axis.encoding.ser.JAFDataHandlerDeserializer.startElement(JAFDataHandlerDeserializer.java:70) 
>         at org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1048) 
>         at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:165) 
>         at org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:1141) 
>         at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:236) 
>         at org.apache.axis.message.RPCElement.getParams(RPCElement.java:384) 
>         at org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:148) 
>         at org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:323) 
>         ... 33 more 

-- 
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


[jira] Commented: (AXIS-2158) Error attempting to use DIME in Axis client

Posted by "Rodrigo Ruiz (JIRA)" <ax...@ws.apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS-2158?page=comments#action_12357379 ] 

Rodrigo Ruiz commented on AXIS-2158:
------------------------------------

BTW, this problem also affects to Axis 1.3 on Tomcat 5.5 with Sun JRE 1.5.0_05 on Windows XP SP2

> Error attempting to use DIME in Axis client
> -------------------------------------------
>
>          Key: AXIS-2158
>          URL: http://issues.apache.org/jira/browse/AXIS-2158
>      Project: Apache Axis
>         Type: Bug
>   Components: SAAJ
>     Versions: 1.2.1
>  Environment: Axis 1.2.1client running jdk1.4.2_05 and Tomcat 5.0 for server.
>     Reporter: Brian Husted

>
> Sending more than eight DIME chunks from an Axis client to Axis server results in the following error:
> Caused by: java.io.IOException: End of physical stream detected when more DIME chunks expected. 
>         at org.apache.axis.attachments.DimeDelimitedInputStream._read(DimeDelimitedInputStream.java:268) 
>         at org.apache.axis.attachments.DimeDelimitedInputStream.read(DimeDelimitedInputStream.java:201) 
>         at org.apache.axis.attachments.DimeDelimitedInputStream.read(DimeDelimitedInputStream.java:445) 
>         at org.apache.axis.attachments.ManagedMemoryDataSource.<init>(ManagedMemoryDataSource.java:146) 
>         at org.apache.axis.attachments.MultiPartDimeInputStream.readTillFound(MultiPartDimeInputStream.java:163) 
>         ... 46 more 
>         at org.apache.axis.encoding.DeserializationContext.getObjectByRef(DeserializationContext.java:619) 
>         at org.apache.axis.encoding.ser.JAFDataHandlerDeserializer.startElement(JAFDataHandlerDeserializer.java:70) 
>         at org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1048) 
>         at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:165) 
>         at org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:1141) 
>         at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:236) 
>         at org.apache.axis.message.RPCElement.getParams(RPCElement.java:384) 
>         at org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:148) 
>         at org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:323) 
>         ... 33 more 

-- 
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


[jira] Commented: (AXIS-2158) Error attempting to use DIME in Axis client

Posted by "Oleg Kalnichevski (JIRA)" <ax...@ws.apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS-2158?page=comments#action_12358813 ] 

Oleg Kalnichevski commented on AXIS-2158:
-----------------------------------------

Ravi,

If you want to have the maximum compatibility with all the (broken) proxies out there, forcing HttpClient to fall back onto HTTP/1.0 when sending requests via a proxy (or generally in response to status code 501) should be a reasonable thing to do. HttpClient 3.0 can be configured to use different settings (such as HTTP protocol version) on a per method / host / client level. For details see the HttpClient preference API guide:

http://jakarta.apache.org/commons/httpclient/preference-api.html

As far as Axis API is concerned I can't be of much help. 

Oleg

> Error attempting to use DIME in Axis client
> -------------------------------------------
>
>          Key: AXIS-2158
>          URL: http://issues.apache.org/jira/browse/AXIS-2158
>      Project: Apache Axis
>         Type: Bug
>   Components: SAAJ
>     Versions: 1.2.1
>  Environment: Axis 1.2.1client running jdk1.4.2_05 and Tomcat 5.0 for server.
>     Reporter: Brian Husted
>  Attachments: wirelog.txt
>
> Sending more than eight DIME chunks from an Axis client to Axis server results in the following error:
> Caused by: java.io.IOException: End of physical stream detected when more DIME chunks expected. 
>         at org.apache.axis.attachments.DimeDelimitedInputStream._read(DimeDelimitedInputStream.java:268) 
>         at org.apache.axis.attachments.DimeDelimitedInputStream.read(DimeDelimitedInputStream.java:201) 
>         at org.apache.axis.attachments.DimeDelimitedInputStream.read(DimeDelimitedInputStream.java:445) 
>         at org.apache.axis.attachments.ManagedMemoryDataSource.<init>(ManagedMemoryDataSource.java:146) 
>         at org.apache.axis.attachments.MultiPartDimeInputStream.readTillFound(MultiPartDimeInputStream.java:163) 
>         ... 46 more 
>         at org.apache.axis.encoding.DeserializationContext.getObjectByRef(DeserializationContext.java:619) 
>         at org.apache.axis.encoding.ser.JAFDataHandlerDeserializer.startElement(JAFDataHandlerDeserializer.java:70) 
>         at org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1048) 
>         at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:165) 
>         at org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:1141) 
>         at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:236) 
>         at org.apache.axis.message.RPCElement.getParams(RPCElement.java:384) 
>         at org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:148) 
>         at org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:323) 
>         ... 33 more 

-- 
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


[jira] Commented: (AXIS-2158) Error attempting to use DIME in Axis client

Posted by "ravi (JIRA)" <ax...@ws.apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS-2158?page=comments#action_12358814 ] 

ravi commented on AXIS-2158:
----------------------------

Oleg
  Thanks a lot for you help. I would have been going around in circles if not for you. At least now I know what the problem is. 
  
  Since I am not using HTTPClient directly (rather CommonsHTTPSender ? ), I am hoping that Axis will have an easy way of setting the http version.

Thanks again
Ravi.

> Error attempting to use DIME in Axis client
> -------------------------------------------
>
>          Key: AXIS-2158
>          URL: http://issues.apache.org/jira/browse/AXIS-2158
>      Project: Apache Axis
>         Type: Bug
>   Components: SAAJ
>     Versions: 1.2.1
>  Environment: Axis 1.2.1client running jdk1.4.2_05 and Tomcat 5.0 for server.
>     Reporter: Brian Husted
>  Attachments: wirelog.txt
>
> Sending more than eight DIME chunks from an Axis client to Axis server results in the following error:
> Caused by: java.io.IOException: End of physical stream detected when more DIME chunks expected. 
>         at org.apache.axis.attachments.DimeDelimitedInputStream._read(DimeDelimitedInputStream.java:268) 
>         at org.apache.axis.attachments.DimeDelimitedInputStream.read(DimeDelimitedInputStream.java:201) 
>         at org.apache.axis.attachments.DimeDelimitedInputStream.read(DimeDelimitedInputStream.java:445) 
>         at org.apache.axis.attachments.ManagedMemoryDataSource.<init>(ManagedMemoryDataSource.java:146) 
>         at org.apache.axis.attachments.MultiPartDimeInputStream.readTillFound(MultiPartDimeInputStream.java:163) 
>         ... 46 more 
>         at org.apache.axis.encoding.DeserializationContext.getObjectByRef(DeserializationContext.java:619) 
>         at org.apache.axis.encoding.ser.JAFDataHandlerDeserializer.startElement(JAFDataHandlerDeserializer.java:70) 
>         at org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1048) 
>         at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:165) 
>         at org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:1141) 
>         at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:236) 
>         at org.apache.axis.message.RPCElement.getParams(RPCElement.java:384) 
>         at org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:148) 
>         at org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:323) 
>         ... 33 more 

-- 
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


[jira] Commented: (AXIS-2158) Error attempting to use DIME in Axis client

Posted by "Oleg Kalnichevski (JIRA)" <ax...@ws.apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS-2158?page=comments#action_12358794 ] 

Oleg Kalnichevski commented on AXIS-2158:
-----------------------------------------

Ravi,

Send me (or post to httpclient-user list) the wire log of the HTTP session and I'll take a look at it

http://jakarta.apache.org/commons/httpclient/logging.html

Oleg

> Error attempting to use DIME in Axis client
> -------------------------------------------
>
>          Key: AXIS-2158
>          URL: http://issues.apache.org/jira/browse/AXIS-2158
>      Project: Apache Axis
>         Type: Bug
>   Components: SAAJ
>     Versions: 1.2.1
>  Environment: Axis 1.2.1client running jdk1.4.2_05 and Tomcat 5.0 for server.
>     Reporter: Brian Husted

>
> Sending more than eight DIME chunks from an Axis client to Axis server results in the following error:
> Caused by: java.io.IOException: End of physical stream detected when more DIME chunks expected. 
>         at org.apache.axis.attachments.DimeDelimitedInputStream._read(DimeDelimitedInputStream.java:268) 
>         at org.apache.axis.attachments.DimeDelimitedInputStream.read(DimeDelimitedInputStream.java:201) 
>         at org.apache.axis.attachments.DimeDelimitedInputStream.read(DimeDelimitedInputStream.java:445) 
>         at org.apache.axis.attachments.ManagedMemoryDataSource.<init>(ManagedMemoryDataSource.java:146) 
>         at org.apache.axis.attachments.MultiPartDimeInputStream.readTillFound(MultiPartDimeInputStream.java:163) 
>         ... 46 more 
>         at org.apache.axis.encoding.DeserializationContext.getObjectByRef(DeserializationContext.java:619) 
>         at org.apache.axis.encoding.ser.JAFDataHandlerDeserializer.startElement(JAFDataHandlerDeserializer.java:70) 
>         at org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1048) 
>         at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:165) 
>         at org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:1141) 
>         at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:236) 
>         at org.apache.axis.message.RPCElement.getParams(RPCElement.java:384) 
>         at org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:148) 
>         at org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:323) 
>         ... 33 more 

-- 
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


[jira] Commented: (AXIS-2158) Error attempting to use DIME in Axis client

Posted by "Brian Husted (JIRA)" <ax...@ws.apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS-2158?page=comments#action_12356898 ] 

Brian Husted commented on AXIS-2158:
------------------------------------

I agree that this is most likely an HTTP issue.  In all of the debugging that I performed, I couldn't find any bugs in the Axis DIME classes.  Ami's comments confirm my suspicions.

dims,

How do we proceed on this one?

Brian

> Error attempting to use DIME in Axis client
> -------------------------------------------
>
>          Key: AXIS-2158
>          URL: http://issues.apache.org/jira/browse/AXIS-2158
>      Project: Apache Axis
>         Type: Bug
>   Components: SAAJ
>     Versions: 1.2.1
>  Environment: Axis 1.2.1client running jdk1.4.2_05 and Tomcat 5.0 for server.
>     Reporter: Brian Husted

>
> Sending more than eight DIME chunks from an Axis client to Axis server results in the following error:
> Caused by: java.io.IOException: End of physical stream detected when more DIME chunks expected. 
>         at org.apache.axis.attachments.DimeDelimitedInputStream._read(DimeDelimitedInputStream.java:268) 
>         at org.apache.axis.attachments.DimeDelimitedInputStream.read(DimeDelimitedInputStream.java:201) 
>         at org.apache.axis.attachments.DimeDelimitedInputStream.read(DimeDelimitedInputStream.java:445) 
>         at org.apache.axis.attachments.ManagedMemoryDataSource.<init>(ManagedMemoryDataSource.java:146) 
>         at org.apache.axis.attachments.MultiPartDimeInputStream.readTillFound(MultiPartDimeInputStream.java:163) 
>         ... 46 more 
>         at org.apache.axis.encoding.DeserializationContext.getObjectByRef(DeserializationContext.java:619) 
>         at org.apache.axis.encoding.ser.JAFDataHandlerDeserializer.startElement(JAFDataHandlerDeserializer.java:70) 
>         at org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1048) 
>         at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:165) 
>         at org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:1141) 
>         at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:236) 
>         at org.apache.axis.message.RPCElement.getParams(RPCElement.java:384) 
>         at org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:148) 
>         at org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:323) 
>         ... 33 more 

-- 
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


[jira] Commented: (AXIS-2158) Error attempting to use DIME in Axis client

Posted by "Oleg Kalnichevski (JIRA)" <ax...@ws.apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS-2158?page=comments#action_12358789 ] 

Oleg Kalnichevski commented on AXIS-2158:
-----------------------------------------

> Squid gives the error message - (501)Not Implemented.

Are you using SSL when connecting to the target server?

Oleg

> Error attempting to use DIME in Axis client
> -------------------------------------------
>
>          Key: AXIS-2158
>          URL: http://issues.apache.org/jira/browse/AXIS-2158
>      Project: Apache Axis
>         Type: Bug
>   Components: SAAJ
>     Versions: 1.2.1
>  Environment: Axis 1.2.1client running jdk1.4.2_05 and Tomcat 5.0 for server.
>     Reporter: Brian Husted

>
> Sending more than eight DIME chunks from an Axis client to Axis server results in the following error:
> Caused by: java.io.IOException: End of physical stream detected when more DIME chunks expected. 
>         at org.apache.axis.attachments.DimeDelimitedInputStream._read(DimeDelimitedInputStream.java:268) 
>         at org.apache.axis.attachments.DimeDelimitedInputStream.read(DimeDelimitedInputStream.java:201) 
>         at org.apache.axis.attachments.DimeDelimitedInputStream.read(DimeDelimitedInputStream.java:445) 
>         at org.apache.axis.attachments.ManagedMemoryDataSource.<init>(ManagedMemoryDataSource.java:146) 
>         at org.apache.axis.attachments.MultiPartDimeInputStream.readTillFound(MultiPartDimeInputStream.java:163) 
>         ... 46 more 
>         at org.apache.axis.encoding.DeserializationContext.getObjectByRef(DeserializationContext.java:619) 
>         at org.apache.axis.encoding.ser.JAFDataHandlerDeserializer.startElement(JAFDataHandlerDeserializer.java:70) 
>         at org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1048) 
>         at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:165) 
>         at org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:1141) 
>         at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:236) 
>         at org.apache.axis.message.RPCElement.getParams(RPCElement.java:384) 
>         at org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:148) 
>         at org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:323) 
>         ... 33 more 

-- 
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


[jira] Commented: (AXIS-2158) Error attempting to use DIME in Axis client

Posted by "Rodrigo Ruiz (JIRA)" <ax...@ws.apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS-2158?page=comments#action_12357376 ] 

Rodrigo Ruiz commented on AXIS-2158:
------------------------------------

Hi, I have been experiencing the same problem. Using CommonsHTTPSender solved it for me too. I have successfully executed the EchoAttachment sample even with a 5Gb file.

IMHO, this problem and its solution should, at first, be documented.
I have added an explanation on the Wiki, on the FrontPage/Axis/AttachmentProblems page.

What about adding the information to one of the guides? I am not sure about which one suits better. Maybe adding an "Attachments" section to the user's guide?

Anyway, if using CommonsHTTPSender solves the problem, it seems to be a bug in HTTPSender or any of the classes related to it.

Rodrigo Ruiz

> Error attempting to use DIME in Axis client
> -------------------------------------------
>
>          Key: AXIS-2158
>          URL: http://issues.apache.org/jira/browse/AXIS-2158
>      Project: Apache Axis
>         Type: Bug
>   Components: SAAJ
>     Versions: 1.2.1
>  Environment: Axis 1.2.1client running jdk1.4.2_05 and Tomcat 5.0 for server.
>     Reporter: Brian Husted

>
> Sending more than eight DIME chunks from an Axis client to Axis server results in the following error:
> Caused by: java.io.IOException: End of physical stream detected when more DIME chunks expected. 
>         at org.apache.axis.attachments.DimeDelimitedInputStream._read(DimeDelimitedInputStream.java:268) 
>         at org.apache.axis.attachments.DimeDelimitedInputStream.read(DimeDelimitedInputStream.java:201) 
>         at org.apache.axis.attachments.DimeDelimitedInputStream.read(DimeDelimitedInputStream.java:445) 
>         at org.apache.axis.attachments.ManagedMemoryDataSource.<init>(ManagedMemoryDataSource.java:146) 
>         at org.apache.axis.attachments.MultiPartDimeInputStream.readTillFound(MultiPartDimeInputStream.java:163) 
>         ... 46 more 
>         at org.apache.axis.encoding.DeserializationContext.getObjectByRef(DeserializationContext.java:619) 
>         at org.apache.axis.encoding.ser.JAFDataHandlerDeserializer.startElement(JAFDataHandlerDeserializer.java:70) 
>         at org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1048) 
>         at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:165) 
>         at org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:1141) 
>         at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:236) 
>         at org.apache.axis.message.RPCElement.getParams(RPCElement.java:384) 
>         at org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:148) 
>         at org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:323) 
>         ... 33 more 

-- 
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


[jira] Commented: (AXIS-2158) Error attempting to use DIME in Axis client

Posted by "Brian Husted (JIRA)" <ax...@ws.apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS-2158?page=comments#action_12358737 ] 

Brian Husted commented on AXIS-2158:
------------------------------------

Thanks for documenting this issue Ravi.  We need to add your link on the FAQ.  This is going to be a common problem and a simple solution.

> Error attempting to use DIME in Axis client
> -------------------------------------------
>
>          Key: AXIS-2158
>          URL: http://issues.apache.org/jira/browse/AXIS-2158
>      Project: Apache Axis
>         Type: Bug
>   Components: SAAJ
>     Versions: 1.2.1
>  Environment: Axis 1.2.1client running jdk1.4.2_05 and Tomcat 5.0 for server.
>     Reporter: Brian Husted

>
> Sending more than eight DIME chunks from an Axis client to Axis server results in the following error:
> Caused by: java.io.IOException: End of physical stream detected when more DIME chunks expected. 
>         at org.apache.axis.attachments.DimeDelimitedInputStream._read(DimeDelimitedInputStream.java:268) 
>         at org.apache.axis.attachments.DimeDelimitedInputStream.read(DimeDelimitedInputStream.java:201) 
>         at org.apache.axis.attachments.DimeDelimitedInputStream.read(DimeDelimitedInputStream.java:445) 
>         at org.apache.axis.attachments.ManagedMemoryDataSource.<init>(ManagedMemoryDataSource.java:146) 
>         at org.apache.axis.attachments.MultiPartDimeInputStream.readTillFound(MultiPartDimeInputStream.java:163) 
>         ... 46 more 
>         at org.apache.axis.encoding.DeserializationContext.getObjectByRef(DeserializationContext.java:619) 
>         at org.apache.axis.encoding.ser.JAFDataHandlerDeserializer.startElement(JAFDataHandlerDeserializer.java:70) 
>         at org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1048) 
>         at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:165) 
>         at org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:1141) 
>         at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:236) 
>         at org.apache.axis.message.RPCElement.getParams(RPCElement.java:384) 
>         at org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:148) 
>         at org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:323) 
>         ... 33 more 

-- 
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


[jira] Commented: (AXIS-2158) Error attempting to use DIME in Axis client

Posted by "Oleg Kalnichevski (JIRA)" <ax...@ws.apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS-2158?page=comments#action_12358797 ] 

Oleg Kalnichevski commented on AXIS-2158:
-----------------------------------------

Try using HTTP/1.0. The version of Squid you are using (squid/2.5.STABLE1-20030121) is fairly outdated. It appears to not support the chunk encoding

Hope this helps

Oleg

> Error attempting to use DIME in Axis client
> -------------------------------------------
>
>          Key: AXIS-2158
>          URL: http://issues.apache.org/jira/browse/AXIS-2158
>      Project: Apache Axis
>         Type: Bug
>   Components: SAAJ
>     Versions: 1.2.1
>  Environment: Axis 1.2.1client running jdk1.4.2_05 and Tomcat 5.0 for server.
>     Reporter: Brian Husted
>  Attachments: wirelog.txt
>
> Sending more than eight DIME chunks from an Axis client to Axis server results in the following error:
> Caused by: java.io.IOException: End of physical stream detected when more DIME chunks expected. 
>         at org.apache.axis.attachments.DimeDelimitedInputStream._read(DimeDelimitedInputStream.java:268) 
>         at org.apache.axis.attachments.DimeDelimitedInputStream.read(DimeDelimitedInputStream.java:201) 
>         at org.apache.axis.attachments.DimeDelimitedInputStream.read(DimeDelimitedInputStream.java:445) 
>         at org.apache.axis.attachments.ManagedMemoryDataSource.<init>(ManagedMemoryDataSource.java:146) 
>         at org.apache.axis.attachments.MultiPartDimeInputStream.readTillFound(MultiPartDimeInputStream.java:163) 
>         ... 46 more 
>         at org.apache.axis.encoding.DeserializationContext.getObjectByRef(DeserializationContext.java:619) 
>         at org.apache.axis.encoding.ser.JAFDataHandlerDeserializer.startElement(JAFDataHandlerDeserializer.java:70) 
>         at org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1048) 
>         at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:165) 
>         at org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:1141) 
>         at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:236) 
>         at org.apache.axis.message.RPCElement.getParams(RPCElement.java:384) 
>         at org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:148) 
>         at org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:323) 
>         ... 33 more 

-- 
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


[jira] Commented: (AXIS-2158) Error attempting to use DIME in Axis client

Posted by "ravi (JIRA)" <ax...@ws.apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS-2158?page=comments#action_12358801 ] 

ravi commented on AXIS-2158:
----------------------------

Oleg
  Thanks for your help. Where do I set my program to use HTTP 1.0? 
  
  I have no control over the proxies, and my application has to work with all the proxies. 

Thanks
Ravi.

> Error attempting to use DIME in Axis client
> -------------------------------------------
>
>          Key: AXIS-2158
>          URL: http://issues.apache.org/jira/browse/AXIS-2158
>      Project: Apache Axis
>         Type: Bug
>   Components: SAAJ
>     Versions: 1.2.1
>  Environment: Axis 1.2.1client running jdk1.4.2_05 and Tomcat 5.0 for server.
>     Reporter: Brian Husted
>  Attachments: wirelog.txt
>
> Sending more than eight DIME chunks from an Axis client to Axis server results in the following error:
> Caused by: java.io.IOException: End of physical stream detected when more DIME chunks expected. 
>         at org.apache.axis.attachments.DimeDelimitedInputStream._read(DimeDelimitedInputStream.java:268) 
>         at org.apache.axis.attachments.DimeDelimitedInputStream.read(DimeDelimitedInputStream.java:201) 
>         at org.apache.axis.attachments.DimeDelimitedInputStream.read(DimeDelimitedInputStream.java:445) 
>         at org.apache.axis.attachments.ManagedMemoryDataSource.<init>(ManagedMemoryDataSource.java:146) 
>         at org.apache.axis.attachments.MultiPartDimeInputStream.readTillFound(MultiPartDimeInputStream.java:163) 
>         ... 46 more 
>         at org.apache.axis.encoding.DeserializationContext.getObjectByRef(DeserializationContext.java:619) 
>         at org.apache.axis.encoding.ser.JAFDataHandlerDeserializer.startElement(JAFDataHandlerDeserializer.java:70) 
>         at org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1048) 
>         at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:165) 
>         at org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:1141) 
>         at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:236) 
>         at org.apache.axis.message.RPCElement.getParams(RPCElement.java:384) 
>         at org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:148) 
>         at org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:323) 
>         ... 33 more 

-- 
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


[jira] Commented: (AXIS-2158) Error attempting to use DIME in Axis client

Posted by "Ami Fischman (JIRA)" <ax...@ws.apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS-2158?page=comments#action_12356880 ] 

Ami Fischman commented on AXIS-2158:
------------------------------------

I was seeing the same problem until I changed the wsdd on both client and server to use CommonsHTTPSender instead of HTTPSender.  Once I did this (and added commons-httpclient-3.0-rc3.jar) everything seems fine.  I modified the EchoAttachment sample to use a chunk size of 1024 bytes and files as big as 100M work fine.  Is there a repro case that still sees this behavior with CommonsHTTPSender?

> Error attempting to use DIME in Axis client
> -------------------------------------------
>
>          Key: AXIS-2158
>          URL: http://issues.apache.org/jira/browse/AXIS-2158
>      Project: Apache Axis
>         Type: Bug
>   Components: SAAJ
>     Versions: 1.2.1
>  Environment: Axis 1.2.1client running jdk1.4.2_05 and Tomcat 5.0 for server.
>     Reporter: Brian Husted

>
> Sending more than eight DIME chunks from an Axis client to Axis server results in the following error:
> Caused by: java.io.IOException: End of physical stream detected when more DIME chunks expected. 
>         at org.apache.axis.attachments.DimeDelimitedInputStream._read(DimeDelimitedInputStream.java:268) 
>         at org.apache.axis.attachments.DimeDelimitedInputStream.read(DimeDelimitedInputStream.java:201) 
>         at org.apache.axis.attachments.DimeDelimitedInputStream.read(DimeDelimitedInputStream.java:445) 
>         at org.apache.axis.attachments.ManagedMemoryDataSource.<init>(ManagedMemoryDataSource.java:146) 
>         at org.apache.axis.attachments.MultiPartDimeInputStream.readTillFound(MultiPartDimeInputStream.java:163) 
>         ... 46 more 
>         at org.apache.axis.encoding.DeserializationContext.getObjectByRef(DeserializationContext.java:619) 
>         at org.apache.axis.encoding.ser.JAFDataHandlerDeserializer.startElement(JAFDataHandlerDeserializer.java:70) 
>         at org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1048) 
>         at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:165) 
>         at org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:1141) 
>         at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:236) 
>         at org.apache.axis.message.RPCElement.getParams(RPCElement.java:384) 
>         at org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:148) 
>         at org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:323) 
>         ... 33 more 

-- 
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


[jira] Commented: (AXIS-2158) Error attempting to use DIME in Axis client

Posted by "ravi (JIRA)" <ax...@ws.apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS-2158?page=comments#action_12358226 ] 

ravi commented on AXIS-2158:
----------------------------

The solution given in 

http://wiki.apache.org/ws/FrontPage/Axis/AttachmentProblems

solves the problem.

Can this be made the default mode of transport?

Thanks 
Ravi.

> Error attempting to use DIME in Axis client
> -------------------------------------------
>
>          Key: AXIS-2158
>          URL: http://issues.apache.org/jira/browse/AXIS-2158
>      Project: Apache Axis
>         Type: Bug
>   Components: SAAJ
>     Versions: 1.2.1
>  Environment: Axis 1.2.1client running jdk1.4.2_05 and Tomcat 5.0 for server.
>     Reporter: Brian Husted

>
> Sending more than eight DIME chunks from an Axis client to Axis server results in the following error:
> Caused by: java.io.IOException: End of physical stream detected when more DIME chunks expected. 
>         at org.apache.axis.attachments.DimeDelimitedInputStream._read(DimeDelimitedInputStream.java:268) 
>         at org.apache.axis.attachments.DimeDelimitedInputStream.read(DimeDelimitedInputStream.java:201) 
>         at org.apache.axis.attachments.DimeDelimitedInputStream.read(DimeDelimitedInputStream.java:445) 
>         at org.apache.axis.attachments.ManagedMemoryDataSource.<init>(ManagedMemoryDataSource.java:146) 
>         at org.apache.axis.attachments.MultiPartDimeInputStream.readTillFound(MultiPartDimeInputStream.java:163) 
>         ... 46 more 
>         at org.apache.axis.encoding.DeserializationContext.getObjectByRef(DeserializationContext.java:619) 
>         at org.apache.axis.encoding.ser.JAFDataHandlerDeserializer.startElement(JAFDataHandlerDeserializer.java:70) 
>         at org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1048) 
>         at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:165) 
>         at org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:1141) 
>         at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:236) 
>         at org.apache.axis.message.RPCElement.getParams(RPCElement.java:384) 
>         at org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:148) 
>         at org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:323) 
>         ... 33 more 

-- 
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