Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-1987

java.lang.VerifyError runtime exception in Solr 1.4.1 when trying to run solr in Embedded mode

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: 1.4.1
    • Fix Version/s: 3.2
    • Component/s: clients - java
    • Labels:
      None
    • Environment:

      Windows 7

      Description

      When trying to run solr in embedded mode:

      CoreContainer.Initializer initializer = new CoreContainer.Initializer();
      CoreContainer coreContainer = initializer.initialize();
      server = new EmbeddedSolrServer(coreContainer, "");

      An exception is thrown in version 1.4.1, here is the stacktrace:
      java.lang.VerifyError: class org.apache.solr.search.SolrIndexReader overrides final method setNorm.(ILjava/lang/String;B)V
      at java.lang.ClassLoader.defineClass1(Native Method)
      at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632)
      at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
      at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
      at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:2527)
      at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:1010)
      at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1483)
      at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1361)
      at org.apache.solr.core.SolrConfig.<init>(SolrConfig.java:166)
      at org.apache.solr.core.CoreContainer$Initializer.initialize(CoreContainer.java:134)

      It may be a class version issue with the released zip source code, but I am not sure. It looks like the release was not compiled properly?

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              ravish Ravish Bhagdev
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: