-
Notifications
You must be signed in to change notification settings - Fork 48
Another Error creating index #69
Comments
what's strange is that the exception comes from Eclipse's classes. |
Hi, I tried again with the latest STS JAVA: ORacle 1.7.79 64bit new workspace instasearch: after clicking on instsearch build index, I can see it working through the maven dependencies in the project. And this it stops. I wonder if this jar is the issue? For swagger-core_2.9.1-1.2.0.jar the swagger-core_2.9.1-1.2.0-sources.jar does not contain sources for all classes in the jar??? the workspace .log shows this: |
So, if I hack the pom and add an exclusion for swagger-core_2.9.1, the indexing gets further. Next problematic jar is http://grepcode.com/snapshot/repo1.maven.org/maven2/org.parboiled/parboiled-scala_2.10/1.1.6 interesting enough, when I use STS to look at the source of org.parboiled.scala.package.class the log file has a familiar classcastexecption java.lang.ClassCastException: org.eclipse.core.runtime.Status cannot be cast to org.eclipse.jdt.core.IJavaModelStatus |
Any chance the plugin could be altered to avoid this stacktrace: java.lang.ClassCastException: org.eclipse.core.runtime.Status cannot be cast to org.eclipse.jdt.core.IJavaModelStatus Perhaps a try/catch around I can't seem to build the plugin myself due to this error |
Probably putting these lines in try-catch block: would skip the files in error. Building InstaSearch from source is easy with Maven if you're up for a little challange:). |
Sure, happy to submit a fix. I am having an issue building with maven at the mo: "[ERROR] Failed to execute goal org.eclipse.tycho:tycho-packaging-plugin:0.19.0:validate-version (default-validate-version) on project it.unibz.instasearch: OSGi version 1.5.6 in META-INF/MANIFEST.MF does not match Maven version 1.5.7 in |
Uh, my bad. pushed a fix 09e1517 |
Issue #69. Avoid Ex where Eclipse has trouble loading a source file.
Tried to index a project which only had Maven dependencies (with source download enabled)
Instasearch indexing, worked for a while indexing the maven dependency jars, then stopped.
I'm using STS version:
Version: 3.6.4.RELEASE
Build Id: 201503100339
Platform: Eclipse Luna SR1 (4.4.2)
JAVA version: Oracle windows 64 jdk1.7.0_25
The plugin log file had:
!ENTRY org.eclipse.m2e.logback.appender 4 0 2015-05-20 16:47:47.035
!MESSAGE Unable to update index for nexus|http://nexus.polarlake.com/nexus/content/groups/public/: http://nexus.polarlake.com/nexus/content/groups/public/.index/nexus-maven-repository-index.properties
!ENTRY it.unibz.instasearch 4 0 2015-05-20 16:50:49.615
!MESSAGE org.eclipse.core.runtime.Status cannot be cast to org.eclipse.jdt.core.IJavaModelStatus
!STACK 0
java.lang.ClassCastException: org.eclipse.core.runtime.Status cannot be cast to org.eclipse.jdt.core.IJavaModelStatus
at org.eclipse.jdt.internal.core.ClassFile.getBuffer(ClassFile.java:367)
at org.eclipse.jdt.internal.core.ClassFile.getSource(ClassFile.java:509)
at it.unibz.instasearch.indexing.WorkspaceIndexerJDT$ClassFileSourceStorage.(WorkspaceIndexerJDT.java:425)
at it.unibz.instasearch.indexing.WorkspaceIndexerJDT.indexClassFiles(WorkspaceIndexerJDT.java:193)
at it.unibz.instasearch.indexing.WorkspaceIndexerJDT.indexContainers(WorkspaceIndexerJDT.java:83)
at it.unibz.instasearch.indexing.WorkspaceIndexer.createIndex(WorkspaceIndexer.java:99)
at it.unibz.instasearch.jobs.IndexingJob.runInWorkspace(IndexingJob.java:44)
at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
!ENTRY it.unibz.instasearch 4 0 2015-05-20 16:53:23.346
!MESSAGE org.eclipse.core.runtime.Status cannot be cast to org.eclipse.jdt.core.IJavaModelStatus
!STACK 0
java.lang.ClassCastException: org.eclipse.core.runtime.Status cannot be cast to org.eclipse.jdt.core.IJavaModelStatus
at org.eclipse.jdt.internal.core.ClassFile.getBuffer(ClassFile.java:367)
at org.eclipse.jdt.internal.core.ClassFile.getSource(ClassFile.java:509)
at it.unibz.instasearch.indexing.WorkspaceIndexerJDT$ClassFileSourceStorage.(WorkspaceIndexerJDT.java:425)
at it.unibz.instasearch.indexing.WorkspaceIndexerJDT.indexClassFiles(WorkspaceIndexerJDT.java:193)
at it.unibz.instasearch.indexing.WorkspaceIndexerJDT.indexContainers(WorkspaceIndexerJDT.java:83)
at it.unibz.instasearch.indexing.WorkspaceIndexer.createIndex(WorkspaceIndexer.java:99)
at it.unibz.instasearch.jobs.IndexingJob.runInWorkspace(IndexingJob.java:44)
at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
The text was updated successfully, but these errors were encountered: