Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

jrun error 413 header length too large

Community Beginner ,
Dec 14, 2010 Dec 14, 2010

hi there,

is there any way to check where this error originates? any coldfusion logs etc?

error: jrun error 413 header length too large

it's giving me complete headache

cheers,

Simon

16.2K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guide ,
Dec 14, 2010 Dec 14, 2010

Hi Simon,

Some more information would help. What operating system? What CF version and edition? Seeing JRun message perhaps what Java JVM version?

Hope that gets the solution started, Carl.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Dec 14, 2010 Dec 14, 2010

hi Carl,

I'm running cf9 on windows 7. working on little chat application which calls server every 5 seconds to check whether there are any  new messages. It saves current chat status to cookies too. At the earlier development stage it didn't interact with cookies and the error was not in presence. That would lead me to conclusion it has something to do with cookies. But I coded strict control over the size of it so it definitely does not exceed 4kb (actually I've trimmed it 2kb to test and yet receiving an error). Worth mentioning error does not come once application starts.

let's say I start conversation between two people (two different browsers) and IE randomly produces this error. It's completely not dependand on current cookie size as it appears randomly. sometimes when cookie is as little as 0.3kb. when it appears if I close the chat hence delete the cookie it continues working fine.

Internet explorer does not give me any error  explanation apart from that one line (in subject). Chrome however says it's a problem with cfinvoke. But the only cfinvoke function that runs constantly does not return anything as long as there are no messages so it doesn't make any sense why header length would be too large if it's returning absolutely nohing.

It's very complicated and i've already tested in so many ways but still can't originate what causes it. Therefore thought maybe there is some coldfusion log that would lead me to exactly what's happening at that very moment error occurs.

cheers,

Simon

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guide ,
Dec 14, 2010 Dec 14, 2010

Hi Simon,

The logs in - CFadminUI > Debugging & Logging > Log Files - maybe of assistance. I am keen to know if something is being added to Coldfusion9\runtime\logs\coldfusion-out.log and coldfusion-event.log?

HTH, Carl.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Dec 14, 2010 Dec 14, 2010

Carl,

I've checked coldfusion-out.log (s) and there's nothing related to my error at all. As well i've looked through all the log files in admin section and there's nothing. Can't believe i'm getting such error and it's not logged anywhere. I'll do some more testing tomorrow trying different length cookie values to check if it's of any difference.

it's 2:30 am now so time to get some sleep and clear my mind a bit ...

cheers,

Simon

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Dec 14, 2010 Dec 14, 2010

I've had thos before and it turned out to be the size of a cookie, which was caused by EXTJS

If you're able to repeat this, then you could try using Charles: http://www.charlesproxy.com/


This will let you see the request, then you get the 413 request, right click and edit the request. Take a look at the cookies tab, and delete the largest one then click execute, and see if it works. This is how I found the issue  and resolved it.

I can't see this being a CF Issue, are you using the built in Web Server or Apache? As it would be failing at the webserver level.

You might want to connect ColdFusion to Apache where you'll get a better and production ready webserver and some decent logs.

http://www.adobe.com/devnet/coldfusion/articles/setup_dev.html

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Dec 16, 2010 Dec 16, 2010

Hi Simon,

I had these error message.

In our Project, we use to process big XML file, that time we got this error.

We changed the built -in JVM to Java JVM, after that we did not get this error.

so dint look into why its coming as it was solved by changing the JVM.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guide ,
Dec 16, 2010 Dec 16, 2010

Hi Simon,

I am not entirely sure changing JVM is going to help however thought I would post some notes on how to do that.

Download from Oracle Java developer kit (not runtime):

http://www.oracle.com/technetwork/java/javase/downloads/index.html

Java JDK 1.6.0_23 is current (note I have not trialled that one on CF9 very much yet).

Install that via running EXE you downloaded - default install will be fine.

Stop CF - SERVICES.msc stop "ColdFusion 9 Application Server".

Take a copy of CF\runtime\bin\jvm.config - so you got a backup.

Edit CF\runtime\bin\jvm.config find line "java.home=" and comment it out eg:

#java.home=C:/ColdFusion9/runtime/jre

Add new line like so and save jvm.config:

java.home=C:/Program Files/Java/jdk1.6.0_23/jre

Note there the slashes and the location of the JRE (runtime) - you need to point to the one in JDK because the other JRE in C:\Program Files\Java\jre6 will be missing a DLL.

Start CF via SERVICES.msc.

HTH, Carl.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Dec 18, 2010 Dec 18, 2010
LATEST

Hey guys,

Thanks for all the advise given. I've been testing it for past few days and got the error only once (obviously when Charles soft was not running). But it seems to me that error comes only when I change the code and then without restarting try to do stuff again. Anyway, as there's no point for trying to change JVM as i'm not running my own online hosting service, therefore if that gonna sort my problem it may reappear once website is live.

I'll upload the application to my test website and try to run it then. Fingers crossed it's not going to produce any errors.

Thanks for help guys,

Simon

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources