Bilal-S / iis2tomcat

AJP Connector between Internet Information Services (IIS) and Apache Tomcat
http://www.boncode.net/boncode-connector
49 stars 32 forks source link

ACF2016 error #28

Closed davequested closed 7 years ago

davequested commented 7 years ago

Hi Bilal

I've started using your connector, which has been working great, many thanks. For some requests though I'm seeing these errors. It's like ACF2016 has thrown an error but the connector/iis can't return it or something:

Exception Details: System.Web.HttpException: Request timed out.

Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace: [HttpException (0x80004005): Request timed out.]

Any ideas?

Dave

davequested commented 7 years ago

I've dug further, it seems if I POST data from a form using enctype="multipart/form-data" that it hangs for ages then returns this error.

Bilal-S commented 7 years ago

Can you post your active config? http://localhost/a.cfm?BonCodeConfigList=true

Run this on server.

davequested commented 7 years ago

Hi Bilal

Here's my .settings file:

`

localhost 8016 False True True True True HTTP_X_FORWARDED_FOR 1 c:\temp

`

I get this error in the logs:

2016-09-25 14:16:49 BonCode AJP Connenctor version 1.0.29 2016-09-25 14:20:00 1.0.29 ERROR TCP Client level -- Server/Port:localhost/8016 Thread was being aborted. at BonCodeAJP13.BonCodeAJP13ServerConnection.ComunicateWithTomcat() at BonCodeAJP13.BonCodeAJP13ServerConnection.HandleConnection() at BonCodeAJP13.BonCodeAJP13ServerConnection.p_CreateConnection(BonCodeAJP13PacketCollection packetsToSend)

Bilal-S commented 7 years ago

OK. Thanks for sharing. Will have to recreate somehow. Are there any errors recorded in CF /Tomcat logs that you can find?

Also, can you help me create a test case. Requirements: ACF 2016, Post a form with enctype="multipart/form-data", can we use a blank post-to-page? Does a file need to be posted?

Thanks, Bilal

davequested commented 7 years ago

I've narrowed down the issue. If you create a test.cfm and put this code there:

<cfoutput>
    <form action="test.cfm?action=true" method="post" enctype="multipart/form-data">
        <button type="submit" name="submit">Submit</button>
    </form>
</cfoutput>

<cfif isDefined("url.action")>
    <cfdump var="#getHttpRequestData()#">
</cfif>

<cfabort>

It seems to hang when trying to getHttpRequestData() for a POST/multipart form submission

Bilal-S commented 7 years ago

Thanks Dave. That looks more like an Adobe specific behavior that I have to reverse engineer. Adobe adds their own spin to the protocol and behavior is not published.

davequested commented 7 years ago

Thanks for looking into this Bilal, appreciated. If it helps, using the WSCONFIG way that Adobe uses it works fine.

We want to use BonCode for performance, no horrible Jakarta folders everywhere and also that WSCONFIG doesn't work for all sites properly on ACF2016.

Bilal-S commented 7 years ago

No problem. Just going to take a bit longer to check out.

davequested commented 7 years ago

Thanks Bilal, if you need any more info just shout. Appreciate your efforts here.

Bilal-S commented 7 years ago

@davequested I did find and resolve this issue but I found something else with ACF2016 I need to investigate that is related. Will be a bit longer.

davequested commented 7 years ago

Fantastic Bilal, just give me a shout when you'd like me to test.

Bilal-S commented 7 years ago

Resolved. Please check 1.0.31 release.

davequested commented 7 years ago

Thank you sooooo much Bilal. All working as expected now. Appreciate the fix.

Bilal-S commented 7 years ago

closing.