java.lang.IllegalArgumentException: Request header is too large

Oracle Community | ariskk | 6 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Request header is too large

    Oracle Community | 6 years ago | ariskk
    java.lang.IllegalArgumentException: Request header is too large
  2. 0

    Cannot convert conversation of type class java.lang.String to interface java.util.Map

    Stack Overflow | 1 year ago | nagaraju
    java.lang.IllegalArgumentException: Cannot convert conversation of type class java.lang.String to interface java.util.Map
  3. 0

    JPA Problem using alias for columns in a query

    Oracle Community | 7 years ago | 843833
    java.lang.IllegalArgumentException: An exception occurred while creating a query in EntityManager: Exception Description: Syntax error parsing the query [SELECT NEW vo.VOOperacionesAgrupadas (o.nemotecnico as nemotecnico, o.esCompra as esCompra, i.equivUltimo as equivUltimo, sum(o.saldo) as saldo, sum(o.utilidad) as utilidad, sum(o.tasaCompraVenta)/count(o.nemotecnico) as promedioTasaCompra, (i.equivUltimo-sum(o.tasaCompraVenta)/count(o.nemotecnico))*100 as puntosBasicos) FROM Operaciones o, Instrumentos i WHERE o.idUsuario = :idUsuario AND o.nemotecnico = i.nemotecnico AND o.estaCerrada = 'false' Group by o.nemotecnico, o.esCompra, i.equivUltimo], line 1, column 53: syntax error at [as]. Internal Exception: MismatchedTokenException(8!=82) ... ...
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Running a standalone instance of grizzly, It's possible to spot this exception by sending a malformed http post request using telnet: mag 29, 2013 11:31:53 AM com.sun.grizzly.http.ProcessorTask parseRequest SEVERE: GRIZZLY0042: Error creating internal request. java.lang.IllegalArgumentException at com.sun.grizzly.util.http.MimeHeaders.getUniqueValue(MimeHeaders.java:365) at com.sun.grizzly.tcp.Request.getContentLengthLong(Request.java:377) at com.sun.grizzly.http.ProcessorTask.prepareRequest(ProcessorTask.java:1477) at com.sun.grizzly.http.ProcessorTask.parseRequest(ProcessorTask.java:948) at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:707) at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1036) at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:231) at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90) at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79) at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54) at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59) at com.sun.grizzly.ContextTask.run(ContextTask.java:71) at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532) at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513) at java.lang.Thread.run(Thread.java:722) Here is the malformed post request: -------------------[snippet]-----------[snippet]-----------[snippet]----------------- POST /gs HTTP/1.1 Host: localhost:5002 Content-Type: text/plain Content-Length: 40 aaaaabbbbbaaaaabbbbbaaaaabbbbbaaaaabbbbb POST /gs HTTP/1.1 Host: localhost:5002 Content-Type: text/plain Content-Length: 40 aaaaabbbbbaaaaabbbbbaaaaabbbbbaaaaabbbbb POST /gs HTTP/1.1 Host: localhost:5002 Content-Type: text/plain Content-Length: 40 aaaaabbbbbaaaaabbbbbaaaaabbbbbaaaaabbbbb POST /gs HTTP/1.1 Host: localhost:5002 Content-Type: text/plain Content-Length: 40 aaaaabbbbbaaaaabbbbbaaaaabbbbbaaaaabbbbb POST /gs HTTP/1.1 Host: localhost:5002 Content-Type: text/plain Content-Length: 40 -------------------[snippet]-----------[snippet]-----------[snippet]----------------- GrizzlyTestError.java -------------------[snippet]-----------[snippet]-----------[snippet]----------------- package test; import java.io.IOException; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import com.sun.grizzly.http.embed.GrizzlyWebServer; import com.sun.grizzly.http.servlet.ServletAdapter; public class GrizzlyTestError { /** * @author Daniele Spagnulo * @param args * @throws IOException */ public static void main(String[] args) throws IOException { GrizzlyWebServer server = new GrizzlyWebServer(5002); server.setCoreThreads(25); server.setMaxThreads(100); ServletAdapter adapter = new ServletAdapter( new HttpServlet() { private static final long serialVersionUID = 6610532824368397176L; @Override protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException,IOException { System.out.println("Request from: "+req.getRemoteAddr()); } }); server.addGrizzlyAdapter(adapter, new String[]{"/"}); server.start(); } } -------------------[snippet]-----------[snippet]-----------[snippet]-----------------

    Java.net JIRA | 4 years ago | xar
    java.lang.IllegalArgumentException
  6. 0

    Universal Image Loader : IllegalArgumentException when using FileNameGenerator with extension

    Stack Overflow | 2 years ago
    java.lang.IllegalArgumentException: keys must match regex [a-z0-9_-] {1,64}: "1828294.jpg" at com.nostra13.universalimageloader.cache.disc.impl.ext.DiskLruCache.valida teKey(DiskLruCache.java:697) at com.nostra13.universalimageloader.cache.disc.impl.ext.DiskLruCache.get(Di skLruCache.java:414) at com.nostra13.universalimageloader.cache.disc.impl.ext.LruDiscCache.get(Lr uDiscCache.java:133) at com.nostra13.universalimageloader.core.ImageLoaderEngine$1.run(ImageLoade rEngine.java:72) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java :1112) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.jav a:587)

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      Request header is too large

      at com.sun.grizzly.tcp.http11.InternalInputBuffer.fill()
    2. Grizzly WS
      AbstractThreadPool$Worker.run
      1. com.sun.grizzly.tcp.http11.InternalInputBuffer.fill(InternalInputBuffer.java:756)
      2. com.sun.grizzly.tcp.http11.InternalInputBuffer.parseRequestLine(InternalInputBuffer.java:393)
      3. com.sun.grizzly.http.ProcessorTask.parseRequest(ProcessorTask.java:821)
      4. com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:659)
      5. com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:954)
      6. com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:170)
      7. com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:135)
      8. com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:102)
      9. com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:88)
      10. com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)
      11. com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:53)
      12. com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57)
      13. com.sun.grizzly.ContextTask.run(ContextTask.java:69)
      14. com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:330)
      15. com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:309)
      15 frames
    3. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:619)
      1 frame