play.api.Application$$anon$1: Execution exception[[IllegalArgumentException: [Assertion failed] - this argument is required; it must not be null]]

Spring JIRA | Tom Persons | 1 year ago
  1. 0

    This affects version 1.4.1. It may also affect 1.4.0 but I wasn't able to get that far due to a different error with the data model (Entity) class not being found by the class loader in spring-data-solr. Steps to reproduce: 1) Create a solr database by running the schemaless example database that ships with solr 4.10.1 2) post a document to that database that has an "id" field and a number of additional fields of various types (string, integer, lat long, date) 3) The managed schema will by default create all of the fields except for the "id" field as multiValued 4) Create a play framework 2.3.8 application and add spring-data-solr 1.4.1.RELEASE as a dependency 5) Create all of the appropriate hooks in the app for spring (app context, java config, entity class, repository interface, etc...) 6) In the repository interface create a new query based on one of the multiValued fields (such as findByDocType(String docType)) 7) Use this query in the application and print the results of the query to stdout expected result: All of the documents in the database that match the query should be returned to the client application and the results should be printed actual result: A null pointer exception is thrown in MappingSolrConverter.SolrPropertyValueProvider.readValue(). The null pointer is returned by type.getComponentType() in MappingSolrConverter.SolrPropertyValueProvider.readCollection(). If I change the managed schema of the schemaless example database in solr so that all of my fields have multiValued="false" then this error does not occur and the proper results are returned. stack trace: play - Cannot invoke the action, eventually got an error: java.lang.IllegalArgumentException: [Assertion failed] - this argument is required; it must not be null application - ! @6mjm25f1f - Internal server error, for (GET) [/] -> play.api.Application$$anon$1: Execution exception[[IllegalArgumentException: [Assertion failed] - this argument is required; it must not be null]] at play.api.Application$class.handleError(Application.scala:296) ~[play_2.11-2.3.8.jar:2.3.8] at play.api.DefaultApplication.handleError(Application.scala:402) [play_2.11-2.3.8.jar:2.3.8] at play.core.server.netty.PlayDefaultUpstreamHandler$$anonfun$3$$anonfun$applyOrElse$4.apply(PlayDefaultUpstreamHandler.scala:320) [play_2.11-2.3.8.jar:2.3.8] at play.core.server.netty.PlayDefaultUpstreamHandler$$anonfun$3$$anonfun$applyOrElse$4.apply(PlayDefaultUpstreamHandler.scala:320) [play_2.11-2.3.8.jar:2.3.8] at scala.Option.map(Option.scala:145) [scala-library-2.11.4.jar:na] Caused by: java.lang.IllegalArgumentException: [Assertion failed] - this argument is required; it must not be null at org.springframework.util.Assert.notNull(Assert.java:112) ~[spring-core-4.0.9.RELEASE.jar:4.0.9.RELEASE] at org.springframework.util.Assert.notNull(Assert.java:123) ~[spring-core-4.0.9.RELEASE.jar:4.0.9.RELEASE] at org.springframework.data.solr.core.convert.MappingSolrConverter$SolrPropertyValueProvider.readValue(MappingSolrConverter.java:341) ~[spring-data-solr-1.4.1.RELEASE.jar:na] at org.springframework.data.solr.core.convert.MappingSolrConverter$SolrPropertyValueProvider.readCollection(MappingSolrConverter.java:481) ~[spring-data-solr-1.4.1.RELEASE.jar:na] at org.springframework.data.solr.core.convert.MappingSolrConverter$SolrPropertyValueProvider.readValue(MappingSolrConverter.java:355) ~[spring-data-solr-1.4.1.RELEASE.jar:na]

    Spring JIRA | 1 year ago | Tom Persons
    play.api.Application$$anon$1: Execution exception[[IllegalArgumentException: [Assertion failed] - this argument is required; it must not be null]]
  2. 0

    This affects version 1.4.1. It may also affect 1.4.0 but I wasn't able to get that far due to a different error with the data model (Entity) class not being found by the class loader in spring-data-solr. Steps to reproduce: 1) Create a solr database by running the schemaless example database that ships with solr 4.10.1 2) post a document to that database that has an "id" field and a number of additional fields of various types (string, integer, lat long, date) 3) The managed schema will by default create all of the fields except for the "id" field as multiValued 4) Create a play framework 2.3.8 application and add spring-data-solr 1.4.1.RELEASE as a dependency 5) Create all of the appropriate hooks in the app for spring (app context, java config, entity class, repository interface, etc...) 6) In the repository interface create a new query based on one of the multiValued fields (such as findByDocType(String docType)) 7) Use this query in the application and print the results of the query to stdout expected result: All of the documents in the database that match the query should be returned to the client application and the results should be printed actual result: A null pointer exception is thrown in MappingSolrConverter.SolrPropertyValueProvider.readValue(). The null pointer is returned by type.getComponentType() in MappingSolrConverter.SolrPropertyValueProvider.readCollection(). If I change the managed schema of the schemaless example database in solr so that all of my fields have multiValued="false" then this error does not occur and the proper results are returned. stack trace: {noformat} play - Cannot invoke the action, eventually got an error: java.lang.IllegalArgumentException: [Assertion failed] - this argument is required; it must not be null application - ! @6mjm25f1f - Internal server error, for (GET) [/] -> play.api.Application$$anon$1: Execution exception[[IllegalArgumentException: [Assertion failed] - this argument is required; it must not be null]] at play.api.Application$class.handleError(Application.scala:296) ~[play_2.11-2.3.8.jar:2.3.8] at play.api.DefaultApplication.handleError(Application.scala:402) [play_2.11-2.3.8.jar:2.3.8] at play.core.server.netty.PlayDefaultUpstreamHandler$$anonfun$3$$anonfun$applyOrElse$4.apply(PlayDefaultUpstreamHandler.scala:320) [play_2.11-2.3.8.jar:2.3.8] at play.core.server.netty.PlayDefaultUpstreamHandler$$anonfun$3$$anonfun$applyOrElse$4.apply(PlayDefaultUpstreamHandler.scala:320) [play_2.11-2.3.8.jar:2.3.8] at scala.Option.map(Option.scala:145) [scala-library-2.11.4.jar:na] Caused by: java.lang.IllegalArgumentException: [Assertion failed] - this argument is required; it must not be null at org.springframework.util.Assert.notNull(Assert.java:112) ~[spring-core-4.0.9.RELEASE.jar:4.0.9.RELEASE] at org.springframework.util.Assert.notNull(Assert.java:123) ~[spring-core-4.0.9.RELEASE.jar:4.0.9.RELEASE] at org.springframework.data.solr.core.convert.MappingSolrConverter$SolrPropertyValueProvider.readValue(MappingSolrConverter.java:341) ~[spring-data-solr-1.4.1.RELEASE.jar:na] at org.springframework.data.solr.core.convert.MappingSolrConverter$SolrPropertyValueProvider.readCollection(MappingSolrConverter.java:481) ~[spring-data-solr-1.4.1.RELEASE.jar:na] at org.springframework.data.solr.core.convert.MappingSolrConverter$SolrPropertyValueProvider.readValue(MappingSolrConverter.java:355) ~[spring-data-solr-1.4.1.RELEASE.jar:na] {noformat}

    Spring JIRA | 1 year ago | Tom Persons
    play.api.Application$$anon$1: Execution exception[[IllegalArgumentException: [Assertion failed] - this argument is required; it must not be null]]
  3. 0

    Spring data Solr: IllegalArgumentException - this argument is required

    Stack Overflow | 3 years ago | micha
    java.lang.IllegalArgumentException: [Assertion failed] - this argument is required; it must not be null
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Asking to navigate into an unknown controller causes seemingly infinite loop

    GitHub | 3 years ago | davidmichaelkarr
    java.lang.IllegalArgumentException: [Assertion failed] - this argument is required; it must not be null
  6. 0

    Hibernate: Lazy initialization vs broken hashcode/equals conundrum

    Stack Overflow | 3 years ago | Giovanni Botta
    java.lang.IllegalArgumentException: [Assertion failed] - this argument is required; it must not be null

  1. batwalrus76 4 times, last 2 weeks ago
  2. serious2monkeys 1 times, last 2 weeks ago
  3. tvrmsmith 1 times, last 3 weeks ago
  4. fima 1 times, last 2 months ago
  5. dafman 2 times, last 2 months ago
8 more registered users
87 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.IllegalArgumentException

    [Assertion failed] - this argument is required; it must not be null

    at org.springframework.util.Assert.notNull()
  2. Spring Core
    Assert.notNull
    1. org.springframework.util.Assert.notNull(Assert.java:112)[spring-core-4.0.9.RELEASE.jar:4.0.9.RELEASE]
    2. org.springframework.util.Assert.notNull(Assert.java:123)[spring-core-4.0.9.RELEASE.jar:4.0.9.RELEASE]
    2 frames
  3. Spring Data Solr
    MappingSolrConverter$SolrPropertyValueProvider.readValue
    1. org.springframework.data.solr.core.convert.MappingSolrConverter$SolrPropertyValueProvider.readValue(MappingSolrConverter.java:341)[spring-data-solr-1.4.1.RELEASE.jar:na]
    2. org.springframework.data.solr.core.convert.MappingSolrConverter$SolrPropertyValueProvider.readCollection(MappingSolrConverter.java:481)[spring-data-solr-1.4.1.RELEASE.jar:na]
    3. org.springframework.data.solr.core.convert.MappingSolrConverter$SolrPropertyValueProvider.readValue(MappingSolrConverter.java:355)[spring-data-solr-1.4.1.RELEASE.jar:na]
    3 frames