equodev / equo-ide

Equo IDE
Eclipse Public License 2.0
37 stars 9 forks source link

OsgiDS circular reference in m2e #96

Open nedtwigg opened 1 year ago

nedtwigg commented 1 year ago

We're getting the following errors on startup with the m2e plugin. If you do --useAtomos=true then they all go away (but you get other harder-to-fix errors). Even with these errors, the IDE starts, you can import a project, and it compiles and runs tests fine.

bundle org.apache.felix.scr:0.0.0 (327) Circular reference detected trying to get service dev.equo.solstice.ServiceRegistry$ShimServiceFactoryReference@d9f5fce
 stack of references: ServiceReference: dev.equo.solstice.ServiceRegistry$ShimServiceFactoryReference@609b041c
    Dependency: DependencyManager: Component [Component: org.eclipse.m2e.core.internal.project.registry.MavenProjectManager (20)] reference [MavenProjectChangedListener]
ServiceReference: dev.equo.solstice.ServiceRegistry$ShimServiceFactoryReference@d9f5fce
    Dependency: DependencyManager: Component [Component: org.eclipse.m2e.core.embedder.MavenModelManager (6)] reference [projectManager]
ServiceReference: dev.equo.solstice.ServiceRegistry$ShimServiceFactoryReference@1de5cc88
ServiceReference: dev.equo.solstice.ServiceRegistry$ShimServiceFactoryReference@4ef5dd23
    Dependency: DependencyManager: Component [Component: org.eclipse.m2e.core.internal.project.registry.MavenProjectManager (20)] reference [MavenProjectChangedListener]
ServiceReference: dev.equo.solstice.ServiceRegistry$ShimServiceFactoryReference@55adcf9e
    Dependency: DependencyManager: Component [Component: org.eclipse.m2e.core.internal.project.ProjectConfigurationManager (15)] reference [mavenModelManager]
bundle org.apache.felix.scr:0.0.0 (327) Circular reference detected trying to get service dev.equo.solstice.ServiceRegistry$ShimServiceFactoryReference@609b041c
 stack of references: ServiceReference: dev.equo.solstice.ServiceRegistry$ShimServiceFactoryReference@609b041c
    Dependency: DependencyManager: Component [Component: org.eclipse.m2e.core.internal.project.registry.MavenProjectManager (20)] reference [MavenProjectChangedListener]
ServiceReference: dev.equo.solstice.ServiceRegistry$ShimServiceFactoryReference@d9f5fce
    Dependency: DependencyManager: Component [Component: org.eclipse.m2e.core.embedder.MavenModelManager (6)] reference [projectManager]
ServiceReference: dev.equo.solstice.ServiceRegistry$ShimServiceFactoryReference@1de5cc88
bundle org.apache.felix.scr:0.0.0 (327) Circular reference detected trying to get service dev.equo.solstice.ServiceRegistry$ShimServiceFactoryReference@d9f5fce
 stack of references: ServiceReference: dev.equo.solstice.ServiceRegistry$ShimServiceFactoryReference@609b041c
ServiceReference: dev.equo.solstice.ServiceRegistry$ShimServiceFactoryReference@d9f5fce
ServiceReference: dev.equo.solstice.ServiceRegistry$ShimServiceFactoryReference@4ef5dd23
ServiceReference: dev.equo.solstice.ServiceRegistry$ShimServiceFactoryReference@55adcf9e
bundle org.apache.felix.scr:0.0.0 (327) Circular reference detected trying to get service dev.equo.solstice.ServiceRegistry$ShimServiceFactoryReference@66d3b881
 stack of references: ServiceReference: dev.equo.solstice.ServiceRegistry$ShimServiceFactoryReference@609b041c
ServiceReference: dev.equo.solstice.ServiceRegistry$ShimServiceFactoryReference@d9f5fce
ServiceReference: dev.equo.solstice.ServiceRegistry$ShimServiceFactoryReference@4ef5dd23
ServiceReference: dev.equo.solstice.ServiceRegistry$ShimServiceFactoryReference@66d3b881
ServiceReference: dev.equo.solstice.ServiceRegistry$ShimServiceFactoryReference@7cff3f1d
ServiceReference: dev.equo.solstice.ServiceRegistry$ShimServiceFactoryReference@6fa02932
ServiceReference: dev.equo.solstice.ServiceRegistry$ShimServiceFactoryReference@2035d65b
bundle org.apache.felix.scr:0.0.0 (327) Circular reference detected trying to get service dev.equo.solstice.ServiceRegistry$ShimServiceFactoryReference@609b041c
 stack of references: ServiceReference: dev.equo.solstice.ServiceRegistry$ShimServiceFactoryReference@609b041c
ServiceReference: dev.equo.solstice.ServiceRegistry$ShimServiceFactoryReference@d9f5fce
nedtwigg commented 1 year ago

Fixed!

nedtwigg commented 1 year ago

Oops, not fixed, just not present in M2E 1.x on Java 11. In M2E 2.x on Java 17, it is still present.

nedtwigg commented 1 year ago

The error we get as of plugin-maven 1.0

bundle org.apache.felix.scr:0.0.0 (281) Circular reference detected trying to get service [org.eclipse.m2e.core.embedder.IMavenConfiguration]
 stack of references: ServiceReference: [org.eclipse.m2e.core.internal.project.registry.ProjectRegistryRefreshJob, org.eclipse.core.resources.IResourceChangeListener]
ServiceReference: [org.eclipse.m2e.core.internal.project.registry.ProjectRegistryManager]
ServiceReference: [org.eclipse.m2e.core.embedder.IMavenConfiguration]
ServiceReference: [org.eclipse.m2e.core.embedder.IMaven, org.eclipse.m2e.core.embedder.IMavenConfigurationChangeListener]
ServiceReference: [org.eclipse.m2e.core.internal.embedder.PlexusContainerManager]
ServiceReference: [org.codehaus.plexus.logging.LoggerManager]

We're also getting

Plugin org.eclipse.team.genericeditor.diff.extension, extension org.eclipse.ui.editors: Unknown editor with id: org.eclipse.ui.genericeditor.GenericEditor

but I can't find the bad effects of these for now...