telosystools

Open full view…

Eclipse FileNotFoundException databases.dbcfg

ptoinson
Tue, 21 Aug 2018 01:20:59 GMT

Using Eclipse Photon. Created a new project (outside of the workspace). Initialized telosys. Tried to open databases.dbcfg and got the exception below. Please note that my project is in /Users/rick/Development/pixmoto/pixmoto-telosys-bug/ and the config file was placed in /Users/rick/Documents/Workspaces/pixmoto/pixmoto-telosys-bug/TelosysTo ols/databases.dbcfg Indeed, the filde in the exception does not exists. Is there a way to fix this? In my case, moving my project to the Workspace folder is not an option. java.io.FileNotFoundException: /Users/rick/Documents/Workspaces/pixmoto/pixmoto-telosys-bug/TelosysTo ols/databases.dbcfg (No such file or directory) at java.io.FileInputStream.open0(Native Method) at java.io.FileInputStream.open(FileInputStream.java:195) at java.io.FileInputStream.<init>(FileInputStream.java:138) at java.io.FileInputStream.<init>(FileInputStream.java:93) at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection. java:90) at sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConn ection.java:188) at com.sun .org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentE ntity(XMLEntityManager.java:623) at com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineDo cVersion(XMLVersionDetector.java:148) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XM L11Configuration.java:806) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XM L11Configuration.java:771) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.j ava:141) at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.j ava:243) at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Docu mentBuilderImpl.java:339) at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:205) at org.telosys.tools.commons.XmlFileUtil.load(XmlFileUtil.java:72) at org.telosys.tools.commons.dbcfg.DbConfigManager.load(DbConfigManager.j ava:71) at org.telosys.tools.eclipse.plugin.editors.dbconfig.DbConfigEditor.init( DbConfigEditor.java:150) at org.eclipse.ui.internal.EditorReference.initialize(EditorReference.jav a:362) at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.create(Comp atibilityPart.java:342) at sun.reflect.GeneratedMethodAccessor103.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccess orImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequesto r.java:55) at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(Injector Impl.java:1005) at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(Injector Impl.java:970) at org.eclipse.e4.core.internal.di.InjectorImpl.internalInject(InjectorIm pl.java:137) at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl .java:412) at org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.java:33 1) at org.eclipse.e4.core.contexts.ContextInjectionFactory.make(ContextInjec tionFactory.java:190) at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.cre ateFromBundle(ReflectionContributionFactory.java:105) at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.doC reate(ReflectionContributionFactory.java:74) at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.cre ate(ReflectionContributionFactory.java:56) at org.eclipse.e4.ui.workbench.renderers.swt.ContributedPartRenderer.crea teWidget(ContributedPartRenderer.java:129) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWid get(PartRenderingEngine.java:1012) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreat eGui(PartRenderingEngine.java:672) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreat eGui(PartRenderingEngine.java:778) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$0( PartRenderingEngine.java:749) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$2.run(Par tRenderingEngine.java:743) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui (PartRenderingEngine.java:727) at org.eclipse.e4.ui.workbench.renderers.swt.StackRenderer.showTab(StackR enderer.java:1277) at org.eclipse.e4.ui.workbench.renderers.swt.LazyStackRenderer.lambda$0(L azyStackRenderer.java:72) at org.eclipse.e4.ui.services.internal.events.UIEventHandler$1.run(UIEven tHandler.java:40) at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:233) at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:14 4) at org.eclipse.swt.widgets.Display.syncExec(Display.java:4860) at org.eclipse.e4.ui.internal.workbench.swt.E4Application$1.syncExec(E4Ap plication.java:212) at org.eclipse.e4.ui.services.internal.events.UIEventHandler.handleEvent( UIEventHandler.java:36) at org.eclipse.equinox.internal.event.EventHandlerWrapper.handleEvent(Eve ntHandlerWrapper.java:201) at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(E ventHandlerTracker.java:196) at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(E ventHandlerTracker.java:1) at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventMa nager.java:230) at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchro nous(ListenerQueue.java:148) at org.eclipse.equinox.internal.event.EventAdminImpl.dispatchEvent(EventA dminImpl.java:135) at org.eclipse.equinox.internal.event.EventAdminImpl.sendEvent(EventAdmin Impl.java:78) at org.eclipse.equinox.internal.event.EventComponent.sendEvent(EventCompo nent.java:39) at org.eclipse.e4.ui.services.internal.events.EventBroker.send(EventBroke r.java:52) at org.eclipse.e4.ui.internal.workbench.UIEventPublisher.notifyChanged(UI EventPublisher.java:60) at org.eclipse.emf.common.notify.impl.BasicNotifierImpl.eNotify(BasicNoti fierImpl.java:374) at org.eclipse.e4.ui.model.application.ui.impl.ElementContainerImpl.setSe lectedElement(ElementContainerImpl.java:174) at org.eclipse.e4.ui.internal.workbench.ModelServiceImpl.showElementInWin dow(ModelServiceImpl.java:634) at org.eclipse.e4.ui.internal.workbench.ModelServiceImpl.bringToTop(Model ServiceImpl.java:598) at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.delegateBringToTo p(PartServiceImpl.java:788) at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.bringToTop(PartSe rviceImpl.java:401) at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.showPart(PartServ iceImpl.java:1238) at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.jav a:3277) at org.eclipse.ui.internal.WorkbenchPage.access$26(WorkbenchPage.java:319 2) at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:3174) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:71) at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:31 69) at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:31 33) at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:31 23) at org.eclipse.ui.ide.IDE.openEditor(IDE.java:563) at org.eclipse.ui.ide.IDE.openEditor(IDE.java:518) at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(Edit orUtility.java:360) at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(Edit orUtility.java:167) at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:284) at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:249) at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchRun(Selecti onDispatchAction.java:271) at org.eclipse.jdt.ui.actions.SelectionDispatchAction.run(SelectionDispat chAction.java:249) at org.eclipse.jdt.internal.ui.navigator.OpenAndExpand.run(OpenAndExpand. java:50) at org.eclipse.ui.actions.RetargetAction.run(RetargetAction.java:216) at org.eclipse.ui.navigator.CommonNavigatorManager$1.open(CommonNavigator Manager.java:180) at org.eclipse.ui.OpenAndLinkWithEditorHelper$InternalListener.open(OpenA ndLinkWithEditorHelper.java:46) at org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredViewer.java :850) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) at org.eclipse.ui.internal.JFaceUtil.lambda$0(JFaceUtil.java:44) at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:173) at org.eclipse.jface.viewers.StructuredViewer.fireOpen(StructuredViewer.j ava:847) at org.eclipse.jface.viewers.StructuredViewer.handleOpen(StructuredViewer .java:1162) at org.eclipse.ui.navigator.CommonViewer.handleOpen(CommonViewer.java:451 ) at org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrategy.java:27 3) at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.java:268) at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:30 8) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:86) at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4247) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1508) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1531) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1516) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1320) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4091) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3712) at org.eclipse.jface.window.Window.runEventLoop(Window.java:818) at org.eclipse.jface.window.Window.open(Window.java:794) at org.eclipse.ui.internal.views.log.EventDetailsDialog.open(EventDetails Dialog.java:188) at org.eclipse.ui.internal.views.log.EventDetailsDialogAction.run(EventDe tailsDialogAction.java:99) at org.eclipse.ui.internal.views.log.LogView.lambda$2(LogView.java:562) at org.eclipse.jface.viewers.StructuredViewer$1.run(StructuredViewer.java :830) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) at org.eclipse.ui.internal.JFaceUtil.lambda$0(JFaceUtil.java:44) at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:173) at org.eclipse.jface.viewers.StructuredViewer.fireDoubleClick(StructuredV iewer.java:827) at org.eclipse.jface.viewers.AbstractTreeViewer.handleDoubleSelect(Abstra ctTreeViewer.java:1512) at org.eclipse.jface.viewers.StructuredViewer$4.widgetDefaultSelected(Str ucturedViewer.java:1257) at org.eclipse.jface.util.OpenStrategy.fireDefaultSelectionEvent(OpenStra tegy.java:249) at org.eclipse.jface.util.OpenStrategy.access$0(OpenStrategy.java:247) at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:30 6) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:86) at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4247) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1508) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1531) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1516) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1320) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4091) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3712) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(Par tRenderingEngine.java:1170) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.jav a:336) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartR enderingEngine.java:1059) at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Work bench.java:153) at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:667) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.jav a:336) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java :597) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:148) at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplic ation.java:152) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle .java:196) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplic ation(EclipseAppLauncher.java:134) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(Ecl ipseAppLauncher.java:104) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.jav a:388) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.jav a:243) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.j ava:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccess orImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:656) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:592) at org.eclipse.equinox.launcher.Main.run(Main.java:1498)

Telosys Team
Mon, 27 Aug 2018 15:59:03 GMT

There's a bug in the Databases Editor when the project has been imported in Eclipse workspace. It will be fixed ASAP. If you cannot move your project to the Workspace folder there's another option. You can keep your project outside the workspace (no import) and just create a "General project" in the workspace and then configure Telosys to generate the files in your original project folder. For the configuration see this post : https://telosys.blogspot.com/2018/08/specific-destination-folder.html