Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] ECLASS dictionary import does not work #237

Open
SugerSenpai opened this issue Aug 7, 2024 · 0 comments
Open

[BUG] ECLASS dictionary import does not work #237

SugerSenpai opened this issue Aug 7, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@SugerSenpai
Copy link

SugerSenpai commented Aug 7, 2024

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)

@SugerSenpai SugerSenpai added the bug Something isn't working label Aug 7, 2024
Christian-Block added a commit to Christian-Block/package-explorer that referenced this issue Aug 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant