[jboss-user] [JBoss Tools (users)] - Re: Seam Components Problem
Kragoth
do-not-reply at jboss.com
Tue Apr 7 19:18:58 EDT 2009
I have over 100 SEAM beans in my project. So there should definitly be more then 9. As well as this I should be seeing the SEAM libs components as well.
I have tried toggeling the SEAM support to try force the nature and builder to restart etc, but this did not fix the problem.
If I touch a SEAM bean that is not in the list and save it, then it will appear in the list. (Not sure what's going on there)
I have worked around the issue at the moment by booting up and old version of Eclipse/JBossTools and getting it to load all my SEAM components and then switching back to the new version. However this still does not show *all* my components, and the default SEAM package components are not listed either.
In my error log, here are some of the entries that are coming from the JBoss tools plugin.
| !ENTRY org.jboss.tools.seam.core 4 0 2009-04-03 13:39:42.207
| !MESSAGE An error occurred while traversing resources.
| !STACK 1
| org.eclipse.core.internal.resources.ResourceException(/gekko)[566]: java.lang.NullPointerException
| at org.jboss.tools.seam.internal.core.scanner.java.ASTVisitorImpl.visit(ASTVisitorImpl.java:90)
| at org.eclipse.jdt.core.dom.SingleMemberAnnotation.accept0(SingleMemberAnnotation.java:161)
| at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2478)
| at org.eclipse.jdt.core.dom.ASTNode.acceptChildren(ASTNode.java:2548)
| at org.eclipse.jdt.core.dom.AnnotationTypeDeclaration.accept0(AnnotationTypeDeclaration.java:239)
| at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2478)
| at org.eclipse.jdt.core.dom.ASTNode.acceptChildren(ASTNode.java:2548)
| at org.eclipse.jdt.core.dom.CompilationUnit.accept0(CompilationUnit.java:214)
| at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2478)
| at org.jboss.tools.seam.internal.core.scanner.java.JavaScanner$ASTRequestorImpl.acceptAST(JavaScanner.java:167)
| at org.eclipse.jdt.core.dom.CompilationUnitResolver.resolve(CompilationUnitResolver.java:721)
| at org.eclipse.jdt.core.dom.CompilationUnitResolver.resolve(CompilationUnitResolver.java:474)
| at org.eclipse.jdt.core.dom.ASTParser.createASTs(ASTParser.java:736)
| at org.jboss.tools.seam.internal.core.scanner.java.JavaScanner.parse(JavaScanner.java:105)
| at org.jboss.tools.seam.internal.core.SeamResourceVisitor.visit(SeamResourceVisitor.java:94)
| at org.eclipse.core.internal.resources.Resource$2.visit(Resource.java:106)
| at org.eclipse.core.internal.resources.Resource$1.visitElement(Resource.java:58)
| at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:81)
| at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:85)
| at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:85)
| at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:85)
| at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:85)
| at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:85)
| at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:85)
| at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:85)
| at org.eclipse.core.internal.watson.ElementTreeIterator.iterate(ElementTreeIterator.java:126)
| at org.eclipse.core.internal.resources.Resource.accept(Resource.java:68)
| at org.eclipse.core.internal.resources.Resource.accept(Resource.java:104)
| at org.eclipse.core.internal.resources.Resource.accept(Resource.java:88)
| at org.jboss.tools.seam.core.SeamCoreBuilder.fullBuild(SeamCoreBuilder.java:129)
| at org.jboss.tools.seam.core.SeamCoreBuilder.build(SeamCoreBuilder.java:100)
| at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:633)
| at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
| at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:170)
| at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:201)
| at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:253)
| at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
| at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:256)
| at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:309)
| at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:341)
| at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:140)
| at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:238)
| at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
| !SUBENTRY 1 org.eclipse.core.resources 4 566 2009-04-03 13:39:42.207
| !MESSAGE An error occurred while traversing resources.
| !STACK 0
| java.lang.NullPointerException
| at org.jboss.tools.seam.internal.core.scanner.java.ASTVisitorImpl.visit(ASTVisitorImpl.java:90)
| at org.eclipse.jdt.core.dom.SingleMemberAnnotation.accept0(SingleMemberAnnotation.java:161)
| at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2478)
| at org.eclipse.jdt.core.dom.ASTNode.acceptChildren(ASTNode.java:2548)
| at org.eclipse.jdt.core.dom.AnnotationTypeDeclaration.accept0(AnnotationTypeDeclaration.java:239)
| at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2478)
| at org.eclipse.jdt.core.dom.ASTNode.acceptChildren(ASTNode.java:2548)
| at org.eclipse.jdt.core.dom.CompilationUnit.accept0(CompilationUnit.java:214)
| at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2478)
| at org.jboss.tools.seam.internal.core.scanner.java.JavaScanner$ASTRequestorImpl.acceptAST(JavaScanner.java:167)
| at org.eclipse.jdt.core.dom.CompilationUnitResolver.resolve(CompilationUnitResolver.java:721)
| at org.eclipse.jdt.core.dom.CompilationUnitResolver.resolve(CompilationUnitResolver.java:474)
| at org.eclipse.jdt.core.dom.ASTParser.createASTs(ASTParser.java:736)
| at org.jboss.tools.seam.internal.core.scanner.java.JavaScanner.parse(JavaScanner.java:105)
| at org.jboss.tools.seam.internal.core.SeamResourceVisitor.visit(SeamResourceVisitor.java:94)
| at org.eclipse.core.internal.resources.Resource$2.visit(Resource.java:106)
| at org.eclipse.core.internal.resources.Resource$1.visitElement(Resource.java:58)
| at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:81)
| at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:85)
| at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:85)
| at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:85)
| at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:85)
| at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:85)
| at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:85)
| at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:85)
| at org.eclipse.core.internal.watson.ElementTreeIterator.iterate(ElementTreeIterator.java:126)
| at org.eclipse.core.internal.resources.Resource.accept(Resource.java:68)
| at org.eclipse.core.internal.resources.Resource.accept(Resource.java:104)
| at org.eclipse.core.internal.resources.Resource.accept(Resource.java:88)
| at org.jboss.tools.seam.core.SeamCoreBuilder.fullBuild(SeamCoreBuilder.java:129)
| at org.jboss.tools.seam.core.SeamCoreBuilder.build(SeamCoreBuilder.java:100)
| at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:633)
| at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
| at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:170)
| at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:201)
| at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:253)
| at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
| at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:256)
| at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:309)
| at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:341)
| at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:140)
| at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:238)
| at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
|
But I did notice this in my error log as well. I'm not sure if this is related in any way at all, but it would seem to go along the lines that the linked resources are cause issues :S
| !ENTRY org.jboss.ide.eclipse.archives.core 2 0 2009-04-03 13:44:34.588
| !MESSAGE Could not create directory scanner: basedir D:\EVERST\Phase2\code\gekko\gekko-build-services-classes-prod is not a directory
| !STACK 0
| java.lang.IllegalStateException: basedir D:\EVERST\Phase2\code\gekko\gekko-build-services-classes-prod is not a directory
| at org.jboss.ide.eclipse.archives.core.asf.DirectoryScanner.scan(DirectoryScanner.java:816)
| at org.jboss.ide.eclipse.archives.core.model.DirectoryScannerFactory.createDirectoryScanner(DirectoryScannerFactory.java:70)
| at org.jboss.ide.eclipse.archives.core.model.DirectoryScannerFactory.createDirectoryScanner(DirectoryScannerFactory.java:50)
| at org.jboss.ide.eclipse.archives.core.model.internal.ArchiveFileSetImpl.getScanner(ArchiveFileSetImpl.java:144)
| at org.jboss.ide.eclipse.archives.core.model.internal.ArchiveFileSetImpl.findMatchingPaths(ArchiveFileSetImpl.java:131)
| at org.jboss.ide.eclipse.archives.core.util.internal.ModelTruezipBridge.fullFilesetBuild(ModelTruezipBridge.java:72)
| at org.jboss.ide.eclipse.archives.core.build.ModelChangeListener.nodeAdded(ModelChangeListener.java:198)
| at org.jboss.ide.eclipse.archives.core.build.ModelChangeListener.nodeAdded(ModelChangeListener.java:184)
| at org.jboss.ide.eclipse.archives.core.build.ModelChangeListener.handle(ModelChangeListener.java:100)
| at org.jboss.ide.eclipse.archives.core.build.ModelChangeListener.modelChanged(ModelChangeListener.java:71)
| at org.jboss.ide.eclipse.archives.core.model.EventManager.fireDelta(EventManager.java:186)
| at org.jboss.ide.eclipse.archives.core.model.ArchivesModel.fireRegistrationEvent(ArchivesModel.java:255)
| at org.jboss.ide.eclipse.archives.core.model.ArchivesModel.fireRegisterProjectEvent(ArchivesModel.java:234)
| at org.jboss.ide.eclipse.archives.core.model.ArchivesModel.registerProject(ArchivesModel.java:217)
| at org.jboss.ide.eclipse.archives.core.model.ArchivesModel.registerProject(ArchivesModel.java:208)
| at org.jboss.ide.eclipse.archives.core.model.ArchivesModel.registerProject(ArchivesModel.java:181)
| at org.jboss.ide.eclipse.archives.webtools.modules.ArchivesModelModuleContributor.getModules(ArchivesModelModuleContributor.java:79)
| at org.jboss.ide.eclipse.archives.webtools.modules.ArchivesModelModuleContributor.refreshProject(ArchivesModelModuleContributor.java:133)
| at org.jboss.ide.eclipse.archives.webtools.modules.PackageModuleFactory.getModules(PackageModuleFactory.java:174)
| at org.eclipse.wst.server.core.internal.ModuleFactory.getModules(ModuleFactory.java:131)
| at org.eclipse.wst.server.core.ServerUtil.getModules(ServerUtil.java:96)
| at org.eclipse.wst.server.core.internal.ResourceManager.publishHandleProjectChange(ResourceManager.java:965)
| at org.eclipse.wst.server.core.internal.ResourceManager$ServerResourceChangeListener$1.visit(ResourceManager.java:122)
| at org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:68)
| at org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:79)
| at org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:48)
| at org.eclipse.wst.server.core.internal.ResourceManager$ServerResourceChangeListener.resourceChanged(ResourceManager.java:116)
| at org.eclipse.core.internal.events.NotificationManager$2.run(NotificationManager.java:288)
| at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
| at org.eclipse.core.internal.events.NotificationManager.notify(NotificationManager.java:282)
| at org.eclipse.core.internal.events.NotificationManager.broadcastChanges(NotificationManager.java:148)
| at org.eclipse.core.internal.resources.Workspace.broadcastBuildEvent(Workspace.java:297)
| at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:143)
| at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:238)
| at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
|
But ultimately, if I disable SEAM on my project and then reenable it, then the first stacktrace always appears. The second one is not consistent.
I also get this error - pretty sure its unrelated but, just in case
| !ENTRY org.eclipse.wst.validation 4 0 2009-04-08 09:04:35.608
| !MESSAGE Plug-in "org.eclipse.jst.jsp.core" was unable to instantiate class "org.eclipse.jst.jsp.core.internal.validation.JSPBatchValidator".
| !STACK 1
| org.eclipse.core.runtime.CoreException: Plug-in "org.eclipse.jst.jsp.core" was unable to instantiate class "org.eclipse.jst.jsp.core.internal.validation.JSPBatchValidator".
| at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.throwException(RegistryStrategyOSGI.java:180)
| at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:174)
| at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:867)
| at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
| at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:51)
| at org.eclipse.wst.validation.Validator$V2.getValidator(Validator.java:933)
| at org.eclipse.wst.validation.Validator$V2.getDelegatedValidator(Validator.java:892)
| at org.eclipse.wst.validation.Validator$V2.validationStarting(Validator.java:1150)
| at org.eclipse.wst.validation.internal.ValOperationManager$1.visit(ValOperationManager.java:142)
| at org.eclipse.wst.validation.internal.ValManager.accept(ValManager.java:622)
| at org.eclipse.wst.validation.internal.ValOperationManager.resourceChanged(ValOperationManager.java:145)
| at org.eclipse.core.internal.events.NotificationManager$2.run(NotificationManager.java:288)
| at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
| at org.eclipse.core.internal.events.NotificationManager.notify(NotificationManager.java:282)
| at org.eclipse.core.internal.events.NotificationManager.broadcastChanges(NotificationManager.java:148)
| at org.eclipse.core.internal.resources.Workspace.broadcastBuildEvent(Workspace.java:297)
| at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:136)
| at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:238)
| at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
| Caused by: java.lang.ExceptionInInitializerError
| at org.eclipse.jst.jsp.core.internal.validation.JSPBatchValidator.<init>(JSPBatchValidator.java:161)
| at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
| at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
| at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
| at java.lang.reflect.Constructor.newInstance(Unknown Source)
| at java.lang.Class.newInstance0(Unknown Source)
| at java.lang.Class.newInstance(Unknown Source)
| at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:170)
| ... 17 more
| Caused by: java.lang.NullPointerException
| at org.eclipse.jst.jsp.core.internal.validation.JSPDirectiveValidator.<clinit>(JSPDirectiveValidator.java:68)
| ... 25 more
| !SUBENTRY 1 org.eclipse.equinox.registry 4 1 2009-04-08 09:04:35.608
| !MESSAGE Plug-in "org.eclipse.jst.jsp.core" was unable to instantiate class "org.eclipse.jst.jsp.core.internal.validation.JSPBatchValidator".
| !STACK 0
| java.lang.ExceptionInInitializerError
| at org.eclipse.jst.jsp.core.internal.validation.JSPBatchValidator.<init>(JSPBatchValidator.java:161)
| at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
| at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
| at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
| at java.lang.reflect.Constructor.newInstance(Unknown Source)
| at java.lang.Class.newInstance0(Unknown Source)
| at java.lang.Class.newInstance(Unknown Source)
| at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:170)
| at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:867)
| at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
| at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:51)
| at org.eclipse.wst.validation.Validator$V2.getValidator(Validator.java:933)
| at org.eclipse.wst.validation.Validator$V2.getDelegatedValidator(Validator.java:892)
| at org.eclipse.wst.validation.Validator$V2.validationStarting(Validator.java:1150)
| at org.eclipse.wst.validation.internal.ValOperationManager$1.visit(ValOperationManager.java:142)
| at org.eclipse.wst.validation.internal.ValManager.accept(ValManager.java:622)
| at org.eclipse.wst.validation.internal.ValOperationManager.resourceChanged(ValOperationManager.java:145)
| at org.eclipse.core.internal.events.NotificationManager$2.run(NotificationManager.java:288)
| at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
| at org.eclipse.core.internal.events.NotificationManager.notify(NotificationManager.java:282)
| at org.eclipse.core.internal.events.NotificationManager.broadcastChanges(NotificationManager.java:148)
| at org.eclipse.core.internal.resources.Workspace.broadcastBuildEvent(Workspace.java:297)
| at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:136)
| at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:238)
| at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
| Caused by: java.lang.NullPointerException
| at org.eclipse.jst.jsp.core.internal.validation.JSPDirectiveValidator.<clinit>(JSPDirectiveValidator.java:68)
| ... 25 more
|
Anyway, I've now managed to lose all but those 9 SEAM beans again now while trying to get this error log :P
So its gona be a long frustrating day!
I'm gona try get all this working in latest version of Eclipse and JBossTools so that if/when we figure out the problem the fix is easier.
Thanks for the help!
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4224198#4224198
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4224198
More information about the jboss-user
mailing list