Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Getting null pointer exception in IDA call

    Hi,

    I am using SmartGwt EE 2.4 and IE8 at client side.

    Getting null pointer exception while making IDA call for a huge amount of data to save/send from client (browser).

    This issue is only happening when saving large volume of data, working fine with other conditions. the application is trying to save jason encoded html string.

    Its being observed in Fiddler that there are no post parameters being passed in the IDA request (only for this perticular situation).

    thanks and regards,
    Iqbal

    following is the stack trace:
    ==========================================================
    === 2011-04-07 15:21:00,622 [or20] INFO RequestContext - URL: '/conflict/confli
    ctsreview/sc/IDACall', User-Agent: 'Mozilla/4.0 (compatible; MSIE 7.0; Windows N
    T 5.1; Trident/4.0; .NET CLR 1.0.3705; .NET CLR 1.1.4322; .NET CLR 2.0.50727; In
    foPath.1; .NET CLR 3.0.04506.30; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)': M
    SIE with Accept-Encoding header, ready for compressed JS
    === 2011-04-07 15:21:00,653 [or20] ERROR IDACall - Top-level servlet error:
    java.lang.NullPointerException
    at org.apache.catalina.connector.Request.parseParameters(Request.java:23
    40)
    at org.apache.catalina.connector.Request.getParameter(Request.java:996)
    at org.apache.catalina.connector.RequestFacade.getParameter(RequestFacad
    e.java:343)
    at javax.servlet.ServletRequestWrapper.getParameter(ServletRequestWrappe
    r.java:157)
    at com.isomorphic.rpc.RPCManager.initLog(RPCManager.java:329)
    at com.isomorphic.rpc.RPCManager.<init>(RPCManager.java:284)
    at com.isomorphic.rpc.RPCManager.<init>(RPCManager.java:271)
    at com.isomorphic.servlet.IDACall.processRequest(IDACall.java:90)
    at com.isomorphic.servlet.IDACall.doPost(IDACall.java:54)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
    at com.isomorphic.servlet.BaseServlet.service(BaseServlet.java:152)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
    icationFilterChain.java:252)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
    ilterChain.java:173)
    at com.barcap.gsdc.commons.filter.ResponseHeaderFilter.doFilter(Response
    HeaderFilter.java:42)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
    icationFilterChain.java:202)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
    ilterChain.java:173)
    at com.barcap.compliance.conflict.authorization.servletfilter.Authorizat
    ionFilter.doFilter(AuthorizationFilter.java:41)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
    icationFilterChain.java:202)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
    ilterChain.java:173)
    at com.wedgetail.idm.sso.AuthFilter.doFilter(AuthFilter.java:149)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
    icationFilterChain.java:202)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
    ilterChain.java:173)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
    alve.java:213)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
    alve.java:178)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
    ava:126)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
    ava:105)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
    ve.java:107)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
    a:148)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
    :856)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce
    ssConnection(Http11Protocol.java:744)
    at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpo
    int.java:527)
    at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFol
    lowerWorkerThread.java:80)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
    ool.java:684)
    at java.lang.Thread.run(Thread.java:595)

    #2
    One of the possible causes may be that there is a limit on the amount of Data that can be sent in a Request. For Tomcat , the default limit is set to 2MB , you can tweak this property to suit your requirement.

    Hope this helps.

    Comment

    Working...
    X