archi-contribs / database-plugin

Database export/import plugin that store models in a central database repository
Other
80 stars 23 forks source link

Import a component #23

Closed bebran closed 6 years ago

bebran commented 6 years ago

I'm trying to import components across different models in a SQLite DB. It works all fine until I hit the Import button, but if I choose import type 'Shared' nothing happens, and if I choose import type 'Copy' the plugin crashes with error message "An exception has been raised during import. java.lang.NullPointerExeption".

Running Archi ver 4.0.3, DB plugin v.2.0.7b1 on Windows 7.

I have 5 models in the DB, where the biggest model have > 5300 objects, >6000 connections and >370 views. The problem is there regardless of moving components between two small test models or between the large production models. Have not tried to create an empty new DB file or a 'true' DB (mySQL, etc.).

Hope you can assist.

Regards Bent B. Andersen

herve91 commented 6 years ago

Hi Bent,

Anothe person already raised this error to me but in his situation, the import works despites the error message, It his thecase for you as well or soes the import fails copletely ?

Thanks and regards Hervé

bebran commented 6 years ago

Hi Hervé,

No components are transferred in both cases (copy/shared). Views seems to transfer, but without content.

/Bent

herve91 commented 6 years ago

Ok, so it does not seem to be the same anomaly.

What I can suggest is to create a log file (go to the plugin preferences, on the logger tab). The easiest is to select the simple mode where you just need to provide a filename and a log level. Any level below "error" will print the error message into the log file. The trace mode will slow down a bit the plugin but provide detailed operations about what the plugin does.

Depending on the confidentiality of you model, you can send me by mail the error message only (the whole exception messages that include the method names and line numbers) or the whole file.

The whole file in trace mode is of course easier for me to investigate but please be informed that it contains your model's content so please do not send it to me if it contains confidential data.

Best regards Hervé

bebran commented 6 years ago

Hi Hervé,

I've tried the same operation on my MacBook and experience the exact same problem, which also occurs on a new clean DB (SQLite) with two test models, each with 3 elements, 2 relations and 1 view. I've attached an error trace, but please let me know if you need more. DatabasePlugin.log

/Bent

herve91 commented 6 years ago

Thanks Bent,

The log file contains the information I need to investigate. I'll keep you informed as soon the issue is solved.

Best regards Hervé

aldebarancin commented 6 years ago

Hi Hervé I had the same error. I working with Archi version 4.2 with database plugin 2.0.7 and MySQL 5.7. Did you able to correct this bug? Or maybe do you have a previous version of the jar plugin free of this error? Thanks for your support! Regards,

herve91 commented 6 years ago

Hi,

The bug will becorrected in the next release ... that should have been released ages ago.

I know I'm very late on this plugin but the next release should be available in few weeks now.

Best regards Hervé

herve91 commented 6 years ago

Will be corrected in version 2.1 (which is in beta version at the moment)