eclipse-aaspe / package-explorer

AASX Package Explorer
Other
64 stars 19 forks source link

[BUG] ECLASS dictionary import does not work #237

Open SugerSenpai opened 3 months ago

SugerSenpai commented 3 months ago

When trying to use: Import -> Import Submodel from Dictionary and then fetching online I receive the following error: Screenshot_307 Screenshot_306 Additionally when trying to open local files, which where downloaded from eclass, i can open them, but afterwards nothing happens. Did I miss something? According to the video tutorials it should work.

Application startup. The default options are expected in the JSON file: D:\dev\AasxPackageExplorer\AasxPackageExplorer.options.json Loading the default options from: D:\dev\AasxPackageExplorer\AasxPackageExplorer.options.json Parsing 0 command-line option(s)...

Searching for the plugins in the plugin directory: D:\dev\AasxPackageExplorer.\plugins Found 16 plugin(s) in the plugin directory: D:\dev\AasxPackageExplorer.\plugins Loading and activating 16 plugin(s)... Trying to load and activate 16 plug-in(s)... Trying to load a DLL: D:\dev\AasxPackageExplorer.\plugins\AasxPluginAdvancedTextEditor\AasxPluginAdvancedTextEditor.dll .. adding plugin AasxPluginAdvancedTextEditor Trying to load a DLL: D:\dev\AasxPackageExplorer.\plugins\AasxPluginBomStructure\AasxPluginBomStructure.dll .. adding plugin AasxPluginBomStructure .. found 1 menu items. Trying to load a DLL: D:\dev\AasxPackageExplorer.\plugins\AasxPluginContactInformation\AasxPluginContactInformation.dll .. adding plugin AasxPluginContactInformation Trying to load a DLL: D:\dev\AasxPackageExplorer.\plugins\AasxPluginDigitalNameplate\AasxPluginDigitalNameplate.dll .. adding plugin AasxPluginDigitalNameplate Trying to load a DLL: D:\dev\AasxPackageExplorer.\plugins\AasxPluginDocumentShelf\AasxPluginDocumentShelf.dll .. adding plugin AasxPluginDocumentShelf Trying to load a DLL: D:\dev\AasxPackageExplorer.\plugins\AasxPluginExportTable\AasxPluginExportTable.dll .. adding plugin AasxPluginExportTable .. found 5 menu items. Trying to load a DLL: D:\dev\AasxPackageExplorer.\plugins\AasxPluginGenericForms\AasxPluginGenericForms.dll .. adding plugin AasxPluginGenericForms Trying to load a DLL: D:\dev\AasxPackageExplorer.\plugins\AasxPluginImageMap\AasxPluginImageMap.dll .. adding plugin AasxPluginImageMap Trying to load a DLL: D:\dev\AasxPackageExplorer.\plugins\AasxPluginKnownSubmodels\AasxPluginKnownSubmodels.dll .. adding plugin AasxPluginKnownSubmodels Trying to load a DLL: D:\dev\AasxPackageExplorer.\plugins\AasxPluginMtpViewer\AasxPluginMtpViewer.dll .. adding plugin AasxPluginMtpViewer Trying to load a DLL: D:\dev\AasxPackageExplorer.\plugins\AasxPluginPlotting\AasxPluginPlotting.dll .. adding plugin AasxPluginPlotting Trying to load a DLL: D:\dev\AasxPackageExplorer.\plugins\AasxPluginSmdExporter\AasxPluginSmdExporter.dll .. adding plugin AasxPluginSmdExporter Trying to load a DLL: D:\dev\AasxPackageExplorer.\plugins\AasxPluginTechnicalData\AasxPluginTechnicalData.dll .. adding plugin AasxPluginTechnicalData Trying to load a DLL: D:\dev\AasxPackageExplorer.\plugins\AasxPluginUaNetClient\AasxPluginUaNetClient.dll .. adding plugin AasxPluginOpcUaClient Trying to load a DLL: D:\dev\AasxPackageExplorer.\plugins\AasxPluginUaNetServer\AasxPluginUaNetServer.dll .. adding plugin AasxPluginUaNetServer Trying to load a DLL: D:\dev\AasxPackageExplorer.\plugins\AasxPluginWebBrowser\AasxPluginWebBrowser.dll .. adding plugin AasxPluginWebBrowser Loading aasx file repository ..........\Sample_AAS\aasxrepo-new.json .. File not found when loading aasx file repository ..........\Sample_AAS\aasxrepo-new.json Application started .. [AasxPluginAdvancedTextEditor] ListActions() called [AasxPluginAdvancedTextEditor] InitPlugin() called with args = [AasxPluginBomStructure] InitPlugin() called with args = [AasxPluginContactInformation] InitPlugin() called with args = [AasxPluginDigitalNameplate] InitPlugin() called with args = [AasxPluginDocumentShelf] InitPlugin() called with args = [AasxPluginExportTable] InitPlugin() called with args = [AasxPluginGenericForms] InitPlugin() called with args = [AasxPluginGenericForms] Try load options from D:\dev\AasxPackageExplorer\plugins\AasxPluginGenericForms\AasxPluginGenericForms.options.json .. [AasxPluginGenericForms] Detected an old version of options: AAS2.0.1. Upgrading from D:\dev\AasxPackageExplorer\plugins\AasxPluginGenericForms\AasxPluginGenericForms_Festo_ElectricAndFluidPlan.add-options.json .. [AasxPluginGenericForms] Upgraded successfully! Consider saving options in new format. [AasxPluginGenericForms] Detected an old version of options: AAS2.0.1. Upgrading from D:\dev\AasxPackageExplorer\plugins\AasxPluginGenericForms\AasxPluginGenericForms_HSU_Identification.add-options.json .. [AasxPluginGenericForms] Upgraded successfully! Consider saving options in new format. [AasxPluginGenericForms] Detected an old version of options: AAS2.0.1. Upgrading from D:\dev\AasxPackageExplorer\plugins\AasxPluginGenericForms\AasxPluginGenericForms_HSU_Nameplate.add-options.json .. [AasxPluginGenericForms] Upgraded successfully! Consider saving options in new format. [AasxPluginGenericForms] Detected an old version of options: AAS2.0.1. Upgrading from D:\dev\AasxPackageExplorer\plugins\AasxPluginGenericForms\AasxPluginGenericForms_SG2_TechnicalData.add-options.json .. [AasxPluginGenericForms] Upgraded successfully! Consider saving options in new format. [AasxPluginGenericForms] Detected an old version of options: AAS2.0.1. Upgrading from D:\dev\AasxPackageExplorer\plugins\AasxPluginGenericForms\AasxPluginGenericForms_SG2_TechnicalData_v11.add-options.json .. [AasxPluginGenericForms] Upgraded successfully! Consider saving options in new format. [AasxPluginGenericForms] Detected an old version of options: AAS2.0.1. Upgrading from D:\dev\AasxPackageExplorer\plugins\AasxPluginGenericForms\AasxPluginGenericForms_ZVEI_DigitalNameplate.add-options.json .. [AasxPluginGenericForms] Upgraded successfully! Consider saving options in new format. [AasxPluginGenericForms] Try load options from D:\dev\AasxPackageExplorer\plugins\AasxPluginGenericForms\IDTA 02004-1-2_Template_Handover Documentation.add-options.json .. [AasxPluginGenericForms] Try load options from D:\dev\AasxPackageExplorer\plugins\AasxPluginGenericForms\IDTA_02002-1-0_Template_ContactInformation.add-options.json .. [AasxPluginImageMap] ListActions() called [AasxPluginImageMap] InitPlugin() called with args = [AasxPluginKnownSubmodels] ListActions() called [AasxPluginKnownSubmodels] InitPlugin() called with args = [AasxPluginMtpViewer] ListActions() called [AasxPluginMtpViewer] InitPlugin() called with args = [AasxPluginPlotting] ListActions() called [AasxPluginPlotting] InitPlugin() called with args = [AasxPluginSmdExporter] InitPlugin() called with args = [AasxPluginTechnicalData] ListActions() called [AasxPluginTechnicalData] InitPlugin() called with args = [AasxPluginOpcUaClient] InitPlugin() called with args = [AasxPluginUaNetServer] InitPlugin() called with args = [AasxPluginWebBrowser] ListActions() called [AasxPluginWebBrowser] InitPlugin() called with args = Error: Could not fetch data from ECLASS using the query 39022401.: No valid ECLASS certificate selected No valid ECLASS certificate selected at at AasxDictionaryImport.Eclass.DataProvider.FetchXmlFile(String irdi) in D:\a\package-explorer\package-explorer\src\AasxDictionaryImport\Eclass\Model.cs:line 173 at AasxDictionaryImport.Eclass.DataProvider.Fetch(String query) in D:\a\package-explorer\package-explorer\src\AasxDictionaryImport\Eclass\Model.cs:line 125 at AasxDictionaryImport.ImportDialog.ButtonFetchOnline_Click(Object sender, RoutedEventArgs e) in D:\a\package-explorer\package-explorer\src\AasxDictionaryImport\ImportDialog.xaml.cs:line 333. Stacktrace: at AasxDictionaryImport.Eclass.DataProvider.FetchXmlFile(String irdi) in D:\a\package-explorer\package-explorer\src\AasxDictionaryImport\Eclass\Model.cs:line 173 at AasxDictionaryImport.Eclass.DataProvider.Fetch(String query) in D:\a\package-explorer\package-explorer\src\AasxDictionaryImport\Eclass\Model.cs:line 125 at AasxDictionaryImport.ImportDialog.ButtonFetchOnline_Click(Object sender, RoutedEventArgs e) in D:\a\package-explorer\package-explorer\src\AasxDictionaryImport\ImportDialog.xaml.cs:line 333 Error: Unhandled exception in AasxPackageExplorer v1.0.0.0: Could not find a part of the path 'C:\Users\Suger\AppData\Local\Temp\aasx.import\cache.index.xml'. Could not find a part of the path 'C:\Users\Suger\AppData\Local\Temp\aasx.import\cache.index.xml'. at at Microsoft.Win32.SafeHandles.SafeFileHandle.CreateFile(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options) at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize) at System.IO.Strategies.OSFileStreamStrategy..ctor(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize) at System.IO.Strategies.FileStreamHelpers.ChooseStrategyCore(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize) at System.IO.Strategies.FileStreamHelpers.ChooseStrategy(FileStream fileStream, String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, Int64 preallocationSize) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean useAsync) at System.Xml.XmlWriterSettings.CreateWriter(String outputFileName) at System.Xml.XmlWriter.Create(String outputFileName, XmlWriterSettings settings) at System.Xml.Linq.XDocument.Save(String fileName, SaveOptions options) at AasxDictionaryImport.ImportDialog.SaveCachedIndex() in D:\a\package-explorer\package-explorer\src\AasxDictionaryImport\ImportDialog.xaml.cs:line 154 at AasxDictionaryImport.ImportDialog.ButtonCancel_Click(Object sender, RoutedEventArgs e) in D:\a\package-explorer\package-explorer\src\AasxDictionaryImport\ImportDialog.xaml.cs:line 222 at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised) at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args) at System.Windows.Controls.Primitives.ButtonBase.OnClick() at System.Windows.Controls.Button.OnClick() at System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e) at System.Windows.UIElement.OnMouseLeftButtonUpThunk(Object sender, MouseButtonEventArgs e) at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target) at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised) at System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent) at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target) at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised) at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args) at System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args) at System.Windows.Input.InputManager.ProcessStagingArea() at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport) at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel) at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler). Stacktrace: at Microsoft.Win32.SafeHandles.SafeFileHandle.CreateFile(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options) at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize) at System.IO.Strategies.OSFileStreamStrategy..ctor(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize) at System.IO.Strategies.FileStreamHelpers.ChooseStrategyCore(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize) at System.IO.Strategies.FileStreamHelpers.ChooseStrategy(FileStream fileStream, String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, Int64 preallocationSize) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean useAsync) at System.Xml.XmlWriterSettings.CreateWriter(String outputFileName) at System.Xml.XmlWriter.Create(String outputFileName, XmlWriterSettings settings) at System.Xml.Linq.XDocument.Save(String fileName, SaveOptions options) at AasxDictionaryImport.ImportDialog.SaveCachedIndex() in D:\a\package-explorer\package-explorer\src\AasxDictionaryImport\ImportDialog.xaml.cs:line 154 at AasxDictionaryImport.ImportDialog.ButtonCancel_Click(Object sender, RoutedEventArgs e) in D:\a\package-explorer\package-explorer\src\AasxDictionaryImport\ImportDialog.xaml.cs:line 222 at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised) at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args) at System.Windows.Controls.Primitives.ButtonBase.OnClick() at System.Windows.Controls.Button.OnClick() at System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e) at System.Windows.UIElement.OnMouseLeftButtonUpThunk(Object sender, MouseButtonEventArgs e) at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target) at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised) at System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent) at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target) at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised) at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args) at System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args) at System.Windows.Input.InputManager.ProcessStagingArea() at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport) at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel) at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)