-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
4.29.1.Final
-
None
-
---
Description of problem:
Schema export with JBoss Hibernate Plugin launch configuration fails with java.lang.NoSuchMethodError
—
- Plugin org.jboss.tools.hibernate.orm.runtime.v_6_5 "requires" org.jboss.tools.hibernate.libs.jandex.v_2_4
- Hibernate ORM 6.5.x depends on jandex 3.1.2 https://github.com/hibernate/hibernate-orm/commit/7cbc0e01fee6b040d1601f54be531c031b8a2bc4
- Hibernate ORM 6.5.x uses updated methods - see https://github.com/hibernate/hibernate-orm/commit/6cf9d2d4801962b659eb4fb936a58abd461fbfc1
Additional info (Such as Logs, Screenshots, etc):
Example LaunchConfig:
Example Code Gen Config:
Error:{}
eclipse.buildId=4.32.0.20240606-1231 java.version=21.0.3 java.vendor=Eclipse Adoptium BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=de_DE Framework arguments: -product org.eclipse.epp.package.rcp.product Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.rcp.productorg.eclipse.core.jobs Error Fri Jul 05 13:31:20 CEST 2024 An internal error occurred during: "Launching postgreExport".java.lang.NoSuchMethodError: 'org.jboss.jandex.ClassSummary org.jboss.jandex.Indexer.indexWithSummary(java.io.InputStream)' at org.hibernate.boot.archive.scan.spi.ClassFileArchiveEntryHandler.toClassDescriptor(ClassFileArchiveEntryHandler.java:65) at org.hibernate.boot.archive.scan.spi.ClassFileArchiveEntryHandler.handleEntry(ClassFileArchiveEntryHandler.java:54) at org.hibernate.boot.archive.internal.ExplodedArchiveDescriptor.processDirectory(ExplodedArchiveDescriptor.java:143) at org.hibernate.boot.archive.internal.ExplodedArchiveDescriptor.processDirectory(ExplodedArchiveDescriptor.java:118) at org.hibernate.boot.archive.internal.ExplodedArchiveDescriptor.processDirectory(ExplodedArchiveDescriptor.java:118) at org.hibernate.boot.archive.internal.ExplodedArchiveDescriptor.processDirectory(ExplodedArchiveDescriptor.java:118) at org.hibernate.boot.archive.internal.ExplodedArchiveDescriptor.visitArchive(ExplodedArchiveDescriptor.java:54) at org.hibernate.boot.archive.scan.spi.AbstractScannerImpl.scan(AbstractScannerImpl.java:48) at org.hibernate.boot.model.process.internal.ScanningCoordinator.coordinateScan(ScanningCoordinator.java:73) at org.hibernate.boot.model.process.spi.MetadataBuildingProcess.prepare(MetadataBuildingProcess.java:151) at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.<init>(EntityManagerFactoryBuilderImpl.java:295) at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.<init>(EntityManagerFactoryBuilderImpl.java:204) at org.hibernate.jpa.boot.spi.Bootstrap.getEntityManagerFactoryBuilder(Bootstrap.java:78) at org.hibernate.jpa.HibernatePersistenceProvider.getEntityManagerFactoryBuilder(HibernatePersistenceProvider.java:174) at org.hibernate.jpa.HibernatePersistenceProvider.getEntityManagerFactoryBuilderOrNull(HibernatePersistenceProvider.java:119) at org.hibernate.jpa.HibernatePersistenceProvider.getEntityManagerFactoryBuilderOrNull(HibernatePersistenceProvider.java:59) at org.hibernate.tool.orm.jbt.util.HibernateToolsPersistenceProvider.getEntityManagerFactoryBuilder(HibernateToolsPersistenceProvider.java:22) at org.hibernate.tool.orm.jbt.util.HibernateToolsPersistenceProvider.createEntityManagerFactoryBuilder(HibernateToolsPersistenceProvider.java:14) at org.hibernate.tool.orm.jbt.util.JpaConfiguration.initialize(JpaConfiguration.java:181) at org.hibernate.tool.orm.jbt.util.JpaConfiguration.buildMappings(JpaConfiguration.java:72) at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103) at java.base/java.lang.reflect.Method.invoke(Method.java:580) at org.jboss.tools.hibernate.orm.runtime.common.ReflectUtil.invokeMethod(ReflectUtil.java:51) at org.jboss.tools.hibernate.orm.runtime.common.GenericFacadeFactory$FacadeInvocationHandler.invoke(GenericFacadeFactory.java:75) at jdk.proxy15/jdk.proxy15.$Proxy64.buildMappings(Unknown Source) at org.hibernate.console.ConsoleConfiguration$4.execute(ConsoleConfiguration.java:271) at org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:63) at org.hibernate.console.ConsoleConfiguration.execute(ConsoleConfiguration.java:107) at org.hibernate.console.ConsoleConfiguration.buildMappings(ConsoleConfiguration.java:269) at org.hibernate.eclipse.console.common.ConsoleExtension.buildConfiguration(ConsoleExtension.java:317) at org.hibernate.eclipse.console.common.ConsoleExtension.runExporters(ConsoleExtension.java:174) at org.hibernate.eclipse.console.common.ConsoleExtension.launchExporters(ConsoleExtension.java:110) at org.hibernate.eclipse.launch.CodeGenerationLaunchDelegate.launch(CodeGenerationLaunchDelegate.java:266) at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:805) at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:716) at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:1054) at org.eclipse.debug.internal.ui.DebugUIPlugin$1.run(DebugUIPlugin.java:1257) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)