java.lang.StackOverflowError

Spring JIRA | Christian Stangier | 8 years ago
  1. 0

    When executing Spring-Javascript calls, I'm receiving a StackOverflowError: java.lang.StackOverflowError at java.util.HashMap.put(HashMap.java:372) at org.springframework.js.ajax.tiles2.AjaxTilesView.flattenAttributeMap(AjaxTilesView.java:126) at org.springframework.js.ajax.tiles2.AjaxTilesView.flattenAttributeMap(AjaxTilesView.java:128) at org.springframework.js.ajax.tiles2.AjaxTilesView.flattenAttributeMap(AjaxTilesView.java:128) at org.springframework.js.ajax.tiles2.AjaxTilesView.flattenAttributeMap(AjaxTilesView.java:128) [...] This is my tiles definition: <!DOCTYPE tiles-definitions PUBLIC "-//Apache Software Foundation//DTD Tiles Configuration 2.0//EN" "http://tiles.apache.org/dtds/tiles-config_2_0.dtd"> <tiles-definitions> <definition name="abstractDefinition"> <put-attribute name="notnull" value="notnull" /> <put-attribute name="bodyOnLoad" value="" /> </definition> <!-- The minimized layout for users which aren't logged in --> <definition name="simplePageLayout" extends="abstractDefinition" template="/WEB-INF/jsp/views/simplePageLayout.jsp"> <put-attribute name="viewId" type="string" value="not defined!!"/> <put-attribute name="header" value="/WEB-INF/jsp/fragments/header.jsp"/> <put-attribute name="content" value=""/> <put-attribute name="footer" value="/WEB-INF/jsp/fragments/footer.jsp"/> <put-list-attribute name="cssDefinitions"> <add-attribute type="string" value="/stylesheets/design.css"/> </put-list-attribute> <put-list-attribute name="javascripts"> <add-attribute type="string" value="/resources/spring/Spring.js"/> <add-attribute type="string" value="/resources/spring/Spring-Dojo.js"/> <add-attribute type="string" value="/js/jquery.js"/> <add-attribute type="string" value="/js/custom.js"/> </put-list-attribute> </definition> <!-- The default page layout which is extended for each view --> <definition name="defaultPageLayout" extends="abstractDefinition" template="/WEB-INF/jsp/views/defaultPageLayout.jsp"> <put-attribute name="viewId" type="string" value="not defined!!"/> <put-attribute name="header" value="/WEB-INF/jsp/fragments/header.jsp"/> <put-attribute name="leftColumn" value="leftColumn"/> <put-attribute name="breadcrumb" value=""/> <put-attribute name="content" value=""/> <put-attribute name="rightColumn" value="rightColumn" /> <put-attribute name="footer" value="/WEB-INF/jsp/fragments/footer.jsp"/> <put-list-attribute name="cssDefinitions"> <add-attribute type="string" value="/resources/dijit/themes/dijit.css"/> <add-attribute type="string" value="/stylesheets/design.css"/> </put-list-attribute> <put-list-attribute name="javascripts"> <add-attribute type="string" value="/resources/spring/Spring.js"/> <add-attribute type="string" value="/resources/spring/Spring-Dojo.js"/> <add-attribute type="string" value="/js/jquery.js"/> <add-attribute type="string" value="/js/custom.js"/> </put-list-attribute> </definition> <!-- Fragments --> <definition name="leftColumn" extends="abstractDefinition" template="/WEB-INF/jsp/fragments/leftColumn.jsp"> </definition> <definition name="rightColumn" extends="abstractDefinition" template="/WEB-INF/jsp/fragments/rightColumn.jsp"> <put-attribute name="welcome" value="/WEB-INF/jsp/fragments/welcome.jsp"/> <put-attribute name="jobData" value="/WEB-INF/jsp/fragments/jobData.jsp"/> <put-attribute name="userActions" value="/WEB-INF/jsp/fragments/userActions.jsp"/> <put-attribute name="shoppingCart" value="/WEB-INF/jsp/fragments/shoppingCart.jsp"/> </definition> <!-- Views --> <definition name="securityTest" extends="simplePageLayout"> <put-attribute name="viewId" type="string" value="securityTest"/> <put-attribute name="title" type="string" value="AXI - Login" /> <put-attribute name="content" value="/WEB-INF/jsp/views/securityTest.jsp" /> </definition> <definition name="login" extends="simplePageLayout"> <put-attribute name="viewId" type="string" value="login"/> <!-- put-attribute name="bodyOnLoad" value="onload='autologinFunction()'" / --> <put-attribute name="title" type="string" value="AXI - Login" /> <put-attribute name="content" value="/WEB-INF/jsp/views/login.jsp" /> </definition> <definition name="accountSelection" extends="simplePageLayout"> <put-attribute name="viewId" type="string" value="accountSelection"/> <!-- put-attribute name="bodyOnLoad" value="onload='autologinFunction()'" / --> <put-attribute name="title" type="string" value="AXI - Select your account" /> <put-attribute name="content" value="/WEB-INF/jsp/views/accountSelection.jsp" /> </definition> <definition name="logout" extends="simplePageLayout"> <put-attribute name="viewId" type="string" value="logout"/> <put-attribute name="title" type="string" value="AXI - Logout" /> <put-attribute name="content" value="/WEB-INF/jsp/views/logout.jsp" /> </definition> <definition name="home" extends="defaultPageLayout"> <put-attribute name="viewId" type="string" value="home"/> <put-attribute name="title" type="string" value="AXI Home." /> <put-attribute name="content" value="/WEB-INF/jsp/views/home.jsp" /> <put-attribute name="breadcrumb" value="/WEB-INF/jsp/fragments/breadcrumb.jsp"/> </definition> <definition name="productOverview" extends="defaultPageLayout"> <put-attribute name="viewId" type="string" value="productOverview"/> <put-attribute name="title" type="string" value="This is productOverview" /> <put-attribute name="content" value="/WEB-INF/jsp/views/productOverview.jsp" /> <put-attribute name="breadcrumb" value="/WEB-INF/jsp/fragments/breadcrumb.jsp"/> </definition> <definition name="serviceOverview" extends="defaultPageLayout"> <put-attribute name="viewId" type="string" value="serviceOverview"/> <put-attribute name="title" type="string" value="This is productOverview" /> <put-attribute name="content" value="/WEB-INF/jsp/views/serviceOverview.jsp" /> <put-attribute name="breadcrumb" value="/WEB-INF/jsp/fragments/breadcrumb.jsp"/> </definition> <definition name="cart" extends="defaultPageLayout"> <put-attribute name="title" type="string" value="This is the shopping cart"/> <put-attribute name="content" value="/WEB-INF/jsp/views/cart.jsp" /> <put-attribute name="breadcrumb" value="/WEB-INF/jsp/fragments/breadcrumb.jsp"/> </definition> <definition name="searchResult" extends="defaultPageLayout"> <put-attribute name="viewId" type="string" value="searchResult"/> <put-attribute name="title" type="string" value="Suchergebnis" /> <put-attribute name="content" value="/WEB-INF/jsp/views/searchResult.jsp" /> <put-attribute name="breadcrumb" value="" /> </definition> </tiles-definitions> Can you reproduce this error?

    Spring JIRA | 8 years ago | Christian Stangier
    java.lang.StackOverflowError
  2. 0

    When executing Spring-Javascript calls, I'm receiving a StackOverflowError: java.lang.StackOverflowError at java.util.HashMap.put(HashMap.java:372) at org.springframework.js.ajax.tiles2.AjaxTilesView.flattenAttributeMap(AjaxTilesView.java:126) at org.springframework.js.ajax.tiles2.AjaxTilesView.flattenAttributeMap(AjaxTilesView.java:128) at org.springframework.js.ajax.tiles2.AjaxTilesView.flattenAttributeMap(AjaxTilesView.java:128) at org.springframework.js.ajax.tiles2.AjaxTilesView.flattenAttributeMap(AjaxTilesView.java:128) [...] This is my tiles definition: <!DOCTYPE tiles-definitions PUBLIC "-//Apache Software Foundation//DTD Tiles Configuration 2.0//EN" "http://tiles.apache.org/dtds/tiles-config_2_0.dtd"> <tiles-definitions> <definition name="abstractDefinition"> <put-attribute name="notnull" value="notnull" /> <put-attribute name="bodyOnLoad" value="" /> </definition> <!-- The minimized layout for users which aren't logged in --> <definition name="simplePageLayout" extends="abstractDefinition" template="/WEB-INF/jsp/views/simplePageLayout.jsp"> <put-attribute name="viewId" type="string" value="not defined!!"/> <put-attribute name="header" value="/WEB-INF/jsp/fragments/header.jsp"/> <put-attribute name="content" value=""/> <put-attribute name="footer" value="/WEB-INF/jsp/fragments/footer.jsp"/> <put-list-attribute name="cssDefinitions"> <add-attribute type="string" value="/stylesheets/design.css"/> </put-list-attribute> <put-list-attribute name="javascripts"> <add-attribute type="string" value="/resources/spring/Spring.js"/> <add-attribute type="string" value="/resources/spring/Spring-Dojo.js"/> <add-attribute type="string" value="/js/jquery.js"/> <add-attribute type="string" value="/js/custom.js"/> </put-list-attribute> </definition> <!-- The default page layout which is extended for each view --> <definition name="defaultPageLayout" extends="abstractDefinition" template="/WEB-INF/jsp/views/defaultPageLayout.jsp"> <put-attribute name="viewId" type="string" value="not defined!!"/> <put-attribute name="header" value="/WEB-INF/jsp/fragments/header.jsp"/> <put-attribute name="leftColumn" value="leftColumn"/> <put-attribute name="breadcrumb" value=""/> <put-attribute name="content" value=""/> <put-attribute name="rightColumn" value="rightColumn" /> <put-attribute name="footer" value="/WEB-INF/jsp/fragments/footer.jsp"/> <put-list-attribute name="cssDefinitions"> <add-attribute type="string" value="/resources/dijit/themes/dijit.css"/> <add-attribute type="string" value="/stylesheets/design.css"/> </put-list-attribute> <put-list-attribute name="javascripts"> <add-attribute type="string" value="/resources/spring/Spring.js"/> <add-attribute type="string" value="/resources/spring/Spring-Dojo.js"/> <add-attribute type="string" value="/js/jquery.js"/> <add-attribute type="string" value="/js/custom.js"/> </put-list-attribute> </definition> <!-- Fragments --> <definition name="leftColumn" extends="abstractDefinition" template="/WEB-INF/jsp/fragments/leftColumn.jsp"> </definition> <definition name="rightColumn" extends="abstractDefinition" template="/WEB-INF/jsp/fragments/rightColumn.jsp"> <put-attribute name="welcome" value="/WEB-INF/jsp/fragments/welcome.jsp"/> <put-attribute name="jobData" value="/WEB-INF/jsp/fragments/jobData.jsp"/> <put-attribute name="userActions" value="/WEB-INF/jsp/fragments/userActions.jsp"/> <put-attribute name="shoppingCart" value="/WEB-INF/jsp/fragments/shoppingCart.jsp"/> </definition> <!-- Views --> <definition name="securityTest" extends="simplePageLayout"> <put-attribute name="viewId" type="string" value="securityTest"/> <put-attribute name="title" type="string" value="AXI - Login" /> <put-attribute name="content" value="/WEB-INF/jsp/views/securityTest.jsp" /> </definition> <definition name="login" extends="simplePageLayout"> <put-attribute name="viewId" type="string" value="login"/> <!-- put-attribute name="bodyOnLoad" value="onload='autologinFunction()'" / --> <put-attribute name="title" type="string" value="AXI - Login" /> <put-attribute name="content" value="/WEB-INF/jsp/views/login.jsp" /> </definition> <definition name="accountSelection" extends="simplePageLayout"> <put-attribute name="viewId" type="string" value="accountSelection"/> <!-- put-attribute name="bodyOnLoad" value="onload='autologinFunction()'" / --> <put-attribute name="title" type="string" value="AXI - Select your account" /> <put-attribute name="content" value="/WEB-INF/jsp/views/accountSelection.jsp" /> </definition> <definition name="logout" extends="simplePageLayout"> <put-attribute name="viewId" type="string" value="logout"/> <put-attribute name="title" type="string" value="AXI - Logout" /> <put-attribute name="content" value="/WEB-INF/jsp/views/logout.jsp" /> </definition> <definition name="home" extends="defaultPageLayout"> <put-attribute name="viewId" type="string" value="home"/> <put-attribute name="title" type="string" value="AXI Home." /> <put-attribute name="content" value="/WEB-INF/jsp/views/home.jsp" /> <put-attribute name="breadcrumb" value="/WEB-INF/jsp/fragments/breadcrumb.jsp"/> </definition> <definition name="productOverview" extends="defaultPageLayout"> <put-attribute name="viewId" type="string" value="productOverview"/> <put-attribute name="title" type="string" value="This is productOverview" /> <put-attribute name="content" value="/WEB-INF/jsp/views/productOverview.jsp" /> <put-attribute name="breadcrumb" value="/WEB-INF/jsp/fragments/breadcrumb.jsp"/> </definition> <definition name="serviceOverview" extends="defaultPageLayout"> <put-attribute name="viewId" type="string" value="serviceOverview"/> <put-attribute name="title" type="string" value="This is productOverview" /> <put-attribute name="content" value="/WEB-INF/jsp/views/serviceOverview.jsp" /> <put-attribute name="breadcrumb" value="/WEB-INF/jsp/fragments/breadcrumb.jsp"/> </definition> <definition name="cart" extends="defaultPageLayout"> <put-attribute name="title" type="string" value="This is the shopping cart"/> <put-attribute name="content" value="/WEB-INF/jsp/views/cart.jsp" /> <put-attribute name="breadcrumb" value="/WEB-INF/jsp/fragments/breadcrumb.jsp"/> </definition> <definition name="searchResult" extends="defaultPageLayout"> <put-attribute name="viewId" type="string" value="searchResult"/> <put-attribute name="title" type="string" value="Suchergebnis" /> <put-attribute name="content" value="/WEB-INF/jsp/views/searchResult.jsp" /> <put-attribute name="breadcrumb" value="" /> </definition> </tiles-definitions> Can you reproduce this error?

    Spring JIRA | 8 years ago | Christian Stangier
    java.lang.StackOverflowError
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    World won't load with AetherCraft

    GitHub | 2 years ago | cammylamberth
    java.lang.StackOverflowError
  5. 0

    Detect cyclic references (@Embedded) [moved]

    GitHub | 4 years ago | jyemin
    java.lang.StackOverflowError

    2 unregistered visitors
    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.StackOverflowError

      No message provided

      at java.util.HashMap.put()
    2. Java RT
      HashMap.put
      1. java.util.HashMap.put(HashMap.java:372)
      1 frame
    3. Spring JS
      AjaxTilesView.flattenAttributeMap
      1. org.springframework.js.ajax.tiles2.AjaxTilesView.flattenAttributeMap(AjaxTilesView.java:126)
      2. org.springframework.js.ajax.tiles2.AjaxTilesView.flattenAttributeMap(AjaxTilesView.java:128)
      3. org.springframework.js.ajax.tiles2.AjaxTilesView.flattenAttributeMap(AjaxTilesView.java:128)
      4. org.springframework.js.ajax.tiles2.AjaxTilesView.flattenAttributeMap(AjaxTilesView.java:128)
      4 frames