8 Replies Latest reply: Nov 6, 2012 12:35 AM by Raghuram A RSS

    componet browser issue in eclipse

    Raghuram A
      component browser pugin is not loading in eclipse for crs which ive imported to the eclipse?(ive ATG plugins)
        • 1. Re: componet browser issue in eclipse
          RMishra
          can you paste what error is coming.
          -RMishra
          • 2. Re: componet browser issue in eclipse
            Raghuram A
            java.lang.NullPointerException
                 at java.io.File.<init>(Unknown Source)
                 at atg.applauncher.AppUtils.getConfigPath(AppUtils.java:652)
                 at atg.eclipse.component.ComponentPlugin.getConfigPath(ComponentPlugin.java:136)
                 at atg.eclipse.component.config.ComponentConfigManager.<init>(ComponentConfigManager.java:114)
                 at atg.eclipse.component.browser.ComponentTreeDataProvider.createProjectNode(ComponentTreeDataProvider.java:225)
                 at atg.eclipse.component.browser.ComponentTreeDataProvider.populateNode(ComponentTreeDataProvider.java:146)
                 at atg.eclipse.component.browser.ComponentTreeDataProvider.getChildren(ComponentTreeDataProvider.java:273)
                 at atg.eclipse.component.browser.ComponentTreeDataProvider.getElements(ComponentTreeDataProvider.java:294)
                 at org.eclipse.jface.viewers.StructuredViewer.getRawChildren(StructuredViewer.java:1010)
                 at org.eclipse.jface.viewers.ColumnViewer.getRawChildren(ColumnViewer.java:703)
                 at org.eclipse.jface.viewers.AbstractTreeViewer.getRawChildren(AbstractTreeViewer.java:1351)
                 at org.eclipse.jface.viewers.TreeViewer.getRawChildren(TreeViewer.java:391)
                 at org.eclipse.jface.viewers.StructuredViewer.getFilteredChildren(StructuredViewer.java:917)
                 at org.eclipse.jface.viewers.AbstractTreeViewer.getSortedChildren(AbstractTreeViewer.java:620)
                 at org.eclipse.jface.viewers.AbstractTreeViewer$1.run(AbstractTreeViewer.java:820)
                 at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
                 at org.eclipse.jface.viewers.AbstractTreeViewer.createChildren(AbstractTreeViewer.java:797)
                 at org.eclipse.jface.viewers.TreeViewer.createChildren(TreeViewer.java:644)
                 at org.eclipse.jface.viewers.AbstractTreeViewer.createChildren(AbstractTreeViewer.java:768)
                 at org.eclipse.jface.viewers.AbstractTreeViewer.internalInitializeTree(AbstractTreeViewer.java:1548)
                 at org.eclipse.jface.viewers.TreeViewer.internalInitializeTree(TreeViewer.java:833)
                 at org.eclipse.jface.viewers.AbstractTreeViewer$5.run(AbstractTreeViewer.java:1532)
                 at org.eclipse.jface.viewers.StructuredViewer.preservingSelection(StructuredViewer.java:1443)
                 at org.eclipse.jface.viewers.TreeViewer.preservingSelection(TreeViewer.java:403)
                 at org.eclipse.jface.viewers.StructuredViewer.preservingSelection(StructuredViewer.java:1404)
                 at org.eclipse.jface.viewers.AbstractTreeViewer.inputChanged(AbstractTreeViewer.java:1525)
                 at org.eclipse.jface.viewers.ContentViewer.setInput(ContentViewer.java:280)
                 at org.eclipse.jface.viewers.StructuredViewer.setInput(StructuredViewer.java:1690)
                 at atg.eclipse.component.browser.ComponentTreePanel.populate(ComponentTreePanel.java:109)
                 at atg.eclipse.component.browser.ComponentTreePanel.<init>(ComponentTreePanel.java:74)
                 at atg.eclipse.component.browser.ComponentTreeView.createPartControl(ComponentTreeView.java:113)
                 at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.createPartControl(CompatibilityPart.java:129)
                 at org.eclipse.ui.internal.e4.compatibility.CompatibilityView.createPartControl(CompatibilityView.java:155)
                 at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.create(CompatibilityPart.java:300)
                 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                 at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
                 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
                 at java.lang.reflect.Method.invoke(Unknown Source)
                 at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
                 at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:857)
                 at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:837)
                 at org.eclipse.e4.core.internal.di.InjectorImpl.inject(InjectorImpl.java:111)
                 at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:318)
                 at org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.java:240)
                 at org.eclipse.e4.core.contexts.ContextInjectionFactory.make(ContextInjectionFactory.java:161)
                 at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.createFromBundle(ReflectionContributionFactory.java:102)
                 at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.doCreate(ReflectionContributionFactory.java:71)
                 at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.create(ReflectionContributionFactory.java:53)
                 at org.eclipse.e4.ui.workbench.renderers.swt.ContributedPartRenderer.createWidget(ContributedPartRenderer.java:141)
                 at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:889)
                 at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:623)
                 at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$6.run(PartRenderingEngine.java:511)
                 at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
                 at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:496)
                 at org.eclipse.e4.ui.workbench.renderers.swt.ElementReferenceRenderer.createWidget(ElementReferenceRenderer.java:74)
                 at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:889)
                 at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:623)
                 at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:725)
                 at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:696)
                 at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:690)
                 at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
                 at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:675)
                 at org.eclipse.e4.ui.workbench.renderers.swt.StackRenderer.showTab(StackRenderer.java:1042)
                 at org.eclipse.e4.ui.workbench.renderers.swt.LazyStackRenderer$1.handleEvent(LazyStackRenderer.java:67)
                 at org.eclipse.e4.ui.services.internal.events.UIEventHandler$1.run(UIEventHandler.java:41)
                 at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:180)
                 at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:150)
                 at org.eclipse.swt.widgets.Display.syncExec(Display.java:4687)
                 at org.eclipse.e4.ui.internal.workbench.swt.E4Application$1.syncExec(E4Application.java:187)
                 at org.eclipse.e4.ui.services.internal.events.UIEventHandler.handleEvent(UIEventHandler.java:38)
                 at org.eclipse.equinox.internal.event.EventHandlerWrapper.handleEvent(EventHandlerWrapper.java:197)
                 at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:197)
                 at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:1)
                 at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
                 at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
                 at org.eclipse.equinox.internal.event.EventAdminImpl.dispatchEvent(EventAdminImpl.java:135)
                 at org.eclipse.equinox.internal.event.EventAdminImpl.sendEvent(EventAdminImpl.java:78)
                 at org.eclipse.equinox.internal.event.EventComponent.sendEvent(EventComponent.java:39)
                 at org.eclipse.e4.ui.services.internal.events.EventBroker.send(EventBroker.java:81)
                 at org.eclipse.e4.ui.internal.workbench.UIEventPublisher.notifyChanged(UIEventPublisher.java:57)
                 at org.eclipse.emf.common.notify.impl.BasicNotifierImpl.eNotify(BasicNotifierImpl.java:374)
                 at org.eclipse.e4.ui.model.application.ui.impl.ElementContainerImpl.setSelectedElement(ElementContainerImpl.java:171)
                 at org.eclipse.e4.ui.workbench.renderers.swt.StackRenderer$7.widgetSelected(StackRenderer.java:848)
                 at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248)
                 at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
                 at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
                 at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077)
                 at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1062)
                 at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:774)
                 at org.eclipse.swt.custom.CTabFolder.setSelection(CTabFolder.java:3023)
                 at org.eclipse.swt.custom.CTabFolder.onMouse(CTabFolder.java:1730)
                 at org.eclipse.swt.custom.CTabFolder$1.handleEvent(CTabFolder.java:270)
                 at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
                 at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
                 at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
                 at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
                 at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1022)
                 at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
                 at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:916)
                 at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
                 at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:585)
                 at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
                 at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:540)
                 at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
                 at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
                 at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
                 at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
                 at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
                 at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
                 at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
                 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                 at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
                 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
                 at java.lang.reflect.Method.invoke(Unknown Source)
                 at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
                 at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
                 at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
            • 3. Re: componet browser issue in eclipse
              Praveer.Rai
              steps you followed to import ?

              was it coming earlier , before import ?

              DYNAMO_HOME set ?
              • 4. Re: componet browser issue in eclipse
                Raghuram A
                ive imported using import->existing projects into workspace->here ive selected the path for crs->done....

                if we are importing existing projects then error was coming but if we create any new atg module then the component browser was working fine showing the all components...

                dynamo home was set
                • 5. Re: componet browser issue in eclipse
                  Praveer.Rai
                  even i was facing similar issue.Post the solution once you are able to fix it.
                  • 6. Re: componet browser issue in eclipse
                    Raghuram A
                    first of all clear me is it possible to get that component browser for crs in eclipse?
                    • 7. Re: componet browser issue in eclipse
                      Nitin Khare
                      Personally I prefer dyn/admin component browser or manually creating/changing/browsing the component configurations through host's file system as required. Anyways, here are few things you may try:

                      1. Check if your ATG Root within the ATG Preferences is set properly. In Eclipse > Window > Preferences > ATG Preferences, the ATG root directory should point to your ATG installation directory.

                      2. Compared to normal ATG modules, CRS packaging is a little different with ATG-Install-Unit specified as "Store" within the main CRS manifest file and then there are various sub-modules like Store.EStore etc. So try to create an eclipse project by pointing to the <ATG>\<CRS>\Store\EStore directory. You can name the project like Store.EStore so that you can easily identify and link the Eclipse project with the corresponding CRS sub-module. This way "config" directory of Store.EStore can be resolved by the plugin and you should be able to see the component browser for Store.EStore. If it works then you can similarly create different projects for different CRS sub-modules so that their config folder as declared in their manifest file can be resolved by the plugin and the component browser can show the components available in currently selected project (CRS sub-module).

                      Hope this helps.
                      • 8. Re: componet browser issue in eclipse
                        Raghuram A
                        thanks for the help its working..