FrameworkServlet.processRequest() has thrown a NestedServletException

org.springframework.web.util.NestedServletException
Javadoc
Subclass of {@link ServletException} that properly handles a root cause in terms of message and stacktrace, just like NestedChecked/RuntimeException does.

Note that the plain ServletException doesn't expose its root cause at all, neither in the exception message nor in printed stack traces! While this might be fixed in later Servlet API variants (which even differ per vendor for the same API version), it is not reliably available on Servlet 2.4 (the minimum version required by Spring 3.x), which is why we need to do it ourselves.

The similarity between this class and the NestedChecked/RuntimeException class is unavoidable, as this class needs to derive from ServletException. @author Juergen Hoeller @since 1.2.5 @see #getMessage @see #printStackTrace @see org.springframework.core.NestedCheckedException @see org.springframework.core.NestedRuntimeException

at org.springframework.web.servlet.FrameworkServlet.processRequest
(source)

Typical Exception Messages

  1. Request processing failed; nested exception is java.lang.NullPointerException
  2. Request processing failed; nested exception is javax.persistence.TransactionRequiredException: no transaction is in progress
  3. Request processing failed; nested exception is org.springframework.beans.FatalBeanException: Could not copy properties from source to target; nested exception is java.lang.reflect.InvocationTargetException
  4. Request processing failed; nested exception is java.lang.IllegalStateException: STREAM
  5. Request processing failed; nested exception is java.lang.IllegalArgumentException: Passed List had more than one value.
  6. Request processing failed; nested exception is org.springframework.dao.DataIntegrityViolationException: Hibernate operation: could not insert: [com.atlassian.crowd.model.directory.DirectoryImpl#327683]; SQL []; Violation of UNIQUE KEY constraint 'UQ__cwd_directory__3C69FB99'. Cannot insert duplicate key in object 'dbo.cwd_directory'.; nested exception is java.sql.SQLException: Violation of UNIQUE KEY constraint 'UQ__cwd_directory__3C69FB99'. Cannot insert duplicate key in object 'dbo.cwd_directory'.
  7. Request processing failed; nested exception is java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
  8. Request processing failed; nested exception is org.springframework.dao.DataAccessResourceFailureException: Timed out after 10000 ms while waiting for a server that matches AnyServerSelector{}. Client view of cluster state is {type=Unknown, servers=[{address=mongo:27017, type=Unknown, state=Connecting, exception={com.mongodb.MongoException$Network: Exception opening the socket}, caused by {java.net.UnknownHostException: mongo: unknown error}}]; nested exception is com.mongodb.MongoTimeoutException: Timed out after 10000 ms while waiting for a server that matches AnyServerSelector{}. Client view of cluster state is {type=Unknown, servers=[{address=mongo:27017, type=Unknown, state=Connecting, exception={com.mongodb.MongoException$Network: Exception opening the socket}, caused by {java.net.UnknownHostException: mongo: unknown error}}]
  9. Request processing failed; nested exception is java.lang.IllegalStateException: BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the ApplicationContext
  10. Request processing failed; nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet

Specific cases

External results for this pattern (143)

  1. brenuartvia GitHub3 days ago
    Request processing failed; nested exception is java.lang.RuntimeException: boom
    Show stack trace
  2. dennishendriksenvia GitHub2 weeks ago
    Request processing failed; nested exception is freemarker.core._TemplateModelException: An error has occurred when reading existing sub-variable "items"; see cause exception! The type of the containing value was: extended_hash+string (org.molgenis.ui.security.MolgenisUiMenuPermissionDecorator wrapped into f.e.b.StringModel) ---- FTL stack trace ("~" means nesting-related): - Failed at: #list menu.items as item [in template "molgenis-header.ftl" in macro "topmenu" at line 203, column 17] - Reached through: @topmenu molgenis_ui.getMenu(), plugi... [in template "molgenis-header.ftl" in macro "header" at line 111, column 13] - Reached through: @header [in template "view-staticcontent.ftl" at line 3, column 1] ----
    Show stack trace
  3. Request processing failed; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'FilterService': Unsatisfied dependency expressed through field 'filterDAO': Error creating bean with name 'FilterDAO' defined in file [C:\Users\andrev\Documents\kaiju_project\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\angularkaiju\WEB-INF\classes\com\motorola\gisele\persistence\moto4u\FilterDAO.class]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.motorola.gisele.persistence.moto4u.FilterDAO]: Constructor threw exception; nested exception is java.lang.NullPointerException; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'FilterDAO' defined in file [C:\Users\andrev\Documents\kaiju_project\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\angularkaiju\WEB-INF\classes\com\motorola\gisele\persistence\moto4u\FilterDAO.class]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.motorola.gisele.persistence.moto4u.FilterDAO]: Constructor threw exception; nested exception is java.lang.NullPointerException
    Show stack trace
  4. Request processing failed; nested exception is javax.persistence.TransactionRequiredException: no transaction is in progress
    Show stack trace
  5. Der Lun Ooivia Atlassian JIRA2 weeks ago
    Request processing failed; nested exception is org.springframework.dao.DataIntegrityViolationException: Hibernate operation: could not insert collection rows: [com.atlassian.crowd.model.directory.DirectoryImpl.attributes#98306]; SQL []; ORA-00001: unique constraint (CONF563.SYS_C0020803) violated ; nested exception is java.sql.SQLIntegrityConstraintViolationException: ORA-00001: unique constraint (CONF563.SYS_C0020803) violated
    Show stack trace
  6. user24816via GitHub2 weeks ago
    Request processing failed; nested exception is org.springframework. webflow.execution.ActionExecutionException: Exception thrown executing [AnnotatedAction@6fb82755 targetAction = [Evaluat eAction@204cb2ff expression = generateLoginTicketAction.generate(flowRequestContext), resultExpression = [null]], attrib utes = map[[empty]]] in state 'generateLoginTicket' of flow 'login' -- action execution attributes were 'map[[empty]]'
    Show stack trace
  7. Request processing failed; nested exception is java.lang.IllegalStateException: getOutputStream() has already been called for this response
    Show stack trace
  8. valikvia Stack Overflow2 weeks ago
    Request processing failed; nested exception is java.lang.StringIndexOutOfBoundsException: String index out of range: -8
    Show stack trace
  9. Sthitavia Stack Overflow2 weeks ago
    Request processing failed; nested exception is java.lang.ArrayIndexOutOfBoundsException
    Show stack trace
  10. Request processing failed; nested exception is reactor.core.Exceptions$BubblingException: java.util.concurrent.RejectedExecutionException: Scheduler unavailable
    Show stack trace