Solr
  1. Solr
  2. SOLR-1987

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

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major 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?

        Activity

        Hide
        Mark Miller added a comment -

        Can you add some details on how you produced this?

        It appears very odd, because I don't believe setNorm is or has been a final method.

        To duplicate, I first tried your example code with the binary release bits as a sanity check - worked no problem.

        Then I compiled the release from the released source code and tried again - again, it worked as expected.

        Can you put down your exact steps?

        Show
        Mark Miller added a comment - Can you add some details on how you produced this? It appears very odd, because I don't believe setNorm is or has been a final method. To duplicate, I first tried your example code with the binary release bits as a sanity check - worked no problem. Then I compiled the release from the released source code and tried again - again, it worked as expected. Can you put down your exact steps?
        Hide
        Uwe Schindler added a comment -

        These errors are often caused by JAR files from older Lucene/Solr versions somewhere in the classpath. Maybe thats the problem here?

        Show
        Uwe Schindler added a comment - These errors are often caused by JAR files from older Lucene/Solr versions somewhere in the classpath. Maybe thats the problem here?
        Hide
        karthik added a comment -

        I am still facing this issue:

        The environment is jdk1.6_24 and trying to deploy my application in jboss6. But the same app ran well under jboss5 and jdk1.6_24.

        I did not understand the reason for the VerifyError since the jdk1.6_24 remained the same in both the cases.

        Show
        karthik added a comment - I am still facing this issue: The environment is jdk1.6_24 and trying to deploy my application in jboss6. But the same app ran well under jboss5 and jdk1.6_24. I did not understand the reason for the VerifyError since the jdk1.6_24 remained the same in both the cases.
        Hide
        Robert Muir added a comment -

        Bulk close for 3.2

        Show
        Robert Muir added a comment - Bulk close for 3.2

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development