Exception during class scanning in the eclipse plugin

42 views
Skip to first unread message

Andrew Lee

unread,
Jan 4, 2013, 11:17:38 AM1/4/13
to subs...@googlegroups.com

Hi,

A developers is having issues with using the eclipse plugin and I think it is to do with classpath scanning. (stacktrace below)

This is preventing the editor from opening. I have experienced other strange errors around class loading too where it scans and loads surprising jars and it's a bit hard to work out why.

For instance, I had version 2.{something} of groovy and the eclipse plugin crashed because it tried to load a class in the groovy jar that had been compiled with java 1.7, when we run eclipse using java 1.6 (which granted was a bit of a mistake and this was fine once I downgraded the jar).

It would be great if the plugin was a bit more resilient around issues like this. Or maybe even in the future, if it was possible to specify paths to exclude/include from scanning (a bit like the jbehave plugin does).

Cheers,

Andy.


Caused by: java.lang.NoClassDefFoundError: HttpOperationFailedException

                at java.lang.Class.getDeclaredMethods0(Native Method)

                at java.lang.Class.privateGetDeclaredMethods(Unknown Source)

                at java.lang.Class.privateGetPublicMethods(Unknown Source)

                at java.lang.Class.getMethods(Unknown Source)

                at com.technophobia.substeps.runner.runtime.StepClassFilter.apply(StepClassFilter.java:33)

                at com.technophobia.substeps.runner.runtime.StepClassFilter.apply(StepClassFilter.java:27)

                at com.google.common.base.Predicates$AndPredicate.apply(Predicates.java:338)

                at com.google.common.collect.Iterators$7.computeNext(Iterators.java:645)

                at com.google.common.collect.AbstractIterator.tryToComputeNext(AbstractIterator.java:141)

                at com.google.common.collect.AbstractIterator.hasNext(AbstractIterator.java:136)

                at com.technophobia.substeps.document.content.assist.feature.ProjectToSyntaxTransformer.toList(ProjectToSyntaxTransformer.java:95)

                at com.technophobia.substeps.document.content.assist.feature.ProjectToSyntaxTransformer.stepClasses(ProjectToSyntaxTransformer.java:89)

                at com.technophobia.substeps.document.content.assist.feature.ProjectToSyntaxTransformer.from(ProjectToSyntaxTransformer.java:38)

                at com.technophobia.substeps.document.content.assist.feature.ProjectToSyntaxTransformer.from(ProjectToSyntaxTransformer.java:1)

                at com.technophobia.substeps.step.provider.ProjectSpecificSuggestionProvider.findStepImplementationsFor(ProjectSpecificSuggestionProvider.java:78)

                at com.technophobia.substeps.step.provider.AbstractMultiProjectSuggestionProvider.loadProject(AbstractMultiProjectSuggestionProvider.java:55)

                at com.technophobia.substeps.step.provider.AbstractMultiProjectSuggestionProvider.load(AbstractMultiProjectSuggestionProvider.java:33)

                at com.technophobia.substeps.step.provider.ProjectSpecificSuggestionProvider.load(ProjectSpecificSuggestionProvider.java:40)

                at com.technophobia.substeps.step.ProvidedSuggestionManager.load(ProvidedSuggestionManager.java:41)

                at com.technophobia.substeps.FeatureEditorPlugin.addSuggestionProviders(FeatureEditorPlugin.java:136)

                at com.technophobia.substeps.FeatureEditorPlugin.start(FeatureEditorPlugin.java:81)

                at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)

                at java.security.AccessController.doPrivileged(Native Method)

                at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)

                ... 129 more

Caused by: java.lang.ClassNotFoundException: HttpOperationFailedException

                at java.net.URLClassLoader$1.run(Unknown Source)

                at java.security.AccessController.doPrivileged(Native Method)

                at java.net.URLClassLoader.findClass(Unknown Source)

                at java.lang.ClassLoader.loadClass(Unknown Source)

                at java.lang.ClassLoader.loadClass(Unknown Source)

                ... 153 more

Ian Moore

unread,
Jan 7, 2013, 4:02:55 AM1/7/13
to subs...@googlegroups.com
Hi Andrew,

Firstly, thanks for the feedback, and you're right, that's not desirable behaviour.  I've raised an issue in github so you can track this going forwards, there are a number of enhancements for the plugin that we're currently looking at, so if you have any ideas or requests, please let us know either here or in github (no promises though!).  We've also now got an update site: http://code.technophobia.com/substeps/eclipse/stable/ which you can use to obtain the latest releases, currently at 0.2.8.  We'll be producing some proper documentation soon - watch out for another announcement here!

Cheers
Ian
Reply all
Reply to author
Forward
0 new messages