Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Problem

Entity Import von Datenbanktabellen kann nicht gestartet werden.Beim Öffnen des Wizards mit import of database tables cannot be started.

When opening the wizard with Create JPA entities from tables wird eine Fehlermeldung eingeblendet, an error message appears:

No Format
Error reading metadata.

Reason:
Unable to create requested service [org.hibernate.cache.spi.RegionFactory]


Es können keine Tabellen gewählt werden und der "Finish"-Button um den Import zu starten ist deaktiviert No tables can be selected and the "Finish" button where you can start the import is disabled.

Solution

Tritt Occurs in bei Rapidclipse Rapid Clipse 2.3.auf bei Projekten, die schon auf Version x for projects that were already updated to version 3.0.des Rapidclipse-Frameworks geupdatet wurden.

Die Ursache des Fehlers ist eine Projektkonfiguration, die nicht mehr zur neuen Frameworkversion passt.

Die  RapidClipse Framework Versionen 0 RapidClipse Frameworks.


This error is due to a project configuration that no longer matches the new framework version.

The RapidClipse Framework Versions 1.3.0 und frühe Versionen der  and early versions of 3.0.0-SNAPSHOTs arbeiten mit  work with EhCache 2, die Projektkonfiguration ist dafür ausgelegt, unter anderem mit Einträgen in die  the project configuration is adapted to that, including entries in the persistence.xml.

Die However, Framework-Version 3.0.0 arbeitet dagegen mit  works with EhCache 3

Dadurch funktioniert nun manches nicht mehr, da manches aus EhCache 2 - wie eben diese EhCacheRegionFactory-Klasse - nicht mehr gefunden wird.

...

So, since some classes of EhCache 2 (e.g. the EhCacheRegionFactory class) cannot be found, some functions now no longer work.



  • The simple solution:

Panel
bgColor#fff
Updaten Sie die Update the RapidClipse IDE auf die aktuelle Versionto the current version.

Die RapidClipse 3.0.1 - IDE passt Projekte automatisch an, so dass Projekt-Konfiguration wieder zu den Versionen der Dependencies, den eingebundenen Jars passt.


  • Wenn Sie die RapidClipse-Version nicht wechseln können, gibt es die Möglichkeit, das Projekt manuell anzupassen: If it is not possible to change the RapidClipse version, you can manually adjust the project:

Panel
bgColor#fff
Bearbeiten Sie die Editing the persistence.xml:

Ändern sie den Eintrag Edit the entry "hibernate.cache.region.factory_class":

However, RapidClipse 2.3.x mit with RC Framework 3.0.0 ist aber generell nicht empfohlen, da unter Umständen weitere Probleme auftreten könnenis generally not recommended, because under certain circumstances further problems may occur!