- About Scala
- Documentation
- Code Examples
- Software
- Scala Developers
NetBeans 6.9 Scala Plugin Problem
Fri, 2010-07-02, 05:34
I recently upgraded to NetBeans 6.9M1 (on Windows-XP Professional, SP3, with Sun JDK 1.6.0_20 and Scala 2.8.0.RC7). I also installed the nightly build Scala plugin as described here.
But whenever I start NetBeans and open a Scala project, I get a popup that says "A java.lang.ClassNotFoundException exception has occurred. However, the system should continue working without further problems. Click Show Details for the stack trace." (This only happens when the first Scala project is being opened after the IDE is started)
Clicking on the "Show Details" produces the stack trace at the end of this mail. And, as promised, the IDE and the plugin seem to work ok thereafter.
Is this normal? Or is there something I'm doing wrong?
My Scala installation directory is "D:\scala", and NetBeans is installed in "D:\Program Files\NetBeans 6.9M1".
Thanks for any help.
- Sanjay
java.lang.ClassNotFoundException: Will not load class org.netbeans.modules.spellchecker.bindings.java.JavaSemanticTokenList$FactoryImpl arbitrarily from one of ModuleCL@19f3736[org.netbeans.modules.spellchecker.bindings.java] and ModuleCL@8c4a77[org.netbeans.modules.spellchecker.bindings] starting from SystemClassLoader[386 modules]; see http://wiki.netbeans.org/DevFaqModuleCCE at org.netbeans.ProxyClassLoader.loadClass(ProxyClassLoader.java:244) at java.lang.ClassLoader.loadClass(ClassLoader.java:248) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:247) at org.openide.util.lookup.MetaInfServicesLookup.search(MetaInfServicesLookup.java:285) at org.openide.util.lookup.MetaInfServicesLookup.beforeLookup(MetaInfServicesLookup.java:144) at org.openide.util.lookup.AbstractLookup$R.beforeLookup(AbstractLookup.java:1127) at org.openide.util.lookup.ProxyLookup$R.myBeforeLookup(ProxyLookup.java:666) at org.openide.util.lookup.ProxyLookup$R.computeResult(ProxyLookup.java:520) at org.openide.util.lookup.ProxyLookup$R.allInstances(ProxyLookup.java:491) at org.netbeans.modules.java.source.JavaSourceTaskFactoryManager.update(JavaSourceTaskFactoryManager.java:85) at org.netbeans.modules.java.source.JavaSourceTaskFactoryManager.<init>(JavaSourceTaskFactoryManager.java:81) at org.netbeans.modules.java.source.JavaSourceTaskFactoryManager.register(JavaSourceTaskFactoryManager.java:61) at org.netbeans.modules.java.source.indexing.JavaCustomIndexer$Factory.<init>(JavaCustomIndexer.java:756) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at java.lang.Class.newInstance0(Class.java:355) at java.lang.Class.newInstance(Class.java:308) at org.openide.loaders.InstanceSupport.instanceCreate(InstanceSupport.java:220) at org.openide.loaders.InstanceDataObject$Ser.instanceCreate(InstanceDataObject.java:1383) at org.openide.loaders.InstanceDataObject.instanceCreate(InstanceDataObject.java:821) at org.netbeans.modules.editor.mimelookup.impl.FolderPathLookup$ICItem.getInstance(FolderPathLookup.java:261) at org.openide.util.lookup.AbstractLookup$R.allInstances(AbstractLookup.java:1006) at org.openide.util.lookup.ProxyLookup$R.computeResult(ProxyLookup.java:551) at org.openide.util.lookup.ProxyLookup$R.allInstances(ProxyLookup.java:491) at org.openide.util.lookup.ProxyLookup$R.computeResult(ProxyLookup.java:551) at org.openide.util.lookup.ProxyLookup$R.allInstances(ProxyLookup.java:491) at org.netbeans.modules.parsing.impl.indexing.IndexerCache.collectIndexerFactoriesRegisteredForEachParticularLanguage(IndexerCache.java:330) at org.netbeans.modules.parsing.impl.indexing.IndexerCache.getData(IndexerCache.java:371) at org.netbeans.modules.parsing.impl.indexing.IndexerCache.getIndexers(IndexerCache.java:123) at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$SourceIndexers.<init>(RepositoryUpdater.java:3779) at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$SourceIndexers.load(RepositoryUpdater.java:3762) at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$InitialRootsWork.getDone(RepositoryUpdater.java:3307) at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Work.doTheWork(RepositoryUpdater.java:2043) at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Task._run(RepositoryUpdater.java:3643) at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Task.run(RepositoryUpdater.java:3583) at org.netbeans.modules.parsing.impl.TaskProcessor$CompilationJob.run(TaskProcessor.java:587) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [catch] at java.lang.Thread.run(Thread.java:619)
But whenever I start NetBeans and open a Scala project, I get a popup that says "A java.lang.ClassNotFoundException exception has occurred. However, the system should continue working without further problems. Click Show Details for the stack trace." (This only happens when the first Scala project is being opened after the IDE is started)
Clicking on the "Show Details" produces the stack trace at the end of this mail. And, as promised, the IDE and the plugin seem to work ok thereafter.
Is this normal? Or is there something I'm doing wrong?
My Scala installation directory is "D:\scala", and NetBeans is installed in "D:\Program Files\NetBeans 6.9M1".
Thanks for any help.
- Sanjay
java.lang.ClassNotFoundException: Will not load class org.netbeans.modules.spellchecker.bindings.java.JavaSemanticTokenList$FactoryImpl arbitrarily from one of ModuleCL@19f3736[org.netbeans.modules.spellchecker.bindings.java] and ModuleCL@8c4a77[org.netbeans.modules.spellchecker.bindings] starting from SystemClassLoader[386 modules]; see http://wiki.netbeans.org/DevFaqModuleCCE at org.netbeans.ProxyClassLoader.loadClass(ProxyClassLoader.java:244) at java.lang.ClassLoader.loadClass(ClassLoader.java:248) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:247) at org.openide.util.lookup.MetaInfServicesLookup.search(MetaInfServicesLookup.java:285) at org.openide.util.lookup.MetaInfServicesLookup.beforeLookup(MetaInfServicesLookup.java:144) at org.openide.util.lookup.AbstractLookup$R.beforeLookup(AbstractLookup.java:1127) at org.openide.util.lookup.ProxyLookup$R.myBeforeLookup(ProxyLookup.java:666) at org.openide.util.lookup.ProxyLookup$R.computeResult(ProxyLookup.java:520) at org.openide.util.lookup.ProxyLookup$R.allInstances(ProxyLookup.java:491) at org.netbeans.modules.java.source.JavaSourceTaskFactoryManager.update(JavaSourceTaskFactoryManager.java:85) at org.netbeans.modules.java.source.JavaSourceTaskFactoryManager.<init>(JavaSourceTaskFactoryManager.java:81) at org.netbeans.modules.java.source.JavaSourceTaskFactoryManager.register(JavaSourceTaskFactoryManager.java:61) at org.netbeans.modules.java.source.indexing.JavaCustomIndexer$Factory.<init>(JavaCustomIndexer.java:756) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at java.lang.Class.newInstance0(Class.java:355) at java.lang.Class.newInstance(Class.java:308) at org.openide.loaders.InstanceSupport.instanceCreate(InstanceSupport.java:220) at org.openide.loaders.InstanceDataObject$Ser.instanceCreate(InstanceDataObject.java:1383) at org.openide.loaders.InstanceDataObject.instanceCreate(InstanceDataObject.java:821) at org.netbeans.modules.editor.mimelookup.impl.FolderPathLookup$ICItem.getInstance(FolderPathLookup.java:261) at org.openide.util.lookup.AbstractLookup$R.allInstances(AbstractLookup.java:1006) at org.openide.util.lookup.ProxyLookup$R.computeResult(ProxyLookup.java:551) at org.openide.util.lookup.ProxyLookup$R.allInstances(ProxyLookup.java:491) at org.openide.util.lookup.ProxyLookup$R.computeResult(ProxyLookup.java:551) at org.openide.util.lookup.ProxyLookup$R.allInstances(ProxyLookup.java:491) at org.netbeans.modules.parsing.impl.indexing.IndexerCache.collectIndexerFactoriesRegisteredForEachParticularLanguage(IndexerCache.java:330) at org.netbeans.modules.parsing.impl.indexing.IndexerCache.getData(IndexerCache.java:371) at org.netbeans.modules.parsing.impl.indexing.IndexerCache.getIndexers(IndexerCache.java:123) at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$SourceIndexers.<init>(RepositoryUpdater.java:3779) at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$SourceIndexers.load(RepositoryUpdater.java:3762) at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$InitialRootsWork.getDone(RepositoryUpdater.java:3307) at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Work.doTheWork(RepositoryUpdater.java:2043) at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Task._run(RepositoryUpdater.java:3643) at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Task.run(RepositoryUpdater.java:3583) at org.netbeans.modules.parsing.impl.TaskProcessor$CompilationJob.run(TaskProcessor.java:587) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [catch] at java.lang.Thread.run(Thread.java:619)
Fri, 2010-07-02, 11:27
#2
Re: NetBeans 6.9 Scala Plugin Problem
Thanks, the latest NB 6.9 download seems to be working fine.
- Sanjay
On Fri, Jul 2, 2010 at 12:46 PM, Jesper de Jong <jespdj@gmail.com> wrote:
- Sanjay
On Fri, Jul 2, 2010 at 12:46 PM, Jesper de Jong <jespdj@gmail.com> wrote:
NetBeans 6.9M1, as in 6.9 Milestone 1? Why are you using that? That's an old development version. NetBeans 6.9 final has been released last week. Use that instead of 6.9M1.
I've written up some instructions for installing the Scala plug-in on NetBeans 6.9 here: http://www.scala-notes.org/2010/06/scala-on-netbeans-6-9/
Jesper de Jong
2010/7/2 Sanjay Dasgupta <sanjay.dasgupta@gmail.com>
I recently upgraded to NetBeans 6.9M1 (on Windows-XP Professional, SP3, with Sun JDK 1.6.0_20 and Scala 2.8.0.RC7). I also installed the nightly build Scala plugin as described here.
But whenever I start NetBeans and open a Scala project, I get a popup that says "A java.lang.ClassNotFoundException exception has occurred. However, the system should continue working without further problems. Click Show Details for the stack trace." (This only happens when the first Scala project is being opened after the IDE is started)
Clicking on the "Show Details" produces the stack trace at the end of this mail. And, as promised, the IDE and the plugin seem to work ok thereafter.
Is this normal? Or is there something I'm doing wrong?
My Scala installation directory is "D:\scala", and NetBeans is installed in "D:\Program Files\NetBeans 6.9M1".
Thanks for any help.
- Sanjay
java.lang.ClassNotFoundException: Will not load class org.netbeans.modules.spellchecker.bindings.java.JavaSemanticTokenList$FactoryImpl arbitrarily from one of ModuleCL@19f3736[org.netbeans.modules.spellchecker.bindings.java] and ModuleCL@8c4a77[org.netbeans.modules.spellchecker.bindings] starting from SystemClassLoader[386 modules]; see http://wiki.netbeans.org/DevFaqModuleCCE at org.netbeans.ProxyClassLoader.loadClass(ProxyClassLoader.java:244) at java.lang.ClassLoader.loadClass(ClassLoader.java:248) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:247) at org.openide.util.lookup.MetaInfServicesLookup.search(MetaInfServicesLookup.java:285) at org.openide.util.lookup.MetaInfServicesLookup.beforeLookup(MetaInfServicesLookup.java:144) at org.openide.util.lookup.AbstractLookup$R.beforeLookup(AbstractLookup.java:1127) at org.openide.util.lookup.ProxyLookup$R.myBeforeLookup(ProxyLookup.java:666) at org.openide.util.lookup.ProxyLookup$R.computeResult(ProxyLookup.java:520) at org.openide.util.lookup.ProxyLookup$R.allInstances(ProxyLookup.java:491) at org.netbeans.modules.java.source.JavaSourceTaskFactoryManager.update(JavaSourceTaskFactoryManager.java:85) at org.netbeans.modules.java.source.JavaSourceTaskFactoryManager.<init>(JavaSourceTaskFactoryManager.java:81) at org.netbeans.modules.java.source.JavaSourceTaskFactoryManager.register(JavaSourceTaskFactoryManager.java:61) at org.netbeans.modules.java.source.indexing.JavaCustomIndexer$Factory.<init>(JavaCustomIndexer.java:756) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at java.lang.Class.newInstance0(Class.java:355) at java.lang.Class.newInstance(Class.java:308) at org.openide.loaders.InstanceSupport.instanceCreate(InstanceSupport.java:220) at org.openide.loaders.InstanceDataObject$Ser.instanceCreate(InstanceDataObject.java:1383) at org.openide.loaders.InstanceDataObject.instanceCreate(InstanceDataObject.java:821) at org.netbeans.modules.editor.mimelookup.impl.FolderPathLookup$ICItem.getInstance(FolderPathLookup.java:261) at org.openide.util.lookup.AbstractLookup$R.allInstances(AbstractLookup.java:1006) at org.openide.util.lookup.ProxyLookup$R.computeResult(ProxyLookup.java:551) at org.openide.util.lookup.ProxyLookup$R.allInstances(ProxyLookup.java:491) at org.openide.util.lookup.ProxyLookup$R.computeResult(ProxyLookup.java:551) at org.openide.util.lookup.ProxyLookup$R.allInstances(ProxyLookup.java:491) at org.netbeans.modules.parsing.impl.indexing.IndexerCache.collectIndexerFactoriesRegisteredForEachParticularLanguage(IndexerCache.java:330) at org.netbeans.modules.parsing.impl.indexing.IndexerCache.getData(IndexerCache.java:371) at org.netbeans.modules.parsing.impl.indexing.IndexerCache.getIndexers(IndexerCache.java:123) at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$SourceIndexers.<init>(RepositoryUpdater.java:3779) at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$SourceIndexers.load(RepositoryUpdater.java:3762) at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$InitialRootsWork.getDone(RepositoryUpdater.java:3307) at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Work.doTheWork(RepositoryUpdater.java:2043) at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Task._run(RepositoryUpdater.java:3643) at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Task.run(RepositoryUpdater.java:3583) at org.netbeans.modules.parsing.impl.TaskProcessor$CompilationJob.run(TaskProcessor.java:587) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [catch] at java.lang.Thread.run(Thread.java:619)
--
Jesper de Jong
jespdj@gmail.com
I've written up some instructions for installing the Scala plug-in on NetBeans 6.9 here: http://www.scala-notes.org/2010/06/scala-on-netbeans-6-9/
Jesper de Jong
2010/7/2 Sanjay Dasgupta <sanjay.dasgupta@gmail.com>
--
Jesper de Jong
jespdj@gmail.com